:root {
  --bg-deepest: #06060a;
  --bg-deep: #0a0a0f;
  --bg-mid: #12121a;
  --bg-surface: #1a1a2e;
  --bg-elevated: #22223a;
  --accent: #00d4ff;
  --accent-dim: #007a94;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --accent-glow-strong: rgba(0, 212, 255, 0.35);
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-dim: #555570;
  --green: #00ff88;
  --yellow: #ffd600;
  --red: #ff3355;
  --orange: #ff8833;
}

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

body {
  background: var(--bg-deepest);
  color: var(--text-primary);
  font-family: 'IBM Plex Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(0,212,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(0,212,255,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#root { position: relative; z-index: 1; }

.font-mono { font-family: 'IBM Plex Mono', monospace !important; }
.font-sans { font-family: 'IBM Plex Sans', sans-serif !important; }

.glow-text { text-shadow: 0 0 20px rgba(0,212,255,0.5), 0 0 40px rgba(0,212,255,0.2); }
.glow-box { box-shadow: 0 0 20px rgba(0,212,255,0.1), inset 0 1px 0 rgba(255,255,255,0.05); }
.glow-box-active { box-shadow: 0 0 30px rgba(0,212,255,0.2), 0 0 60px rgba(0,212,255,0.1), inset 0 1px 0 rgba(255,255,255,0.08); }

.drop-zone {
  border: 2px dashed var(--text-dim);
  transition: border-color 0.2s, background 0.2s;
}
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.seek-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-elevated);
  outline: none;
  cursor: pointer;
}
.seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,212,255,0.5);
}
.seek-bar::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(0,212,255,0.5);
}

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-elevated);
  outline: none;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

.tempo-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-elevated);
  outline: none;
}
.tempo-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  cursor: pointer;
}
.tempo-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  border: none;
  cursor: pointer;
}

.btn-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-transport:hover {
  background: var(--bg-elevated);
}
.btn-transport:active {
  transform: scale(0.95);
}
.btn-transport.primary {
  background: var(--accent);
  color: var(--bg-deepest);
  font-weight: 700;
}
.btn-transport.primary:hover {
  background: #33ddff;
}

.track-row {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.track-row:hover {
  background: rgba(0,212,255,0.03);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-green { background: var(--green); box-shadow: 0 0 8px rgba(0,255,136,0.5); }
.status-yellow { background: var(--yellow); box-shadow: 0 0 8px rgba(255,214,0,0.5); }
.status-red { background: var(--red); box-shadow: 0 0 8px rgba(255,51,85,0.5); }

.mute-btn, .solo-btn {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.mute-btn { background: transparent; color: var(--text-dim); border-color: var(--text-dim); }
.mute-btn.active { background: var(--red); color: white; border-color: var(--red); }
.solo-btn { background: transparent; color: var(--text-dim); border-color: var(--text-dim); }
.solo-btn.active { background: var(--yellow); color: var(--bg-deepest); border-color: var(--yellow); }

.parse-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--bg-elevated);
  overflow: hidden;
}
.parse-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #33ddff);
  transition: width 0.1s;
  border-radius: 2px;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.playing-indicator {
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.scrollbar-thin::-webkit-scrollbar { width: 6px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 3px; }