:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #142033;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --blue-soft: #dbeafe;
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--slate-50) 0%, #ffffff 40%, #eef6ff 100%);
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.header-inner {
    max-width: var(--max);
    height: 66px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, #38bdf8, var(--cyan), var(--blue));
    box-shadow: 0 12px 26px rgba(6, 182, 212, 0.32);
}

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

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

.desktop-nav a,
.mobile-nav a {
    position: relative;
    font-size: 14px;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    background: var(--cyan);
    transition: transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #67e8f9;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    transform: scaleX(1);
}

.desktop-nav a.active {
    color: #67e8f9;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    background: var(--slate-800);
    padding: 12px 20px 18px;
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.page-shell,
.section-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.24), transparent 30%), linear-gradient(135deg, #020617, #0f172a 45%, #111827);
}

.hero-stage {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    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 {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.22)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.82));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    min-height: 620px;
    margin: 0 auto;
    padding: 86px 20px 70px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: 44px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid rgba(103, 232, 249, 0.38);
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(8, 47, 73, 0.54);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 700;
}

.hero-title {
    margin: 20px 0 16px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero-desc {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

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

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

.pill,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--slate-700);
    background: #e0f2fe;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags .pill {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    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(--cyan), var(--blue));
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
}

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

.btn-light {
    color: var(--slate-900);
    background: var(--white);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 21 / 12;
    object-fit: cover;
}

.hero-card-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 90px 24px 24px;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.9));
}

.hero-card-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 900;
}

.hero-card-meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #67e8f9;
}

.hero-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.section {
    padding: 58px 0;
}

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

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--cyan);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-desc {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--slate-600);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

.movie-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.78));
}

.movie-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: auto;
    right: 12px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
}

.play-hover {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .play-hover {
    opacity: 1;
}

.play-circle {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.22);
}

.movie-body {
    padding: 18px;
}

.movie-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 850;
    color: var(--slate-900);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--slate-500);
    font-size: 13px;
}

.movie-desc {
    margin: 0;
    color: var(--slate-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.featured-strip {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 24px;
}

.wide-card {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: var(--slate-900);
    box-shadow: var(--shadow);
}

.wide-card img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    opacity: 0.72;
}

.wide-card-content {
    position: absolute;
    inset: 0;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.94));
}

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

.stack-item {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease;
}

.stack-item:hover {
    transform: translateX(4px);
}

.stack-item img {
    width: 128px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    background: var(--slate-800);
}

.stack-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 850;
}

.stack-meta {
    margin: 0;
    color: var(--slate-500);
    font-size: 13px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
    gap: 14px;
    padding: 18px;
    margin-bottom: 28px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    padding: 0 14px;
    color: var(--slate-900);
    background: var(--white);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

.empty-state {
    display: none;
    padding: 42px;
    text-align: center;
    border-radius: var(--radius-xl);
    color: var(--slate-600);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 26px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: radial-gradient(circle at 24% 18%, rgba(103, 232, 249, 0.30), transparent 36%), linear-gradient(135deg, var(--slate-900), var(--slate-800));
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.category-card .category-count {
    display: inline-flex;
    margin-top: 22px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 800;
}

.page-hero {
    color: var(--white);
    background: radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.28), transparent 32%), linear-gradient(135deg, #0891b2, #2563eb);
}

.page-hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 74px 20px;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 14px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

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

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

.detail-hero {
    color: var(--white);
    background: radial-gradient(circle at 16% 18%, rgba(34, 211, 238, 0.30), transparent 28%), linear-gradient(135deg, #020617, #0f172a 44%, #111827);
}

.detail-hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 56px 20px 64px;
    display: grid;
    grid-template-columns: minmax(280px, 0.54fr) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    background: var(--slate-800);
    box-shadow: var(--shadow);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.detail-title {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-lead {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 800;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.content-card {
    border-radius: var(--radius-xl);
    padding: 28px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.content-card h2,
.content-card h3 {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 900;
}

.content-card p {
    margin: 0 0 18px;
    color: var(--slate-700);
}

.content-card p:last-child {
    margin-bottom: 0;
}

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

.info-row {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--slate-700);
    font-size: 14px;
}

.info-row strong {
    color: var(--slate-900);
}

.player-wrap {
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-start {
    width: 86px;
    height: 86px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 46px rgba(2, 6, 23, 0.38);
    cursor: pointer;
}

.player-titlebar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(90deg, #020617, #0f172a);
}

.site-footer {
    margin-top: 58px;
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-900), #020617);
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 46px 20px 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 26px;
    margin-bottom: 28px;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
    font-weight: 900;
}

.footer-inner p {
    margin: 0;
}

.footer-links {
    display: grid;
    gap: 10px;
}

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

.copyright {
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    display: none;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.back-top.is-visible {
    display: grid;
}

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

    .featured-strip,
    .content-grid,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .header-inner {
        height: 62px;
    }

    .logo-text {
        font-size: 18px;
    }

    .hero-stage,
    .hero-content {
        min-height: 680px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 58px;
        gap: 28px;
    }

    .hero-card img {
        aspect-ratio: 16 / 10;
    }

    .hero-controls {
        bottom: 18px;
    }

    .section-head {
        display: block;
    }

    .layout-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .stack-item {
        grid-template-columns: 112px 1fr;
    }

    .stack-item img {
        width: 112px;
    }

    .content-card {
        padding: 22px;
    }
}

@media (max-width: 520px) {
    .layout-grid {
        gap: 16px;
    }

    .hero-title,
    .detail-title,
    .page-hero h1 {
        letter-spacing: -0.02em;
    }

    .hero-card-caption,
    .wide-card-content {
        padding: 24px;
    }

    .movie-body {
        padding: 15px;
    }

    .page-hero-inner,
    .detail-hero-inner {
        padding-top: 42px;
        padding-bottom: 46px;
    }
}
