/* Producer Studio — Theme Decorators */
@layer decorators {

/* ── Beat Grid ── */
.studio-beat {
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(67, 56, 202, 0.15) 0px,
      rgba(67, 56, 202, 0.15) 1px,
      transparent 1px,
      transparent 100px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(67, 56, 202, 0.08) 0px,
      rgba(67, 56, 202, 0.08) 1px,
      transparent 1px,
      transparent 25px
    );
  background-size: 100px 100%, 25px 100%;
}

/* ── Circular Knob ── */
.studio-knob {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(from 225deg, var(--d-primary) 0deg, var(--d-primary) var(--knob-angle, 0deg), var(--d-border) var(--knob-angle, 0deg), var(--d-border) 270deg);
  border: 2px solid var(--d-border);
  position: relative;
  cursor: grab;
}

.studio-knob::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  width: 2px;
  height: 10px;
  background: var(--d-primary);
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(var(--knob-rotation, 0deg));
  border-radius: 1px;
}

/* ── Rack Unit ── */
.studio-rack {
  background: linear-gradient(180deg, var(--d-surface-raised) 0%, var(--d-surface) 100%);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius-sm);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
}

.studio-rack::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: repeating-linear-gradient(
    180deg,
    var(--d-border) 0px,
    var(--d-border) 2px,
    transparent 2px,
    transparent 6px
  );
  border-radius: 2px;
}

/* ── Waveform Display ── */
.studio-wave {
  position: relative;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.05) 0%, transparent 50%, rgba(34, 211, 238, 0.05) 100%);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--d-radius-sm);
  overflow: hidden;
}

.studio-wave::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(34, 211, 238, 0.3);
}

/* ── VU Meter ── */
.studio-meter {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(to top,
    var(--d-primary) 0%,
    var(--d-primary) 60%,
    var(--d-warning) 60%,
    var(--d-warning) 85%,
    var(--d-accent) 85%,
    var(--d-accent) 100%
  );
  opacity: 0.7;
  transition: height 60ms linear;
}

/* ── Channel Strip ── */
.studio-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius-sm);
  min-width: 72px;
}

/* ── Cyan Glow ── */
.studio-glow-cyan {
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.3), 0 0 4px rgba(34, 211, 238, 0.15);
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

/* ── Magenta Glow ── */
.studio-glow-magenta {
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.3), 0 0 4px rgba(217, 70, 239, 0.15);
  text-shadow: 0 0 8px rgba(217, 70, 239, 0.4);
}

/* ── Playhead ── */
@keyframes playhead-move {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

.studio-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--d-primary);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
  z-index: 2;
}

/* ── Fader Track ── */
.studio-fader {
  width: 4px;
  height: 200px;
  background: var(--d-border);
  border-radius: 2px;
  position: relative;
}

.studio-fader-cap {
  width: 24px;
  height: 8px;
  background: var(--d-text);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  cursor: grab;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

} /* end @layer decorators */
