/* Film Portal — Dark Editorial Theme (Future-plc-inspired) */

:root {
    --navy:         #0d1b2a;
    --navy-mid:     #162236;
    --navy-soft:    #1e2e42;

    --coral:        #e8314a;
    --coral-hover:  #c9273e;
    --coral-dim:    rgba(232,49,74,0.1);
    --coral-mid:    rgba(232,49,74,0.18);

    --cream:        #ece9e4;
    --cream-mid:    #e2dfd9;
    --cream-dark:   #d5d0c8;

    --bg-root:      #ece9e4;
    --bg-card:      #ffffff;
    --bg-dark-card: #0a0a0a;
    --bg-input:     #f5f3f0;

    --ink-dark:     #0d0d0d;
    --ink-mid:      #333333;
    --ink-soft:     #666666;
    --ink-faint:    #999999;
    --ink-white:    #ffffff;

    --line:         #d8d4cc;
    --line-dark:    #c8c3ba;

    --radius-xs:    3px;
    --radius-sm:    6px;
    --radius-md:    10px;
    --radius-lg:    14px;
    --radius-pill:  24px;

    --shadow-xs:    0 1px 3px rgba(13,27,42,0.08);
    --shadow-sm:    0 2px 8px rgba(13,27,42,0.1);
    --shadow-md:    0 4px 16px rgba(13,27,42,0.13);
    --shadow-lg:    0 8px 28px rgba(13,27,42,0.18);

    --ease: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-root);
    color: var(--ink-dark);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

/* ===================== HEADER ===================== */
.ft-topbar {
    background: var(--navy);
    border-bottom: 3px solid var(--coral);
    padding: 0.65rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.ft-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ft-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.ft-logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--ease);
}

.ft-logo-link:hover { opacity: 0.85; }

.ft-site-name {
    font-size: 24px;
    font-weight: 900;
    color: var(--ink-white);
    letter-spacing: 0.05em;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    text-transform: uppercase;
}

.ft-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: var(--coral);
    border-radius: var(--radius-pill);
    transition: var(--ease);
    border: none;
}

.ft-domain-badge:hover {
    background: var(--coral-hover);
    box-shadow: 0 4px 14px rgba(232,49,74,0.35);
    transform: translateY(-1px);
}

.ft-domain-tag {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.ft-domain-url {
    font-size: 18px;
    font-weight: 900;
    color: var(--ink-white);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* ===================== LAYOUT ===================== */
.ft-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.ft-block-pad {
    padding: 8px 0;
}

/* ===================== BANNER ===================== */
.ft-banner {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin: 2px 0;
    border: 1px solid var(--line);
}

.ft-banner a { display: block; line-height: 0; }
.ft-banner img { width: 100%; display: block; border-radius: var(--radius-md); }

/* ===================== NAV ===================== */
.ft-nav-wrap {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.ft-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
}

.ft-nav-row:last-child { border-bottom: none; }

.ft-nav-label {
    font-size: 14px;
    font-weight: 900;
    color: var(--ink-white);
    background: var(--navy);
    width: 10%;
    min-width: 52px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    flex-shrink: 0;
    border-right: 3px solid var(--coral);
    white-space: nowrap;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ft-nav-items {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px 10px;
    align-items: center;
    background: var(--bg-card);
}

.ft-nav-items a {
    display: inline-block;
    color: var(--ink-mid);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--radius-sm);
    transition: var(--ease);
    background: var(--bg-input);
    border: 1px solid var(--line);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ft-nav-items a:hover {
    background: var(--navy);
    color: var(--ink-white);
    border-color: var(--navy);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.ft-nav-items a.active {
    background: var(--coral);
    color: var(--ink-white);
    border-color: var(--coral);
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(232,49,74,0.22);
}

/* ===================== SEARCH ===================== */
.ft-search {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.ft-search form {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.ft-search input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 10px 15px;
    border: 1.5px solid var(--line-dark);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--ink-dark);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
    font-family: inherit;
}

.ft-search input[type="text"]:focus {
    border-color: var(--coral);
    background: #fff;
    box-shadow: 0 0 0 3px var(--coral-dim);
}

.ft-search input[type="text"]::placeholder { color: var(--ink-faint); }

.ft-search button {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: var(--ink-white);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ft-search button:hover {
    background: var(--coral);
    box-shadow: 0 4px 14px rgba(232,49,74,0.3);
    transform: translateY(-1px);
}

/* ===================== TAG CLOUDS ===================== */
.ft-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 11px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.ft-tagpill {
    padding: 5px 14px;
    background: var(--cream);
    border-radius: var(--radius-pill);
    color: var(--ink-mid);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--ease);
    border: 1px solid var(--line-dark);
    letter-spacing: 0.02em;
}

.ft-tagpill:hover {
    background: var(--navy);
    color: var(--ink-white);
    border-color: var(--navy);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ===================== SECTIONS ===================== */
.ft-section {
    margin-bottom: 14px;
}

.ft-section-hd {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cream-dark);
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ft-section-hd::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: var(--coral);
    border-radius: 2px;
    flex-shrink: 0;
    align-self: center;
    margin-right: 4px;
}

.ft-section-title {
    font-size: 19px;
    font-weight: 900;
    margin: 0;
    color: var(--ink-dark);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ft-section-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--ease);
}

.ft-section-title a:hover { color: var(--coral); }

/* ===================== FILM GRID ===================== */
.ft-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
}

.ft-grid li {
    animation: ft-rise 0.42s ease backwards;
}

.ft-grid li:nth-child(1) { animation-delay: 0.03s; }
.ft-grid li:nth-child(2) { animation-delay: 0.06s; }
.ft-grid li:nth-child(3) { animation-delay: 0.09s; }
.ft-grid li:nth-child(4) { animation-delay: 0.12s; }
.ft-grid li:nth-child(5) { animation-delay: 0.15s; }
.ft-grid li:nth-child(6) { animation-delay: 0.18s; }
.ft-grid li:nth-child(7) { animation-delay: 0.21s; }
.ft-grid li:nth-child(8) { animation-delay: 0.24s; }

@keyframes ft-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ft-card-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 600 / 350;
    background: var(--bg-dark-card);
    border: 1px solid #1a1a1a;
    box-shadow: var(--shadow-sm);
    transition: var(--ease);
}

.ft-card-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    opacity: 0.92;
}

.ft-card-link:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--coral);
}

.ft-card-link:hover img {
    transform: scale(1.07);
    opacity: 1;
}

.ft-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,27,42,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-md);
}

.ft-card-link:hover::after { opacity: 1; }

.ft-card-info {
    padding: 7px 0 0;
}

.ft-card-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--ink-mid);
    letter-spacing: 0.01em;
}

.ft-card-info h5 a {
    color: inherit;
    text-decoration: none;
    transition: var(--ease);
}

.ft-card-info h5 a:hover { color: var(--coral); }

/* ===================== DETAIL PANELS ===================== */
.ft-item-header {
    line-height: 1.8;
    text-align: center;
    padding: 16px 20px;
    font-size: 16px;
    margin: 12px 0;
    word-break: break-all;
    background: var(--navy);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--coral);
    color: var(--ink-white);
}

.ft-item-header a {
    color: var(--coral);
    text-decoration: none;
    font-weight: 800;
    margin-right: 8px;
}

.ft-item-header b { color: var(--ink-white); }

.ft-specs-card {
    font-size: 15px;
    line-height: 1.9;
    padding: 20px 22px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin: 10px 0;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    color: var(--ink-mid);
    border-top: 3px solid var(--navy);
}

.ft-img-frame {
    margin-top: 12px;
}

.ft-img-frame picture {
    display: block;
    width: 100%;
}

.ft-img-frame picture img,
.ft-img-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

/* ===================== ACTION BUTTONS ===================== */
.ft-action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 12px;
    margin: 10px 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    border-top: 3px solid var(--coral);
}

.ft-action-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--coral);
    color: #fff !important;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--ease);
    box-shadow: 0 3px 12px rgba(232,49,74,0.25);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: inherit;
}

.ft-action-btn:hover {
    background: var(--coral-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(232,49,74,0.35);
}

/* ===================== CLIENT LINKS ===================== */
.ft-dl-pc,
.ft-dl-mb {
    text-align: center;
    padding: 14px;
}

.ft-dl-pc a,
.ft-dl-mb a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
}

.ft-dl-pc a:hover,
.ft-dl-mb a:hover { color: var(--coral); }

/* ===================== SHARE ===================== */
.ft-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin: 10px 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    flex-wrap: nowrap;
}

.share-url-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-dark);
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.share-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--coral);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.share-url {
    font-size: 12px;
    color: var(--ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
    font-family: 'Courier New', monospace;
}

.share-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 16px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.share-copy-btn:hover {
    background: var(--coral);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(232,49,74,0.28);
}

.share-icon { font-size: 15px; line-height: 1; }

/* ===================== PAGINATION ===================== */
.ft-pages {
    padding: 16px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.ft-page-btn,
.ft-page-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.ft-page-btn {
    background: var(--bg-card);
    color: var(--ink-mid);
    border: 1.5px solid var(--line-dark);
}

.ft-page-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.ft-page-cur {
    background: var(--coral);
    color: #fff;
    border: 1.5px solid var(--coral);
    cursor: default;
}

/* ===================== FOOTER ===================== */
.ft-extlinks {
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.ft-extlinks dl { margin: 0; }

.ft-extlinks dd {
    display: inline-block;
    margin: 4px;
}

.ft-extlinks a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
}

.ft-extlinks a:hover { color: var(--coral); }

.pd5 { padding: 3px 6px; }

.ft-site-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 3px solid var(--navy);
    margin-top: 16px;
    background: var(--bg-card);
}

.ft-site-footer p {
    margin: 5px 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.ft-site-footer a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: var(--ease);
}

.ft-site-footer a:hover { color: var(--coral); }

/* ===================== UTILS ===================== */
.clearfix::after { content: ""; display: table; clear: both; }

.only-pc { display: block; }
.only-mb { display: block; }

@media (max-width: 768px) { .only-pc { display: none !important; } }
@media (min-width: 769px) { .only-mb { display: none !important; } }

img[data-original] { background: var(--cream-mid); }

/* ===================== RESPONSIVE ===================== */

@media (max-width: 768px) {
    .ft-wrap { padding: 0 8px; }

    .ft-topbar { padding: 0.5rem 0; }
    .ft-brand  { gap: 10px; }

    .ft-site-name     { font-size: 19px; }
    .ft-domain-badge  { padding: 4px 12px; gap: 6px; }
    .ft-domain-tag    { font-size: 10px; }
    .ft-domain-url    { font-size: 16px; }

    .ft-block-pad { padding: 6px 0; }

    /* Mobile nav: zone 15% / links 85% / 2×4 */
    .ft-nav-label {
        width: 15%;
        font-size: 10px;
        padding: 8px 2px;
        white-space: normal;
        word-break: break-all;
        overflow: visible;
        border-right-width: 2px;
    }

    .ft-nav-items {
        width: 85%;
        gap: 4px;
        padding: 8px 5px;
    }

    .ft-nav-items a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .ft-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ft-section-title { font-size: 16px; }
    .ft-card-info h5  { font-size: 12px; }

    .ft-search { padding: 10px; }
    .ft-search form { gap: 6px; }
    .ft-search input[type="text"] { min-width: 90px; padding: 9px 11px; font-size: 13px; }
    .ft-search button { padding: 9px 10px; font-size: 12px; }

    .ft-tagcloud { padding: 9px 10px; gap: 6px; }
    .ft-tagpill  { padding: 4px 11px; font-size: 12px; }

    .ft-action-row { padding: 12px 8px; gap: 8px; }
    .ft-action-btn { padding: 9px 18px; font-size: 13px; }

    .ft-share-bar      { padding: 10px; gap: 8px; margin: 8px 0; }
    .share-url-display { padding: 8px 10px; gap: 6px; }
    .share-label       { font-size: 10px; }
    .share-url         { font-size: 10px; }
    .share-copy-btn    { padding: 8px 11px; font-size: 12px; }
    .share-icon        { font-size: 14px; }

    .ft-page-btn,
    .ft-page-cur { padding: 6px 11px; font-size: 12px; min-width: 30px; }

    .ft-section { margin-bottom: 10px; }

    .ft-item-header  { padding: 13px 14px; font-size: 14px; margin: 10px 0; }
    .ft-specs-card   { padding: 14px 13px; font-size: 14px; margin: 8px 0; }
}

@media (max-width: 480px) {
    .ft-topbar { padding: 0.4rem 0; }

    .ft-site-name    { font-size: 17px; }
    .ft-domain-badge { padding: 4px 10px; }
    .ft-domain-tag   { font-size: 9px; }
    .ft-domain-url   { font-size: 15px; }

    .ft-nav-label {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .ft-nav-items {
        width: 85%;
        gap: 3px;
        padding: 6px 4px;
    }

    .ft-nav-items a {
        font-size: 12px;
        padding: 3px 1px;
        width: calc((100% - 9px) / 4);
    }

    .ft-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ft-search input[type="text"] { min-width: 70px; padding: 8px 9px; font-size: 12px; }
    .ft-search button { padding: 8px 8px; font-size: 11px; }

    .ft-section-title { font-size: 15px; }
    .ft-action-btn { padding: 8px 14px; font-size: 12px; }

    .ft-share-bar   { padding: 8px; gap: 6px; }
    .share-copy-btn { padding: 7px 10px; font-size: 11px; }
}

@media (min-width: 769px) {
    .ft-grid { grid-template-columns: repeat(4, 1fr); }
    .ft-nav-label  { font-size: 14px; }
    .ft-nav-items a { font-size: 13px; }
}
