:root {
    color-scheme: dark;
    --site-bg: #020617;
    --site-panel: rgba(15, 23, 42, 0.78);
    --site-panel-strong: rgba(15, 23, 42, 0.95);
    --site-border: rgba(148, 163, 184, 0.18);
    --site-text: #f8fafc;
    --site-muted: #94a3b8;
    --site-cyan: #22d3ee;
    --site-blue: #3b82f6;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.13), transparent 28%),
        radial-gradient(circle at 80% 12%, rgba(59, 130, 246, 0.18), transparent 28%),
        linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
    color: var(--site-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-shell {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
}

.site-nav {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.site-logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--site-cyan), var(--site-blue));
    box-shadow: 0 18px 45px rgba(34, 211, 238, 0.22);
    color: #020617;
}

.site-logo-text {
    font-size: clamp(1.15rem, 2.4vw, 1.7rem);
    background: linear-gradient(90deg, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #cbd5e1;
    font-weight: 650;
}

.desktop-links a,
.mobile-panel a {
    transition: color 180ms ease, transform 180ms ease;
}

.desktop-links a:hover,
.mobile-panel a:hover {
    color: var(--site-cyan);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.7);
}

.mobile-panel {
    display: none;
    padding: 0 0 18px;
}

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

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
}

.hero {
    position: relative;
    min-height: 640px;
    display: grid;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms ease, transform 900ms ease;
    transform: scale(1.01);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.42) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.04) 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 420px);
    gap: 48px;
    align-items: center;
    padding: 72px 0 84px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 999px;
    background: rgba(8, 47, 73, 0.38);
    color: #67e8f9;
    padding: 7px 13px;
    font-size: 0.85rem;
    font-weight: 750;
}

.hero-title {
    max-width: 850px;
    margin-top: 22px;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.07em;
}

.hero-desc {
    max-width: 760px;
    margin-top: 24px;
    color: #cbd5e1;
    font-size: clamp(1rem, 1.7vw, 1.24rem);
    line-height: 1.82;
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn-primary {
    color: #020617;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    box-shadow: 0 20px 45px rgba(34, 211, 238, 0.22);
}

.btn-secondary,
.btn-ghost {
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.62);
}

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

.hero-poster-card {
    position: relative;
    align-self: stretch;
    min-height: 460px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

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

.hero-poster-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.96));
}

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

.hero-dot {
    width: 36px;
    height: 5px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.42);
    transition: background 180ms ease, width 180ms ease;
}

.hero-dot.is-active {
    width: 58px;
    background: #22d3ee;
}

.section-block {
    padding: 70px 0;
}

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

.section-title {
    margin-top: 12px;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-desc {
    margin-top: 12px;
    max-width: 760px;
    color: #94a3b8;
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.88));
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.42);
    box-shadow: 0 28px 70px rgba(34, 211, 238, 0.1);
}

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

.poster-link img,
.detail-poster img,
.rank-cover img,
.category-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.75);
    color: #67e8f9;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.movie-card-body {
    padding: 16px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 650;
}

.movie-title {
    margin-top: 8px;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 850;
}

.movie-title a:hover {
    color: #67e8f9;
}

.movie-desc {
    margin-top: 9px;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.tag-chip {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    padding: 4px 9px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.72);
    font-size: 0.74rem;
}

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

.category-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 26px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.38));
    transition: transform 180ms ease, border-color 180ms ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.38);
}

.category-title {
    color: #fff;
    font-size: 1.28rem;
    font-weight: 850;
}

.category-card p,
.category-list a {
    color: #94a3b8;
    line-height: 1.75;
}

.category-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.category-list a:hover {
    color: #67e8f9;
}

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

.filter-input,
.filter-select {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    padding: 0 16px;
    outline: none;
}

.filter-input:focus,
.filter-select:focus {
    border-color: rgba(34, 211, 238, 0.62);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.13);
}

.page-hero {
    padding: 70px 0 38px;
}

.page-hero-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 32px;
    padding: clamp(28px, 5vw, 56px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 47, 73, 0.42));
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
    color: #94a3b8;
    font-size: 0.92rem;
}

.breadcrumbs a:hover {
    color: #67e8f9;
}

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

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.detail-title {
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 4.4rem);
    line-height: 1.02;
    font-weight: 920;
    letter-spacing: -0.06em;
}

.detail-one-line {
    margin-top: 18px;
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.85;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.info-item {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.72);
}

.info-label {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
}

.info-value {
    margin-top: 6px;
    color: #e2e8f0;
    font-weight: 800;
}

.player-section {
    padding: 54px 0 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 30px;
    background: #000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle at 50% 40%, rgba(34, 211, 238, 0.24), rgba(2, 6, 23, 0.82)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.28));
    color: #fff;
    z-index: 2;
    cursor: pointer;
}

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

.player-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 999px;
    padding: 16px 26px;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    color: #020617;
    font-size: 1.08rem;
    font-weight: 900;
    box-shadow: 0 24px 55px rgba(34, 211, 238, 0.28);
}

.content-panel {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    padding: clamp(22px, 4vw, 36px);
    background: rgba(15, 23, 42, 0.72);
}

.content-panel h2 {
    color: #fff;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 850;
}

.content-panel p {
    margin-top: 16px;
    color: #cbd5e1;
    line-height: 1.9;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 74px 96px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.76);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #67e8f9;
    font-size: 1.5rem;
    font-weight: 950;
}

.rank-cover {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    background: rgba(15, 23, 42, 0.85);
}

.rank-title {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 850;
}

.rank-summary {
    margin-top: 6px;
    color: #94a3b8;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding: 34px 0;
    color: #94a3b8;
    background: rgba(2, 6, 23, 0.68);
}

.site-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

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

.footer-links a:hover {
    color: #67e8f9;
}

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

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

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

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

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

    .hero-poster-card {
        min-height: 420px;
    }

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

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

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

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

@media (max-width: 640px) {
    .site-shell {
        width: min(100% - 22px, 1280px);
    }

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

    .hero-content {
        padding-top: 50px;
        gap: 24px;
    }

    .hero-poster-card {
        min-height: 360px;
        border-radius: 24px;
    }

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

    .movie-card-body {
        padding: 13px;
    }

    .detail-poster {
        max-width: 280px;
    }

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

    .rank-item .btn-secondary {
        grid-column: 2 / -1;
        width: fit-content;
    }

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