:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.84);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(148, 163, 184, 0.18);
    --text: #e5e7eb;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --violet: #8b5cf6;
    --orange: #f97316;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.14), transparent 28rem),
        radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.16), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

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

.nav-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.36);
}

.logo-text {
    background: linear-gradient(90deg, #67e8f9, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-links a,
.mobile-menu a {
    color: #cbd5e1;
    font-weight: 650;
    padding: 10px 14px;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.mobile-menu a:hover,
.mobile-menu a.is-active {
    color: white;
    background: rgba(51, 65, 85, 0.78);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    color: white;
    background: rgba(15, 23, 42, 0.62);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
}

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding: 10px 16px 18px;
}

.mobile-menu.is-open {
    display: grid;
    gap: 8px;
}

main {
    min-height: 72vh;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 690px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.08);
    transform: scale(1.04);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.22) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.28) 0%, rgba(2, 6, 23, 0.86) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 690px;
    display: grid;
    align-content: center;
    padding-top: 72px;
    padding-bottom: 72px;
}

.hero-copy {
    width: min(720px, 100%);
}

.eyebrow,
.badge,
.tag,
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(8, 145, 178, 0.18);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    font-weight: 900;
    color: white;
}

.gradient-text {
    background: linear-gradient(90deg, #67e8f9, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc,
.lead {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.85;
}

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

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

.cta,
.ghost-cta,
.filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cta {
    color: white;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.2);
}

.ghost-cta,
.filter-button {
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.62);
    border-color: rgba(148, 163, 184, 0.2);
}

.cta:hover,
.ghost-cta:hover,
.filter-button:hover,
.filter-button.is-active {
    transform: translateY(-2px);
    color: white;
    border-color: rgba(34, 211, 238, 0.42);
    background: linear-gradient(90deg, rgba(8, 145, 178, 0.55), rgba(37, 99, 235, 0.55));
}

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

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.35);
}

.hero-dots button.is-active {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.section {
    padding: 64px 0;
}

.section-tight {
    padding: 42px 0;
}

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

.section-title {
    margin: 0 0 8px;
    color: white;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-subtitle {
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card,
.category-card,
.rank-item,
.info-panel,
.search-panel,
.player-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.62));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.movie-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

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

.card-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
}

.card-body {
    padding: 18px;
}

.card-title {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

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

.card-line,
.rank-line {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 10px;
}

.card-tags {
    margin-top: 14px;
}

.tag {
    font-size: 12px;
    padding: 4px 8px;
    color: #bae6fd;
    background: rgba(14, 116, 144, 0.18);
}

.search-panel {
    padding: 24px;
    margin-bottom: 26px;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 18px;
}

.search-input {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.55);
    color: white;
    padding: 0 16px;
    outline: 0;
}

.search-input:focus {
    border-color: rgba(34, 211, 238, 0.52);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.filter-row {
    margin-top: 12px;
}

.filter-label {
    color: #cbd5e1;
    font-weight: 800;
    margin-right: 2px;
}

.category-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 42%);
    pointer-events: none;
}

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 0 0 12px;
    color: white;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    position: relative;
    color: #cbd5e1;
    line-height: 1.8;
    margin: 0 0 18px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 70px 96px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
}

.rank-num {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--blue));
}

.rank-cover {
    width: 96px;
    height: 126px;
    object-fit: cover;
    border-radius: 16px;
    background: #0f172a;
}

.rank-title {
    color: white;
    font-size: 18px;
    font-weight: 850;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 56px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.page-hero::before,
.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 20%, rgba(34, 211, 238, 0.16), transparent 34rem),
        radial-gradient(circle at 78% 24%, rgba(96, 165, 250, 0.14), transparent 32rem);
    pointer-events: none;
}

.page-hero .container,
.detail-hero .container {
    position: relative;
    z-index: 2;
}

.page-title,
.detail-title {
    margin: 16px 0;
    color: white;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #67e8f9;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.player-card {
    overflow: hidden;
}

.video-shell {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 9;
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.13), rgba(2, 6, 23, 0.54));
    z-index: 3;
}

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

.play-button {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.88), rgba(59, 130, 246, 0.9));
    box-shadow: 0 18px 52px rgba(34, 211, 238, 0.25);
}

.play-button svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.info-panel {
    padding: 24px;
}

.info-panel h2,
.info-panel h3 {
    margin: 0 0 14px;
    color: white;
    font-size: 24px;
    font-weight: 900;
}

.info-panel p {
    color: #cbd5e1;
    line-height: 1.9;
    margin: 0 0 16px;
}

.meta-table {
    display: grid;
    gap: 12px;
}

.meta-table div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    color: #cbd5e1;
}

.meta-table strong {
    color: #94a3b8;
}

.detail-poster {
    width: 100%;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(2, 6, 23, 0.94));
    padding: 44px 0;
    color: #94a3b8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.footer h2,
.footer h3 {
    color: white;
    margin: 0 0 14px;
}

.footer p,
.footer li {
    line-height: 1.8;
}

.footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.copyright {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 14px;
}

.empty-state {
    display: none;
    padding: 32px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    color: #cbd5e1;
    text-align: center;
    background: rgba(15, 23, 42, 0.62);
}

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

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

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

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

    .nav-toggle {
        display: block;
    }

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

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

    .section-head,
    .search-form,
    .rank-item,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: grid;
    }

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

    .rank-item {
        display: grid;
    }

    .rank-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
    }
}

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

    .grid.cards,
    .grid.categories {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding-top: 56px;
        padding-bottom: 74px;
    }

    .action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .cta,
    .ghost-cta {
        width: 100%;
    }
}
