
/* Rádio Amparo — player persistente elegante v6 */
:root{--ra-player-h:54px}

.ra-player{
  position:fixed!important;
  inset:0 0 auto 0;
  z-index:2147483000!important;
  height:var(--ra-player-h);
  background:rgba(12,50,84,.98);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.09);
  box-shadow:0 8px 24px rgba(5,25,48,.10);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.ra-player[hidden]{display:none!important}
.ra-player:not([hidden]){display:block!important}

.ra-player-inner{
  width:min(1210px,calc(100% - 32px));
  height:100%;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}

.ra-player-live{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  line-height:1;
  font-weight:800;
  letter-spacing:.13em;
  white-space:nowrap;
  opacity:.94;
}
.ra-player-live span{
  width:7px;height:7px;border-radius:50%;
  background:#e64b55;
  box-shadow:0 0 0 4px rgba(230,75,85,.12);
}

.ra-player-info{
  min-width:0;
  flex:1 1 auto;
  padding-right:10px;
}
.ra-player-track{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14px;
  line-height:1.2;
  font-weight:650;
  letter-spacing:.01em;
  color:rgba(255,255,255,.96);
}

.ra-player-controls{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:11px;
}
.ra-player button{
  appearance:none;
  border:0;
  font:inherit;
  cursor:pointer;
}
.ra-player-play{
  width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;
  background:#fff;
  color:#123b61;
  font-size:14px;
  font-weight:900;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.ra-player-play:hover{transform:translateY(-1px)}
.ra-player-play:focus-visible,
.ra-player-close:focus-visible,
.ra-player-volume input:focus-visible{
  outline:2px solid #fff;
  outline-offset:3px;
}

.ra-player-volume{
  display:flex;
  align-items:center;
  gap:8px;
}
.ra-volume-icon{font-size:13px;opacity:.78}
.ra-player-volume input{
  width:92px;
  accent-color:#fff;
  cursor:pointer;
}
.ra-player-close{
  width:34px;height:34px;
  display:grid;place-items:center;
  background:transparent;
  color:rgba(255,255,255,.72);
  border-radius:50%;
  font-size:22px;
  line-height:1;
}
.ra-player-close:hover{
  color:#fff;
  background:rgba(255,255,255,.08);
}

/* Reserva a altura real da barra: o menu nunca fica tapado. */
body:has(#raPlayer:not([hidden])){padding-top:var(--ra-player-h)}

/* O cabeçalho fica imediatamente abaixo do player quando se faz scroll. */
body:has(#raPlayer:not([hidden])) .site-header{
  position:sticky;
  top:var(--ra-player-h);
  z-index:1000;
}

/* O antigo botão/estado minimizado deixa de alterar a geometria. */
.ra-player.is-minimized{height:var(--ra-player-h)}
.ra-player.is-minimized .ra-player-inner{height:100%}

@media(max-width:720px){
  :root{--ra-player-h:52px}
  .ra-player-inner{width:calc(100% - 20px);gap:10px}
  .ra-player-live{font-size:10px;letter-spacing:.09em}
  .ra-player-track{font-size:13px}
  .ra-player-volume input{display:none}
  .ra-volume-icon{font-size:12px}
  .ra-player-controls{gap:5px}
  .ra-player-play{width:36px;height:36px}
  .ra-player-close{width:32px;height:32px}
}
@media(max-width:430px){
  .ra-player-live{font-size:0;gap:0}
  .ra-player-live span{display:block}
  .ra-player-inner{gap:9px}
}
@media(prefers-reduced-motion:no-preference){
  .ra-player-play,.ra-player-close{transition:.16s ease}
}
