:root {
    --color-cyan: #0891b2;
    --color-cyan-dark: #0e7490;
    --color-blue: #2563eb;
    --color-slate-950: #020617;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-500: #64748b;
    --color-slate-100: #f1f5f9;
    --color-slate-50: #f8fafc;
    --radius-xl: 24px;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(10px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
    box-shadow: 0 12px 28px rgba(8, 145, 178, 0.28);
    font-size: 0.9rem;
}

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

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

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

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--color-slate-700);
    background: var(--color-slate-100);
}

.mobile-nav {
    display: none;
    padding: 0 20px 16px;
    background: rgba(255, 255, 255, 0.98);
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--color-slate-100);
    color: var(--color-slate-700);
    font-weight: 650;
}

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

.home-hero {
    padding-top: 32px;
}

.hero-stage {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.28);
    background: var(--color-slate-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: clamp(28px, 5vw, 56px);
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.42) 54%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    color: #ffffff;
}

.hero-badge,
.eyebrow,
.poster-badge,
.category-pill {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    background: var(--color-cyan);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 750;
}

.hero-badge {
    padding: 6px 13px;
    margin-bottom: 18px;
}

.eyebrow {
    padding: 5px 10px;
    margin-bottom: 10px;
    background: rgba(8, 145, 178, 0.1);
    color: var(--color-cyan-dark);
    letter-spacing: 0.08em;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5.5vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
}

.hero-actions,
.detail-title-row,
.section-heading,
.filter-bar,
.category-showcase-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.primary-button,
.ghost-button,
.text-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: var(--color-cyan);
    box-shadow: 0 16px 36px rgba(8, 145, 178, 0.3);
}

.primary-button:hover {
    background: var(--color-cyan-dark);
    transform: translateY(-2px);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 480px);
    gap: 24px;
    align-items: center;
    margin-top: 28px;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.quick-search-panel h2,
.spotlight-panel h2,
.section-heading h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    color: var(--color-slate-800);
    letter-spacing: -0.03em;
}

input[type="search"],
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0 14px;
    color: var(--color-slate-800);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="search"]:focus,
select:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.page-section {
    padding-top: 64px;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading p,
.spotlight-panel p,
.category-showcase-card p,
.category-card-body p {
    margin: 8px 0 0;
    color: var(--color-slate-600);
    line-height: 1.75;
}

.section-link,
.text-button {
    min-height: auto;
    padding: 0;
    color: var(--color-cyan);
}

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

.all-movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.movie-card {
    min-width: 0;
}

.movie-card.is-hidden,
.horizontal-card.is-hidden {
    display: none;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    margin: 0;
    overflow: hidden;
    background: var(--color-slate-900);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.movie-poster::after {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.08));
    transition: opacity 0.25s ease;
}

.movie-card-link:hover .movie-poster::after {
    opacity: 1;
}

.poster-badge,
.rank-mark {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 10px;
    box-shadow: 0 10px 24px rgba(8, 145, 178, 0.28);
}

.rank-mark {
    left: 12px;
    right: auto;
    background: #f59e0b;
    color: #ffffff;
}

.poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(8, 145, 178, 0.86);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card-link:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--color-slate-500);
    font-size: 0.84rem;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--color-slate-800);
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 780;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--color-slate-600);
    font-size: 0.92rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span {
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--color-slate-600);
    background: var(--color-slate-100);
    font-size: 0.78rem;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.ranking-list,
.compact-list {
    display: grid;
    gap: 14px;
}

.horizontal-card a {
    display: grid;
    grid-template-columns: 56px 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card a:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.horizontal-card img {
    width: 96px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--color-slate-900);
}

.list-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
    font-weight: 800;
}

.horizontal-card h3 {
    margin: 0 0 4px;
    overflow: hidden;
    color: var(--color-slate-800);
    font-size: 1rem;
    font-weight: 780;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.horizontal-card p {
    display: -webkit-box;
    margin: 0 0 6px;
    overflow: hidden;
    color: var(--color-slate-600);
    font-size: 0.9rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.horizontal-card span:last-child {
    color: var(--color-slate-500);
    font-size: 0.82rem;
}

.spotlight-panel,
.detail-card,
.category-showcase-card,
.category-card a {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.spotlight-panel {
    padding: 24px;
}

.sticky-panel {
    position: sticky;
    top: 96px;
}

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

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

.category-showcase-head span {
    color: var(--color-slate-800);
    font-size: 1.15rem;
    font-weight: 800;
}

.category-showcase-head strong {
    color: var(--color-cyan);
    font-size: 1.25rem;
}

.mini-poster-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0;
}

.mini-poster-row a {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--color-slate-900);
}

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

.mini-poster-row span {
    position: absolute;
    inset: auto 0 0;
    padding: 18px 8px 8px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent);
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subpage-hero {
    padding: 68px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 22%, rgba(34, 211, 238, 0.24), transparent 28%),
        linear-gradient(135deg, #0f172a 0%, #0e7490 52%, #1d4ed8 100%);
}

.subpage-hero h1 {
    margin: 8px 0 12px;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.subpage-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.detail-page .breadcrumb {
    padding-top: 28px;
    color: var(--color-slate-500);
}

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

.category-card a {
    display: block;
    overflow: hidden;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-poster-collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 180px;
    overflow: hidden;
    background: var(--color-slate-900);
}

.category-poster-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.category-card-body h2 {
    margin: 8px 0 0;
    color: var(--color-slate-800);
}

.filter-bar {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.filter-bar input {
    flex: 1.4;
}

.filter-bar select {
    flex: 0.75;
}

.single-search input {
    flex: 1;
}

.result-count {
    margin: 0 0 18px;
    color: var(--color-slate-500);
    font-weight: 650;
}

.detail-card {
    overflow: hidden;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000000;
}

.player-cover.is-hidden {
    display: none;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.24));
}

.player-button {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(8, 145, 178, 0.9);
    box-shadow: 0 20px 44px rgba(8, 145, 178, 0.38);
    font-size: 2rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-cover:hover .player-button {
    background: var(--color-cyan-dark);
    transform: scale(1.08);
}

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

.detail-title-row {
    align-items: flex-start;
}

.detail-title-row h1 {
    margin: 0;
    color: var(--color-slate-800);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.category-pill {
    flex-shrink: 0;
    padding: 8px 14px;
}

.detail-meta {
    margin: 18px 0;
    font-size: 0.98rem;
}

.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-slate-100);
}

.detail-one-line {
    margin: 0 0 22px;
    color: var(--color-slate-700);
    font-size: 1.15rem;
    line-height: 1.8;
}

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

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

.detail-block p {
    margin: 0;
    color: var(--color-slate-600);
    font-size: 1rem;
    line-height: 1.9;
}

.detail-tags span {
    color: var(--color-cyan-dark);
    background: rgba(8, 145, 178, 0.1);
}

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

.site-footer {
    margin-top: 72px;
    padding: 48px 0 24px;
    color: #cbd5e1;
    background: var(--color-slate-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
}

.site-footer p {
    max-width: 520px;
    margin: 0;
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: #cbd5e1;
}

.site-footer a:hover {
    color: #22d3ee;
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #64748b;
    text-align: center;
    font-size: 0.9rem;
}

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

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

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

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-stage {
        height: 520px;
    }

    .quick-search-panel,
    .split-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar,
    .section-heading,
    .detail-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar select,
    .filter-bar input {
        flex: 1;
    }

    .sticky-panel {
        position: static;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .brand {
        font-size: 1.15rem;
    }

    .hero-stage {
        height: 500px;
        border-radius: 18px;
    }

    .hero-slide {
        padding: 24px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

    .movie-grid,
    .all-movie-grid,
    .related-grid,
    .category-showcase-grid,
    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

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

    .horizontal-card a {
        grid-template-columns: 42px 76px minmax(0, 1fr);
        gap: 10px;
    }

    .horizontal-card img {
        width: 76px;
        height: 62px;
    }

    .list-rank {
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    .subpage-hero {
        padding: 46px 0;
    }

    .player-button {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .category-poster-collage {
        height: 140px;
    }
}
