/* ==========================================================================
   808 VAULT // UNDERGROUND TRAP & PLUGG AUDIO LAB
   AESTHETIC: LUXURY MATTE OBSIDIAN, CHISELED GLASS, TOXIC LIME & ULTRAVIOLET
   ========================================================================== */

:root {
  /* Matte Obsidian Rock & Volcanic Glass Shades */
  --obsidian-core: #040507;
  --obsidian-deep: #08090f;
  --obsidian-surface: #0e111a;
  --obsidian-card: #121524;
  --obsidian-card-hover: #181c30;
  --obsidian-elevated: #1e233d;
  
  /* Chiseled Facet Borders */
  --border-obsidian: #1c2136;
  --border-violet: rgba(139, 92, 246, 0.4);
  --border-violet-bright: rgba(168, 85, 247, 0.75);
  --border-lime: rgba(0, 255, 102, 0.45);
  --border-chrome: rgba(241, 245, 249, 0.3);

  /* Toxic Acid Lime Accents */
  --acid-lime: #00ff66;
  --acid-lime-neon: #22ff77;
  --acid-lime-glow: rgba(0, 255, 102, 0.5);
  --acid-lime-deep: rgba(0, 255, 102, 0.12);

  /* Ultraviolet Violet Accents */
  --ultraviolet: #8b5cf6;
  --ultraviolet-bright: #a855f7;
  --ultraviolet-glow: rgba(139, 92, 246, 0.5);
  --ultraviolet-deep: rgba(139, 92, 246, 0.16);

  /* Chrome Platinum Metallic */
  --chrome-pure: #ffffff;
  --chrome-light: #f1f5f9;
  --chrome-mid: #cbd5e1;
  --chrome-dark: #64748b;
  --chrome-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 45%, #94a3b8 75%, #f8fafc 100%);
  --chrome-bevel: inset 1px 1px 0 rgba(255, 255, 255, 0.22), inset -1px -1px 0 rgba(0, 0, 0, 0.85);

  --red-peak: #ff2247;
  --amber-warn: #ffb703;

  --text-main: #f8fafc;
  --text-dim: #cbd5e1;
  --text-muted: #8291a4;

  --font-display: 'Chakra Petch', -apple-system, sans-serif;
  --font-body: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --shadow-obsidian: 0 16px 40px rgba(0, 0, 0, 0.92);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
  background-color: var(--obsidian-core);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  background: 
    radial-gradient(ellipse at 50% -10%, rgba(139, 92, 246, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 10% 35%, rgba(0, 255, 102, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 65%, rgba(139, 92, 246, 0.1) 0%, transparent 45%),
    linear-gradient(180deg, #07080d 0%, #030407 100%);
  -webkit-font-smoothing: antialiased;
}

/* Hex / Crystalline Grid Overlay */
.grid-backdrop {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 102, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.vintage-overlay {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.16) 0px,
    rgba(0, 0, 0, 0.16) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 999;
  opacity: 0.45;
  transition: opacity 0.3s;
}

body.no-crt .vintage-overlay {
  display: none;
}

/* Master Container */
.app-layout {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  box-sizing: border-box;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.vault-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-violet);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #090b12 0%, #151928 100%);
  border: 1px solid var(--border-chrome);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 16px rgba(0, 255, 102, 0.25), var(--chrome-bevel);
}

.logo-accent {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--acid-lime);
  text-shadow: 0 0 12px var(--acid-lime-neon);
  letter-spacing: 1px;
}

.logo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  background: var(--chrome-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.logo-chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--ultraviolet-deep);
  border: 1px solid var(--ultraviolet-bright);
  color: var(--chrome-pure);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: 0 0 10px var(--ultraviolet-glow);
}

.status-ticker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(14, 17, 26, 0.85);
  border: 1px solid var(--border-violet);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--acid-lime);
  box-shadow: 0 0 10px var(--acid-lime);
  animation: pulse-dot-anim 1.5s infinite;
}

@keyframes pulse-dot-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.ticker-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--chrome-mid);
  letter-spacing: 0.5px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-action-btn {
  background: linear-gradient(145deg, #1c2136, #101322);
  border: 1px solid var(--border-chrome);
  color: var(--chrome-light);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  box-shadow: var(--chrome-bevel), 0 3px 8px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}

.icon-action-btn:hover {
  border-color: var(--acid-lime);
  color: var(--acid-lime);
  box-shadow: 0 0 14px var(--acid-lime-glow);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO RACK SECTION (ANTI-OVERFLOW GRID DESIGN)
   ========================================================================== */
.studio-rack-section {
  margin-bottom: 2rem;
  width: 100%;
}

/* ==========================================================================
   HERO RACK SECTION (ANTI-OVERFLOW 3-MODULE STUDIO CONSOLE)
   ========================================================================== */
.studio-rack-section {
  margin-bottom: 2rem;
  width: 100%;
}

/* Fluid 3-Column Studio Grid: Subwoofer (Left) | Master Tape Deck (Center) | MPC Matrix (Right) */
.rack-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 275px;
  gap: 1.15rem;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

/* Laptops (1024px - 1240px): Maintain side-by-side layout with tighter gap */
@media (max-width: 1240px) {
  .rack-grid {
    grid-template-columns: 265px minmax(0, 1fr) 250px;
    gap: 0.85rem;
  }
}

/* Small Laptops & Tablets (760px - 980px): Master Player spans full row, Subwoofer & MPC 50/50 below */
@media (max-width: 980px) {
  .rack-grid {
    grid-template-columns: 1fr 1fr;
  }
  .player-module {
    grid-column: span 2;
    order: 1;
  }
  .woofer-module {
    grid-column: span 1;
    order: 2;
  }
  .mpc-module {
    grid-column: span 1;
    order: 3;
  }
}

/* Mobile Phones (<= 759px): Clean 1-column stack without empty space */
@media (max-width: 759px) {
  .rack-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  .player-module {
    order: 1;
  }
  .woofer-module {
    order: 2;
  }
  .mpc-module {
    order: 3;
  }
}

/* CHISELED OBSIDIAN MODULE CHASSIS */
.rack-module {
  background: linear-gradient(160deg, #121526 0%, #0a0c16 55%, #05060b 100%);
  border: 1px solid var(--border-violet);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 
    var(--shadow-obsidian),
    var(--chrome-bevel),
    0 0 25px rgba(139, 92, 246, 0.12);
}

.rack-module::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-top: 2px solid var(--border-chrome);
  border-right: 2px solid var(--border-chrome);
  pointer-events: none;
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-violet);
  margin-bottom: 1rem;
}

.module-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--chrome-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.module-title i {
  -webkit-text-fill-color: var(--acid-lime);
  color: var(--acid-lime);
  text-shadow: 0 0 8px var(--acid-lime);
}

.module-stat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--acid-lime);
  background: var(--acid-lime-deep);
  border: 1px solid var(--border-lime);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
  white-space: nowrap;
}

/* --- SUBWOOFER MODULE (100% UNCLIPPED CIRCLE, INTERACTIVE PLAYABLE) --- */
.woofer-module {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subwoofer-stage {
  position: relative;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 50%, #151b30 0%, #06070c 85%);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-obsidian);
  overflow: hidden;
  box-shadow: inset 0 0 30px #000;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.subwoofer-stage:hover {
  border-color: var(--acid-lime);
  box-shadow: inset 0 0 30px #000, 0 0 20px var(--acid-lime-glow);
}

/* Concentric Shockwaves - Vibrant High-Voltage Neon Burst (Enlarged +2mm, strictly unclipped) */
.shockwave {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.1s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.1s ease-out;
}

.wave-1 { 
  width: 140px; 
  height: 140px; 
  border: 2.5px solid var(--acid-lime-neon); 
  box-shadow: 0 0 16px var(--acid-lime-neon), 0 0 30px var(--acid-lime-glow), inset 0 0 12px rgba(0, 255, 102, 0.35); 
}

.wave-2 { 
  width: 158px; 
  height: 158px; 
  border: 2.5px solid #a855f7; 
  box-shadow: 0 0 18px #c084fc, 0 0 35px rgba(168, 85, 247, 0.65), inset 0 0 12px rgba(168, 85, 247, 0.35); 
}

.wave-3 { 
  width: 176px; 
  height: 176px; 
  border: 2.5px solid #00ffcc; 
  box-shadow: 0 0 22px #00ffcc, 0 0 45px rgba(0, 255, 204, 0.6), 0 0 65px rgba(0, 255, 102, 0.35); 
}

/* Physical Subwoofer Enclosure - Enlarged +2mm around circumference */
.subwoofer-chassis {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: #000;
  box-shadow: 
    inset 0 0 22px #000,
    0 0 28px rgba(139, 92, 246, 0.5),
    0 0 14px rgba(0, 255, 102, 0.45),
    0 0 0 3.5px #1c2236;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  transition: transform 0.08s ease-out, box-shadow 0.15s ease;
  cursor: pointer;
}

.subwoofer-chassis:hover {
  box-shadow: 
    inset 0 0 22px #000,
    0 0 35px var(--acid-lime-neon),
    0 0 0 3.5px var(--acid-lime);
}

.subwoofer-chassis.punching {
  transform: scale(1.14) !important;
  box-shadow: 
    inset 0 0 25px #000,
    0 0 45px var(--acid-lime-neon),
    0 0 30px #00ffcc,
    0 0 0 4px var(--acid-lime) !important;
}

.sub-rim {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #2d344d 20%, #131726 70%, #07080f 100%);
  border: 3.5px solid #20263c;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 12px #000;
}

.sub-cone {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle, #3a4363 0%, #1a1e30 60%, #090a12 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 14px #000;
  transition: transform 0.06s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.sub-dustcap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #5e6b98, #1f253a 70%, #090b12 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.95);
  border: 1.5px solid var(--chrome-mid);
  transition: transform 0.06s ease;
}

.sub-logo {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--acid-lime);
  text-shadow: 0 0 10px var(--acid-lime-neon);
  letter-spacing: 1px;
}

/* Dual Analog VU Meters & Interactive Stereo Trim Faders (-20dB to +3dB) */
.dual-vu-box {
  position: static;
  margin-top: 0.65rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  z-index: 5;
}

.vu-meter-unit {
  flex: 1;
  background: #0f121e;
  border: 1px solid var(--border-chrome);
  border-radius: var(--radius-sm);
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vu-meter-unit:hover,
.vu-meter-unit.is-dragging {
  border-color: var(--acid-lime);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9), 0 0 12px var(--acid-lime-glow);
}

.vu-scale {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--chrome-dark);
  pointer-events: none;
}

.vu-scale .red-mark {
  color: var(--red-peak);
  font-weight: 700;
}

.vu-gauge {
  width: 100%;
  height: 14px;
  background: #040508;
  border-radius: 3px;
  position: relative;
  overflow: visible;
  margin: 3px 0;
  border: 1px solid #1c2236;
  cursor: ew-resize;
}

.vu-needle {
  position: absolute;
  left: 0;
  top: 1px;
  bottom: 1px;
  width: 3px;
  background: var(--acid-lime);
  box-shadow: 0 0 8px var(--acid-lime);
  transform: translateX(10%);
  pointer-events: none;
  transition: transform 0.05s ease-out;
  border-radius: 1px;
}

/* Draggable Fader Thumb on the -20 to +3 scale */
.vu-fader-thumb {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 8px;
  margin-left: -4px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 50%, #64748b 100%);
  border: 1px solid var(--acid-lime);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--acid-lime-glow), 0 2px 4px #000;
  cursor: ew-resize;
  pointer-events: none;
  transition: box-shadow 0.15s, background 0.15s;
}

.vu-meter-unit:hover .vu-fader-thumb,
.vu-meter-unit.is-dragging .vu-fader-thumb {
  background: var(--acid-lime-neon);
  box-shadow: 0 0 12px var(--acid-lime-neon);
}

.vu-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 1px;
  pointer-events: none;
}

.vu-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--chrome-mid);
  font-weight: 700;
}

.vu-db-readout {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--acid-lime);
  font-weight: 700;
  text-shadow: 0 0 4px var(--acid-lime-glow);
}

.sub-spectrum-box {
  margin-top: 0.75rem;
  background: #05060a;
  border: 1px solid var(--border-violet);
  border-radius: var(--radius-sm);
  padding: 4px;
  display: flex;
  justify-content: center;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.9);
}

#subCanvas {
  display: block;
  width: 100%;
  height: 40px;
}

/* ==========================================================================
   MASTER TAPE DECK (CENTER MODULE)
   ========================================================================== */
.player-module {
  background: linear-gradient(160deg, #13172a 0%, #0b0d18 55%, #06070c 100%);
  border: 1px solid var(--border-violet);
}

.track-indicator {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--acid-lime);
  background: var(--acid-lime-deep);
  border: 1px solid var(--border-lime);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.deck-body {
  display: flex;
  gap: 1.35rem;
  align-items: center;
  min-width: 0;
}

@media (max-width: 620px) {
  .deck-body {
    flex-direction: column;
    align-items: stretch;
  }
}

/* SLEEK FRAMED MIXTAPE ARTWORK */
.deck-media-wrapper {
  position: relative;
  width: 145px;
  height: 145px;
  flex-shrink: 0;
  margin: 0 auto;
}

.tape-artwork-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-chrome);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.95), 0 0 25px var(--ultraviolet-glow);
  overflow: hidden;
  background: #000;
  transition: all 0.3s ease;
}

.tape-artwork-frame.playing {
  border-color: var(--acid-lime);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.95), 0 0 30px var(--acid-lime-glow);
}

.active-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.tape-artwork-frame.playing .active-cover {
  transform: scale(1.03);
}

.tape-corner-accent {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--chrome-pure);
  pointer-events: none;
  z-index: 5;
}

.tape-corner-accent.top-left {
  top: 4px;
  left: 4px;
  border-right: none;
  border-bottom: none;
}

.tape-corner-accent.bottom-right {
  bottom: 4px;
  right: 4px;
  border-left: none;
  border-top: none;
}

.tape-live-pill {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--acid-lime);
  color: var(--acid-lime);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 6;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.tape-live-pill .live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid-lime);
}

.deck-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.deck-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.deck-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--ultraviolet-deep);
  border: 1px solid var(--border-violet);
  color: #c4b5fd;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.deck-badge.badge-primary {
  border-color: var(--acid-lime);
  color: var(--acid-lime);
  background: var(--acid-lime-deep);
  box-shadow: 0 0 12px var(--acid-lime-glow);
}

.deck-track-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  background: var(--chrome-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
}

.deck-track-genre {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--chrome-mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Waveform & Progress */
.waveform-container {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.time-readout {
  display: flex;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--chrome-mid);
}

.time-sep {
  color: var(--chrome-dark);
}

.progress-bar-wrap {
  position: relative;
  width: 100%;
  height: 8px;
  background: #151829;
  border: 1px solid var(--border-obsidian);
  border-radius: var(--radius-full);
  cursor: pointer;
  overflow: visible;
}

.progress-buffered {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: #242b44;
  border-radius: var(--radius-full);
  pointer-events: none;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--ultraviolet), var(--acid-lime-neon));
  border-radius: var(--radius-full);
  pointer-events: none;
  box-shadow: 0 0 12px var(--acid-lime-glow);
}

.progress-scrubber {
  position: absolute;
  right: -5px;
  top: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--chrome-pure);
  border: 3px solid var(--acid-lime);
  box-shadow: 0 0 8px #000, 0 0 8px var(--acid-lime);
  opacity: 0;
  transition: opacity 0.15s;
}

.progress-bar-wrap:hover .progress-scrubber {
  opacity: 1;
}

/* Transport Controls */
.transport-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.transport-btn {
  background: linear-gradient(145deg, #22283e, #111422);
  border: 1px solid var(--border-chrome);
  color: var(--chrome-light);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: var(--chrome-bevel), 0 3px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
  position: relative;
}

.transport-btn:hover {
  border-color: var(--acid-lime);
  color: var(--acid-lime);
  box-shadow: 0 0 14px var(--acid-lime-glow);
  transform: translateY(-2px);
}

.transport-btn.active {
  background: var(--acid-lime-deep);
  border-color: var(--acid-lime);
  color: var(--acid-lime);
  box-shadow: 0 0 14px var(--acid-lime-glow);
}

.transport-btn.play-master-btn {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #22ff77 0%, #00c853 100%);
  color: #000;
  border: none;
  font-size: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 0 22px var(--acid-lime-neon), 0 0 45px rgba(0, 255, 102, 0.4);
}

.transport-btn.play-master-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px var(--acid-lime-neon), 0 0 55px rgba(0, 255, 102, 0.6);
}

.repeat-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--acid-lime);
}

/* FX Rack Pills */
.fx-rack {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

.fx-pill {
  background: linear-gradient(145deg, #181d2f, #0d101c);
  border: 1px solid var(--border-violet);
  color: var(--chrome-mid);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.fx-pill:hover {
  border-color: var(--ultraviolet-bright);
  color: var(--chrome-pure);
  box-shadow: 0 0 12px var(--ultraviolet-glow);
}

.fx-pill.active {
  background: var(--ultraviolet-deep);
  border-color: var(--ultraviolet-bright);
  color: var(--chrome-pure);
  box-shadow: 0 0 16px var(--ultraviolet-glow);
}

.fx-pill#fxBassBoostBtn.active {
  background: var(--acid-lime-deep);
  border-color: var(--acid-lime);
  color: var(--acid-lime);
  box-shadow: 0 0 16px var(--acid-lime-glow);
}

/* Volume Strip */
.volume-strip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.vol-btn {
  background: transparent;
  border: none;
  color: var(--chrome-mid);
  cursor: pointer;
  font-size: 0.9rem;
}

.vol-btn:hover {
  color: var(--acid-lime);
}

.volume-slider-wrap {
  flex: 1;
  max-width: 130px;
}

.volume-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--acid-lime);
  cursor: pointer;
}

.vol-val {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--chrome-mid);
  width: 34px;
}

/* ==========================================================================
   MPC-16 BEAT MATRIX (RIGHT MODULE) - ANTI-OVERFLOW FIT
   ========================================================================== */
.mpc-module {
  background: linear-gradient(160deg, #121526 0%, #0a0c16 55%, #05060b 100%);
  border: 1px solid var(--border-violet);
  min-width: 0;
}

.mpc-hint {
  font-size: 0.7rem;
  color: var(--chrome-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.mpc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
}

.mpc-pad {
  background: linear-gradient(145deg, #1c2136, #101322);
  border: 1px solid var(--border-violet);
  border-radius: var(--radius-sm);
  padding: 6px 2px;
  min-height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.08s ease;
  user-select: none;
  box-shadow: var(--chrome-bevel), 0 2px 5px rgba(0, 0, 0, 0.6);
  min-width: 0;
  overflow: hidden;
}

.mpc-pad:hover {
  border-color: var(--acid-lime);
  box-shadow: 0 0 12px var(--acid-lime-glow);
  transform: translateY(-1px);
}

.mpc-pad:active, .mpc-pad.flashing {
  background: var(--acid-lime) !important;
  border-color: var(--chrome-pure) !important;
  transform: scale(0.94);
  box-shadow: 0 0 18px var(--acid-lime-neon) !important;
}

.mpc-pad:active .pad-num,
.mpc-pad.flashing .pad-num,
.mpc-pad:active .pad-label,
.mpc-pad.flashing .pad-label {
  color: #000 !important;
}

.pad-num {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--chrome-dark);
  font-weight: 700;
}

.pad-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--chrome-light);
  text-align: center;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  padding: 0 2px;
}

.mpc-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-violet);
  padding-top: 0.45rem;
}

.mpc-mode-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--chrome-dark);
}

.mpc-mode-tag.accent {
  color: var(--ultraviolet-bright);
  font-weight: 700;
}

/* ==========================================================================
   CATALOG & FILTER SECTION
   ========================================================================== */
.vault-catalog-section {
  margin-top: 1.5rem;
  width: 100%;
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 6px;
}

.filter-btn {
  background: linear-gradient(145deg, #181c2f, #0d0f1a);
  border: 1px solid var(--border-violet);
  color: var(--chrome-mid);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--border-chrome);
  color: var(--chrome-pure);
  box-shadow: 0 0 14px var(--ultraviolet-glow);
}

.filter-btn.active {
  background: linear-gradient(135deg, #22ff77 0%, #00c853 100%);
  color: #000;
  border-color: var(--acid-lime-neon);
  box-shadow: 0 0 18px var(--acid-lime-glow);
}

.count-badge {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.12rem 0.42rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.filter-btn.active .count-badge {
  background: #000;
  color: var(--acid-lime);
}

.toolbar-search-box {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--chrome-dark);
  font-size: 0.88rem;
}

.search-input-wrap input {
  width: 100%;
  background: #0b0e18;
  border: 1px solid var(--border-violet);
  color: var(--chrome-pure);
  padding: 0.6rem 2.2rem 0.6rem 2.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.85);
  transition: border-color 0.2s;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--acid-lime);
  box-shadow: 0 0 14px var(--acid-lime-glow);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--chrome-dark);
  cursor: pointer;
  display: none;
}

.sort-select-wrap select {
  background: #0b0e18;
  border: 1px solid var(--border-violet);
  color: var(--chrome-mid);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
}

.layout-toggle-wrap {
  display: flex;
  gap: 4px;
}

.view-btn {
  background: #0b0e18;
  border: 1px solid var(--border-violet);
  color: var(--chrome-mid);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.view-btn.active {
  background: var(--ultraviolet-deep);
  border-color: var(--ultraviolet-bright);
  color: var(--chrome-pure);
  box-shadow: 0 0 12px var(--ultraviolet-glow);
}

/* --- TRACK CARDS CONTAINER --- */
.tracks-container.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.track-card {
  background: linear-gradient(155deg, #131728 0%, #0a0c14 60%, #040508 100%);
  border: 1px solid var(--border-violet);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.9), 0 0 15px rgba(139, 92, 246, 0.1);
}

.track-card:hover {
  transform: translateY(-5px);
  border-color: var(--acid-lime);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.95), 0 0 25px var(--acid-lime-glow);
}

.track-card.is-playing {
  border-color: var(--acid-lime);
  box-shadow: 0 0 25px var(--acid-lime-neon), inset 0 0 15px rgba(0, 255, 102, 0.15);
}

.card-media {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #000;
  overflow: hidden;
}

.card-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.track-card:hover .card-cover-img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.track-card:hover .card-overlay,
.track-card.is-playing .card-overlay {
  opacity: 1;
}

.card-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22ff77 0%, #00c853 100%);
  color: #000;
  border: none;
  font-size: 1.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 20px var(--acid-lime-neon);
  transform: scale(0.9);
  transition: transform 0.15s ease;
}

.card-play-btn:hover {
  transform: scale(1.06);
}

.card-index-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border-chrome);
  color: var(--chrome-pure);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 3;
}

.card-dur-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--acid-lime);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-lime);
  z-index: 3;
}

.card-content {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.card-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.card-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--ultraviolet-deep);
  color: #c4b5fd;
  padding: 0.12rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-violet);
  text-transform: uppercase;
}

.card-chip.accent {
  color: var(--acid-lime);
  background: var(--acid-lime-deep);
  border-color: var(--border-lime);
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--chrome-pure);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-violet);
}

.card-action-btn {
  background: transparent;
  border: none;
  color: var(--chrome-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  transition: color 0.15s;
  text-decoration: none;
}

.card-action-btn:hover {
  color: var(--acid-lime);
}

/* Compact List View */
.tracks-container.list-view {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tracks-container.list-view .track-card {
  flex-direction: row;
  align-items: center;
  padding: 0.6rem 0.9rem;
}

.tracks-container.list-view .card-media {
  width: 54px;
  height: 54px;
  padding-top: 0;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.tracks-container.list-view .card-content {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
}

.tracks-container.list-view .card-actions {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--obsidian-surface);
  border: 1px dashed var(--border-violet);
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.empty-icon {
  font-size: 2.5rem;
  color: var(--chrome-dark);
  margin-bottom: 0.75rem;
}

.empty-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--chrome-pure);
  margin-bottom: 0.4rem;
}

.empty-sub {
  color: var(--chrome-mid);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.reset-filter-btn {
  background: linear-gradient(135deg, #22ff77, #00c853);
  color: #000;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 15px var(--acid-lime-glow);
}

/* ==========================================================================
   RAP FLOW LYRICS DRAWER
   ========================================================================== */
.lyrics-drawer {
  position: fixed;
  top: 0;
  right: -550px;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  background: #080a11;
  border-left: 1px solid var(--border-violet);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.95);
}

.lyrics-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-violet);
  background: #0f121e;
}

.drawer-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--acid-lime);
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.drawer-track-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--chrome-pure);
  line-height: 1.3;
}

.drawer-track-genre {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--chrome-mid);
}

.drawer-close-btn {
  background: transparent;
  border: 1px solid var(--border-violet);
  color: var(--chrome-light);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.drawer-close-btn:hover {
  border-color: var(--red-peak);
  color: var(--red-peak);
}

.lyrics-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.25rem;
  background: #101322;
  border-bottom: 1px solid var(--border-violet);
  flex-wrap: wrap;
  gap: 0.6rem;
}

.autoscroll-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.switch-label {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #242940;
  transition: 0.2s;
  border-radius: 20px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.switch-label input:checked + .switch-slider {
  background-color: var(--acid-lime);
}

.switch-label input:checked + .switch-slider:before {
  transform: translateX(16px);
  background-color: #000;
}

.switch-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--chrome-mid);
}

.scroll-speed-select {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--chrome-mid);
}

.scroll-speed-select select {
  background: #181d30;
  border: 1px solid var(--border-violet);
  color: var(--chrome-pure);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
}

.lyrics-actions {
  display: flex;
  gap: 0.5rem;
}

.action-small-btn {
  background: linear-gradient(145deg, #1e243a, #111422);
  border: 1px solid var(--border-violet);
  color: var(--chrome-light);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  text-decoration: none;
}

.action-small-btn:hover {
  border-color: var(--acid-lime);
  color: var(--acid-lime);
}

.lyrics-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.25rem 4rem;
}

.lyrics-content-rendered {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--chrome-light);
  white-space: pre-wrap;
}

.lyrics-section-header {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--acid-lime);
  font-size: 0.92rem;
  margin-top: 1.35rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-shadow: 0 0 8px var(--acid-lime);
}

/* ==========================================================================
   MODAL & FOOTER
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-card {
  background: linear-gradient(160deg, #131728 0%, #080a12 100%);
  border: 1px solid var(--border-violet);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 450px;
  padding: 1.35rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px var(--ultraviolet-glow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-violet);
  margin-bottom: 1rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--acid-lime);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 8px var(--acid-lime);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--chrome-light);
  cursor: pointer;
  font-size: 1.1rem;
}

.shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--chrome-light);
}

kbd {
  background: #161a2b;
  border: 1px solid var(--border-chrome);
  color: var(--acid-lime);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.vault-footer {
  margin-top: 3.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-violet);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--chrome-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--chrome-dark);
}

.footer-link {
  color: var(--acid-lime);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ==========================================================================
   INLINE CARD PLAYER & DIRECT CLICKABLE SEEKBAR
   ========================================================================== */
.card-inline-player {
  background: rgba(5, 7, 12, 0.85);
  border: 1px solid var(--border-violet);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.track-card.is-playing .card-inline-player {
  border-color: var(--acid-lime);
  background: rgba(8, 14, 18, 0.95);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.2), inset 0 0 8px rgba(0, 255, 102, 0.1);
}

.card-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--chrome-mid);
}

.card-time-now {
  color: var(--acid-lime);
  font-weight: 700;
}

.card-eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.card-eq-bars span {
  width: 2px;
  height: 3px;
  background: var(--chrome-dark);
  border-radius: 1px;
  transition: height 0.1s;
}

.card-eq-bars.active span {
  background: var(--acid-lime);
  box-shadow: 0 0 4px var(--acid-lime);
  animation: eq-bounce 0.6s infinite ease-in-out alternate;
}

.card-eq-bars.active span:nth-child(1) { animation-delay: 0.1s; }
.card-eq-bars.active span:nth-child(2) { animation-delay: 0.3s; }
.card-eq-bars.active span:nth-child(3) { animation-delay: 0.2s; }
.card-eq-bars.active span:nth-child(4) { animation-delay: 0.4s; }

@keyframes eq-bounce {
  0% { height: 2px; }
  100% { height: 10px; }
}

/* Direct Clickable Seekbar on the Card */
.card-seekbar {
  position: relative;
  width: 100%;
  height: 7px;
  background: #191e32;
  border-radius: var(--radius-full);
  cursor: pointer;
  overflow: visible;
}

.card-seek-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--ultraviolet), var(--acid-lime-neon));
  border-radius: var(--radius-full);
  pointer-events: none;
  box-shadow: 0 0 8px var(--acid-lime-glow);
}

.card-seek-thumb {
  position: absolute;
  right: -5px;
  top: -3.5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--chrome-pure);
  border: 2px solid var(--acid-lime);
  box-shadow: 0 0 6px #000;
  opacity: 0;
  transition: opacity 0.15s;
}

.card-seekbar:hover .card-seek-thumb,
.track-card.is-playing .card-seek-thumb {
  opacity: 1;
}

/* Mini Inline Controls on the Card */
.card-mini-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.card-ctrl-btn {
  background: linear-gradient(145deg, #1c2236, #101322);
  border: 1px solid var(--border-violet);
  color: var(--chrome-mid);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.card-ctrl-btn:hover {
  border-color: var(--acid-lime);
  color: var(--acid-lime);
  transform: translateY(-1px);
}

.card-ctrl-btn.btn-inline-play {
  padding: 4px 12px;
  background: linear-gradient(145deg, #262e4a, #131728);
  border-color: var(--border-chrome);
  color: var(--chrome-pure);
}

.card-ctrl-btn.btn-inline-play.is-playing {
  background: linear-gradient(135deg, #22ff77, #00c853);
  color: #000;
  border-color: var(--acid-lime-neon);
  box-shadow: 0 0 12px var(--acid-lime-glow);
}

.card-style-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--chrome-dark);
  font-weight: 700;
}

/* ==========================================================================
   MOBILE-FIRST & COMPACT STYLES (LIGHTWEIGHT, FAST, RESPONSIVE)
   ========================================================================== */

/* 1. Floating Mobile Sticky Mini-Player */
.mobile-sticky-player {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(10, 13, 22, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-violet);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.95), 0 0 15px rgba(139, 92, 246, 0.15);
  padding: 0 0.85rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  touch-action: manipulation;
}

@media (max-width: 780px) {
  .mobile-sticky-player.is-active {
    display: block;
    animation: slideUpMini 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@keyframes slideUpMini {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.sticky-progress-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--ultraviolet), var(--acid-lime-neon));
  box-shadow: 0 0 8px var(--acid-lime-glow);
  pointer-events: none;
  transition: width 0.15s linear;
}

.sticky-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 0.65rem;
}

.sticky-track-touch {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  text-decoration: none;
}

.sticky-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-lime);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.25);
}

.sticky-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.sticky-title {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--chrome-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sticky-sub {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2px;
}

.sticky-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--acid-lime);
  background: var(--acid-lime-deep);
  border: 1px solid var(--border-lime);
  padding: 0.05rem 0.35rem;
  border-radius: 2px;
}

.sticky-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--chrome-mid);
}

.sticky-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.sticky-btn {
  background: #151928;
  border: 1px solid var(--border-violet);
  color: var(--chrome-mid);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.sticky-btn:active {
  transform: scale(0.92);
  border-color: var(--acid-lime);
  color: var(--acid-lime);
}

.sticky-btn.sticky-play-btn {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #22ff77, #00c853);
  color: #000;
  border: none;
  font-size: 0.92rem;
  box-shadow: 0 0 12px var(--acid-lime-glow);
}

/* 2. Responsive Layout for <= 780px (Tablet & Mobile) */
@media (max-width: 780px) {
  .app-layout {
    padding: 0 0.85rem 6.5rem; /* Extra padding so bottom sticky player never overlaps songs */
  }
}

/* 3. Responsive Layout for <= 640px (Standard Mobile) */
@media (max-width: 640px) {
  .vault-header {
    padding: 0.6rem 0;
    margin-bottom: 0.85rem;
  }
  .logo-box {
    padding: 0.25rem 0.6rem;
  }
  .logo-accent {
    font-size: 1.2rem;
  }
  .logo-title {
    font-size: 1.05rem;
    letter-spacing: 1px;
  }
  .logo-chip {
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
  }
  .status-ticker {
    display: none; /* Hide ticker on mobile to prevent overflow */
  }
  #shortcutsBtn {
    display: none; /* No physical keyboard on mobile */
  }
  .icon-action-btn .btn-label {
    display: none; /* Icon only */
  }
  .icon-action-btn {
    padding: 0.45rem;
    width: 34px;
    height: 34px;
    justify-content: center;
  }

  /* Catalog Toolbar */
  .catalog-toolbar {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .filter-pills {
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-pills::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
  }
  .toolbar-search-box {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }
  .search-input-wrap {
    min-width: 0;
    width: 100%;
  }
  .search-input-wrap input {
    font-size: 0.85rem;
    padding: 0.65rem 2rem 0.65rem 2.4rem;
  }
  .sort-select-wrap select {
    width: 100%;
    font-size: 0.82rem;
    padding: 0.6rem 0.8rem;
  }
  .layout-toggle-wrap {
    display: flex;
    justify-content: flex-end;
  }

  /* Master Deck Mobile Layout */
  .rack-module {
    padding: 0.85rem;
  }
  .deck-media-wrapper {
    width: 120px;
    height: 120px;
  }
  .deck-track-title {
    font-size: 1.15rem;
    text-align: center;
  }
  .deck-track-genre {
    text-align: center;
  }
  .deck-tags {
    justify-content: center;
  }
  .waveform-container {
    margin: 0.65rem 0;
  }
  .transport-controls {
    justify-content: center;
    gap: 0.5rem;
  }
  .transport-btn {
    width: 42px;
    height: 42px;
  }
  .transport-btn.play-master-btn {
    width: 52px;
    height: 52px;
  }
  .fx-rack {
    justify-content: center;
    gap: 0.35rem;
  }
  .fx-pill {
    padding: 0.35rem 0.55rem;
    font-size: 0.65rem;
  }
  .volume-strip {
    justify-content: center;
    margin-top: 0.4rem;
  }

  /* Fullscreen Lyrics Drawer on Mobile */
  .lyrics-drawer {
    right: -100%;
    width: 100%;
    max-width: 100%;
  }
  .lyrics-drawer.open {
    right: 0;
  }
  .drawer-header {
    padding: 0.85rem;
  }
  .drawer-track-title {
    font-size: 1.05rem;
  }
  .lyrics-toolbar {
    padding: 0.6rem 0.85rem;
  }
  .lyrics-body {
    padding: 1rem 0.85rem 5rem;
  }
}

/* 4. Compact 2-Column Mobile Grid View (<= 540px) */
@media (max-width: 540px) {
  .tracks-container.grid-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .track-card {
    border-radius: var(--radius-sm);
  }
  .card-media {
    padding-top: 85%;
  }
  .card-content {
    padding: 0.6rem 0.5rem;
    gap: 0.3rem;
  }
  .card-chip {
    font-size: 0.55rem;
    padding: 0.08rem 0.28rem;
  }
  .card-title {
    font-size: 0.78rem;
    line-height: 1.25;
    height: 2.5em;
  }
  .card-inline-player {
    padding: 0.35rem;
    gap: 3px;
    margin-top: 0.2rem;
  }
  .card-time-row {
    font-size: 0.6rem;
  }
  .card-ctrl-btn {
    padding: 2px 5px;
    font-size: 0.58rem;
    gap: 2px;
  }
  .card-ctrl-btn.btn-inline-play {
    padding: 3px 7px;
  }
  .card-actions {
    padding-top: 0.3rem;
  }
  .card-action-btn {
    font-size: 0.64rem;
  }

  /* List View on Mobile */
  .tracks-container.list-view {
    gap: 0.5rem;
  }
  .tracks-container.list-view .track-card {
    flex-direction: column;
    padding: 0.65rem;
    align-items: stretch;
  }
  .tracks-container.list-view .card-media {
    width: 60px;
    height: 60px;
    padding-top: 0;
    flex-shrink: 0;
    float: left;
    margin-right: 0.6rem;
    margin-bottom: 0.4rem;
  }
  .tracks-container.list-view .card-content {
    padding: 0;
  }
}

/* 5. Mobile Performance & Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  .track-card:hover {
    transform: none;
  }
  .vintage-overlay {
    opacity: 0.2;
  }
  button, select, input {
    touch-action: manipulation;
  }
}

/* ==========================================================================
   VAULT SECURITY SHIELD (Anti-Drag & Media Protection)
   ========================================================================== */
img, .tape-artwork, .card-media, .deck-media-wrapper, .sticky-thumb {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}
