/* ==========================================================================
   CLOUDBEATS - MAIN STYLESHEET (v4.0)
   Design: Modern Dark Glassmorphism, Orange Fire Theme, Pro Mixer
   ========================================================================== */

:root {
  --bg-dark: #0a0804;
  --bg-card: rgba(22, 14, 8, 0.75);
  --bg-card-hover: rgba(36, 22, 10, 0.88);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(249, 115, 22, 0.4);
  
  /* Dynamic Custom Instrument Colors — Orange Fire Theme */
  --color-piano: #f97316;
  --piano-key-glow: rgba(249, 115, 22, 0.85);
  
  --color-drums: #ef4444;
  
  --color-xylo: #fbbf24;
  --xylo-bar-glow: rgba(251, 191, 36, 0.85);
  
  --color-seq: #fb923c;
  
  --text-main: #fdf4ec;
  --text-muted: #a88a72;
  --text-bright: #ffffff;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
}

/* Background Ambient Glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}
.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22), transparent);
  top: -100px;
  left: -100px;
}
.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.2), transparent);
  bottom: -150px;
  right: -100px;
}
.bg-glow-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent);
  top: 40%;
  left: 30%;
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Main Container Layout */
.app-container {
  width: 100%;
  max-width: 1380px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   HEADER & MASTER CONTROLS
   ========================================================================== */
.studio-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f97316, #fb923c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.55);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.pulse-icon {
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px #fff); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 8px #f97316); }
}

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

.badge {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 12px;
  color: var(--text-muted);
}

.visualizer-container {
  flex: 1;
  max-width: 420px;
  height: 48px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visualizer-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.master-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.control-group label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-group input[type="range"] {
  width: 90px;
  accent-color: var(--color-piano);
  cursor: pointer;
}

.control-group input[type="number"] {
  width: 60px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: center;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* BUTTONS STYLING */
.btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #1a0800;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.55);
}

.btn-record {
  background: rgba(255, 42, 109, 0.15);
  color: #ff2a6d;
  border: 1px solid rgba(255, 42, 109, 0.4);
}

.btn-record.recording {
  background: #ff2a6d;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 42, 109, 0.7);
  animation: blinkRecord 1s infinite alternate;
}

@keyframes blinkRecord {
  0% { opacity: 1; }
  100% { opacity: 0.6; }
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
}

/* METRONOME & TAP TEMPO STYLES */
.tempo-slider {
  width: 85px;
  accent-color: #fb923c;
  cursor: pointer;
}

.btn-tap {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease;
}
.btn-tap:active {
  transform: scale(0.92);
  background: #f97316;
  color: #110702;
}

.btn-metro {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.btn-metro.active {
  background: rgba(251, 191, 36, 0.28);
  border-color: #fbbf24;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.45);
}

.metro-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  transition: background 0.08s ease, box-shadow 0.08s ease, transform 0.08s ease;
}

.metro-led.flash-accent {
  background: #f97316 !important;
  box-shadow: 0 0 12px #f97316, 0 0 20px #fb923c !important;
  transform: scale(1.4);
}

.metro-led.flash-normal {
  background: #06b6d4 !important;
  box-shadow: 0 0 10px #06b6d4 !important;
  transform: scale(1.25);
}

.select-sm {
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* DEDICATED METRONOME TOOLBAR */
.metronome-bar {
  margin-top: 12px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(90deg, rgba(28, 19, 13, 0.85) 0%, rgba(18, 12, 8, 0.85) 100%);
  border: 1px solid rgba(251, 191, 36, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.metro-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #fbbf24;
  white-space: nowrap;
}

.metro-bar-section {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.metro-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.metro-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}

.metro-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
}

.metro-vol-slider {
  width: 75px !important;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--color-piano);
  color: var(--color-piano);
}

/* Microphone button */
.btn-mic {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}
.btn-mic:hover {
  border-color: rgba(249, 115, 22, 0.5);
  color: var(--text-main);
}
.btn-mic.mic-active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
  animation: micPulse 1.5s infinite alternate;
}
@keyframes micPulse {
  0% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.3); }
  100% { box-shadow: 0 0 18px rgba(34, 197, 94, 0.6); }
}

/* Download button */
.btn-download {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.35);
  text-decoration: none;
}
.btn-download:hover {
  background: rgba(249, 115, 22, 0.22);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.3);
}

.hidden { display: none !important; }

/* NAVIGATION TABS */
.studio-nav {
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.nav-tab {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* MAIN CONTENT */
.studio-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.instrument-section {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 14px;
}

.title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title-wrap h2 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-piano { color: var(--color-piano); }
.text-drums { color: var(--color-drums); }
.text-xylo { color: var(--color-xylo); }
.text-seq { color: var(--color-seq); }
.text-folder { color: #38ef7d; }

.subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.piano-credit {
  font-size: 12px;
  color: #7dd3fc;
  font-family: var(--font-mono);
}

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

.folder-tag code {
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
  color: #38ef7d;
  font-family: var(--font-mono);
}

/* ==========================================================================
   COLOR CUSTOMIZERS
   ========================================================================== */
.color-customizer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.color-customizer input[type="color"] {
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
}

/* ==========================================================================
   PIANO SECTION - GRAND PIANO ALEXANDER HOLM
   ========================================================================== */
.piano-settings {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.toggle-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-btn.active {
  background: rgba(0, 242, 254, 0.15);
  color: var(--color-piano);
  border-color: rgba(0, 242, 254, 0.4);
}

.octave-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

#octaveDisplay {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  width: 16px;
  text-align: center;
}

/* Piano Keyboard */
.piano-wrapper {
  overflow-x: auto;
  padding: 10px 0;
}

.piano-keyboard {
  display: flex;
  position: relative;
  height: 200px;
  width: max-content;
  margin: 0 auto;
  background: #111;
  padding: 12px 16px 16px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), inset 0 2px 4px rgba(255,255,255,0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.key-white {
  width: 44px;
  height: 172px;
  background: linear-gradient(to bottom, #ffffff 0%, #e2e8f0 100%);
  border-radius: 0 0 6px 6px;
  border: 1px solid #cbd5e1;
  border-top: 4px solid #94a3b8;
  position: relative;
  z-index: 1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 8px;
  transition: transform 0.05s ease, background 0.05s ease;
}

.key-white:hover {
  background: linear-gradient(to bottom, #ffffff 0%, #f1f5f9 100%);
}

.key-white.active {
  background: var(--color-piano) !important;
  border-color: #0284c7;
  transform: translateY(3px);
  box-shadow: 0 0 25px var(--piano-key-glow);
}

.key-black {
  width: 28px;
  height: 106px;
  background: linear-gradient(to bottom, #334155 0%, #0f172a 100%);
  border-radius: 0 0 4px 4px;
  border: 1px solid #020617;
  position: absolute;
  z-index: 2;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.05s ease, background 0.05s ease;
}

.key-black:hover {
  background: linear-gradient(to bottom, #475569 0%, #1e293b 100%);
}

.key-black.active {
  background: var(--color-piano) !important;
  transform: translateY(3px);
  box-shadow: 0 0 20px var(--piano-key-glow);
}

.key-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  font-family: var(--font-mono);
}

.key-black .key-label {
  color: #94a3b8;
  font-size: 9px;
}

.key-shortcut {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
  color: #64748b;
  margin-top: 2px;
}

.key-black .key-shortcut {
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

.keyboard-guide {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   VRAIE BATTERIE VIRTUELLE (VISUAL ACOUSTIC DRUM KIT)
   ========================================================================== */
.virtual-drumset-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.drumset-stage {
  position: relative;
  width: 760px;
  height: 480px;
  background: radial-gradient(circle at center, rgba(30, 38, 60, 0.6) 0%, rgba(10, 14, 24, 0.95) 75%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 15px 40px rgba(0,0,0,0.6);
  overflow: hidden;
}

/* Common Drum Elements Base */
.drum-element {
  position: absolute;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s cubic-bezier(0.1, 0.9, 0.2, 1), filter 0.1s ease;
}

.drum-element:hover {
  filter: brightness(1.2);
}

.element-label {
  position: absolute;
  bottom: -22px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.key-badge {
  color: var(--color-drums);
  font-family: var(--font-mono);
  font-weight: 800;
}

/* Bass Drum (Kick) */
.bass-drum {
  width: 220px;
  height: 220px;
  bottom: 30px;
  left: 270px;
}

.bass-shell {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a324b 0%, #0d111d 70%);
  border: 12px solid #475569;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bass-brand {
  font-family: var(--font-main);
  font-weight: 900;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 26px;
}

.kick-beater {
  position: absolute;
  top: 20px;
  width: 14px;
  height: 40px;
  background: #cbd5e1;
  border-radius: 4px;
  transition: transform 0.05s ease;
}

.bass-drum.active .kick-beater {
  transform: translateY(15px) scale(1.1);
  background: var(--color-drums);
  box-shadow: 0 0 15px var(--color-drums);
}

.bass-drum.active {
  transform: scale(0.97);
}

/* Snare Drum */
.snare-drum {
  width: 140px;
  height: 140px;
  bottom: 80px;
  left: 90px;
}

.snare-skin {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #f8fafc 0%, #cbd5e1 65%, #64748b 100%);
  border: 8px solid #94a3b8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.snare-drum.active {
  transform: scale(0.94);
  filter: brightness(1.3);
}

/* Toms */
.tom-1 {
  width: 110px;
  height: 110px;
  top: 100px;
  left: 240px;
}

.tom-2 {
  width: 120px;
  height: 120px;
  top: 100px;
  left: 390px;
}

.floor-tom {
  width: 160px;
  height: 160px;
  bottom: 60px;
  right: 80px;
}

.drum-skin {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #e2e8f0 0%, #94a3b8 70%);
  border: 7px solid #475569;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}

.drum-head.active {
  transform: scale(0.95);
}

.drum-head.active .drum-skin {
  border-color: var(--color-drums);
  box-shadow: 0 0 20px var(--color-drums);
}

/* Cymbals */
.cymbal-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #fde047 0%, #ca8a04 60%, #854d0e 100%);
  border: 2px solid #fef08a;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.cymbal-disc.double {
  border: 4px solid #eab308;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
}

.crash-cymbal {
  width: 150px;
  height: 150px;
  top: 30px;
  left: 60px;
}

.hihat-cymbal {
  width: 120px;
  height: 120px;
  top: 190px;
  left: 20px;
}

.ride-cymbal {
  width: 170px;
  height: 170px;
  top: 30px;
  right: 60px;
}

.cymbal.active {
  transform: rotate(-6deg) scale(0.96);
  filter: brightness(1.4);
}

.cymbal.active .cymbal-disc {
  box-shadow: 0 0 30px #fde047;
}

/* ==========================================================================
   XYLOPHONE SECTION
   ========================================================================== */
.xylophone-container {
  padding: 20px 10px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

.xylo-frame {
  display: flex;
  gap: 10px;
  padding: 24px 28px;
  background: linear-gradient(180deg, #1c130d 0%, #0d0906 100%);
  border-radius: var(--radius-lg);
  border: 2px solid #3d2716;
  box-shadow: 0 15px 35px rgba(0,0,0,0.7), inset 0 2px 5px rgba(255,255,255,0.05);
  position: relative;
  align-items: center;
}

.xylo-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.05s ease, filter 0.1s ease;
}

.xylo-bar:hover {
  filter: brightness(1.15);
}

.xylo-bar.active {
  transform: translateY(4px) scale(0.98);
  box-shadow: 0 0 20px var(--xylo-bar-glow) !important;
  filter: brightness(1.3);
}

.pin {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef08a, #ca8a04);
  box-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.xylo-note {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.xylo-shortcut {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 5px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   CONSOLE DE MIXAGE PRO (MIXER CONSOLE)
   ========================================================================== */
.mixer-console {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 10px 0;
}

.mixer-channel {
  background: linear-gradient(180deg, rgba(20, 26, 40, 0.95) 0%, rgba(10, 13, 20, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.mixer-channel.mic-channel {
  border-color: rgba(6, 182, 212, 0.4);
  background: linear-gradient(180deg, rgba(8, 35, 45, 0.95) 0%, rgba(5, 15, 25, 0.95) 100%);
}

.mixer-channel.master-channel {
  border-color: rgba(157, 78, 221, 0.4);
  background: linear-gradient(180deg, rgba(35, 20, 50, 0.95) 0%, rgba(15, 10, 25, 0.95) 100%);
}

.text-piano { color: var(--color-piano) !important; }
.text-drums { color: var(--color-drums) !important; }
.text-xylo  { color: var(--color-xylo) !important; }
.text-mic   { color: #06b6d4 !important; }
.text-master{ color: #c084fc !important; }

.channel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  letter-spacing: 1px;
}

.channel-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.btn-group-ms {
  display: flex;
  gap: 8px;
}

.btn-ms {
  width: 32px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}

.btn-mute.active {
  background: #ef4444;
  color: #fff;
  border-color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.btn-solo.active {
  background: #eab308;
  color: #000;
  border-color: #fde047;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.6);
}

.knob-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.knob-pan {
  width: 80px;
  accent-color: var(--color-piano);
  cursor: pointer;
}

.eq-group {
  display: flex;
  justify-content: space-around;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.eq-knob {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.knob-eq {
  width: 48px;
  accent-color: var(--color-xylo);
  cursor: pointer;
}

.fader-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 150px;
  padding: 10px 0;
}

.fader-vol {
  writing-mode: bt-lr; /* IE */
  -webkit-appearance: slider-vertical; /* WebKit */
  width: 28px;
  height: 130px;
  accent-color: var(--color-piano);
  cursor: pointer;
}

.vu-meter {
  width: 10px;
  height: 130px;
  background: #090d16;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.vu-bar {
  width: 100%;
  height: 0%;
  background: linear-gradient(0deg, #22c55e 0%, #eab308 70%, #ef4444 100%);
  transition: height 0.05s ease;
}

.fader-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-bright);
}

/* ==========================================================================
   SEQUENCEUR 16-STEPS SECTION
   ========================================================================== */
.seq-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preset-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 13px;
  outline: none;
}

.sequencer-matrix {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-x: auto;
}

.seq-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 780px;
}

.seq-track-info {
  width: 140px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.seq-track-info i {
  width: 18px;
}

.seq-steps {
  display: flex;
  gap: 6px;
  flex: 1;
}

.step-cell {
  flex: 1;
  height: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.step-cell:nth-child(4n) {
  margin-right: 4px;
}

.step-cell:hover {
  background: rgba(255, 255, 255, 0.1);
}

.step-cell.active {
  background: linear-gradient(135deg, var(--color-seq), #7209b7);
  box-shadow: 0 0 12px rgba(157, 78, 221, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
}

.step-cell.playing-step {
  border-color: #00f2fe;
}

.step-cell.playing-step::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  box-shadow: inset 0 0 8px #00f2fe;
}

/* ==========================================================================
   SAMPLE MANAGER SECTION
   ========================================================================== */
.sample-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.info-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-card h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-piano);
}

.path-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.path-list code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #38ef7d;
  font-family: var(--font-mono);
}

.dropzone-card h3 {
  color: #38ef7d;
}

.dropzone {
  border: 2px dashed rgba(56, 239, 125, 0.4);
  background: rgba(56, 239, 125, 0.03);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dropzone:hover, .dropzone.dragover {
  border-color: #38ef7d;
  background: rgba(56, 239, 125, 0.1);
  box-shadow: 0 0 20px rgba(56, 239, 125, 0.2);
}

.drop-icon {
  font-size: 38px;
  color: #38ef7d;
}

.drop-text {
  font-size: 14px;
  text-align: center;
}

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

.hidden-file-input {
  display: none;
}

.loaded-samples-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.samples-table {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.empty-samples {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px;
}

.sample-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.sample-row:last-child {
  border-bottom: none;
}

.sample-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(56, 239, 125, 0.15);
  color: #38ef7d;
}

/* FOOTER WITH COPYRIGHTS & CREDITS */
.studio-footer {
  margin-top: 24px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(14, 10, 6, 0.85);
  border: 1px solid var(--border-glass);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.footer-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-main);
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-copyright strong {
  color: var(--text-main);
}

.footer-contact {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* BUY ME A COFFEE STYLES */
.btn-bmc {
  background: #ffdd00 !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border: 1px solid #e6cb00 !important;
  box-shadow: 0 0 12px rgba(255, 221, 0, 0.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-bmc:hover {
  background: #ffea00 !important;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(255, 221, 0, 0.55) !important;
}

.btn-bmc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffdd00 0%, #f7b731 100%);
  color: #111111;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid #e6cb00;
  box-shadow: 0 2px 12px rgba(255, 221, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-top: 6px;
}

.btn-bmc-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(255, 221, 0, 0.55);
}

.credits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.credits-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.footer-link {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.footer-link:hover {
  color: #fb923c;
  border-bottom-color: #fb923c;
}

.link-icon {
  font-size: 10px;
  opacity: 0.7;
  margin-left: 2px;
}

.credits-list code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: #fb923c;
}

.status-badge-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-badge {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge strong {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.status-online { color: #38ef7d; font-weight: 600; }
.status-highlight { color: var(--color-piano); font-weight: 600; }

.hidden {
  display: none !important;
}

@media (max-width: 820px) {
  .drumset-stage { width: 100%; height: 380px; }
  .bass-drum { width: 160px; height: 160px; left: calc(50% - 80px); }
  .snare-drum { width: 100px; height: 100px; left: 20px; }
  .floor-tom { width: 110px; height: 110px; right: 20px; }
}
