:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --soft: #94a3b8;
    --amber: #f59e0b;
    --orange: #fb923c;
    --red: #ef4444;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.16), transparent 28rem),
        radial-gradient(circle at 85% 0%, rgba(248, 113, 113, 0.12), transparent 24rem),
        var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img,
video {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: #111827;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.3);
}

.logo-text {
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a.is-current {
    color: #fbbf24;
}

.header-search {
    margin-left: auto;
    width: min(350px, 30vw);
    position: relative;
}

.header-search input,
.filter-bar input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.56);
    outline: none;
}

.header-search input {
    height: 42px;
    padding: 0 18px;
}

.header-search input:focus,
.filter-bar input:focus {
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding: 14px 20px 20px;
    background: rgba(15, 23, 42, 0.98);
}

.mobile-panel a {
    display: block;
    padding: 12px 0;
    color: var(--muted);
    font-weight: 700;
}

.mobile-panel.is-open {
    display: block;
}

.page-main {
    min-height: calc(100vh - 72px);
}

.container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

.hero-slider {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 650ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.86) 38%, rgba(2, 6, 23, 0.24) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.05) 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 40px));
    min-height: 72vh;
    margin: 0 auto;
    display: grid;
    align-content: center;
    padding: 80px 0 110px;
}

.hero-copy {
    width: min(720px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #fde68a;
    font-size: 14px;
    font-weight: 800;
}

.hero-title {
    margin: 24px 0 18px;
    font-size: clamp(42px, 7vw, 88px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.hero-desc {
    max-width: 650px;
    margin: 0 0 26px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tag,
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 900;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #fb923c);
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.28);
}

.btn-ghost {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.55);
}

.btn-ghost:hover {
    border-color: rgba(251, 191, 36, 0.7);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-control:hover {
    background: rgba(245, 158, 11, 0.9);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #fbbf24;
}

.section {
    padding: 58px 0;
}

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

.section-kicker {
    margin: 0 0 10px;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-title,
.page-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.section-desc,
.page-desc {
    margin: 12px 0 0;
    color: var(--soft);
    font-size: 16px;
    line-height: 1.8;
}

.grid {
    display: grid;
    gap: 22px;
}

.movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #1e293b);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 260ms ease;
}

.movie-card:hover .poster-wrap img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    color: #111827;
    font-size: 12px;
    font-weight: 950;
}

.card-year {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

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

.card-title {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
}

.card-desc {
    margin: 0;
    color: var(--soft);
    font-size: 14px;
    line-height: 1.65;
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 58px 74px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.rank-index {
    font-size: 28px;
    font-weight: 950;
    color: #fbbf24;
    text-align: center;
}

.rank-cover {
    width: 74px;
    height: 100px;
    border-radius: 14px;
    object-fit: cover;
    background: #111827;
}

.rank-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
}

.rank-desc {
    margin: 0;
    color: var(--soft);
    line-height: 1.6;
}

.rank-score {
    min-width: 72px;
    text-align: center;
    color: #fbbf24;
    font-size: 22px;
    font-weight: 950;
}

.category-card,
.info-panel {
    border-radius: 24px;
    padding: 24px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.8));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.22);
}

.category-card h2,
.category-card h3,
.info-panel h2,
.info-panel h3 {
    margin: 0 0 10px;
    font-size: 23px;
    font-weight: 950;
}

.category-card p,
.info-panel p {
    color: var(--soft);
    line-height: 1.75;
}

.filter-bar {
    display: grid;
    gap: 14px;
    margin: 28px 0;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.filter-bar input {
    height: 48px;
    padding: 0 18px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.36);
    cursor: pointer;
    font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #111827;
    border-color: transparent;
    background: linear-gradient(135deg, #fbbf24, #fb923c);
}

.page-hero {
    padding: 72px 0 34px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(2, 6, 23, 0)),
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.16), transparent 24rem);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--soft);
    font-size: 14px;
}

.breadcrumb a {
    color: #fbbf24;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.player-panel,
.detail-panel,
.side-panel {
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.video-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-box video,
.video-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-box video {
    z-index: 1;
    background: #000000;
}

.video-cover {
    z-index: 2;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.34);
}

.video-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.12));
}

.video-cover.is-hidden {
    display: none;
}

.play-button {
    position: relative;
    z-index: 3;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    display: grid;
    place-items: center;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #fb923c);
    font-size: 30px;
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.32);
}

.detail-panel {
    padding: 26px;
    margin-top: 24px;
}

.detail-panel h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-section {
    margin-top: 28px;
}

.detail-section h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 950;
}

.detail-section p {
    margin: 0 0 14px;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.9;
}

.side-panel {
    padding: 18px;
}

.side-panel h2,
.side-panel h3 {
    margin: 0 0 16px;
    font-size: 21px;
    font-weight: 950;
}

.side-list {
    display: grid;
    gap: 12px;
}

.side-link {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.36);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.side-link:hover {
    border-color: rgba(245, 158, 11, 0.45);
}

.side-link img {
    width: 64px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.side-link strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    line-height: 1.35;
}

.side-link span {
    color: var(--soft);
    font-size: 13px;
}

.footer {
    margin-top: 60px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.76);
}

.footer-inner {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
    color: var(--soft);
}

.footer h2,
.footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
}

.footer p,
.footer a {
    color: var(--soft);
    line-height: 1.7;
}

.footer a {
    display: block;
    margin: 6px 0;
}

.footer a:hover {
    color: #fbbf24;
}

.empty-state {
    display: none;
    padding: 42px;
    text-align: center;
    color: var(--soft);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
}

.empty-state.is-visible {
    display: block;
}

@media (max-width: 980px) {
    .main-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-control {
        display: none;
    }

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

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

@media (max-width: 640px) {
    .nav-wrap,
    .container,
    .hero-content,
    .footer-inner {
        width: min(100% - 28px, 1280px);
        padding-left: 0;
        padding-right: 0;
    }

    .nav-wrap {
        min-height: 64px;
    }

    .logo {
        font-size: 22px;
    }

    .hero-slider,
    .hero-content {
        min-height: 78vh;
    }

    .hero-content {
        padding-top: 66px;
    }

    .hero-title {
        font-size: 42px;
    }

    .section {
        padding: 42px 0;
    }

    .section-top {
        display: block;
    }

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

    .card-body {
        padding: 13px;
    }

    .card-title {
        font-size: 15px;
    }

    .rank-item {
        grid-template-columns: 40px 58px 1fr;
    }

    .rank-score {
        display: none;
    }
}
