/* © DJFuturo Tools. Todos los derechos reservados. */
/* ============================================================
   DJFuturo — Grabadora de Voz Online
   ============================================================ */

/* ── Reset básico dentro del wrapper ── */
#djf-grabadora-wrapper *,
#djf-grabadora-wrapper *::before,
#djf-grabadora-wrapper *::after {
  box-sizing: border-box;
}

#djf-grabadora-wrapper {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Contenedor raíz ── */
.djf-grabadora-v7zzmultimin {
 /* max-width: 720px; */
  margin: 0 auto;
  padding: 0;
}

/* ============================================================
   HEADER
   ============================================================ */

.djf-grabadora-header {
  padding: 16px 16px 0;
}

.djf-grabadora-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 12px 2px 2px;
  background: linear-gradient(135deg, rgba(248, 208, 88, 0.5), transparent);
  border-radius: 30px;
  width: fit-content;
}

.djf-grabadora-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd95a 0%, #f8c040 100%);
  border: 2px solid #f0b830;
  box-shadow:
    0 2px 8px rgba(248, 208, 88, 0.25),
    0 0 0 3px rgba(248, 208, 88, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.djf-grabadora-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.djf-grabadora-title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

/* ============================================================
   BODY
   ============================================================ */

.djf-grabadora-body {
  background: linear-gradient(180deg, #fbfbfb, #f3f6f9);
  box-shadow: 0 6px 18px rgba(20, 30, 50, 0.06);
  border-radius: 12px;
  margin: 12px 0 0;
  padding: 10px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ── Pantalla idle ── */
.djf-grabadora-idle-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* ── Pantalla grabación ── */
.djf-grabadora-recording-screen {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
}

/* ============================================================
   DISPLAY DE TIEMPO
   ============================================================ */

/* ── Timer inline (pantalla grabación) ── */
.djf-grabadora-timer {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
  min-width: 52px;
  text-align: center;
}

/* ── Timer grande (pantalla idle) ── */
.djf-grabadora-timer--large {
  font-size: 42px;
  letter-spacing: -0.04em;
  min-width: unset;
}

/* Color amarillo cuando está grabando activamente */
.djf-grabadora-timer.recording,
.djf-grabadora-timer span.recording {
  color: #e0a800;
}

/* Color gris cuando está pausado */
.djf-grabadora-timer.paused {
  color: #888;
}

#djf-grabadora-timer-display.recording {
  color: #e0a800;
}

#djf-grabadora-timer-display.paused {
  color: #888;
}

/* ============================================================
   VISUALIZADOR
   ============================================================ */

.djf-grabadora-visualizer-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.djf-grabadora-viz-modes {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 6px;
  width: 100%;
}

.djf-grabadora-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 20px;
  border: 2px solid #ddd;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #555;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  touch-action: manipulation;
}

.djf-grabadora-pill:hover {
  border-color: #bbb;
  background: #fafafa;
  color: #333;
}

.djf-grabadora-pill.active {
  border-color: #f8d058;
  background: rgba(248, 208, 88, 0.1);
  color: #1a1a1a;
  box-shadow:
    0 0 0 2px #f8d058,
    0 0 0 4px rgba(248, 208, 88, 0.15);
}

.djf-grabadora-canvas {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  display: block;
}

/* ============================================================
   CONTROLES
   ============================================================ */

.djf-grabadora-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

/* ── Botón principal circular (Grabar) ── */
.djf-grabadora-btn-primary {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0a800;
  background: linear-gradient(180deg, #fcedbe 0%, #f8c040 100%);
  color: #1a1a1a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 1px rgba(248, 208, 88, 0.1), 0 0 0 10px rgba(248, 208, 88, 0.5), 0 0 0 19px rgba(248, 208, 88, 0.3), 0 0 0 22px rgba(248, 208, 88, 0.05);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
  touch-action: manipulation;
  margin-top: 5px;
}

.djf-grabadora-btn-primary:hover {
  background: linear-gradient(180deg, #ffe170, #f8cc50);
  border-color: #d09000;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 3px 10px rgba(248, 208, 88, 0.5);
}

/* Estado: grabando (pulso animado) */
.djf-grabadora-btn-primary.recording {
  background: linear-gradient(180deg, #f8c040, #e8a800);
  border-color: #c08000;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.15) inset,
    0 0 0 3px rgba(248, 208, 88, 0.3);
  animation: djf-rec-pulse 1.4s ease-in-out infinite;
}

@keyframes djf-rec-pulse {
  0%, 100% { box-shadow: 0 2px 4px rgba(0,0,0,0.15) inset, 0 0 0 3px rgba(248,208,88,0.3); }
  50%       { box-shadow: 0 2px 4px rgba(0,0,0,0.15) inset, 0 0 0 8px rgba(248,208,88,0.12); }
}

/* Indicador de grabación (punto rojo) dentro del botón */
.djf-grabadora-btn-primary .djf-rec-dot {
  display: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e63030;
  box-shadow: 0 0 6px rgba(230, 48, 48, 0.6);
  animation: djf-dot-blink 1s step-start infinite;
}

.djf-grabadora-btn-primary.recording .djf-rec-dot {
  display: block;
}

.djf-grabadora-btn-primary.recording .djf-mic-icon {
  display: none;
}

@keyframes djf-dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Botones secundarios (Pausar / Detener) ── */
.djf-grabadora-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 50px;
  border: 1px solid #d0d0d0;
  background: linear-gradient(180deg, #ffffff, #f8f9fa);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  transition: all 0.15s ease;
  font-family: inherit;
  touch-action: manipulation;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 2px 6px rgba(248, 208, 88, 0.35);

}

.djf-grabadora-btn:hover {
  background: linear-gradient(180deg, #fafbfc, #f1f3f5);
  border-color: #bbb;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 4px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.djf-grabadora-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;
  background: linear-gradient(180deg, #f1f3f5, #e9ecef);
}

/* Botón pausar: estado "reanudar" */
.djf-grabadora-btn--resume {
  border-color: #f8d058;
  background: linear-gradient(180deg, #fffbee, #fff8e0);
  color: #1a1a1a;
}

/* ============================================================
   ZONA DE DESCARGA
   ============================================================ */

.djf-grabadora-download-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding-top: 4px;
}

.djf-grabadora-btn--back-download {
  align-self: flex-start;
}

.djf-grabadora-download-divider {
  width: 100%;
  height: 1px;
  background: #ebebeb;
}

.djf-grabadora-btn--download {
  padding: 9px 22px;
  font-weight: 600;
  font-size: 13px;
  border-color: #f8d058;
  background: linear-gradient(180deg, #ffd95a, #f8c040);
  border-width: 2px;
}

.djf-grabadora-btn--download:hover {
  background: linear-gradient(180deg, #ffe170, #f8cc50);
  border-color: #d09000;
}



.djf-grabadora-download-label {
  margin: 0;
  font-size: 16px;
  color: #555;
  font-weight: 500;
}

.djf-grabadora-download-btns {
  display: flex;
  gap: 10px;
}

.djf-grabadora-btn--download {
  padding: 9px 22px;
  font-weight: 600;
  font-size: 13px;
}

.djf-grabadora-btn--new {
 /* font-size: 12px;
  color: #888;
  border-color: #e0e0e0;
  padding: 6px 14px;*/
border-radius: 50px;
}

.djf-grabadora-btn--new:hover {
  color: #555;
}

/* ============================================================
   FEEDBACK
   ============================================================ */

.djf-grabadora-feedback {
  margin-top: 8px;
  font-size: 13px;
  color: #888;
  min-height: 18px;
  text-align: center;
  padding: 0 16px;
}

/* ============================================================
   UTILIDADES
   ============================================================ */

.djf-grabadora-btn--hidden {
  display: none !important;
}

/* ── Indicador visual de grabación (no es clicable) ── */
.djf-grabadora-rec-indicator {
  cursor: default;
  pointer-events: none;
  animation: djf-rec-pulse 1.4s ease-in-out infinite;
}

.djf-grabadora-rec-indicator:hover {
  background: linear-gradient(180deg, #ffd95a 0%, #f8c040 100%);
  border-color: #e0a800;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 2px 6px rgba(248, 208, 88, 0.35);
}

.djf-grabadora-rec-indicator .djf-rec-dot {
  display: block;
}

/* ============================================================
   EDITOR — SUBFASE 3A
   ============================================================ */

.djf-grabadora-editor-screen {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

/* ── Waveform completa ── */
.djf-grabadora-editor-waveform-wrap {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: visible;
  cursor: pointer;
  height: 120px;
}

.djf-grabadora-editor-canvas,
.djf-grabadora-editor-playhead {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  border-radius: 8px;
}

.djf-grabadora-editor-playhead {
  pointer-events: none;
}

.djf-grabadora-editor-canvas {
  display: block;
  width: 100%;
  height: 120px;
  border-radius: 8px;
}

/* ── Controles del editor ── */
.djf-grabadora-editor-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Botón play/pause ── */
.djf-grabadora-btn--play {
  min-width: 130px;
  justify-content: center;
}

/* ── Botón loop: inactivo / activo ── */
.djf-grabadora-btn--loop {
  min-width: 90px;
  justify-content: center;
}

.djf-grabadora-btn--loop.active {
  border-color: #f8d058;
  background: linear-gradient(180deg, #fffbee, #fff8e0);
  color: #1a1a1a;
  box-shadow:
    0 0 0 2px #f8d058,
    0 0 0 4px rgba(248, 208, 88, 0.15);
}

/* ── Botón guardar ── */
.djf-grabadora-btn--save {
  min-width: 110px;
  justify-content: center;
  border-color: #f8d058;
  background: linear-gradient(180deg, #ffd95a, #f8c040);
  color: #1a1a1a;
  font-weight: 600;
  border-width: 2px;
}

.djf-grabadora-btn--save:hover {
  background: linear-gradient(180deg, #ffe170, #f8cc50);
  border-color: #d09000;
}

/* ── Handles de recorte ── */
.djf-grabadora-editor-handle {
  position: absolute;
  top: 0;
  width: 28px;
  height: 100%;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.djf-grabadora-editor-handle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #e63030;
}

.djf-grabadora-editor-handle-grip {
  position: relative;
  width: 12px;
  height: 28px;
  background: #e63030;
  border-radius: 4px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.djf-grabadora-editor-handle-grip::before,
.djf-grabadora-editor-handle-grip::after {
  content: '';
  width: 1.5px;
  height: 12px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
}

/* ── Botón recortar / quitar recorte ── */
.djf-grabadora-btn--trim {
  min-width: 150px;
  justify-content: center;
}

.djf-grabadora-btn--trim.active {
  border-color: #e63030;
  background: linear-gradient(180deg, #fff5f5, #ffecec);
  color: #c00;
}

.djf-grabadora-btn--trim.active:hover {
  background: linear-gradient(180deg, #ffecec, #ffe0e0);
  border-color: #c00;
}

/* ── Volver a grabar ── */
.djf-grabadora-editor-back-wrap {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid #ebebeb;
}

.djf-grabadora-btn--back {
  min-width: 150px;
  justify-content: center;
}

/* ── Botón FX ── */
.djf-grabadora-btn--fx {
  min-width: 80px;
  justify-content: center;
}

.djf-grabadora-btn--fx.active {
  border-color: #f8d058;
  background: linear-gradient(180deg, #fffbee, #fff8e0);
  color: #1a1a1a;
  box-shadow:
    0 0 0 2px #f8d058,
    0 0 0 4px rgba(248, 208, 88, 0.15);
}

/* ── Panel FX ── */
.djf-grabadora-fx-panel {
  width: 100%;
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  animation: djf-fx-panel-in 0.2s ease;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

@keyframes djf-fx-panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Sección dentro del panel ── */
.djf-grabadora-fx-section {
  padding: 14px 16px;
  flex: 1 1 240px;
}

.djf-grabadora-fx-section-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.djf-grabadora-fx-label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.01em;
}

/* ── Toggle switch ── */
.djf-grabadora-fx-toggle-wrap {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.djf-grabadora-fx-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.djf-grabadora-fx-toggle-track {
  display: block;
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: #d0d0d0;
  position: relative;
  transition: background 0.2s ease;
}

.djf-grabadora-fx-toggle-input:checked + .djf-grabadora-fx-toggle-track {
  background: #f8c040;
}

.djf-grabadora-fx-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.djf-grabadora-fx-toggle-input:checked + .djf-grabadora-fx-toggle-track .djf-grabadora-fx-toggle-thumb {
  transform: translateX(16px);
}

/* ── Body de la sección (se opaca si está desactivada) ── */
.djf-grabadora-fx-section-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.djf-grabadora-fx-section-body.enabled {
  opacity: 1;
  pointer-events: auto;
}

/* ── Presets ── */
.djf-grabadora-fx-presets {
  display: flex;
  gap: 8px;
}

/* ── Slider ── */
.djf-grabadora-fx-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.djf-grabadora-fx-slider-label {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  min-width: 60px;
}

.djf-grabadora-fx-slider {
  flex: 1;
  max-width: 180px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, #f8c040 30%, #ddd 30%);
  outline: none;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.djf-grabadora-fx-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f8c040;
  border: 2px solid #e0a800;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.djf-grabadora-fx-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f8c040;
  border: 2px solid #e0a800;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.djf-grabadora-fx-slider-value {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  min-width: 32px;
  text-align: right;
}


/* ── EQ ── */
.djf-grabadora-eq-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.djf-grabadora-eq-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.djf-grabadora-eq-presets .djf-grabadora-pill {
  font-size: 11px;
  padding: 4px 10px;
}

.djf-grabadora-eq-bands {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 320px;
  margin: 0;
  padding-left: 28px;
}

.djf-grabadora-eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 4px;
}

/* Valor dB dinámico — altura fija para todas */
.djf-grabadora-eq-db-val {
  font-size: 10px;
  font-weight: 600;
  color: #888;
  height: 14px;
  line-height: 14px;
  text-align: center;
}

/* Wrap del fader — altura reducida */
.djf-grabadora-eq-fader-wrap {
  position: relative;
  width: 28px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;

}


.djf-grabadora-eq-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: #ddd;
  z-index: 0;
  pointer-events: none;
}

/* Línea central 0dB — se extiende hacia la izquierda */
.djf-grabadora-eq-fader-wrap::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  width: calc(50% + 8px);
  height: 2px;
  transform: translateY(-50%);
  background: #ccc;
  z-index: 1;
  border-radius: 1px;
}

/* Círculo de reset en extremo izquierdo de la línea 0dB */
.djf-grabadora-eq-zero-dot {
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #bbb;
  z-index: 3;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.djf-grabadora-eq-zero-dot:hover {
  border-color: #888;
  background: #f0f0f0;
}

/* Fader vertical */
.djf-grabadora-eq-fader {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 28px;
  background: transparent;
  outline: none;
  cursor: pointer;
  position: absolute;
  z-index: 2;
  transform: rotate(-90deg);
  left: 50%;
  top: 50%;
  margin-left: -60px;
  margin-top: -14px;
  touch-action: none;
  user-select: none;
}

.djf-grabadora-eq-fader::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
  border-radius: 2px;
}

.djf-grabadora-eq-fader::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffd95a, #f8c040);
  border: 2px solid #e0a800;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  cursor: grab;
  margin-top: -10px;
}

.djf-grabadora-eq-fader::-webkit-slider-thumb:active {
  cursor: grabbing;
  background: linear-gradient(180deg, #ffe170, #f8cc50);
  border-color: #c08000;
}

.djf-grabadora-eq-fader::-moz-range-track {
  height: 3px;
  background: transparent;
  border-radius: 2px;
}

.djf-grabadora-eq-fader::-moz-range-thumb {
  width: 10px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffd95a, #f8c040);
  border: 2px solid #e0a800;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  cursor: grab;
}

.djf-grabadora-eq-fader::-moz-range-thumb:active {
  cursor: grabbing;
  background: linear-gradient(180deg, #ffe170, #f8cc50);
  border-color: #c08000;
}

/* Hz label — altura fija */
.djf-grabadora-eq-band-hz {
  font-size: 10px;
  font-weight: 600;
  color: #555;
  height: 14px;
  line-height: 14px;
  text-align: center;
}

/* Label cualitativo — altura fija para todas, vacía si no aplica */
.djf-grabadora-eq-band-label {
  font-size: 10px;
  color: #aaa;
  height: 12px;
  line-height: 12px;
  text-align: center;
}

/* Escala numérica — solo en primera banda, a su izquierda */
.djf-grabadora-eq-scale {
  position: absolute;
  right: calc(100% + 17px);
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.djf-grabadora-eq-scale span {
  font-size: 9px;
  color: #bbb;
  line-height: 1;
  text-align: right;
}

/* ── Timers del editor ── */
.djf-grabadora-editor-duration-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 0px;
  gap: 12px;
  margin-top: -8px
}

.djf-grabadora-editor-duration-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.djf-grabadora-editor-duration-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.djf-grabadora-editor-duration-text {
  font-size: 13px;
  color: #888;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.djf-grabadora-editor-duration-text span {
  font-weight: 600;
  color: #555;
}

.djf-grabadora-editor-duration-text span.djf-timer-yellow {
  color: #e0a800;
}

/* Timer flotante sobre handles y cabezal */
.djf-grabadora-editor-handle-timer {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: #e63030;
  background: rgba(255,255,255,0.92);
  border: 1px solid #f0c0c0;
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  z-index: 20;
}

.djf-grabadora-editor-playhead-timer {
  position: absolute;
  top: -22px;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: #e63030;
  background: rgba(255,255,255,0.92);
  border: 1px solid #f0c0c0;
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  z-index: 15;
}


/* Separador entre secciones del panel */
.djf-grabadora-fx-section + .djf-grabadora-fx-section {
  border-top: none;
  border-left: 1px solid #e8e8e8;
}

.djf-grabadora-download-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

#djf-grabadora-download-timer {
  font-size: 40px;
}

.djf-grabadora-download-timer-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.djf-grabadora-mp3-progress-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.djf-grabadora-mp3-progress-label {
  font-size: 12px;
  color: #888;
  text-align: center;
}

.djf-grabadora-mp3-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}

.djf-grabadora-mp3-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffd95a, #f8c040);
  border-radius: 6px;
  transition: width 0.2s ease;
}

.djf-grabadora-idle-timer-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 12px;
}

.djf-grabadora-idle-rec-dot {
    flex-shrink: 0;
}

.djf-grabadora-idle-timer-spacer {
    width: 22px;
    flex-shrink: 0;
}


.djf-grabadora-idle-canvas {
  width: 100%;
  height: 120px;
  display: block;
  border-radius: 8px;
}

/* ============================================================
   RESPONSIVE — MÓVIL
   ============================================================ */

@media (max-width: 950px) {

.djf-grabadora-fx-slider::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }

  .djf-grabadora-fx-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }

.djf-grabadora-eq-fader::-webkit-slider-thumb {
    width: 16px;
    height: 22px;
  }

  .djf-grabadora-eq-fader::-moz-range-thumb {
    width: 16px;
    height: 22px;
  }

  .djf-grabadora-eq-fader::-webkit-slider-runnable-track {
    padding: 12px 0;
  }
 }

@media (max-width: 670px) {
  .djf-grabadora-fx-section {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  .djf-grabadora-body {
    padding: 24px 16px 20px;
    gap: 22px;
  }

  .djf-grabadora-timer {
    font-size: 56px;
  }

  .djf-grabadora-btn-primary {
    width: 68px;
    height: 68px;
    min-width: 68px;
  }

  .djf-grabadora-btn-primary svg {
    width: 26px;
    height: 26px;
  }

  .djf-grabadora-title h1 {
    font-size: 17px;
  }

  .djf-grabadora-editor-controls {
    gap: 8px;
  }

  .djf-grabadora-btn--play {
    min-width: 110px;
  }

.djf-grabadora-btn--trim {
    min-width: 120px;
  }

.djf-grabadora-fx-slider-label {
    min-width: 48px;
  }

.djf-grabadora-eq-fader-wrap {
    height: 100px;
  }

  .djf-grabadora-eq-fader {
    width: 100px;
    margin-left: -50px;
    margin-top: -14px;
  }

  .djf-grabadora-eq-bands {
    max-width: 280px;
  }

  .djf-grabadora-editor-waveform-wrap {
    height: 106px;
  }

  .djf-grabadora-editor-canvas,
  .djf-grabadora-editor-playhead {
    height: 106px;
  }

#djf-grabadora-timer-display.recording {
    font-size: 39px;
  }
}


@media (max-width: 485px) {
  .djf-grabadora-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .djf-grabadora-rec-indicator,
  .djf-grabadora-timer {
    flex: 0 0 auto;
  }

  #djf-grabadora-pause-btn,
  #djf-grabadora-stop-btn {
    flex: 0 0 auto;
  }

  .djf-grabadora-controls::after {
    content: '';
    width: 100%;
    order: 1;
  }

  .djf-grabadora-rec-indicator { order: 0; }
  .djf-grabadora-timer         { order: 0; }
  #djf-grabadora-pause-btn     { order: 2; }
  #djf-grabadora-stop-btn      { order: 2; }
}
