:root {
    --ash-50: #f8f9fa;
    --ash-100: #f1f3f5;
    --ash-200: #dee2e6;
    --ash-300: #ced4da;
    --ash-400: #adb5bd;
    --ash-500: #6c757d;
    --ash-600: #495057;
    --ash-700: #343a40;
    --ash-800: #212529;
    --ash-900: #0d0f12;
    --volcanic-50: #fef5f1;
    --volcanic-100: #fdeae1;
    --volcanic-200: #fbd5c3;
    --volcanic-300: #f8bfa5;
    --volcanic-600: #f07f4a;
    --volcanic-700: #ee692c;
    --volcanic-800: #e84118;
    --volcanic-900: #c03711;
    --lava-50: #fff5e6;
    --lava-100: #ffe6b3;
    --lava-400: #ffb81a;
    --lava-600: #e68a00;
    --shadow-soft: 0 18px 50px rgba(13, 15, 18, 0.12);
    --shadow-strong: 0 24px 70px rgba(13, 15, 18, 0.28);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ash-900);
    background: linear-gradient(180deg, var(--ash-50) 0%, #ffffff 48%, var(--volcanic-50) 100%);
}

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

img {
    display: block;
    max-width: 100%;
    background: linear-gradient(135deg, var(--ash-900), var(--volcanic-800));
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--volcanic-800), var(--volcanic-900));
    box-shadow: 0 16px 38px rgba(192, 55, 17, 0.28);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--ash-900);
    background: var(--lava-400);
    box-shadow: 0 12px 32px rgba(255, 184, 26, 0.36);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.03em;
}

.brand-text small {
    color: var(--volcanic-200);
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #ffffff;
    font-weight: 650;
}

.nav-links a,
.mobile-nav a {
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--lava-400);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: var(--lava-400);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    color: #ffffff;
}

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

main {
    overflow: hidden;
}

.hero-slider {
    position: relative;
    min-height: 620px;
    background: var(--ash-900);
    color: #ffffff;
    isolation: isolate;
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
}

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

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

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

.hero-shade {
    background:
        radial-gradient(circle at 82% 24%, rgba(255, 184, 26, 0.20), transparent 30%),
        linear-gradient(90deg, rgba(13, 15, 18, 0.95) 0%, rgba(13, 15, 18, 0.72) 44%, rgba(13, 15, 18, 0.22) 100%),
        linear-gradient(0deg, rgba(13, 15, 18, 0.98) 0%, transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 138px;
    max-width: 720px;
}

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

.hero-content h2 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.hero-content p:not(.hero-kicker) {
    margin: 0;
    max-width: 620px;
    color: var(--ash-200);
    font-size: 18px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
    color: var(--ash-900);
    background: var(--lava-400);
    box-shadow: 0 14px 34px rgba(255, 184, 26, 0.28);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.hero-title-card {
    position: absolute;
    z-index: 4;
    right: max(16px, calc((100vw - 1180px) / 2));
    bottom: 58px;
    width: min(430px, calc(100% - 32px));
    padding: 26px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
}

.hero-title-card p,
.hero-title-card span {
    display: block;
    margin: 0;
    color: var(--volcanic-100);
}

.hero-title-card h1 {
    margin: 8px 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.14;
}

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

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

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

.section-block {
    width: min(1180px, calc(100% - 32px));
    margin: 52px auto;
}

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

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

.section-head h2,
.intro-panel h2,
.detail-section h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.text-link {
    color: var(--volcanic-700);
    font-weight: 800;
}

.intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    align-items: center;
    gap: 24px;
    padding: 30px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.intro-panel p:last-child {
    margin: 14px 0 0;
    color: var(--ash-600);
    line-height: 1.8;
}

.hero-search {
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--ash-200);
    border-radius: 999px;
    background: var(--ash-50);
}

.hero-search input,
.filter-row input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ash-900);
}

.hero-search button,
.filter-row button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: var(--ash-800);
    background: #ffffff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(13, 15, 18, 0.08);
}

.hero-search button,
.filter-row button.active {
    color: var(--ash-900);
    background: var(--lava-400);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(13, 15, 18, 0.18);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--ash-900);
}

.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);
}

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

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    color: var(--ash-900);
    background: var(--lava-400);
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--volcanic-800), var(--volcanic-900));
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--volcanic-700);
}

.movie-meta,
.movie-genre,
.movie-desc {
    margin: 0 0 8px;
    color: var(--ash-600);
    font-size: 14px;
    line-height: 1.6;
}

.movie-genre {
    color: var(--volcanic-700);
    font-weight: 750;
}

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

.tag-row span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--volcanic-700);
    background: var(--volcanic-50);
    font-size: 12px;
    font-weight: 800;
}

.tag-row.strong span {
    color: var(--ash-900);
    background: var(--lava-400);
}

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

.category-tile {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

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

.category-tile h3,
.category-card-large h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-tile p,
.category-card-large p {
    margin: 0;
    color: var(--ash-600);
    line-height: 1.75;
}

.mini-links {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.mini-links a {
    color: var(--volcanic-700);
    font-weight: 750;
}

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

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

.ranking-panel {
    position: sticky;
    top: 100px;
    padding: 22px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background: linear-gradient(135deg, var(--ash-900), var(--volcanic-900));
    box-shadow: var(--shadow-strong);
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ranking-list.slim li {
    border-color: var(--ash-200);
}

.ranking-list span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 11px;
    color: var(--ash-900);
    background: var(--lava-400);
    font-weight: 900;
}

.ranking-list a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.ranking-list a:hover {
    color: var(--lava-400);
}

.ranking-list em {
    color: var(--ash-400);
    font-size: 13px;
    font-style: normal;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: clamp(38px, 7vw, 78px);
    border-radius: 32px;
    color: #ffffff;
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 184, 26, 0.34), transparent 28%),
        linear-gradient(135deg, var(--ash-900), var(--volcanic-900));
    box-shadow: var(--shadow-strong);
}

.page-hero h1 {
    margin: 0 0 14px;
    max-width: 820px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: var(--ash-200);
    font-size: 18px;
    line-height: 1.8;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
    color: var(--volcanic-100);
    font-weight: 750;
}

.crumbs a:hover {
    color: var(--lava-400);
}

.filter-panel {
    padding: 18px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.sticky-filter {
    position: sticky;
    top: 92px;
    z-index: 20;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-row + .filter-row {
    margin-top: 12px;
}

.filter-row input {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--ash-50);
}

.category-large-grid {
    display: grid;
    gap: 24px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.category-poster-stack img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
}

.category-large-body {
    display: grid;
    align-content: center;
    gap: 12px;
}

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

.rank-hero-card {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: end;
    border-radius: var(--radius-xl);
    color: #ffffff;
    box-shadow: var(--shadow-strong);
}

.rank-hero-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(13, 15, 18, 0.96), rgba(13, 15, 18, 0.08));
}

.rank-hero-card div {
    position: relative;
    z-index: 1;
    padding: 24px;
}

.rank-hero-card span {
    color: var(--lava-400);
    font-weight: 900;
}

.rank-hero-card h2 {
    margin: 8px 0;
    font-size: 28px;
    line-height: 1.16;
}

.rank-hero-card p {
    margin: 0;
    color: var(--ash-200);
    line-height: 1.7;
}

.detail-hero {
    position: relative;
    padding: 58px 0;
    color: #ffffff;
    background: var(--ash-900);
    overflow: hidden;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.38;
    filter: blur(8px);
    transform: scale(1.08);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 15, 18, 0.98), rgba(13, 15, 18, 0.72), rgba(13, 15, 18, 0.92));
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow-strong);
}

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

.detail-headline h1 {
    margin: 12px 0 16px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.detail-headline p:not(.eyebrow) {
    max-width: 760px;
    color: var(--ash-200);
    font-size: 18px;
    line-height: 1.8;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: var(--shadow-strong);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(255, 184, 26, 0.22), rgba(13, 15, 18, 0.78));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.big-play {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--ash-900);
    background: var(--lava-400);
    box-shadow: 0 24px 68px rgba(255, 184, 26, 0.40);
    font-size: 34px;
}

.player-cover strong {
    font-size: clamp(22px, 4vw, 36px);
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.detail-content {
    display: grid;
    gap: 22px;
}

.detail-section {
    padding: 28px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-section p {
    margin: 14px 0 0;
    color: var(--ash-700);
    font-size: 17px;
    line-height: 1.95;
}

.detail-facts dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 0;
}

.detail-facts div {
    padding: 14px;
    border-radius: 16px;
    background: var(--ash-50);
}

.detail-facts dt {
    color: var(--ash-500);
    font-size: 13px;
    font-weight: 800;
}

.detail-facts dd {
    margin: 5px 0 0;
    color: var(--ash-900);
    font-weight: 850;
}

.prev-next {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.prev-next a {
    flex: 1 1 280px;
    padding: 16px 18px;
    border-radius: 18px;
    color: var(--volcanic-700);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    font-weight: 850;
}

[hidden] {
    display: none !important;
}

.site-footer {
    margin-top: 72px;
    color: var(--ash-300);
    background: var(--ash-900);
}

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

.footer-inner h2 {
    margin: 0 0 12px;
    color: #ffffff;
}

.footer-inner p {
    margin: 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-content: start;
    justify-content: end;
}

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

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

    .nav-toggle {
        display: inline-block;
    }

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

    .hero-title-card {
        left: 16px;
        right: 16px;
        bottom: 72px;
    }

    .hero-dots {
        bottom: 32px;
    }

    .intro-panel,
    .two-column,
    .category-card-large,
    .detail-wrap,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }

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

@media (max-width: 760px) {
    .nav-shell {
        height: 68px;
    }

    .brand-text strong {
        font-size: 18px;
    }

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

    .hero-content p:not(.hero-kicker) {
        font-size: 16px;
    }

    .hero-title-card {
        padding: 20px;
    }

    .section-block {
        margin: 34px auto;
    }

    .section-head,
    .intro-panel,
    .filter-row,
    .prev-next {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search {
        border-radius: 22px;
        flex-direction: column;
    }

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

    .category-tile {
        grid-template-columns: 118px minmax(0, 1fr);
        padding: 14px;
    }

    .movie-info {
        padding: 13px;
    }

    .movie-desc,
    .tag-row {
        display: none;
    }

    .page-hero {
        padding: 32px 22px;
        border-radius: 24px;
    }

    .category-poster-stack,
    .detail-facts dl {
        grid-template-columns: 1fr;
    }

    .detail-wrap {
        gap: 22px;
    }

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

    .detail-headline p:not(.eyebrow) {
        font-size: 16px;
    }

    .footer-links {
        justify-content: start;
    }
}

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

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

    .category-cover {
        max-height: 320px;
    }
}
