:root {
    --bg: #1f1308;
    --bg-soft: #2d1a0b;
    --panel: rgba(69, 38, 13, 0.78);
    --panel-strong: rgba(92, 54, 18, 0.92);
    --line: rgba(251, 191, 36, 0.22);
    --text: #fff7ed;
    --muted: #f5d98b;
    --muted-soft: #d6a84f;
    --gold: #fbbf24;
    --gold-strong: #f59e0b;
    --brown: #451a03;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 32rem),
        radial-gradient(circle at top right, rgba(180, 83, 9, 0.24), transparent 26rem),
        linear-gradient(180deg, #170d05 0%, var(--bg) 42%, #0f0904 100%);
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid var(--line);
    background: rgba(31, 19, 8, 0.86);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #451a03;
    font-weight: 900;
    letter-spacing: -0.08em;
    background: linear-gradient(135deg, #fef3c7, #fbbf24 55%, #f59e0b);
    box-shadow: 0 14px 34px rgba(251, 191, 36, 0.24);
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    font-size: 1.32rem;
    line-height: 1;
}

.brand-copy em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.78rem;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex: 1;
}

.site-nav > a {
    color: var(--muted);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav > a:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    background: rgba(69, 26, 3, 0.56);
}

.nav-search input,
.large-search input {
    width: 230px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.nav-search input::placeholder,
.large-search input::placeholder {
    color: rgba(254, 243, 199, 0.62);
}

.nav-search button,
.large-search button {
    border: 0;
    border-radius: 999px;
    color: #451a03;
    font-weight: 800;
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    padding: 8px 16px;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(69, 26, 3, 0.62);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
}

.hero-carousel {
    position: relative;
    min-height: clamp(520px, 78vh, 760px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #130b04;
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.06);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 9, 4, 0.94) 0%, rgba(31, 19, 8, 0.76) 38%, rgba(31, 19, 8, 0.22) 100%),
        linear-gradient(0deg, rgba(15, 9, 4, 0.95) 0%, rgba(15, 9, 4, 0) 52%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(520px, 78vh, 760px);
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 80px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(2.4rem, 7vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy,
.page-hero p,
.detail-copy .lead-text {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.85;
}

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

.hero-tags span,
.tag-row span,
.info-card dd span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(69, 26, 3, 0.58);
    font-size: 0.82rem;
    font-weight: 700;
}

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

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

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

.btn.primary {
    color: #451a03;
    background: linear-gradient(135deg, #fef3c7, #fbbf24 62%, #f59e0b);
    box-shadow: 0 16px 38px rgba(251, 191, 36, 0.24);
}

.btn.secondary {
    color: var(--text);
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(69, 26, 3, 0.42);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 4;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 42px;
    height: 6px;
    border: 0;
    border-radius: 99px;
    background: rgba(254, 243, 199, 0.35);
}

.hero-dots button.is-active {
    background: var(--gold);
}

.section-block {
    padding: clamp(54px, 8vw, 96px) 0;
}

.warm-panel,
.rank-panel {
    background:
        radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.12), transparent 28rem),
        rgba(69, 26, 3, 0.28);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2,
.story-card h2,
.info-card h2,
.review-card h2,
.channel-card h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3.2vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.section-heading p,
.story-card p,
.review-card p,
.channel-card p,
.footer-grid p {
    color: var(--muted);
    line-height: 1.82;
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
}

.text-link {
    color: #fde68a;
    font-weight: 900;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(69, 26, 3, 0.84), rgba(31, 19, 8, 0.92));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.48);
    box-shadow: var(--shadow);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #451a03, #78350f);
}

.poster-frame img,
.compact-poster img,
.category-tile img,
.detail-poster img,
.channel-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 9, 4, 0.86), transparent 48%);
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 1.12rem;
    line-height: 1.32;
}

.card-body p {
    min-height: 3.4em;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.92rem;
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(251, 191, 36, 0.2);
    background: #451a03;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 9, 4, 0.92) 0%, rgba(15, 9, 4, 0.32) 58%, rgba(15, 9, 4, 0.08) 100%);
}

.category-tile span,
.category-tile em {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
}

.category-tile span {
    bottom: 72px;
    font-size: 1.32rem;
    font-weight: 900;
}

.category-tile em {
    bottom: 20px;
    color: var(--muted);
    font-style: normal;
    line-height: 1.55;
    font-size: 0.88rem;
}

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

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

.compact-card {
    display: grid;
    grid-template-columns: auto 82px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    padding: 12px;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 20px;
    background: rgba(69, 26, 3, 0.54);
}

.rank-num {
    width: 44px;
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: 900;
    text-align: center;
}

.compact-poster {
    width: 82px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #451a03;
}

.compact-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.compact-card p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.6;
}

.compact-card span:last-child {
    color: var(--muted-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 82% 18%, rgba(251, 191, 36, 0.16), transparent 26rem),
        linear-gradient(135deg, rgba(69, 26, 3, 0.86), rgba(15, 9, 4, 0.96));
}

.page-hero {
    padding: clamp(74px, 12vw, 128px) 0;
}

.small-hero h1,
.category-hero h1,
.search-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.6rem);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: #fde68a;
    font-weight: 800;
}

.channel-list {
    display: grid;
    gap: 20px;
}

.channel-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    padding: 18px;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: var(--radius);
    background: rgba(69, 26, 3, 0.52);
}

.channel-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
    min-height: 190px;
}

.detail-hero {
    min-height: 600px;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.23;
    filter: blur(18px) saturate(1.25);
    transform: scale(1.06);
}

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

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 9, 4, 0.94), rgba(15, 9, 4, 0.62));
}

.detail-shell {
    position: relative;
    z-index: 2;
    padding: clamp(42px, 8vw, 82px) 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 6vw, 70px);
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    background: #451a03;
    box-shadow: var(--shadow);
}

.player-section {
    padding-top: clamp(36px, 5vw, 60px);
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.26);
    border-radius: 28px;
    background: #050505;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--text);
    background: linear-gradient(180deg, rgba(15, 9, 4, 0.42), rgba(15, 9, 4, 0.86));
}

.player-card.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    box-shadow: 0 18px 48px rgba(251, 191, 36, 0.28);
    clip-path: polygon(30% 20%, 30% 80%, 82% 50%);
}

.play-overlay strong {
    font-size: 1.2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 22px;
}

.story-card,
.info-card,
.review-card {
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: var(--radius);
    background: rgba(69, 26, 3, 0.52);
}

.review-card {
    margin-top: 22px;
}

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

.info-card div {
    display: grid;
    gap: 7px;
}

.info-card dt {
    color: var(--muted-soft);
    font-weight: 900;
}

.info-card dd {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
}

.large-search {
    display: flex;
    width: min(680px, 100%);
    margin-top: 30px;
    padding: 9px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    background: rgba(69, 26, 3, 0.58);
}

.large-search input {
    flex: 1;
    padding: 0 16px;
}

.search-status {
    margin-bottom: 20px;
    color: var(--muted);
    font-weight: 800;
}

.center-copy {
    text-align: center;
}

.center-copy p,
.center-actions {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.site-footer {
    padding: 50px 0;
    border-top: 1px solid var(--line);
    background: rgba(15, 9, 4, 0.78);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 28px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 12px;
    color: #fde68a;
    font-size: 1.4rem;
    font-weight: 900;
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: var(--muted);
}

@media (max-width: 1080px) {
    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .site-nav {
        position: absolute;
        top: 76px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(31, 19, 8, 0.98);
        box-shadow: var(--shadow);
    }

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

    .nav-search {
        border-radius: 18px;
    }

    .nav-search input {
        width: 100%;
        flex: 1;
    }

    .split-heading,
    .detail-layout,
    .content-grid,
    .footer-grid,
    .channel-card {
        grid-template-columns: 1fr;
    }

    .split-heading {
        align-items: start;
    }

    .detail-poster {
        width: min(320px, 78vw);
    }

    .compact-list,
    .long-list {
        grid-template-columns: 1fr;
    }
}

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

    .brand-copy em {
        display: none;
    }

    .hero-content h1,
    .hero-content h2,
    .page-hero h1,
    .detail-copy h1 {
        font-size: clamp(2.1rem, 13vw, 3.6rem);
    }

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

    .movie-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: auto 74px minmax(0, 1fr);
    }

    .rank-num {
        width: 34px;
        font-size: 1.05rem;
    }

    .large-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
    }

    .large-search input {
        min-height: 46px;
    }
}
