:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: #0f172a;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --amber: #f59e0b;
    --orange: #f97316;
    --red: #ef4444;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.16), transparent 32rem),
        radial-gradient(circle at 88% 8%, rgba(249, 115, 22, 0.13), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.scrolled,
.site-header.menu-open {
    background: rgba(2, 6, 23, 0.94);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1280px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.32);
}

.brand-name,
.footer-brand span:last-child {
    font-size: 22px;
    background: linear-gradient(90deg, #fbbf24, #fb923c, #facc15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.nav-more a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--soft);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-more a:hover,
.nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.22), rgba(249, 115, 22, 0.18));
    transform: translateY(-1px);
}

.nav-more {
    display: none;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    border-radius: 999px;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.76) 38%, rgba(2, 6, 23, 0.22) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.18) 46%, rgba(2, 6, 23, 0.78) 100%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 110px;
    width: min(720px, calc(100% - 48px));
}

.hero-kicker,
.meta-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.hero-kicker span,
.meta-line span,
.detail-meta span {
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.48);
}

.hero h1 {
    margin: 16px 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.26);
}

.ghost-button {
    border: 1px solid rgba(248, 250, 252, 0.2);
    color: #fff;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(14px);
}

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

.primary-button.small,
.ghost-button.small {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
}

.hero-dots {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 54px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero-dot {
    width: 34px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.hero-dot.active {
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.hero-search {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 54px;
    z-index: 5;
    width: min(440px, calc(100% - 48px));
    display: flex;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #fff;
    background: rgba(2, 6, 23, 0.72);
    outline: none;
    padding: 0 14px;
}

.hero-search button {
    margin-left: 8px;
    border: 0;
    border-radius: 12px;
    padding: 0 20px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.section,
.page-main {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 54px 0;
}

.block-lift {
    margin-top: -24px;
    position: relative;
    z-index: 4;
}

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

.section-head h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.detail-text h2,
.text-section h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

.eyebrow {
    margin: 0 0 8px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

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

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

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

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

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(245, 158, 11, 0.86);
    transform: translate(-50%, -50%) scale(0.76);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(10px);
}

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

.rank-no {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

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

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.card-tags span,
.detail-tags a {
    border-radius: 999px;
    padding: 4px 9px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.12);
    font-size: 12px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 26px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 72px 1fr;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.58);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: rgba(30, 41, 59, 0.72);
    transform: translateX(4px);
}

.rank-item img {
    width: 72px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

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

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

.mini-rank {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    background: rgba(245, 158, 11, 0.2);
}

.spotlight-box,
.page-hero,
.text-section {
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 8px);
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 22rem),
        rgba(15, 23, 42, 0.64);
    box-shadow: var(--shadow);
}

.spotlight-box {
    padding: 34px;
    min-height: 100%;
}

.spotlight-box p,
.page-hero p,
.text-section p,
.detail-text p {
    color: var(--soft);
}

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

.category-card,
.category-overview-card {
    min-height: 168px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.45));
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.45);
}

.category-card span,
.category-overview-card h2 {
    display: block;
    margin-bottom: 12px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

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

.category-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 16px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.page-main {
    padding-top: 116px;
}

.page-hero {
    padding: clamp(34px, 6vw, 64px);
    margin-bottom: 18px;
}

.compact-hero h1 {
    margin-bottom: 14px;
}

.narrow-hero {
    max-width: 860px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.58);
}

.global-filter {
    grid-template-columns: 1fr 180px 180px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 108px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.62);
}

.ranking-cover img {
    width: 108px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
}

.ranking-main h2 {
    margin: 5px 0 8px;
    font-size: 24px;
}

.ranking-main p {
    margin: 0 0 10px;
    color: var(--soft);
}

.ranking-number {
    color: #fbbf24;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.score {
    font-size: 28px;
    color: #fbbf24;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--muted);
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 24px;
}

.detail-info .lead {
    max-width: 820px;
    color: var(--soft);
    font-size: 18px;
}

.detail-info h1 {
    margin: 0 0 16px;
}

.detail-meta {
    margin: 22px 0 8px;
}

.player-section {
    margin-top: 34px;
}

.player-section h2 {
    margin-bottom: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

.movie-player {
    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: #fff;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22), rgba(2, 6, 23, 0.78) 56%, rgba(0, 0, 0, 0.86));
    z-index: 4;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-badge {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-size: 28px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.34);
}

.detail-text {
    display: grid;
    gap: 16px;
}

.detail-text h2 {
    font-size: 28px;
    margin-top: 18px;
}

.detail-text p {
    margin: 0;
    font-size: 17px;
}

.text-section {
    padding: 34px;
    max-width: 880px;
}

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

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

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

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

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

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

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

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 32px;
    color: #64748b;
    font-size: 14px;
}

[hidden],
.is-filter-hidden {
    display: none !important;
}

@media (min-width: 1180px) {
    .nav-more {
        display: inline-flex;
        align-items: center;
        gap: 2px;
    }
}

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

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

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
    }

    .menu-button {
        display: block;
    }

    .nav {
        position: fixed;
        top: 66px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(2, 6, 23, 0.96);
        backdrop-filter: blur(18px);
    }

    .site-header.menu-open .nav {
        display: flex;
    }

    .nav-link,
    .nav-more a {
        justify-content: center;
    }

    .hero {
        height: 640px;
        min-height: 640px;
    }

    .hero-content {
        bottom: 176px;
    }

    .hero-search {
        left: 24px;
        right: 24px;
        bottom: 86px;
        width: auto;
    }

    .hero-dots {
        bottom: 42px;
    }

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

    .card-body {
        padding: 13px;
    }

    .card-body p,
    .card-tags {
        display: none;
    }

    .section-head,
    .ranking-row {
        align-items: start;
    }

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

    .ranking-cover img {
        width: 82px;
    }

    .score {
        grid-column: 2;
        font-size: 20px;
    }

    .filter-panel,
    .global-filter {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        padding: 16px;
    }

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

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

@media (max-width: 520px) {
    .brand-name {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-search button {
        margin: 8px 0 0;
        min-height: 42px;
    }

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

    .rank-item {
        grid-template-columns: auto 62px 1fr;
    }

    .rank-item img {
        width: 62px;
    }
}
