:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.22);
    --amber: #f59e0b;
    --orange: #f97316;
    --red: #ef4444;
    --blue: #38bdf8;
    --green: #22c55e;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32rem),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.13), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.nav-shell {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 22px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #fbbf24, #fb923c, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.32);
    font-size: 16px;
}

.desktop-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 14px;
    color: #cbd5e1;
    transition: 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #fbbf24;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(249, 115, 22, 0.12));
}

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

.mobile-nav {
    display: none;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 22px 18px;
    gap: 8px;
    flex-wrap: wrap;
}

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

main {
    overflow: hidden;
}

.hero-section {
    max-width: 1380px;
    margin: 28px auto 0;
    padding: 0 22px;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
}

.hero-slider {
    position: relative;
    min-height: 680px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 26% 38%, rgba(245, 158, 11, 0.25), transparent 26rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.65) 45%, rgba(2, 6, 23, 0.16) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.85), transparent 45%);
}

.hero-content {
    position: absolute;
    z-index: 2;
    left: clamp(24px, 6vw, 72px);
    bottom: clamp(34px, 8vw, 92px);
    max-width: 760px;
}

.eyebrow,
.page-hero span,
.rank-hero span,
.section-heading span {
    display: inline-flex;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 16px 0 0;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.08em;
}

.hero-content h2 {
    margin: 18px 0 0;
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1.08;
}

.hero-content p,
.page-hero p,
.rank-hero p {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.85;
}

.hero-actions,
.detail-info .btn {
    margin-top: 26px;
}

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

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

.btn.primary {
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 16px 35px rgba(245, 158, 11, 0.28);
}

.btn.ghost {
    border: 1px solid rgba(251, 191, 36, 0.38);
    color: #fde68a;
    background: rgba(15, 23, 42, 0.5);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-dots {
    position: absolute;
    left: clamp(24px, 6vw, 72px);
    bottom: 28px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 34px;
    height: 8px;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.32);
    transition: 0.25s ease;
}

.hero-dots button.active {
    width: 58px;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
}

.hero-panel {
    border-radius: 34px;
    padding: 22px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    color: #f8fafc;
    font-weight: 900;
}

.panel-title a {
    color: #fbbf24;
    font-size: 14px;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 34px 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.45);
    transition: 0.25s ease;
}

.rank-card:hover {
    transform: translateX(3px);
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(30, 41, 59, 0.72);
}

.rank-card b {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff7ed;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-size: 13px;
}

.rank-card img {
    width: 58px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
}

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

.rank-card strong {
    color: white;
    line-height: 1.35;
}

.rank-card em {
    margin-top: 5px;
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.hero-search {
    margin-top: 20px;
}

.hero-search label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 13px;
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 16px;
    outline: none;
    color: white;
    background: rgba(2, 6, 23, 0.65);
}

.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(251, 191, 36, 0.62);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.pill-cloud,
.footer-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.pill-cloud a,
.footer-tags a,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.64);
    font-size: 12px;
}

.content-section {
    max-width: 1380px;
    margin: 0 auto;
    padding: 78px 22px 0;
}

.no-top-pad {
    padding-top: 30px;
}

.glass-section {
    position: relative;
}

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

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

.section-heading a {
    color: #fbbf24;
    font-weight: 800;
}

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

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

.movie-card {
    border-radius: 24px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(251, 191, 36, 0.1);
}

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

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

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

.poster-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 48%);
}

.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 800;
}

.card-body h3 {
    margin: 9px 0 8px;
    color: white;
    font-size: 18px;
    line-height: 1.35;
}

.card-body p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    color: #94a3b8;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
}

.tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

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

.category-tile,
.category-overview-card {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.7);
    overflow: hidden;
    transition: 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    border-color: rgba(251, 191, 36, 0.45);
    transform: translateY(-4px);
}

.tile-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 150px;
    overflow: hidden;
}

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

.category-tile strong,
.category-tile span {
    display: block;
    padding: 0 18px;
}

.category-tile strong {
    padding-top: 16px;
    font-size: 20px;
}

.category-tile span {
    padding-bottom: 18px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
}

.page-hero,
.rank-hero {
    max-width: 1380px;
    margin: 28px auto 0;
    padding: 84px 22px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.20), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.92));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.page-hero h1,
.rank-hero h1 {
    margin: 12px 0;
    font-size: clamp(38px, 6vw, 68px);
    letter-spacing: -0.07em;
}

.filter-bar {
    max-width: 1380px;
    margin: 24px auto 0;
    padding: 18px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px 190px 110px;
    gap: 12px;
    align-items: center;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--line);
    border-radius: 24px;
    backdrop-filter: blur(18px);
}

.sticky-filter {
    position: sticky;
    top: 84px;
    z-index: 40;
}

.filter-bar strong {
    color: #fbbf24;
    text-align: right;
}

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

.category-overview-card {
    padding: 20px;
}

.category-overview-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.category-overview-head h2 {
    margin: 6px 0;
    font-size: 28px;
}

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

.rank-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
    gap: 28px;
}

.rank-hero img {
    width: 280px;
    height: 380px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.split-layout {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 24px;
}

.big-rank .rank-card {
    grid-template-columns: 42px 74px 1fr;
}

.big-rank .rank-card img {
    width: 74px;
    height: 96px;
}

.detail-hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: end;
    overflow: hidden;
}

.detail-bg,
.detail-mask {
    position: absolute;
    inset: 0;
}

.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) scale(1.12) saturate(1.15);
    opacity: 0.42;
}

.detail-mask {
    background:
        radial-gradient(circle at 70% 24%, rgba(245, 158, 11, 0.2), transparent 24rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.62)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.35) 55%, rgba(2, 6, 23, 0.72) 100%);
}

.detail-shell {
    position: relative;
    z-index: 2;
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 22px 70px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 38px;
    align-items: end;
}

.detail-poster img {
    width: 310px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.breadcrumb {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #fbbf24;
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.07em;
}

.one-line {
    max-width: 860px;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.player-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 22px 0;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.video-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    color: white;
    cursor: pointer;
    background:
        radial-gradient(circle, rgba(245, 158, 11, 0.16), transparent 14rem),
        rgba(2, 6, 23, 0.35);
}

.video-start.hidden {
    display: none;
}

.video-start span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 55px rgba(245, 158, 11, 0.34);
    font-size: 26px;
}

.video-start strong {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
}

.player-tip {
    color: var(--muted);
    text-align: center;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.detail-content article,
.detail-side {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.74);
}

.detail-content h2,
.detail-side h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.detail-content p {
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.95;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
}

.detail-side dt {
    color: #fbbf24;
    font-weight: 900;
}

.detail-side dd {
    margin: 0;
    color: #cbd5e1;
}

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

.footer-grid {
    max-width: 1380px;
    margin: 0 auto;
    padding: 38px 22px;
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1.1fr;
    gap: 28px;
}

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

.footer-grid h3 {
    margin: 0 0 12px;
}

.footer-grid > div:nth-child(2) a {
    display: block;
    margin: 6px 0;
}

.footer-brand {
    margin-bottom: 12px;
}

@media (max-width: 1180px) {
    .hero-section,
    .rank-hero,
    .split-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        order: 2;
    }

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

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

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

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

    .hero-section {
        min-height: auto;
    }

    .hero-slider {
        min-height: 620px;
    }

    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .category-overview-grid,
    .footer-grid,
    .detail-shell,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .detail-shell {
        gap: 24px;
        padding-top: 110px;
    }

    .detail-poster img,
    .rank-hero img {
        width: min(100%, 280px);
    }

    .filter-bar strong {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .nav-shell,
    .mobile-nav,
    .content-section,
    .hero-section,
    .page-hero,
    .rank-hero,
    .player-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .brand {
        font-size: 20px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
    }

    .hero-slider {
        min-height: 560px;
        border-radius: 24px;
    }

    .hero-panel,
    .movie-card,
    .page-hero,
    .rank-hero {
        border-radius: 22px;
    }
}
