:root {
    --red-950: #450a0a;
    --red-900: #7f1d1d;
    --red-800: #991b1b;
    --red-700: #b91c1c;
    --amber-900: #78350f;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-400: #f59e0b;
    --amber-300: #fcd34d;
    --cream: #fff7ed;
    --paper: #fffbeb;
    --ink: #33140a;
    --muted: #875f3d;
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(69, 10, 10, 0.18);
    --soft-shadow: 0 12px 30px rgba(69, 10, 10, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #fffaf0 42%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 237, 0.9);
    border-bottom: 1px solid rgba(180, 83, 9, 0.18);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--white);
    font-weight: 900;
    font-size: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red-700), var(--amber-600));
    box-shadow: 0 10px 28px rgba(185, 28, 28, 0.28);
}

.brand-copy strong,
.footer-brand strong {
    display: block;
    color: var(--red-900);
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-copy em {
    display: block;
    color: var(--amber-700);
    font-size: 12px;
    font-style: normal;
    letter-spacing: 0.12em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    color: var(--red-900);
    font-weight: 700;
    padding: 8px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--amber-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.header-search {
    width: 260px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(180, 83, 9, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 30px rgba(69, 10, 10, 0.08);
}

.search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    padding: 4px 10px;
}

.search-form button,
.primary-button,
.small-button {
    border: 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-700), var(--amber-600));
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(185, 28, 28, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-form button:hover,
.primary-button:hover,
.small-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(185, 28, 28, 0.3);
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: var(--red-900);
    border: 1px solid rgba(180, 83, 9, 0.22);
    border-radius: 12px;
    background: var(--white);
}

.mobile-nav {
    display: none;
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 0 20px 18px;
}

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

.mobile-link {
    color: var(--red-900);
    font-weight: 800;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
}

.mobile-link.is-active {
    color: var(--white);
    background: linear-gradient(135deg, var(--red-800), var(--amber-600));
}

.hero-shell {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(120deg, var(--red-950), var(--red-900) 44%, var(--amber-900));
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(252, 211, 77, 0.28), transparent 30%),
        radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(127, 29, 29, 0.95), rgba(120, 53, 15, 0.85));
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.26) 1px, transparent 1px);
    background-size: 58px 58px;
}

.hero-inner {
    position: relative;
    width: min(100%, var(--container));
    min-height: 680px;
    margin: 0 auto;
    padding: 70px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    color: var(--amber-300);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-intro h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-intro p,
.page-hero p,
.detail-copy .lead {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(255, 247, 237, 0.88);
    font-size: 18px;
}

.hero-search {
    max-width: 620px;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
}

.hero-search input {
    color: var(--white);
}

.hero-search input::placeholder {
    color: rgba(255, 247, 237, 0.75);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.hero-stats span {
    min-width: 120px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.hero-stats strong {
    display: block;
    font-size: 26px;
    line-height: 1;
}

.hero-stats em {
    display: block;
    margin-top: 6px;
    color: rgba(255, 247, 237, 0.75);
    font-size: 13px;
    font-style: normal;
}

.hero-channel-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-channel-links a {
    color: var(--white);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-carousel {
    position: relative;
    min-height: 560px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    padding: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(1.02);
}

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

.hero-poster {
    position: absolute;
    inset: 0;
    z-index: -1;
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(69, 10, 10, 0.05), rgba(69, 10, 10, 0.92));
}

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

.hero-copy h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.12;
}

.hero-copy p {
    margin: 14px 0 0;
    color: rgba(255, 247, 237, 0.88);
}

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

.hero-tags span,
.tag-row span {
    color: var(--red-900);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(252, 211, 77, 0.88);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-dots {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

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

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

.section-block {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 64px 20px;
}

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

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

.section-heading span {
    display: block;
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 2px 0 0;
    color: var(--red-900);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

.section-heading a {
    color: var(--red-900);
    font-weight: 900;
    border-bottom: 2px solid var(--amber-600);
}

.section-heading.light h2,
.section-heading.light span,
.section-heading.light a {
    color: var(--white);
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(180, 83, 9, 0.15);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--red-900), var(--amber-700));
}

.movie-card.compact .poster-link {
    aspect-ratio: 16 / 11;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(69, 10, 10, 0.82));
}

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--white);
    border-radius: 999px;
    background: rgba(185, 28, 28, 0.86);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--red-950);
    border-radius: 999px;
    background: var(--amber-300);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.movie-body {
    padding: 18px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff1d6;
}

.movie-card h3 {
    margin: 12px 0 8px;
    color: var(--red-900);
    font-size: 19px;
    line-height: 1.25;
}

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

.section-band {
    background: linear-gradient(135deg, var(--red-900), var(--amber-900));
}

.section-band.warm {
    background: linear-gradient(135deg, #9a3412, #7f1d1d 58%, #451a03);
}

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

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

.category-tile,
.category-card {
    position: relative;
    overflow: hidden;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 22px;
    color: var(--white);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--red-800), var(--amber-700));
    box-shadow: var(--soft-shadow);
}

.category-tile::before,
.category-card::before {
    content: "";
    position: absolute;
    inset: auto -30px -50px auto;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
}

.category-tile strong,
.category-card span {
    position: relative;
    font-size: 22px;
    font-weight: 900;
}

.category-tile span,
.category-card p {
    position: relative;
    margin: 0;
    color: rgba(255, 247, 237, 0.86);
    font-size: 14px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-950), var(--red-900), var(--amber-900));
}

.page-hero.slim {
    padding: 88px 20px;
}

.page-hero > div {
    width: min(100%, var(--container));
    margin: 0 auto;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.inline-filter {
    flex: 1;
}

.inline-filter input {
    width: 100%;
    border: 1px solid rgba(180, 83, 9, 0.22);
    border-radius: 999px;
    outline: 0;
    padding: 13px 18px;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(69, 10, 10, 0.08);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    color: var(--red-900);
    border: 1px solid rgba(180, 83, 9, 0.25);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    background: var(--white);
}

.filter-pill.is-active {
    color: var(--white);
    background: linear-gradient(135deg, var(--red-700), var(--amber-600));
}

.empty-state {
    margin: 28px 0 0;
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(180, 83, 9, 0.15);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.rank-number {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--white);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red-800), var(--amber-600));
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 10;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h2 {
    margin: 0 0 6px;
    color: var(--red-900);
    font-size: 22px;
}

.rank-info p {
    margin: 0 0 8px;
    color: var(--muted);
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.detail-inner {
    position: relative;
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 38px 20px 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 247, 237, 0.78);
    font-size: 14px;
    margin-bottom: 28px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 34px;
    align-items: center;
}

.player-card {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-xl);
    padding: 12px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #120403;
    aspect-ratio: 16 / 9;
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #080202;
}

.video-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.52));
}

.video-cover.is-hidden {
    display: none;
}

.video-cover span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    color: var(--white);
    border-radius: 999px;
    font-size: 36px;
    background: linear-gradient(135deg, var(--red-700), var(--amber-600));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

.detail-copy {
    padding: 8px 0;
}

.detail-tags span {
    background: rgba(252, 211, 77, 0.92);
}

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

.story-card,
.info-card {
    padding: 28px;
    border: 1px solid rgba(180, 83, 9, 0.15);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.story-card h2,
.info-card h2 {
    margin: 0 0 14px;
    color: var(--red-900);
    font-size: 26px;
}

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

.story-card p {
    margin: 0;
    color: #54301d;
    font-size: 17px;
}

.info-card dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px 16px;
    margin: 0;
}

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

.info-card dd {
    margin: 0;
    color: var(--red-900);
    font-weight: 800;
}

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

.footer-inner {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 42px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 560px;
}

.footer-brand strong {
    color: var(--white);
}

.footer-brand p {
    margin: 6px 0 0;
    color: rgba(255, 247, 237, 0.72);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 16px 20px;
    color: rgba(255, 247, 237, 0.74);
    text-align: center;
    font-size: 13px;
}

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

    .menu-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .hero-inner,
    .detail-layout,
    .content-columns {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        min-height: 520px;
    }

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

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

@media (max-width: 760px) {
    .header-inner {
        padding: 12px 16px;
    }

    .brand-copy strong {
        font-size: 17px;
    }

    .brand-copy em {
        display: none;
    }

    .hero-shell,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 44px 16px;
        gap: 30px;
    }

    .hero-intro h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 34px;
    }

    .hero-carousel {
        min-height: 460px;
    }

    .section-block,
    .section-block.inner {
        padding: 42px 16px;
    }

    .section-heading,
    .toolbar,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .featured-grid,
    .ranking-grid,
    .category-grid,
    .category-grid.large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-body {
        padding: 14px;
    }

    .movie-card h3 {
        font-size: 16px;
    }

    .rank-row {
        grid-template-columns: 42px 86px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-row .small-button {
        grid-column: 2 / -1;
        text-align: center;
    }

    .detail-inner {
        padding: 28px 16px 44px;
    }

    .story-card,
    .info-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .featured-grid,
    .ranking-grid,
    .category-grid,
    .category-grid.large {
        grid-template-columns: 1fr;
    }

    .hero-stats span {
        flex: 1 1 100%;
    }

    .hero-carousel {
        min-height: 420px;
    }
}
