:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --sky-600: #0284c7;
    --sky-500: #0ea5e9;
    --sky-100: #e0f2fe;
    --amber-400: #fbbf24;
    --rose-500: #f43f5e;
    --white: #ffffff;
    --body: #f8fafc;
    --text: #111827;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.28);
    --shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
    --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--body);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-900), var(--slate-700), var(--slate-900));
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.22);
}

.nav-shell {
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--sky-500), #6366f1 52%, var(--rose-500));
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 21px;
    letter-spacing: 0.04em;
}

.brand-text em {
    color: #bae6fd;
    font-size: 12px;
    font-style: normal;
}

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

.nav-link,
.mobile-link {
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.84);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.13);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    padding: 0 18px 16px;
}

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

.mobile-link {
    display: block;
    padding: 12px 14px;
    font-weight: 700;
}

.hero {
    position: relative;
    padding: 28px 20px 48px;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.38), transparent 36%),
        linear-gradient(135deg, #020617 0%, #0f172a 42%, #1e293b 100%);
}

.hero-stage {
    position: relative;
    max-width: 1240px;
    min-height: 620px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--slate-900);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 38px;
    padding: 76px 86px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: blur(1px) saturate(1.12);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.74) 48%, rgba(15, 23, 42, 0.26) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.08));
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-copy {
    max-width: 680px;
    color: var(--white);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--sky-500);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.hero-copy p {
    max-width: 620px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    padding: 7px 12px;
    color: #dbeafe;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(125, 211, 252, 0.22);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), #6366f1);
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.28);
}

.btn.ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.btn.small {
    min-height: 38px;
    padding: 9px 14px;
    color: var(--white);
    background: var(--slate-900);
}

.hero-poster {
    display: block;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

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

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 28px;
    background: var(--sky-500);
}

.hero-search {
    max-width: 980px;
    margin: -30px auto 0;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.hero-search input,
.filter-search input,
.filter-options select {
    width: 100%;
    border: 1px solid var(--line);
    outline: 0;
    border-radius: 14px;
    background: var(--white);
}

.hero-search input {
    padding: 14px 16px;
}

.hero-search button,
.hero-search a {
    border: 0;
    border-radius: 14px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 900;
    background: var(--slate-900);
    cursor: pointer;
}

.hero-search a {
    color: var(--slate-900);
    background: var(--sky-100);
}

.section-block,
.page-main {
    max-width: 1240px;
    margin: 0 auto;
}

.section-block {
    padding: 64px 22px;
}

.no-pad-top {
    padding-top: 24px;
}

.soft-bg {
    max-width: none;
    padding-left: max(22px, calc((100vw - 1240px) / 2 + 22px));
    padding-right: max(22px, calc((100vw - 1240px) / 2 + 22px));
    background: linear-gradient(135deg, #f8fafc, #e0f2fe);
}

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

.section-head.narrow {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-article h2 {
    margin: 0;
    color: var(--slate-900);
    line-height: 1.15;
}

.section-head h2 {
    font-size: clamp(26px, 4vw, 40px);
}

.more-link {
    color: var(--sky-600);
    font-weight: 900;
}

.scroll-actions {
    display: flex;
    gap: 8px;
}

.scroll-actions button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: var(--slate-900);
    background: var(--white);
    box-shadow: var(--soft-shadow);
    cursor: pointer;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 22px;
    padding: 20px;
    color: var(--white);
    background: var(--slate-900);
    box-shadow: var(--soft-shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-card:hover img {
    opacity: 0.5;
    transform: scale(1.08);
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card span {
    display: block;
    margin-top: 58px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.movie-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 5px 2px 18px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.movie-scroll::-webkit-scrollbar {
    display: none;
}

.movie-scroll .movie-card {
    flex: 0 0 290px;
    scroll-snap-align: start;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--slate-900);
}

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

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

.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-400), var(--rose-500));
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.3);
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--sky-600);
    background: var(--sky-100);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3,
.rank-content h3 {
    margin: 0 0 8px;
    color: var(--slate-900);
    line-height: 1.32;
}

.movie-card h3 {
    font-size: 19px;
}

.rank-content h3 {
    font-size: 22px;
}

.movie-card p,
.rank-content p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.tag-row span {
    padding: 5px 9px;
    color: var(--slate-700);
    background: var(--slate-100);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 68px 116px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.rank-number {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), var(--sky-600));
    font-size: 18px;
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
    background: var(--slate-900);
}

.rank-thumb img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.page-main {
    padding: 36px 22px 0;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: 56px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.38), transparent 36%),
        linear-gradient(135deg, var(--slate-900), var(--slate-700));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    max-width: 850px;
    color: var(--white);
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
    max-width: 780px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.filter-search label {
    display: block;
    margin-bottom: 8px;
    color: var(--slate-900);
    font-weight: 900;
}

.filter-search input,
.filter-options select {
    min-height: 46px;
    padding: 0 14px;
}

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

.filter-options select {
    min-width: 140px;
}

.empty-state {
    grid-column: 1 / -1;
    margin: 0;
    padding: 16px;
    border-radius: 14px;
    color: var(--slate-700);
    background: var(--slate-100);
}

.category-overview-list {
    display: grid;
    gap: 24px;
    padding-bottom: 64px;
}

.category-overview-card {
    padding: 24px;
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.category-overview-head h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.category-overview-head p {
    margin: 0;
    color: var(--muted);
}

.detail-main {
    overflow: hidden;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    padding: 70px 22px;
    color: var(--white);
    background: var(--slate-900);
}

.detail-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    filter: blur(6px) saturate(1.1);
    transform: scale(1.04);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.2));
}

.detail-shell {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.42);
}

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

.detail-info h1 {
    color: var(--white);
    font-size: clamp(36px, 6vw, 68px);
}

.detail-one-line {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

.breadcrumb a {
    color: #bae6fd;
}

.player-section {
    max-width: 1160px;
    margin: 0 auto;
    padding: 56px 22px 34px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18), rgba(0, 0, 0, 0.34));
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), #6366f1);
    box-shadow: 0 20px 42px rgba(14, 165, 233, 0.38);
    cursor: pointer;
    pointer-events: auto;
}

.play-button span {
    display: block;
    margin-left: 4px;
    font-size: 34px;
}

.detail-text-block {
    padding-top: 24px;
}

.detail-article {
    max-width: 920px;
    margin: 0 auto;
    padding: 34px;
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.detail-article h2 {
    margin-top: 0;
    font-size: 28px;
}

.detail-article h2 + p {
    margin-top: 10px;
}

.detail-article p {
    color: #334155;
    font-size: 17px;
}

.site-footer {
    margin-top: 60px;
    color: rgba(255, 255, 255, 0.78);
    background: var(--slate-900);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 38px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner strong {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    font-size: 20px;
}

.footer-inner p {
    max-width: 620px;
    margin: 0;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-inner a {
    color: #bae6fd;
    font-weight: 800;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 280px;
        padding: 58px 58px;
    }

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

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

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

    .menu-toggle {
        display: inline-block;
    }

    .hero {
        padding: 18px 12px 34px;
    }

    .hero-stage {
        min-height: 720px;
        border-radius: 22px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 42px 26px 78px;
    }

    .hero-poster {
        max-width: 210px;
        margin: 0 auto;
        order: -1;
        transform: none;
    }

    .hero-search {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .hero-search button,
    .hero-search a {
        min-height: 46px;
    }

    .section-head,
    .category-overview-head,
    .footer-inner,
    .filter-panel {
        display: grid;
        grid-template-columns: 1fr;
    }

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

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

    .page-hero {
        padding: 36px 24px;
    }

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

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

    .rank-row {
        grid-template-columns: 48px 88px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }
}

@media (max-width: 520px) {
    .brand-text strong {
        font-size: 18px;
    }

    .brand-text em {
        display: none;
    }

    .hero-copy h1,
    .detail-info h1 {
        font-size: 34px;
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .archive-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .movie-scroll .movie-card {
        flex-basis: 250px;
    }

    .rank-row {
        grid-template-columns: 1fr;
    }

    .rank-thumb {
        width: 120px;
    }

    .detail-article {
        padding: 24px;
    }
}
