/* ============================================
   VU Meter — Stereo LED-segment level meter
   ============================================ */

.vu-meter {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1px;
  height: 100%;
  padding: 2px;
  position: relative;
}

/* Each channel column */
.vu-channel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 8px;
}

/* Individual LED segment */
.vu-segment {
  flex: 1;
  min-height: 2px;
  border-radius: 1px;
  transition: opacity 0.06s ease-out, background 0.06s ease-out;
}

/* Unlit segments — very dim version of their color */
.vu-seg-green {
  background: rgba(0, 200, 0, 0.08);
  box-shadow: none;
}
.vu-seg-yellow {
  background: rgba(220, 200, 0, 0.08);
  box-shadow: none;
}
.vu-seg-red {
  background: rgba(220, 0, 0, 0.08);
  box-shadow: none;
}

/* Lit segments — full color with glow */
.vu-seg-green.vu-lit {
  background: #00cc00;
  box-shadow: 0 0 4px rgba(0, 200, 0, 0.5), inset 0 0 2px rgba(255, 255, 255, 0.15);
}
.vu-seg-yellow.vu-lit {
  background: #ddcc00;
  box-shadow: 0 0 4px rgba(220, 200, 0, 0.5), inset 0 0 2px rgba(255, 255, 255, 0.15);
}
.vu-seg-red.vu-lit {
  background: #dd2200;
  box-shadow: 0 0 6px rgba(220, 0, 0, 0.6), inset 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Peak hold indicator — 50% brightness to show peak has passed */
.vu-seg-green.vu-peak {
  background: rgba(0, 204, 0, 0.5);
  box-shadow: 0 0 3px rgba(0, 200, 0, 0.3);
}
.vu-seg-yellow.vu-peak {
  background: rgba(221, 204, 0, 0.5);
  box-shadow: 0 0 3px rgba(220, 200, 0, 0.3);
}
.vu-seg-red.vu-peak {
  background: rgba(221, 34, 0, 0.5);
  box-shadow: 0 0 4px rgba(220, 0, 0, 0.35);
}

/* dB scale between L and R channels */
.vu-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 2px;
  flex: 0 0 auto;
  min-width: 22px;
  position: relative;
  z-index: 3;
  background: rgba(30, 20, 20, 0.85);
}

.vu-scale-label {
  font-size: 6px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  line-height: 1;
  flex-shrink: 0;
}

/* Segments sit above target line */
.vu-channel {
  position: relative;
  z-index: 2;
}

/* Target level line — behind segments and scale */
.vu-target-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 180, 255, 0.5);
  z-index: 1;
  pointer-events: none;
  border-radius: 1px;
}

