:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(148, 163, 184, 0.2);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.16), transparent 32rem),
        radial-gradient(circle at 100% 20%, rgba(59, 130, 246, 0.14), transparent 34rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input {
    font: inherit;
}

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

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 16px 36px rgba(34, 211, 238, 0.26);
}

.brand-text {
    font-size: 20px;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: rgba(34, 211, 238, 0.12);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--text);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    padding: 10px 24px 18px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.96);
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: var(--muted);
}

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

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    border-bottom: 1px solid var(--line);
}

.hero-track {
    position: relative;
    min-height: 680px;
}

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

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

.hero-background,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-background {
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    filter: blur(16px) saturate(1.2);
    transform: scale(1.08);
    opacity: 0.42;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.76) 48%, rgba(2, 6, 23, 0.38) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(2, 6, 23, 0.08) 46%, rgba(2, 6, 23, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 680px;
    margin: 0 auto;
    padding: 88px 24px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
    align-items: center;
}

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

.hero-kicker,
.section-head span,
.page-hero span,
.detail-kicker,
.category-block-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

.hero-copy h2 + h2 {
    margin-top: -6px;
    color: var(--cyan);
}

.hero-copy p,
.page-hero p,
.detail-copy .lead {
    max-width: 720px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.9;
}

.hero-tags,
.detail-meta,
.movie-meta,
.tag-row,
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #cbd5e1;
    font-size: 13px;
}

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

.button,
.search-panel button,
.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.search-panel button:hover,
.filter-chip:hover {
    transform: translateY(-1px);
}

.button.primary,
.search-panel button {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #00111f;
    font-weight: 800;
    box-shadow: 0 18px 42px rgba(34, 211, 238, 0.25);
}

.button.ghost {
    border-color: rgba(148, 163, 184, 0.26);
    background: rgba(15, 23, 42, 0.64);
    color: var(--text);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 32px;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-poster img {
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: var(--cyan);
}

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

.home-search {
    padding-top: 42px;
    padding-bottom: 20px;
}

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

.section-head h2,
.page-hero h1,
.prose-section h2,
.category-block-head h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.section-head p,
.category-block-head p,
.prose-section p,
.footer-grid p {
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    color: var(--cyan);
    font-weight: 700;
}

.movie-grid,
.category-grid,
.ranking-grid,
.mini-grid,
.footer-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.36);
    box-shadow: 0 24px 60px rgba(8, 145, 178, 0.14);
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    transition: transform 0.32s ease;
}

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

.poster-shine {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #facc15, #fb923c);
    color: #111827;
    font-size: 14px;
}

.movie-info {
    padding: 18px;
}

.movie-meta {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 700;
}

.movie-info h2 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-info p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.movie-card.compact .movie-info p {
    display: none;
}

.category-tile,
.category-block-head,
.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.category-tile {
    min-height: 210px;
    padding: 28px;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-tile::before,
.category-block-head::before,
.page-hero::before,
.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--tile-image, var(--page-image));
    background-position: center;
    background-size: cover;
    opacity: 0.25;
    filter: saturate(1.1);
}

.category-tile::after,
.category-block-head::after,
.page-hero::after,
.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.56));
}

.category-tile span,
.category-tile strong,
.category-block-head > *,
.page-hero > *,
.detail-hero > * {
    position: relative;
    z-index: 2;
}

.category-tile span {
    margin-bottom: 10px;
    color: var(--cyan);
    font-weight: 800;
}

.category-tile strong {
    line-height: 1.8;
}

.page-hero,
.detail-hero {
    max-width: 1280px;
    margin: 32px auto 0;
    padding: 72px 48px;
    border-radius: 36px;
}

.compact-hero {
    min-height: 300px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 18px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
}

.search-panel input {
    width: 100%;
    min-height: 46px;
    border: 0;
    outline: 0;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.7);
    color: var(--text);
}

.filter-bar {
    margin: 0 0 28px;
}

.filter-chip {
    min-height: 36px;
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.2);
    color: var(--muted);
}

.filter-chip.active {
    color: #00111f;
    background: linear-gradient(135deg, var(--cyan), #67e8f9);
}

.category-list {
    display: grid;
    gap: 34px;
}

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

.category-block-head {
    min-height: 240px;
    padding: 38px;
    border-radius: 30px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.detail-hero {
    padding: 34px 48px 58px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    margin-bottom: 34px;
}

.breadcrumb a {
    color: var(--cyan);
}

.detail-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
}

.detail-poster img {
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 14px 0 16px;
    font-size: clamp(36px, 5vw, 68px);
    letter-spacing: -0.05em;
    line-height: 1.04;
}

.detail-tags {
    margin-top: 18px;
}

.player-section {
    padding-top: 54px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72));
    color: var(--text);
    cursor: pointer;
}

.play-layer span {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #00111f;
    font-size: 38px;
    box-shadow: 0 22px 55px rgba(34, 211, 238, 0.28);
}

.play-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.prose-section {
    max-width: 980px;
}

.prose-section h2 {
    font-size: 30px;
}

.prose-section p {
    font-size: 17px;
    color: #cbd5e1;
}

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

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    grid-template-columns: 2fr 1fr 1fr;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 16px;
}

.footer-links {
    display: grid;
    gap: 10px;
    color: var(--muted);
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 24px 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

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

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

    .hero-content,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-poster {
        max-width: 360px;
    }
}

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

    .menu-button {
        display: block;
    }

    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

    .brand-text {
        font-size: 17px;
    }

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

    .hero-content {
        padding: 58px 18px 72px;
        gap: 30px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-copy .lead {
        font-size: 16px;
    }

    .hero-poster,
    .detail-poster {
        max-width: 260px;
    }

    .section-wrap {
        padding: 48px 16px;
    }

    .section-head,
    .category-block-head {
        display: block;
    }

    .section-more,
    .category-block-head .button {
        margin-top: 16px;
    }

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

    .page-hero,
    .detail-hero {
        margin: 18px 16px 0;
        padding: 42px 20px;
        border-radius: 26px;
    }

    .detail-hero {
        padding-top: 24px;
    }

    .search-panel {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .search-panel input,
    .search-panel button {
        border-radius: 18px;
    }

    .play-layer span {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}
