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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.14);
    color: var(--amber);
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    font-weight: 700;
}

.nav-links a {
    color: var(--muted-strong);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--amber);
}

.nav-search {
    display: flex;
    align-items: center;
    width: 320px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--line);
}

.nav-search input,
.big-search input {
    min-width: 0;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.nav-search button,
.big-search button {
    border: 0;
    color: #111827;
    background: var(--amber);
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-search button:hover,
.big-search button:hover {
    background: var(--orange);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 22px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: opacity 0.9s ease, transform 1.4s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-shade,
.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(2, 6, 23, 0.75), rgba(2, 6, 23, 0.2));
}

.hero-content {
    position: relative;
    max-width: 1280px;
    min-height: 72vh;
    margin: 0 auto;
    padding: 100px 24px 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-tags,
.info-chips,
.detail-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags span,
.info-chips span,
.detail-tags a,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    padding: 5px 10px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    max-width: 780px;
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    color: var(--muted-strong);
    font-size: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.primary-btn,
.ghost-btn,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    color: #111827;
    background: var(--amber);
    box-shadow: 0 14px 35px rgba(245, 158, 11, 0.28);
}

.primary-btn:hover {
    background: var(--orange);
    transform: translateY(-2px);
}

.ghost-btn,
.section-link {
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
}

.ghost-btn:hover,
.section-link:hover {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.16);
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text);
    background: rgba(15, 23, 42, 0.7);
    font-size: 36px;
    cursor: pointer;
}

.hero-control.prev {
    left: 22px;
}

.hero-control.next {
    right: 22px;
}

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

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

.hero-dot.active {
    background: var(--amber);
}

.intro-strip,
.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
}

.intro-strip {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.intro-strip h2,
.section-heading h2,
.page-hero h1,
.article-section h2,
.detail-copy h1 {
    margin: 0;
    color: var(--text);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.intro-strip h2 {
    font-size: clamp(26px, 4vw, 44px);
}

.intro-strip p,
.section-heading p,
.page-hero p,
.article-section p,
.movie-card-body p,
.detail-copy p {
    color: var(--muted);
}

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

.section-heading h2 {
    font-size: clamp(26px, 4vw, 42px);
}

.compact-heading {
    align-items: center;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.84));
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 28px 70px rgba(245, 158, 11, 0.12);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.96));
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.poster b {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #111827;
    background: var(--amber);
    font-size: 13px;
}

.movie-card-body {
    padding: 18px;
}

.movie-meta {
    color: #fbbf24;
    font-size: 13px;
    font-weight: 800;
}

.movie-card h2 {
    margin: 8px 0 8px;
    font-size: 21px;
    line-height: 1.25;
}

.movie-card h2 a:hover {
    color: var(--amber);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    min-height: 30px;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 54px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-item:hover {
    border-color: rgba(245, 158, 11, 0.5);
}

.rank-item span {
    color: var(--amber);
    font-weight: 900;
    font-size: 20px;
}

.rank-item img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-item strong {
    display: block;
    color: var(--text);
}

.rank-item em {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

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

.category-tile,
.category-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.86));
    padding: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.52);
}

.category-tile strong,
.category-card h2 {
    display: block;
    margin: 0 0 8px;
    font-size: 22px;
}

.category-tile span,
.category-card p,
.category-card a {
    color: var(--muted-strong);
}

.category-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-card div a {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
}

.page-hero {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px 28px;
}

.small-hero h1 {
    font-size: clamp(36px, 6vw, 68px);
}

.small-hero p {
    max-width: 780px;
    font-size: 19px;
}

.big-search {
    display: flex;
    max-width: 720px;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
}

.empty-result {
    display: none;
    padding: 40px;
    color: var(--muted);
    text-align: center;
}

.empty-result.show {
    display: block;
}

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 42px;
}

.pager a,
.pager span {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 12px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.85);
}

.pager a:hover,
.pager .active {
    color: #111827;
    background: var(--amber);
    border-color: var(--amber);
}

.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 76px 90px 1fr 70px;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.8);
}

.ranking-number {
    color: var(--amber);
    font-size: 28px;
    font-weight: 900;
}

.ranking-poster img {
    width: 90px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-row h2 {
    margin: 0 0 8px;
}

.ranking-row p {
    margin: 0 0 8px;
    color: var(--muted-strong);
}

.ranking-row span {
    color: var(--muted);
}

.ranking-row strong {
    color: var(--amber);
    font-size: 26px;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    background-size: cover;
    background-position: center;
}

.detail-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 24px 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted-strong);
    margin-bottom: 34px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-cover {
    width: 280px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    margin-top: 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1;
}

.detail-copy p {
    max-width: 780px;
    font-size: 20px;
}

.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0;
}

.detail-facts span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--line);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--text);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    isolation: isolate;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, 0.64);
}

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

.play-circle {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #111827;
    background: var(--amber);
    font-size: 34px;
    box-shadow: 0 22px 50px rgba(245, 158, 11, 0.35);
}

.article-section {
    max-width: 980px;
}

.article-section h2 {
    margin: 32px 0 12px;
    font-size: 30px;
}

.article-section p {
    margin: 0;
    font-size: 18px;
    color: var(--muted-strong);
}

.info-chips,
.detail-tags {
    margin-top: 24px;
}

.related-grid .compact .movie-card-body p {
    min-height: 0;
}

.site-footer {
    margin-top: 64px;
    padding: 54px 24px 34px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.95));
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
}

.footer-grid p,
.copyright {
    color: var(--muted);
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: var(--muted-strong);
}

.footer-grid a:hover {
    color: var(--amber);
}

.copyright {
    max-width: 1280px;
    margin: 28px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

@media (max-width: 1080px) {
    .nav-search {
        display: none;
    }

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

    .split-section,
    .intro-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .navbar {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 10px 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        border-top: 1px solid var(--line);
    }

    .hero-control {
        display: none;
    }

    .hero-content {
        padding: 84px 18px 100px;
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .detail-cover {
        width: min(260px, 78vw);
    }

    .ranking-row {
        grid-template-columns: 48px 78px 1fr;
    }

    .ranking-row strong {
        grid-column: 2 / 4;
    }
}

@media (max-width: 560px) {
    .brand {
        font-size: 22px;
    }

    .content-section,
    .intro-strip,
    .page-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .movie-grid {
        gap: 16px;
    }

    .hero h1,
    .detail-copy h1 {
        letter-spacing: -0.04em;
    }

    .hero-actions,
    .detail-facts {
        width: 100%;
    }

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