:root {
    color-scheme: light;
    --page-bg: #f8fafc;
    --text-main: #0f172a;
    --text-soft: #475569;
    --brand: #0284c7;
    --brand-dark: #0369a1;
    --panel: #ffffff;
    --line: #e2e8f0;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body {
    background: var(--page-bg);
    color: var(--text-main);
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.logo-mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.35);
}

.nav-link-active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.22);
}

.mobile-menu {
    display: none;
}

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

.hero-stage {
    min-height: 600px;
    position: relative;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 600ms ease, transform 900ms ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: radial-gradient(circle at 20% 20%, #0ea5e9, #0f172a 55%, #020617);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.18);
    color: #7dd3fc;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.75rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
}

.hero-desc {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.75;
    color: #e5e7eb;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 3rem;
    padding: 0.8rem 1.25rem;
    border-radius: 0.85rem;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-primary {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.28);
}

.btn-primary:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(2, 132, 199, 0.34);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

.hero-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: width 180ms ease, background 180ms ease;
}

.hero-dot.is-active {
    width: 2rem;
    background: #38bdf8;
}

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

@media (min-width: 640px) {
    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.movie-card {
    overflow: hidden;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2f7;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
    border-color: #bae6fd;
}

.movie-cover-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #f8fafc);
}

.movie-cover-wrap.landscape {
    aspect-ratio: 16 / 9;
}

.movie-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

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

.movie-badge {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    z-index: 2;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.94);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
}

.movie-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}

.movie-title {
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 800;
    color: #0f172a;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.82rem;
}

.movie-desc {
    color: #475569;
    line-height: 1.65;
    font-size: 0.92rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-chip {
    display: inline-flex;
    padding: 0.26rem 0.52rem;
    border-radius: 999px;
    background: #f0f9ff;
    color: #0369a1;
    font-size: 0.76rem;
    font-weight: 700;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.section-heading {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.section-subtitle {
    color: #64748b;
    line-height: 1.7;
    margin-top: 0.45rem;
}

.scroll-row {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
    display: none;
}

.scroll-item {
    flex: 0 0 20rem;
}

.search-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

@media (min-width: 900px) {
    .search-panel {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.search-input,
.search-select {
    width: 100%;
    min-height: 2.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.85rem;
    padding: 0.65rem 0.85rem;
    background: #ffffff;
    color: #0f172a;
    outline: none;
}

.search-input:focus,
.search-select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.empty-state {
    display: none;
    padding: 2rem;
    border-radius: 1rem;
    background: #ffffff;
    color: #64748b;
    text-align: center;
    border: 1px solid #e2e8f0;
}

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

.category-card {
    display: block;
    border-radius: 1.2rem;
    padding: 1.4rem;
    min-height: 100%;
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    border: 1px solid #e0f2fe;
    box-shadow: 0 12px 32px rgba(2, 132, 199, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 46px rgba(2, 132, 199, 0.16);
}

.rank-list {
    display: grid;
    gap: 1rem;
}

.rank-item {
    display: grid;
    grid-template-columns: 4rem 7rem 1fr;
    gap: 1rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.9rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.rank-number {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #ffffff;
    font-weight: 900;
}

.rank-thumb {
    width: 7rem;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0.75rem;
    background: #e0f2fe;
}

.detail-hero {
    background: linear-gradient(135deg, #0f172a, #1e293b 50%, #075985);
    color: #ffffff;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .detail-layout {
        grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
    }
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
    background: #000000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(2, 132, 199, 0.25), rgba(2, 6, 23, 0.62));
    z-index: 3;
    cursor: pointer;
}

.play-layer.is-hidden {
    display: none;
}

.play-button {
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 132, 199, 0.95);
    color: #ffffff;
    font-size: 2rem;
    box-shadow: 0 18px 42px rgba(2, 132, 199, 0.35);
    transition: transform 160ms ease, background 160ms ease;
}

.play-layer:hover .play-button {
    transform: scale(1.08);
    background: #0369a1;
}

.prose-box {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 1.4rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.prose-box p {
    color: #334155;
    line-height: 1.85;
    margin-top: 0.85rem;
}

.poster-panel {
    background: #ffffff;
    border-radius: 1.2rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.poster-panel img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #e0f2fe;
}

.footer-note {
    color: #94a3b8;
    line-height: 1.7;
}

@media (max-width: 700px) {
    .hero-stage,
    .hero-content {
        min-height: 520px;
    }

    .rank-item {
        grid-template-columns: 3rem 5rem 1fr;
        gap: 0.7rem;
    }

    .rank-thumb {
        width: 5rem;
    }

    .scroll-item {
        flex-basis: 16rem;
    }
}
