:root {
    --bg-base: #060b14;
    --bg-surface: #0b1322;
    --bg-card: #0e182b;
    --glass-bg: rgba(11, 20, 38, 0.72);
    --glass-bg-strong: rgba(8, 15, 30, 0.9);
    --glass-border: rgba(96, 165, 250, 0.18);
    --glass-border-hover: rgba(96, 165, 250, 0.42);
    --blue-primary: #2563eb;
    --blue-vivid: #60a5fa;
    --blue-deep: #1d4ed8;
    --blue-glow: rgba(37, 99, 235, 0.35);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    --shadow-glass: 0 12px 36px rgba(2, 6, 18, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg-base);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.16), transparent 42%),
        radial-gradient(circle at 85% 20%, rgba(29, 78, 216, 0.12), transparent 45%),
        var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.55;
}

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

button,
input,
select,
textarea {
    font-family: inherit;
}

/* Install Web App Promo Bar */
.android-promo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 42px 0 14px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.95));
    border-bottom: 1px solid rgba(96, 165, 250, 0.28);
    backdrop-filter: blur(14px);
    font-size: 0.82rem;
    font-weight: 600;
}

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

.android-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #dbeafe;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: transparent;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.android-promo-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    display: grid;
    place-items: center;
    cursor: pointer;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    padding: 16px 24px;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: top 260ms var(--ease-spring), padding 260ms var(--ease-spring), background 260ms var(--ease-spring), border-color 260ms var(--ease-spring), box-shadow 260ms var(--ease-spring);
}

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

.site-header.is-floating {
    top: 14px;
    padding: 0 20px;
}

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

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    height: 62px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: var(--radius-pill);
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    transition: all 280ms var(--ease-spring);
}

.site-header.is-floating .header-inner {
    height: 58px;
    padding: 0 22px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
}

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

.brand-logo-svg {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.45);
}

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

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

.nav-item {
    position: relative;
    padding: 7px 13px;
    border-radius: var(--radius-pill);
    font-size: 0.86rem;
    font-weight: 600;
    color: #cbd5e1;
    background: transparent;
    border: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
    background: rgba(37, 99, 235, 0.22);
}

.nav-item.active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue-vivid);
}

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

.icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 200ms var(--ease-spring), border-color 200ms ease, background 200ms ease;
}

.icon-btn:hover {
    transform: translateY(-1px);
    border-color: var(--blue-vivid);
    background: rgba(37, 99, 235, 0.22);
    color: #fff;
}

.notif-bell-alert {
    border-color: rgba(239, 68, 68, 0.75);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.65);
}

.notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--blue-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.8);
}

.notif-badge-alert {
    background: var(--danger);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.9);
}

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

.burger-btn {
    display: none;
}

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

/* Request Film Floating Button */
.request-float-btn {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(29, 78, 216, 0.92));
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(29, 78, 216, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
    cursor: pointer;
    transition: transform 220ms var(--ease-spring), box-shadow 220ms ease;
}

.request-float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.6);
}

body.has-bottom-nav .request-float-btn {
    bottom: 84px;
}

/* Glass Popover & Modal */
.glass-popover {
    position: fixed;
    z-index: 1150;
    width: min(370px, calc(100vw - 28px));
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(22px) saturate(160%);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 200ms var(--ease-spring), transform 220ms var(--ease-spring);
}

.glass-popover.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.glass-popover.top-anchor {
    top: 84px;
    right: 24px;
}

.glass-popover.bottom-anchor {
    bottom: 78px;
    right: 14px;
}

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

.live-search-results {
    margin-top: 10px;
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.live-search-item:hover {
    border-color: var(--blue-vivid);
    background: rgba(37, 99, 235, 0.22);
}

.live-search-item img {
    width: 38px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.notif-scroll-list {
    max-height: 210px;
    overflow-y: auto;
    padding-right: 4px;
}

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

.popover-menu-link {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.14);
    font-size: 0.84rem;
    font-weight: 600;
    color: #e2e8f0;
}

.popover-menu-link:hover,
.popover-menu-link.active {
    border-color: var(--blue-vivid);
    background: rgba(37, 99, 235, 0.22);
    color: #fff;
}

.glass-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 6, 16, 0.72);
    backdrop-filter: blur(10px);
}

.glass-modal-backdrop.is-open {
    display: flex;
}

.glass-modal-card {
    width: min(450px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
}

.auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.auth-tab-btn {
    flex: 1;
    padding: 7px 10px;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-tab-btn.active {
    background: var(--blue-primary);
    color: #fff;
}

.collapsible-panel {
    overflow: hidden;
    transition: max-height 260ms var(--ease-spring), opacity 220ms ease;
}

/* Password Eye & OTP Status */
.email-otp-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pass-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pass-input-wrap .form-control {
    padding-right: 40px;
}

.pass-eye-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #93c5fd;
    font-size: 0.9rem;
    cursor: pointer;
}

.otp-row-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.otp-status-ok {
    border-color: #22c55e !important;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.55) !important;
}

.otp-status-err {
    border-color: #ef4444 !important;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.6) !important;
}

.otp-check-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #4ade80;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.65);
    flex-shrink: 0;
}

.btn-logout-red {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.65);
    color: #fca5a5;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
}

.btn-logout-red:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
}

/* Hero Stage */
.hero-stage {
    position: relative;
    width: 100%;
    height: min(76vh, 640px);
    min-height: 440px;
    overflow: hidden;
    background: #050911;
    touch-action: pan-y;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img,
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.72) contrast(1.06);
    transition: transform 8s ease;
}

.hero-media img.is-zooming {
    transform: scale(1.07);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 11, 20, 0.92) 0%, rgba(6, 11, 20, 0.56) 48%, rgba(6, 11, 20, 0.22) 100%),
        linear-gradient(180deg, rgba(6, 11, 20, 0.45) 0%, transparent 28%, rgba(6, 11, 20, 0.96) 100%);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px 44px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

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

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

.pill-blue {
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    background: rgba(37, 99, 235, 0.28);
    border: 1px solid rgba(96, 165, 250, 0.5);
    color: #bfdbfe;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.pill-dark {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
    font-size: 0.76rem;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.hero-logo-png {
    max-height: 84px;
    max-width: 340px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.65));
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 200ms var(--ease-spring), background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.btn:disabled {
    opacity: 0.45;
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-deep));
    color: #fff;
    box-shadow: 0 8px 22px var(--blue-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.52);
}

.btn-glass {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.28);
    color: #f1f5f9;
    backdrop-filter: blur(12px);
}

.btn-glass:hover {
    border-color: var(--blue-vivid);
    background: rgba(37, 99, 235, 0.2);
}

.trailer-dots {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(8, 15, 30, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.trailer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(148, 163, 184, 0.45);
    cursor: pointer;
    transition: width 220ms var(--ease-spring), background 220ms ease;
}

.trailer-dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: var(--blue-vivid);
}

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

/* Main Catalog Rows */
.page-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 26px 24px 64px;
}

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

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

.row-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #f8fafc;
}

/* Shadow gelap di sisi kanan list film sebagai tanda masih bisa di-swipe */
.row-scroller-wrap {
    position: relative;
}

.row-scroller-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 64px;
    background: linear-gradient(90deg, rgba(6, 11, 20, 0), rgba(6, 11, 20, 0.9));
    pointer-events: none;
    z-index: 4;
    transition: opacity 220ms ease;
}

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

.row-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2px 2px 8px;
}

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

.row-track .movie-card {
    flex: 0 0 150px;
}

@media (min-width: 768px) {
    .row-track .movie-card {
        flex: 0 0 172px;
    }
}

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

.movie-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.14);
    transition: transform 240ms var(--ease-spring), border-color 220ms ease, box-shadow 240ms ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 14px 28px rgba(2, 6, 18, 0.75), 0 0 0 1px rgba(96, 165, 250, 0.25);
}

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

.badge-q {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 2;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.88);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
}

.badge-r {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(6, 11, 20, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #93c5fd;
    font-size: 0.66rem;
    font-weight: 700;
}

/* Info judul, tahun, genre di dalam layer bawah cover dengan shadow jelas */
.movie-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 24px 9px 9px;
    background: linear-gradient(180deg, rgba(4, 8, 16, 0) 0%, rgba(4, 8, 16, 0.86) 45%, rgba(4, 8, 16, 0.97) 100%);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.movie-card-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card-sub {
    font-size: 0.68rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms var(--ease-spring), transform 520ms var(--ease-spring);
}

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

/* Ads & Footer */
.ad-slot {
    margin: 20px 0;
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(11, 20, 38, 0.65);
    border: 1px dashed rgba(96, 165, 250, 0.28);
    text-align: center;
}

.site-footer {
    margin-top: 44px;
    padding: 26px 24px 92px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.84rem;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        height: 60px;
        z-index: 1150;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: center;
        border-radius: var(--radius-pill);
        background: var(--glass-bg-strong);
        border: 1px solid var(--glass-border);
        box-shadow: var(--shadow-glass);
        backdrop-filter: blur(20px) saturate(160%);
    }
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 0.68rem;
        font-weight: 700;
        color: #94a3b8;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    .bottom-nav-item.active,
    .bottom-nav-item:hover {
        color: var(--blue-vivid);
    }
}

/* Watch Page */
.watch-main {
    padding-top: 104px;
}

.player-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
}

.player-box iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.server-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 16px 0 22px;
}

.srv-btn {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.75);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.srv-btn.active {
    background: var(--blue-primary);
    border-color: var(--blue-vivid);
    color: #fff;
}

.detail-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
}

.detail-poster {
    width: 190px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.detail-body {
    flex: 1;
    min-width: 0;
}

.detail-body h1 {
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.detail-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(96, 165, 250, 0.24);
    width: fit-content;
}

.detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #dbeafe;
}

.detail-meta-sep {
    color: rgba(148, 163, 184, 0.45);
    font-weight: 700;
}

.detail-synopsis {
    font-size: 0.9rem;
    color: #e2e8f0;
}

.emoji-rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.emoji-btn {
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.75);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.emoji-btn.active {
    border-color: var(--blue-vivid);
    background: rgba(37, 99, 235, 0.32);
    color: #fff;
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.5);
}

@media (max-width: 720px) {
    .detail-card {
        gap: 12px;
        padding: 14px;
    }
    .detail-poster {
        width: 108px;
    }
    .detail-body h1 {
        font-size: 1.05rem;
    }
    .detail-meta-bar {
        border-radius: var(--radius-sm);
        padding: 6px 9px;
        gap: 5px;
    }
    .detail-meta-item {
        font-size: 0.7rem;
    }
    .detail-synopsis {
        font-size: 0.8rem;
        line-height: 1.45;
    }
    .emoji-btn {
        padding: 5px 9px;
        font-size: 0.74rem;
    }
}

/* Admin Drawer & Forms */
.admin-body {
    padding-top: 96px;
}

.admin-auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.admin-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1250;
    background: rgba(2, 6, 16, 0.65);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
}

.admin-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.admin-slide-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(310px, 84vw);
    z-index: 1260;
    padding: 20px 16px;
    background: var(--glass-bg-strong);
    border-right: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(22px) saturate(160%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateX(-100%);
    transition: transform 280ms var(--ease-spring);
}

.admin-slide-drawer.is-open {
    transform: translateX(0);
}

.admin-drawer-nav-btn {
    width: 100%;
    text-align: left;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.65);
    color: #e2e8f0;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease;
}

.admin-drawer-nav-btn:hover,
.admin-drawer-nav-btn.is-active {
    background: rgba(37, 99, 235, 0.25);
    border-color: var(--blue-vivid);
    color: #fff;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(18px);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 28px;
}

.auth-card h2 {
    margin-bottom: 6px;
    font-size: 1.35rem;
}

.auth-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.admin-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 64px;
}

.section-box {
    padding: 22px;
    margin-bottom: 24px;
}

.section-box h2 {
    font-size: 1.12rem;
    margin-bottom: 16px;
    color: #fff;
}

.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.8rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(8, 15, 30, 0.82);
    color: #f8fafc;
    font-size: 0.88rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-vivid);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.alert-error {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fecaca;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 0.84rem;
}

.alert-success {
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.5);
    color: #dbeafe;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.84rem;
}

.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-box {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(8, 15, 30, 0.76);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.stat-box-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 700;
}

.stat-box-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-top: 4px;
}

.stats-lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.stat-scroll-5 {
    max-height: 235px;
    overflow-y: auto;
    padding-right: 4px;
}

.sort-toggle-btn {
    background: transparent;
    border: none;
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

th,
td {
    padding: 11px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

th {
    color: #93c5fd;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.link-blue {
    color: var(--blue-vivid);
    font-weight: 600;
}

.link-danger {
    color: #f87171;
    font-weight: 600;
}

.notif-item {
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.14);
    margin-bottom: 8px;
    font-size: 0.8rem;
}