/* ═══════════════════════════════════════════
   BOTTOM PLAYER — Cajamar FM
   Visível apenas em mobile (≤991px)
═══════════════════════════════════════════ */

.bottom-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #0f172a;
  z-index: 999;
  display: none;          /* sobrepõe o display:none do main.css */
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 16px;
  box-shadow: 0 -2px 24px rgba(0, 0, 0, .4);
  border-top: 1px solid rgba(255, 255, 255, .06);
  gap: 10px;
}

@media (max-width: 991px) {
  .bottom-player { display: flex; }
  /* empurra o conteúdo para não ficar sob a barra */
  body { padding-bottom: 64px !important; }
}

/* ── Lado esquerdo: badge + info ── */
.bp-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.bp-live {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #dc2626;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 3px 7px 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.bp-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  animation: bpBlink 1.4s ease-in-out infinite;
}

@keyframes bpBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .3; transform: scale(.7); }
}

.bp-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.bp-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-now {
  font-size: 11px;
  color: rgba(255, 255, 255, .45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* ── Lado direito: volume + botão ── */
.bp-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bp-volume {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Esconde volume em telas muito pequenas */
@media (max-width: 420px) {
  .bp-volume { display: none; }
}

.bp-mute-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  transition: color .15s;
  line-height: 1;
}
.bp-mute-btn:hover { color: #fff; }

#bp-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .18);
  outline: none;
  cursor: pointer;
  accent-color: #3b82f6;
}
#bp-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: transform .12s;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
#bp-vol::-webkit-slider-thumb:hover { transform: scale(1.25); }
#bp-vol::-moz-range-thumb {
  width: 13px; height: 13px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* ── Botão play/pause mobile ── */
.bp-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
  position: relative;
  outline: none;
}
.bp-btn:hover  { background: #1d4ed8; }
.bp-btn:active { transform: scale(.92); }

/* Spinner de buffering em volta do botão */
.bp-btn.buffering::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: rgba(255, 255, 255, .7);
  border-right-color: rgba(255, 255, 255, .2);
  animation: bpSpin .65s linear infinite;
  pointer-events: none;
}
@keyframes bpSpin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   DESKTOP PLAYER — estados adicionais
   (complementa o CSS existente do main.css)
═══════════════════════════════════════════ */

/* Spinner de buffering no botão circular do desktop */
.player-btn.buffering {
  animation: none !important; /* pausa o pulse */
  position: relative;
}
.player-btn.buffering::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: rgba(255, 255, 255, .8);
  border-right-color: rgba(255, 255, 255, .2);
  animation: bpSpin .7s linear infinite;
  pointer-events: none;
}

/* Ícone maior e centralizado no botão desktop */
.player-btn .fa-circle-notch {
  font-size: 38px !important;
}
