:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: #1e293b;
    --panel-strong: #334155;
    --line: rgba(148, 163, 184, 0.2);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #cbd5e1;
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
    --danger: #f43f5e;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.55);
    --radius: 22px;
    font-family: Inter, 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;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.84);
    backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.15);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.35);
}

.brand-text {
    font-size: 1.22rem;
    background: linear-gradient(90deg, #7dd3fc, #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    position: relative;
    font-size: 0.95rem;
    color: var(--muted-2);
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.72);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 999px;
}

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

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--muted-2);
    background: rgba(30, 41, 59, 0.72);
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #020617;
}

.hero-track,
.hero-slide,
.hero-slide img,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

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

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.56), transparent),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.42) 48%, rgba(2, 6, 23, 0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    min-height: 70vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 120px 0 88px;
}

.hero-kicker,
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 820px;
    margin: 0 0 20px;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 26px;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted-2);
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    color: var(--muted-2);
}

.hero-meta span,
.detail-meta span {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
}

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

.primary-btn,
.ghost-btn,
.text-link,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    min-height: 48px;
    padding: 0 24px;
    color: #ffffff;
    background: var(--accent-strong);
    box-shadow: 0 16px 38px rgba(14, 165, 233, 0.34);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(14, 165, 233, 0.46);
}

.ghost-btn {
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.28);
    background: rgba(15, 23, 42, 0.62);
}

.hero-dots {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2));
    bottom: 34px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #64748b;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 38px;
    background: var(--accent);
}

.page-section,
.band-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.band-section {
    width: 100%;
    padding-left: max(16px, calc((100vw - 1280px) / 2));
    padding-right: max(16px, calc((100vw - 1280px) / 2));
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.72));
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
}

.section-link,
.text-link {
    color: var(--accent);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.72);
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.26);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: var(--shadow);
}

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

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

.movie-card:hover .poster-link img,
.category-tile:hover img,
.overview-card:hover img,
.side-card:hover img,
.rank-item:hover img {
    transform: scale(1.08);
}

.poster-shade,
.tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 55%);
    opacity: 0.82;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.86);
    box-shadow: 0 18px 50px rgba(14, 165, 233, 0.4);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.year-badge,
.rank-badge,
.tile-count {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #e0f2fe;
    background: rgba(2, 6, 23, 0.68);
    backdrop-filter: blur(10px);
}

.rank-badge {
    left: auto;
    right: 12px;
    color: #ffffff;
    background: rgba(244, 63, 94, 0.85);
}

.card-body {
    padding: 16px;
}

.movie-card.compact .card-body {
    padding: 12px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.25;
}

.movie-card.compact .card-body h3 {
    font-size: 0.96rem;
}

.card-body h3 a:hover {
    color: var(--accent);
}

.card-meta,
.card-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.card-meta {
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    display: -webkit-box;
    min-height: 2.75em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #bae6fd;
    font-size: 0.78rem;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.18);
}

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

.category-tile {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

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

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 22px;
    right: 22px;
    z-index: 2;
}

.category-tile strong {
    bottom: 78px;
    font-size: 1.55rem;
}

.category-tile em {
    bottom: 28px;
    color: var(--muted-2);
    font-style: normal;
    line-height: 1.45;
}

.tile-count {
    right: 16px;
    left: auto;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 34px;
}

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

.rank-item,
.side-card {
    display: grid;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.7);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item {
    grid-template-columns: 52px 64px minmax(0, 1fr);
    padding: 10px 14px;
}

.side-card {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 10px;
}

.rank-item:hover,
.side-card:hover {
    transform: translateX(4px);
    border-color: rgba(56, 189, 248, 0.42);
}

.rank-number {
    font-weight: 900;
    color: var(--accent);
}

.rank-item img,
.side-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rank-item strong,
.side-card strong,
.rank-item em,
.side-card em {
    display: block;
}

.rank-item em,
.side-card em {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.86rem;
    font-style: normal;
}

.sub-hero {
    position: relative;
    overflow: hidden;
    padding: 110px max(16px, calc((100vw - 1280px) / 2)) 60px;
    background:
        radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.16), transparent 34rem),
        linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.82));
}

.sub-hero.compact-hero {
    padding-top: 84px;
}

.sub-hero h1 {
    max-width: 900px;
    margin: 0 0 16px;
    font-size: clamp(2.1rem, 4vw, 4.2rem);
    letter-spacing: -0.05em;
}

.sub-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--muted-2);
    font-size: 1.08rem;
}

.overview-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.72);
    box-shadow: 0 14px 48px rgba(2, 6, 23, 0.2);
}

.overview-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

.overview-cover span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.66);
}

.overview-card > div {
    padding: 20px;
}

.overview-card h2 {
    margin: 0 0 10px;
}

.overview-card p {
    color: var(--muted);
}

.filter-panel {
    margin-bottom: 30px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.22);
}

.search-box {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted-2);
    font-weight: 700;
}

.search-box input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    outline: none;
    background: rgba(2, 6, 23, 0.55);
}

.search-box input:focus {
    border-color: rgba(56, 189, 248, 0.72);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.chip {
    min-height: 38px;
    padding: 0 14px;
    color: var(--muted-2);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.7);
}

.chip.active,
.chip:hover {
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(14, 165, 233, 0.22);
}

.result-count {
    margin: 0;
    color: var(--muted);
}

.result-count span {
    color: var(--accent);
    font-weight: 900;
}

[hidden] {
    display: none !important;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

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

.detail-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) saturate(1.1);
    transform: scale(1.04);
}

.detail-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.88)),
        linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.24));
}

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 110px 0 58px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
}

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

.detail-info h1 {
    max-width: 900px;
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 880px;
    color: var(--muted-2);
    font-size: 1.12rem;
}

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

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

.content-card {
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius);
    padding: 26px;
    background: rgba(30, 41, 59, 0.72);
    box-shadow: 0 16px 52px rgba(2, 6, 23, 0.2);
}

.content-card h2 {
    margin: 0 0 18px;
    font-size: 1.45rem;
}

.content-card p {
    margin: 0;
    color: var(--muted-2);
    line-height: 1.9;
}

.player-card {
    grid-column: 1 / -1;
}

.video-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #000000;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.big-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.18));
}

.big-play span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent-strong);
    box-shadow: 0 22px 60px rgba(14, 165, 233, 0.42);
}

.big-play strong {
    font-size: 1.05rem;
}

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

.player-message {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted-2);
    font-size: 0.88rem;
    background: rgba(2, 6, 23, 0.66);
}

.info-panel {
    grid-column: 2;
    grid-row: 2 / span 2;
    position: sticky;
    top: 96px;
}

.info-panel dl {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px 16px;
    margin: 0;
}

.info-panel dt {
    color: var(--muted);
}

.info-panel dd {
    margin: 0;
    color: var(--text);
}

.info-panel a {
    color: var(--accent);
}

.site-footer {
    margin-top: 60px;
    padding: 54px max(16px, calc((100vw - 1280px) / 2)) 30px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.94);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 32px;
}

.site-footer p,
.site-footer a {
    color: var(--muted);
}

.site-footer a {
    display: block;
    margin: 8px 0;
}

.site-footer a:hover {
    color: var(--accent);
}

.site-footer h3 {
    margin: 0 0 12px;
}

.copyright {
    margin: 32px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 0.9rem;
}

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

    .two-column-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .info-panel {
        position: static;
        grid-column: auto;
        grid-row: auto;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero-content {
        padding-top: 100px;
        padding-bottom: 78px;
    }

    .hero-dots {
        left: 16px;
        right: auto;
    }

    .section-heading {
        display: block;
    }

    .section-link {
        margin-top: 12px;
    }

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

    .detail-shell {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 18px;
        align-items: center;
    }

    .detail-hero {
        min-height: 500px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .nav-shell,
    .page-section,
    .hero-content,
    .detail-shell {
        width: min(100% - 24px, 1280px);
    }

    .page-section,
    .band-section {
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .movie-grid,
    .mini-grid,
    .all-grid,
    .category-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        width: 170px;
    }

    .hero-actions,
    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

    .rank-item {
        grid-template-columns: 42px 58px minmax(0, 1fr);
    }
}
