* {
    box-sizing: border-box;
}

:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-solid: #0f172a;
    --panel-soft: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --accent: #f59e0b;
    --accent-soft: rgba(245, 158, 11, 0.16);
    --blue-soft: rgba(30, 58, 138, 0.2);
    --radius: 1.25rem;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.16), transparent 28rem),
        radial-gradient(circle at 90% 20%, rgba(59, 130, 246, 0.18), transparent 30rem),
        linear-gradient(135deg, #020617 0%, #0f172a 44%, #020617 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1220px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.14rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #0f172a;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 12px 34px rgba(245, 158, 11, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted-strong);
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #fff;
    background: rgba(245, 158, 11, 0.16);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: #fff;
}

.mobile-nav {
    display: none;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.94);
}

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

.hero-shell {
    width: min(1220px, calc(100% - 32px));
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 24px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 64px;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.8s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.76) 48%, rgba(15, 23, 42, 0.2) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 54%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #fbbf24;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-desc,
.page-hero p,
.detail-intro {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--muted-strong);
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-meta,
.tag-list,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin-top: 22px;
}

.hero-meta span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    font-size: 0.82rem;
}

.hero-tags,
.detail-tags {
    margin-top: 14px;
}

.hero-actions {
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
    color: #0f172a;
    background: linear-gradient(135deg, #fbbf24, #f97316);
}

.btn-soft {
    color: #f8fafc;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.74);
}

.hero-dots {
    position: absolute;
    right: 34px;
    bottom: 30px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 30px;
    background: #fbbf24;
}

.hero-panel,
.category-overview-card,
.story-card,
.player-card,
.detail-info {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 24px;
}

.hero-panel h2,
.section-head h2,
.story-card h2,
.footer-grid h2,
.category-card-head h2 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: -0.03em;
}

.panel-link,
.section-link {
    display: inline-flex;
    margin-top: 20px;
    color: #fbbf24;
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.38);
    background: rgba(30, 41, 59, 0.84);
}

.rank-num {
    color: #fbbf24;
    font-size: 1.15rem;
    font-weight: 900;
}

.rank-item img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.rank-info {
    display: grid;
    gap: 5px;
    min-width: 0;
}

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

.rank-info em {
    color: var(--muted);
    font-size: 0.82rem;
    font-style: normal;
}

.content-section {
    width: min(1220px, calc(100% - 32px));
    margin: 42px auto;
}

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

.section-head p {
    margin: 10px 0 0;
    max-width: 720px;
    color: var(--muted);
    line-height: 1.7;
}

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

.category-pill {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(30, 58, 138, 0.12)),
        rgba(15, 23, 42, 0.76);
    transition: transform 0.2s ease, border 0.2s ease;
}

.category-pill:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.36);
}

.category-pill span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(130px, 180px));
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.8rem;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 42px;
    padding: 0 13px;
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    outline: 0;
    background: #0f172a;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, border 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.36);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-badge,
.poster-type {
    position: absolute;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    background: rgba(2, 6, 23, 0.74);
    backdrop-filter: blur(8px);
}

.poster-badge {
    left: 12px;
    color: #fde68a;
}

.poster-type {
    right: 12px;
    color: #dbeafe;
}

.card-body {
    padding: 15px;
}

.card-kicker {
    margin: 0 0 8px;
    color: #fbbf24;
    font-size: 0.76rem;
    font-weight: 800;
}

.card-body h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: #fbbf24;
}

.card-desc {
    min-height: 3.2em;
    margin: 10px 0 12px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

.movie-card.is-hidden {
    display: none;
}

.split-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: start;
}

.page-hero,
.detail-hero {
    width: min(1220px, calc(100% - 32px));
    margin: 32px auto 0;
    padding: 54px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(30, 58, 138, 0.14)),
        rgba(15, 23, 42, 0.84);
    box-shadow: var(--shadow);
}

.small-hero {
    min-height: 280px;
    display: grid;
    align-content: center;
}

.category-overview {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
}

.category-card-head p {
    color: var(--muted);
    line-height: 1.7;
}

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

.breadcrumb a:hover {
    color: #fbbf24;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 24px;
    align-items: stretch;
}

.player-card,
.detail-info {
    padding: 18px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #000;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-content: center;
    gap: 12px;
    width: 100%;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(15, 23, 42, 0.22));
    cursor: pointer;
}

.player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    display: inline-grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin: 0 auto;
    border-radius: 999px;
    color: #0f172a;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.3);
}

.meta-table {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
}

.meta-table div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.meta-table dt {
    color: var(--muted);
}

.meta-table dd {
    margin: 0;
    color: #fff;
}

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

.story-card {
    padding: 26px;
}

.story-card p {
    color: var(--muted-strong);
    line-height: 1.9;
}

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

.rank-list-large {
    position: sticky;
    top: 94px;
}

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

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

.footer-grid {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.footer-grid p,
.copyright {
    color: var(--muted);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.footer-links a {
    color: var(--muted-strong);
}

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

.copyright {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 34px;
}

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

    .mobile-toggle {
        display: inline-block;
    }

    .hero-shell,
    .split-section,
    .detail-grid,
    .detail-content,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        order: 2;
    }

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

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

@media (max-width: 720px) {
    .header-inner {
        height: 64px;
    }

    .brand {
        font-size: 1rem;
    }

    .hero-stage {
        min-height: 620px;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 34px 24px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: clamp(2.1rem, 12vw, 3.4rem);
    }

    .page-hero,
    .detail-hero {
        padding: 28px;
        border-radius: 24px;
    }

    .category-strip,
    .movie-grid,
    .compact-grid,
    .related-grid,
    .two-col-grid,
    .footer-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: grid;
    }

    .hero-shell,
    .content-section,
    .page-hero,
    .detail-hero,
    .footer-grid,
    .copyright {
        width: min(100% - 22px, 1220px);
    }

    .mobile-nav.is-open {
        grid-template-columns: 1fr;
    }
}
