:root {
    --amber-950: #451a03;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --amber-200: #fde68a;
    --amber-100: #fef3c7;
    --amber-50: #fffbeb;
    --yellow-50: #fefce8;
    --white: #ffffff;
    --ink: #2b1605;
    --muted: #8a5a22;
    --shadow: 0 22px 55px rgba(120, 53, 15, 0.16);
    --soft-shadow: 0 12px 35px rgba(120, 53, 15, 0.11);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--amber-900);
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: var(--white);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.brand-text em {
    margin-top: 4px;
    color: var(--amber-700);
    font-size: 12px;
    font-style: normal;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--amber-900);
    font-weight: 700;
    transition: 0.24s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: var(--amber-600);
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.24);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--amber-100);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--amber-900);
    border-radius: 3px;
}

.mobile-nav {
    display: none;
    padding: 10px 16px 18px;
    background: var(--white);
    border-top: 1px solid var(--amber-100);
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(110deg, var(--amber-950), var(--amber-800) 48%, var(--amber-600));
}

.hero-shade,
.hero-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-shade {
    background: radial-gradient(circle at 78% 26%, rgba(253, 230, 138, 0.36), transparent 34%), linear-gradient(90deg, rgba(69, 26, 3, 0.92), rgba(146, 64, 14, 0.76));
}

.hero-pattern {
    opacity: 0.28;
    background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 42px 42px;
}

.hero-grid {
    position: relative;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: center;
    gap: 54px;
    padding: 64px 0;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--amber-200);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 800;
    font-size: 13px;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-lead,
.page-hero p {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255, 251, 235, 0.88);
    font-size: clamp(17px, 2.1vw, 23px);
    line-height: 1.75;
}

.hero-actions,
.cta-inner .btn {
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.24s ease;
}

.btn.primary,
.btn.light {
    color: var(--amber-950);
    background: var(--white);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.btn.primary:hover,
.btn.light:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--amber-100);
}

.btn.ghost {
    margin-left: 12px;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.82);
}

.btn.ghost:hover {
    color: var(--amber-950);
    background: var(--white);
}

.hero-slider {
    position: relative;
    min-height: 482px;
}

.hero-slides {
    position: relative;
    height: 440px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    opacity: 0;
    transform: translateX(28px) scale(0.98);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow);
    transition: 0.55s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-poster {
    position: relative;
    overflow: hidden;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.7));
}

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

.hero-card-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px;
}

.hero-card-copy span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.86);
    font-size: 13px;
    font-weight: 800;
}

.hero-card-copy h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.hero-card-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.hero-dots {
    display: flex;
    gap: 9px;
    justify-content: center;
    margin-top: 20px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 32px;
    background: var(--white);
}

.section-block {
    padding: 72px 0;
}

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

.section-heading h2,
.center-heading h2,
.cta-inner h2,
.ranking-panel h2,
.ranking-side h2,
.detail-copy h1,
.detail-copy h2,
.side-card h2,
.category-overview-card h2 {
    margin: 0;
    color: var(--amber-900);
    letter-spacing: -0.04em;
}

.section-heading h2,
.center-heading h2 {
    font-size: clamp(28px, 3vw, 38px);
}

.section-heading p,
.center-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

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

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

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

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

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--amber-100);
}

.movie-card.wide .card-cover {
    aspect-ratio: 4 / 3;
}

.movie-card.landscape .card-cover {
    aspect-ratio: 16 / 9;
}

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

.movie-card:hover .card-cover img,
.category-tile:hover img,
.category-overview-cover:hover img,
.mini-card:hover img {
    transform: scale(1.08);
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(69, 26, 3, 0.74));
    opacity: 0;
    transition: 0.24s ease;
}

.movie-card:hover .card-cover::after {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    color: var(--white);
    border-radius: 999px;
    background: var(--amber-600);
    font-size: 12px;
    font-weight: 800;
}

.card-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--amber-950);
    border-radius: 999px;
    background: var(--white);
    opacity: 0;
    transform: translateY(8px);
    transition: 0.24s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    padding: 16px;
}

.card-body h2 {
    margin: 0 0 8px;
    color: var(--amber-900);
    font-size: 18px;
    line-height: 1.35;
}

.card-body p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 700;
}

.card-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--amber-50);
}

.category-band,
.warm-band {
    padding: 72px 0;
    background: var(--white);
}

.warm-band {
    background: linear-gradient(90deg, var(--amber-100), var(--yellow-50));
}

.center-heading {
    max-width: 620px;
    margin: 0 auto 36px;
    text-align: center;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
}

.category-tile::after,
.category-overview-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 24%, rgba(69, 26, 3, 0.86));
}

.category-tile img,
.category-overview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.38s ease;
}

.category-tile span,
.category-overview-cover span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.cta-band,
.page-hero {
    color: var(--white);
    background: linear-gradient(110deg, var(--amber-900), var(--amber-700));
}

.cta-inner,
.page-hero .container {
    padding: 76px 0;
    text-align: center;
}

.cta-inner h2 {
    color: var(--white);
    font-size: clamp(30px, 4vw, 46px);
}

.cta-inner p {
    max-width: 760px;
    margin: 18px auto 0;
    color: var(--amber-100);
    font-size: 18px;
    line-height: 1.8;
}

.page-hero {
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 42px 42px;
}

.page-hero .container {
    position: relative;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--amber-100);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--white);
}

.catalog-tools {
    padding: 28px 0 0;
}

.search-row {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

.search-row.wide {
    margin-top: 0;
}

.catalog-search,
.sort-select {
    border: 1px solid rgba(217, 119, 6, 0.26);
    border-radius: 16px;
    background: var(--white);
    color: var(--amber-900);
    box-shadow: 0 8px 20px rgba(120, 53, 15, 0.06);
    outline: none;
}

.catalog-search {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
}

.sort-select {
    min-height: 52px;
    padding: 0 18px;
}

.catalog-search:focus,
.sort-select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

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

.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--white);
    box-shadow: 0 8px 20px rgba(120, 53, 15, 0.08);
    font-weight: 800;
    cursor: pointer;
    transition: 0.22s ease;
}

.filter-chip:hover,
.filter-chip.active {
    color: var(--white);
    background: var(--amber-600);
}

.category-overview-list {
    display: grid;
    gap: 24px;
    padding: 64px 0;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 26px;
    padding: 22px;
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.category-overview-cover {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 20px;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.8;
}

.mini-row,
.mini-list {
    display: grid;
    gap: 12px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: var(--amber-50);
    transition: 0.22s ease;
}

.mini-card:hover {
    background: var(--amber-100);
}

.mini-card img {
    width: 58px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.22s ease;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    color: var(--amber-900);
    font-size: 14px;
    line-height: 1.35;
}

.mini-card em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.ranking-panel,
.ranking-side,
.side-card,
.detail-copy {
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.ranking-panel,
.ranking-side,
.side-card {
    padding: 24px;
}

.ranking-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 46px 72px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: var(--amber-50);
    transition: 0.22s ease;
}

.ranking-row:hover {
    background: var(--amber-100);
    transform: translateX(3px);
}

.ranking-no {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--white);
    border-radius: 12px;
    background: var(--amber-600);
    font-weight: 900;
}

.ranking-row img {
    width: 72px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
}

.ranking-title strong,
.ranking-title em {
    display: block;
}

.ranking-title strong {
    color: var(--amber-900);
    font-weight: 900;
}

.ranking-title em {
    margin-top: 6px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.ranking-score {
    color: var(--amber-700);
    font-weight: 900;
}

.detail-hero {
    padding: 36px 0 0;
}

.detail-hero .breadcrumb {
    justify-content: flex-start;
    color: var(--muted);
}

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

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #120a03;
    box-shadow: var(--shadow);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #120a03;
    object-fit: cover;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(18, 10, 3, 0.28), rgba(18, 10, 3, 0.68));
    cursor: pointer;
    transition: 0.25s ease;
    z-index: 3;
}

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

.play-orb {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--white);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
    font-size: 34px;
}

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

.detail-copy {
    margin-top: 24px;
    padding: 28px;
}

.detail-copy h1 {
    font-size: clamp(30px, 4vw, 46px);
}

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

.detail-meta span,
.tag-list span {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--amber-800);
    background: var(--amber-100);
    font-weight: 800;
    font-size: 13px;
}

.detail-lead {
    color: var(--amber-800);
    font-size: 18px;
    font-weight: 700;
}

.detail-copy p {
    color: var(--muted);
    line-height: 1.95;
    font-size: 16px;
}

.detail-copy h2 {
    margin-top: 28px;
    font-size: 24px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.detail-side {
    position: relative;
}

.detail-poster {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.side-card {
    position: sticky;
    top: 94px;
    margin-top: 20px;
}

.side-card h2,
.ranking-side h2 {
    margin-bottom: 16px;
    font-size: 22px;
}

.site-footer {
    color: var(--amber-100);
    background: linear-gradient(110deg, var(--amber-950), var(--amber-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 42px;
    padding: 54px 0;
}

.footer-brand {
    color: var(--white);
    font-size: 22px;
}

.site-footer p {
    max-width: 470px;
    color: var(--amber-100);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 18px;
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--amber-200);
    text-align: center;
}

.is-filtered-out {
    display: none !important;
}

@media (max-width: 1060px) {
    .hero-grid,
    .detail-layout,
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 32px;
    }

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

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

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

    .detail-side {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 20px;
        align-items: start;
    }

    .side-card {
        position: static;
        margin-top: 0;
    }
}

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

    .desktop-nav {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

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

    .hero,
    .hero-grid {
        min-height: auto;
    }

    .hero-grid,
    .page-hero .container,
    .cta-inner {
        padding: 46px 0;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 40px;
    }

    .hero-lead,
    .page-hero p {
        font-size: 16px;
    }

    .btn.ghost {
        margin-left: 0;
        margin-top: 10px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-slides {
        height: 430px;
    }

    .section-block,
    .category-band,
    .warm-band {
        padding: 46px 0;
    }

    .section-heading {
        display: block;
    }

    .section-more {
        display: inline-block;
        margin-top: 10px;
    }

    .feature-grid,
    .landscape-grid,
    .poster-grid,
    .catalog-grid,
    .footer-grid,
    .mini-row,
    .category-overview-card,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .poster-grid,
    .catalog-grid {
        gap: 16px;
    }

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

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

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

    .ranking-score {
        grid-column: 3;
    }

    .ranking-row img {
        width: 58px;
        height: 72px;
    }

    .detail-copy {
        padding: 22px;
    }

    .play-orb {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
