* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #fff;
}
canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  cursor: grab;
  background: #000;
  touch-action: none;
}
canvas.dragging { cursor: grabbing; }

/* ----- Welcome Splash Screen (Smooth Start & Blink Mask) ----- */
.splash-curtain {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 1.1s ease;
}
.splash-curtain.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-content {
  text-align: center;
  color: #fff;
  user-select: none;
  animation: splash-pulse 2.2s ease-in-out infinite alternate;
}
.splash-logo {
  font-size: 42px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ff5ea8, #48d1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(72, 209, 255, 0.7));
}
.splash-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff, #d2e0f4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 24px rgba(255, 255, 255, 0.25);
}
.splash-subtitle {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  margin-top: 10px;
}
.splash-progress {
  width: 150px;
  height: 2px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.splash-progress-fill {
  width: 8%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5ea8, #48d1ff);
  box-shadow: 0 0 10px rgba(72, 209, 255, 0.55);
  transition: width 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes splash-pulse {
  from { transform: scale(0.97); opacity: 0.88; }
  to { transform: scale(1.03); opacity: 1; }
}

/* ----- Top Utility Navigation Header ----- */
.top-nav {
  position: fixed;
  top: max(18px, env(safe-area-inset-top, 18px));
  left: max(20px, env(safe-area-inset-left, 20px));
  right: max(20px, env(safe-area-inset-right, 20px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 35;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.top-nav.hidden {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.top-nav-left, .top-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: all;
}
.top-pill {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 14, 26, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  user-select: none;
}
.top-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  transform: translateY(-1px);
}
.top-pill:active {
  transform: translateY(1px);
}

/* Preset Bank Capsule in Top Nav */
.preset-bank {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(14, 14, 26, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.preset-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.55;
  padding: 0 4px;
  user-select: none;
}
.preset-slot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.preset-slot:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: scale(1.1);
}
.preset-slot.active {
  background: #fff;
  color: #0d0d16;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}
.preset-slot.saved-flash {
  background: #10b981 !important;
  color: #fff !important;
  box-shadow: 0 0 16px #10b981 !important;
  transform: scale(1.18);
}
.preset-save-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 10.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin-left: 2px;
}
.preset-save-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}
.preset-save-btn.active {
  background: #f59e0b;
  border-color: #fbbf24;
  color: #0d0d16;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
}
.preset-bank.saving-mode .preset-slot {
  border-color: rgba(245, 158, 11, 0.85);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
}

#sparksBtn.active {
  color: #fff;
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.55);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.3);
}
#bloomBtn.bloom-soft {
  color: #fff;
  background: rgba(56, 189, 248, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}
#bloomBtn.bloom-max {
  color: #fff;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.35), rgba(236, 72, 153, 0.38));
  border: 1px solid rgba(251, 146, 60, 0.75);
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.5);
}

/* ----- Floating Bottom Dock ----- */
.dock {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 20;
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-width: calc(100vw - 24px);
}
.dock.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(24px);
  pointer-events: none;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 28px;
  background: rgba(12, 12, 24, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  max-width: 100%;
}

.btn-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
}

.bar button, .bar label.btn {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.bar button:hover, .bar label.btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.bar button.active, .bar label.btn.active {
  color: #0d0d16;
  background: rgba(255, 255, 255, 0.94);
  font-weight: 600;
}
.bar button.pulse-active, .bar label.btn.pulse-active {
  color: #fff;
  background: rgba(236, 72, 153, 0.78);
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.65);
}

.bar button kbd {
  font-family: inherit;
  font-size: 10px;
  opacity: 0.55;
}

/* Color swatch dot inside the Theme button */
.swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px currentColor;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Sliders & mini controls inside toolbar */
.ctrl-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.ctrl-group span.label {
  opacity: 0.65;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ctrl-group span.val {
  min-width: 25px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 11px;
}
.ctrl-group input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  outline: none;
  cursor: pointer;
}
.player-bar input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  outline: none;
  cursor: pointer;
}
.ctrl-group input[type="range"]::-webkit-slider-thumb,
.player-bar input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ----- Upgraded Music Player Deck ----- */
.player-bar {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 14, 34, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(236, 72, 153, 0.4);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
  font-size: 12px;
}
.player-bar.visible { display: flex; flex-wrap: wrap; justify-content: center; }

.player-bar button {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.2s, transform 0.15s;
}
.player-bar button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.player-track-info {
  display: flex;
  flex-direction: column;
  min-width: 110px;
  max-width: 170px;
  padding: 3px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s;
}
.player-track-info:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ----- Interactive Playlist Queue Popover ----- */
.playlist-popover {
  display: none;
  flex-direction: column;
  width: min(360px, 90vw);
  max-height: 220px;
  background: rgba(16, 12, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(236, 72, 153, 0.45);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
  padding: 10px 12px;
  gap: 6px;
}
.playlist-popover.open {
  display: flex;
}
.playlist-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.playlist-hdr-btn {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10.5px;
  cursor: pointer;
  transition: background 0.15s;
}
.playlist-hdr-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.playlist-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  max-height: 165px;
  padding-right: 2px;
}
.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: background 0.15s;
}
.playlist-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.playlist-item.active {
  background: rgba(236, 72, 153, 0.25);
  border: 1px solid rgba(236, 72, 153, 0.5);
  color: #fff;
  font-weight: 600;
}
.playlist-item-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.playlist-item-remove {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.playlist-item-remove:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #fff;
}
.player-title {
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-queue-badge {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.player-scrub-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#seekSlider {
  width: 150px;
  accent-color: #ec4899;
}
.player-time {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  min-width: 72px;
  text-align: center;
}

.player-vol-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
#volSlider {
  width: 58px;
}

/* ----- VJ Live Performance Pad Bar ----- */
.vj-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 18px;
  background: rgba(10, 8, 20, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
}
.vj-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.vj-row-label {
  opacity: 0.6;
  font-size: 10px;
  letter-spacing: 0.05em;
  margin-right: 2px;
  text-transform: uppercase;
}
.vj-bar .vj-pad {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.12s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
}
.vj-bar .vj-pad:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.vj-bar .vj-pad:active, .vj-bar .vj-pad.vj-active {
  background: rgba(255, 255, 255, 0.95);
  color: #0d0d16;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
  transform: scale(0.96);
}
.vj-bar .vj-pad kbd {
  font-family: inherit;
  font-size: 9.5px;
  opacity: 0.65;
  background: rgba(255, 255, 255, 0.14);
  padding: 1px 4px;
  border-radius: 4px;
  margin-right: 4px;
}

.player-bar button#shuffleBtn, .player-bar button#loopBtn {
  font-size: 13px;
  padding: 4px 8px;
  opacity: 0.75;
  transition: opacity 0.2s, background 0.2s;
}
.player-bar button#shuffleBtn.active, .player-bar button#loopBtn.active {
  opacity: 1;
  background: rgba(168, 85, 247, 0.45);
  border: 1px solid rgba(168, 85, 247, 0.7);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  color: #fff;
}

#remixBtn {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(139, 92, 246, 0.25)) !important;
  border: 1px solid rgba(236, 72, 153, 0.45) !important;
  font-weight: 600;
}
#remixBtn:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.45), rgba(139, 92, 246, 0.5)) !important;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.6) !important;
}

.sep {
  display: none !important;
}

/* ----- Auto-Pilot Screensaver Floating Badge ----- */
.autopilot-badge {
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.55);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: none;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, transform 0.15s;
}
.autopilot-badge.active {
  display: inline-flex;
}
.autopilot-badge:hover {
  background: rgba(147, 51, 234, 0.9);
  transform: translateY(-1px);
}

/* ----- Real-Time Performance & FPS HUD ----- */
.fps-hud {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(14, 14, 26, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fps-hud:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  transform: translateY(-1px);
}
.fps-hud.hidden {
  display: none !important;
}
.fps-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px currentColor;
  display: inline-block;
}

/* Explicit UI Hidden State (Pure Clean-Feed for OBS): completely clears UI, overlays & cursor */
body.ui-hidden .top-nav,
body.ui-hidden .dock,
body.ui-hidden .toast,
body.ui-hidden .fps-hud,
body.ui-hidden .autopilot-badge {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease !important;
}
body.ui-hidden .top-nav {
  transform: translateY(-22px) !important;
}
body.ui-hidden .dock {
  transform: translateX(-50%) translateY(32px) !important;
}

body.cursor-hidden,
body.cursor-hidden canvas,
body.cursor-hidden canvas.dragging {
  cursor: none !important;
}

/* ----- Toast Banner ----- */
.toast {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(15, 15, 28, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 60;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ----- Help Modal ----- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: rgba(18, 18, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  max-width: 500px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
  width: 100%;
  padding: 22px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.modal h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal h2 button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
}
.modal ul {
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
}
.modal li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.modal kbd {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-family: inherit;
}

.error {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

/* ----- Responsive Breakpoints (Tablet, Split-Screen & Mobile) ----- */
@media (max-width: 1080px) {
  .vj-bar {
    border-radius: 18px;
    padding: 6px 10px;
  }
  .bar {
    border-radius: 22px;
    padding: 6px 10px;
    gap: 6px;
  }
  .btn-group {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .top-nav {
    flex-wrap: wrap;
    gap: 6px;
    top: max(10px, env(safe-area-inset-top, 10px));
    left: max(10px, env(safe-area-inset-left, 10px));
    right: max(10px, env(safe-area-inset-right, 10px));
  }
  .top-nav-right {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
  }
  .top-pill, .fps-hud {
    font-size: 11px;
    padding: 4px 10px;
  }
  .dock {
    bottom: max(10px, env(safe-area-inset-bottom, 10px));
    max-width: calc(100vw - 14px);
    max-height: 55vh;
    overflow-y: auto;
    scrollbar-width: none;
    gap: 6px;
  }
  .dock::-webkit-scrollbar { display: none; }
  .bar button, .bar label.btn {
    font-size: 11.5px;
    padding: 5px 9px;
  }
  .player-bar {
    border-radius: 18px;
    padding: 6px 10px;
    gap: 6px;
  }
  #seekSlider {
    width: 110px;
  }
  .modal {
    padding: 16px 18px;
  }
  .modal li {
    gap: 10px;
    font-size: 11.5px;
  }
}
