:root {
    color-scheme: dark;
    --site-bg: #020617;
    --panel-bg: rgba(15, 23, 42, 0.82);
    --panel-border: rgba(148, 163, 184, 0.18);
    --primary: #06b6d4;
    --primary-deep: #0891b2;
    --text-main: #f8fafc;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.16), transparent 38%), var(--site-bg);
    color: var(--text-main);
}

img {
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
    background: linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
}

.site-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #67e8f9, #0891b2 58%, #1e3a8a);
    box-shadow: 0 0 28px rgba(6, 182, 212, 0.45);
    color: #ffffff;
    font-weight: 800;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
}

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

.hero-dot.is-active {
    width: 2rem;
    background: #06b6d4;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(15, 23, 42, 0.95));
    aspect-ratio: 2 / 3;
}

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

.movie-card:hover .poster-frame img {
    transform: scale(1.06);
    filter: saturate(1.15);
}

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.86));
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.25);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.58);
    box-shadow: 0 24px 60px rgba(8, 145, 178, 0.22);
}

.movie-card.compact {
    border-radius: 1rem;
}

.movie-card.horizontal a {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 1rem;
    padding: 0.85rem;
}

.movie-card.horizontal .poster-frame {
    border-radius: 0.9rem;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    background: rgba(6, 182, 212, 0.9);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 0.78rem;
}

.section-panel {
    border: 1px solid var(--panel-border);
    border-radius: 1.75rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.58));
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.25);
}

.category-tile {
    display: block;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.22), rgba(30, 41, 59, 0.82));
    padding: 1.5rem;
    min-height: 10.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.search-input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    color: #ffffff;
    padding: 0.9rem 1.2rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-input:focus {
    border-color: rgba(34, 211, 238, 0.8);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #000000;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.45);
}

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

.player-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    height: 100%;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.78));
    z-index: 3;
}

.player-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.92);
    box-shadow: 0 0 36px rgba(6, 182, 212, 0.46);
    font-size: 2.2rem;
    line-height: 1;
    padding-left: 0.25rem;
}

.player-title {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    font-weight: 700;
}

.breadcrumb a {
    color: #67e8f9;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-list span {
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.22);
    color: #a5f3fc;
    font-size: 0.82rem;
}

[data-filter-card].is-hidden {
    display: none;
}

@media (max-width: 768px) {
    .movie-card.horizontal a {
        grid-template-columns: 6.5rem 1fr;
    }

    .player-icon {
        width: 4rem;
        height: 4rem;
        font-size: 1.8rem;
    }
}
