:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --border: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --blue: #2563eb;
    --amber: #f59e0b;
    --rose: #fb7185;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 78%);
    z-index: -1;
}

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

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

img.image-hidden {
    opacity: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(18px);
}

.nav-wrap,
.hero-inner,
.search-band,
.content-section,
.page-hero,
.breadcrumb,
.detail-hero,
.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.24), rgba(37, 99, 235, 0.28));
    color: var(--cyan);
    font-weight: 900;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.22);
    transition: transform 0.7s ease, box-shadow 0.3s ease;
}

.brand:hover .brand-mark {
    transform: rotate(180deg);
    box-shadow: 0 0 44px rgba(34, 211, 238, 0.34);
}

.brand-text strong {
    display: block;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.brand-text small {
    display: block;
    margin-top: 2px;
    color: rgba(103, 232, 249, 0.78);
    font-size: 0.78rem;
}

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

.desktop-nav a,
.mobile-nav a {
    color: #cbd5e1;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--cyan);
}

.desktop-nav a:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: rgba(51, 65, 85, 0.72);
    font-size: 1.35rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 0 20px 18px;
}

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

.hero {
    position: relative;
    height: min(80vh, 760px);
    min-height: 560px;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.02);
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.06) contrast(1.05);
    opacity: 0.64;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 40%, rgba(34, 211, 238, 0.24), transparent 22rem);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.3) 100%),
        linear-gradient(0deg, #020617 0%, transparent 42%, rgba(2, 6, 23, 0.15) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 420px);
    align-items: center;
    gap: 64px;
    padding-top: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 16px 0 16px;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-info .lead {
    max-width: 720px;
    color: #cbd5e1;
    font-size: clamp(1rem, 1.9vw, 1.25rem);
    line-height: 1.9;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(8, 145, 178, 0.13);
    font-size: 0.82rem;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #fff;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.32);
}

.btn-secondary {
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(15, 23, 42, 0.62);
    color: #e2e8f0;
}

.text-link,
.section-more {
    color: var(--cyan);
    font-weight: 800;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 34px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.66));
    transform: rotate(2deg);
    transition: transform 0.25s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-4px);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.84);
    color: #fff;
    font-size: 1.8rem;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 38px rgba(34, 211, 238, 0.48);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(14px);
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.45);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.search-band,
.content-section,
.page-hero,
.detail-hero,
.breadcrumb {
    position: relative;
    z-index: 2;
}

.search-band {
    margin-top: -44px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

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

.section-head.compact {
    margin-bottom: 16px;
}

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

.section-head h2 {
    margin: 8px 0 0;
    font-size: clamp(1.6rem, 3.6vw, 2.45rem);
    letter-spacing: -0.035em;
}

.section-head p {
    max-width: 660px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.search-panel,
.toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.search-panel input,
.toolbar input,
.toolbar select {
    width: 100%;
    height: 50px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    outline: 0;
    color: #fff;
    background: rgba(2, 6, 23, 0.56);
    padding: 0 16px;
    font-size: 1rem;
}

.toolbar select {
    min-width: 160px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.11);
    color: #bae6fd;
    font-weight: 700;
}

.content-section {
    padding: 72px 0 0;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.24);
    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.38);
    box-shadow: 0 22px 48px rgba(8, 145, 178, 0.18);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 145, 178, 0.18));
}

.movie-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

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

.score-badge,
.play-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.score-badge {
    left: 12px;
    top: 12px;
    min-width: 44px;
    height: 28px;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    font-weight: 900;
    font-size: 0.86rem;
}

.play-badge {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: rgba(34, 211, 238, 0.82);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.42);
}

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

.movie-meta-line {
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-card h3 {
    margin: 9px 0 8px;
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--cyan);
}

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

.compact-card .movie-card-body {
    padding: 14px;
}

.compact-card h3 {
    font-size: 1rem;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 28px;
    align-items: stretch;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 58px;
    padding: 12px 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-row span {
    color: var(--cyan);
    font-weight: 950;
    font-size: 1.2rem;
}

.rank-row em {
    color: var(--muted);
    font-style: normal;
}

.spotlight-card {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.spotlight-card img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    opacity: 0.58;
}

.spotlight-card > div {
    position: absolute;
    inset: auto 0 0;
    padding: 28px;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.98), transparent);
}

.spotlight-card h3 {
    margin: 10px 0;
    font-size: 1.6rem;
}

.spotlight-card p {
    color: #cbd5e1;
    line-height: 1.8;
}

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

.category-card {
    display: flex;
    min-height: 172px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.19);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 12rem),
        rgba(15, 23, 42, 0.76);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.category-card span {
    font-size: 1.25rem;
    font-weight: 900;
}

.category-card p {
    margin: 12px 0;
    color: var(--muted);
    line-height: 1.75;
}

.category-card em {
    color: var(--cyan);
    font-style: normal;
    font-weight: 850;
}

.page-hero {
    padding: 82px 0 16px;
}

.page-hero h1 {
    max-width: 920px;
}

.page-hero p {
    max-width: 780px;
}

.toolbar {
    margin-bottom: 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 34px;
    color: #94a3b8;
    font-size: 0.95rem;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    padding: 42px 0 22px;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: var(--shadow);
}

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

.detail-info h1 {
    font-size: clamp(2.25rem, 5.2vw, 4.6rem);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    color: #cbd5e1;
}

.detail-meta span {
    padding: 9px 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.58);
}

.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 52px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-shell video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-shell video {
    z-index: 1;
    background: #000;
}

.player-cover {
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #020617;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: saturate(1.08);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.22), transparent 18rem),
        linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.2));
}

.play-orb {
    position: relative;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-size: 2rem;
    box-shadow: 0 0 45px rgba(34, 211, 238, 0.52);
}

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

.detail-text article {
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.68);
}

.detail-text h2 {
    margin: 0 0 14px;
    font-size: 1.55rem;
}

.detail-text p {
    margin: 0;
    color: #cbd5e1;
    line-height: 2;
}

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

.rank-board {
    display: grid;
    gap: 16px;
}

.rank-card {
    display: grid;
    grid-template-columns: 58px 92px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.36);
}

.rank-number {
    color: var(--cyan);
    font-size: 1.55rem;
    font-weight: 950;
    text-align: center;
}

.rank-card img {
    width: 92px;
    height: 122px;
    object-fit: cover;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.82);
}

.rank-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.18rem;
}

.rank-card p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.7;
}

.rank-card em {
    color: var(--cyan);
    font-style: normal;
}

.site-footer {
    margin-top: 82px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 34px 0;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

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

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

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

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

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

    .hero-inner,
    .split-layout,
    .detail-hero,
    .detail-text {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }
}

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

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .hero {
        min-height: 610px;
        height: 72vh;
    }

    .hero-inner {
        width: min(100% - 28px, 1180px);
        padding-top: 16px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        letter-spacing: -0.04em;
    }

    .hero-arrow {
        display: none;
    }

    .search-band {
        margin-top: -26px;
    }

    .search-panel,
    .toolbar {
        grid-template-columns: 1fr;
    }

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

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

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

    .rank-row em {
        grid-column: 2;
    }

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

    .rank-card {
        grid-template-columns: 42px 74px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-card img {
        width: 74px;
        height: 98px;
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 500px) {
    .movie-grid,
    .movie-grid.large,
    .related-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .brand-text strong {
        font-size: 1.1rem;
    }

    .hero-actions,
    .page-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
