/* =========================
   PLAYER GENERAL
========================= */
.audio-player{
  width: 100%;
  max-width: 1040px;
  min-height: 78px;
  margin: 26px auto 10px;
  padding: 12px 18px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  gap: 16px;

  background:
    linear-gradient(90deg,
      rgba(214, 126, 194, 0.92) 0%,
      rgba(203, 132, 214, 0.90) 36%,
      rgba(236, 170, 209, 0.92) 100%);
  border: 2px solid rgba(255,255,255,0.32);

  box-shadow:
    0 10px 24px rgba(179, 117, 158, 0.20),
    inset 0 1px 0 rgba(255,255,255,0.38),
    inset 0 0 18px rgba(255,255,255,0.10);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  position: relative;
  overflow: hidden;
}

.audio-player::before{
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 999px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.14);
}

.audio-player::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 50%, rgba(255,255,255,0.14), transparent 18%),
    radial-gradient(circle at 88% 50%, rgba(255,255,255,0.10), transparent 16%);
  opacity: .9;
}

.escuchar-audio {
    color: #7a2757;
}

/* =========================
   BOTÓN PLAY / PAUSE
========================= */
.play-btn{
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
  flex-shrink: 0;

  background:
    radial-gradient(circle at 30% 30%, #fff8fc 0%, #f7dced 65%, #ebb9db 100%);
  box-shadow:
    0 4px 14px rgba(173, 86, 149, 0.24),
    inset 0 1px 2px rgba(255,255,255,0.85),
    0 0 0 5px rgba(255,255,255,0.10);

  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.play-btn:hover{
  transform: scale(1.06);
  box-shadow:
    0 6px 18px rgba(173, 86, 149, 0.28),
    inset 0 1px 2px rgba(255,255,255,0.92),
    0 0 0 6px rgba(255,255,255,0.12);
}

.play-btn:active{
  transform: scale(.98);
}

/* PLAY */
.play-btn.play::before{
  content: "";
  position: absolute;
  left: 20px;
  top: 15px;
  border-left: 14px solid #b04b97;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  filter: drop-shadow(0 0 4px rgba(176,75,151,.18));
}

/* PAUSE */
.play-btn.pause::before,
.play-btn.pause::after{
  content: "";
  position: absolute;
  top: 15px;
  width: 6px;
  height: 22px;
  border-radius: 4px;
  background: #b04b97;
}

.play-btn.pause::before{ left: 17px; }
.play-btn.pause::after{ right: 17px; }

/* =========================
   ZONA WAVEFORM
========================= */
.wave-wrap{
  position: relative;
  flex: 1;
  min-width: 0;
  height: 30px;
  z-index: 2;
}

.waveform{
  width: 100%;
  height: 100%;
  display: block;
  opacity: .95;
}

/* =========================
   BARRA DE PROGRESO
========================= */
.range-wrap{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  display: flex;
  align-items: flex-end;
}

.seek{
  width: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

/* Track */
.seek::-webkit-slider-runnable-track{
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff1a8 0%, #ffb8d9 45%, #ffeaf6 100%);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.35),
    0 0 8px rgba(255,255,255,0.10);
}

.seek::-moz-range-track{
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff1a8 0%, #ffb8d9 45%, #ffeaf6 100%);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.35),
    0 0 8px rgba(255,255,255,0.10);
}

/* Thumb */
.seek::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  background:
    radial-gradient(circle at 35% 30%, #fff9fc 0%, #ffd4ea 65%, #f2a7cf 100%);
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.10),
    0 4px 10px rgba(168, 88, 145, 0.24);
}

.seek::-moz-range-thumb{
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  background:
    radial-gradient(circle at 35% 30%, #fff9fc 0%, #ffd4ea 65%, #f2a7cf 100%);
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.10),
    0 4px 10px rgba(168, 88, 145, 0.24);
}

/* =========================
   TIEMPO
========================= */
.time{
  min-width: 74px;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;

  color: #a85c8c;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

/* =========================
   AUDIO NATIVO OCULTO
========================= */
.audio-el{
  display: none;
}

/* =========================
   AJUSTE SUTIL DE BARRAS
========================= */
.gm-audio-player .waveform{
  filter: saturate(1.03) brightness(1.02);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 767px){
  .audio-player{
    min-height: 72px;
    padding: 10px 14px;
    gap: 12px;
  }

  .play-btn{
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .play-btn.play::before{
    left: 17px;
    top: 13px;
    border-left: 13px solid #b04b97;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
  }

  .play-btn.pause::before,
  .play-btn.pause::after{
    top: 13px;
    height: 20px;
  }

  .play-btn.pause::before{ left: 15px; }
  .play-btn.pause::after{ right: 15px; }

  .wave-wrap{
    height: 26px;
  }

  .time{
    min-width: 64px;
    font-size: 12px;
  }

  .seek::-webkit-slider-thumb{
    width: 18px;
    height: 18px;
    margin-top: -6px;
  }

  .seek::-moz-range-thumb{
    width: 18px;
    height: 18px;
  }
}