:root {
  --bg-deep: #050508;
  --bg-surface: #0d0e17;
  --bg-card: #121422;
  --bg-card-hover: #191c2e;
  --bg-elevated: #1e2238;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(244, 63, 94, 0.6);
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #f43f5e;
  --accent-crimson: #e11d48;
  --accent-secondary: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --safe-top: env(safe-area-inset-top, 48px);
  --safe-bottom: env(safe-area-inset-bottom, 20px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

input, textarea, select {
  user-select: text;
  -webkit-user-select: text;
  font-family: inherit;
}

.hidden {
  display: none !important;
}

.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(225, 29, 72, 0.09), transparent 55%), var(--bg-deep);
}

/* ── Top Header ── */
.top-header {
  padding-top: calc(var(--safe-top) + 6px);
  padding-bottom: 12px;
  padding-left: 16px;
  padding-right: 16px;
  background: rgba(8, 9, 15, 0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.4);
}

.brand-logo svg {
  width: 22px;
  height: 22px;
}

.brand-text h1 {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(90deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 1px;
}

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

.icon-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(244, 63, 94, 0.45);
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.25), rgba(139, 92, 246, 0.25));
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(var(--safe-bottom) + 84px);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ── Continue Watching Section ── */
.continue-section {
  margin-bottom: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 15px;
  font-weight: 700;
}

.badge-subtle {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  font-weight: 600;
}

.continue-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.continue-carousel::-webkit-scrollbar {
  display: none;
}

.continue-card {
  min-width: 268px;
  max-width: 290px;
  background: linear-gradient(145deg, #1a1528, #111322);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.continue-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.continue-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.continue-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #fda4af;
  font-weight: 600;
  margin-bottom: 7px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 99px;
}

/* ── Search & Folder Chips ── */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 0 13px;
  height: 44px;
}

.search-box svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
}

.folder-chips-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.folder-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  flex: 1;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.folder-chips::-webkit-scrollbar {
  display: none;
}

.folder-chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.folder-chip.active {
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.chip-add-btn {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px dashed rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

/* ── Subfilters ── */
.subfilter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pill-group {
  display: flex;
  gap: 6px;
}

.sub-pill {
  padding: 5px 11px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.sub-pill.active {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.count-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Upgraded Cinema Movie Cards ── */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.movie-card {
  background: linear-gradient(165deg, #151829 0%, #0e101c 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.movie-card:active {
  transform: scale(0.99);
}

.movie-banner {
  position: relative;
  height: 118px;
  background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.35), rgba(139, 92, 246, 0.25) 55%, #090a12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.movie-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #111320 4%, transparent 65%);
}

.movie-banner-play {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.movie-banner-badges {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.banner-tag.folder {
  background: rgba(15, 17, 28, 0.72);
  color: #c4b5fd;
  border: 1px solid rgba(196, 181, 253, 0.25);
}

.banner-tag.dur {
  background: rgba(225, 29, 72, 0.85);
  color: #fff;
}

.movie-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.movie-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text-main);
  word-break: break-word;
  cursor: pointer;
}

.movie-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.m-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: #cbd5e1;
  font-weight: 600;
}

.movie-progress-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
}

.movie-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #fda4af;
  margin-bottom: 5px;
  font-weight: 600;
}

.movie-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 4px;
}

.btn-play-card {
  flex: 1;
  padding: 9px 14px;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-secondary));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}

.btn-card-tool {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}

/* ── Cards & Forms (Download & Settings Tabs) ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
}

.card h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-header p, .card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.input-with-btn {
  display: flex;
  gap: 8px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.btn-secondary {
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.btn-outline {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.1);
  color: #ddd6fe;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
}

.btn-primary-large {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-secondary));
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.32);
}

.dl-hint {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.45;
}

.inspect-preview {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 11px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.inspect-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.badge-duration {
  background: #065f46;
  color: #a7f3d0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.badge-uploader {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 6px;
}

.badge-long {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.inspect-orig-title {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 600;
}

/* ── Jobs List ── */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 12px;
}

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.job-title {
  font-size: 13.5px;
  font-weight: 650;
}

.job-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.job-status-pill.running {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
}

.job-status-pill.done {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.job-status-pill.error, .job-status-pill.cancelled {
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
}

.job-stage {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.job-metrics {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

.job-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding-top: 8px;
  padding-bottom: calc(var(--safe-bottom) + 4px);
  background: rgba(8, 9, 15, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  z-index: 30;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
}

.nav-item.active {
  color: var(--accent-primary);
}

.nav-icon-wrap {
  position: relative;
  display: inline-flex;
}

.nav-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  background: var(--accent-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 99px;
}

/* ==========================================================================
   FLAGSHIP CINEMA VIDEO PLAYER MODAL (APPLE TV+ / INFUSE PRO STYLE)
   ========================================================================== */
.cinema-modal {
  position: fixed;
  inset: 0;
  background: #030306;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Immersive Video Stage — Expands to Fill Portrait Screen for 9:16 Reels */
.cinema-stage {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 240px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.cinema-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transition: transform 0.25s ease, object-fit 0.2s ease;
}

.cinema-stage.fit-cover video {
  object-fit: cover;
}

.cinema-stage.fit-zoom video {
  object-fit: cover;
  transform: scale(1.14);
}

/* Theater Mode or Landscape Orientation -> Full 100% Screen */
.cinema-modal.theater-mode .player-mini-bar {
  display: none !important;
}

@media (orientation: landscape) {
  .cinema-stage {
    height: 100vh !important;
    border-bottom: none;
  }
  .player-mini-bar {
    display: none !important;
  }
}

/* Glass HUD Overlay inside Video Stage */
.cinema-hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.12) 28%,
    rgba(0, 0, 0, 0.12) 68%,
    rgba(0, 0, 0, 0.88) 100%
  );
  opacity: 1;
  transition: opacity 0.26s ease;
  z-index: 10;
}

.cinema-hud.hud-hidden {
  opacity: 0;
  pointer-events: none;
}

/* HUD Topbar */
.hud-topbar {
  padding-top: calc(var(--safe-top) + 6px);
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hud-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 22, 34, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.hud-circle-btn:active {
  transform: scale(0.9);
  background: rgba(244, 63, 94, 0.45);
}

.hud-title-box {
  flex: 1;
  min-width: 0;
}

.hud-title-box h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.hud-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-save-tag {
  color: #6ee7b7;
  font-weight: 600;
}

.hud-top-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.stream-mode-btn {
  padding: 6px 11px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(16, 185, 129, 0.55);
  background: rgba(6, 78, 59, 0.65);
  color: #6ee7b7;
}

.stream-mode-btn.vps {
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(76, 29, 149, 0.65);
  color: #ddd6fe;
}

/* Center Transport Controls */
.hud-center-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  pointer-events: auto;
}

.hud-skip-circle {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(15, 17, 26, 0.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s ease;
}

.hud-skip-circle span {
  position: absolute;
  font-size: 10px;
  font-weight: 800;
  margin-top: 2px;
}

.hud-skip-circle:active {
  transform: scale(0.88);
}

.hud-play-hero {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.88), rgba(139, 92, 246, 0.88));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.5);
  transition: transform 0.15s ease;
}

.hud-play-hero:active {
  transform: scale(0.9);
}

/* HUD Bottom Scrubber & Timeline Bar */
.hud-bottom-bar {
  padding: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scrubber-container {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.scrubber-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  overflow: visible;
  transition: height 0.15s ease;
}

.scrubber-container:hover .scrubber-track,
.scrubber-container.dragging .scrubber-track {
  height: 8px;
}

.scrubber-buffer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 99px;
}

.scrubber-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #ff1e56, #a855f7);
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.65);
}

.scrubber-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent-primary);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: transform 0.12s ease;
}

.scrubber-container.dragging .scrubber-thumb {
  transform: translate(-50%, -50%) scale(1.35);
}

.scrubber-bookmarks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scrubber-bm-dot {
  position: absolute;
  top: -2px;
  width: 4px;
  height: 10px;
  border-radius: 2px;
  background: #fbbf24;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.9);
}

.scrubber-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.scrubber-bubble {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 17, 28, 0.94);
  border: 1px solid rgba(244, 63, 94, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.hud-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.hud-time-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hud-time-left strong {
  color: #fff;
  font-weight: 700;
}

.hud-time-sep, #lblTotalTime {
  color: rgba(255, 255, 255, 0.72);
}

.hud-remaining {
  color: #fda4af;
  font-size: 11.5px;
  margin-left: 4px;
}

.hud-quick-Right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hud-mini-pill {
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* Unlock Touch Button */
.unlock-floating-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  padding: 10px 20px;
  border-radius: 99px;
  background: rgba(225, 29, 72, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

/* Double-Tap Ripple Zones */
.tap-ripple {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
  animation: pulseRipple 0.5s ease-out;
}

.tap-ripple.left {
  left: 0;
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
}

.tap-ripple.right {
  right: 0;
  border-top-left-radius: 50%;
  border-bottom-left-radius: 50%;
}

.ripple-inner {
  background: rgba(0, 0, 0, 0.68);
  padding: 8px 14px;
  border-radius: 99px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

@keyframes pulseRipple {
  0% { opacity: 0; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); }
}

/* 2x Hold Speed Badge */
.hold-speed-badge {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: rgba(15, 17, 28, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.6);
  color: #fde68a;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 99px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* Video Buffering Spinner */
.video-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 12;
}

.spinner-ring {
  width: 48px;
  height: 48px;
  border: 3.5px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spinRing 0.8s linear infinite;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.resume-toast {
  position: absolute;
  top: calc(var(--safe-top) + 56px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 22;
  background: rgba(16, 185, 129, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   PERSISTENT MINI CONTROL BAR & SLIDE-UP CINEMA DECK DRAWER
   ========================================================================== */
.player-mini-bar {
  flex-shrink: 0;
  background: linear-gradient(180deg, #0d101b 0%, #07080f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 10px calc(var(--safe-bottom) + 8px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 35;
  user-select: none;
}

.mini-scrubber-track {
  position: relative;
  width: calc(100% + 20px);
  margin-left: -10px;
  height: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.mini-scrubber-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
}

.mini-scrubber-buffer {
  position: absolute;
  left: 0;
  height: 4px;
  width: 0%;
  background: rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.mini-scrubber-fill {
  position: absolute;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-crimson), #a855f7);
  pointer-events: none;
}

.mini-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mini-bar-left,
.mini-bar-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-ctrl-btn {
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: transform 0.12s ease, background 0.15s ease;
}

.mini-ctrl-btn:active {
  transform: scale(0.94);
  background: rgba(244, 63, 94, 0.3);
}

.mini-ctrl-btn.back {
  background: rgba(255, 255, 255, 0.1);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.3);
}

.mini-ctrl-btn.play {
  min-width: 32px;
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fff;
}

.mini-time-badge {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-left: 2px;
}

.mini-deck-toggle-btn {
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid rgba(244, 63, 94, 0.5);
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-secondary));
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 3px 12px rgba(225, 29, 72, 0.35);
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.mini-deck-toggle-btn:active {
  transform: scale(0.95);
}

.deck-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 50;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cinema-modal.deck-open .deck-backdrop {
  opacity: 1;
}

.cinema-deck {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 76vh;
  z-index: 60;
  background: linear-gradient(180deg, #101322 0%, #07080e 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.85);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 14px calc(var(--safe-bottom) + 20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.cinema-modal.deck-open .cinema-deck {
  transform: translateY(0);
}

.deck-drawer-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  background: #101322;
  z-index: 5;
  padding-top: 2px;
}

.deck-drawer-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
}

.deck-drawer-title-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.deck-drawer-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.btn-close-deck {
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

/* Speed & Sleep Timer Strip */
.deck-pills-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 8px 11px;
}

.deck-pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.deck-pill-group::-webkit-scrollbar {
  display: none;
}

.deck-pill-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.speed-chips {
  display: flex;
  gap: 5px;
}

.spd-chip {
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.spd-chip.active {
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.35);
}

.glass-select-wrap select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 600;
  outline: none;
}

/* Segmented Tabs inside Cinema Deck */
.deck-tabs-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #0d0f1a;
  padding: 5px;
  border-radius: 13px;
  border: 1px solid var(--border-subtle);
}

.deck-tab-btn {
  padding: 8px 6px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-tab-btn.active {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.25), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fff;
}

.deck-tab-body {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.deck-tab-body.active {
  display: flex;
}

/* Precision Skip Capsules */
.skip-capsules-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}

.skip-capsule {
  padding: 10px 4px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}

.skip-capsule.accent {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  color: #ddd6fe;
}

.skip-capsule:active {
  transform: scale(0.94);
  background: var(--accent-crimson);
  color: #fff;
}

/* Deck Cards */
.deck-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  padding: 12px 14px;
}

.deck-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.deck-card-head span {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.deck-card-head small {
  font-size: 11px;
  color: var(--text-muted);
}

/* Hourly Chapter Grid */
.hour-chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: 7px;
}

.hour-chip {
  padding: 9px 6px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.hour-chip.active {
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-secondary));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

/* Exact Time Jump Card */
.exact-jump-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.exact-jump-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exact-jump-label span {
  font-size: 13px;
  font-weight: 700;
}

.exact-jump-label small {
  font-size: 11px;
  color: var(--text-muted);
}

.exact-jump-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.time-input-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  padding: 5px 8px;
  border-radius: 10px;
}

.time-input-group input {
  width: 38px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.time-input-group span {
  font-size: 11px;
  color: var(--text-muted);
}

.colon-sep {
  font-weight: 800;
  color: var(--text-secondary);
}

.btn-jump-go {
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-secondary));
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

/* Bookmarks Tab */
.btn-add-bm {
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid rgba(244, 63, 94, 0.45);
  background: rgba(244, 63, 94, 0.16);
  color: #fda4af;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.bookmarks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bookmark-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 12.5px;
  cursor: pointer;
}

.bookmark-pill strong {
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}

.bookmark-del {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}

/* Player Episodes Switcher List */
.player-episodes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 13px;
  cursor: pointer;
}

.ep-row-item.active {
  border-color: var(--accent-primary);
  background: rgba(244, 63, 94, 0.1);
}

.ep-row-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  flex: 1;
}

.ep-row-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Stats & Cookies */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.stat-box {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.stat-box strong {
  font-size: 15.5px;
  color: #fff;
}

.cookie-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-badge {
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
}

.cookie-badge.ok {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

.cookie-badge.missing {
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
}

.btn-text {
  background: none;
  border: none;
  color: #a78bfa;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.empty-state h3 {
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  line-height: 1.5;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 75px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(18, 20, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

/* ==========================================================================
   5 PRO UPGRADES: REAL POSTER THUMBS, AUDIO BOOST DSP, SWIPE HUD, OLED NIGHT
   ========================================================================== */

/* 1. Real HD Poster Thumbnail inside Movie Banner */
.movie-banner {
  height: 136px;
}

.movie-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.movie-card:hover .movie-banner-img {
  transform: scale(1.04);
}

.movie-banner::after {
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 7, 12, 0.55) 0%,
    rgba(6, 7, 12, 0.1) 45%,
    rgba(13, 15, 26, 0.94) 100%
  );
}

.m-badge.dur-long {
  background: rgba(225, 29, 72, 0.88);
  color: #fff;
}

.scrubber-bm-tick {
  position: absolute;
  top: -2px;
  width: 4px;
  height: 10px;
  border-radius: 2px;
  background: #fbbf24;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.95);
}

/* 2. Software OLED Brightness Dimmer & Swipe Gesture HUD Indicator */
.brightness-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.08s linear;
}

.gesture-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 35;
  min-width: 155px;
  background: rgba(10, 12, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.gesture-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.gesture-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  overflow: hidden;
}

.gesture-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #ff1e56, #a855f7);
  border-radius: 99px;
}

/* 3. Audio Booster (100% - 300%) & Voice Clarity DSP Bar */
.deck-audio-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 14px;
  padding: 8px 11px;
}

.boost-chip {
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.boost-chip.active {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}

.deck-audio-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dsp-toggle-btn {
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dsp-toggle-btn.active {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.65);
  color: #6ee7b7;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.dsp-toggle-btn.night {
  border-color: rgba(168, 85, 247, 0.35);
  color: #e9d5ff;
}

/* 4. Pitch-Black OLED Night Audio Mode Overlay (#000000 True Black) */
.oled-blackout-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  user-select: none;
}

.oled-blackout-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 340px;
  opacity: 0.36;
  transition: opacity 0.25s ease;
}

.oled-blackout-inner:active {
  opacity: 0.72;
}

.oled-clock {
  font-size: 46px;
  font-weight: 200;
  color: #94a3b8;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}

.oled-badge {
  font-size: 11.5px;
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 4px 12px;
  border-radius: 99px;
}

.oled-movie-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.4;
}

.oled-time-status {
  font-size: 13px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.oled-mini-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.oled-ctrl-btn {
  padding: 9px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.oled-ctrl-btn.main {
  border-color: rgba(244, 63, 94, 0.45);
  color: #fda4af;
}

.oled-exit-btn {
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 99px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
}

/* 5. Episode Items & iOS Shortcut Card */
.ep-item {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.ep-item.active {
  border-color: var(--accent-primary);
  background: rgba(244, 63, 94, 0.12);
}

.ep-play-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.ep-info {
  flex: 1;
  min-width: 0;
}

.ep-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.shortcut-card {
  border-color: rgba(168, 85, 247, 0.3);
  background: linear-gradient(135deg, rgba(17, 19, 32, 0.95), rgba(28, 20, 48, 0.7));
}

.shortcut-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.shortcut-steps {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.28);
  padding: 9px 11px;
  border-radius: 10px;
}

/* 6. Permanent Delete Button & iOS Confirmation Modal */
.mini-ctrl-btn.delete {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.btn-deck-delete {
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid rgba(244, 63, 94, 0.45);
  background: rgba(225, 29, 72, 0.18);
  color: #fecdd3;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.continue-del-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fda4af;
  border-radius: 8px;
  padding: 3px 7px;
  font-size: 11.5px;
  cursor: pointer;
  flex-shrink: 0;
}

.confirm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.confirm-modal-card {
  width: 100%;
  max-width: 340px;
  background: linear-gradient(180deg, #151828 0%, #0c0e18 100%);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 20px;
  padding: 20px 18px 18px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.confirm-modal-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.confirm-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.confirm-modal-sub {
  font-size: 13px;
  font-weight: 700;
  color: #fda4af;
  margin-bottom: 8px;
  line-height: 1.4;
  word-break: break-word;
}

.confirm-modal-note {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 16px;
}

.confirm-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
}

.btn-modal-cancel {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-modal-danger {
  padding: 11px 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.45);
}

/* ==================== PRIVATE CINEMA LOGIN GATE (OLED VAULT) ==================== */
.app-shell.auth-locked {
  display: none !important;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: radial-gradient(circle at 50% 18%, rgba(225, 29, 72, 0.16), rgba(5, 5, 8, 0.98) 62%), #050508;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-gate.hidden {
  display: none !important;
}

.auth-card {
  width: 100%;
  max-width: 390px;
  background: linear-gradient(180deg, rgba(20, 23, 38, 0.96) 0%, rgba(11, 13, 22, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 26px 22px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(225, 29, 72, 0.15);
}

.auth-logo {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e11d48, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(225, 29, 72, 0.4);
}

.auth-title {
  text-align: center;
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.auth-sub {
  text-align: center;
  font-size: 12.5px;
  color: #94a3b8;
  margin-bottom: 20px;
  line-height: 1.45;
}

.auth-form .form-group {
  margin-bottom: 14px;
}

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

.pw-input-wrap input {
  width: 100%;
  padding-right: 44px;
}

.pw-eye-btn {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.auth-error {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  text-align: center;
}

.auth-submit-btn {
  margin-top: 4px;
}

.auth-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
}



