:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-500: #3b82f6;
    --yellow-400: #facc15;
    --white: #ffffff;
    --shadow-card: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.1);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-nav {
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.24);
    backdrop-filter: blur(12px);
}

.nav-inner {
    width: min(1180px, calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
    box-shadow: 0 0 26px rgba(34, 211, 238, 0.35);
}

.brand-text {
    font-size: 20px;
    line-height: 1;
    background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.sub-link {
    display: none;
}

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

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    background: var(--slate-800);
}

.mobile-menu.is-open {
    display: grid;
    gap: 4px;
    padding: 12px 16px 18px;
}

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.86);
}

.mobile-link:hover,
.mobile-link.is-active {
    color: var(--cyan-400);
    background: rgba(255, 255, 255, 0.06);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--slate-950);
}

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 42%, rgba(34, 211, 238, 0.28), transparent 32%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.22) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 0;
    transform: translateX(-50%);
    padding: 0 0 76px;
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan-400);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.hero-copy p {
    max-width: 740px;
    margin: 0 0 22px;
    color: rgba(226, 232, 240, 0.92);
    font-size: clamp(16px, 2vw, 21px);
}

.hero-meta,
.hero-tags,
.hero-actions,
.quick-links,
.detail-meta,
.tag-row,
.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
}

.hero-tags span,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #0e7490;
    background: rgba(207, 250, 254, 0.9);
    font-size: 13px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-form button {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.28);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(6, 182, 212, 0.35);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.46);
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 42px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.search-panel {
    margin-top: -32px;
    position: relative;
    z-index: 3;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

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

.search-form input,
.inline-filter input,
.inline-filter select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 0 16px;
    color: var(--slate-800);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.inline-filter input:focus,
.inline-filter select:focus {
    border-color: var(--cyan-400);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.quick-links {
    margin-top: 14px;
}

.quick-links a {
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-size: 14px;
    font-weight: 700;
}

.quick-links a:hover {
    color: #0e7490;
    background: #cffafe;
}

.section-block {
    padding: 54px 0 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.section-heading.compact {
    margin-bottom: 18px;
}

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--slate-800);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.section-heading h2 span {
    width: 5px;
    height: 34px;
    border-radius: 999px;
    background: var(--cyan-500);
}

.section-heading a {
    color: var(--cyan-600);
    font-weight: 800;
}

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

.featured-card,
.movie-card,
.rail-card,
.list-item,
.category-card,
.detail-card,
.category-chip {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.featured-card {
    min-height: 220px;
    color: var(--white);
}

.featured-large {
    grid-column: span 2;
    grid-row: span 2;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover img,
.movie-card:hover img,
.rail-card:hover img,
.list-item:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

.featured-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 18px;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.48), transparent);
}

.featured-overlay h3 {
    margin: 0 0 6px;
    font-size: 19px;
}

.featured-large .featured-overlay h3 {
    font-size: 30px;
}

.featured-overlay p {
    margin: 0 0 8px;
    color: rgba(226, 232, 240, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.rail-card {
    flex: 0 0 236px;
    overflow: visible;
    box-shadow: none;
    background: transparent;
    scroll-snap-align: start;
}

.rail-poster,
.poster-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.18), transparent 34%),
        linear-gradient(135deg, var(--slate-800), var(--slate-950));
    box-shadow: var(--shadow-soft);
}

.rail-poster img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.rail-poster span,
.score {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(2, 6, 23, 0.76);
    font-size: 12px;
    font-weight: 800;
}

.rail-card h3 {
    margin: 12px 0 3px;
    color: var(--slate-800);
    font-size: 16px;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.rail-card p {
    margin: 0;
    color: var(--slate-500);
    font-size: 14px;
}

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

.category-chip {
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 40%),
        var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.category-card:hover,
.movie-card:hover,
.list-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.category-chip span {
    display: block;
    margin-bottom: 8px;
    font-size: 19px;
    font-weight: 800;
}

.category-chip small {
    color: var(--slate-500);
}

.split-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    padding-bottom: 66px;
}

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

.list-item {
    display: grid;
    grid-template-columns: 36px 120px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
}

.list-rank {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--cyan-500);
    font-weight: 900;
}

.list-item img {
    width: 120px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
    transition: transform 0.4s ease, opacity 0.2s ease;
}

.list-body {
    min-width: 0;
}

.list-body h3,
.movie-info h3 {
    margin: 0;
    color: var(--slate-800);
}

.list-body p {
    margin: 4px 0 8px;
    color: var(--slate-600);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--slate-500);
    font-size: 13px;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.22), transparent 32%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
    padding: 74px 0;
}

.small-hero {
    padding: 64px 0;
}

.page-hero h1 {
    max-width: 880px;
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

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

.inline-filter {
    max-width: 760px;
    grid-template-columns: minmax(0, 1fr) 180px;
    margin-top: 26px;
}

.search-wide {
    grid-template-columns: minmax(0, 1fr) 180px;
}

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

.movie-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-link {
    display: grid;
    height: 100%;
}

.poster-frame {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

.rank-badge {
    position: absolute;
    z-index: 2;
    left: 10px;
    top: 10px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-size: 13px;
    font-weight: 900;
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.tag-row {
    gap: 7px;
}

.movie-card.related .poster-frame {
    aspect-ratio: 4 / 3;
}

.movie-card.related .movie-line {
    display: none;
}

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

.category-card a {
    display: grid;
    height: 100%;
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    height: 210px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

.category-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.category-card-body {
    padding: 22px;
}

.category-card-body h2 {
    margin: 0 0 8px;
}

.category-card-body p {
    margin: 0 0 16px;
    color: var(--slate-600);
}

.category-card-body span {
    color: var(--cyan-600);
    font-weight: 800;
}

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

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

.detail-main {
    background: var(--slate-50);
}

.detail-shell {
    padding-top: 28px;
    padding-bottom: 66px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--slate-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--cyan-600);
    font-weight: 700;
}

.detail-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.player-wrap {
    position: relative;
    background: #000000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background:
        radial-gradient(circle at center, rgba(6, 182, 212, 0.22), transparent 34%),
        rgba(2, 6, 23, 0.26);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-ring {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 18px 44px rgba(6, 182, 212, 0.42);
    font-size: 34px;
}

.detail-content {
    padding: clamp(22px, 4vw, 38px);
}

.detail-content h1 {
    margin: 0 0 16px;
    color: var(--slate-800);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.16;
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-meta span,
.detail-meta a {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-weight: 700;
}

.detail-meta a {
    color: #0e7490;
    background: #cffafe;
}

.lead-text {
    margin: 0 0 26px;
    color: var(--slate-700);
    font-size: 19px;
}

.detail-section {
    margin-top: 26px;
}

.detail-section h2 {
    margin: 0 0 10px;
    color: var(--slate-800);
    font-size: 23px;
}

.detail-section p {
    margin: 0;
    color: var(--slate-700);
    text-align: justify;
}

.review-section {
    padding-top: 24px;
    border-top: 1px solid var(--slate-200);
}

.detail-tags .tag {
    color: var(--slate-700);
    background: var(--slate-100);
}

.related-block {
    padding-top: 42px;
}

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

.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: var(--slate-950);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 0;
}

.footer-inner p {
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
}

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

img.image-hidden {
    opacity: 0;
}

@media (min-width: 1120px) {
    .sub-link {
        display: inline-flex;
    }
}

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

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

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

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

    .featured-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .split-section {
        grid-template-columns: 1fr;
    }
}

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

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

    .hero {
        min-height: 560px;
    }

    .hero-content {
        padding-bottom: 72px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .hero-arrow {
        display: none;
    }

    .search-form,
    .inline-filter,
    .search-wide {
        grid-template-columns: 1fr;
    }

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

    .featured-grid,
    .movie-grid,
    .category-grid,
    .category-card-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .featured-large {
        grid-column: span 1;
    }

    .list-item {
        grid-template-columns: 30px 94px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .list-item img {
        width: 94px;
        height: 64px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
