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

:root {
  --bg-dark: #0a0a0a;
  --deck-body: #1e1e1e;
  --deck-body-light: #2a2a2a;
  --metal: #8a8a8a;
  --metal-light: #b0b0b0;
  --lcd-amber: #ff9500;
  --lcd-bg: #0a1a0a;
  --cassette-shell: #e8e0d0;
  --tape-brown: #3a2a1a;
  --warm-white: #e0d8d0;
  --warn-red: #cc4444;
  --side-a: #ff9500;
  --side-b: #88bbff;
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
  z-index: 9998;
}

.font-lcd { font-family: 'VT323', monospace; }
.font-label { font-family: 'Special Elite', cursive; }
.font-mono { font-family: 'IBM Plex Mono', monospace; }

.deck-body {
  background: linear-gradient(180deg, #2a2a2a 0%, #1e1e1e 40%, #1a1a1a 100%);
  border: 1px solid #333;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  border-radius: 12px;
  position: relative;
}

.deck-body::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 128 128' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cassette-window {
  background: linear-gradient(180deg, #151515 0%, #1a1a1a 100%);
  border: 2px solid #333;
  border-radius: 8px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
  position: relative;
}

.cassette-shell {
  background: linear-gradient(180deg, #e8e0d0 0%, #d8d0c0 100%);
  border-radius: 6px;
  border: 1px solid #c0b8a8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
  position: relative;
}

.transport-btn {
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
  border: 1px solid #444;
  border-radius: 4px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.08s ease;
  color: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.transport-btn:hover {
  background: linear-gradient(180deg, #444 0%, #333 100%);
}

.transport-btn:active, .transport-btn.active {
  transform: translateY(2px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), inset 0 1px 3px rgba(0,0,0,0.3);
  background: linear-gradient(180deg, #252525 0%, #2a2a2a 100%);
}

.transport-btn.record-btn {
  border-color: #663333;
}

.lcd-display {
  background: var(--lcd-bg);
  border: 2px solid #1a2a1a;
  border-radius: 4px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5), 0 0 12px rgba(255,150,0,0.05);
  position: relative;
}

.lcd-display::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,150,0,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.lcd-text {
  color: var(--lcd-amber);
  text-shadow: 0 0 8px rgba(255,150,0,0.4);
}

.vu-canvas {
  border-radius: 4px;
  border: 1px solid #333;
}

.slider-track {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 3px;
  outline: none;
}

.slider-track::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 24px;
  background: linear-gradient(180deg, #555 0%, #3a3a3a 100%);
  border: 1px solid #666;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slider-track::-moz-range-thumb {
  width: 16px;
  height: 24px;
  background: linear-gradient(180deg, #555 0%, #3a3a3a 100%);
  border: 1px solid #666;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.screw {
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 40% 40%, #888, #555 60%, #333);
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
  position: absolute;
}

.screw::after {
  content: '';
  position: absolute;
  top: 4px; left: 2px;
  width: 6px; height: 1px;
  background: #333;
  border-radius: 1px;
}

.drop-zone {
  border: 2px dashed #444;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.drop-zone.drag-over {
  border-color: var(--lcd-amber);
  background: rgba(255,150,0,0.05);
  box-shadow: 0 0 20px rgba(255,150,0,0.1);
}

.drop-zone:hover {
  border-color: #666;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(255,150,0,0.1); }
  50% { box-shadow: 0 0 16px rgba(255,150,0,0.2); }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.marquee-text {
  animation: marquee 8s linear infinite;
}

.preset-btn {
  background: linear-gradient(180deg, #333 0%, #262626 100%);
  border: 1px solid #444;
  border-radius: 4px;
  padding: 6px 12px;
  color: var(--warm-white);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
}

.preset-btn:hover { background: linear-gradient(180deg, #444 0%, #333 100%); }
.preset-btn.active { border-color: var(--lcd-amber); color: var(--lcd-amber); }

.capacity-bar {
  height: 8px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  overflow: hidden;
}

.capacity-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.track-row {
  background: rgba(255,255,255,0.02);
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.track-row:hover {
  background: rgba(255,255,255,0.04);
  border-color: #333;
}

.side-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.segmented-control {
  display: flex;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  overflow: hidden;
}

.segmented-control button {
  flex: 1;
  padding: 6px 10px;
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 11px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  transition: all 0.15s ease;
  border-right: 1px solid #333;
}

.segmented-control button:last-child { border-right: none; }
.segmented-control button:hover { color: #ccc; }
.segmented-control button.active {
  background: rgba(255,150,0,0.15);
  color: var(--lcd-amber);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }