:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-solid: #0f172a;
    --muted-panel: #111827;
    --line: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --brand: #f59e0b;
    --brand-2: #ef4444;
    --brand-3: #38bdf8;
    --green: #22c55e;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.20), transparent 34rem),
        radial-gradient(circle at 88% 10%, rgba(239, 68, 68, 0.18), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316 48%, #ef4444);
    box-shadow: 0 16px 38px rgba(239, 68, 68, 0.28);
}

.desktop-nav,
.footer-links,
.mobile-category-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.desktop-nav a,
.footer-links a,
.mobile-nav a,
.mobile-category-row a {
    color: var(--soft);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 8px 13px;
    transition: all 0.24s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.footer-links a:hover,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--text);
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(245, 158, 11, 0.12);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
}

.mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: var(--text);
}

.mobile-nav {
    display: none;
    padding: 0 24px 16px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.96);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav > a {
    display: block;
    margin: 10px 0;
}

.page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 70px;
}

.hero {
    position: relative;
    min-height: 560px;
    border: 1px solid var(--line);
    border-radius: 34px;
    overflow: hidden;
    background: #020617;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.72fr);
    gap: 24px;
    padding: 72px 62px;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.72s ease, transform 0.72s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
    filter: blur(2px) saturate(1.18);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 45%, rgba(15, 23, 42, 0.50) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, transparent 48%);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.section-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.34);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(245, 158, 11, 0.10);
    font-size: 13px;
    font-weight: 800;
}

.hero h1 {
    max-width: 820px;
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.04;
    letter-spacing: -0.08em;
}

.hero-lead {
    max-width: 690px;
    color: #e2e8f0;
    font-size: 18px;
}

.hero-meta,
.movie-meta,
.breadcrumbs,
.stat-note {
    color: var(--muted);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.hero-meta span {
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    padding: 0 18px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.86);
    transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.55);
}

.btn-primary {
    color: #111827;
    border-color: transparent;
    background: linear-gradient(135deg, #fbbf24, #f97316 48%, #ef4444);
    font-weight: 900;
}

.hero-poster {
    align-self: center;
    justify-self: end;
    width: min(360px, 100%);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.12), rgba(248, 250, 252, 0.04));
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(239, 68, 68, 0.16));
}

.hero-dots {
    position: absolute;
    left: 62px;
    bottom: 34px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

.hero-dot.active {
    background: linear-gradient(90deg, #fbbf24, #ef4444);
}

.section {
    margin-top: 54px;
}

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

.section-title h2,
.page-title h1,
.detail-title h1 {
    margin: 10px 0 8px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-title p,
.page-title p,
.detail-title p {
    margin: 0;
    color: var(--muted);
}

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.70);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(15, 23, 42, 0.96);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background:
        radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.22), transparent 50%),
        linear-gradient(135deg, #111827, #020617);
}

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

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

.poster-cover-label,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
    color: #111827;
    background: #fbbf24;
}

.poster-cover-label {
    right: 12px;
}

.rank-badge {
    left: 12px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316);
}

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

.movie-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta,
.movie-desc {
    margin: 0;
    font-size: 13px;
}

.movie-desc {
    margin-top: 8px;
    color: #cbd5e1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(245, 158, 11, 0.08);
    font-size: 12px;
}

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

.category-card,
.stat-card,
.rank-panel,
.info-panel,
.player-panel,
.detail-copy,
.search-panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.18);
}

.category-card {
    padding: 22px;
    min-height: 164px;
}

.category-card h3,
.stat-card strong {
    margin: 0;
    font-size: 24px;
}

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

.stat-card {
    padding: 20px;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
    gap: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 78px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.34);
    transition: border-color 0.24s ease, transform 0.24s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(245, 158, 11, 0.42);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    font-weight: 1000;
}

.rank-row img {
    width: 78px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(239, 68, 68, 0.16));
}

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

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

.search-panel {
    padding: 18px;
    margin-bottom: 22px;
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 12px;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 15px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.72);
    padding: 0 14px;
    outline: none;
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: rgba(245, 158, 11, 0.58);
}

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

.is-hidden {
    display: none !important;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
}

.breadcrumbs a {
    color: #fde68a;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 34px;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(239, 68, 68, 0.14));
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.detail-info-list div {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.64);
}

.detail-info-list span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.detail-info-list strong {
    display: block;
    margin-top: 4px;
}

.player-panel {
    overflow: hidden;
    margin: 28px 0;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.16), transparent 44%),
        #000;
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--text);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.76));
}

.player-start span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #ef4444);
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.36);
}

.player-start.hide {
    display: none;
}

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

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

.detail-copy {
    padding: 24px;
}

.detail-copy h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.detail-copy p {
    margin: 0 0 20px;
    color: #dbeafe;
}

.side-panel {
    display: grid;
    gap: 14px;
}

.info-panel,
.rank-panel {
    padding: 20px;
}

.info-panel h3,
.rank-panel h3 {
    margin: 0 0 12px;
}

.simple-list {
    display: grid;
    gap: 10px;
}

.simple-list a {
    display: block;
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 10px 12px;
    color: var(--soft);
    background: rgba(2, 6, 23, 0.34);
}

.simple-list a:hover {
    color: var(--text);
    border-color: rgba(245, 158, 11, 0.42);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px;
    display: grid;
    grid-template-columns: minmax(260px, 0.52fr) minmax(0, 1fr);
    gap: 24px;
}

.footer-inner p {
    color: var(--muted);
}

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

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

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

    .mobile-menu-button {
        display: block;
    }

    .hero {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 42px 24px 70px;
    }

    .hero-poster {
        justify-self: start;
        width: min(260px, 72vw);
    }

    .hero-dots {
        left: 24px;
    }

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

    .filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .header-inner,
    .page-wrap,
    .footer-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        border-radius: 24px;
    }

    .hero h1 {
        letter-spacing: -0.05em;
    }

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

    .category-grid,
    .stats-grid,
    .detail-info-list {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }

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

    .rank-row img {
        width: 64px;
    }
}
