
:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-500: #3b82f6;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f8fafc;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1240px, 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-weight: 800;
    letter-spacing: -0.02em;
}

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

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, var(--cyan-400), var(--blue-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
}

.nav-link {
    color: #cbd5e1;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-panel.open {
    display: grid;
}

.mobile-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.mobile-link.active {
    color: var(--cyan-400);
    background: rgba(8, 145, 178, 0.16);
}

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) brightness(0.72);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 35%, rgba(34, 211, 238, 0.3), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.84) 44%, rgba(15, 23, 42, 0.22) 100%),
        linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0) 30%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    gap: 46px;
    align-items: center;
    padding: 82px 0;
    color: white;
}

.hero-copy {
    max-width: 780px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(8, 145, 178, 0.18);
    border: 1px solid rgba(103, 232, 249, 0.22);
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    margin: 20px 0 16px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 46px);
    color: var(--cyan-400);
    font-weight: 800;
}

.hero p {
    margin: 0;
    max-width: 720px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.85;
}

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

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

.hero-tags span,
.detail-tag-line span,
.tag-line span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ecfeff;
    font-size: 13px;
}

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

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

.primary-button {
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
    color: #fff;
    box-shadow: 0 18px 34px rgba(14, 165, 233, 0.34);
}

.ghost-button {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    aspect-ratio: 2 / 3;
    transform: rotate(2deg);
}

.hero-poster img {
    height: 100%;
    object-fit: cover;
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

.hero-dot.active {
    background: var(--cyan-400);
}

.page-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.page-top {
    padding-top: 54px;
    padding-bottom: 72px;
}

.search-panel {
    position: relative;
    z-index: 10;
    margin: -42px auto 54px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.82);
    backdrop-filter: blur(18px);
}

.page-top .search-panel {
    margin-top: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    min-height: 54px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.search-box span {
    color: var(--cyan-500);
    font-size: 22px;
}

.search-box input {
    flex: 1;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 700;
}

.filter-chip.active,
.filter-chip:hover {
    background: var(--slate-900);
    color: var(--cyan-400);
}

.content-section {
    margin: 0 0 68px;
}

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

.section-heading > span {
    width: 7px;
    height: 42px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--cyan-400), var(--blue-500));
}

.section-heading h2,
.page-header h1,
.detail-card h1,
.detail-card h2,
.side-card h2 {
    margin: 0;
    color: var(--slate-900);
    letter-spacing: -0.04em;
}

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

.section-heading p,
.page-header p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card[hidden] {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.compact-grid .poster-link {
    aspect-ratio: 3 / 4;
}

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

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

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.92);
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
}

.rating-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.75);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.meta-row,
.detail-tags,
.info-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.category-pill,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 8px;
    background: #cffafe;
    color: #0e7490;
    font-weight: 800;
}

.movie-card h2 {
    margin: 12px 0 8px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h2 a:hover {
    color: var(--cyan-500);
}

.movie-card p {
    margin: 0 0 12px;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-line span {
    background: #f1f5f9;
    color: #64748b;
}

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

.category-card,
.category-overview-card {
    display: block;
    min-height: 152px;
    padding: 24px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 35%),
        linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
    transition: transform 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
}

.category-card span,
.category-overview-card span {
    color: var(--cyan-400);
    font-weight: 900;
    font-size: 22px;
}

.category-card strong,
.category-overview-card p {
    display: block;
    margin-top: 14px;
    color: #cbd5e1;
    line-height: 1.75;
    font-weight: 500;
}

.category-overview-card h2 {
    margin: 18px 0 0;
    color: #fff;
    font-size: 28px;
}

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

.ranking-list.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.compact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 94px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.compact-card img {
    width: 116px;
    height: 70px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
}

.compact-card strong {
    display: block;
    color: var(--slate-900);
    line-height: 1.35;
}

.compact-card em {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.rank-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--slate-900);
    color: var(--cyan-400);
    font-weight: 900;
}

.page-header {
    margin-bottom: 30px;
    padding: 36px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 20%, rgba(34, 211, 238, 0.18), transparent 30%),
        #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.page-header h1 {
    margin-top: 16px;
    font-size: clamp(34px, 5vw, 56px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}

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

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

.detail-main {
    background: #f8fafc;
}

.player-section {
    background: #000;
}

.player-wrap {
    position: relative;
    width: min(1240px, 100%);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.62));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.34);
    font-size: 28px;
}

.player-overlay strong {
    font-size: 18px;
}

.player-wrap.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-message {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 6;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    display: none;
}

.player-message.show {
    display: block;
}

.detail-shell {
    padding-top: 32px;
    padding-bottom: 72px;
}

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

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

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

.detail-card h1 {
    margin: 18px 0 14px;
    font-size: clamp(32px, 5vw, 54px);
}

.lead-text {
    margin: 0 0 18px;
    color: #334155;
    line-height: 1.85;
    font-size: 18px;
}

.info-list span,
.detail-tags span {
    padding: 7px 10px;
    border-radius: 10px;
    background: #f1f5f9;
}

.detail-tag-line {
    margin-top: 18px;
}

.detail-tag-line span {
    color: #0f172a;
    background: #e0f2fe;
}

.text-card h2,
.side-card h2 {
    font-size: 24px;
    margin-bottom: 14px;
}

.text-card p {
    color: #334155;
    line-height: 2;
    text-align: justify;
    white-space: pre-line;
}

.detail-sidebar {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 92px;
}

.poster-side {
    padding: 0;
    overflow: hidden;
}

.poster-side img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.side-list {
    display: grid;
    gap: 12px;
}

.side-list .compact-card {
    box-shadow: none;
    background: #f8fafc;
}

.side-list .compact-card img {
    width: 96px;
    height: 64px;
}

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

.footer-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr;
    gap: 32px;
}

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

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

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

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
}

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

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

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

    .detail-sidebar {
        position: static;
    }
}

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

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

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 52px 0 78px;
    }

    .hero-poster {
        width: min(280px, 80vw);
        transform: none;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid,
    .rank-hero-grid,
    .ranking-list,
    .ranking-list.wide,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .nav-wrap,
    .page-shell,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 22px, 1240px);
    }

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

    .hero h1 {
        font-size: 42px;
    }

    .hero p,
    .lead-text {
        font-size: 16px;
    }

    .search-panel,
    .page-header,
    .detail-card,
    .side-card {
        border-radius: 18px;
        padding: 18px;
    }

    .player-wrap {
        aspect-ratio: 16 / 10;
    }

    .compact-card img {
        width: 92px;
        height: 62px;
    }
}
