
:root {
    --bg: #0f172a;
    --panel: #111827;
    --panel-soft: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #dc2626;
    --brand-dark: #991b1b;
    --gold: #f59e0b;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

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

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

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

.container.narrow {
    width: min(860px, calc(100% - 32px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.22);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ef4444, #991b1b);
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 20px;
}

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

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

.nav-link {
    padding: 8px 12px;
    border-radius: 999px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--white);
    background: rgba(220, 38, 38, 0.92);
}

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

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
}

.hero,
.page-hero,
.detail-hero {
    color: var(--white);
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.42), transparent 30%),
        linear-gradient(135deg, #0f172a, #1e293b 45%, #7f1d1d);
}

.hero {
    padding: 92px 0;
}

.page-hero.compact {
    padding: 58px 0;
}

.detail-hero {
    padding: 58px 0 66px;
}

.hero-grid,
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 42px;
    align-items: center;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(36px, 7vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero h1,
.detail-copy h1 {
    font-size: clamp(32px, 5vw, 54px);
}

.hero-copy p,
.page-hero p,
.detail-line {
    max-width: 760px;
    margin: 20px 0 0;
    color: #e2e8f0;
    font-size: 18px;
}

.eyebrow {
    margin: 0 0 10px;
    color: #fca5a5;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.primary-button,
.ghost-button,
.soft-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--white);
    background: var(--brand);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.34);
}

.primary-button:hover,
.ghost-button:hover,
.soft-button:hover {
    transform: translateY(-2px);
}

.ghost-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.ghost-button.dark {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.soft-button {
    color: var(--brand-dark);
    background: #fee2e2;
}

.hero-panel {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow);
}

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

.hero-panel span {
    display: block;
    margin-top: 8px;
    font-size: 20px;
    font-weight: 800;
}

.hero-panel p {
    color: #e2e8f0;
}

.section-block {
    padding: 58px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.15;
}

.section-heading.small h2 {
    font-size: 30px;
}

.section-heading.with-tools {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    padding: 18px;
    color: var(--white);
    background: linear-gradient(145deg, #111827, #991b1b);
    isolation: isolate;
}

.poster::before {
    position: absolute;
    inset: 16px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    content: "";
}

.poster::after {
    position: absolute;
    right: -34px;
    bottom: -34px;
    z-index: -1;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    content: "";
}

.poster.tone-0 { background: linear-gradient(145deg, #0f172a, #991b1b); }
.poster.tone-1 { background: linear-gradient(145deg, #111827, #be123c); }
.poster.tone-2 { background: linear-gradient(145deg, #1e1b4b, #7c2d12); }
.poster.tone-3 { background: linear-gradient(145deg, #164e63, #7f1d1d); }
.poster.tone-4 { background: linear-gradient(145deg, #312e81, #9f1239); }
.poster.tone-5 { background: linear-gradient(145deg, #064e3b, #7c2d12); }
.poster.tone-6 { background: linear-gradient(145deg, #27272a, #a21caf); }
.poster.tone-7 { background: linear-gradient(145deg, #1f2937, #b45309); }

.poster-kind,
.poster-year {
    align-self: flex-start;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 750;
}

.poster-title {
    display: block;
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.1em;
}

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

.movie-card h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--brand);
}

.movie-meta,
.movie-genre,
.movie-line {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.movie-line {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span,
.genre-links a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #991b1b;
    background: #fee2e2;
    font-size: 12px;
    font-weight: 750;
}

.tag-row.large span {
    min-height: 34px;
    padding: 0 13px;
    font-size: 14px;
}

.genre-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

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

.category-card,
.index-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 150px;
    padding: 22px;
    border-radius: var(--radius);
    color: var(--white);
    background: linear-gradient(145deg, #1e293b, #7f1d1d);
    box-shadow: var(--shadow);
}

.category-card strong,
.index-card strong {
    font-size: 24px;
}

.category-card span,
.index-card span {
    color: #fecaca;
    font-weight: 800;
}

.category-card em {
    color: #e2e8f0;
    font-style: normal;
}

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

.index-card {
    min-height: 110px;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--line);
}

.index-card span {
    color: var(--brand);
}

.split-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-cloud a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-weight: 750;
}

.chip-cloud a:hover {
    color: var(--brand);
    border-color: #fecaca;
}

.chip-cloud span {
    color: var(--muted);
    font-size: 12px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
}

.pagination a,
.pagination strong,
.pagination span {
    min-width: 40px;
    padding: 8px 12px;
    border-radius: 999px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
}

.pagination strong {
    color: var(--white);
    background: var(--brand);
    border-color: var(--brand);
}

.detail-grid {
    grid-template-columns: 320px minmax(0, 1fr);
}

.detail-poster-wrap .poster {
    min-height: 430px;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-weight: 750;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding: 48px 0 0;
}

.content-card,
.side-card,
.text-page {
    margin-bottom: 22px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.content-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.content-card p,
.text-page p {
    margin: 0 0 14px;
    color: #334155;
    font-size: 17px;
}

.side-card dl {
    margin: 0;
}

.side-card dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.side-card dd {
    margin: 0 0 13px;
    color: var(--text);
    font-weight: 750;
}

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

.side-links a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 750;
}

.side-links a:hover {
    color: var(--brand);
}

.side-links span {
    color: var(--muted);
    font-size: 13px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    color: var(--white);
    background: linear-gradient(135deg, #dc2626, #991b1b);
    font-size: 22px;
    font-weight: 900;
}

.rank-row h3 {
    margin: 0;
    font-size: 22px;
}

.rank-row p,
.rank-row span {
    display: block;
    margin: 4px 0 0;
    color: var(--muted);
}

.search-box {
    margin-top: 26px;
}

.search-box input {
    width: 100%;
    min-height: 58px;
    padding: 0 20px;
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow);
    font-size: 18px;
    outline: none;
}

.sitemap-list {
    columns: 3;
    column-gap: 26px;
}

.sitemap-list a {
    display: block;
    break-inside: avoid;
    margin-bottom: 8px;
    color: #334155;
}

.site-footer {
    margin-top: 48px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 30px;
    padding: 48px 0;
}

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

.site-footer p {
    margin: 0 0 8px;
    color: #cbd5e1;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 980px) {
    .site-nav {
        position: absolute;
        top: 74px;
        right: 16px;
        left: 16px;
        display: none;
        padding: 14px;
        border-radius: 18px;
        background: #111827;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-toggle {
        display: block;
    }

    .hero-grid,
    .detail-grid,
    .detail-layout,
    .split-block,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

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

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

    .rank-row {
        grid-template-columns: 1fr;
    }

    .sitemap-list {
        columns: 1;
    }

    .footer-bottom .container {
        flex-direction: column;
    }
}
