:root {
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --cyan: #22d3ee;
    --cyan-deep: #0891b2;
    --cyan-soft: rgba(34, 211, 238, 0.16);
    --gold: #facc15;
    --rose: #fb7185;
    --green: #34d399;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.18), transparent 32rem),
        radial-gradient(circle at 88% 0%, rgba(99, 102, 241, 0.18), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #07111f 48%, #020617 100%);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.55), transparent);
    backdrop-filter: blur(14px);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-solid {
    border-color: var(--line);
    background: rgba(2, 6, 23, 0.94);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cyan), #6366f1);
    color: #00111f;
    font-weight: 900;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.32);
}

.brand-text strong {
    display: block;
    letter-spacing: 0.02em;
    font-size: 18px;
    line-height: 1.1;
}

.brand-text span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 13px;
    color: #cbd5e1;
    font-size: 14px;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #ecfeff;
    background: var(--cyan-soft);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 9px 11px;
    background: rgba(15, 23, 42, 0.82);
    color: #e2e8f0;
    cursor: pointer;
}

main {
    flex: 1;
}

.page-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.page-section.tight {
    padding-top: 28px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--cyan);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.section-head p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.spotlight {
    position: relative;
    min-height: 720px;
    padding: 120px 0 64px;
    overflow: hidden;
}

.spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.35) 100%),
        radial-gradient(circle at 74% 24%, rgba(34, 211, 238, 0.2), transparent 30rem);
    pointer-events: none;
    z-index: 2;
}

.spotlight-track {
    position: absolute;
    inset: 0;
}

.spotlight-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 0.7s ease, transform 1.3s ease;
}

.spotlight-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.spotlight-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
    filter: saturate(1.08) contrast(1.06);
}

.spotlight-content {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    min-height: 536px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 360px;
    align-items: center;
    gap: 52px;
}

.spotlight-copy {
    max-width: 760px;
}

.spotlight-copy-panel {
    display: none;
}

.spotlight-copy-panel.is-active {
    display: block;
}

.spotlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(103, 232, 249, 0.24);
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.14);
    color: #a5f3fc;
    font-size: 13px;
}

.spotlight h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(38px, 7vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.spotlight h1 span {
    color: var(--cyan);
}

.spotlight-copy p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.9;
}

.spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.primary-btn,
.secondary-btn,
.soft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 15px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    color: #00111f;
    box-shadow: 0 16px 36px rgba(34, 211, 238, 0.24);
}

.secondary-btn {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
}

.soft-btn {
    min-height: 40px;
    padding: 0 15px;
    background: rgba(15, 23, 42, 0.75);
    color: #cbd5e1;
    border: 1px solid var(--line);
}

.primary-btn:hover,
.secondary-btn:hover,
.soft-btn:hover {
    transform: translateY(-2px);
}

.spotlight-card {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.58);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.spotlight-card img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
}

.spotlight-card-body {
    padding: 20px;
}

.spotlight-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.spotlight-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.spotlight-dots {
    position: relative;
    z-index: 4;
    width: min(1180px, calc(100% - 32px));
    margin: -40px auto 0;
    display: flex;
    gap: 10px;
}

.spotlight-dots button {
    width: 36px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.34);
    cursor: pointer;
    transition: width 0.22s ease, background 0.22s ease;
}

.spotlight-dots button.is-active {
    width: 58px;
    background: var(--cyan);
}

.quick-search {
    width: min(1180px, calc(100% - 32px));
    margin: -34px auto 0;
    position: relative;
    z-index: 5;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
}

.quick-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.7);
    color: #e2e8f0;
    outline: none;
    padding: 0 15px;
}

.quick-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(34, 211, 238, 0.74);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #cbd5e1;
    transition: transform 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.category-chip:hover {
    color: #ecfeff;
    border-color: rgba(34, 211, 238, 0.52);
    transform: translateY(-2px);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.movie-grid.compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.76);
    min-height: 100%;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 24px 70px rgba(8, 145, 178, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0b1220;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.07);
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(2, 6, 23, 0.84) 100%);
    pointer-events: none;
}

.card-badges {
    position: absolute;
    inset: 12px 12px auto 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.78);
    color: #e2e8f0;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.badge.hot {
    background: rgba(34, 211, 238, 0.16);
    color: #a5f3fc;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    flex: 1;
}

.card-body h2,
.card-body h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.card-body h2 a:hover,
.card-body h3 a:hover {
    color: var(--cyan);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--muted-2);
    font-size: 13px;
}

.card-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
    font-size: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.78);
    color: #94a3b8;
    font-size: 12px;
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rank-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.72);
    padding: 12px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.36);
}

.rank-card img {
    width: 88px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 13px;
}

.rank-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--gold);
    font-weight: 900;
    letter-spacing: 0.02em;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 190px 190px 190px;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.72);
    margin-bottom: 24px;
}

.category-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 90% 8%, rgba(34, 211, 238, 0.16), transparent 16rem),
        rgba(15, 23, 42, 0.74);
    padding: 26px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.36);
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.75;
}

.mini-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.mini-list a {
    overflow: hidden;
    border-radius: 13px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.42);
}

.mini-list img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-spotlight {
    padding: 118px 0 46px;
    background:
        radial-gradient(circle at 86% 12%, rgba(34, 211, 238, 0.16), transparent 28rem),
        linear-gradient(180deg, rgba(15, 23, 42, 0.64), transparent);
}

.detail-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 22px;
}

.breadcrumb a:hover {
    color: var(--cyan);
}

.detail-main {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-copy .lead {
    margin: 22px 0 0;
    color: #cbd5e1;
    line-height: 1.9;
    font-size: 17px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.watch-panel {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-xl);
    padding: 18px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: var(--shadow);
}

.watch-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.player-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.76));
    color: #fff;
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-button {
    display: grid;
    place-items: center;
    gap: 12px;
}

.player-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    color: #00111f;
    font-size: 28px;
    box-shadow: 0 18px 45px rgba(34, 211, 238, 0.3);
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 22px;
}

.story-card {
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.66);
    padding: 24px;
}

.story-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.story-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
}

.no-result {
    display: none;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.66);
    color: var(--muted);
    text-align: center;
}

.no-result.is-visible {
    display: block;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.86);
    margin-top: 36px;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.footer-inner p {
    margin: 8px 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #cbd5e1;
}

.footer-links a:hover {
    color: var(--cyan);
}

@media (max-width: 1060px) {
    .movie-grid,
    .movie-grid.compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .spotlight-content {
        grid-template-columns: 1fr;
    }

    .spotlight-card {
        display: none;
    }

    .rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .detail-main {
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 68px;
    }

    .brand-text span {
        display: none;
    }

    .site-nav {
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        justify-content: center;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .spotlight {
        min-height: 680px;
        padding-top: 104px;
    }

    .spotlight-content {
        min-height: 510px;
        gap: 24px;
    }

    .quick-search {
        grid-template-columns: 1fr;
        margin-top: -18px;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .rank-grid,
    .category-card-grid,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .detail-main {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 320px;
    }

    .mini-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 470px) {
    .movie-grid,
    .movie-grid.compact {
        grid-template-columns: 1fr;
    }

    .spotlight h1 {
        font-size: 40px;
    }

    .spotlight-actions {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .rank-card {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .rank-card img {
        width: 78px;
    }
}
