/* ============================================
   MusicPractice — Mixing Console Theme
   ============================================ */

:root {
  --studio-bg: #0D0D0D;
  --studio-surface: #141414;
  --studio-panel: #1A1A1A;
  --studio-border: rgba(255, 255, 255, 0.06);
  --studio-text: #E8E0D4;
  --studio-muted: #6B6560;
  --studio-dim: #3A3530;
  --studio-amber: #D97706;
  --studio-amber-dim: rgba(217, 119, 6, 0.12);
  --studio-orange: #EA580C;
  --studio-green: #22C55E;
  --studio-red: #EF4444;
  --studio-blue: #3B82F6;
  --studio-glow-amber: 0 0 20px rgba(217, 119, 6, 0.2);
  --studio-glow-green: 0 0 12px rgba(34, 197, 94, 0.3);
  --studio-glow-red: 0 0 12px rgba(239, 68, 68, 0.3);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'JetBrains Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--studio-bg);
  color: var(--studio-text);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

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

/* ============================================
   Top Navigation
   ============================================ */
.studio-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 56px;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid var(--studio-border);
}

.studio-nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.studio-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Nav Avatar Dropdown ── */
.studio-nav-avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  padding: 2px;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
}

.studio-nav-avatar-btn:hover,
.studio-nav-avatar-btn.active {
  background: rgba(255,255,255,0.04);
}

.studio-nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 180px;
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  padding: 0.375rem;
  z-index: 50;
}

.studio-nav-auth {
  position: relative;
}

.studio-nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--studio-muted);
  text-decoration: none;
  transition: all 0.12s;
}

.studio-nav-dropdown-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--studio-text);
}

.studio-nav-dropdown-item svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.studio-nav-dropdown-divider {
  height: 1px;
  background: var(--studio-border);
  margin: 0.25rem 0.5rem;
}

.studio-nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.studio-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--studio-muted);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

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

.studio-nav-link.active {
  color: var(--studio-amber);
  background: var(--studio-amber-dim);
}

/* ============================================
   Main Content
   ============================================ */
.studio-main {
  padding-top: 56px;
  min-height: 100vh;
}

.studio-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ============================================
   Studio Header (page titles)
   ============================================ */
.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.studio-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

/* ============================================
   Bento Grid Dashboard
   ============================================ */
.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.project-card {
  background: var(--studio-panel);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.25s ease;
  position: relative;
}

.project-card:hover {
  border-color: rgba(217, 119, 6, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.project-card:active {
  transform: translateY(-1px);
}

.project-card-art {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--studio-panel));
}

.project-card-art .vinyl-record {
  width: 72px;
  height: 72px;
}

.project-card-body {
  padding: 1rem 1.125rem 1.125rem;
}

.project-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.project-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--studio-muted);
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--studio-border);
}

.input-studio {
  flex: 1;
  background: var(--studio-panel);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-md);
  color: var(--studio-text);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 0.625rem 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-studio::placeholder {
  color: var(--studio-dim);
}

.input-studio:focus {
  border-color: rgba(217, 119, 6, 0.25);
}

.btn-studio {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--studio-amber);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: var(--studio-glow-amber);
}

.btn-studio:hover {
  background: #E07B0E;
  box-shadow: 0 0 24px rgba(217, 119, 6, 0.3);
  transform: translateY(-1px);
}

.btn-studio:active {
  transform: translateY(0);
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  border: 1px solid var(--studio-border);
  background: transparent;
  color: var(--studio-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  color: var(--studio-text);
  border-color: var(--studio-dim);
}

.filter-btn.active {
  background: var(--studio-amber-dim);
  color: var(--studio-amber);
  border-color: rgba(217, 119, 6, 0.3);
}

/* ============================================
   Mixing Console (Player)
   ============================================ */
.console-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* --- Transport Section --- */
.console-transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--studio-panel);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-lg);
}

.transport-info {
  min-width: 0;
  flex: 1;
}

.transport-badge {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--studio-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.btn-edit-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.5625rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--studio-amber);
  background: transparent;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-edit-sm:hover {
  background: var(--studio-amber-dim);
  border-color: rgba(217, 119, 6, 0.4);
  box-shadow: var(--studio-glow-amber);
}

.transport-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transport-meta {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--studio-muted);
  margin-top: 0.125rem;
}

.transport-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* --- Transport Buttons --- */
.btn-transport {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: var(--studio-amber);
  color: #fff;
  box-shadow: var(--studio-glow-amber);
  flex-shrink: 0;
}

.btn-transport:hover {
  background: var(--studio-orange);
  transform: scale(1.05);
}

.btn-transport:active { transform: scale(0.95); }
.btn-transport:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-transport-sm {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--studio-border);
  border-radius: 50%;
  color: var(--studio-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-transport-sm:hover {
  color: var(--studio-text);
  border-color: var(--studio-dim);
  background: rgba(255, 255, 255, 0.03);
}

/* --- Progress Bar --- */
.progress-strip {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}

.progress-strip-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--studio-amber), var(--studio-orange));
  border-radius: 4px;
  transition: width 0.1s linear;
}

.progress-strip::before {
  content: '';
  position: absolute;
  inset: -10px;
  z-index: 1;
}

.progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--studio-muted);
  margin-top: 0.375rem;
}

/* --- Master Volume Strip --- */
.master-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--studio-panel);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-lg);
}

.master-label {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  color: var(--studio-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  width: 4rem;
}

.master-fader-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

/* --- Visualizer Canvas --- */
/* --- Channel Strip Mixer --- */
.mixer {
  background: var(--studio-panel);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mixer-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--studio-border);
}

.mixer-header-label {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  color: var(--studio-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mixer-header-count {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  color: var(--studio-dim);
}

.channel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  border-bottom: 1px solid var(--studio-border);
  transition: background 0.15s ease;
}

.channel:last-child { border-bottom: none; }
.channel:hover { background: rgba(255, 255, 255, 0.015); }

.channel-num {
  width: 1.25rem;
  font-size: 0.625rem;
  font-family: var(--font-mono);
  color: var(--studio-dim);
  text-align: right;
  flex-shrink: 0;
}

.channel-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--studio-amber-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon svg {
  width: 12px;
  height: 12px;
  color: var(--studio-amber);
}

.channel-name {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Channel Waveform (mini) --- */
.channel-waveform {
  width: 100px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1px;
}

.channel-waveform .bar {
  flex: 1;
  background: var(--studio-dim);
  border-radius: 1px;
  min-height: 2px;
  transition: background 0.2s ease, height 0.1s ease;
}

.channel-waveform .bar.active {
  background: var(--studio-amber);
}

/* --- Mute / Solo Buttons --- */
.btn-mute, .btn-solo {
  width: 32px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--studio-border);
  font-size: 0.5625rem;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
  flex-shrink: 0;
  background: transparent;
}

.btn-mute {
  color: var(--studio-muted);
}

.btn-mute.active {
  background: rgba(239, 68, 68, 0.15);
  color: var(--studio-red);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

.btn-solo {
  color: var(--studio-muted);
}

.btn-solo.active {
  background: rgba(217, 119, 6, 0.15);
  color: var(--studio-amber);
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: 0 0 8px rgba(217, 119, 6, 0.2);
}

/* --- Vertical Fader --- */
.fader-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 120px;
  flex-shrink: 0;
}

input[type="range"].fader {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  display: block;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

input[type="range"].fader::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
}

input[type="range"].fader::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--studio-text);
  margin-top: -5px;
  cursor: ew-resize;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: box-shadow 0.15s;
}

input[type="range"].fader::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 4px rgba(232, 224, 212, 0.15), 0 2px 8px rgba(0,0,0,0.4);
}

input[type="range"].fader::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
}

input[type="range"].fader::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: var(--studio-text);
  cursor: ew-resize;
}

.fader-track {
  flex: 1;
  display: flex;
  align-items: center;
  height: 28px;
  min-height: 28px;
  cursor: pointer;
  background: transparent;
}

.fader-value {
  width: 2rem;
  text-align: right;
  font-size: 0.625rem;
  font-family: var(--font-mono);
  color: var(--studio-muted);
  flex-shrink: 0;
}

/* --- Download Button (channel) --- */
.btn-dl {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--studio-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-dl:hover {
  color: var(--studio-amber);
  background: var(--studio-amber-dim);
}

/* ============================================
   Processing Page
   ============================================ */
.processing-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px - 4rem);
  text-align: center;
  gap: 1.5rem;
}

.processing-turntable {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2A2A2A 0%, #0A0A0A 60%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,255,255,0.04);
  position: relative;
  animation: spin-slow 4s linear infinite;
}

.processing-turntable::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
}

.processing-turntable::after {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: var(--studio-amber);
  box-shadow: 0 0 24px var(--studio-glow-amber);
}

.processing-status {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--studio-amber);
  background: var(--studio-amber-dim);
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.processing-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--studio-amber);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* --- Stem Progress Pills --- */
.stem-progress-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 320px;
  max-width: 100%;
}

.stem-progress-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--studio-panel);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-md);
}

.stem-progress-name {
  font-size: 0.75rem;
  font-weight: 500;
  width: 5rem;
  flex-shrink: 0;
  text-align: left;
}

.stem-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
  overflow: hidden;
}

.stem-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--studio-amber), var(--studio-green));
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease;
}

.stem-progress-status {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  width: 4rem;
  text-align: right;
  color: var(--studio-muted);
}

/* ============================================
   Auth Pages
   ============================================ */
.studio-auth {
  display: flex;
  min-height: calc(100vh - 56px);
}

.studio-auth-visual {
  flex: 1;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--studio-surface);
  position: relative;
  overflow: hidden;
  padding: 3rem;
}

.studio-auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0px,
    transparent 40px,
    rgba(217, 119, 6, 0.02) 40px,
    rgba(217, 119, 6, 0.02) 41px
  );
  opacity: 0.6;
}

.studio-auth-form {
  width: 420px;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  background: var(--studio-bg);
  border-left: 1px solid var(--studio-border);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .studio-auth-visual { display: flex; }
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 767px) {
  .studio-content { padding: 1.25rem 1rem; }
  .studio-nav-links { display: none; }
  .studio-nav-actions .studio-nav-auth { display: none; }
  .studio-nav { padding: 0 1rem; }
  .studio-header h1 { font-size: 1.375rem; }
  .transport-title { font-size: 1.125rem !important; }
  .console-transport { gap: 0.75rem !important; }
  .console-transport > div { gap: 0.75rem !important; }
  .track-art { width: 48px !important; height: 48px !important; }
  .channel-waveform { display: none !important; }
  .fader-wrap { width: 80px !important; }
  .channel { gap: 0.375rem !important; flex-wrap: nowrap !important; }
  .channel-num { display: none; }
  .project-card-art { height: 100px !important; }
  .edit-cover { width: 120px !important; height: 120px !important; }
  .mixer { overflow-x: auto; }
  .mixer::-webkit-scrollbar { height: 3px; }
  .studio-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .studio-content { padding: 0.875rem 0.75rem; }
  .console-transport { gap: 0.5rem !important; }
  .console-transport > div { gap: 0.5rem !important; flex-wrap: wrap !important; }
  .transport-controls { margin-left: 0 !important; }
  .fader-wrap { width: 60px !important; }
  .fader-value { display: none; }
  .btn-transport { width: 40px !important; height: 40px !important; }
  .btn-transport-sm { width: 32px !important; height: 32px !important; }
  .studio-nav { padding: 0 0.75rem; }
}

/* Mobile drawer */
.studio-nav-drawer {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid var(--studio-border);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateY(-120%);
  transition: transform 0.25s ease;
}
.studio-nav-drawer.open { transform: translateY(0); }
.studio-nav-drawer .studio-nav-link { padding: 0.625rem 0.75rem; font-size: 0.875rem; }
.studio-nav-drawer .studio-nav-auth { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.5rem; margin-top: 0.25rem; border-top: 1px solid var(--studio-border); justify-content: space-between; }
.studio-nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-sm);
  color: var(--studio-text);
  cursor: pointer;
  flex-shrink: 0;
}
.studio-nav-toggle:hover { background: rgba(255,255,255,0.04); }
@media (max-width: 767px) {
  .studio-nav-toggle { display: flex; }
  .table-scroll { overflow-x: auto; }
  .hide-mobile { display: none !important; }
}
.studio-nav-toggle svg { width: 18px; height: 18px; }
.table-scroll { overflow-x: auto; }

@media (min-width: 768px) {
  .studio-nav-drawer { display: none !important; }
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--studio-border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--studio-dim); }

/* ============================================
   Animations
   ============================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fade-up { animation: fade-up 0.5s ease both; }
.animate-fade-in { animation: fade-in 0.4s ease both; }
.animate-scale-in { animation: scale-in 0.35s ease both; }

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.3s; }
.delay-7 { animation-delay: 0.35s; }
.delay-8 { animation-delay: 0.4s; }

/* ============================================
   Utilities
   ============================================ */
.glass {
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--studio-border);
}
