    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: 'Inter', sans-serif; background: #0F0F0F; display: flex; justify-content: center; }

    :root {
      --bg: #F5F5F5; --card: #FFFFFF; --surface: #EEEEEE; --border: #DDDDDD;
      --text-primary: #111827; --text-secondary: #6B7280; --text-muted: #9CA3AF;
      --overlay-search: rgba(255,255,255,0.9); --nav-bg: rgba(255,255,255,0.95);
      --accent: #E50914; --accent-light: #FF4D58; --accent-dark: #B20710;
      --section-pad: 16px;
    }
    body.dark {
      --bg: #0F0F0F; --card: #1A1A1A; --surface: #252525; --border: #333333;
      --text-primary: #FFFFFF; --text-secondary: #9CA3AF; --text-muted: #6B7280;
      --overlay-search: rgba(0,0,0,0.8); --nav-bg: rgba(26,26,26,0.95);
    }

    .no-scrollbar::-webkit-scrollbar { display: none; }
    .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

    .app-shell {
      width: 450px;
      min-height: 100vh; min-height: 100dvh;
      position: relative; background: var(--bg);
      transition: background-color 0.3s, color 0.3s, border-color 0.3s;
      overflow: hidden;
    }

    .hero-backdrop {
      position: relative; width: 100%; height: 280px; overflow: hidden;
    }
    .hero-backdrop img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .hero-gradient {
      position: absolute; inset: 0;
      background: linear-gradient(to top, var(--bg) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.6) 100%);
    }
    .hero-play-overlay {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
      z-index: 10;
      background: rgba(0,0,0,0.3);
    }
    .hero-play-circle {
      width: 56px; height: 56px;
      background: rgba(229,9,20,0.9); border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; transition: transform 0.2s, background-color 0.2s;
      box-shadow: 0 4px 20px rgba(229,9,20,0.4);
    }
    .hero-play-circle:hover { transform: scale(1.1); background: var(--accent-dark); }
    .hero-play-circle i { color: white; font-size: 28px; }

    .video-loader {
      position: absolute; inset: 0;
      z-index: 12;
      display: none;
      align-items: center; justify-content: center;
      background: rgba(0,0,0,0.8);
    }
    .video-loader.active { display: flex; }
    .spinner {
      width: 48px; height: 48px;
      border: 5px solid rgba(255, 255, 255, 0.3);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    .yt-frame {
      position: absolute; inset: 0;
      z-index: 15;
      display: none;
    }
    .yt-frame.active { display: block; }
    .yt-frame iframe {
      width: 100%; height: 100%;
      border: none; border-radius: 0;
    }
    .yt-close {
      position: absolute; top: 12px; right: 12px; z-index: 20;
      width: 26px; height: 26px; border-radius: 50%;
      background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      display: flex; align-items: center; justify-content: center;
      border: none; cursor: pointer; transition: background-color 0.2s, transform 0.2s;
    }
    .yt-close:hover { background: var(--accent); transform: scale(1.05); }
    .yt-close i { font-size: 15px; color: white; }

    .detail-content {
      padding: 0 var(--section-pad) 24px;
      margin-top: -40px; position: relative; z-index: 10;
    }

    .action-row {
      display: flex; gap: 8px;
      margin-bottom: 16px;
      flex-wrap: wrap;
      align-items: center;
    }

    .btn-icon {
      width: 40px; height: 40px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      background: var(--surface); border: none; cursor: pointer;
      border-radius: 10px; transition: background-color 0.2s, transform 0.1s;
      text-decoration: none;
    }
    .btn-icon:hover { background: var(--border); }
    .btn-icon:active { transform: scale(0.95); }
    .btn-icon i { font-size: 16px; color: var(--text-primary); transition: color 0.3s; }

    .btn-icon.liked { background: var(--accent); }
    .btn-icon.liked i { color: white; }

    .btn-server-num {
      font-family: inherit; font-size: 13px; font-weight: 700;
      color: var(--text-primary);
      position: relative;
    }
    .btn-server-num.active-server {
      background: var(--accent);
      color: white;
    }
    .btn-server-num:disabled {
      background: var(--surface); cursor: not-allowed; opacity: 0.5;
    }

    .share-tray {
      display: flex;
      gap: 8px;
      max-width: 0;
      opacity: 0;
      transform: translateX(-20px);
      transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      overflow: hidden;
      pointer-events: none;
    }
    .share-tray.active {
      max-width: 200px;
      opacity: 1;
      transform: translateX(0);
      pointer-events: auto;
    }
    .share-icon i { transition: color 0.2s; }
    .share-icon.wa:hover { background: #25D366; border-color: #25D366; }
    .share-icon.wa:hover i { color: white; }
    .share-icon.fb:hover { background: #1877F2; border-color: #1877F2; }
    .share-icon.fb:hover i { color: white; }
    .share-icon.tg:hover { background: #0088cc; border-color: #0088cc; }
    .share-icon.tg:hover i { color: white; }
    .share-icon.tw:hover { background: #1DA1F2; border-color: #1DA1F2; }
    .share-icon.tw:hover i { color: white; }

    .synopsis-title-row {
      display: flex; align-items: center; gap: 10px;
      margin-bottom: 20px;
    }
    .synopsis-movie-title {
      font-size: 15px; font-weight: 800;
      color: var(--text-primary); transition: color 0.3s;
      line-height: 1.2;
    }

    .section-header {
      display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
    }
    .section-title {
      font-size: 15px; font-weight: 700;
      color: var(--text-primary); transition: color 0.3s;
      white-space: nowrap; flex-shrink: 0;
    }
    .section-line { flex: 1; height: 2px; background: linear-gradient(to right, #E70813, #F29C0B); transition: background-color 0.3s; }
    }
    .see-all-btn {
      flex-shrink: 0; background: none; border: none; cursor: pointer;
      color: var(--accent); font-size: 11px; font-weight: 600;
      font-family: inherit; display: flex; align-items: center; gap: 2px;
      white-space: nowrap;
    }
    .see-all-btn:hover { text-decoration: underline; }
    .see-all-btn i { font-size: 14px; }

    .synopsis-section { margin-bottom: 28px; }
    .synopsis-subheading {
      font-size: 12px; font-weight: 400;
      color: var(--text-muted); transition: color 0.3s;
      margin-bottom: 14px;
      display: flex; align-items: center; gap: 6px;
    }
    .synopsis-subheading i { font-size: 14px; color: var(--accent); }
    .synopsis-text {
      font-size: 11px; line-height: 1.7;
      color: var(--text-secondary); transition: color 0.3s;
    }
    .synopsis-text.collapsed {
      display: -webkit-box; -webkit-line-clamp: 3;
      -webkit-box-orient: vertical; overflow: hidden;
    }
    .read-more-btn {
      background: none; border: none; cursor: pointer;
      color: var(--accent); font-size: 11px; font-weight: 600;
      font-family: inherit; margin-top: 6px;
      display: flex; align-items: center; gap: 2px;
    }
    .read-more-btn:hover { text-decoration: underline; }
    .read-more-btn i { font-size: 14px; }

    .stats-row {
      display: flex; gap: 0; margin-bottom: 24px;
      background: var(--card); border-radius: 16px;
      overflow: hidden; transition: background-color 0.3s;
    }
    .stat-item {
      flex: 1; display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      padding: 10px 5px; gap: 2px;
      border-right: 1px solid var(--border);
    }
    .stat-item:last-child { border-right: none; }
    .stat-value {
      font-size: 13px; font-weight: 700;
      color: var(--text-primary); transition: color 0.3s;
    }
    .stat-value.accent { color: #FACC15; }
    .stat-label {
      font-size: 10px; font-weight: 500;
      color: var(--text-muted); transition: color 0.3s;
      text-transform: uppercase; letter-spacing: 0.05em;
    }

    .cast-section { margin-bottom: 28px; }
    .cast-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
    .cast-card {
      flex-shrink: 0; display: flex; flex-direction: column;
      align-items: center; gap: 6px; width: 56px;
    }
    .cast-avatar {
      width: 30px; height: 30px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 12px; font-weight: 700; color: #FFFFFF;
      background: #0F0F0F;
      border: 1px solid #FFFFFF;
      flex-shrink: 0;
    }
    .cast-name {
      font-size: 9px; font-weight: 500; text-align: center;
      color: var(--text-primary); transition: color 0.3s;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56px;
    }
    .cast-role { font-size: 8px; text-align: center; color: var(--text-muted); transition: color 0.3s; }

    .episodes-section { margin-bottom: 28px; }
    .episode-list { display: flex; flex-direction: column; gap: 10px; }
    .episode-item {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 12px; border-radius: 14px;
      background: var(--card); cursor: pointer;
      transition: background-color 0.2s; border: 1px solid transparent;
    }
    .episode-item:hover { background: var(--surface); }
    .episode-item.active-ep { background: var(--surface); border-color: var(--text-primary); }
    .ep-number {
      flex-shrink: 0; width: 28px; height: 28px;
      display: flex; align-items: center; justify-content: center;
      background: var(--surface); border-radius: 8px;
      font-size: 11px; font-weight: 700;
      color: var(--text-primary); transition: background-color 0.3s, color 0.3s;
    }
    .episode-item.active-ep .ep-number { background: var(--accent); color: white; }
    .ep-info { flex: 1; min-width: 0; }
    .ep-title {
      font-size: 13px; font-weight: 600;
      color: var(--text-primary); transition: color 0.3s;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .ep-meta {
      font-size: 11px; color: var(--text-muted); transition: color 0.3s;
      display: flex; align-items: center; gap: 6px; margin-top: 2px;
    }
    .ep-meta i { font-size: 12px; }
    .ep-play-btn {
      flex-shrink: 0; width: 28px; height: 28px;
      display: flex; align-items: center; justify-content: center;
      background: var(--accent); border-radius: 50%;
      border: none; cursor: pointer; transition: transform 0.2s, background-color 0.2s;
    }
    .ep-play-btn:hover { transform: scale(1.1); background: var(--accent-dark); }
    .ep-play-btn i { color: white; font-size: 13px; }
    .ep-progress-mini {
      width: 28px; height: 3px; border-radius: 2px;
      background: rgba(255,255,255,0.2); overflow: hidden; flex-shrink: 0;
    }
    .ep-progress-mini-fill { height: 100%; background: var(--accent); border-radius: 2px; }

    .related-section { margin-bottom: 0; }
    .related-row { display: flex; gap: 12px; overflow-x: auto; }
    .related-card { flex-shrink: 0; width: 120px; cursor: pointer; position: relative; }
    .related-card-img {
      position: relative; border-radius: 12px; overflow: hidden;
      aspect-ratio: 2/3; margin-bottom: 8px;
    }
    .related-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
    .related-card:hover .related-card-img img { transform: scale(1.05); }
    .related-card-img .gradient-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.7), transparent, transparent);
    }

    .related-play-overlay {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
      z-index: 5; opacity: 0;
      transition: opacity 0.3s ease;
    }
    .related-card:hover .related-play-overlay { opacity: 1; }
    .related-play-circle {
      width: 36px; height: 36px;
      background: rgba(229,9,20,0.9); border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 15px rgba(229,9,20,0.4);
      transition: transform 0.2s;
      text-decoration: none;
      border: none; cursor: pointer;
    }
    .related-card:hover .related-play-circle { transform: scale(1.1); }
    .related-play-circle i { color: white; font-size: 18px; }

    .card-title {
      font-size: 12px; font-weight: 600;
      color: var(--text-primary); transition: color 0.3s;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .card-genre { font-size: 10px; color: var(--text-secondary); transition: color 0.3s; }
    .movie-info-overlay {
      position: absolute; bottom: 0; left: 0; right: 0;
      padding: 6px 8px;
      background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
      display: flex; align-items: flex-end; justify-content: space-between;
    }
    .movie-info-overlay .rating {
      color: #FACC15; font-size: 10px; font-weight: 700;
      display: flex; align-items: center; gap: 2px;
    }
    .movie-info-overlay .rating i { font-size: 12px; }
    .movie-info-overlay .year { color: rgba(255,255,255,0.8); font-size: 10px; font-weight: 600; }
    .badge-quality-sm {
      position: absolute; top: 6px; right: 6px; z-index: 10;
      font-size: 8px; font-weight: 700;
      padding: 2px 5px; border-radius: 5px; text-transform: uppercase; letter-spacing: 0.05em;
    }
    .badge-quality-sm.hd { background: linear-gradient(135deg, #22C55E, #16A34A); color: white; }
    .badge-quality-sm.sd { background: linear-gradient(135deg, #3B82F6, #2563EB); color: white; }
    .badge-quality-sm.cam { background: linear-gradient(135deg, #EF4444, #DC2626); color: white; }
    .badge-quality-sm.ep { background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: white; }

    /* ===== NAVBAR ===== */
    .nav-bar {
      width: 100%; max-width: 450px;
      position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
      z-index: 40; padding: 0 16px 12px; display: flex; justify-content: center;
    }
    .nav-pill {
      display: flex; align-items: center; justify-content: center; gap: 2px;
      padding: 5px 6px; border-radius: 80px; background: var(--nav-bg);
      backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
      box-shadow: 0 4px 20px rgba(0,0,0,0.2); border: 1px solid var(--border);
      transition: background-color 0.3s, border-color 0.3s;
      width: 100%; max-width: fit-content;
    }
    .nav-item {
      border-radius: 12px; transition: all 0.25s ease; padding: 6px 10px;
      background: none; border: none; cursor: pointer;
      display: flex; flex-direction: column; align-items: center;
      justify-content: center; gap: 0; position: relative; flex: 1; min-width: 52px; text-decoration: none;
    }
    .nav-item .nav-icon { font-size: 18px; color: var(--text-muted); transition: color 0.25s; }
    .nav-item .nav-label { font-size: 8px; color: var(--text-muted); margin-top: 2px; transition: color 0.25s; }
    .nav-item.active { background: rgba(229, 9, 20, 0.1); }
    .nav-item.active .nav-icon { color: var(--accent); }
    .nav-item.active .nav-label { color: var(--accent); font-weight: 600; }

    .scroll-content { height: 100dvh; overflow-y: auto; padding-bottom: 80px; }

    @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    @keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

    @supports (padding-bottom: env(safe-area-inset-bottom)) {
      .nav-bar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
    }
    
    /* ============================================================
   LOADING STANDAR (SEPERTI BIASA)
   ============================================================ */

/* --- Loading Overlay --- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- Container --- */
.loader-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Spinner Standar --- */
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #e50914;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* --- Loading Text --- */
.loader-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-top: 20px;
}

/* --- Animasi Spin --- */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ============================================================
   VARIANT DENGAN UKURAN BERBEDA
   ============================================================ */

/* Spinner Kecil */
.loader-spinner.small {
    width: 35px;
    height: 35px;
    border-width: 3px;
}

/* Spinner Sedang (Default) */
.loader-spinner.medium {
    width: 50px;
    height: 50px;
    border-width: 4px;
}

/* Spinner Besar */
.loader-spinner.large {
    width: 65px;
    height: 65px;
    border-width: 5px;
}

/* ============================================================
   VARIANT DENGAN WARNA BERBEDA
   ============================================================ */

/* Warna Merah (Default) */
.loader-spinner.red {
    border-top-color: #e50914;
}

/* Warna Putih */
.loader-spinner.white {
    border-top-color: #ffffff;
}

/* Warna Biru */
.loader-spinner.blue {
    border-top-color: #3b82f6;
}

/* Warna Hijau */
.loader-spinner.green {
    border-top-color: #22c55e;
}

/* Warna Kuning */
.loader-spinner.yellow {
    border-top-color: #f59e0b;
}

/* Warna Ungu */
.loader-spinner.purple {
    border-top-color: #8b5cf6;
}

/* ============================================================
   VARIANT DENGAN BACKGROUND
   ============================================================ */

.page-loader.with-bg {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 480px) {
    .loader-spinner {
        width: 40px;
        height: 40px;
        border-width: 3.5px;
    }

    .loader-text {
        font-size: 12px;
        margin-top: 16px;
        letter-spacing: 1.5px;
    }

    .loader-spinner.small {
        width: 28px;
        height: 28px;
        border-width: 2.5px;
    }

    .loader-spinner.large {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
}

@media (max-width: 360px) {
    .loader-spinner {
        width: 35px;
        height: 35px;
        border-width: 3px;
    }

    .loader-text {
        font-size: 11px;
        margin-top: 14px;
        letter-spacing: 1px;
    }
}