/* Static movie website styles. */
:root {
    color-scheme: dark;
    --bg: #05070d;
    --bg-soft: #0b1020;
    --panel: rgba(17, 24, 39, 0.74);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --border: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #aab4c5;
    --muted-2: #708096;
    --accent: #d8b46a;
    --accent-2: #7dd3fc;
    --danger: #fb7185;
    --radius: 22px;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 5%, rgba(216, 180, 106, 0.18), transparent 26rem),
        radial-gradient(circle at 82% 14%, rgba(125, 211, 252, 0.13), transparent 24rem),
        linear-gradient(135deg, #020617 0%, #0f172a 48%, #030712 100%);
}

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

img {
    max-width: 100%;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--border);
    background: rgba(3, 7, 18, 0.78);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(216, 180, 106, 0.48);
    border-radius: 16px;
    color: #111827;
    background: linear-gradient(135deg, #fef3c7, #d8b46a);
    box-shadow: 0 10px 30px rgba(216, 180, 106, 0.22);
    font-weight: 800;
}

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

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.06em;
}

.brand-text small {
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 12px 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    transition: 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    border-color: rgba(216, 180, 106, 0.36);
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    padding: 64px 0 36px;
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.16fr 0.84fr;
    gap: 30px;
    align-items: stretch;
    min-height: 440px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.54)),
        radial-gradient(circle at 80% 20%, rgba(216, 180, 106, 0.22), transparent 25rem);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.9;
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    transition: 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 180, 106, 0.42);
    background: rgba(216, 180, 106, 0.12);
}

.button-primary {
    color: #111827;
    border-color: rgba(216, 180, 106, 0.65);
    background: linear-gradient(135deg, #fde68a, #d8b46a);
}

.hero-aside {
    display: flex;
    align-items: stretch;
}

.poster {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-height: 260px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, #1f2937, #111827);
}

.poster::before {
    content: "";
    position: absolute;
    inset: -26%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 34%);
    opacity: 0.72;
}

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 58%);
}

.poster-large {
    min-height: 100%;
}

.poster-no,
.poster-title,
.poster-year {
    position: relative;
    z-index: 1;
}

.poster-no {
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(0, 0, 0, 0.24);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.poster-title {
    margin-top: auto;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.18;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.poster-year {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.poster-theme-1 { background: linear-gradient(145deg, #7f1d1d, #111827); }
.poster-theme-2 { background: linear-gradient(145deg, #064e3b, #111827); }
.poster-theme-3 { background: linear-gradient(145deg, #1e3a8a, #111827); }
.poster-theme-4 { background: linear-gradient(145deg, #581c87, #111827); }
.poster-theme-5 { background: linear-gradient(145deg, #713f12, #111827); }
.poster-theme-6 { background: linear-gradient(145deg, #164e63, #111827); }
.poster-theme-7 { background: linear-gradient(145deg, #3f3f46, #111827); }
.poster-theme-8 { background: linear-gradient(145deg, #831843, #111827); }
.poster-theme-9 { background: linear-gradient(145deg, #1f2937, #020617); }
.poster-theme-10 { background: linear-gradient(145deg, #312e81, #111827); }
.poster-theme-11 { background: linear-gradient(145deg, #365314, #111827); }
.poster-theme-12 { background: linear-gradient(145deg, #7c2d12, #111827); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.stat-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
}

.stat-card strong {
    display: block;
    font-size: 26px;
}

.stat-card span {
    display: block;
    margin-top: 6px;
    color: var(--muted-2);
    font-size: 13px;
}

.page-main {
    padding: 34px 0 70px;
}

.section {
    margin-top: 58px;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 42px);
    letter-spacing: -0.035em;
}

.section-head p:not(.eyebrow) {
    max-width: 700px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    min-width: max-content;
    color: var(--accent);
    font-weight: 700;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transition: 180ms ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 180, 106, 0.34);
    background: rgba(17, 24, 39, 0.9);
}

.card-poster-link {
    display: block;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.card-meta {
    margin: 0 0 10px;
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.5;
}

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

.card-desc {
    margin: 12px 0 16px;
    color: var(--muted);
    line-height: 1.72;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

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

.category-card,
.topic-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
        var(--panel);
    transition: 180ms ease;
}

.category-card:hover,
.topic-card:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 180, 106, 0.34);
}

.category-card h2,
.topic-card h2 {
    margin: 0;
    font-size: 25px;
}

.category-card p,
.topic-card p {
    color: var(--muted);
    line-height: 1.75;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #fde68a, #d8b46a);
    font-weight: 800;
}

.page-hero {
    padding: 54px 0 18px;
}

.page-hero-box {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 850px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 30px;
    align-items: start;
}

.detail-panel,
.content-panel {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.detail-title {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-one-line {
    margin: 22px 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
}

.fact-list {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

.fact-item {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.fact-item strong {
    color: var(--muted-2);
    font-size: 13px;
}

.prose {
    color: #d7deea;
    font-size: 16px;
    line-height: 2.05;
}

.prose h2 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 26px;
}

.prose p {
    margin: 0 0 22px;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
}

.rank-number {
    display: grid;
    height: 60px;
    place-items: center;
    border-radius: 18px;
    color: #111827;
    background: linear-gradient(135deg, #fde68a, #d8b46a);
    font-weight: 900;
}

.rank-main h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-main p,
.rank-main span {
    display: block;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.search-box {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--panel-strong);
}

.search-input {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: var(--text);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    font-size: 16px;
}

.search-input:focus {
    border-color: rgba(216, 180, 106, 0.66);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.select-input {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: var(--text);
    outline: none;
    background: #111827;
}

.search-results {
    margin-top: 24px;
}

.empty-state {
    padding: 32px;
    border: 1px dashed rgba(148, 163, 184, 0.32);
    border-radius: 24px;
    color: var(--muted);
    text-align: center;
}

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

.sitemap-list a {
    display: block;
    margin: 0 0 10px;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 46px 0;
    background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
}

.footer-brand {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 22px;
    font-weight: 800;
}

.site-footer h2 {
    margin: 0 0 10px;
    font-size: 16px;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.site-footer a {
    color: #d7deea;
}

@media (max-width: 1000px) {
    .hero-panel,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

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

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 12px 0;
    }

    .main-nav {
        width: 100%;
    }

    .hero {
        padding-top: 34px;
    }

    .hero-panel,
    .page-hero-box,
    .detail-panel,
    .content-panel {
        padding: 20px;
        border-radius: 24px;
    }

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

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

    .fact-item {
        grid-template-columns: 1fr;
    }
}
