/* =========================================================
   LA PERLA 890 AM — Reproductor profesional 24/7
   ========================================================= */

:root {
  --lp-bg: #0a0a0a;
  --lp-bg-soft: #161616;
  --lp-gold: #d4af37;
  --lp-gold-light: #f2d272;
  --lp-live: #e23b3b;
  --lp-text: #ffffff;
  --lp-text-dim: rgba(255, 255, 255, 0.6);
  --lp-border: rgba(255, 255, 255, 0.08);
  --lp-bar-height: 78px;
}

/* push page content above the fixed bottom bar */
body.has-lp-bar {
  padding-bottom: var(--lp-bar-height);
}

/* seguro contra scroll horizontal accidental en móvil */
html {
  overflow-x: hidden;
}

/* ---------------------------------------------------------
   Live / On-Air badge (shared)
--------------------------------------------------------- */
.lp-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 30px;
  background: rgba(226, 59, 59, 0.12);
  border: 1px solid rgba(226, 59, 59, 0.45);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lp-live);
}

.lp-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-live);
  box-shadow: 0 0 0 0 rgba(226, 59, 59, 0.7);
  animation: lp-pulse 1.6s infinite;
}

@keyframes lp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 59, 59, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(226, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 59, 59, 0); }
}

/* ---------------------------------------------------------
   Equalizer animation (shared, scales via font-size)
--------------------------------------------------------- */
.lp-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  width: 20px;
}

.lp-eq span {
  display: block;
  width: 3px;
  background: var(--lp-gold);
  border-radius: 1px;
  animation: lp-eq-bounce 1s infinite ease-in-out;
}

.lp-eq span:nth-child(1) { height: 40%; animation-delay: -0.9s; }
.lp-eq span:nth-child(2) { height: 100%; animation-delay: -0.6s; }
.lp-eq span:nth-child(3) { height: 65%; animation-delay: -0.3s; }
.lp-eq span:nth-child(4) { height: 85%; animation-delay: 0s; }

@keyframes lp-eq-bounce {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

.lp-eq.is-paused span { animation-play-state: paused; transform: scaleY(0.2); }

/* ---------------------------------------------------------
   Sticky bottom player bar (all pages)
--------------------------------------------------------- */
.lp-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  height: var(--lp-bar-height);
  background: linear-gradient(180deg, rgba(10,10,10,0.97), rgba(0,0,0,0.99));
  border-top: 1px solid var(--lp-border);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  font-family: inherit;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
}

.lp-bar-inner {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.lp-bar-station {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.lp-bar-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--lp-border);
  background: #000;
}

.lp-bar-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.lp-bar-name {
  color: var(--lp-text);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-bar-sub {
  color: var(--lp-text-dim);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-bar-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.lp-btn {
  border: none;
  background: transparent;
  color: var(--lp-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease, transform .15s ease, background .2s ease;
}

.lp-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--lp-gold);
  color: #0a0a0a;
  font-size: 16px;
  flex-shrink: 0;
}

.lp-play-btn:hover { background: var(--lp-gold-light); transform: scale(1.05); }

.lp-play-btn .lp-icon-pause { display: none; }
.lp-play-btn.is-playing .lp-icon-play { display: none; }
.lp-play-btn.is-playing .lp-icon-pause { display: inline-flex; }

.lp-bar-eq-wrap { display: none; align-items: center; }
@media (min-width: 576px) {
  .lp-bar-eq-wrap { display: flex; }
}

.lp-volume {
  display: none;
  align-items: center;
  gap: 8px;
}
@media (min-width: 768px) {
  .lp-volume { display: flex; }
}

.lp-volume input[type="range"] {
  width: 80px;
  accent-color: var(--lp-gold);
  cursor: pointer;
}

.lp-mute-btn { font-size: 15px; opacity: 0.85; }
.lp-mute-btn:hover { opacity: 1; color: var(--lp-gold); }

.lp-popout-btn {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--lp-text-dim);
  border: 1px solid var(--lp-border);
  border-radius: 30px;
  padding: 7px 14px;
  white-space: nowrap;
}
@media (min-width: 992px) {
  .lp-popout-btn { display: inline-flex; }
}
.lp-popout-btn:hover { color: var(--lp-gold); border-color: var(--lp-gold); }

.lp-status {
  font-size: 11px;
  color: var(--lp-text-dim);
  display: none;
  white-space: nowrap;
}
@media (min-width: 992px) {
  .lp-status { display: inline-flex; }
}
.lp-status.is-error { color: var(--lp-live); }

/* ---------------------------------------------------------
   Hero player card (home page)
--------------------------------------------------------- */
.lp-hero-player {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(145deg, #111111 0%, #000000 100%);
  border: 1px solid var(--lp-border);
  padding: 40px 30px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.lp-hero-player::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 70%);
}

.lp-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}

.lp-hero-freq {
  color: var(--lp-text-dim);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lp-hero-main {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.lp-hero-play-btn {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--lp-gold);
  color: #0a0a0a;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.35);
}

.lp-hero-play-btn:hover { background: var(--lp-gold-light); transform: scale(1.04); }
.lp-hero-play-btn .lp-icon-pause { display: none; }
.lp-hero-play-btn.is-playing .lp-icon-play { display: none; }
.lp-hero-play-btn.is-playing .lp-icon-pause { display: inline-flex; }

.lp-hero-info {
  flex: 1 1 220px;
  min-width: 0;
}

.lp-hero-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.lp-hero-desc {
  color: var(--lp-text-dim);
  font-size: 14px;
  margin-bottom: 14px;
}

.lp-hero-eq-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-hero-eq-wrap .lp-eq { height: 22px; }
.lp-hero-eq-wrap .lp-eq span { width: 4px; }

.lp-hero-status {
  font-size: 12.5px;
  color: var(--lp-text-dim);
}
.lp-hero-status.is-error { color: var(--lp-live); }

.lp-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lp-hero-actions .lp-volume { display: flex; }
.lp-hero-actions .lp-popout-btn { display: inline-flex; }

@media (max-width: 575px) {
  .lp-hero-actions .lp-volume,
  .lp-hero-actions .lp-popout-btn { display: none; }
  .lp-hero-player { padding: 28px 20px; }
  .lp-hero-play-btn { width: 70px; height: 70px; font-size: 22px; }
}

@media (max-width: 380px) {
  .lp-hero-player { padding: 22px 16px; border-radius: 12px; }
  .lp-hero-play-btn { width: 60px; height: 60px; font-size: 19px; }
  .lp-hero-title { font-size: 17px; }
  .lp-hero-desc { font-size: 12.5px; }
  .lp-hero-freq { font-size: 11px; letter-spacing: 1px; }
}

/* ---------------------------------------------------------
   Barra inferior en móvil — todo cabe en una sola fila sin
   que se encime ni se desborde, aunque para eso haya que
   ocultar lo decorativo (logo, texto del badge "En vivo").
--------------------------------------------------------- */
@media (max-width: 575px) {
  .lp-bar-inner { padding: 0 12px; gap: 10px; }
  .lp-bar-logo { width: 32px; height: 32px; }
  .lp-bar-name { font-size: 12.5px; }
  .lp-bar-sub { font-size: 10.5px; }
  .lp-bar-controls { gap: 10px; }
  .lp-play-btn { width: 40px; height: 40px; font-size: 14px; }
  .lp-bar-controls .lp-live-badge { padding: 5px; font-size: 0; gap: 0; }
}

@media (max-width: 360px) {
  .lp-bar-logo { display: none; }
  .lp-bar-inner { padding: 0 10px; gap: 8px; }
}

/* icon glyphs (no external icon font dependency for play/pause) */
.lp-icon-play, .lp-icon-pause, .lp-icon-vol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
