:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --muted: #94a3b8;
    --text: #e2e8f0;
    --white: #ffffff;
    --amber: #f59e0b;
    --orange: #f97316;
    --sky: #0ea5e9;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.12), transparent 34rem),
        radial-gradient(circle at 82% 10%, rgba(14, 165, 233, 0.12), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #111827;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.35);
}

.brand-icon.small {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 12px;
}

.brand-text {
    font-size: 21px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

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

.nav-link.active {
    color: #fbbf24;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--white);
    border-radius: 99px;
}

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

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

.mobile-link {
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.86);
}

.hero-section {
    padding: 30px 0 20px;
}

.hero-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
}

.hero-stage {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--bg-soft);
    box-shadow: var(--shadow);
}

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

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

.hero-image,
.hero-layer,
.detail-backdrop,
.detail-overlay {
    position: absolute;
    inset: 0;
}

.hero-image img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-layer {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.16) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.18) 48%, rgba(2, 6, 23, 0.65) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 660px;
    height: 100%;
    padding: 70px 56px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-kicker,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-kicker span,
.detail-meta span,
.card-meta span {
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    color: #dbeafe;
    font-size: 13px;
}

.hero-content h1 {
    margin: 20px 0 16px;
    color: var(--white);
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 0;
    max-width: 580px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

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

.primary-button,
.ghost-button,
.text-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 0 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky), #0284c7);
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.3);
}

.ghost-button {
    padding: 0 22px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-dots {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

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

.hero-panel,
.rank-panel,
.player-card,
.story-card,
.category-card,
.ranking-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.panel-title span,
.page-hero span {
    color: #fbbf24;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.panel-title strong {
    display: block;
    margin-top: 8px;
    color: var(--white);
    font-size: 24px;
}

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

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

.hero-category-links a,
.footer-links a,
.text-button,
.section-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.18);
}

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

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

.section-heading h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.03em;
}

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

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.36);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
}

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

.movie-card:hover .poster-link img {
    transform: scale(1.05);
}

.poster-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #fb923c);
    font-size: 12px;
    font-weight: 800;
}

.card-content {
    padding: 14px;
}

.card-title {
    display: block;
    margin: 10px 0 8px;
    color: var(--white);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.card-content p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(14, 165, 233, 0.1);
    font-size: 12px;
}

.large-tags span {
    font-size: 13px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 0;
}

.horizontal-card .poster-link {
    aspect-ratio: 2 / 3;
}

.horizontal-card .card-title {
    margin-top: 8px;
}

.compact-card .card-content p {
    -webkit-line-clamp: 2;
}

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

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

.category-tile {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(14, 165, 233, 0.08));
}

.category-tile span {
    display: block;
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
}

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

.rank-panel {
    padding: 22px;
    position: sticky;
    top: 90px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.4);
}

.rank-item span,
.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #fb923c);
    font-weight: 900;
}

.rank-item span {
    width: 34px;
    height: 34px;
    border-radius: 12px;
}

.rank-item strong {
    color: var(--white);
}

.rank-item em {
    color: #fbbf24;
    font-style: normal;
    font-size: 13px;
}

.page-main,
.detail-main {
    min-height: 60vh;
}

.page-hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 58px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(14, 165, 233, 0.08)),
        rgba(15, 23, 42, 0.82);
    box-shadow: var(--shadow);
}

.soft-hero {
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 26rem),
        rgba(15, 23, 42, 0.82);
}

.page-hero h1 {
    margin: 12px 0;
    color: var(--white);
    font-size: clamp(34px, 6vw, 60px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
    color: #cbd5e1;
}

.breadcrumb a {
    color: #fbbf24;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
    margin-bottom: 22px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
    color: var(--white);
    background: rgba(15, 23, 42, 0.9);
    padding: 0 16px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(14, 165, 233, 0.6);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.empty-state {
    display: none;
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.7);
    text-align: center;
}

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

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

.category-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    padding: 18px;
}

.category-poster-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-poster-strip img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.category-card h2 {
    margin: 4px 0 12px;
    color: var(--white);
}

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

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

.ranking-card {
    display: grid;
    grid-template-columns: 56px 112px 1fr;
    gap: 18px;
    padding: 16px;
    align-items: center;
}

.rank-number {
    width: 44px;
    height: 44px;
    border-radius: 15px;
}

.rank-cover {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 16px;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-copy h2 {
    margin: 10px 0;
    color: var(--white);
}

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

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
}

.detail-backdrop {
    filter: blur(6px) scale(1.03);
    opacity: 0.42;
}

.detail-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.88)),
        linear-gradient(0deg, var(--bg), transparent 56%);
}

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 42px;
    align-items: center;
    padding: 52px 0;
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

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

.detail-info h1 {
    margin: 20px 0 16px;
    color: var(--white);
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.detail-one-line {
    max-width: 760px;
    margin: 0 0 20px;
    color: #cbd5e1;
    font-size: 19px;
    line-height: 1.8;
}

.detail-info .primary-button {
    margin-top: 26px;
}

.detail-content {
    margin-top: -60px;
    position: relative;
    z-index: 3;
}

.player-card {
    overflow: hidden;
    margin-bottom: 24px;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky), var(--orange));
    box-shadow: 0 22px 50px rgba(14, 165, 233, 0.28);
    font-size: 34px;
}

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

.player-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 24px;
}

.player-title-row h2 {
    margin: 0;
    color: var(--white);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.story-card {
    padding: 26px;
}

.story-card h2 {
    margin: 0 0 14px;
    color: var(--white);
}

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

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

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

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.8;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 30px;
    border-top: 1px solid var(--line);
    color: #64748b;
    text-align: center;
}

@media (max-width: 1100px) {
    .hero-shell,
    .split-layout,
    .detail-shell {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .rank-panel {
        position: static;
    }

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

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

    .menu-button {
        display: block;
    }

    .hero-stage {
        min-height: 560px;
    }

    .hero-content {
        padding: 48px 24px;
    }

    .hero-content h1,
    .detail-info h1 {
        font-size: 42px;
    }

    .content-section,
    .page-hero,
    .detail-shell,
    .footer-grid {
        width: min(100% - 24px, 1180px);
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .category-grid,
    .category-list-grid,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-hero {
        padding: 34px 24px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .detail-cover {
        max-width: 270px;
    }

    .detail-content {
        margin-top: -20px;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .featured-grid,
    .compact-grid,
    .category-grid,
    .category-list-grid,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 620px;
    }

    .hero-actions,
    .player-title-row,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .rank-item {
        grid-template-columns: 34px 1fr;
    }

    .rank-item em {
        grid-column: 2;
    }
}
