/* ============================================================
   STUDIO CONSOLE — console.css
   Aesthetic: Dark Pro DAW / Broadcast Console
   Fonts: Rajdhani (display), Share Tech Mono (values), Exo 2 (body)
   ============================================================ */

:root {
  --bg-base:        #0a0b0e;
  --bg-panel:       #0f1116;
  --bg-channel:     #13151c;
  --bg-channel-alt: #161820;
  --bg-control:     #1c1f2a;
  --bg-elevated:    #222636;

  --border-subtle:  #1e2130;
  --border-mid:     #2a2f42;
  --border-bright:  #3a4060;

  --accent-primary: #00e5ff;   /* cyan */
  --accent-warm:    #ff6b35;   /* orange */
  --accent-green:   #00ff88;   /* active/on */
  --accent-red:     #ff3355;   /* mute/danger */
  --accent-gold:    #ffd166;   /* master */
  --accent-dim:     #2a3050;

  --text-bright:    #e8eaf2;
  --text-mid:       #8890b0;
  --text-dim:       #454d68;
  --text-mono:      #00e5ff;

  --fader-track:    #1a1d28;
  --fader-fill:     linear-gradient(to top, #00e5ff 0%, #0099bb 60%, #005577 100%);
  --fader-master:   linear-gradient(to top, #ffd166 0%, #cc9933 60%, #665500 100%);
  --fader-thumb:    #e8eaf2;

  --vu-off:         #151820;
  --vu-low:         #00cc66;
  --vu-mid:         #aacc00;
  --vu-peak:        #ff3355;

  --shadow-channel: 0 4px 32px rgba(0,0,0,0.6);
  --shadow-glow:    0 0 20px rgba(0,229,255,0.08);
  --shadow-mute:    0 0 16px rgba(255,51,85,0.3);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 50px;

  --channel-width: 160px;
  --fader-height: 160px;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-base);
  color: var(--text-bright);
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0,229,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(255,107,53,0.03) 0%, transparent 60%);
}

/* ─── HEADER ─── */
.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.studio-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.3;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-mark {
  font-size: 28px;
  color: var(--accent-primary);
  line-height: 1;
  text-shadow: 0 0 20px var(--accent-primary);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 20px var(--accent-primary); opacity: 1; }
  50% { text-shadow: 0 0 40px var(--accent-primary), 0 0 60px rgba(0,229,255,0.3); opacity: 0.85; }
}

.studio-label {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 3px;
}

.song-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-bright);
  line-height: 1;
  text-transform: uppercase;
}

.header-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-control);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
}

.meta-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.meta-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.3s, box-shadow 0.3s;
}

.status-dot.playing {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── CONSOLE BOARD ─── */
.console-board {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 24px 28px 0;
}

.channel-strip-wrapper {
  display: flex;
  gap: 4px;
  min-width: max-content;
  height: 100%;
  padding-bottom: 16px;
}

/* ─── CHANNEL STRIP ─── */
.channel-strip {
  position: relative;
  width: var(--channel-width);
  background: var(--bg-channel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: visible;
}

.channel-strip:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-channel);
}

.channel-strip.is-muted {
  opacity: 0.6;
}

.channel-strip.is-muted .channel-glow {
  opacity: 0;
}

.channel-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--accent-primary);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.master-glow {
  background: var(--accent-gold);
}

.master-strip {
  border-color: var(--border-mid);
  background: var(--bg-channel-alt);
}

.master-divider {
  display: none;
}

/* ─── CHANNEL LABEL ─── */
.channel-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.track-icon {
  font-size: 18px;
  color: var(--accent-primary);
  text-shadow: 0 0 12px var(--accent-primary);
  line-height: 1;
}

.master-strip .track-icon {
  color: var(--accent-gold);
  text-shadow: 0 0 12px var(--accent-gold);
}

.track-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-bright);
  text-transform: uppercase;
}

/* ─── VU METER ─── */
.vu-meter {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 50px;
  width: 100%;
  padding: 4px 4px 0;
  background: var(--bg-control);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.vu-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: var(--vu-off);
  transition: background 0.08s, height 0.08s;
  min-height: 3px;
}

.vu-bar.active[data-index="0"],
.vu-bar.active[data-index="1"],
.vu-bar.active[data-index="2"],
.vu-bar.active[data-index="3"] { background: var(--vu-low); }

.vu-bar.active[data-index="4"],
.vu-bar.active[data-index="5"],
.vu-bar.active[data-index="6"],
.vu-bar.active[data-index="7"],
.vu-bar.active[data-index="8"] { background: var(--vu-mid); }

.vu-bar.active[data-index="9"],
.vu-bar.active[data-index="10"],
.vu-bar.active[data-index="11"] { background: var(--vu-peak); }

/* ─── FADER / VOLUME SLIDER ─── */
.fader-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.fader-track-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.fader-container {
  position: relative;
  height: var(--fader-height);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.fader-rail {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 100%;
  background: var(--fader-track);
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.fader-fill {
  width: 100%;
  background: var(--fader-fill);
  border-radius: 4px;
  transition: height 0.05s;
}

.master-fill {
  background: var(--fader-master);
}

/* Vertical range input */
input[type="range"].volume-fader {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 100%;
  height: var(--fader-height);
  position: relative;
  z-index: 2;
  cursor: pointer;
  background: transparent;
  outline: none;
  border: none;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

input[type="range"].volume-fader::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 14px;
  background: linear-gradient(135deg, #d0d4e8 0%, #a8adc4 40%, #c4c8dc 100%);
  border-radius: 3px;
  border: 1px solid #555;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  cursor: grab;
}

input[type="range"].volume-fader::-moz-range-thumb {
  width: 32px;
  height: 14px;
  background: linear-gradient(135deg, #d0d4e8 0%, #a8adc4 40%, #c4c8dc 100%);
  border-radius: 3px;
  border: 1px solid #555;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  cursor: grab;
}

input[type="range"].volume-fader::-webkit-slider-thumb:active {
  cursor: grabbing;
  background: linear-gradient(135deg, #ffffff 0%, #c0c4d8 40%, #e0e4f4 100%);
}

input[type="range"].volume-fader::-moz-range-thumb:active {
  cursor: grabbing;
  background: linear-gradient(135deg, #ffffff 0%, #c0c4d8 40%, #e0e4f4 100%);
}

input[type="range"].volume-fader::-webkit-slider-runnable-track {
  width: 8px;
  background: transparent;
}

input[type="range"].volume-fader::-moz-range-track {
  width: 8px;
  background: transparent;
}

input[type="range"].master-fader::-webkit-slider-thumb {
  background: linear-gradient(135deg, #ffd166 0%, #cc9933 40%, #ffdd88 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 10px rgba(255,209,102,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

input[type="range"].master-fader::-moz-range-thumb {
  background: linear-gradient(135deg, #ffd166 0%, #cc9933 40%, #ffdd88 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 10px rgba(255,209,102,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.fader-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text-mono);
  letter-spacing: 0.05em;
  background: var(--bg-control);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  min-width: 32px;
  text-align: center;
}

/* ─── MUTE BUTTON ─── */
.mute-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-control);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  color: var(--text-mid);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 7px 12px;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.mute-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-red);
  opacity: 0;
  transition: opacity 0.2s;
}

.mute-btn:hover {
  border-color: var(--accent-red);
  color: var(--text-bright);
}

.mute-btn.muted {
  background: rgba(255,51,85,0.15);
  border-color: var(--accent-red);
  color: var(--accent-red);
  box-shadow: var(--shadow-mute);
}

.mute-btn.muted .mute-icon {
  color: var(--accent-red);
}

.mute-icon {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.master-mute-btn {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.master-mute-btn.muted {
  background: rgba(255,209,102,0.15);
  box-shadow: 0 0 16px rgba(255,209,102,0.3);
}

/* ─── TRACK SELECTOR ─── */
.track-selector {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.selector-header {
  font-family: 'Share Tech Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.selector-box {
  background: var(--bg-control);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  cursor: default;
  user-select: none;
  position: relative;
  transition: border-color 0.2s;
}

.selector-box.has-dropdown {
  cursor: pointer;
}

.selector-box.has-dropdown:hover {
  border-color: var(--accent-primary);
}

.selector-box[data-open="true"] {
  border-color: var(--accent-primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  box-shadow: 0 0 12px rgba(0,229,255,0.15);
}

.selector-current {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  flex-wrap: wrap;
}

.selector-id {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  background: var(--bg-elevated);
  padding: 1px 5px;
  border-radius: 2px;
  flex-shrink: 0;
}

.selector-name {
  font-family: 'Exo 2', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-bright);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-arrow {
  color: var(--accent-primary);
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.selector-box[data-open="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.selector-dropdown {
  display: none;
  position: fixed;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-primary);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 500;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.selector-box[data-open="true"] .selector-dropdown {
  display: block;
}

.dropdown-item {
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-subtle);
}

.dropdown-item:last-child { border-bottom: none; }

.dropdown-item:hover { background: rgba(0,229,255,0.08); }

.dropdown-item.active {
  background: rgba(0,229,255,0.06);
}

.di-id {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
}

.di-name {
  display: block;
  font-family: 'Exo 2', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-bright);
}

.di-contrib {
  display: block;
  font-size: 9px;
  color: var(--accent-primary);
  opacity: 0.7;
}

.contributor-tag {
  font-size: 10px;
  color: var(--accent-primary);
  opacity: 0.7;
  font-family: 'Exo 2', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.soundfile-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── MASTER INFO ─── */
.master-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.master-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.master-info-row span:first-child {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.master-info-row span:last-child {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-gold);
}

/* ─── TRANSPORT BAR ─── */
.transport-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  flex-shrink: 0;
}

.transport-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.2;
}

.transport-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.time-display {
  font-family: 'Share Tech Mono', monospace;
  font-size: 20px;
  color: var(--accent-green);
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(0,255,136,0.4);
  min-width: 110px;
}

.waveform-display {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 4px 8px;
  background: var(--bg-control);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.wave-bar {
  width: 3px;
  background: var(--accent-dim);
  border-radius: 1px;
  transition: background 0.3s, transform 0.1s;
  transform-origin: center;
}

.wave-bar.playing {
  background: var(--accent-primary);
  animation: wave-dance var(--duration, 0.5s) ease-in-out infinite alternate;
}

@keyframes wave-dance {
  from { transform: scaleY(0.3); opacity: 0.6; }
  to   { transform: scaleY(1.2); opacity: 1; }
}

/* ─── TRANSPORT BUTTONS ─── */
.transport-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.transport-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.transport-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: inherit;
}

.btn-icon {
  font-size: 12px;
  line-height: 1;
}

.play-btn {
  background: rgba(0,255,136,0.1);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.play-btn:hover {
  background: rgba(0,255,136,0.2);
  box-shadow: 0 0 24px rgba(0,255,136,0.25);
  transform: translateY(-1px);
}

.play-btn.playing {
  background: rgba(0,255,136,0.15);
  box-shadow: 0 0 32px rgba(0,255,136,0.35);
}

.stop-btn {
  background: rgba(255,51,85,0.1);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.stop-btn:hover {
  background: rgba(255,51,85,0.2);
  box-shadow: 0 0 24px rgba(255,51,85,0.25);
  transform: translateY(-1px);
}

/* ─── HOME LINK ─── */
.home-link {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-pill);
  padding: 5px 14px 5px 10px;
  text-decoration: none;
  color: var(--text-dim);
  transition: all 0.2s;
  margin-left: 6px;
}

.home-link:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 14px rgba(0,229,255,0.12);
}

.home-link-icon {
  font-size: 14px;
  line-height: 1;
  transition: text-shadow 0.2s;
}

.home-link:hover .home-link-icon {
  text-shadow: 0 0 12px var(--accent-primary);
}

.home-link-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* ─── CONTRIBUTE / MIX BUTTONS ─── */
.transport-btn-divider {
  width: 1px;
  height: 36px;
  background: var(--border-mid);
  margin: 0 8px;
  flex-shrink: 0;
}

.contribute-btn {
  background: rgba(255,107,53,0.1);
  border-color: var(--accent-warm);
  color: var(--accent-warm);
}

.contribute-btn:hover {
  background: rgba(255,107,53,0.2);
  box-shadow: 0 0 24px rgba(255,107,53,0.25);
  transform: translateY(-1px);
}

.mix-btn {
  background: rgba(255,209,102,0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.mix-btn:hover {
  background: rgba(255,209,102,0.2);
  box-shadow: 0 0 24px rgba(255,209,102,0.25);
  transform: translateY(-1px);
}

/* ─── TRANSPORT RIGHT ─── */
.transport-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.track-count-display {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}

/* ─── CONTRIBUTE MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  margin: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,107,53,0.08);
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-warm), transparent);
  opacity: 0.7;
}

/* ─── MODAL HEADER ─── */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  font-size: 20px;
  color: var(--accent-warm);
  text-shadow: 0 0 12px var(--accent-warm);
}

.modal-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-bright);
}

.modal-close {
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 13px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  box-shadow: 0 0 10px rgba(255,51,85,0.2);
}

/* ─── MODAL BODY ─── */
.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.modal-select-wrap {
  position: relative;
}

.modal-select {
  width: 100%;
  appearance: none;
  background: var(--bg-control);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  color: var(--text-bright);
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 36px 10px 14px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-select:focus {
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 2px rgba(255,107,53,0.15);
}

.modal-select option {
  background: var(--bg-elevated);
  color: var(--text-bright);
}

.modal-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-warm);
  font-size: 14px;
  pointer-events: none;
}

/* Dropzone */
.modal-dropzone {
  position: relative;
  background: var(--bg-control);
  border: 2px dashed var(--border-mid);
  border-radius: var(--radius-md);
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  overflow: hidden;
}

.modal-dropzone:hover,
.modal-dropzone.drag-over {
  border-color: var(--accent-warm);
  background: rgba(255,107,53,0.05);
}

.modal-dropzone.has-file {
  border-style: solid;
  border-color: var(--accent-green);
  background: rgba(0,255,136,0.04);
}

.modal-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px;
  pointer-events: none;
  text-align: center;
}

.dropzone-icon {
  font-size: 22px;
  color: var(--accent-warm);
  opacity: 0.7;
  line-height: 1;
}

.dropzone-main {
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
}

.dropzone-sub {
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  color: var(--text-dim);
}

.dropzone-browse {
  color: var(--accent-warm);
  text-decoration: underline;
  cursor: pointer;
}

.dropzone-types {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-top: 2px;
}

.dropzone-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  width: 100%;
  pointer-events: none;
}

.dropzone-file-icon {
  font-size: 20px;
  color: var(--accent-green);
  flex-shrink: 0;
}

.dropzone-filename {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--accent-green);
  letter-spacing: 0.05em;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone-clear {
  pointer-events: all;
  background: transparent;
  border: 1px solid rgba(255,51,85,0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-red);
  font-size: 11px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 3;
  position: relative;
  transition: all 0.2s;
}

.dropzone-clear:hover {
  background: rgba(255,51,85,0.1);
}

/* Checkbox */
.modal-field-check { margin-top: 2px; }

.modal-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.modal-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.modal-checkbox-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  background: var(--bg-control);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 1px;
}

.modal-checkbox:checked + .modal-checkbox-custom {
  background: rgba(255,107,53,0.15);
  border-color: var(--accent-warm);
  box-shadow: 0 0 8px rgba(255,107,53,0.2);
}

.modal-checkbox:checked + .modal-checkbox-custom::after {
  content: '✓';
  font-size: 11px;
  color: var(--accent-warm);
  font-weight: 700;
}

.modal-checkbox-text {
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ─── MODAL FOOTER ─── */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border-subtle);
}

.modal-cancel-btn {
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-cancel-btn:hover {
  border-color: var(--text-mid);
  color: var(--text-bright);
}

.modal-upload-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,53,0.12);
  border: 1.5px solid var(--accent-warm);
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-upload-btn:hover:not(:disabled) {
  background: rgba(255,107,53,0.22);
  box-shadow: 0 0 24px rgba(255,107,53,0.25);
  transform: translateY(-1px);
}

.modal-upload-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ─── MODAL SUCCESS STATE ─── */
.modal-success {
  position: absolute;
  inset: 0;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  text-align: center;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,255,136,0.1);
  border: 2px solid var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-green);
  box-shadow: 0 0 24px rgba(0,255,136,0.2);
}

.success-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green);
}

.success-sub {
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 8px;
}

.modal-success .modal-upload-btn {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(0,255,136,0.1);
}

.modal-success .modal-upload-btn:hover {
  background: rgba(0,255,136,0.2);
  box-shadow: 0 0 24px rgba(0,255,136,0.2);
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { height: 4px; width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .studio-header { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .console-board { padding: 12px 12px 0; }
  .transport-bar { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .transport-left { order: 2; }
  .transport-controls { order: 1; width: 100%; justify-content: center; }
}