:root {
    color-scheme: light;
    --site-blue: #2563eb;
    --site-blue-dark: #1d4ed8;
    --site-cyan: #06b6d4;
    --site-text: #111827;
    --site-muted: #6b7280;
    --site-soft: #f8fafc;
    --site-line: #e5e7eb;
    --site-card: #ffffff;
    --site-dark: #0f172a;
    --radius-xl: 28px;
    --shadow-card: 0 18px 48px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(37, 99, 235, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #ffffff;
    color: var(--site-text);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    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-weight: 800;
    color: var(--site-text);
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
    box-shadow: var(--shadow-soft);
}

.brand-text {
    font-size: 20px;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    position: relative;
    font-weight: 600;
    color: #374151;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--site-blue);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--site-blue), var(--site-cyan));
}

.mobile-toggle {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border-radius: 14px;
    background: #f3f4f6;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: #111827;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--site-line);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    font-weight: 700;
}

.mobile-nav-link:hover {
    color: var(--site-blue);
    background: #ffffff;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: var(--site-dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
}

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

.hero-backdrop,
.detail-backdrop,
.page-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(15, 23, 42, 0.66) 44%, rgba(15, 23, 42, 0.32) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-backdrop::after,
.detail-backdrop::after,
.page-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.36), transparent 34%),
        radial-gradient(circle at 80% 24%, rgba(6, 182, 212, 0.24), transparent 30%);
}

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

.hero-copy {
    width: min(680px, 100%);
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #bfdbfe;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--site-blue);
}

.hero-copy h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
    margin-bottom: 24px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-summary {
    max-width: 640px;
    margin-bottom: 24px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.9;
}

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

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

.hero-tags span,
.detail-tags span {
    padding: 7px 12px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.tag-row span {
    padding: 5px 9px;
    color: #2563eb;
    background: #eff6ff;
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

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

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

.hero-control-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    z-index: 4;
}

.hero-controls {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
    padding: 72px 0;
}

.section-raised {
    margin-top: -48px;
    position: relative;
    z-index: 5;
}

.section-soft {
    background: linear-gradient(180deg, #f8fafc, #eef6ff);
}

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

.section-heading.with-actions {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
    color: var(--site-text);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.compact-heading h2 {
    font-size: 28px;
}

.text-link {
    color: var(--site-blue);
    font-weight: 800;
}

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

.category-chip,
.category-overview-card,
.filter-panel,
.prose-card,
.side-card,
.ranking-panel,
.ranking-wide {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow-card);
}

.category-chip {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border-radius: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.16);
}

.category-chip span,
.category-card-main span {
    font-size: 20px;
    color: var(--site-text);
    font-weight: 900;
}

.category-chip em,
.category-card-main p {
    color: var(--site-muted);
    font-style: normal;
    line-height: 1.7;
}

.filter-panel {
    margin-bottom: 26px;
    padding: 16px;
    border-radius: 24px;
}

.filter-input-wrap {
    position: relative;
}

.filter-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--site-blue);
    font-size: 22px;
    font-weight: 900;
}

.filter-input-wrap input {
    width: 100%;
    min-height: 54px;
    padding: 0 18px 0 48px;
    border-radius: 18px;
    border: 1px solid var(--site-line);
    outline: none;
    background: #ffffff;
    color: var(--site-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input-wrap input:focus {
    border-color: var(--site-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.empty-state {
    margin-top: 14px;
    color: var(--site-muted);
    font-weight: 700;
}

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

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

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

.movie-card {
    min-width: 0;
    border-radius: 24px;
    overflow: hidden;
    background: var(--site-card);
    border: 1px solid var(--site-line);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #eef2ff);
}

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

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

.type-badge,
.year-badge {
    position: absolute;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.74);
    backdrop-filter: blur(8px);
}

.type-badge {
    left: 12px;
}

.year-badge {
    right: 12px;
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin-bottom: 8px;
    color: var(--site-text);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-info p {
    min-height: 48px;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-info .tag-row {
    margin-top: 12px;
}

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

.ranking-panel,
.ranking-wide {
    border-radius: 28px;
    padding: 26px;
}

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

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

.ranking-list li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.rank-no {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
}

.ranking-list a {
    min-width: 0;
    color: var(--site-text);
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-list span:last-child {
    color: var(--site-muted);
    font-size: 13px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: var(--site-dark);
}

.page-hero {
    padding: 92px 0;
    color: #ffffff;
}

.compact-page-hero {
    background: linear-gradient(135deg, #0f172a, #1e40af 55%, #0891b2);
}

.page-hero-bg {
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.84), rgba(15, 23, 42, 0.52)),
        var(--page-image);
}

.page-hero .container,
.detail-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 64px);
}

.page-hero p:last-child {
    max-width: 760px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.9;
}

.category-overview-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 26px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-main p {
    margin-top: 10px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--site-blue);
    background: #eff6ff;
    font-size: 13px;
    font-weight: 700;
}

.detail-hero {
    min-height: 520px;
    padding: 74px 0;
    color: #ffffff;
}

.detail-backdrop {
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.34)),
        var(--detail-image);
}

.detail-head-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    background: #111827;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #bfdbfe;
    font-weight: 700;
}

.detail-copy h1 {
    color: #ffffff;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.08;
    margin-bottom: 18px;
}

.detail-one-line {
    max-width: 780px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 8px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 800;
}

.detail-copy .primary-btn {
    margin-top: 28px;
}

.player-section {
    padding-bottom: 36px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.24), rgba(2, 6, 23, 0.46));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-ring {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.36);
}

.play-ring span {
    transform: translateX(3px);
    font-size: 34px;
}

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

.prose-card,
.side-card {
    border-radius: 28px;
    padding: 30px;
}

.prose-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 900;
    color: var(--site-text);
}

.prose-card h2:not(:first-child) {
    margin-top: 28px;
}

.prose-card p {
    color: #374151;
    font-size: 17px;
    line-height: 2;
}

.side-card dl {
    display: grid;
    gap: 14px;
}

.side-card dl div {
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.side-card dt {
    color: var(--site-muted);
    font-size: 13px;
    font-weight: 800;
}

.side-card dd {
    margin-top: 4px;
    color: var(--site-text);
    font-weight: 800;
}

.movie-card-compact .movie-info h3 {
    font-size: 16px;
}

.movie-card-compact .movie-info p {
    min-height: auto;
}

.site-footer {
    padding: 42px 0;
    background: #0f172a;
    color: #dbeafe;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    color: #bfdbfe;
}

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

.footer-links a {
    color: #dbeafe;
    font-weight: 800;
}

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

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

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

    .ranking-panel {
        position: static;
    }
}

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

    .mobile-toggle {
        display: flex;
    }

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

    .hero-copy h1,
    .detail-copy h1,
    .page-hero h1 {
        font-size: 40px;
    }

    .section {
        padding: 54px 0;
    }

    .section-heading.with-actions,
    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

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

@media (max-width: 520px) {
    .container,
    .header-inner,
    .mobile-nav {
        width: min(100% - 22px, 1180px);
    }

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

    .hero-summary,
    .detail-one-line,
    .page-hero p:last-child {
        font-size: 16px;
    }

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

    .movie-info p {
        min-height: auto;
    }

    .prose-card,
    .side-card,
    .ranking-panel,
    .ranking-wide {
        padding: 22px;
        border-radius: 22px;
    }

    .play-ring {
        width: 72px;
        height: 72px;
    }
}
