
:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --cyan: #06b6d4;
    --blue: #3b82f6;
    --green: #22c55e;
    --yellow: #f59e0b;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
    --radius: 22px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(6, 182, 212, 0.18), transparent 28rem),
        radial-gradient(circle at 90% 12%, rgba(59, 130, 246, 0.14), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.94));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.32);
}

.nav-shell {
    width: min(1240px, calc(100% - 28px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.45);
    font-size: 16px;
}

.brand-text,
.footer-brand {
    font-size: 26px;
    background: linear-gradient(90deg, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.desktop-nav a,
.mobile-nav a {
    color: #cbd5e1;
    padding: 9px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #ffffff;
    background: rgba(6, 182, 212, 0.18);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.14);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #e2e8f0;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 28px));
    margin: 0 auto;
    padding: 0 0 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

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

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #020617;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.76) 40%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.42) 48%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
    position: absolute;
    left: max(28px, calc((100vw - 1180px) / 2));
    bottom: 13vh;
    width: min(760px, calc(100% - 56px));
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 38px rgba(6, 182, 212, 0.25);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-info h1 {
    margin: 18px 0 14px;
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.hero h1,
.hero h2 {
    max-width: 880px;
    font-size: clamp(42px, 7vw, 82px);
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-tags span,
.detail-meta span,
.movie-meta span,
.movie-meta a {
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 800;
}

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

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 44px rgba(6, 182, 212, 0.34);
}

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

.ghost-button {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.text-link {
    color: #67e8f9;
    padding-left: 0;
    padding-right: 0;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(14px);
    font-size: 42px;
    line-height: 0;
    cursor: pointer;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #22d3ee;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.7);
}

.search-strip {
    position: relative;
    z-index: 10;
    margin-top: -34px;
    padding: 0 16px;
}

.search-strip-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-strip h2,
.search-strip p {
    margin: 0;
}

.search-strip p {
    color: var(--muted);
}

.section {
    padding: 64px 0;
}

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

.section-heading.align-left {
    display: block;
}

.section-heading span {
    color: #22d3ee;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
}

.section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading a {
    color: #67e8f9;
    font-weight: 900;
}

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

.category-tile,
.category-panel,
.content-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.74));
    box-shadow: 0 18px 60px rgba(2, 6, 23, 0.24);
}

.category-tile {
    min-height: 184px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-tile:hover,
.category-panel:hover,
.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.38);
}

.category-tile span,
.category-panel-head span {
    font-size: 38px;
}

.category-tile strong,
.category-panel-head strong {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.2;
}

.category-tile em,
.category-panel p {
    margin-top: 10px;
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

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

.category-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-panel ul {
    padding-left: 18px;
    color: var(--soft);
}

.category-panel li {
    margin: 7px 0;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 16px 46px rgba(2, 6, 23, 0.24);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

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

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

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

.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-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent);
}

.year-badge,
.play-badge {
    position: absolute;
    z-index: 2;
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(34, 197, 94, 0.9);
    font-size: 12px;
    font-weight: 900;
}

.play-badge {
    left: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(6, 182, 212, 0.92);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.32);
}

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

.movie-title {
    display: block;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
    min-height: 46px;
}

.movie-title:hover {
    color: #67e8f9;
}

.movie-meta {
    margin: 12px 0;
    gap: 6px;
}

.movie-meta span,
.movie-meta a {
    padding: 3px 8px;
    font-size: 12px;
}

.movie-desc {
    min-height: 66px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

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

.tag-row span {
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.13);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 800;
}

.large-tags span {
    padding: 7px 11px;
    font-size: 13px;
}

.wide-section {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.38));
}

.horizontal-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 300px);
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-color: var(--cyan) rgba(15, 23, 42, 0.9);
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 28px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 44px 64px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.42);
}

.rank-num {
    color: #67e8f9;
    font-size: 22px;
    font-weight: 900;
}

.rank-row img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-copy strong,
.rank-copy em {
    display: block;
}

.rank-copy strong {
    color: #ffffff;
    line-height: 1.3;
}

.rank-copy em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.rank-play {
    color: #22d3ee;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0 48px;
    background:
        radial-gradient(circle at 20% 10%, rgba(6, 182, 212, 0.28), transparent 32rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.98));
    border-bottom: 1px solid var(--line);
}

.compact-hero h1 {
    font-size: clamp(38px, 5vw, 58px);
}

.page-hero p {
    max-width: 720px;
    color: #cbd5e1;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: #67e8f9;
}

.filter-line,
.search-tools {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.filter-line input,
.search-tools input,
.search-tools select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.86);
    padding: 0 16px;
    outline: none;
}

.search-tools select {
    max-width: 220px;
}

.empty-state {
    display: none;
    margin: 30px 0 0;
    padding: 22px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.72);
}

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

.detail-hero {
    padding: 42px 0 34px;
    background:
        radial-gradient(circle at 8% 0%, rgba(6, 182, 212, 0.16), transparent 30rem),
        linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.95));
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
    gap: 30px;
    align-items: center;
}

.player-panel,
.content-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.82);
    box-shadow: var(--shadow);
}

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

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.58));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 20px 48px rgba(6, 182, 212, 0.45);
    font-size: 32px;
}

.detail-info h1 {
    font-size: clamp(34px, 4.8vw, 56px);
}

.detail-one-line {
    color: #dbeafe;
    font-size: 18px;
}

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

.content-card h2:not(:first-child) {
    margin-top: 28px;
}

.content-card p {
    margin: 0;
    color: #cbd5e1;
    font-size: 17px;
}

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

.footer-grid {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 30px;
}

.footer-grid p,
.footer-bottom {
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    color: #cbd5e1;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
}

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

.footer-bottom {
    width: min(1180px, 100%);
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 14px;
}

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

    .menu-button {
        display: block;
    }

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

    .two-column-section,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .nav-shell {
        height: 62px;
    }

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

    .hero {
        min-height: 76vh;
    }

    .hero-content {
        left: 20px;
        bottom: 11vh;
        width: calc(100% - 40px);
    }

    .hero-arrow {
        display: none;
    }

    .search-strip-inner,
    .section-heading,
    .filter-line,
    .search-tools {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .movie-title {
        font-size: 15px;
    }

    .movie-desc,
    .tag-row,
    .movie-meta span:nth-child(n+3) {
        display: none;
    }

    .horizontal-scroller {
        grid-auto-columns: minmax(220px, 72vw);
    }

    .search-tools select {
        max-width: none;
    }

    .player-panel {
        padding: 10px;
    }
}

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

    .hero h1,
    .hero h2 {
        font-size: 34px;
    }

    .category-grid,
    .category-panel-grid,
    .movie-grid,
    .movie-grid.small-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-play {
        display: none;
    }
}
