/* ══════════════════════════════════════════════
   CONTROLS.CSS — Buttons, port strip, EQ panel
   IUS DRRP
══════════════════════════════════════════════ */

/* ── Transport row ── */
.transport-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px 8px;
  background: linear-gradient(180deg, #b0b2b5 0%, #a0a2a5 100%);
  border-top: 1px solid rgba(255,255,255,0.3);
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

/* Physical button base */
.ctrl-btn {
  width: 44px;
  height: 36px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.08s ease;
  background:
    linear-gradient(160deg,
      var(--btn-hi) 0%,
      var(--btn-face) 40%,
      var(--btn-shadow) 100%);
  box-shadow:
    0 3px 0 rgba(0,0,0,0.35),
    0 4px 6px rgba(0,0,0,0.3),
    inset 0 1px 1px rgba(255,255,255,0.5),
    inset 0 -1px 1px rgba(0,0,0,0.1);
  outline: none;
}

.ctrl-btn svg {
  width: 16px;
  height: 16px;
  stroke: rgba(40,42,48,0.85);
  fill: rgba(40,42,48,0.85);
  stroke-width: 0;
}

.ctrl-btn:hover {
  background:
    linear-gradient(160deg,
      #eceef0 0%,
      #d4d6d9 40%,
      #9a9c9f 100%);
  box-shadow:
    0 3px 0 rgba(0,0,0,0.35),
    0 5px 8px rgba(0,0,0,0.35),
    inset 0 1px 1px rgba(255,255,255,0.6),
    0 0 8px rgba(255,255,255,0.1);
}

.ctrl-btn:active, .ctrl-btn.pressed {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.35),
    0 1px 3px rgba(0,0,0,0.25),
    inset 0 1px 2px rgba(0,0,0,0.15);
}

/* Play button slightly larger */
.play-btn {
  width: 50px;
  height: 40px;
  border-radius: 8px;
  background:
    linear-gradient(160deg,
      #d4d6d9 0%,
      #b8babd 40%,
      #888a8d 100%);
}

/* SVG icons for transport */
.ctrl-btn svg polygon, .ctrl-btn svg rect, .ctrl-btn svg line {
  stroke: rgba(40,42,48,0.8);
  fill: rgba(40,42,48,0.8);
}

.ctrl-btn svg line {
  stroke-width: 2.5;
  fill: none;
}

/* ── Action/mode row ── */
.action-row {
  display: flex;
  gap: 5px;
  padding: 8px 12px 10px;
  background: linear-gradient(180deg, #a0a2a5 0%, #909295 100%);
}

.mode-btn {
  flex: 1;
  height: 32px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(40,42,48,0.75);
  background:
    linear-gradient(160deg,
      var(--btn-hi) 0%,
      var(--btn-face) 50%,
      var(--btn-shadow) 100%);
  box-shadow:
    0 2px 0 rgba(0,0,0,0.3),
    0 3px 5px rgba(0,0,0,0.25),
    inset 0 1px 1px rgba(255,255,255,0.45);
  transition: all 0.1s ease;
  position: relative;
  overflow: hidden;
  outline: none;
}

.mode-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: opacity 0.3s ease;
}

.mode-btn:hover::before { opacity: 1; }

.mode-btn:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.3),
    inset 0 1px 2px rgba(0,0,0,0.1);
}

.mode-btn.active {
  background:
    linear-gradient(160deg,
      #888a8d 0%,
      #707275 40%,
      #505255 100%);
  color: rgba(220,222,225,0.9);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.4),
    inset 0 2px 4px rgba(0,0,0,0.25),
    inset 0 0 8px rgba(48,232,255,0.08);
}

.mode-btn.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--oled-cyan);
  box-shadow: 0 0 6px var(--oled-cyan);
}

/* Radio button special accent */
#btnRadio.active::after { background: var(--oled-amber); box-shadow: 0 0 6px var(--oled-amber); }
#btnRecord.active::after { background: var(--oled-red); box-shadow: 0 0 6px var(--oled-red); }

/* EQ button gets a different flex weight */
.eq-btn {
  flex: 0.7;
}

/* ── Port strip ── */
.port-strip {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 7px 12px 10px;
  background: linear-gradient(180deg, #808285 0%, #6a6c70 100%);
  border-top: 1px solid rgba(0,0,0,0.2);
}

.port {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: default;
}

.port-hole {
  width: 14px;
  height: 8px;
  border-radius: 3px;
  background: #1a1c20;
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.8),
    0 1px 1px rgba(255,255,255,0.1);
  border: 1px solid #0a0c10;
}

.port-hole.round {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.port span {
  font-family: var(--font-mono);
  font-size: 6px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}

/* ── EQ overlay panel ── */
.eq-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

.eq-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.eq-panel {
  background: linear-gradient(160deg, #141418, #0e0e12);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  width: 340px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.7),
    0 0 40px rgba(48,232,255,0.05);
  animation: panelIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.eq-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-bottom: 20px;
}

.eq-controls {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  height: 120px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.eq-slider-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.eq-slider-wrap input[type="range"] {
  -webkit-appearance: slider-vertical;
  writing-mode: vertical-lr;
  direction: rtl;
  height: 90px;
  width: 16px;
  accent-color: var(--oled-cyan);
  cursor: pointer;
}

.eq-slider-label {
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

.eq-presets {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.eq-preset {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.eq-preset.active,
.eq-preset:hover {
  border-color: var(--oled-cyan);
  color: var(--oled-cyan);
  box-shadow: 0 0 8px rgba(48,232,255,0.2);
  background: rgba(48,232,255,0.05);
}

.eq-close {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.eq-close:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
}

/* utility */
.hidden { display: none !important; }
