/* ── Admin DJ Panel Styles ────────────────────────────────────────────────── */

#pedals.hidden {
  display: none;
}

.admin-badge {
  font-size: 34px;
  letter-spacing: 0.15em;
  color: #ff00b3;
  filter: drop-shadow(6px 13px 7px #00000063);
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.listeners {
  color: #888;
  font-size: 16px;
}

/* ── Monitor Section ──────────────────────────────────────────────────── */

#monitor-section {
  margin-bottom: 16px;
}

.monitor-strip {
  padding: 14px 20px;
  max-width: 600px;
}

.monitor-header {
  margin-bottom: 10px;
}

.monitor-label {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.15em;
  color: var(--dim);
}

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

.monitor-audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid #333;
  color: #2c00ff;
  background-color: #e4d7fa;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1;
}

.monitor-audio-btn:hover {
  color: #888;
  border-color: #555;
}

.monitor-audio-btn.active {
  color: #66ccbb;
  border-color: #66ccbb;
}

.monitor-audio-btn.active svg {
  filter: drop-shadow(0 0 3px rgba(102, 204, 187, 0.5));
}

.monitor-layers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.monitor-layer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}

.monitor-idx {
  font-size: 16px;
  color: var(--dim);
  min-width: 24px;
}

.monitor-state {
  font-size: 16px;
  letter-spacing: 0.08em;
  min-width: 22px;
  color: var(--dim);
}

.monitor-state[data-state="playing"] {
  color: var(--fg);
}

.monitor-state[data-state="gap"] {
  color: var(--dim);
}

.monitor-file {
  font-size: 16px;
  color: var(--fg);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.05s linear;
}

.monitor-meta {
  font-size: 14px;
  color: var(--dim);
  min-width: 70px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.monitor-bar-wrap {
  width: 60px;
  height: 4px;
  background: var(--bar-bg);
  flex-shrink: 0;
}

.monitor-bar-fill {
  height: 100%;
  background: var(--fg);
  width: 0%;
  transition: width 0.3s linear;
}

/* ── Pedals Section (master module + effect pedals in one row) ──────────── */

#pedals {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  flex-wrap: wrap;
}

.pedal {
  flex: 0 0 auto;
  /* width: 200px; */
  min-width: 200px;
  flex-basis: min-content;
  transition: transform 0.2s ease;
  filter: brightness(4) hue-rotate(31deg) saturate(2.2);
}

.pedal:hover {
  /* no lift animation */
}


.pedal-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

/* ── SVG Knob Interaction ────────────────────────────────────────────────── */

.knob-group {
  cursor: pointer;
  transition: filter 0.15s ease;
}

.knob-group:hover {
  filter: brightness(1.3);
}

.fader-thumb {
  cursor: grab;
  transition: filter 0.15s ease;
}

.fader-thumb:hover {
  filter: brightness(1.3);
}

.footswitch {
  cursor: pointer;
  transition: filter 0.15s ease;
}

.footswitch:hover {
  filter: brightness(1.4);
}

/* ── LED Glow ────────────────────────────────────────────────────────────── */

.led {
  pointer-events: none;
  transition: fill 0.3s ease, filter 0.3s ease;
}

.led.led-on {
  animation: led-breathe 4s ease-in-out infinite;
}

@keyframes led-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.pedal[data-send="reverb"] .led.led-on {
  filter: drop-shadow(0 0 4px #88aadd) drop-shadow(0 0 10px rgba(136,170,221,0.5));
}
.pedal[data-send="echo"] .led.led-on {
  filter: drop-shadow(0 0 4px #ddaa66) drop-shadow(0 0 10px rgba(221,170,102,0.5));
}
.pedal[data-send="distortion"] .led.led-on {
  filter: drop-shadow(0 0 4px #dd5566) drop-shadow(0 0 10px rgba(221,85,102,0.5));
}
.pedal[data-send="chorus"] .led.led-on {
  filter: drop-shadow(0 0 4px #66ccbb) drop-shadow(0 0 10px rgba(102,204,187,0.5));
}

/* Mode buttons */
.mode-btn {
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.mode-btn:hover {
  opacity: 0.8;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  #pedals {
    gap: 12px;
  }

  .pedal {
    width: 180px;
  }

  .master-module {
    width: 200px;
  }
}

@media (max-width: 700px) {
  .pedal {
    width: 46%;
  }

  .master-module {
    width: 46%;
  }
}
