:root {
    --bg: #0f172a;
    --bg-soft: #111c31;
    --panel: rgba(30, 41, 59, 0.55);
    --panel-solid: #1e293b;
    --line: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --sky: #0ea5e9;
    --orange: #f97316;
    --radius: 18px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 28rem),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.13), transparent 26rem),
        var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.navbar {
    max-width: 1180px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--accent-light), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand {
    font-size: 22px;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    background: linear-gradient(135deg, var(--accent), var(--orange));
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.35);
    -webkit-background-clip: border-box;
    background-clip: border-box;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted-strong);
    font-size: 15px;
}

.nav-link {
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.menu-button {
    display: none;
    border: 0;
    color: var(--muted-strong);
    background: transparent;
    font-size: 25px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 10px 22px 18px;
    border-top: 1px solid var(--line);
    background: #0f172a;
}

.mobile-panel.is-open {
    display: grid;
    gap: 10px;
}

.mobile-panel a {
    padding: 10px 0;
    color: var(--muted-strong);
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    filter: saturate(1.08);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.20) 100%),
        linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.18) 45%, rgba(15, 23, 42, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    min-height: 70vh;
    margin: 0 auto;
    padding: 105px 22px 78px;
    display: flex;
    align-items: flex-end;
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    color: #fff;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.86);
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.hero h1,
.hero h2 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero p {
    max-width: 680px;
    margin: 0 0 28px;
    color: #e2e8f0;
    font-size: 18px;
}

.hero-actions,
.section-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--sky), #0284c7);
    font-weight: 800;
    box-shadow: 0 12px 34px rgba(14, 165, 233, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(14, 165, 233, 0.33);
}

.button.secondary {
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.72);
    border-color: var(--line);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.hero-dots {
    position: absolute;
    right: 32px;
    bottom: 32px;
    z-index: 3;
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--sky);
}

.main-section {
    padding: 58px 22px;
}

.main-section.tint {
    background: rgba(30, 41, 59, 0.24);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
}

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

.section-head h1,
.section-head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.section-head p,
.page-intro p {
    margin: 8px 0 0;
    color: var(--muted);
}

.featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 22px;
}

.side-stack {
    display: grid;
    gap: 16px;
}

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

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

.horizontal-row {
    display: flex;
    gap: 18px;
    padding: 4px 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.horizontal-row::-webkit-scrollbar {
    display: none;
}

.horizontal-row .movie-card {
    min-width: 250px;
    max-width: 250px;
}

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(30, 41, 59, 0.82);
    box-shadow: var(--shadow);
}

.movie-card[hidden] {
    display: none;
}

.movie-card-large .movie-poster {
    aspect-ratio: 16 / 9;
}

.movie-card-horizontal {
    min-height: 132px;
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
}

.movie-card-horizontal .movie-poster {
    height: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
}

.movie-card-horizontal .movie-info {
    padding: 0;
}

.movie-card-horizontal .tag-list {
    display: none;
}

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

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 52%);
    opacity: 0.86;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%) scale(0.92);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(14, 165, 233, 0.88);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-info {
    padding: 15px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
}

.movie-meta span,
.tag-list span,
.fact-list span,
.breadcrumb a,
.breadcrumb span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    color: var(--muted-strong);
}

.movie-info h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
    line-height: 1.32;
}

.movie-info h3 a:hover {
    color: var(--accent-light);
}

.movie-info p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 3.2em;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-list span {
    color: var(--accent-light);
    font-size: 12px;
}

.rank-number {
    position: absolute;
    left: -12px;
    top: 14px;
    z-index: 3;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-style: normal;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-light), var(--orange));
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.28);
}

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

.category-card {
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(245, 158, 11, 0.10)),
        rgba(30, 41, 59, 0.62);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.34);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 24px;
}

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

.category-card .mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-card .mini-links a {
    color: var(--accent-light);
    font-size: 14px;
}

.page-hero {
    padding: 76px 22px 42px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(249, 115, 22, 0.10)),
        rgba(15, 23, 42, 0.56);
}

.page-intro {
    max-width: 1180px;
    margin: 0 auto;
}

.page-intro h1 {
    max-width: 880px;
    margin: 12px 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
}

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

.filter-box {
    display: flex;
    gap: 12px;
    margin: 24px 0 0;
}

.filter-box input {
    width: min(100%, 620px);
    height: 48px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    color: #fff;
    background: rgba(15, 23, 42, 0.76);
}

.filter-box input:focus {
    border-color: rgba(14, 165, 233, 0.72);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.86fr);
    gap: 28px;
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    box-shadow: var(--shadow);
}

.player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.32), rgba(0, 0, 0, 0.52));
    color: #fff;
    cursor: pointer;
}

.player-overlay span {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    font-size: 34px;
    background: linear-gradient(135deg, var(--sky), #0284c7);
    box-shadow: 0 20px 42px rgba(14, 165, 233, 0.34);
}

.player-overlay.is-hidden {
    display: none;
}

.content-panel,
.sidebar-panel {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.content-panel h2,
.sidebar-panel h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 22px;
}

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

.fact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
}

.detail-title {
    margin: 22px 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
}

.sidebar-sticky {
    position: sticky;
    top: 94px;
}

.sidebar-cover {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel-solid);
}

.sidebar-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.related-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.site-footer {
    padding: 46px 22px 28px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.96);
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    margin-bottom: 12px;
    font-size: 20px;
}

.site-footer p {
    max-width: 460px;
    margin: 0;
    color: var(--muted);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: var(--muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    max-width: 1180px;
    margin: 28px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: #64748b;
    text-align: center;
    font-size: 14px;
}

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

    .menu-button {
        display: inline-flex;
    }

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

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

    .sidebar-sticky {
        position: static;
    }
}

@media (max-width: 720px) {
    .navbar {
        height: 62px;
        padding: 0 16px;
    }

    .brand {
        font-size: 19px;
    }

    .hero,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        padding: 92px 16px 74px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-dots {
        left: 16px;
        right: auto;
        bottom: 24px;
    }

    .main-section,
    .page-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

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

    .movie-card-horizontal {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .movie-card-horizontal .movie-info p {
        -webkit-line-clamp: 1;
        min-height: auto;
    }

    .content-panel,
    .sidebar-panel {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .movie-grid.compact {
        grid-template-columns: 1fr;
    }

    .horizontal-row .movie-card {
        min-width: 225px;
        max-width: 225px;
    }
}
