:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-500: #64748b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 28px 80px rgba(15, 23, 42, 0.28);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
    color: var(--gray-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    color: white;
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.32);
}

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

.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--gray-600);
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-700, #b45309);
    background: var(--amber-50);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: white;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--gray-900);
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: white;
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.32), transparent 32%), linear-gradient(135deg, #020617, #111827 45%, #1e293b);
}

.hero-stage {
    position: relative;
    min-height: 660px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: blur(4px) saturate(1.18);
    transform: scale(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.4) 100%), linear-gradient(0deg, #020617, transparent 45%);
}

.hero-content {
    position: relative;
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    align-items: center;
    gap: 58px;
    padding: 80px 0 90px;
}

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

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-500);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    margin: 0 8px 8px 0;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #fde68a;
    background: rgba(255, 255, 255, 0.13);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: 0.25s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(245, 158, 11, 0.36);
}

.btn-ghost {
    color: white;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-soft {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.13);
}

.btn.small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: var(--shadow-strong);
    aspect-ratio: 3 / 4;
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(1.5deg);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 48%);
}

.hero-poster span {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 2;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.hero-dots,
.hero-arrows {
    display: flex;
    gap: 10px;
    align-items: center;
}

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

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

.hero-arrows button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    font-size: 28px;
    cursor: pointer;
}

.stats-band {
    position: relative;
    margin-top: -42px;
    z-index: 4;
}

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

.stats-grid a {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.stats-grid strong {
    display: block;
    color: var(--gray-900);
    font-size: 24px;
}

.stats-grid span {
    color: var(--gray-600);
}

.section {
    padding: 72px 0;
}

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

.section-head.compact {
    align-items: center;
}

.section-head h2,
.page-hero h1,
.rank-hero h1,
.detail-info h1 {
    margin: 6px 0 0;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.section-link {
    color: var(--amber-600);
    font-weight: 800;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--gray-200);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    transition: 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--slate-900);
}

.catalog-grid .poster-link,
.detail-cover,
.compact-poster,
.category-cover {
    background: var(--slate-900);
}

.poster-link img,
.compact-poster img,
.category-cover img,
.detail-cover img,
.rank-spotlight img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), transparent 58%);
}

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 800;
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    color: white;
    background: rgba(15, 23, 42, 0.72);
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.card-body {
    padding: 18px;
}

.card-meta {
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 700;
}

.card-body h2 {
    margin: 7px 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

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

.category-section {
    background: linear-gradient(135deg, var(--amber-50), #fff7ed);
}

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

.category-tile {
    min-height: 170px;
    padding: 22px;
    border-radius: 24px;
    background: white;
    border: 1px solid rgba(251, 191, 36, 0.22);
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
    transition: 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.category-tile span,
.category-tile strong,
.category-tile em {
    display: block;
}

.category-tile span {
    color: var(--amber-600);
    font-weight: 900;
}

.category-tile strong {
    margin: 12px 0 8px;
    font-size: 18px;
}

.category-tile em {
    color: var(--gray-600);
    font-style: normal;
    font-size: 14px;
}

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

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
    border-radius: 28px;
    background: var(--slate-900);
    color: white;
    box-shadow: var(--shadow-strong);
}

.rank-panel .eyebrow,
.rank-panel .section-link {
    color: var(--amber-400);
}

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

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

.compact-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--gray-200);
}

.rank-panel .compact-card {
    color: var(--gray-900);
}

.compact-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
}

.compact-top {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 800;
}

.rank-index {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
}

.compact-card h2 {
    margin: 8px 0 5px;
    font-size: 17px;
    line-height: 1.25;
}

.compact-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 13px;
}

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

.page-hero {
    padding: 52px 0 20px;
}

.page-hero h1,
.rank-hero h1 {
    font-size: clamp(42px, 7vw, 72px);
}

.page-hero p,
.rank-hero p {
    max-width: 760px;
    color: var(--gray-600);
    font-size: 18px;
}

.quick-links,
.category-samples,
.side-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.quick-links a,
.category-samples a,
.side-links a {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--amber-700, #b45309);
    background: var(--amber-50);
    font-weight: 700;
    font-size: 14px;
}

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

.category-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border-radius: 28px;
    background: white;
    border: 1px solid var(--gray-200);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-cover {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
}

.category-card h2 {
    margin: 7px 0 8px;
    font-size: 28px;
}

.category-card p {
    color: var(--gray-600);
}

.rank-hero {
    margin-top: -34px;
    padding: 84px 0;
    color: white;
    background: radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.3), transparent 34%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

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

.rank-hero p {
    color: #cbd5e1;
}

.rank-spotlight {
    display: block;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-strong);
}

.rank-spotlight img {
    aspect-ratio: 3 / 4;
}

.rank-spotlight strong,
.rank-spotlight span {
    display: block;
    padding: 0 20px;
}

.rank-spotlight strong {
    padding-top: 18px;
    font-size: 22px;
}

.rank-spotlight span {
    padding-bottom: 20px;
    color: #cbd5e1;
}

.search-box {
    display: flex;
    max-width: 760px;
    margin-top: 24px;
    padding: 8px;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-soft);
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: var(--gray-900);
}

.search-box button {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    color: white;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    font-weight: 800;
    cursor: pointer;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-600);
    font-weight: 700;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    padding: 46px 0 30px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 32px;
    aspect-ratio: 3 / 4;
    box-shadow: var(--shadow-strong);
}

.detail-info h1 {
    font-size: clamp(38px, 6vw, 68px);
}

.detail-info .lead {
    max-width: 760px;
    color: var(--gray-600);
    font-size: 19px;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 14px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 800;
}

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

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

.video-node {
    width: 100%;
    height: 100%;
    background: #020617;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #020617;
}

.play-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.play-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 0%, rgba(2, 6, 23, 0.42) 52%, rgba(2, 6, 23, 0.86) 100%);
}

.play-button {
    position: relative;
    z-index: 3;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
    font-size: 34px;
}

.player-section.is-playing .play-cover {
    display: none;
}

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

.detail-content article,
.detail-content aside {
    padding: 28px;
    border-radius: 28px;
    background: white;
    border: 1px solid var(--gray-200);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.detail-content h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.detail-content p {
    margin: 0 0 24px;
    color: var(--gray-700);
    font-size: 17px;
}

.site-footer {
    margin-top: 40px;
    color: #cbd5e1;
    background: var(--slate-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 52px 0;
}

.footer-logo {
    color: white;
}

.footer-brand p {
    max-width: 380px;
    color: #94a3b8;
}

.site-footer h2 {
    color: var(--amber-400);
    font-size: 18px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 9px 0;
}

.site-footer a:hover {
    color: white;
}

.footer-bottom {
    padding: 18px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

@media (max-width: 1080px) {
    .hero-content,
    .rank-hero-inner,
    .detail-hero,
    .detail-content,
    .two-column {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .rank-spotlight,
    .rank-panel {
        max-width: 420px;
    }

    .rank-panel {
        position: static;
    }

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

@media (max-width: 860px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--gray-200);
        border-radius: 20px;
        background: white;
        box-shadow: var(--shadow-soft);
    }

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

    .nav-link {
        border-radius: 14px;
    }

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

    .hero-content {
        padding-top: 54px;
        gap: 24px;
    }

    .hero-controls {
        bottom: 18px;
    }

    .stats-grid,
    .movie-grid,
    .feature-grid,
    .catalog-grid,
    .category-grid,
    .category-card-grid,
    .rank-list.wide,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

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

    .hero-copy h1,
    .page-hero h1,
    .rank-hero h1,
    .detail-info h1 {
        font-size: 40px;
    }

    .hero-actions,
    .section-head,
    .search-box {
        align-items: stretch;
        flex-direction: column;
    }

    .stats-grid,
    .movie-grid,
    .feature-grid,
    .catalog-grid,
    .category-grid,
    .category-card-grid,
    .rank-list.wide,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .detail-hero {
        gap: 22px;
    }
}
