/* mixer.css — analog mixing console: 5 channels, fader, pan knob, LEDs. */

.mixer {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.05)), var(--panel);
  border: 1px solid #050B10;
  border-radius: 6px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55);
}

.mixer-channel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 96px;
  padding: 8px;
  background: linear-gradient(180deg, #163E4E, #102F3D);
  border: 1px solid var(--edge);
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: border-color 100ms ease;
}
.mixer-channel:hover { border-color: var(--edge-light); }
.mixer-channel.selected { border-color: var(--accent-bright); box-shadow: 0 0 0 1px var(--accent-bright), 0 2px 8px rgba(0, 0, 0, 0.5); }

.mixer-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.mixer-name { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--text); }
.hw-led-channel { width: 8px; height: 8px; }

/* Pan knob (rotary) */
.mixer-pan { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.mixer-pan .hw-tag { font-size: 8px; }
.mixer-knob {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: relative;
  border: 1px solid #050B10;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 32%),
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.06) 0deg 4deg, transparent 4deg 8deg),
    radial-gradient(circle at 32% 28%, #3A4D59 0%, var(--knob-cap) 46%, #0A1218 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), inset 0 -4px 6px rgba(0, 0, 0, 0.6), 0 3px 5px rgba(0, 0, 0, 0.6);
  cursor: ns-resize;
  --deg: 0deg;
}
.mixer-knob::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  background: linear-gradient(180deg, #FFFFFF, #E8D8C8);
  border-radius: 1px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  transform: rotate(var(--deg));
  transform-origin: 50% 12px;
}

/* LED meter */
.mixer-meter {
  height: 60px;
  background: linear-gradient(90deg, #050B10, #0A1218 50%, #050B10);
  border: 1px solid #050B10;
  border-radius: 3px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
}
.mixer-meter-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  transform-origin: bottom;
  transform: scaleY(0.04);
  background: linear-gradient(to top,
    #3E7C88 0%, #4F8F93 38%,
    #7E9A93 52%, #C4876B 62%,
    #D99B7F 76%, #A56F63 90%, #8C4A3E 100%);
  box-shadow: 0 0 8px rgba(217, 155, 127, 0.4);
  will-change: transform;
  transition: transform 40ms linear;
}

/* Mute / solo buttons */
.mixer-buttons { display: flex; gap: 6px; justify-content: center; }
.mixer-btn { width: 36px; min-width: 36px; height: 26px; font-size: 11px; padding: 0; }
.mixer-btn.mute.active {
  background: linear-gradient(180deg, #B0584E 0%, #6B4439 100%);
  box-shadow: 0 0 8px rgba(176, 88, 78, 0.6);
}
.mixer-btn.solo.active {
  background: linear-gradient(180deg, #B8794E 0%, #7A4E42 100%);
  box-shadow: 0 0 8px rgba(217, 155, 127, 0.6);
}

/* Fader */
.mixer-fader {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  flex: 1;
}
.mixer-fader .hw-tag { font-size: 8px; }
.mixer-fader-track {
  width: 14px;
  height: 90px;
  border-radius: 4px;
  background: linear-gradient(90deg, #050B10, #0A1218 50%, #050B10);
  border: 1px solid #050B10;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.85);
  position: relative;
}
.mixer-fader-cap {
  position: absolute;
  left: -3px;
  width: 18px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid #050B10;
  background: linear-gradient(180deg, #FBF7F2 0%, var(--cap-color) 45%, #C9BDB1 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 2px 4px rgba(0, 0, 0, 0.55);
  cursor: ns-resize;
}
.mixer-fader-level { font-size: 9px; color: var(--text-faint); }
