/* © DJFuturo Tools. All rights reserved. */
/* ============================================================
   Online Audio Equalizer
   ============================================================ */
/* ── Reset básico dentro del wrapper ── */
#djf-eq-wrapper *,
#djf-eq-wrapper *::before,
#djf-eq-wrapper *::after {
  box-sizing: border-box;
}

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

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

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

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

.djf-grabadora-title {
  display: inline-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: 0px 24px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

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

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

/* ── Botones secundarios ── */
.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);
  cursor: pointer;
  font-size: 14px;
  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);
}

/* ============================================================
   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 !important;
  border-color: #f8d058;
  background: linear-gradient(180deg, #ffd95a, #f8c040);
  border-width: 2px;
}

.djf-grabadora-btn--download-2 {
  padding: 9px 22px;
  font-weight: 600;
  font-size: 13px !important;
  border-color: #dbd6c8;
  background: linear-gradient(180deg, #fffbee, #d8d5cf);
  border-width: 2px;
  margin-bottom: 20px;
}

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

.djf-grabadora-btn--download-2:hover {
  background: linear-gradient(180deg, #fffbee, #ece1ca);
  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--new {
  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;
}

/* Controles temporalmente no disponibles mientras se decodifica el audio real
   (ver estado editorReady en equalizer-online.js) */
.djf-cutter-disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

/* ============================================================
   EDITOR
   ============================================================ */

.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;
  touch-action: none;
  margin-top: 22px;
}
.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-cutter-waveform-placeholder-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 600;
  color: #6b6b6b;
  white-space: nowrap;
  pointer-events: none;
  z-index: 12;
  text-shadow:
    0 0 4px #fff,
    0 0 8px #fff,
    0 0 14px #fff,
    0 0 14px #fff;
}

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

/* Cursores según zona de la selección de trim */
.djf-grabadora-editor-waveform-wrap.djf-cutter-cursor-seek {
  cursor: pointer;
}

.djf-grabadora-editor-waveform-wrap.djf-cutter-cursor-grab {
  cursor: grab;
}

.djf-grabadora-editor-waveform-wrap.djf-cutter-cursor-grabbing {
  cursor: grabbing;
}

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

/* ── Botones icon-only (play/pause, stop) ── */
.djf-grabadora-btn--icon-only {
  min-width: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.djf-grabadora-btn--icon-only span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.djf-grabadora-btn--play {
  position: relative;
}

.djf-grabadora-btn--stop {
  position: relative;
}

/* ── 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);
}

.djf-grabadora-btn--play.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);
}

/* Invita a pulsar Play mientras el audio real aún se está preparando (preview) */
.djf-grabadora-btn--play.djf-cutter-pulse {
  animation: djf-cutter-play-pulse 1.6s ease-in-out infinite;
}

@keyframes djf-cutter-play-pulse {
  0%, 100% {
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
    border-color: #d0d0d0;
  }
  50% {
    background: linear-gradient(180deg, #ffd95a, #f8c040);
    border-color: #f8d058;
  }
}

/* ── 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 (trim) ── */
.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;
}

/* ── Handles de fade (in / out) ── */
.djf-cutter-fade-handle {
  position: absolute;
  top: 0;
  width: 36px; /* área de captura ampliada respecto al ancho visual (línea/grip siguen centrados e iguales) */
  height: 100%;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.djf-cutter-fade-handle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  height: 100%;
  background: #687888;
  opacity: 0.85;
}

.djf-cutter-fade-handle .djf-grabadora-editor-handle-timer {
  color: #2a6bb0;
  border-color: #b8d4f0;
}

.djf-cutter-fade-handle-grip {
  position: relative;
  width: 8px;
  height: 22px;
  background: #687888;
  border-radius: 3px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.djf-cutter-fade-handle-grip::before {
  content: '';
  width: 1.5px;
  height: 10px;
  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;
}

/* ── Botón Fades (muestra/oculta los dos paneles) ── */
.djf-cutter-btn--fades {
  min-width: 110px;
  justify-content: center;
}

.djf-cutter-btn--fades.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);
}

/* ── 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: 14px;
  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;
}

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

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

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

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

.djf-grabadora-mp3-progress-label {
  font-size: 13.5px;
  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-mp3-progress-bar.indeterminate {
  width: 100% !important;
  background: linear-gradient(90deg, #f8c040 0%, #ffe170 50%, #f8c040 100%);
  background-size: 200% 100%;
  animation: djf-progress-indeterminate 1.2s linear infinite;
}

@keyframes djf-progress-indeterminate {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   PANTALLA DE ELECCIÓN (solo cargar)
   ============================================================ */

.djf-cutter-choose-screen {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  width: 100%;
  padding-top: 6px;
}

.djf-reverser-choose-subtitle {
  margin-bottom: 10px;
  font-size: 24px;
  color: #342e2e;
  text-align: center;
  font-style: italic;
}

.destacado-tool {
  margin: 5px 0px 0px 20px !important;
  font-size: 15px !important;
}

/* ── Dropzone ── */
.djf-reverser-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 36px 20px;
  border: 2px dashed;
  border-radius: 12px;
  border-color: #f8c040;
  background: rgba(248, 208, 88, 0.05);
  color: #888;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.djf-reverser-dropzone:hover {
  background: #fff5e1;
  color: #555;
}

.djf-reverser-dropzone.dragover {
  border-color: #f8c040;
  background: rgba(248, 208, 88, 0.12);
  color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(248, 208, 88, 0.15);
}

.djf-reverser-dropzone svg {
  color: #f8c040;
  margin-bottom: 4px;
}

.djf-reverser-dropzone-text {
  font-size: 16.5px;
  font-weight: 600;
  color: #1a1a1a;
}

.djf-reverser-dropzone-hint {
  font-size: 13.5px;
  color: #999;
}

.djf-reverser-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ============================================================
   PANELES DE PRECISIÓN (trim / fades)
   ============================================================ */

.djf-cutter-panels-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.djf-cutter-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  flex: 0 0 auto;
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 8px 14px;
}

.djf-cutter-panel--trim {
  border-color: #d8d8d8;
  background: #fff;
}

.djf-cutter-panel--fade {
  border-color: #d8d8d8;
  background: #fff;
}

.djf-cutter-panel-field {
  display: flex;
  align-items: center;
  gap: 6px;
}

.djf-joiner-trim-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  color: #c12f2f;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 2px 6px rgba(248, 208, 88, 0.35);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: all 0.1s ease;
}

.djf-joiner-trim-step-btn:hover {
  background: #f3f3f3;
  border-color: #c0c0c0;
}

.djf-joiner-trim-step-btn:active {
  background: #e8e8e8;
}


.djf-cutter-panel-field label {
  font-size: 14px;
  font-weight: 600;
  color: #585555;
  white-space: nowrap;
}

.djf-cutter-panel-field input[type="number"],
.djf-cutter-panel-radio--custom input[type="number"] {
  width: 58px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 13px;
  font-family: inherit;
  color: #1a1a1a;
  text-align: right;
  -moz-appearance: textfield;
}

.djf-cutter-time-input {
  width: 72px !important;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 6px !important;
  font-size: 13px;
  font-family: inherit;
  color: #1a1a1a;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.djf-cutter-time-input:focus {
  outline: none;
  border-color: #f8c040;
  box-shadow: 0 0 0 2px rgba(248, 208, 88, 0.2);
}

.djf-cutter-panel-field input[type="number"]::-webkit-inner-spin-button,
.djf-cutter-panel-field input[type="number"]::-webkit-outer-spin-button,
.djf-cutter-panel-radio--custom input[type="number"]::-webkit-inner-spin-button,
.djf-cutter-panel-radio--custom input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.djf-cutter-panel-field input[type="number"]:focus,
.djf-cutter-panel-radio--custom input[type="number"]:focus {
  outline: none;
  border-color: #f8c040;
  box-shadow: 0 0 0 2px rgba(248, 208, 88, 0.2);
}

.djf-cutter-panel-field span,
.djf-cutter-panel-radio--custom > span {
  font-size: 12px;
  color: #999;
}

.djf-cutter-panel-label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.djf-cutter-panel-radio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #605e5e;
  cursor: pointer;
  white-space: nowrap;
}

.djf-cutter-panel-radio input[type="radio"] {
  accent-color: #687888;
  cursor: pointer;
  margin: 0;
}

.djf-cutter-panel-radio--custom {
  gap: 6px;
}

/* ── Botón power de cada panel de fade ── */
.djf-cutter-fade-power {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid #c8cdd5;
  background: #fff;
  color: #9aa3ad;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.djf-cutter-fade-power:hover {
  border-color: #aab2bb;
  color: #687888;
}

.djf-cutter-fade-power.active {
  border-color: #e0a800;
  background: linear-gradient(135deg, #ffd95a 0%, #f8c040 100%);
  color: #1a1a1a;
}

/* Fade apagado: el panel sigue visible pero atenuado; solo el power sigue operativo */
.djf-cutter-panel--off > *:not(.djf-fade-pw) {
  opacity: 0.4;
  pointer-events: none;
}

.djf-fade-pw {
  margin-left: 4px;
  flex-shrink: 0;
}

/* ============================================================
   PANTALLA DE ERROR DE CARGA
   ============================================================ */

.djf-cutter-error-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 30px 20px;
  text-align: center;
}

.djf-cutter-error-message {
  margin: 0;
  font-size: 15px;
  color: #c00;
}

.djf-grabadora-btn--reset {
  min-width: 130px;
  justify-content: center;
}

.djf-grabadora-editor-back-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid #ebebeb;
}

/*linea choose*/
/* Línea separadora "o" entre descargas principales y M4A */
.djf-cutter-choose-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 10px 0;
  max-width: 300px;
  opacity: 70%;
}

.djf-cutter-choose-divider::before,
.djf-cutter-choose-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #b0b0b0;
}

.djf-cutter-choose-divider span {
  padding: 0 10px;
  color: #999;
  font-size: 13px;
}

/* ============================================================
   EQ — BOTÓN Y PANEL
   ============================================================ */

.djf-cutter-btn--eq {
  min-width: 90px;
  justify-content: center;
}

.djf-cutter-btn--eq.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);
}

.djf-eq-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 10px 12px 12px;
}

.djf-eq-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.djf-eq-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: #eceff2;
  border-radius: 50px;
}

.djf-eq-tab {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #777;
  padding: 5px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.djf-eq-tab.active {
  background: #fff;
  color: #1a1a1a;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.djf-eq-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.djf-eq-power {
  width: 30px;
  height: 30px;
}

/* EQ en bypass: se atenúa el contenido pero sigue editable */
.djf-eq-panel--off .djf-eq-view,
.djf-eq-panel--off .djf-eq-footer {
  opacity: 0.45;
}

/* ── Faders ── */
.djf-eq-faders-wrap {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.djf-eq-scale {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 140px;
  margin-top: 24px;
}

.djf-eq-scale span {
  position: absolute;
  right: 2px;
  transform: translateY(-50%);
  font-size: 10px;
  color: #999;
  font-variant-numeric: tabular-nums;
}

.djf-eq-scale span:nth-child(1) { top: 0; }
.djf-eq-scale span:nth-child(2) { top: 50%; }
.djf-eq-scale span:nth-child(3) { top: 100%; }

.djf-eq-bands {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.djf-eq-band {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.djf-eq-band-db,
.djf-eq-band-freq {
  height: 16px;
  line-height: 16px;
  font-size: 11px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.djf-eq-band-db {
  font-weight: 600;
  color: #aaa;
}

.djf-eq-band.is-changed .djf-eq-band-db {
  color: #555;
}

.djf-eq-band-freq {
  font-weight: 500;
  color: #777;
}

.djf-eq-fader {
  position: relative;
  width: 100%;
  height: 140px;
  margin: 6px 0;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.djf-eq-fader::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  background: #dfe3e8;
  border-radius: 4px;
}

.djf-eq-fader::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(34px, calc(100% + 8px));
  height: 1px;
  transform: translate(-50%, -50%);
  background: #b0b6bd;
}

.djf-eq-fader-fill {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 0;
  width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ffd95a, #f8c040);
  border-radius: 2px;
}

.djf-eq-fader-thumb {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(24px, 100%);
  height: 12px;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #fff, #6484a5);
  border: 1.5px solid #9aa3ad;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.djf-eq-fader:hover .djf-eq-fader-thumb,
.djf-eq-fader:focus-visible .djf-eq-fader-thumb {
  border-color: #e0a800;
}

.djf-eq-fader:focus-visible .djf-eq-fader-thumb {
  box-shadow: 0 0 0 2px rgba(248, 208, 88, 0.45);
}

/* ── Pie: salida, auto, medidor, reset ── */
.djf-eq-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding-top: 10px;
  border-top: 1px solid #ebebeb;
}

.djf-eq-out {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 0;
}

.djf-eq-out label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.djf-eq-out-value {
  min-width: 78px;
  font-size: 12.5px;
  color: #555;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.djf-eq-small-btn {
  padding: 5px 12px;
  font-size: 12.5px;
}

.djf-eq-small-btn.active {
  border-color: #f8d058;
  background: linear-gradient(180deg, #fffbee, #fff8e0);
  color: #1a1a1a;
  box-shadow: 0 0 0 2px #f8d058;
}

.djf-eq-meter {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 140px;
  min-width: 0;
}

.djf-eq-meter-track {
  position: relative;
  flex: 1;
  height: 8px;
  background: #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}

.djf-eq-meter-bar {
  height: 100%;
  width: 0;
  background: #6fcf7a;
}

.djf-eq-meter-bar.warn { background: #f8c040; }
.djf-eq-meter-bar.hot  { background: #e63030; }

.djf-eq-clip {
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #d0d0d0;
  background: #fff;
  color: #b0b0b0;
  cursor: pointer;
}

.djf-eq-clip.active {
  background: #e63030;
  border-color: #c00;
  color: #fff;
}

/* EQ — LED de saturación, aviso y Evitar distorsión */
.djf-eq-clip {
  cursor: default;
  user-select: none;
  transition: all 0.15s ease;
}

.djf-eq-clip.tight {
  background: #fff3d0;
  border-color: #f8c040;
  color: #b07d00;
}

.djf-eq-clip.risk {
  background: #e63030;
  border-color: #c00;
  color: #fff;
}

.djf-eq-warn {
  margin: -6px;
  padding: 2px 5px 2px 5px;
  line-height: 1.30;
  text-align: center;
  font-size: 12.5px;
  color: #a02020;
  background: #fff1f1;
  border: 1px solid #f0c0c0;
  border-radius: 8px;
}

.djf-eq-out--auto input[type="range"] {
  accent-color: #2a6bb0;
}

.djf-eq-out--auto .djf-eq-out-value {
  color: #2a6bb0;
  font-weight: 600;
}


/* EQ — marca de 0 dB en la barra, ayudas y leyenda */
.djf-eq-meter-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 92.3%;
  width: 1px;
  background: rgba(0, 0, 0, 0.35);
}

.djf-eq-meter-bar {
  transition: width 0.06s linear;
}

.djf-eq-auto-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 230px;
}

.djf-eq-help {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.3;
  color: #8a8a8a;
  margin-top: 8px;
}

.djf-eq-legend {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: -9px;
}

.djf-eq-legend p {
  position: relative;
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.35;
  color: #777;
}

.djf-eq-legend p::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.djf-eq-legend-tight::before { background: #f8c040; }
.djf-eq-legend-risk::before  { background: #e63030; }

/* ── Módulo Ganancia y optimización ── */
.djf-gain-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #555;
}

.djf-eq-footer--reset {
  justify-content: flex-end;
}

.djf-gain-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.djf-gain-body .djf-eq-out,
.djf-gain-body .djf-eq-meter,
.djf-gain-body .djf-eq-warn {
  width: 100%;
  max-width: 440px;
  flex: none;
}

.djf-gain-body .djf-eq-legend {
  width: 100%;
  max-width: 540px;
  flex: none;
}


.djf-gain-body .djf-eq-auto-wrap {
  align-items: center;
  max-width: 380px;
  text-align: center;
}

.djf-eq-legend-ok::before { background: #6fcf7a; }

/* Módulo apagado: se atenúa y no se puede tocar (solo el power) */
.djf-gain-panel--off .djf-gain-body {
  opacity: 0.45;
  pointer-events: none;
}


.djf-eq-peak-db {
  min-width: 62px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  text-align: right;
  font-variant-numeric: tabular-nums;
}




/* ── Botón de info y overlay ── */
.djf-gain-panel .djf-eq-panel-header {
  justify-content: flex-start;
}

.djf-gain-info-btn {
  margin-left: auto;
  width: 30px;
  height: 30px;
  color: #514f4f;
}

.djf-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 30, 50, 0.45);
}

.djf-info-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 18px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.djf-info-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
}

.djf-info-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #555;
}

.djf-info-card .djf-grabadora-btn {
  align-self: center;
  margin-top: 4px;
}

/* ── Aviso en la pantalla de descarga ── */
.djf-dl-warn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  padding: 9px 12px;
  background: #fff8e6;
  border: 1px solid #f8d058;
  border-radius: 8px;
  text-align: center;
}

.djf-dl-warn p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #7a5a00;
}

/* ── Durante la preparación de la descarga ── */
.djf-exporting .djf-grabadora-editor-handle,
.djf-exporting .djf-cutter-fade-handle {
  pointer-events: none; /* el clic atraviesa y hace seek en la waveform */
}

.djf-exporting [inert] {
  opacity: 0.5;
}

/* ── Ajustar a nivel seguro: check de "verificado" ── */
.djf-eq-auto-check {
  display: none;
}

#djf-eq-auto-btn.active {
  border-color: #4caf50;
  background: linear-gradient(180deg, #f3fbf4, #e6f6e8);
  color: #1f6b27;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.35);
}

#djf-eq-auto-btn.active .djf-eq-auto-check {
  display: inline-block;
}

#djf-eq-auto-btn {
  font-size: 13.5px;
padding: 10px 20px 10px 20px;}


/* Tarjeta de progreso de "Ajustar nivel máximo seguro": fija en la ventana, siempre visible */
.djf-safe-progress-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, 90vw);
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #f8d058;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  z-index: 99998;
  pointer-events: none;
}


/* ── EQ gráfico: canvas ── */
.djf-gfx-canvas {
  display: block;
  width: 100%;
  height: 260px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}


/* ── EQ gráfico: tabla de parámetros ── */
.djf-gfx-canvas:focus-visible {
  outline: 2px solid rgba(248, 192, 64, 0.8);
  outline-offset: 2px;
}


.djf-gfx-row {
  display: grid;
  grid-template-columns: 22px 24px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 6px;
  padding: 3px 4px;
  border-radius: 8px;
  border: 1px solid transparent;
}


.djf-gfx-head {
  padding-top: 0;
  padding-bottom: 0;
}

.djf-gfx-head span {
  font-size: 11px;
  font-weight: 600;
  color: #999;
}


/* Banda apagada: fila atenuada (el power sigue operativo) */
.djf-gfx-row.is-off > *:not(.djf-gfx-pw) {
  opacity: 0.4;
}


/* ── Espectro: capa inferior de la gráfica ── */
.djf-gfx-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.djf-gfx-wrap {
  position: relative;
  height: 300px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}

.djf-spec-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.djf-gfx-wrap .djf-gfx-canvas {
  position: relative;
  z-index: 1;
  height: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
}


/* ── Espectro sobre los faders (paramétrico) ── */
.djf-spec-param-wrap {
  position: relative;
  height: 220px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}


/* ── Cabecera del EQ: Analizador, Sin EQ y power ── */
.djf-eq-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.djf-bypass-btn {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Power apagado: panel inactivo (el power sigue operativo) */
.djf-eq-panel--off .djf-eq-tabs,
.djf-eq-panel--off .djf-eq-view,
.djf-eq-panel--off .djf-eq-footer,
.djf-eq-panel--off .djf-eq-header-right > .djf-eq-small-btn {
  opacity: 0.45;
  pointer-events: none;
}

/* Sin EQ pulsado: se atenúa todo salvo el espectro */
.djf-eq-panel--bypass .djf-gfx-table,
.djf-eq-panel--bypass .djf-eq-faders-wrap {
  opacity: 0.35;
}


/* Color del espectro (lo lee el JS). Formato: R, G, B */
#djf-eq-wrapper {
  --djf-spec-rgb: 5, 58, 117;
}


/* ── EQ paramétrico: parámetros en columnas ── */
.djf-gfx-table {
  display: grid;
  grid-template-columns: 28px repeat(8, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
}

.djf-gfx-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 4px 3px;
  border-radius: 8px;
  border: 1px solid #00000029;
  /* background: #e5ebf5; */
  background: #fff;
/* columnas variante:
background: linear-gradient(180deg, #e5ebf5 0%, #fffefe 100%);*/

}

.djf-gfx-col.is-sel {
  background: #fff8e0;
  border-color: #f8d058;
}

.djf-gfx-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 0;
}

.djf-gfx-lab {
  font-size: 12px;
  font-weight: 600;
  color: #999;
}

.djf-gfx-num {
  width: 27px;
  height: 27px;
  line-height: 24px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #555;
  border: 1.5px solid #687888;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 2px 6px rgba(248, 208, 88, 0.35);
}

.djf-gfx-tag {
  font-size: 11px;
  font-weight: 700;
  color: #687888;
}

.djf-gfx-na {
  color: #bbb;
  font-size: 13px;
}

/* Power de banda: discreto, sin fondo */
.djf-gfx-pw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #b5bbc2;
  cursor: pointer;
  transition: color 0.15s ease;
  touch-action: manipulation;
  border: 1px solid #bbb;
  border-radius: 19px;
}

.djf-gfx-cell .djf-gfx-pw{
border: 1px solid transparent;
}

.djf-gfx-pw:hover { color: #8a929b; }
.djf-gfx-pw.active { color: #c98f00; }

.djf-gfx-input {
  width: 100%;
  min-width: 0;
  padding: 4px 2px;
  font-family: inherit;
  font-size: 13px;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  padding: 4px 2px !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 2px 6px rgba(248, 208, 88, 0.35);
}


.djf-gfx-center { text-align: center; }

select.djf-gfx-input {
  -webkit-appearance: none;
  appearance: none;
  text-align-last: center;
  padding-right: 2px;
}

.djf-gfx-input::-webkit-inner-spin-button,
.djf-gfx-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.djf-gfx-input:focus {
  outline: none;
  border-color: #f8c040;
  box-shadow: 0 0 0 2px rgba(248, 208, 88, 0.2);
}

/* Shelf: la Q no se usa */
.djf-gfx-col.is-shelf .djf-gfx-qcell {
  opacity: 0.35;
  pointer-events: none;
}

/* Banda apagada: columna atenuada (el power sigue operativo) */
.djf-gfx-col.is-off .djf-gfx-cell:not(.djf-gfx-top) {
  opacity: 0.4;
}
.djf-gfx-col.is-off .djf-gfx-num {
  opacity: 0.4;
}



.djf-gfx-labels {
border: 1px solid transparent !important;
background: transparent !important;}


/* Número a la izquierda, power a la derecha */
.djf-gfx-top {
  justify-content: space-between;
  padding: 0 2px;
}


.djf-gfx-col.is-sel .djf-gfx-num {
 /* background: #ffd95a; */
  border-color: #e0a800;
  color: #1a1a1a;
  /* box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 2px 6px rgba(106, 18, 213, 0.35);*/
  background: linear-gradient(180deg, #fcedbe 0%, #fffefe 100%);
}

/*
.djf-eq-warn {
  min-height: 52px;  ~2 líneas; en móvil quizá necesite más 
}
*/
.djf-eq-warn.djf-grabadora-btn--hidden {
  display: block !important; /* anula el display:none: se oculta pero conserva el hueco */
  visibility: hidden;
}


/* Slider de Salida: pista y pulgar propios (control total del color) */
.djf-eq-out {
  --djf-out-thumb: #f8c040;        /* color del círculo */
  --djf-out-thumb-border: #e0a800; /* borde del círculo */
  --djf-out-track: #dfe3e8;        /* pista */
  --djf-out-zero: #8a929b;         /* línea del 0 dB */
}

.djf-eq-out .djf-eq-out-range {
  position: relative;
  flex: 1;
  min-width: 80px;
  display: flex;
  align-items: center;
}

/* Línea del 0 dB: centrada en el recorrido del pulgar */
.djf-eq-out .djf-eq-out-range::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 24px;
  transform: translate(-50%, -50%);
  background: #bbb;
  border-radius: 1px;
  pointer-events: none;
}

.djf-eq-out input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 20px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  accent-color: #f8c040;

}

.djf-eq-out input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  background: var(--djf-out-track);
  border-radius: 4px;
  border: 1px solid #afaead;
}
.djf-eq-out input[type="range"]::-moz-range-track {
  height: 5px;
  background: var(--djf-out-track);
  border-radius: 4px;
  border: 1px solid #afaead;
}



.djf-eq-out input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;                /* centra el pulgar sobre la pista de 4 px */
  border-radius: 50%;
  background: var(--djf-out-thumb);
  border: 2px solid var(--djf-out-thumb-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.djf-eq-out input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--djf-out-thumb);
  border: 2px solid var(--djf-out-thumb-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}


.djf-eq-out { --djf-out-fill: #f8c040; }   /* color del recorrido */

.djf-eq-out input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right,
    var(--djf-out-fill) 0, var(--djf-out-fill) var(--djf-out-pct, 50%),
    var(--djf-out-track) var(--djf-out-pct, 50%), var(--djf-out-track) 100%);
}
.djf-eq-out input[type="range"]::-moz-range-progress {
  height: 4px;
  background: var(--djf-out-fill);
  border-radius: 4px;
}

.djf-safe-progress-card .djf-safe-cancel {
  align-self: center;
  margin-top: 10px;
  pointer-events: auto;   /* la tarjeta no capta clics, pero el botón sí */
}

.djf-track-name {
  font-size: 14px;
  font-weight: 600;
  color: #2e2d2d;
  margin-bottom: -12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.djf-keep-card p { white-space: pre-line; }
.djf-keep-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.djf-keep-card .djf-grabadora-btn { align-self: auto; margin-top: 4px; min-width: 80px; justify-content: center; }

.djf-eq-footer--reset { justify-content: space-between; align-items: center; }

.djf-info-list {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.djf-info-list li {
  font-size: 13.5px;
  line-height: 1.45;
  color: #555;
}

.djf-info-list strong { color: #1a1a1a; }

.djf-info-card .djf-info-note {
  font-size: 12px;
  color: #8a8a8a;
}

.djf-eq-notes { display: flex; flex-direction: column; gap: 2px; }

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

@media (max-width: 1190px) {
  .djf-cutter-panels-row {
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .djf-gfx-cell .djf-gfx-input {
    font-size: 16px;
    height: 30px;
    flex: 0 0 auto;                 /* la celda flex no lo encoge */
    width: 125%;                    /* 1 / 0.8 */
    min-width: 125%;
    max-width: none;
    padding: 0 2px;
    transform: scale(0.8);
    transform-origin: center center;
  }
}

  #djf-cutter-fadein-custom-input,
  #djf-cutter-fadeout-custom-input,
  #djf-cutter-trim-start-input,
  #djf-cutter-trim-end-input {
    font-size: 16px !important;    /* Evita el zoom de Safari en iPhones e iPads */
    transform: scale(0.83);        /* Visualmente lo encoge al equivalente de ~13px */
    transform-origin: left center;
    width: 78px !important;        /* Compensa la reducción de ancho */
    margin-right: -15px;
  }

.djf-grabadora-body{
padding: 0px 7px 4px;
}

}

@media (max-width: 700px) {
  .djf-reverser-choose-subtitle {
    line-height: 1.2;
  }
}

@media (max-width: 670px) {
  .djf-gfx-top {
    padding: 0;
  }

  .djf-gfx-cell .djf-gfx-input {
    width: 117%;                    
    min-width: 117%;}

djf-gain-panel{
padding: 8px 2px 10px;
}

  .djf-gfx-num {
    width: 22px;
    height: 22px;
    line-height: 19px;
    font-size: 12px;
    margin-left: 3px;
  }

  .djf-gfx-pw {
    width: 24px;
    height: 24px;
  }

  .djf-gfx-pw svg {
    width: 13px;
    height: 13px;
  }

  /* "Hz" bajo el fader: si no cabe, baja a una segunda línea */
  .djf-eq-band-freq {
    height: 24px;
    line-height: 11px;
    white-space: normal;
    text-align: center;
  }

.djf-eq-panel-header{
padding: 0 4px 0;}

  .djf-gfx-table {
    grid-template-columns: 20px repeat(8, minmax(0, 1fr));
    gap: 2px;
  }

  .djf-gfx-col {
    padding: 4px 0;
    gap: 3px;
  }

  .djf-gfx-lab,
  .djf-gfx-tag {
    font-size: 10px;
  }

  .djf-gfx-wrap,
  .djf-gfx-canvas {
    height: 210px;
  }

  .djf-eq-panel-header {
    flex-wrap: wrap;
  }

  .djf-spec-param-wrap {
    height: 130px;
  }

  .djf-gfx-row {
    grid-template-columns: 20px 22px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 4px;
    padding: 2px 0;
  }

  .djf-gfx-input {
    padding: 4px 3px;
  }

  .djf-gfx-head span {
    font-size: 10px;
  }

  .djf-gain-body .djf-eq-out {
    flex-wrap: wrap;
    justify-content: center;
  }

  .djf-grabadora-body {
    gap: 22px;
  }

  .djf-grabadora-btn {
    padding: 7px 12px;
    gap: 4px;
  }

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

  .djf-grabadora-btn--icon-only {
    width: 38px;
    height: 38px;
  }

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

  .djf-cutter-btn--fades {
    min-width: 100px;
  }

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

  .djf-reverser-dropzone {
    padding: 28px 16px;
  }

  /* EQ — responsive */
  .djf-cutter-btn--eq {
    min-width: 80px;
  }

  .djf-eq-panel {
    padding: 8px 2px 10px;
  }

  .djf-eq-fader,
  .djf-eq-scale {
    height: 120px;
  }

  .djf-eq-scale {
    width: 22px;
  }

  .djf-eq-band-db,
  .djf-eq-band-freq {
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  .djf-cutter-panel {
    padding: 7px 10px;
    gap: 8px;
  }

  .djf-cutter-panel-field input[type="number"],
  .djf-cutter-panel-radio--custom input[type="number"] {
    width: 50px;
  }

  .djf-gfx-table {
    grid-template-columns: 15px repeat(8, minmax(0, 1fr));
  }
  .djf-gfx-lab { font-size: 9px; }
}


@media (max-width: 456px) {
  .djf-eq-panel-header {
    position: relative;
    padding-right: 40px;            /* reserva el hueco del power */
  }


.djf-gain-panel{
 padding: 4px 4px 4px;
}
  
  #djf-gain-power{
      margin-right: -40px;
  }

.djf-eq-panel-header .djf-gain-panel{
padding: 0 11px 0; 
}

  .djf-eq-header-right {
     margin: 0 auto;
    flex-wrap: wrap;
justify-content: flex-end;
width: 100%;
  }
  .djf-eq-header-right #djf-eq-power {
    position: absolute;
    top: 2px;
    right: 3px;
  }
  .djf-eq-band-freq {
    height: 26px;
    line-height: 12px;
    white-space: normal;
    text-align: center;
  }
  .djf-eq-band-freq .djf-eq-hz {
    display: block;               /* "Hz" siempre en la línea de abajo */
  }
}

@media (max-width: 490px) {
  #djf-gfx-table {
    grid-template-columns: 15px repeat(8, 64px);   /* ancho mínimo por banda: ajústalo */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
}

@media (max-width: 430px) {
  .djf-cutter-panel {
    padding: 7px 5px;
    gap: 6px;
  }

  .djf-grabadora-body {
    padding: 0px 5px 4px;
  }

  #djf-gfx-table {
    grid-template-columns: 15px repeat(8, 64px);   /* ancho mínimo por banda: ajústalo */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .djf-gfx-labels {
    position: sticky;
    left: 0;
    z-index: 2;
  }
}

@media (max-width: 402px) {
  .djf-cutter-panel-radio:not(.djf-cutter-panel-radio--custom),
  .djf-cutter-panel-radio--custom input[type="radio"] {
    display: none;
  }
}

@media (max-width: 390px) {
  .djf-grabadora-title h1 {
    font-size: 17px;
  }

  .djf-grabadora-btn {
    padding: 5px 7px;
    gap: 3px;
  }

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

  .djf-eq-scale {
    width: 18px;
  }

  .djf-eq-scale span,
  .djf-eq-band-db,
  .djf-eq-band-freq {
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  #djf-cutter-fadein-custom-input,
  #djf-cutter-fadeout-custom-input,
  #djf-cutter-trim-start-input,
  #djf-cutter-trim-end-input {
    transform: scale(0.83);
    margin-top: -7px;
  }
}

@media (max-width: 355px) {
.djf-joiner-trim-step-btn{

width: 20px;
height: 20px;
font-size: 13px;
}
.djf-cutter-panel-field{
gap:4px;}


.djf-cutter-time-input{
margin-top: 0px !important;
padding: 4px 3px !important;
}

.djf-cutter-panel{
padding: 3px 4px;
}

.djf-cutter-panel-field label{
font-size: 12px;
}

.djf-grabadora-editor-duration-text {
font-size: 13px;
}

}

/* AD v1 */
.ad-slot--in-content {
    width: 100%;
    min-height: 100px;
    margin-bottom: 15px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 1009px) {
    .ad-slot--in-content {
        min-height: 0;
        margin-bottom: 0;
    }
    .destacado-tool {
        display: none !important;
    }
}


