:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111827;
    --card: #1e293b;
    --card-2: #172033;
    --text: #f8fafc;
    --muted: #94a3b8;
    --subtle: #64748b;
    --line: rgba(148, 163, 184, 0.18);
    --amber: #f59e0b;
    --amber-2: #d97706;
    --blue: #3b82f6;
    --emerald: #10b981;
    --red: #ef4444;
    --shadow: 0 22px 60px rgba(2, 6, 23, 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.10), transparent 32rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 36rem),
        var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.nav-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(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--amber), #fb7185);
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.30);
    color: white;
    font-size: 14px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
    overflow: hidden;
}

.main-nav a {
    transition: color 0.2s ease;
    white-space: nowrap;
}

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

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

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

.mobile-nav {
    display: none;
    position: fixed;
    inset: 72px 16px auto 16px;
    max-height: calc(100vh - 96px);
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--muted);
}

.mobile-nav a:hover {
    background: rgba(245, 158, 11, 0.12);
    color: var(--amber);
}

.hero-slider {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #111827 50%, #020617 100%);
}

.hero-track {
    position: relative;
    min-height: 540px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 430px);
    align-items: center;
    gap: 42px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
    position: fixed;
    inset: 0;
    opacity: 0.17;
    background-size: cover;
    background-position: center;
    filter: blur(22px) saturate(1.2);
    transform: scale(1.08);
}

.hero-media {
    position: relative;
    z-index: 1;
    min-height: 360px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.20), rgba(59, 130, 246, 0.16));
    box-shadow: var(--shadow);
}

.hero-media img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.74), transparent 55%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--amber);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 620px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.home-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn,
.home-search button {
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    color: white;
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.25);
}

.ghost-btn {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.62);
    color: #e2e8f0;
}

.primary-btn:hover,
.ghost-btn:hover,
.home-search button:hover {
    transform: translateY(-2px);
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    cursor: pointer;
}

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

.hero-glow {
    position: absolute;
    z-index: 1;
    width: 380px;
    height: 380px;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.28;
    animation: pulseGlow 7s ease-in-out infinite;
}

.hero-glow-left {
    top: 90px;
    left: 11%;
    background: var(--amber);
}

.hero-glow-right {
    right: 9%;
    bottom: 60px;
    background: var(--blue);
    animation-delay: 1.4s;
}

@keyframes pulseGlow {
    0%,
    100% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.12);
    }
}

.quick-search-panel {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: -34px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: var(--shadow);
}

.home-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.home-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    outline: none;
    background: rgba(2, 6, 23, 0.62);
    color: white;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(245, 158, 11, 0.65);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.quick-links a {
    padding: 10px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 13px;
}

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

.section-block {
    padding: 72px 0 0;
}

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

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

.section-head a {
    color: var(--amber);
    font-weight: 800;
    white-space: nowrap;
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.96));
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.24);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: 0 28px 52px rgba(2, 6, 23, 0.45);
}

.poster-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(59, 130, 246, 0.14));
}

.feature-grid .poster-wrap {
    height: 290px;
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.72), transparent 52%);
}

.poster-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.70);
    color: white;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

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

.movie-card h3 {
    margin: 12px 0 8px;
    color: white;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

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

.card-meta {
    display: flex;
    gap: 12px;
    color: var(--subtle);
    font-size: 13px;
}

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

.category-tile {
    min-height: 148px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.13), rgba(59, 130, 246, 0.10));
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.category-tile span {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 900;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: auto 112px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.82);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-card:hover {
    transform: translateX(4px);
    border-color: rgba(245, 158, 11, 0.38);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    font-weight: 900;
}

.rank-small {
    font-size: 13px;
}

.rank-card img {
    width: 112px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}

.rank-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.rank-card p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--subtle);
    font-size: 12px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 74px;
    background: radial-gradient(circle at 18% 8%, rgba(245, 158, 11, 0.16), transparent 28rem),
        radial-gradient(circle at 82% 26%, rgba(59, 130, 246, 0.14), transparent 34rem),
        linear-gradient(135deg, #0f172a, #020617);
}

.page-hero h1 {
    max-width: 860px;
    margin: 0 0 16px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.86);
}

.category-cover {
    height: 190px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(59, 130, 246, 0.12));
}

.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 4px 0 8px;
    font-size: 24px;
}

.category-overview-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.category-samples {
    display: grid;
    gap: 6px;
}

.category-samples a {
    color: #cbd5e1;
    font-size: 14px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.86);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.search-grid .movie-card.is-hidden {
    display: none;
}

.detail-shell {
    padding-top: 38px;
}

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

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

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

.player-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.video-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.18));
    cursor: pointer;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    padding-left: 5px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.94);
    color: white;
    font-size: 28px;
    box-shadow: 0 20px 42px rgba(245, 158, 11, 0.34);
}

.detail-card,
.side-card {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.88);
}

.main-detail-card h1 {
    margin: 18px 0 10px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.main-detail-card .lead {
    color: #cbd5e1;
    font-size: 19px;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.detail-card h2,
.side-card h2,
.site-footer h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.detail-card p {
    margin: 0 0 20px;
    color: #cbd5e1;
}

.side-cover {
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(59, 130, 246, 0.12));
    box-shadow: var(--shadow);
}

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

dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

dt {
    color: var(--subtle);
}

dd {
    margin: 0;
    color: #e2e8f0;
}

.site-footer {
    margin-top: 86px;
    padding: 58px 0 24px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.70);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.5fr;
    gap: 28px;
}

.footer-logo {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
}

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

.footer-links a {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 13px;
}

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

.footer-links.compact a {
    padding: 6px 9px;
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    font-size: 13px;
    text-align: center;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: var(--amber);
    color: white;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.30);
    cursor: pointer;
}

.back-top.is-visible {
    display: block;
}

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

    .menu-toggle {
        display: block;
    }

    body.nav-open .mobile-nav {
        display: block;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 56px 0 86px;
    }

    .hero-media {
        display: none;
    }

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

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

    .rank-list.two-col,
    .category-overview-grid,
    .footer-grid,
    .detail-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .quick-search-panel {
        grid-template-columns: 1fr;
    }

    .quick-links {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero-slider,
    .hero-track {
        min-height: 520px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-actions,
    .section-head,
    .home-search {
        align-items: stretch;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

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

    .poster-wrap,
    .feature-grid .poster-wrap {
        height: 210px;
    }

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

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

    .rank-card {
        grid-template-columns: 44px 86px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .rank-card img {
        width: 86px;
        height: 64px;
    }

    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .category-cover {
        height: 220px;
    }

    .page-hero {
        padding: 72px 0 58px;
    }
}

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

    .poster-wrap,
    .feature-grid .poster-wrap {
        height: 250px;
    }

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

    .rank-card img {
        display: none;
    }
}
