:root {
    color-scheme: dark;
    --bg-deep: #020617;
    --bg-main: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-soft: rgba(30, 41, 59, 0.45);
    --border: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #06b6d4;
    --cyan-strong: #0891b2;
    --orange: #f97316;
    --yellow: #facc15;
    --shadow: 0 22px 60px rgba(6, 182, 212, 0.16);
    --radius: 18px;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.10), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
    color: var(--text);
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.78);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--cyan), #2563eb);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.35);
}

.brand-mark::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 13px solid white;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text small {
    margin-top: 4px;
    color: var(--cyan);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

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

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

.header-search,
.mobile-search,
.page-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.page-search input {
    border: 1px solid rgba(148, 163, 184, 0.28);
    outline: none;
    color: var(--text);
    background: rgba(15, 23, 42, 0.78);
    border-radius: 999px;
    padding: 10px 16px;
    min-width: 240px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

.header-search button,
.mobile-search button,
.page-search button {
    border: 0;
    color: white;
    background: var(--cyan);
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.page-search button:hover,
.primary-btn:hover {
    background: var(--cyan-strong);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--border);
    padding: 18px 22px 24px;
    background: rgba(2, 6, 23, 0.96);
}

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

.mobile-search {
    align-items: stretch;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
}

.mobile-nav {
    display: grid;
    margin-top: 18px;
    gap: 12px;
}

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.10) 0%, rgba(2, 6, 23, 0.74) 68%, #020617 100%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.60) 42%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1280px;
}

.hero-content > * {
    max-width: 720px;
}

.eyebrow {
    color: var(--cyan);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.hero h1,
.hero h2,
.page-hero h1 {
    margin: 0;
    color: white;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.02;
}

.hero h1,
.hero h2 {
    font-size: clamp(42px, 7vw, 76px);
}

.hero-summary {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
    margin: 22px 0 20px;
    font-style: italic;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #cbd5e1;
    margin-bottom: 26px;
}

.hero-meta span,
.detail-meta span {
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(15, 23, 42, 0.56);
    border-radius: 999px;
    padding: 7px 12px;
    backdrop-filter: blur(12px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.primary-btn {
    background: var(--cyan);
    color: white;
    border: 1px solid transparent;
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.22);
}

.primary-btn.full {
    width: 100%;
}

.ghost-btn {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.ghost-btn:hover {
    border-color: rgba(6, 182, 212, 0.64);
    transform: translateY(-1px);
}

.hero-controls {
    position: absolute;
    right: 32px;
    bottom: 32px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    color: white;
    font-size: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.20);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 42px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.hero-dot.is-active {
    width: 34px;
    background: var(--cyan);
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 22px;
}

.soft-section {
    max-width: none;
    background: rgba(15, 23, 42, 0.38);
}

.soft-section > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more {
    color: var(--cyan);
    font-weight: 700;
    white-space: nowrap;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

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

.poster-wrap {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: #0f172a;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card:hover .poster-wrap {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow);
}

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

.year-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    background: rgba(6, 182, 212, 0.90);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.poster-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    color: white;
    background: linear-gradient(180deg, transparent 26%, rgba(0, 0, 0, 0.88) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poster-layer span {
    transform: translateY(14px);
    transition: transform 0.25s ease;
    font-size: 14px;
    line-height: 1.6;
}

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

.movie-card:hover .poster-layer span {
    transform: translateY(0);
}

.movie-card-body {
    padding: 14px 4px 0;
}

.movie-card h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 16px;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-meta {
    display: flex;
    gap: 7px;
    align-items: center;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.tag-row span {
    color: #a5f3fc;
    background: rgba(6, 182, 212, 0.10);
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
}

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

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.92) 100%),
        linear-gradient(90deg, rgba(6, 182, 212, 0.26), transparent 54%);
}

.category-copy {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    min-height: 210px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
}

.category-copy strong {
    color: white;
    font-size: 22px;
    line-height: 1.1;
}

.category-copy em {
    color: #cbd5e1;
    font-style: normal;
    margin-top: 10px;
    line-height: 1.6;
}

.ranking-grid,
.ranking-list-page {
    display: grid;
    gap: 16px;
}

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

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

.ranking-item,
.wide-item {
    display: flex;
    gap: 14px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.66);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ranking-item:hover,
.wide-item:hover {
    background: rgba(30, 41, 59, 0.86);
    border-color: rgba(6, 182, 212, 0.35);
    transform: translateY(-2px);
}

.ranking-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    border-radius: 12px;
    font-weight: 800;
}

.ranking-item img,
.wide-item img {
    width: 76px;
    height: 102px;
    object-fit: cover;
    border-radius: 12px;
    flex: 0 0 auto;
}

.ranking-text,
.wide-item span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ranking-text strong,
.wide-item strong {
    color: white;
    line-height: 1.35;
}

.ranking-text em,
.wide-item em {
    color: #cbd5e1;
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-text small,
.wide-item small {
    color: var(--muted);
}

.wide-grid,
.review-grid {
    display: grid;
    gap: 18px;
}

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

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

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(15, 23, 42, 0.68));
}

.page-hero > div {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 82px 22px;
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 64px);
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 18px;
}

.small-hero {
    min-height: 320px;
}

.category-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-layer {
    position: absolute;
    inset: 0;
    max-width: none !important;
    padding: 0 !important;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.18)),
        linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.page-search {
    margin-top: 28px;
    max-width: 720px;
}

.page-search input {
    min-width: 0;
    flex: 1;
    padding: 15px 20px;
}

.page-search button {
    padding: 15px 24px;
}

.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 22px 72px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 32px;
}

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

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

.player-card,
.detail-content,
.side-card,
.story-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.70);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22);
}

.player-card {
    padding: 12px;
}

.player-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}

.player-box video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.60);
    transform: scale(1.02);
}

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

.play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(6, 182, 212, 0.92);
    border-radius: 999px;
    font-size: 34px;
    padding-left: 6px;
    box-shadow: 0 18px 48px rgba(6, 182, 212, 0.34);
}

.detail-content {
    margin-top: 24px;
    padding: 28px;
}

.detail-content h1 {
    margin: 0 0 18px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.12;
}

.detail-tags {
    margin-bottom: 24px;
}

.story-card {
    padding: 24px;
    margin-top: 20px;
    background: rgba(30, 41, 59, 0.50);
}

.story-card.highlight {
    border-color: rgba(6, 182, 212, 0.22);
}

.story-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.story-card p {
    color: #cbd5e1;
    line-height: 1.9;
    margin: 0;
}

.story-card p + p {
    margin-top: 14px;
}

.one-line {
    color: #a5f3fc !important;
    font-style: italic;
}

.detail-side {
    min-width: 0;
}

.side-card {
    padding: 20px;
    margin-bottom: 24px;
    position: sticky;
    top: 96px;
}

.side-card + .side-card {
    position: static;
}

.poster-info img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
}

.poster-info h2 {
    line-height: 1.25;
}

.poster-info p {
    color: #cbd5e1;
    line-height: 1.7;
}

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

.side-wide .wide-item {
    padding: 10px;
}

.side-wide .wide-item img {
    width: 62px;
    height: 86px;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.82);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 42px;
}

.footer-brand p {
    color: var(--muted);
    line-height: 1.8;
    max-width: 620px;
}

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

.footer-columns h3 {
    margin: 0 0 14px;
    font-size: 16px;
}

.footer-columns a {
    display: block;
    color: var(--muted);
    margin: 8px 0;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 22px;
    text-align: center;
    color: #64748b;
}

.is-hidden-by-search {
    display: none !important;
}

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

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

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

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

    .side-card {
        position: static;
    }
}

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

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .hero {
        height: 560px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 92px;
    }

    .hero-controls {
        display: none;
    }

    .hero-dots {
        left: 22px;
        transform: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .category-grid,
    .category-grid.large,
    .ranking-grid,
    .ranking-list-page,
    .wide-grid,
    .review-grid,
    .footer-inner,
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .detail-content {
        padding: 22px;
    }
}

@media (max-width: 540px) {
    .header-inner {
        min-height: 64px;
        padding: 0 16px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text small {
        font-size: 11px;
    }

    .hero {
        height: 520px;
    }

    .hero-summary {
        font-size: 16px;
    }

    .hero-meta span {
        font-size: 13px;
    }

    .content-section {
        padding: 54px 16px;
    }

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

    .poster-layer {
        display: none;
    }

    .movie-card h3 {
        font-size: 14px;
    }

    .tag-row span {
        font-size: 11px;
        padding: 3px 7px;
    }

    .page-hero > div {
        padding: 64px 16px;
    }

    .page-search {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-layout {
        padding: 24px 16px 56px;
    }

    .play-icon {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }

    .ranking-item,
    .wide-item {
        gap: 10px;
        padding: 10px;
    }

    .ranking-item img,
    .wide-item img {
        width: 62px;
        height: 88px;
    }
}
