:root {
    --red-950: #450a0a;
    --red-900: #7f1d1d;
    --red-800: #991b1b;
    --red-700: #b91c1c;
    --red-600: #dc2626;
    --gold: #facc15;
    --gold-dark: #f59e0b;
    --ink: #0f172a;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.22);
    --paper: #fffaf0;
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(69, 10, 10, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fffaf0 100%);
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: white;
    background: linear-gradient(90deg, var(--red-800), var(--red-700), var(--red-800));
    box-shadow: 0 20px 40px rgba(127, 29, 29, 0.26);
}

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

.logo,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--gold), var(--red-600));
    box-shadow: 0 12px 28px rgba(250, 204, 21, 0.28);
}

.logo-text {
    display: grid;
    gap: 2px;
}

.logo-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #fef08a, #ffffff);
    -webkit-background-clip: text;
    color: transparent;
}

.logo-text em {
    font-style: normal;
    color: #fecaca;
    font-size: 12px;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #fee2e2;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff7ad;
    background: rgba(255, 255, 255, 0.12);
}

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

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: white;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 10px 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    color: white;
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.22), transparent 30%), linear-gradient(135deg, #111827 0%, var(--red-950) 45%, var(--red-800) 100%);
}

.hero-bg::before,
.hero-bg::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.22;
    background: var(--gold);
}

.hero-bg::before {
    top: 80px;
    right: 14%;
}

.hero-bg::after {
    left: -80px;
    bottom: -80px;
    background: #ef4444;
}

.hero-inner {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 60px 0 86px;
}

.hero-slide {
    display: none;
    align-items: center;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    gap: 56px;
    width: 100%;
    animation: fadeSlide 0.5s ease both;
}

.hero-slide.is-active {
    display: grid;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.hero-text {
    max-width: 680px;
    margin: 24px 0;
    color: #fee2e2;
    font-size: 19px;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #7f1d1d;
    background: #fef3c7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

.btn.primary {
    color: white;
    background: linear-gradient(135deg, var(--red-600), var(--red-800));
    box-shadow: 0 16px 28px rgba(220, 38, 38, 0.28);
}

.btn.secondary {
    color: white;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn:hover,
.movie-card:hover,
.category-card:hover,
.rank-card:hover {
    transform: translateY(-3px);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 45%, rgba(69, 10, 10, 0.72));
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 44px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.28);
}

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

.category-strip {
    background: #ffffff;
    border-bottom: 1px solid rgba(127, 29, 29, 0.12);
}

.category-strip-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
}

.category-strip strong {
    white-space: nowrap;
    color: var(--red-800);
}

.category-links {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.category-links a {
    white-space: nowrap;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--red-800);
    background: #fff7ed;
    border: 1px solid rgba(185, 28, 28, 0.15);
    font-weight: 700;
}

.spotlight-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 24px;
    padding: 44px 0 8px;
}

.spotlight-panel,
.spotlight-card,
.category-card,
.detail-copy-block,
.filter-bar,
.rank-card {
    border: 1px solid rgba(185, 28, 28, 0.12);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    border-radius: 28px;
}

.spotlight-panel {
    padding: 28px;
}

.spotlight-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
    padding: 32px;
    color: white;
    background: radial-gradient(circle at top right, rgba(250, 204, 21, 0.3), transparent 35%), linear-gradient(135deg, var(--red-800), #111827);
}

.spotlight-card p {
    color: #fde68a;
    font-weight: 800;
}

.spotlight-card h2 {
    margin: 4px 0 24px;
    font-size: 32px;
    line-height: 1.25;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 22px;
}

.section-heading.compact {
    margin-bottom: 14px;
}

.section-heading p {
    margin: 0 0 6px;
    color: var(--muted);
    font-weight: 700;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.02em;
}

.section-heading a {
    color: var(--red-700);
    font-weight: 800;
}

.content-section {
    padding: 46px 0;
}

.movie-grid {
    display: grid;
    gap: 20px;
}

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

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 18px 42px rgba(69, 10, 10, 0.13);
    border: 1px solid rgba(185, 28, 28, 0.1);
    transition: 0.2s ease;
}

.movie-card[hidden],
.rank-card[hidden] {
    display: none;
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--red-900), #111827);
}

.movie-poster img {
    transition: transform 0.35s ease;
}

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

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

.play-pill {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 7px 12px;
    border-radius: 999px;
    color: white;
    background: rgba(220, 38, 38, 0.92);
    font-size: 13px;
    font-weight: 800;
}

.movie-card-body {
    padding: 14px;
}

.movie-meta {
    margin: 0 0 8px;
    color: var(--red-700);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    min-height: 48px;
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.42;
}

.movie-line {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.compact-card .tag-row span {
    font-size: 11px;
    padding: 5px 8px;
}

.mini-rank {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mini-rank a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #fff7ed;
}

.mini-rank span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--red-600), var(--red-900));
    font-weight: 900;
}

.mini-rank strong,
.mini-rank em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-rank em {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.page-hero,
.detail-hero {
    color: white;
    padding: 76px 0;
    background: radial-gradient(circle at 80% 20%, rgba(250, 204, 21, 0.22), transparent 24%), linear-gradient(135deg, #111827, var(--red-950) 54%, var(--red-800));
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    color: #fee2e2;
    font-size: 18px;
    line-height: 1.8;
}

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

.category-card {
    overflow: hidden;
    transition: 0.2s ease;
}

.category-card-main {
    display: block;
    min-height: 190px;
    padding: 28px;
    color: white;
    background: radial-gradient(circle at top right, rgba(250, 204, 21, 0.22), transparent 35%), linear-gradient(135deg, var(--red-800), #111827);
}

.category-card-main span {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fde68a;
    font-weight: 800;
}

.category-card-main h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.45;
}

.category-card-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
}

.category-card-links a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff7ed;
    color: var(--red-800);
    font-weight: 700;
}

.list-section {
    padding: 40px 0 70px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(140px, 0.5fr));
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 28px;
}

.filter-bar label {
    display: grid;
    gap: 7px;
}

.filter-bar span {
    color: var(--red-800);
    font-weight: 800;
    font-size: 13px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(185, 28, 28, 0.16);
    border-radius: 14px;
    padding: 12px 13px;
    outline: none;
    background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--red-600);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.filter-empty {
    margin: 16px 0;
    padding: 18px;
    border-radius: 18px;
    color: var(--red-800);
    background: #fee2e2;
    font-weight: 700;
}

.rank-grid {
    display: grid;
    gap: 18px;
}

.rank-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 14px;
    transition: 0.2s ease;
}

.rank-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--red-900), #111827);
}

.rank-cover span {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--gold-dark), var(--red-600));
    font-weight: 900;
}

.rank-card h2 {
    margin: 6px 0 8px;
    font-size: 24px;
}

.rank-card p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: #fecaca;
    font-weight: 700;
}

.detail-top {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
    background: linear-gradient(135deg, var(--red-900), #111827);
}

.detail-line {
    max-width: 760px;
    color: #fee2e2;
    font-size: 19px;
    line-height: 1.8;
}

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

.detail-meta span {
    padding: 9px 12px;
    border-radius: 999px;
    color: #fee2e2;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 700;
}

.detail-tags span {
    background: rgba(254, 243, 199, 0.94);
}

.player-section {
    padding: 48px 0;
    background: #111827;
    color: white;
}

.player-section h2 {
    margin: 0 0 20px;
    font-size: clamp(26px, 3vw, 38px);
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: white;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.14), rgba(69, 10, 10, 0.76));
}

.player-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--red-600), var(--gold-dark));
    box-shadow: 0 16px 40px rgba(220, 38, 38, 0.42);
}

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

.player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.detail-content {
    padding: 48px 0 72px;
}

.detail-copy-block {
    padding: 30px;
    margin-bottom: 26px;
}

.detail-copy-block h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.detail-copy-block p {
    margin: 0;
    color: #334155;
    font-size: 17px;
    line-height: 1.95;
}

.related-section {
    margin-top: 40px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #030712);
}

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

.footer-brand {
    color: white;
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 480px;
    margin: 0;
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: white;
}

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

.footer-links a:hover {
    color: #fca5a5;
}

.footer-bottom {
    padding: 18px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1120px) {
    .home-grid,
    .related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero-slide,
    .spotlight-layout,
    .detail-top,
    .footer-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        gap: 32px;
        padding: 18px 0 44px;
    }

    .hero-poster,
    .detail-poster {
        max-width: 360px;
    }

    .hero-dots {
        left: 0;
        bottom: 24px;
    }

    .category-strip-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

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

    .logo-text strong {
        font-size: 17px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

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

    .hero-text,
    .detail-line,
    .page-hero p:not(.eyebrow) {
        font-size: 16px;
    }

    .page-hero,
    .detail-hero {
        padding: 48px 0;
    }

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

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

    .movie-line,
    .tag-row {
        display: none;
    }

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

    .rank-card h2 {
        font-size: 18px;
    }

    .detail-copy-block {
        padding: 22px;
    }

    .category-card-links {
        grid-template-columns: 1fr;
    }
}
