:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-700: #c2410c;
    --orange-800: #9a3412;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.14);
    --soft-shadow: 0 10px 28px rgba(17, 24, 39, 0.1);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-900), var(--orange-800));
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.26);
}

.nav-wrap {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--amber-900);
    background: linear-gradient(135deg, var(--amber-100), var(--amber-500));
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.55);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--amber-100);
    opacity: 1;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 12px 24px 18px;
    background: rgba(120, 53, 15, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    font-weight: 700;
}

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

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: var(--gray-900);
}

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.04) contrast(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 30%, rgba(245, 158, 11, 0.24), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.62) 48%, rgba(17, 24, 39, 0.22)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 48px));
    min-height: 660px;
    margin: 0 auto;
    padding: 96px 0 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.045em;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--amber-300);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-desc {
    max-width: 650px;
    margin: 22px 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 26px;
}

.hero-tags span {
    padding: 7px 12px;
    color: var(--amber-900);
    font-size: 13px;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(254, 243, 199, 0.92);
}

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

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

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

.btn.primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-700));
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.34);
}

.btn.ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 44px;
    height: 44px;
    color: var(--white);
    font-size: 32px;
    line-height: 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.hero-dot.is-active {
    width: 34px;
    background: var(--amber-500);
}

.quick-search,
.section-block,
.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.quick-search {
    margin-top: -46px;
    position: relative;
    z-index: 4;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 560px);
    align-items: center;
    gap: 24px;
    padding: 26px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-panel h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.search-panel p {
    margin: 0;
    color: var(--gray-500);
}

.filter-toolbar {
    display: flex;
    gap: 12px;
}

.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    outline: none;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.section-block {
    padding-top: 72px;
    padding-bottom: 72px;
}

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

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
}

.section-heading h2 span {
    width: 5px;
    height: 34px;
    border-radius: 999px;
    background: var(--amber-600);
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--gray-500);
}

.section-link {
    color: var(--amber-700);
    font-weight: 900;
}

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

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

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

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

.movie-card {
    border-radius: 18px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

.movie-card figure {
    position: relative;
    margin: 0;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--gray-200));
}

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

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

.card-tag,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border-radius: 999px;
}

.card-tag {
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 6px 10px;
    color: var(--white);
    font-size: 12px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(10px);
}

.rank-badge {
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-700));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.card-body {
    padding: 14px 14px 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--amber-700);
    font-size: 12px;
    font-weight: 900;
}

.warm-block {
    max-width: none;
    background: linear-gradient(90deg, var(--amber-50), #fff7ed);
}

.warm-block > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

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

.category-card {
    min-height: 160px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 20px;
    color: var(--white);
    background:
        radial-gradient(circle at top right, rgba(252, 211, 77, 0.38), transparent 38%),
        linear-gradient(135deg, var(--gray-900), var(--amber-900));
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card strong {
    font-size: 24px;
}

.category-card span {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.dark-block {
    max-width: none;
    color: var(--white);
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.dark-block > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.dark-block .section-heading p,
.dark-block .card-body p {
    color: rgba(255, 255, 255, 0.68);
}

.dark-block .section-link {
    color: var(--amber-300);
}

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

.region-stack {
    display: grid;
    gap: 44px;
}

.row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.row-head h3 {
    margin: 0;
    font-size: 25px;
}

.row-head a {
    color: var(--amber-700);
    font-weight: 900;
}

.amber-block {
    max-width: none;
    background: linear-gradient(90deg, var(--amber-900), var(--orange-800));
}

.amber-block > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.amber-block .section-heading h2,
.amber-block .section-heading p,
.amber-block .section-link {
    color: var(--white);
}

.page-main {
    padding-top: 42px;
    padding-bottom: 80px;
}

.page-hero {
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 54px;
    color: var(--white);
    border-radius: 28px;
    background:
        radial-gradient(circle at 76% 18%, rgba(252, 211, 77, 0.34), transparent 30%),
        linear-gradient(135deg, var(--gray-900), var(--amber-900) 58%, var(--orange-800));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.category-overview-list {
    display: grid;
    gap: 28px;
}

.category-overview-card {
    padding: 28px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

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

.category-overview-head h2 {
    margin: 0 0 10px;
    font-size: 32px;
}

.category-overview-head p:not(.eyebrow) {
    margin: 0;
    color: var(--gray-500);
}

.category-filter {
    max-width: 760px;
    margin-bottom: 28px;
}

.ranking-page-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--gray-500);
    font-weight: 800;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: center;
    padding: 34px;
    color: var(--white);
    border-radius: 28px;
    background:
        radial-gradient(circle at 78% 28%, rgba(245, 158, 11, 0.34), transparent 34%),
        linear-gradient(135deg, var(--gray-900), var(--amber-900));
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

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

.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.05;
}

.detail-one-line {
    max-width: 820px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
}

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

.detail-meta-row span {
    padding: 9px 13px;
    color: rgba(255, 255, 255, 0.88);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

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

.player-section h2 {
    margin: 0 0 18px;
    font-size: 30px;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    font-size: 34px;
    color: var(--amber-900);
    background: linear-gradient(135deg, var(--amber-100), var(--amber-500));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

.play-text {
    font-size: 18px;
    font-weight: 900;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    margin-top: 42px;
}

.prose-card,
.info-card {
    padding: 30px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.prose-card h2,
.info-card h2 {
    margin: 0 0 18px;
    font-size: 26px;
}

.prose-card h2:not(:first-child) {
    margin-top: 32px;
}

.prose-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.9;
}

.info-card {
    align-self: start;
    position: sticky;
    top: 96px;
}

.info-card dl {
    margin: 0;
    display: grid;
    gap: 16px;
}

.info-card div {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.info-card div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-card dt {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 900;
}

.info-card dd {
    margin: 4px 0 0;
    color: var(--gray-900);
    font-weight: 900;
}

.info-card a {
    color: var(--amber-700);
}

.related-section {
    padding-left: 0;
    padding-right: 0;
}

.site-footer {
    color: rgba(255, 255, 255, 0.76);
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--amber-300);
}

.footer-bottom {
    padding: 20px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

    .rank-list,
    .movie-grid.wide {
        grid-template-columns: repeat(3, 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;
    }

    .hero-carousel,
    .hero-content {
        min-height: 620px;
    }

    .search-panel,
    .detail-hero,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .info-card {
        position: static;
    }

    .category-overview-head,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

@media (max-width: 560px) {
    .nav-wrap,
    .quick-search,
    .section-block,
    .page-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo {
        font-size: 20px;
    }

    .hero-content {
        width: calc(100% - 32px);
        padding-top: 74px;
    }

    .hero-actions,
    .filter-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .search-panel,
    .page-hero,
    .detail-hero,
    .category-overview-card,
    .prose-card,
    .info-card {
        padding: 22px;
        border-radius: 20px;
    }

    .movie-grid,
    .movie-grid.compact,
    .movie-grid.wide,
    .catalog-grid,
    .rank-list,
    .ranking-page-list,
    .category-grid {
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 15px;
    }

    .card-body p {
        font-size: 12px;
    }

    .play-circle {
        width: 66px;
        height: 66px;
        font-size: 28px;
    }
}
