:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --ink: #3b0a0a;
    --muted: #7c2d12;
    --brand: #b91c1c;
    --brand-dark: #7f1d1d;
    --gold: #d97706;
    --gold-soft: #fef3c7;
    --line: rgba(180, 83, 9, 0.25);
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 18px 50px rgba(127, 29, 29, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(252, 211, 77, 0.36), transparent 34rem),
        linear-gradient(135deg, #fff7ed 0%, #fef2f2 48%, #fffbeb 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(254, 242, 242, 0.94), rgba(255, 251, 235, 0.94));
    border-bottom: 2px solid rgba(180, 83, 9, 0.55);
    box-shadow: 0 14px 32px rgba(127, 29, 29, 0.12);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    max-width: 1280px;
    height: 80px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--brand-dark);
}

.brand__mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #b91c1c, #f59e0b);
    box-shadow: 0 12px 26px rgba(185, 28, 28, 0.28);
}

.brand__text {
    font-size: 22px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-weight: 700;
}

.desktop-nav a {
    position: relative;
    padding: 8px 0;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--gold);
    transition: transform 0.2s ease;
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--brand-dark);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
    border-top: 1px solid var(--line);
}

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

.mobile-nav a {
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--brand-dark);
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    background: #1f0909;
}

.hero__slides {
    position: relative;
    min-height: 610px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 420px);
    align-items: center;
    gap: 54px;
    padding: 64px max(24px, calc((100vw - 1280px) / 2 + 24px));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.hero-slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(10px) saturate(1.15);
    transform: scale(1.08);
    opacity: 0.38;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(69, 10, 10, 0.95), rgba(127, 29, 29, 0.7), rgba(146, 64, 14, 0.58)),
        radial-gradient(circle at 75% 20%, rgba(251, 191, 36, 0.28), transparent 22rem);
}

.hero-slide__content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 12px;
    color: #d97706;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #fbbf24;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    color: #fff7ed;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-summary {
    max-width: 720px;
    margin: 24px 0 0;
    color: #fde68a;
    font-size: 18px;
    line-height: 1.9;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.movie-card__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(254, 243, 199, 0.94);
    color: #7c2d12;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    background: rgba(255, 247, 237, 0.16);
    color: #fffbeb;
    box-shadow: inset 0 0 0 1px rgba(255, 247, 237, 0.24);
}

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

.primary-button,
.ghost-button,
.text-link,
.section-heading > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 900;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    box-shadow: 0 18px 34px rgba(220, 38, 38, 0.34);
}

.ghost-button {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-poster {
    align-self: stretch;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 251, 235, 0.24);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
    transform: rotate(1deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 430px;
    background: linear-gradient(135deg, #7f1d1d, #f59e0b);
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    font-size: 34px;
    line-height: 1;
}

.hero-arrow--prev {
    left: 20px;
}

.hero-arrow--next {
    right: 20px;
}

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

.hero-dots button {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.is-active {
    width: 34px;
    background: #fbbf24;
}

.search-band,
.section-block,
.inner-hero,
.detail-hero,
.player-section,
.detail-content {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.search-band {
    margin-top: -42px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 460px);
    align-items: center;
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    border: 1px solid rgba(251, 191, 36, 0.42);
}

.search-band h2,
.section-heading h2,
.inner-hero h1,
.player-section h2,
.content-card h2 {
    margin: 0;
    color: var(--brand-dark);
    letter-spacing: -0.04em;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    border-radius: 999px;
    padding: 0 18px;
    background: #fff7ed;
    border: 1px solid var(--line);
}

.search-box--wide {
    max-width: 720px;
    margin-top: 26px;
}

.search-box span {
    color: var(--gold);
    font-size: 22px;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--brand-dark);
    font-weight: 700;
}

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

.section-block--warm {
    max-width: none;
    margin-top: 54px;
    padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    background: linear-gradient(90deg, rgba(254, 243, 199, 0.82), rgba(254, 226, 226, 0.75), rgba(254, 243, 199, 0.82));
}

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

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-heading > a,
.text-link {
    color: var(--brand);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px var(--line);
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid rgba(251, 191, 36, 0.38);
    box-shadow: 0 18px 42px rgba(127, 29, 29, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 58px rgba(127, 29, 29, 0.18);
}

.movie-card__cover {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #7f1d1d, #f59e0b);
}

.movie-card--large .movie-card__cover {
    height: 315px;
}

.movie-card--compact .movie-card__cover {
    height: 210px;
}

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

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

.movie-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(69, 10, 10, 0.8));
}

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.24);
}

.rank-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    min-width: 42px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #7f1d1d;
    background: #fef3c7;
    font-weight: 900;
}

.movie-card__body {
    padding: 18px;
}

.movie-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.movie-card h2 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 20px;
    line-height: 1.25;
}

.movie-card p {
    margin: 10px 0 0;
    color: #7c2d12;
    line-height: 1.75;
    font-size: 14px;
}

.tag-row {
    margin-top: 14px;
}

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

.category-tile,
.category-panel {
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 18px 42px rgba(127, 29, 29, 0.1);
}

.category-tile {
    position: relative;
    min-height: 240px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: #fff7ed;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: linear-gradient(135deg, #7f1d1d, #f59e0b);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 15%, rgba(69, 10, 10, 0.88));
}

.category-tile span,
.category-tile strong {
    position: relative;
    z-index: 2;
}

.category-tile span {
    font-size: 26px;
    font-weight: 900;
}

.category-tile strong {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.7;
}

.inner-hero {
    padding-top: 74px;
    padding-bottom: 34px;
}

.inner-hero h1 {
    max-width: 920px;
    font-size: clamp(38px, 5vw, 58px);
}

.inner-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-panel {
    display: grid;
    grid-template-columns: 210px 1fr;
}

.category-panel__images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 10px;
}

.category-panel__images img {
    width: 100%;
    height: 112px;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #7f1d1d, #f59e0b);
}

.category-panel__body {
    padding: 24px;
}

.category-panel__body h2 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 28px;
}

.category-panel__body p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.8;
}

.detail-hero {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 36px;
    padding-top: 54px;
    padding-bottom: 42px;
}

.detail-hero__poster {
    overflow: hidden;
    min-height: 480px;
    border-radius: 30px;
    background: linear-gradient(135deg, #7f1d1d, #f59e0b);
    box-shadow: var(--shadow);
}

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

.detail-hero__content {
    align-self: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
    color: var(--muted);
    font-weight: 700;
}

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

.detail-hero h1 {
    margin: 0;
    color: var(--brand-dark);
    font-size: clamp(36px, 5vw, 60px);
    letter-spacing: -0.06em;
    line-height: 1.05;
}

.detail-meta {
    margin-top: 22px;
}

.detail-one-line {
    max-width: 820px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.85;
}

.tag-row--detail span {
    background: #fff;
}

.player-section {
    padding-top: 20px;
    padding-bottom: 36px;
}

.player-section h2 {
    margin-bottom: 20px;
    font-size: 34px;
}

.video-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #050505;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.video-player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff7ed;
    background: linear-gradient(180deg, rgba(69, 10, 10, 0.32), rgba(0, 0, 0, 0.7));
}

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

.video-overlay__button {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
    font-size: 28px;
}

.video-overlay strong {
    font-size: clamp(22px, 4vw, 40px);
}

.video-overlay em {
    color: #fde68a;
    font-style: normal;
    font-weight: 700;
}

.video-status {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 4;
    color: #fff7ed;
    text-align: center;
    pointer-events: none;
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.content-card {
    padding: 26px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 18px 42px rgba(127, 29, 29, 0.1);
}

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

.content-card p {
    margin: 0;
    color: var(--muted);
    line-height: 2;
    font-size: 17px;
}

.site-footer {
    margin-top: 70px;
    color: #fde68a;
    background: linear-gradient(135deg, #450a0a, #7f1d1d 48%, #92400e);
}

.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 52px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: #fff7ed;
    font-size: 24px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #fbbf24;
    font-size: 20px;
}

.site-footer p,
.site-footer li {
    color: #fde68a;
    line-height: 1.8;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.site-footer__bottom {
    padding: 18px 24px 24px;
    text-align: center;
    color: rgba(254, 243, 199, 0.84);
    border-top: 1px solid rgba(254, 243, 199, 0.18);
}

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

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

    .mobile-menu-button {
        display: block;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 48px;
        padding-bottom: 70px;
    }

    .hero-poster {
        display: none;
    }

    .search-band,
    .detail-hero,
    .detail-content,
    .category-panel,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .movie-grid--featured,
    .movie-grid--rank,
    .movie-grid--related,
    .category-grid,
    .category-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-hero__poster {
        min-height: auto;
        max-height: 520px;
    }
}

@media (max-width: 640px) {
    .site-header__inner {
        height: 68px;
        padding: 0 16px;
    }

    .brand__text {
        font-size: 18px;
    }

    .brand__mark {
        width: 38px;
        height: 38px;
    }

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

    .hero-slide {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-summary {
        font-size: 16px;
    }

    .hero-arrow {
        display: none;
    }

    .search-band,
    .section-block,
    .inner-hero,
    .detail-hero,
    .player-section,
    .detail-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .search-band {
        grid-template-columns: 1fr;
        margin-left: 14px;
        margin-right: 14px;
    }

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

    .movie-grid,
    .movie-grid--featured,
    .movie-grid--rank,
    .movie-grid--related,
    .category-grid,
    .category-panels {
        grid-template-columns: 1fr;
    }

    .movie-card__cover,
    .movie-card--large .movie-card__cover,
    .movie-card--compact .movie-card__cover {
        height: 230px;
    }

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

    .category-panel__images img {
        height: 88px;
    }
}
