:root {
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-850: #241f1c;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-400: #a8a29e;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50: #fafaf9;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-100: #fef3c7;
    --amber-50: #fffbeb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(12, 10, 9, 0.08);
    --shadow-md: 0 10px 24px rgba(12, 10, 9, 0.12);
    --shadow-lg: 0 24px 50px rgba(12, 10, 9, 0.18);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--stone-50);
    color: var(--stone-900);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "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: sticky;
    top: 0;
    z-index: 50;
    color: var(--stone-100);
    background: rgba(28, 25, 23, 0.95);
    border-bottom: 1px solid rgba(214, 211, 209, 0.08);
    backdrop-filter: blur(14px);
}

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

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    color: var(--stone-950);
    background: var(--amber-500);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.24);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15px;
}

.nav-link {
    color: var(--stone-300);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link.active {
    color: var(--amber-500);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid rgba(214, 211, 209, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--stone-100);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 18px;
    border-top: 1px solid rgba(214, 211, 209, 0.08);
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-link {
    padding: 10px 12px;
    color: var(--stone-300);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center center;
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 96px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
    align-items: end;
}

.hero-copy {
    max-width: 780px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 6px 12px;
    color: var(--stone-950);
    background: var(--amber-500);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero h1 {
    margin: 20px 0 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(28px, 4.4vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 84px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: var(--stone-300);
    font-size: 18px;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.hero-meta span,
.detail-meta span {
    padding: 7px 12px;
    color: var(--stone-200);
    background: rgba(28, 25, 23, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 13px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
    color: var(--stone-950);
    background: var(--amber-500);
}

.button-primary:hover {
    background: var(--amber-600);
}

.button-ghost {
    color: var(--stone-100);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-side {
    display: grid;
    gap: 14px;
}

.hero-side-card {
    position: relative;
    min-height: 126px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--stone-900);
    box-shadow: var(--shadow-lg);
}

.hero-side-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.14));
}

.hero-side-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.hero-side-card:hover img {
    transform: scale(1.08);
}

.hero-side-card span,
.hero-side-card strong {
    position: relative;
    z-index: 1;
}

.hero-side-card span {
    color: var(--amber-400);
    font-size: 12px;
    font-weight: 800;
}

.hero-side-card strong {
    margin-top: 4px;
    color: var(--white);
    font-size: 18px;
    line-height: 1.25;
}

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

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

.section-heading h2,
.category-overview-head h2,
.detail-article h2 {
    margin: 0 0 8px;
    color: var(--stone-900);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-heading p,
.category-overview-head p {
    margin: 0;
    color: var(--stone-600);
}

.section-more {
    flex: 0 0 auto;
    color: var(--amber-700);
    font-weight: 800;
}

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

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

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

.movie-card {
    min-width: 0;
}

.movie-card[hidden] {
    display: none;
}

.movie-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card-link:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: var(--shadow-lg);
}

.movie-poster {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stone-800), var(--stone-950));
}

.catalog-grid .movie-poster,
.compact-grid .movie-poster {
    aspect-ratio: 3 / 4;
}

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

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

.movie-poster figcaption {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    color: var(--white);
    background: rgba(28, 25, 23, 0.82);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.movie-card-body {
    flex: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.movie-meta-line {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--stone-500);
    font-size: 12px;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--stone-900);
    font-size: 18px;
    line-height: 1.28;
    transition: color 0.2s ease;
}

.movie-card-link:hover h3 {
    color: var(--amber-700);
}

.movie-card p {
    margin: 0 0 14px;
    color: var(--stone-600);
    font-size: 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span {
    padding: 4px 8px;
    color: var(--amber-700);
    background: var(--amber-50);
    border: 1px solid var(--amber-100);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.spotlight-section {
    background: linear-gradient(135deg, var(--amber-50), var(--stone-100));
}

.spotlight-inner {
    width: min(1280px, calc(100% - 32px));
}

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

.spotlight-lead {
    position: relative;
    min-height: 520px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.spotlight-lead::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.2), rgba(12, 10, 9, 0.05));
}

.spotlight-lead img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.34s ease;
}

.spotlight-lead:hover img {
    transform: scale(1.06);
}

.spotlight-lead span,
.spotlight-lead strong,
.spotlight-lead p {
    position: relative;
    z-index: 1;
}

.spotlight-lead span {
    width: max-content;
    margin-bottom: 10px;
    padding: 5px 10px;
    color: var(--stone-950);
    background: var(--amber-500);
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
}

.spotlight-lead strong {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
}

.spotlight-lead p {
    max-width: 640px;
    margin: 12px 0 0;
    color: var(--stone-200);
}

.spotlight-list {
    display: grid;
    gap: 18px;
}

.movie-card-wide .movie-card-link {
    flex-direction: row;
}

.movie-card-wide .movie-poster {
    width: 168px;
    flex: 0 0 168px;
    aspect-ratio: auto;
}

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

.category-tile {
    min-height: 240px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--stone-100);
    background: linear-gradient(135deg, var(--stone-900), var(--stone-700));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-tile span {
    color: var(--amber-400);
    font-weight: 900;
    font-size: 22px;
}

.category-tile strong {
    margin: 10px 0 18px;
    color: var(--stone-300);
    font-size: 14px;
    font-weight: 500;
}

.category-covers {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

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

.two-column-section {
    display: grid;
    grid-template-columns: 0.74fr 1fr;
    gap: 42px;
    align-items: start;
}

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

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

.rank-item a {
    display: grid;
    grid-template-columns: 54px 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.rank-number {
    color: var(--amber-600);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    width: 72px;
    height: 92px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--stone-800);
}

.rank-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.rank-copy strong {
    overflow: hidden;
    color: var(--stone-900);
    font-size: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-copy small {
    color: var(--stone-500);
}

.page-hero,
.detail-hero {
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.24), transparent 34%), linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

.small-page-hero,
.category-page-hero {
    padding: 78px 0 68px;
}

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

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: var(--stone-300);
    font-size: 18px;
}

.category-overview-list {
    padding-top: 20px;
}

.category-overview-block {
    padding: 30px 0;
    border-top: 1px solid var(--stone-200);
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(160px, 220px));
    gap: 14px;
    align-items: end;
    background: var(--white);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

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

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    color: var(--stone-900);
    background: var(--stone-50);
    border: 1px solid var(--stone-200);
    border-radius: 12px;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.detail-hero {
    background-size: cover;
    background-position: center;
}

.detail-hero-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 58px;
}

.breadcrumbs {
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--stone-300);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 38px;
    align-items: end;
}

.detail-poster {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: var(--stone-900);
}

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

.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 22px;
    color: var(--stone-300);
    font-size: 18px;
}

.detail-tags {
    margin: 0 0 26px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    background: var(--stone-950);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: var(--white);
    background: linear-gradient(to top, rgba(12, 10, 9, 0.72), rgba(12, 10, 9, 0.18));
    border: 0;
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-block;
    background: var(--amber-500);
    border-radius: 50%;
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.34);
    position: relative;
}

.play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-40%, -50%);
    border-left: 22px solid var(--stone-950);
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
}

.player-overlay strong {
    font-size: 18px;
}

.detail-article {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin: 0;
    color: var(--stone-700);
    font-size: 16px;
}

.site-footer {
    margin-top: 24px;
    color: var(--stone-300);
    background: var(--stone-900);
    border-top: 1px solid rgba(214, 211, 209, 0.08);
}

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

.footer-brand {
    margin-bottom: 10px;
    color: var(--white);
    font-size: 20px;
}

.footer-inner p {
    max-width: 620px;
    margin: 0;
    color: var(--stone-400);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 22px;
    max-width: 520px;
}

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

@media (max-width: 1080px) {
    .desktop-nav {
        gap: 16px;
        font-size: 14px;
    }

    .hero-content,
    .spotlight-layout,
    .two-column-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .menu-button {
        display: block;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 74px 0 42px;
    }

    .hero-side {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .category-overview-head,
    .footer-inner {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .catalog-grid,
    .category-grid,
    .rank-list-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .movie-card-wide .movie-card-link {
        flex-direction: column;
    }

    .movie-card-wide .movie-poster {
        width: 100%;
        flex-basis: auto;
        aspect-ratio: 16 / 10;
    }

    .spotlight-lead {
        min-height: 420px;
    }

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

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

@media (max-width: 520px) {
    .header-inner,
    .mobile-nav,
    .content-section,
    .hero-content,
    .page-hero > div,
    .detail-hero-inner,
    .footer-inner {
        width: min(100% - 24px, 1280px);
    }

    .brand-text {
        font-size: 16px;
    }

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

    .hero h2,
    .detail-copy h1,
    .page-hero h1 {
        font-size: 38px;
    }

    .hero p,
    .detail-one-line,
    .page-hero p {
        font-size: 16px;
    }

    .hero-actions,
    .hero-meta,
    .detail-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .catalog-grid,
    .category-grid,
    .rank-list-large {
        grid-template-columns: 1fr;
    }

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

    .rank-item a {
        grid-template-columns: 44px 62px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-number {
        font-size: 20px;
    }

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

    .detail-article {
        padding: 22px;
    }
}
