/* ===== Bermúdez DJ — Reproductor fijo de audio (widget propio, sin dependencias externas) ===== */
:root{
  --pt-pl-bg: #0a0a10;
  --pt-pl-panel: #0c0c14;
  --pt-pl-accent: #ff9f1c;
  --pt-pl-accent-2: #ff6a1c;
  --pt-pl-text: #f5f0e8;
  --pt-pl-muted: #9c96a8;
  --pt-pl-height: 68px;
}

.pt-player{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999997;
  height: var(--pt-pl-height);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: linear-gradient(180deg, var(--pt-pl-panel), var(--pt-pl-bg));
  border-top: 1px solid rgba(255,159,28,.2);
  box-shadow: 0 -10px 30px rgba(0,0,0,.45);
  font-family: inherit;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2);
}
.pt-player.is-visible{ transform: translateY(0); }
.pt-player, .pt-player *{ box-sizing: border-box; }

.pt-player__art{
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: #17121b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pt-player__art img{ width: 100%; height: 100%; object-fit: cover; }

.pt-player__toggle{
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(145deg, #ffc873, var(--pt-pl-accent));
  color: #1a0f00;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(255,106,28,.35);
  transition: transform .2s cubic-bezier(.2,.9,.3,1.4);
}
.pt-player__toggle:hover{ transform: scale(1.06); }
.pt-player__toggle:active{ transform: scale(.92); }
.pt-player__toggle svg{ width: 18px; height: 18px; }
.pt-player__toggle .icon-pause{ display: none; }
.pt-player.is-playing .pt-player__toggle .icon-play{ display: none; }
.pt-player.is-playing .pt-player__toggle .icon-pause{ display: flex; }

.pt-player__nav{
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,159,28,.3);
  background: rgba(255,159,28,.06);
  color: var(--pt-pl-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pt-player__nav:hover{ background: rgba(255,159,28,.16); }
.pt-player__nav svg{ width: 14px; height: 14px; }

.pt-player__info{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.pt-player__title{
  color: var(--pt-pl-text);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-player__station{
  color: var(--pt-pl-muted);
  font-size: 11px;
}

.pt-player__seek{
  flex: 2 1 auto;
  min-width: 80px;
  max-width: 320px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  cursor: pointer;
}
.pt-player__seek::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--pt-pl-accent);
  box-shadow: 0 0 8px rgba(255,159,28,.6);
}
.pt-player__seek::-moz-range-thumb{
  width: 12px; height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--pt-pl-accent);
}

.pt-player__vol{
  display: none;
  align-items: center;
  gap: 8px;
  flex: none;
}
.pt-player__vol-btn{
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--pt-pl-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pt-player__vol-btn svg{ width: 18px; height: 18px; }
.pt-player__vol-range{
  width: 70px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  cursor: pointer;
}
.pt-player__vol-range::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--pt-pl-accent);
}

@media (min-width: 720px){
  .pt-player__vol{ display: flex; }
}

@media (max-width: 480px){
  :root{ --pt-pl-height: 60px; }
  .pt-player{ gap: 10px; padding: 0 10px; }
  .pt-player__art{ width: 36px; height: 36px; }
  .pt-player__toggle{ width: 38px; height: 38px; }
  .pt-player__nav{ display: none; }
  .pt-player__station{ display: none; }
}

/* Producción: el reproductor no debe tapar el chat de WhatsApp ni el menú. */
html.pt-player-active .pt-wa{ bottom: calc(var(--pt-pl-height) + 18px) !important; }
html.bdj-menu-open .pt-player{ opacity: 0; visibility: hidden; pointer-events: none; }
