:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fffbeb;
    --ink: #1e293b;
    --muted: #64748b;
    --line: rgba(146, 64, 14, 0.16);
    --amber-950: #451a03;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-100: #fef3c7;
    --shadow: 0 24px 60px rgba(69, 26, 3, 0.16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 46%, #fffbeb 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(69, 26, 3, 0.98), rgba(120, 53, 15, 0.96), rgba(69, 26, 3, 0.98));
    color: #fff;
    box-shadow: 0 12px 28px rgba(69, 26, 3, 0.2);
    backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--amber-950);
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 26px rgba(0, 0, 0, 0.2);
}

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

.site-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    transition: 0.22s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

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

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #fff;
}

.hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    color: #fff;
    background: #451a03;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
    align-items: center;
    gap: 48px;
    width: 100%;
    padding: 86px max(24px, calc((100vw - 1240px) / 2)) 96px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.03);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(69, 26, 3, 0.94) 0%, rgba(69, 26, 3, 0.74) 45%, rgba(69, 26, 3, 0.28) 100%), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(255, 247, 237, 0), #fff7ed 96%);
}

.hero-copy,
.hero-cover {
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 780px;
    margin: 0 0 22px;
    font-size: clamp(42px, 8vw, 86px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 24px);
    line-height: 1.75;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--amber-900);
    background: #fef3c7;
    font-size: 12px;
    font-weight: 800;
}

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

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

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

.btn-primary {
    color: var(--amber-950);
    background: linear-gradient(135deg, #fff7ed, #f59e0b);
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.28);
}

.btn-soft {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.hero-cover {
    justify-self: end;
    width: min(380px, 100%);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

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

.hero-dots {
    position: absolute;
    z-index: 3;
    left: max(24px, calc((100vw - 1240px) / 2));
    bottom: 54px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 34px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition: 0.22s ease;
}

.hero-dots button.active {
    width: 56px;
    background: #f59e0b;
}

.stats-strip,
.section-wrap,
.page-hero,
.search-panel,
.movie-main,
.site-footer {
    width: min(1240px, calc(100% - 32px));
    margin-inline: auto;
}

.stats-strip {
    position: relative;
    z-index: 4;
    margin-top: -42px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stats-strip div {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.stats-strip strong {
    display: block;
    color: var(--amber-800);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.stats-strip span {
    color: var(--muted);
    font-weight: 700;
}

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

.section-dark {
    width: min(1280px, calc(100% - 24px));
    margin-top: 72px;
    padding: 48px;
    border-radius: 32px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #78350f);
    box-shadow: var(--shadow);
}

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

.section-head h2,
.page-hero h1,
.search-panel h2,
.content-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-dark .section-head h2,
.section-dark .section-head a,
.section-head--light h2 {
    color: #fff;
}

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

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

.catalog-grid--home {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.catalog-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(69, 26, 3, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(69, 26, 3, 0.16);
}

.card-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #451a03;
}

.card-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.card-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #fff;
    background: rgba(120, 53, 15, 0.9);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--amber-700);
    font-size: 12px;
    font-weight: 800;
}

.card-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.28;
}

.catalog-card--compact .card-body h3 {
    font-size: 16px;
}

.card-body p,
.category-tile p,
.category-card-large p,
.page-hero p,
.search-panel p,
.content-card p,
.rank-info p,
.site-footer p {
    color: var(--muted);
    line-height: 1.75;
}

.card-body p {
    min-height: 58px;
    margin: 0 0 12px;
    font-size: 14px;
}

.catalog-card--compact .card-body p {
    min-height: 48px;
    font-size: 13px;
}

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

.category-tile,
.category-card-large {
    display: block;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, #fff, #fffbeb);
    box-shadow: 0 14px 36px rgba(69, 26, 3, 0.08);
    transition: 0.22s ease;
}

.category-tile:hover,
.category-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(69, 26, 3, 0.16);
}

.category-tile span,
.category-card-large span {
    color: var(--amber-700);
    font-weight: 900;
}

.category-tile strong,
.category-card-large strong {
    display: block;
    margin-top: 8px;
    color: var(--amber-900);
    font-size: 28px;
}

.category-card-large h2 {
    margin: 8px 0 10px;
    font-size: 30px;
}

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

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

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

.rank-card {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.rank-poster {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

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

.rank-poster span {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--amber-950);
    background: #fbbf24;
    font-weight: 900;
}

.rank-info h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 20px;
}

.rank-info p,
.section-dark .rank-meta {
    color: rgba(255, 255, 255, 0.72);
}

.page-main {
    padding-bottom: 70px;
}

.page-hero {
    margin-top: 34px;
    padding: 54px;
    border-radius: 32px;
    color: #fff;
    background: radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.42), transparent 28%), linear-gradient(135deg, #0f172a, #78350f);
    box-shadow: var(--shadow);
}

.page-hero h1,
.page-hero p {
    color: #fff;
}

.page-hero p {
    max-width: 780px;
    margin: 14px 0 0;
    font-size: 18px;
}

.page-hero--category .btn {
    margin-top: 24px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 38px rgba(69, 26, 3, 0.08);
}

.search-panel h2 {
    font-size: 26px;
}

.search-panel p {
    margin: 8px 0 0;
}

.search-box {
    display: grid;
    gap: 8px;
    color: var(--amber-800);
    font-weight: 900;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(146, 64, 14, 0.22);
    border-radius: 14px;
    outline: none;
    background: #fff;
}

.search-box input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

.filter-count {
    grid-column: 1 / -1;
    margin: -8px 0 0;
    color: var(--amber-800);
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 28px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--amber-800);
    font-weight: 800;
}

.movie-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
    gap: 38px;
    padding: 42px;
    border-radius: 34px;
    color: #fff;
    background: #451a03;
    box-shadow: var(--shadow);
}

.movie-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(69, 26, 3, 0.94), rgba(69, 26, 3, 0.74)), var(--movie-image);
    background-size: cover;
    background-position: center;
    filter: blur(2px) saturate(1.08);
    transform: scale(1.02);
}

.movie-poster,
.movie-intro {
    position: relative;
    z-index: 2;
}

.movie-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

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

.movie-intro h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.movie-one-line {
    max-width: 840px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 20px;
    line-height: 1.7;
}

.movie-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.movie-meta-grid span {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 800;
}

.tag-row--large span {
    min-height: 34px;
    padding: 7px 13px;
}

.movie-intro .btn {
    margin-top: 28px;
}

.watch-section {
    margin-top: 36px;
    padding: 34px;
    border-radius: 30px;
    background: linear-gradient(135deg, #0f172a, #78350f);
    box-shadow: var(--shadow);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.74));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--amber-950);
    background: #fbbf24;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
    font-size: 28px;
}

.movie-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 24px;
    margin-top: 30px;
}

.content-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(69, 26, 3, 0.08);
}

.content-card h2 {
    margin-bottom: 16px;
    font-size: 28px;
}

.content-card p {
    margin: 0;
    font-size: 17px;
}

.site-footer {
    margin-top: 86px;
    padding: 42px 0 54px;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1fr;
    gap: 36px;
}

.footer-brand {
    margin-bottom: 12px;
    color: var(--amber-900);
    font-size: 22px;
}

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

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

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

.footer-links a {
    color: var(--muted);
    font-weight: 700;
}

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

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

@media (max-width: 1100px) {
    .catalog-grid,
    .category-grid,
    .category-grid--large {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-slide {
        grid-template-columns: 1fr 320px;
    }
}

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

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 20px;
        background: rgba(69, 26, 3, 0.98);
    }

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

    .site-nav a {
        border-radius: 14px;
    }

    .hero {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
        padding-top: 74px;
    }

    .hero-cover {
        justify-self: start;
        width: min(240px, 60vw);
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-grid,
    .catalog-grid--home,
    .category-grid,
    .category-grid--large,
    .rank-list--home,
    .search-panel,
    .movie-hero,
    .movie-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-dark,
    .page-hero,
    .watch-section,
    .movie-hero {
        padding: 28px;
        border-radius: 26px;
    }
}

@media (max-width: 560px) {
    .nav-wrap,
    .stats-strip,
    .section-wrap,
    .page-hero,
    .search-panel,
    .movie-main,
    .site-footer {
        width: min(100% - 22px, 1240px);
    }

    .hero {
        min-height: 720px;
    }

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

    .stats-strip {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-grid,
    .catalog-grid--home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body p,
    .tag-row {
        display: none;
    }

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

    .movie-hero,
    .watch-section,
    .content-card,
    .page-hero,
    .search-panel {
        padding: 22px;
    }
}
