:root {
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111827;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.18);
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --purple: #a855f7;
    --emerald: #34d399;
    --amber: #fbbf24;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 32rem),
        radial-gradient(circle at 85% 12%, rgba(168, 85, 247, 0.16), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #001014;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--emerald));
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.45);
}

.brand-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #cbd5e1;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(34, 211, 238, 0.12);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.46);
}

.header-search input {
    width: 160px;
    border: 0;
    outline: 0;
    color: #e2e8f0;
    background: transparent;
    padding: 6px 4px 6px 10px;
}

.header-search button,
.primary-button,
.ghost-button,
.text-button {
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button {
    color: #001014;
    background: linear-gradient(135deg, var(--cyan), var(--emerald));
    box-shadow: 0 14px 35px rgba(34, 211, 238, 0.28);
}

.header-search button {
    padding: 7px 14px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
}

.ghost-button {
    color: #e2e8f0;
    border: 1px solid rgba(226, 232, 240, 0.24);
    background: rgba(15, 23, 42, 0.62);
}

.text-button {
    display: inline-flex;
    color: var(--cyan);
    font-weight: 800;
}

.header-search button:hover,
.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
}

.hero {
    position: relative;
    height: 640px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s ease, transform 1.1s ease;
    pointer-events: none;
}

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.28)),
        linear-gradient(0deg, #020617, transparent 36%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-copy {
    width: min(640px, 100%);
    padding-top: 28px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.sub-hero h1,
.detail-intro h1 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 82px);
}

.hero-copy p {
    max-width: 620px;
    margin: 22px 0 0;
    color: #cbd5e1;
    font-size: 18px;
}

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

.hero-tags {
    margin: 24px 0;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.tag-row a,
.meta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.tag-row a {
    color: var(--cyan);
    border-color: rgba(34, 211, 238, 0.28);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-poster {
    position: relative;
    width: 280px;
    aspect-ratio: 2 / 3;
    flex: 0 0 auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster span,
.play-dot {
    position: absolute;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #001014;
    background: linear-gradient(135deg, var(--cyan), var(--emerald));
    box-shadow: 0 16px 40px rgba(34, 211, 238, 0.36);
}

.hero-poster span {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

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

.hero-dot {
    width: 32px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.35);
    cursor: pointer;
}

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

.quick-entry {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.quick-entry a,
.category-tile,
.category-panel,
.content-card,
.movie-card,
.wide-card,
.filter-panel {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.58));
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.18);
}

.quick-entry a {
    padding: 18px 20px;
    border-radius: 18px;
    color: #e2e8f0;
    font-weight: 800;
    text-align: center;
}

.page-section {
    padding: 58px 0 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-heading span {
    height: 4px;
    flex: 1;
    min-width: 80px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), transparent);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.36);
    box-shadow: 0 26px 70px rgba(34, 211, 238, 0.1);
}

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

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 52%);
}

.play-dot {
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 50px;
    height: 50px;
    opacity: 0;
    transform: translate(-50%, -30%);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 4;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #001014;
    font-style: normal;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--cyan));
}

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

.movie-card h2,
.wide-card h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.movie-card h2 a:hover,
.wide-card h2 a:hover,
.category-samples a:hover,
.footer-links a:hover {
    color: var(--cyan);
}

.movie-card p {
    margin: 10px 0 12px;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row {
    color: #cbd5e1;
    font-size: 13px;
}

.tag-row {
    margin-top: 12px;
    font-size: 12px;
}

.wide-list {
    display: grid;
    gap: 16px;
}

.wide-card {
    display: grid;
    grid-template-columns: auto 120px 1fr;
    align-items: center;
    gap: 18px;
    border-radius: 20px;
    padding: 14px;
}

.number-rank {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #001014;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--cyan));
}

.wide-poster {
    display: block;
    width: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
}

.wide-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wide-info p {
    margin: 8px 0 12px;
    color: var(--muted);
}

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

.category-tile {
    min-height: 148px;
    padding: 20px;
    border-radius: 22px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.category-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.34);
}

.category-tile strong {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
}

.category-tile span,
.category-panel p,
.site-footer p {
    color: var(--muted);
}

.sub-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.18), transparent 26rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96));
}

.sub-hero h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 64px);
    letter-spacing: -0.04em;
}

.sub-hero p:last-child {
    max-width: 760px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 18px;
}

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

.category-panel {
    padding: 24px;
    border-radius: 24px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-panel h2 {
    margin: 0;
    font-size: 26px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.category-samples a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.42);
}

.filter-panel {
    margin: 28px auto 0;
    width: min(1180px, calc(100% - 32px));
    border-radius: 22px;
}

.filter-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}

.filter-inner input,
.filter-inner select {
    height: 46px;
    color: #e2e8f0;
    border: 1px solid var(--line);
    outline: 0;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.54);
}

.filter-inner input {
    flex: 1;
    min-width: 220px;
    padding: 0 16px;
}

.filter-selects {
    display: flex;
    gap: 10px;
}

.filter-inner select {
    min-width: 128px;
    padding: 0 12px;
}

.all-list {
    align-items: stretch;
}

.empty-state {
    display: none;
    margin: 22px 0 0;
    padding: 28px;
    color: #cbd5e1;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.7);
}

.empty-state.is-visible {
    display: block;
}

.detail-hero {
    padding: 58px 0 38px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 75% 20%, rgba(168, 85, 247, 0.18), transparent 24rem),
        linear-gradient(180deg, rgba(15, 23, 42, 0.7), transparent);
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: center;
}

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

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

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

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

.detail-intro h1 {
    font-size: clamp(34px, 6vw, 62px);
}

.one-line {
    max-width: 820px;
    margin: 18px 0;
    color: #cbd5e1;
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.detail-tags {
    margin: 0 0 22px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #000;
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.player-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    color: #001014;
    border: 0;
    border-radius: 50%;
    font-size: 34px;
    background: linear-gradient(135deg, var(--cyan), var(--emerald));
    box-shadow: 0 18px 48px rgba(34, 211, 238, 0.44);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

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

.content-card {
    padding: 24px;
    border-radius: 24px;
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: #cbd5e1;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 900;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

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

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

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

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .menu-button {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 10px 0;
    }

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

    .header-search {
        order: 3;
        width: 100%;
    }

    .header-search input {
        flex: 1;
        width: auto;
    }

    .hero {
        height: 720px;
    }

    .hero-content {
        align-items: end;
        padding-bottom: 78px;
    }

    .hero-poster {
        display: none;
    }

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

    .movie-grid,
    .category-panels,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wide-card {
        grid-template-columns: auto 92px 1fr;
    }

    .wide-poster {
        width: 92px;
    }

    .filter-inner {
        display: grid;
    }

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

    .detail-hero-grid {
        grid-template-columns: 180px 1fr;
    }
}

@media (max-width: 620px) {
    .container,
    .filter-panel {
        width: min(100% - 22px, 1180px);
    }

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

    .hero {
        height: 660px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-copy p,
    .sub-hero p:last-child,
    .one-line {
        font-size: 16px;
    }

    .quick-entry,
    .movie-grid,
    .category-grid,
    .category-panels,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .wide-card {
        grid-template-columns: 74px 1fr;
        gap: 12px;
    }

    .number-rank {
        grid-row: span 2;
    }

    .wide-poster {
        width: 74px;
    }

    .wide-info p {
        display: none;
    }

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

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

    .detail-poster {
        max-width: 220px;
    }

    .player-button {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
