:root {
    --bg-canvas: #050811;
    --bg-elevated: #0b1120;
    --bg-card: #0f172a;
    --glass-bg: rgba(9, 15, 30, 0.58);
    --glass-floating: rgba(11, 20, 42, 0.84);
    --glass-border: rgba(56, 189, 248, 0.25);
    --blue-primary: #0ea5e9;
    --blue-vivid: #38bdf8;
    --blue-deep: #0284c7;
    --blue-glow: rgba(14, 165, 233, 0.36);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-weight: 500;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.has-bottom-nav {
    padding-bottom: 78px;
}

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

svg.ui-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Custom Cursor (Desktop) */
.cursor-core,
.cursor-halo {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cursor-core {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue-vivid);
    box-shadow: 0 0 12px var(--blue-vivid);
}

.cursor-halo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(56, 189, 248, 0.55);
    background: rgba(14, 165, 233, 0.06);
}

body.is-hovering .cursor-halo {
    width: 48px;
    height: 48px;
    border-color: var(--blue-vivid);
    background: rgba(14, 165, 233, 0.16);
}

body.is-clicking .cursor-halo {
    transform: translate(-50%, -50%) scale(0.82);
    background: rgba(56, 189, 248, 0.28);
}

@media (hover: none), (pointer: coarse) {
    .cursor-core, .cursor-halo { display: none; }
}

.click-ripple {
    position: fixed;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.42);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleOut 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    z-index: 9998;
}

@keyframes rippleOut {
    to {
        transform: translate(-50%, -50%) scale(3.4);
        opacity: 0;
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Android Floating Promo Bar (Above Top Navbar, 1h Cooldown) */
.android-promo-bar {
    position: fixed;
    top: 10px;
    left: 3.5%;
    right: 3.5%;
    z-index: 520;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(11, 20, 42, 0.88));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.38);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 18px rgba(14, 165, 233, 0.2);
}

.android-promo-bar.is-visible {
    display: flex;
}

.android-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
    min-width: 0;
}

.android-promo-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.android-promo-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(5, 8, 17, 0.65);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.android-promo-close:hover {
    color: #fff;
    border-color: var(--blue-vivid);
    background: rgba(14, 165, 233, 0.25);
}

/* Top Glassmorphism Navbar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 12px 3.5%;
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.14);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

body.promo-active .site-header {
    top: 56px;
}

.site-header.is-floating {
    top: 14px;
    left: 3.5%;
    right: 3.5%;
    border-radius: 16px;
    background: var(--glass-floating);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.68), 0 0 22px rgba(14, 165, 233, 0.16);
}

body.promo-active .site-header.is-floating {
    top: 62px;
}

.header-inner {
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #fff;
    flex-shrink: 0;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue-vivid);
    box-shadow: 0 0 14px var(--blue-primary);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
    background: rgba(14, 165, 233, 0.16);
}

.nav-item.active {
    color: var(--blue-vivid);
    box-shadow: inset 0 -2px 0 var(--blue-vivid);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.burger-btn {
    display: none;
}

@media (max-width: 900px) {
    .header-nav {
        display: none;
    }
    .burger-btn {
        display: inline-flex;
    }
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.24);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    border-color: var(--blue-vivid);
    color: var(--blue-vivid);
    background: rgba(14, 165, 233, 0.18);
}

.account-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(2, 132, 199, 0.18));
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
}

/* Shared Glassmorphism Popover / Drawer Animation (Search, Burger Menu, Lainnya) */
.glass-popover {
    position: fixed;
    left: 50%;
    transform: translate(-50%, -12px);
    width: min(620px, 92%);
    z-index: 495;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 14px;
    border-radius: 16px;
    background: var(--glass-floating);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.78), 0 0 24px rgba(14, 165, 233, 0.16);
    transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.22s ease;
}

.glass-popover.top-anchor {
    top: 68px;
}

body.promo-active .glass-popover.top-anchor {
    top: 124px;
}

.site-header.is-floating ~ .glass-popover.top-anchor {
    top: 82px;
}

body.promo-active .site-header.is-floating ~ .glass-popover.top-anchor {
    top: 130px;
}

.glass-popover.bottom-anchor {
    top: auto;
    bottom: 76px;
    transform: translate(-50%, 12px);
}

.glass-popover.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.glass-popover.top-anchor.is-open {
    transform: translate(-50%, 0);
}

.glass-popover.bottom-anchor.is-open {
    transform: translate(-50%, 0);
}

.search-form {
    display: flex;
    gap: 8px;
}

.popover-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 8px;
}

.popover-menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.16);
    font-size: 0.86rem;
    font-weight: 700;
    color: #e2e8f0;
    transition: all 0.2s ease;
}

.popover-menu-link:hover,
.popover-menu-link.active {
    border-color: var(--blue-vivid);
    color: var(--blue-vivid);
    background: rgba(14, 165, 233, 0.16);
}

/* Mobile Bottom Navbar (5 Menus, SVG Icons Only) */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 900px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 10px;
        left: 3.5%;
        right: 3.5%;
        z-index: 500;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        padding: 6px;
        border-radius: 16px;
        background: var(--glass-floating);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        border: 1px solid var(--glass-border);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.72), 0 0 20px rgba(14, 165, 233, 0.14);
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 11px;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--blue-vivid);
    background: rgba(14, 165, 233, 0.15);
}

/* Hero Trailer Stage */
.hero-stage {
    position: relative;
    width: 100%;
    height: 78vh;
    min-height: 450px;
    max-height: 720px;
    overflow: hidden;
    background: #04070f;
}

.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-media video,
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 8, 17, 0.95) 0%, rgba(5, 8, 17, 0.68) 52%, rgba(5, 8, 17, 0.22) 100%),
        linear-gradient(0deg, var(--bg-canvas) 0%, rgba(5, 8, 17, 0.14) 48%, rgba(5, 8, 17, 0.65) 100%);
    z-index: 2;
}

.hero-overlay {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 3.5% 48px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-info {
    max-width: 610px;
}

.hero-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pill-blue {
    background: rgba(14, 165, 233, 0.22);
    border: 1px solid var(--blue-vivid);
    color: var(--blue-vivid);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
}

.pill-dark {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
}

.hero-logo-png {
    max-height: 82px;
    max-width: 310px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.85));
}

.hero-title {
    font-size: clamp(1.85rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 10px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

.hero-synopsis {
    font-size: 0.94rem;
    line-height: 1.56;
    color: #cbd5e1;
    font-weight: 400;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-trailer-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 17px;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.18s ease;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-deep));
    border-color: rgba(56, 189, 248, 0.45);
    color: #fff;
    box-shadow: 0 6px 20px var(--blue-glow);
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-glass {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    border-color: rgba(56, 189, 248, 0.32);
    color: #fff;
}

.btn-glass:hover {
    border-color: var(--blue-vivid);
    background: rgba(14, 165, 233, 0.18);
}

/* Main Content & Horizontal Rows */
.page-wrap {
    max-width: 1480px;
    margin: 0 auto;
    padding: 24px 3.5% 48px;
}

.ad-slot {
    margin: 16px 0;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
}

.row-section {
    margin-bottom: 32px;
}

.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.row-title {
    font-size: 1.18rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.row-title::before {
    content: '';
    width: 4px;
    height: 19px;
    border-radius: 99px;
    background: var(--blue-vivid);
    box-shadow: 0 0 12px var(--blue-primary);
}

.row-scroller-wrap {
    position: relative;
}

.row-scroller-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 10px;
    width: 72px;
    background: linear-gradient(90deg, rgba(5, 8, 17, 0) 0%, rgba(5, 8, 17, 0.94) 100%);
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 5;
}

.row-scroller-wrap.at-end::after {
    opacity: 0;
}

.row-track {
    display: flex;
    flex-direction: row;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.row-track::-webkit-scrollbar {
    display: none;
}

.scroll-arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(11, 20, 42, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--blue-vivid);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 800;
}

.scroll-arrow:hover {
    background: var(--blue-primary);
    color: #fff;
}

.scroll-arrow.prev { left: 8px; }
.scroll-arrow.next { right: 8px; }

.grid-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 16px;
}

@media (max-width: 520px) {
    .grid-catalog {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.movie-card {
    flex: 0 0 172px;
    width: 172px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.grid-catalog .movie-card {
    flex: none;
    width: 100%;
}

@media (max-width: 640px) {
    .row-track .movie-card {
        flex: 0 0 142px;
        width: 142px;
    }
}

.movie-card:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--blue-vivid);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.75), 0 0 18px rgba(14, 165, 233, 0.28);
    z-index: 6;
}

.movie-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.badge-q {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--blue-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 5px;
    z-index: 2;
}

.badge-r {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(5, 8, 17, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--blue-vivid);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 5px;
    z-index: 2;
}

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

.movie-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Watch & Admin */
.watch-main { padding-top: 90px; }
.player-box { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--glass-border); }
.player-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.server-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; padding: 12px 16px; border-radius: 12px; background: var(--glass-floating); border: 1px solid var(--glass-border); }
.srv-btn { padding: 8px 15px; border-radius: 8px; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.14); color: #e2e8f0; font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.srv-btn.active { background: linear-gradient(135deg, var(--blue-primary), var(--blue-deep)); border-color: var(--blue-vivid); color: #fff; }
.detail-card { display: flex; gap: 24px; padding: 22px; border-radius: 14px; background: var(--bg-elevated); border: 1px solid rgba(56,189,248,0.16); flex-wrap: wrap; }
.detail-card img { width: 190px; border-radius: 10px; object-fit: cover; }
.detail-body { flex: 1; min-width: 250px; }
.detail-body h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.detail-meta { color: var(--blue-vivid); font-size: 0.88rem; font-weight: 600; margin-bottom: 12px; }
.detail-body p { color: #cbd5e1; line-height: 1.65; }

.glass-panel { background: var(--glass-floating); backdrop-filter: blur(18px); border: 1px solid var(--glass-border); border-radius: 14px; }
.admin-body { padding-top: 84px; }
.admin-wrap { max-width: 1180px; }
.section-box { padding: 24px; margin-bottom: 22px; }
.section-box h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.form-control { width: 100%; padding: 10px 13px; border-radius: 10px; background: rgba(5,8,17,0.85); border: 1px solid rgba(56,189,248,0.22); color: #fff; font-family: var(--font-sans); outline: none; }
.form-control:focus { border-color: var(--blue-vivid); }
.admin-auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.auth-card { width: 100%; max-width: 390px; padding: 28px; }
.auth-sub { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 18px; }
.alert-error { color: #f87171; font-size: 0.88rem; margin-bottom: 12px; }
.alert-success { padding: 12px 16px; border-radius: 10px; background: rgba(14,165,233,0.16); border: 1px solid var(--blue-vivid); color: var(--blue-vivid); margin-bottom: 18px; font-weight: 600; }
.link-blue { color: var(--blue-vivid); font-weight: 600; }
.link-danger { color: #f87171; font-weight: 600; }
.nav-danger { color: #f87171 !important; }
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.88rem; }

.site-footer {
    border-top: 1px solid rgba(56, 189, 248, 0.12);
    padding: 24px 3.5%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 32px;
}

.site-footer strong { color: var(--blue-vivid); }