:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-700: #0e7490;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-500: #3b82f6;
    --yellow-400: #facc15;
    --white: #ffffff;
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.14);
    --shadow-deep: 0 24px 80px rgba(2, 6, 23, 0.34);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-shell {
    width: min(var(--max), calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-size: 24px;
    color: var(--white);
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    color: var(--white);
    box-shadow: 0 10px 28px rgba(6, 182, 212, 0.28);
    font-size: 15px;
}

.main-nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
}

.nav-link {
    color: var(--slate-300);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cyan-400);
}

.top-search {
    width: 300px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.top-search input,
.big-search input,
.filter-box input,
.filter-box select {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
}

.top-search input {
    width: 100%;
    padding: 8px 10px;
    color: var(--white);
}

.top-search input::placeholder {
    color: #94a3b8;
}

.top-search button,
.big-search button {
    border: 0;
    cursor: pointer;
    color: var(--white);
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    border-radius: 999px;
    padding: 8px 14px;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.mobile-panel {
    display: none;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-panel nav,
.mobile-cats,
.footer-links,
.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-panel a,
.footer-links a,
.category-samples a {
    color: var(--slate-300);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-950), #164e63, var(--slate-900));
}

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

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

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
}

.hero-layer {
    background:
        radial-gradient(circle at 75% 25%, rgba(34, 211, 238, 0.34), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.76) 42%, rgba(15, 23, 42, 0.22)),
        linear-gradient(0deg, var(--slate-950), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
    padding: 86px 0 72px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan-400);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-eyebrow span {
    color: var(--yellow-400);
}

.hero-content h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    margin: 20px 0 0;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.75;
}

.hero-tags,
.detail-tags,
.card-tags,
.detail-badges,
.mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin-top: 26px;
}

.hero-tags span,
.hero-tags a,
.detail-tags span,
.detail-badges span,
.detail-badges a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-weight: 650;
    font-size: 14px;
}

.hero-tags a,
.detail-badges a {
    color: #a5f3fc;
    background: rgba(6, 182, 212, 0.18);
    border-color: rgba(34, 211, 238, 0.36);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.primary-btn,
.ghost-btn,
.section-more,
.rank-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    padding: 14px 26px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 18px 42px rgba(6, 182, 212, 0.32);
}

.primary-btn:hover,
.movie-card:hover,
.wide-card:hover,
.category-card:hover,
.rank-row:hover {
    transform: translateY(-4px);
}

.ghost-btn {
    padding: 13px 24px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 38px;
    line-height: 1;
}

.hero-prev {
    left: 28px;
}

.hero-next {
    right: 28px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.search-band,
.content-section,
.category-strip,
.ranking-wrap,
.detail-content,
.player-section {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.search-band {
    margin-top: -44px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 28px;
    align-items: center;
    padding: 28px;
    color: var(--white);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 145, 178, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-deep);
}

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

.search-band h2 {
    font-size: 30px;
    letter-spacing: -0.04em;
}

.search-band p {
    margin-top: 8px;
    color: #dbeafe;
}

.big-search,
.filter-box {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.16);
}

.big-search input,
.filter-box input,
.filter-box select {
    flex: 1;
    padding: 12px 14px;
    color: var(--slate-900);
}

.filter-box {
    margin-top: 26px;
    max-width: 760px;
}

.filter-box.single {
    max-width: 620px;
}

.content-section,
.category-strip,
.ranking-wrap,
.detail-content,
.player-section {
    padding: 68px 0 0;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: -0.05em;
}

.section-more {
    padding: 10px 16px;
    color: var(--cyan-700);
    background: rgba(6, 182, 212, 0.1);
}

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

.listing-grid {
    align-items: stretch;
}

.movie-card,
.wide-card,
.category-card,
.rank-row,
.story-card {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.wide-card:hover,
.category-card:hover,
.rank-row:hover {
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.2);
}

.poster-wrap,
.wide-poster,
.rank-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--slate-200);
}

.poster-wrap {
    aspect-ratio: 16 / 10;
}

.poster-wrap img,
.wide-poster img,
.rank-cover img,
.category-covers img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover img,
.wide-card:hover img,
.rank-row:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
}

.card-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    border-radius: 8px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 10px;
    right: auto;
    color: var(--slate-950);
    background: var(--yellow-400);
}

.card-body {
    padding: 16px;
}

.card-category {
    display: inline-flex;
    margin-bottom: 9px;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--cyan-700);
    background: rgba(6, 182, 212, 0.1);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h2,
.wide-card h2,
.rank-info h2,
.category-card h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h2 a:hover,
.wide-card h2 a:hover,
.rank-info h2 a:hover,
.category-card h2 a:hover {
    color: var(--cyan-600);
}

.movie-card p,
.wide-card p,
.rank-info p,
.category-card p,
.story-card p {
    color: var(--slate-600);
    line-height: 1.75;
}

.movie-card p {
    min-height: 76px;
    margin: 10px 0 12px;
    font-size: 14px;
}

.card-tags span,
.mini-meta span {
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 650;
}

.soft-section {
    width: 100%;
    max-width: none;
    padding: 68px max(16px, calc((100% - var(--max)) / 2)) 74px;
    background: linear-gradient(135deg, #f8fafc, #ecfeff);
}

.dark-section {
    width: 100%;
    max-width: none;
    padding: 68px max(16px, calc((100% - var(--max)) / 2)) 74px;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-950), #164e63);
}

.dark-section .section-more {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

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

.wide-card {
    display: grid;
    grid-template-columns: 190px 1fr;
}

.wide-poster {
    min-height: 180px;
}

.wide-info {
    padding: 20px;
}

.movie-rail {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 2px 22px;
    scroll-snap-type: x mandatory;
}

.rail-item {
    width: 300px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

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

.category-tile {
    min-height: 166px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: var(--white);
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.32), transparent 35%),
        linear-gradient(135deg, var(--slate-900), #155e75);
    box-shadow: var(--shadow-soft);
}

.category-tile strong {
    font-size: 23px;
}

.category-tile span {
    color: #dbeafe;
    line-height: 1.65;
    font-size: 14px;
}

.page-hero,
.movie-detail-hero {
    position: relative;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-950), #164e63);
}

.page-hero > div {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 74px 0;
}

.compact-hero h1,
.category-hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(38px, 6vw, 58px);
    letter-spacing: -0.06em;
}

.compact-hero p,
.category-hero p {
    max-width: 760px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.crumb {
    display: inline-flex;
    color: var(--cyan-400);
    font-weight: 800;
}

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

.category-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    padding: 16px;
    gap: 18px;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--slate-200);
}

.category-covers img {
    aspect-ratio: 1 / 1;
}

.category-card h2 {
    margin-top: 6px;
    font-size: 24px;
}

.category-samples a {
    color: var(--cyan-700);
    background: rgba(6, 182, 212, 0.1);
}

.ranking-wrap {
    display: grid;
    gap: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: 64px 126px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
}

.rank-num {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--yellow-400), #fb923c);
    font-size: 22px;
    font-weight: 900;
}

.rank-cover {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
}

.rank-info h2 {
    font-size: 20px;
}

.rank-info p {
    margin: 8px 0;
}

.rank-watch {
    padding: 10px 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
}

.movie-detail-hero {
    min-height: 560px;
    overflow: hidden;
}

.detail-bg,
.detail-bg-layer {
    position: absolute;
    inset: 0;
}

.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.24;
}

.detail-bg-layer {
    background:
        radial-gradient(circle at 80% 15%, rgba(34, 211, 238, 0.28), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.35));
}

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #cbd5e1;
    margin-bottom: 28px;
}

.breadcrumb a {
    color: #a5f3fc;
}

.detail-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 38px;
    align-items: center;
}

.detail-poster {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--slate-800);
    box-shadow: var(--shadow-deep);
}

.detail-copy h1 {
    margin: 18px 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-copy p {
    max-width: 760px;
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.8;
}

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

.player-section {
    padding-top: 44px;
}

.player-card {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: var(--shadow-deep);
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: var(--white);
    background: radial-gradient(circle, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.42));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    padding-left: 6px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 24px 80px rgba(6, 182, 212, 0.42);
    font-size: 40px;
}

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

.detail-content {
    display: grid;
    gap: 24px;
}

.story-card {
    padding: clamp(24px, 4vw, 42px);
}

.story-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.story-card p {
    margin: 0 0 28px;
    font-size: 17px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.info-list div {
    padding: 16px;
    border-radius: 14px;
    background: var(--slate-50);
}

.info-list dt {
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 800;
}

.info-list dd {
    margin: 8px 0 0;
    color: var(--slate-900);
    font-weight: 800;
}

.related-section {
    padding-bottom: 72px;
}

.site-footer {
    margin-top: 76px;
    padding: 54px 0 28px;
    color: var(--slate-300);
    background: var(--slate-950);
}

.footer-grid {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 36px;
}

.footer-grid p {
    max-width: 420px;
    line-height: 1.75;
}

.footer-grid h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 18px;
}

.footer-bottom {
    width: min(var(--max), calc(100% - 32px));
    margin: 36px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    text-align: center;
    color: var(--slate-500);
}

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

@media (max-width: 1080px) {
    .top-search {
        display: none;
    }

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

    .category-list-grid,
    .wide-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .hero-arrow {
        display: none;
    }

    .search-band {
        grid-template-columns: 1fr;
    }

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

    .wide-card,
    .category-card,
    .rank-row,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .rank-row {
        align-items: stretch;
    }

    .rank-cover {
        width: 100%;
    }

    .detail-poster {
        width: min(320px, 100%);
    }

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

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

    .site-logo span:last-child {
        font-size: 19px;
    }

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

    .hero-content {
        padding-top: 64px;
    }

    .hero-tags span,
    .hero-tags a,
    .detail-tags span,
    .detail-badges span,
    .detail-badges a {
        padding: 7px 10px;
        font-size: 12px;
    }

    .movie-grid,
    .category-grid,
    .info-list {
        grid-template-columns: 1fr;
    }

    .big-search,
    .filter-box {
        flex-direction: column;
    }

    .content-section,
    .category-strip,
    .ranking-wrap,
    .detail-content,
    .player-section {
        padding-top: 48px;
    }
}
