/* Static movie site stylesheet derived from the uploaded warm amber/orange visual system. */
:root {
    --bg: #180b02;
    --bg-soft: #2a1205;
    --panel: rgba(255, 255, 255, 0.08);
    --panel-strong: rgba(255, 255, 255, 0.13);
    --line: rgba(255, 255, 255, 0.14);
    --text: #fff7ed;
    --muted: #fed7aa;
    --muted-2: #fdba74;
    --primary: #f97316;
    --primary-strong: #ea580c;
    --gold: #fbbf24;
    --danger: #dc2626;
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(249, 115, 22, 0.24), transparent 34rem),
        radial-gradient(circle at 86% 0%, rgba(251, 191, 36, 0.16), transparent 30rem),
        linear-gradient(135deg, #451a03 0%, #180b02 46%, #090401 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(24, 11, 2, 0.76);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #451a03;
    border-radius: 16px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
}

.brand-name {
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav-links a {
    padding: 10px 12px;
    border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: #fff;
    background: rgba(249, 115, 22, 0.18);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    border-radius: 3px;
}

.hero {
    position: relative;
    overflow: hidden;
    width: min(1480px, calc(100% - 28px));
    min-height: 680px;
    margin: 26px auto 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
}

.hero-glow {
    position: absolute;
    z-index: 1;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(24px);
    opacity: 0.34;
}

.hero-glow.one {
    top: -120px;
    right: 12%;
    background: #f97316;
}

.hero-glow.two {
    bottom: -150px;
    left: 12%;
    background: #fbbf24;
}

.hero-slider {
    position: relative;
    z-index: 2;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 420px;
    gap: 52px;
    align-items: center;
    padding: 70px clamp(24px, 5vw, 78px) 120px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 500ms ease, transform 700ms ease, visibility 500ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
    opacity: 0.24;
    filter: blur(12px) saturate(1.2);
    transform: scale(1.08);
}

.hero-slide::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(90deg, rgba(24, 11, 2, 0.94), rgba(24, 11, 2, 0.68), rgba(24, 11, 2, 0.88)),
        radial-gradient(circle at 20% 30%, rgba(249, 115, 22, 0.28), transparent 34rem);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-summary {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.hero-tags,
.tag-row,
.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

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

.hero-tags span,
.tag-row span,
.stat-pill,
.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    color: #ffedd5;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #451a03;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.28);
}

.btn.ghost {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
}

.hero-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.hero-toolbar {
    position: absolute;
    right: clamp(20px, 5vw, 72px);
    bottom: 34px;
    left: clamp(20px, 5vw, 72px);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-search,
.search-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(620px, 100%);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(24, 11, 2, 0.72);
    backdrop-filter: blur(16px);
}

.hero-search input,
.search-panel input,
.search-panel select {
    flex: 1;
    min-width: 0;
    height: 44px;
    color: #fff;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px;
}

.search-panel select option {
    color: #111827;
}

.hero-search button,
.search-panel button {
    height: 44px;
    padding: 0 18px;
    color: #451a03;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    font-weight: 900;
    cursor: pointer;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

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

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

.section {
    padding: 42px 0;
}

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

.section-heading h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-link {
    color: var(--gold);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.56);
    background: rgba(255, 255, 255, 0.1);
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(145deg, rgba(249, 115, 22, 0.18), rgba(251, 191, 36, 0.08));
}

.poster img {
    transition: transform 300ms ease;
}

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

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #451a03;
    border-radius: 999px;
    background: #fbbf24;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #451a03;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
}

.card-body {
    padding: 14px;
}

.meta-line {
    color: var(--muted-2);
    font-size: 0.78rem;
}

.card-body h3 {
    min-height: 2.8em;
    margin: 8px 0 8px;
    font-size: 1.02rem;
    line-height: 1.35;
}

.card-body p {
    min-height: 4.8em;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.tag-row span {
    min-height: 26px;
    padding: 4px 9px;
    font-size: 0.76rem;
}

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

.category-card,
.stat-card,
.player-card,
.detail-panel,
.search-wrap,
.rank-row {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.category-card,
.stat-card {
    padding: 20px;
}

.category-card h3,
.stat-card h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.category-card p,
.stat-card p {
    margin: 0;
    color: var(--muted);
}

.page-hero {
    padding: 62px 0 26px;
}

.page-title {
    display: grid;
    gap: 18px;
    max-width: 860px;
}

.page-title p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.search-wrap {
    padding: 18px;
    margin-bottom: 24px;
}

.search-panel {
    width: 100%;
    border-radius: 22px;
}

.result-count {
    margin: 12px 0 0;
    color: var(--muted-2);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 140px;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-row img {
    aspect-ratio: 2 / 3;
    border-radius: 14px;
}

.rank-row h3 {
    margin: 0 0 6px;
}

.rank-row p {
    margin: 0;
    color: var(--muted);
}

.score {
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 900;
    text-align: right;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted-2);
    font-size: 0.92rem;
}

.detail-hero {
    padding: 44px 0;
}

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

.detail-cover {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.detail-info h1 {
    margin: 18px 0 14px;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.detail-lead {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 1.12rem;
}

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

.player-card {
    overflow: hidden;
    margin-top: 12px;
}

.player-stage {
    position: relative;
    background: #000;
}

.player-stage video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.46), rgba(120, 53, 15, 0.66));
    cursor: pointer;
}

.player-start span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    color: #451a03;
    border-radius: 999px;
    background: linear-gradient(135deg, #fef3c7, #f97316);
    font-size: 2rem;
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.42);
}

.player-note {
    padding: 14px 18px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.detail-panel {
    padding: 24px;
    margin-bottom: 20px;
}

.detail-panel h2 {
    margin: 0 0 12px;
    font-size: 1.45rem;
}

.detail-panel p {
    margin: 0;
    color: var(--muted);
}

.no-results {
    display: none;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
}

.no-results.is-visible {
    display: block;
}

.site-footer {
    margin-top: 48px;
    padding: 40px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.22);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

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

.site-footer h3 {
    margin: 0 0 12px;
    color: var(--text);
}

.site-footer a {
    display: block;
    margin: 7px 0;
}

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

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

    .hero-slide {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(24, 11, 2, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero {
        min-height: 780px;
        border-radius: 26px;
    }

    .hero-slider {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 42px 22px 150px;
    }

    .hero-poster {
        width: min(260px, 72vw);
        margin: 0 auto;
    }

    .hero-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .detail-cover {
        width: min(320px, 100%);
    }

    .rank-row {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .score {
        grid-column: 2;
        text-align: left;
    }

    .search-panel {
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
    }

    .search-panel input,
    .search-panel select,
    .search-panel button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .movie-grid {
        gap: 12px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body p,
    .tag-row {
        display: none;
    }
}
