* {
    box-sizing: border-box;
}

:root {
    --sky: #0ea5e9;
    --sky-deep: #0369a1;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --slate: #0f172a;
    --text: #111827;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.04em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--sky-deep));
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.28);
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
}

.nav-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--sky-deep);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 10px;
    background: #334155;
}

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

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #475569;
    font-weight: 700;
}

.mobile-panel a:hover {
    background: #e0f2fe;
    color: var(--sky-deep);
}

.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: linear-gradient(135deg, #020617, #334155);
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.image-missing {
    opacity: 0 !important;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.58) 52%, rgba(2, 6, 23, 0.28) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 76px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    color: #ffffff;
}

.hero-pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(14, 165, 233, 0.92);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.eyebrow {
    color: var(--sky-deep);
    background: #e0f2fe;
}

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

.hero-content p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.tag-row span,
.detail-tags a {
    color: #0369a1;
    background: #e0f2fe;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--sky-deep));
    box-shadow: 0 16px 32px rgba(14, 165, 233, 0.28);
}

.btn-soft {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.hero-controls button {
    border: 0;
    cursor: pointer;
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.hero-dots button.is-active {
    width: 28px;
    background: #ffffff;
}

.search-band,
.content-section,
.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.search-band {
    margin-top: -36px;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.detail-card h1 {
    margin: 12px 0;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.search-band p,
.section-heading p,
.page-hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 800;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 15px;
}

.inline-search {
    margin-top: 24px;
    max-width: 520px;
}

.content-section {
    padding: 72px 0 0;
}

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

.section-heading h2,
.page-hero h1 {
    font-size: clamp(32px, 4vw, 52px);
}

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

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

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

.movie-card a {
    display: block;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.35), transparent 30%), linear-gradient(135deg, #0f172a, #334155);
    aspect-ratio: 3 / 4;
}

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

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

.year-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 28px;
    padding: 4px 10px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.68);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

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

.movie-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--sky-deep);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.movie-card.small h2,
.movie-card.rail h2 {
    font-size: 16px;
}

.category-cloud {
    padding: 72px 0;
}

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

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

.category-card {
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.category-card.large {
    padding: 28px;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 16px 28px rgba(244, 63, 94, 0.22);
}

.category-card h2 {
    margin: 16px 0 10px;
    color: #0f172a;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.category-preview {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.compact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: #334155;
    font-weight: 800;
}

.compact-link:hover {
    background: #e0f2fe;
    color: var(--sky-deep);
}

.compact-link small {
    color: #94a3b8;
    white-space: nowrap;
}

.rail-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 52px;
}

.mini-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.mini-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.mini-heading a {
    color: var(--sky-deep);
    font-weight: 800;
}

.movie-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 20px;
    scroll-snap-type: x proximity;
}

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

.ranking-panel {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 28px;
    align-items: start;
    border-radius: 30px;
    padding: 34px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.ranking-panel h2 {
    margin: 16px 0 14px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.ranking-panel p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.ranking-list {
    display: grid;
    gap: 10px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.ranking-row:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ranking-row strong {
    color: #7dd3fc;
    font-size: 20px;
}

.ranking-row small {
    color: rgba(255, 255, 255, 0.62);
}

.page-shell {
    padding: 42px 0 72px;
}

.page-hero {
    border-radius: 30px;
    padding: 48px;
    box-shadow: var(--shadow);
}

.soft-hero {
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 34%), linear-gradient(135deg, #ffffff, #f0f9ff);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

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

.side-panel {
    border-radius: 24px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.side-panel h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.ranking-list.slim .ranking-row {
    grid-template-columns: 44px 1fr;
    color: #0f172a;
    background: #f8fafc;
}

.ranking-list.slim .ranking-row small {
    grid-column: 2;
    color: #64748b;
}

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

.rank-card a {
    display: grid;
    grid-template-columns: 70px 88px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.rank-card strong {
    color: var(--sky-deep);
    font-size: 28px;
    font-weight: 900;
}

.rank-card h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 22px;
}

.rank-card p {
    margin: 0 0 8px;
    color: #64748b;
    line-height: 1.6;
}

.rank-card span {
    color: #0ea5e9;
    font-weight: 800;
    font-size: 13px;
}

.rank-poster {
    border-radius: 16px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    color: #64748b;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--sky-deep);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
}

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

.video-stage {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.28);
}

.video-stage video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.58));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--sky-deep));
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.36);
    font-size: 32px;
}

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

.detail-card {
    border-radius: 24px;
    padding: 26px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-card h1 {
    margin-top: 16px;
}

.detail-card h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.lead-text,
.text-block p {
    color: #334155;
    font-size: 17px;
    line-height: 1.85;
}

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

.info-grid div {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.info-grid strong,
.info-grid span {
    display: block;
}

.info-grid strong {
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 6px;
}

.info-grid span {
    color: #0f172a;
    font-weight: 800;
}

.warm-card {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.detail-side {
    display: grid;
    gap: 22px;
}

.side-poster {
    border-radius: 26px;
    box-shadow: var(--shadow);
}

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

.site-footer {
    margin-top: 80px;
    background: #0f172a;
    color: #ffffff;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.footer-brand {
    color: #ffffff;
}

.site-footer p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

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

.footer-links a {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: rgba(255, 255, 255, 0.52);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.empty-state {
    display: none;
    padding: 24px;
    border-radius: 20px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    font-weight: 800;
}

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

.is-filtered-out {
    display: none !important;
}

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

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

    .split-layout,
    .detail-layout,
    .ranking-panel {
        grid-template-columns: 1fr;
    }

    .detail-side {
        grid-template-columns: 260px 1fr;
    }
}

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

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

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

    .hero-slider {
        height: 78vh;
        min-height: 560px;
    }

    .hero-content {
        bottom: 92px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 260px;
    }

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

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

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

    .page-hero {
        padding: 30px;
    }

    .rank-card a {
        grid-template-columns: 46px 70px 1fr;
        gap: 12px;
    }

    .rank-card p {
        display: none;
    }

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

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

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

@media (max-width: 560px) {
    .site-nav,
    .mobile-panel,
    .search-band,
    .content-section,
    .page-shell,
    .rail-section,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-controls {
        justify-content: center;
    }

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

    .movie-card.small,
    .movie-card.rail {
        max-width: none;
    }

    .rail-card {
        width: 78vw;
    }

    .ranking-row {
        grid-template-columns: 44px 1fr;
    }

    .ranking-row small {
        grid-column: 2;
    }

    .detail-card {
        padding: 20px;
    }

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