/* ======================================
   LIVE indicator (jos stanga)
   Activ doar cand cardul este playing
====================================== */

.listen-counter {
  font-size: 12px;
  font-weight: 600;
  color: #777;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .3px;
}

/* numarul de ascultatori (real + increment local per utilizator,
   vezi js/script.js applyLocalListenersToAllCards) */
.listen-counter .listeners-count {
  font-size: 10px;
  font-weight: 500;
  color: #5c6178;
}

.radio-card.is-playing .listen-counter .listeners-count {
  color: #6fae86;
}

/* bulina LIVE � ascunsa implicit */
.listen-counter::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1db954; /* verde LIVE */
  opacity: 0;
}

/* cand statia ruleaza */
.radio-card.is-playing .listen-counter {
  color: #1db954;
}

/* afisare + puls */
.radio-card.is-playing .listen-counter::before {
  opacity: 1;
  animation: pr-live-pulse 1.4s infinite;
}

@keyframes pr-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(29,185,84,.6);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(29,185,84,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(29,185,84,0);
  }
}

/* ======================================
   NOW PLAYING (piesa curenta) pe cardul activ
   Populat de js/player-now-playing.js via
   [data-now-playing-for="{slug}"], vizibil doar
   cat timp cardul are clasa is-playing.
====================================== */
.card-now-playing {
  display: none;
  margin: 0;
  font-size: 0.7rem;
  font-style: italic;
  color: #9aa0c3;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-card.is-playing .card-now-playing:not(:empty) {
  display: block;
}
