:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.88);
    --panel-strong: #111827;
    --line: rgba(245, 158, 11, 0.2);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --soft: #94a3b8;
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --amber-deep: #b45309;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 36rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(245, 158, 11, 0.16);
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 15px;
}

.desktop-nav a {
    padding: 9px 11px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: var(--amber-light);
    background: rgba(245, 158, 11, 0.1);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--text);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav a {
    padding: 12px 14px;
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.86);
    color: var(--muted);
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #020617;
}

.hero-stage {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: saturate(1.08) contrast(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 34%, rgba(2, 6, 23, 0.34) 72%, rgba(2, 6, 23, 0.86) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.28) 45%, rgba(2, 6, 23, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    padding: 118px 0 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.eyebrow,
.section-heading span,
.page-hero span,
.rank-title span,
.detail-info .breadcrumb a,
.detail-info .breadcrumb span {
    color: var(--amber-light);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-content h1 {
    width: min(760px, 100%);
    margin: 16px 0 20px;
    font-size: clamp(40px, 7vw, 86px);
    line-height: 1.04;
    letter-spacing: -0.06em;
    text-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    width: min(660px, 100%);
    margin: 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-line span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.66);
    color: #fde68a;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

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

.primary-btn {
    color: #111827;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    box-shadow: 0 16px 38px rgba(245, 158, 11, 0.32);
}

.ghost-btn,
.more-link {
    border: 1px solid rgba(245, 158, 11, 0.26);
    color: #fffbeb;
    background: rgba(15, 23, 42, 0.62);
}

.primary-btn:hover,
.ghost-btn:hover,
.more-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.24);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    pointer-events: none;
}

.hero-controls button {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #fff7ed;
    font-size: 26px;
    cursor: pointer;
}

.hero-controls div {
    display: flex;
    gap: 8px;
}

.hero-controls div button {
    width: 34px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.hero-controls div button.is-active {
    background: var(--amber-light);
}

.search-panel {
    width: min(1180px, calc(100% - 32px));
    margin: -42px auto 0;
    position: relative;
    z-index: 6;
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 12px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 14px;
    outline: none;
    background: rgba(2, 6, 23, 0.7);
    color: var(--text);
    padding: 0 15px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--amber-light);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.section {
    padding: 70px 0;
}

.section-heading {
    margin-bottom: 28px;
    text-align: center;
}

.left-heading {
    text-align: left;
}

.compact-heading {
    margin-bottom: 0;
    text-align: left;
}

.section-heading h2,
.page-hero h1,
.rank-title h2,
.story-card h2 {
    margin: 6px 0 10px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.story-card p,
.site-footer p {
    margin: 0;
    color: var(--muted);
}

.category-grid,
.category-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.category-tile,
.category-card-large a {
    min-height: 154px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.88)),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 54%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.category-tile span,
.category-card-large span {
    color: var(--amber-light);
    font-weight: 900;
    font-size: 20px;
}

.category-tile strong,
.category-card-large p {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

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

.dense-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.26);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(2, 6, 23, 0.92) 100%);
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: var(--amber-light);
    font-size: 12px;
    font-weight: 900;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #111827;
    background: var(--amber-light);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--soft);
    font-size: 13px;
}

.movie-meta a {
    color: var(--amber-light);
    font-weight: 800;
}

.movie-card h3 {
    margin: 8px 0;
    color: #fff7ed;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card p {
    min-height: 72px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.tag-line {
    gap: 6px;
}

.tag-line span {
    min-height: 26px;
    padding: 3px 9px;
    color: #fef3c7;
    font-size: 12px;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 94px;
    padding: 22px;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.84);
    box-shadow: var(--shadow);
}

.rank-panel ol {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    display: grid;
    gap: 12px;
}

.rank-item a {
    display: grid;
    grid-template-columns: 34px 54px 1fr;
    gap: 12px;
    align-items: center;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.16);
    color: var(--amber-light);
    font-weight: 900;
}

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

.rank-text strong,
.rank-text em {
    display: block;
}

.rank-text strong {
    color: #fff7ed;
    line-height: 1.35;
}

.rank-text em {
    color: var(--soft);
    font-size: 12px;
    font-style: normal;
}

.page-main,
.detail-main {
    min-height: 70vh;
}

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

.simple-hero,
.category-hero {
    text-align: center;
}

.category-filter {
    width: min(760px, 100%);
    margin: 24px auto 0;
}

.category-card-grid {
    grid-template-columns: repeat(2, 1fr);
}

.category-card-large h2 {
    margin: 4px 0;
    font-size: 28px;
}

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

.ranking-card a {
    display: grid;
    grid-template-columns: 64px 96px 1fr;
    gap: 18px;
    align-items: center;
    min-height: 138px;
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.82);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-card a:hover {
    transform: translateX(6px);
    border-color: rgba(245, 158, 11, 0.42);
}

.ranking-index {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--amber-light), var(--amber-deep));
    color: #111827;
    font-weight: 1000;
    font-size: 22px;
}

.ranking-card img {
    width: 96px;
    height: 128px;
    border-radius: 16px;
    object-fit: cover;
}

.ranking-card span {
    color: var(--amber-light);
    font-weight: 800;
}

.ranking-card h2 {
    margin: 4px 0 6px;
    color: #fff7ed;
}

.ranking-card p {
    margin: 0;
    color: var(--muted);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    padding: 80px 0 52px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(1.08);
    transform: scale(1.08);
    opacity: 0.36;
}

.detail-backdrop span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.84) 44%, rgba(2, 6, 23, 0.94) 100%);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster {
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.detail-info h1 {
    margin: 14px 0 16px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

.lead-text {
    width: min(720px, 100%);
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 20px;
}

.detail-tags {
    margin-bottom: 26px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    padding: 50px 0 20px;
}

.player-card,
.story-card {
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

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

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.48));
    cursor: pointer;
}

.play-layer span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    box-shadow: 0 18px 48px rgba(245, 158, 11, 0.35);
    font-size: 28px;
}

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

.story-card {
    padding: 24px;
}

.story-card h2 {
    font-size: 26px;
}

.site-footer {
    margin-top: 50px;
    border-top: 1px solid rgba(245, 158, 11, 0.14);
    background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    margin-bottom: 14px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--amber-light);
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 7px 10px;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 24px;
    color: var(--soft);
    font-size: 13px;
}

.is-hidden-card {
    display: none;
}

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

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

    .split-section,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero,
    .hero-content {
        min-height: 600px;
    }

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

    .hero-controls {
        bottom: 22px;
    }

    .filter-bar,
    .footer-grid,
    .detail-wrap,
    .category-card-grid,
    .ranking-card a {
        grid-template-columns: 1fr;
    }

    .detail-wrap {
        gap: 24px;
    }

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

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

    .section {
        padding: 48px 0;
    }

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

    .movie-card h3 {
        font-size: 16px;
    }

    .movie-card p {
        min-height: auto;
        font-size: 13px;
    }

    .ranking-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

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

    .hero-actions {
        width: 100%;
    }

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