/* ============================================================
   LA 15 RADIO — Reproductor flotante (v2, compacto)
   ============================================================ */

.la15fphw {
  --la15fphw-accent: #ff8a1e;
  --la15fphw-dark: #1c0f33;
  --la15fphw-icon: #1a0f00;
  position: fixed;
  bottom: 16px;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --la15fphw-side: 16px;
}

.la15fphw--right { right: var(--la15fphw-side); }
.la15fphw--left  { left: var(--la15fphw-side); }

.la15fphw * { box-sizing: border-box; }

/* ---------- Burbuja minimizada ---------- */
.la15fphw-bubble {
  display: none;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(145deg, var(--la15fphw-dark), #3a1a5e);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 0 2px rgba(255,138,30,0.55);
  position: relative;
  padding: 0;
  animation: la15fphw-hw-pulseglow 3s ease-in-out infinite;
}
@keyframes la15fphw-hw-pulseglow {
  0%,100% { box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 0 2px rgba(255,138,30,0.55), 0 0 14px rgba(160,90,255,0.35); }
  50%     { box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 0 2px rgba(120,220,150,0.55), 0 0 18px rgba(120,220,150,0.45); }
}
.la15fphw-bubble-art {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--la15fphw-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.la15fphw-bubble-art img { width: 100%; height: 100%; object-fit: cover; }

.la15fphw-bubble-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--la15fphw-dark);
  animation: la15fphw-pulsedot 1.4s infinite;
}
@keyframes la15fphw-pulsedot {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  70%     { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.la15fphw[data-minimized="true"] .la15fphw-bubble { display: flex; }
.la15fphw[data-minimized="true"] .la15fphw-bar { display: none; }

/* ---------- Barra principal (alargada, delgada) ---------- */
.la15fphw-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 316px;
  max-width: calc(100vw - 2 * var(--la15fphw-side));
  height: 58px;
  padding: 0 8px 0 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(160deg, rgba(60,26,100,0.96) 0%, rgba(24,12,45,0.98) 75%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06) inset;
  animation: la15fphw-rise 0.3s ease;
}
@keyframes la15fphw-rise {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Botón Play/Pause (iconos 100% CSS, nunca invisibles) ---------- */
.la15fphw-play {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--la15fphw-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(255,138,30,0.5);
  transition: transform .15s ease;
  animation: la15fphw-hw-glow 3s ease-in-out infinite;
}
.la15fphw-play:hover { transform: scale(1.06); }
.la15fphw-play:active { transform: scale(0.95); }
@keyframes la15fphw-hw-glow {
  0%,100% { box-shadow: 0 3px 10px rgba(255,138,30,0.5), 0 0 10px rgba(160,90,255,0.45); }
  50%     { box-shadow: 0 3px 10px rgba(255,138,30,0.5), 0 0 14px rgba(120,220,150,0.5); }
}

.la15fphw-ico { display: inline-flex; align-items: center; justify-content: center; }
.la15fphw-ico[hidden] { display: none !important; }

/* Triángulo de Play, dibujado con bordes CSS (no SVG, no depende de fuentes) */
.la15fphw-ico-play {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid var(--la15fphw-icon);
  margin-left: 3px;
}
.la15fphw-ico-mini.la15fphw-ico-play {
  border-top-width: 6px;
  border-bottom-width: 6px;
  border-left-width: 10px;
  margin-left: 2px;
}

/* Dos barras de Pause */
.la15fphw-ico-pause {
  gap: 4px;
}
.la15fphw-ico-pause::before,
.la15fphw-ico-pause::after {
  content: "";
  width: 4px;
  height: 15px;
  background: var(--la15fphw-icon);
  border-radius: 1px;
}
.la15fphw-ico-pause::before { margin-right: 4px; }

/* Spinner de carga */
.la15fphw-ico-spin {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(26,18,0,0.25);
  border-top-color: var(--la15fphw-icon);
  border-radius: 50%;
  animation: la15fphw-spin 0.8s linear infinite;
}
@keyframes la15fphw-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- Textos ---------- */
.la15fphw-texts {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.la15fphw-row1 {
  display: flex;
  align-items: center;
  gap: 6px;
}
.la15fphw-station {
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.la15fphw-station:hover { color: var(--la15fphw-accent); }

.la15fphw-live {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #8affb0;
}
.la15fphw-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5dffa0;
  animation: la15fphw-blink 1.1s infinite;
}
@keyframes la15fphw-blink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.25; }
}

.la15fphw-row2-mask {
  overflow: hidden;
  width: 100%;
}
.la15fphw-row2-track {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
  display: inline-block;
}
.la15fphw-row2-mask.la15fphw-scroll .la15fphw-row2-track {
  animation: la15fphw-marquee 12s linear infinite;
  padding-right: 36px;
}
@keyframes la15fphw-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Mute / Minimizar ---------- */
.la15fphw-mute,
.la15fphw-minimize {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.la15fphw-mute:hover,
.la15fphw-minimize:hover { background: rgba(255,255,255,0.18); color: #fff; }

.la15fphw-minimize { font-size: 14px; line-height: 1; }

/* Icono de altavoz, 100% CSS */
.la15fphw-ico-sound {
  position: relative;
  width: 12px;
  height: 10px;
}
.la15fphw-ico-sound::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 5px; height: 6px;
  background: currentColor;
  clip-path: polygon(0 25%, 40% 25%, 100% 0, 100% 100%, 40% 75%, 0 75%);
}
.la15fphw-ico-sound::after {
  content: "";
  position: absolute;
  right: -1px; top: 1px;
  width: 5px; height: 8px;
  border: 1.6px solid currentColor;
  border-left: none;
  border-radius: 0 60% 60% 0;
  opacity: 0.85;
}
.la15fphw[data-muted="true"] .la15fphw-ico-sound::after { opacity: 0.15; }

.la15fphw-status {
  position: absolute;
  bottom: -18px;
  left: 8px;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
}

/* ---------- Responsive (móvil: barra inferior completa) ---------- */
@media (max-width: 560px) {
  .la15fphw { left: 0; right: 0; bottom: 0; --la15fphw-side: 10px; }
  .la15fphw-bar {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    height: 62px;
    padding: 0 10px;
  }
  .la15fphw-bubble { position: fixed; bottom: 14px; }
  .la15fphw--right .la15fphw-bubble { right: 14px; }
  .la15fphw--left .la15fphw-bubble  { left: 14px; }
  .la15fphw[data-minimized="true"] .la15fphw-bubble { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .la15fphw-ico-spin,
  .la15fphw-row2-track,
  .la15fphw-live-dot,
  .la15fphw-bubble-dot {
    animation: none !important;
  }
}
