/* Rádio Andarilhos (MK-14). Painel ancorado ao chip "Som da rua": popover sem backdrop, por cima do site, sem empurrar nada.
   Tudo prefixado com .site-head (mesma regra do shell.css) para não colidir com o CSS das páginas. */

/* chip: largura fixa para o header não mexer entre on/off */
.site-head .hud { position: relative; }
.site-head .snd { min-width: 178px; justify-content: flex-start; }
.site-head .snd .lbl em { display: inline-block; width: 2.7em; text-align: left; } /* "on" e "off" ocupam o mesmo espaço */
.site-head .snd .car { margin-left: auto; font-size: 9px; opacity: .7; transition: transform .2s; }
.site-head .snd[aria-expanded=true] { border-color: var(--paper); background: rgba(0,0,0,.72); }
.site-head .snd[aria-expanded=true] .car { transform: rotate(180deg); }
.site-head .snd.on.wait .eq i { animation: none; height: 6px; } /* ligado mas ainda não soando (esperando gesto/carregando) */
@media (max-width: 600px) { .site-head .snd { min-width: 0; } .site-head .snd .car { display: none; } }

.site-head .radio { position: absolute; top: calc(100% + 12px); right: 0; width: 372px; z-index: 70; text-align: left; margin: 0; padding: 0; box-sizing: border-box;
  background: #0F0F0F; color: var(--paper); border: 1.5px solid rgba(245,245,242,.16);
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 2px 0 rgba(0,0,0,.4); font: 400 14px/1.4 var(--f-body); letter-spacing: normal; text-transform: none;
  opacity: 0; transform: translateY(-6px) scale(.985); transform-origin: calc(100% - 60px) 0;
  transition: opacity .17s ease, transform .17s cubic-bezier(.22,1,.36,1); }
.site-head .radio.in { opacity: 1; transform: none; }
.site-head .radio[hidden] { display: none; }
.site-head .radio::before { content: ''; position: absolute; top: -8px; right: 64px; width: 14px; height: 14px; background: #0F0F0F;
  border-left: 1.5px solid rgba(245,245,242,.16); border-top: 1.5px solid rgba(245,245,242,.16); transform: rotate(45deg); }
.site-head .radio button { font-family: var(--f-body); }
.site-head .radio [hidden] { display: none !important; }

.site-head .r-top { position: relative; padding: 18px 18px 14px; border-bottom: 1px solid rgba(245,245,242,.08); display: flex; align-items: flex-start; gap: 12px; }
.site-head .r-tape { display: inline-block; background: var(--sticker-yellow); color: var(--ink); font: 400 20px/1 var(--f-display); letter-spacing: .03em; text-transform: uppercase;
  padding: 7px 12px 6px; transform: rotate(-1.6deg); box-shadow: 0 3px 0 rgba(0,0,0,.5);
  clip-path: polygon(0 6%, 3% 0, 97% 4%, 100% 0, 99% 94%, 96% 100%, 4% 96%, 0 100%); }
.site-head .r-sub { display: block; font: 400 13px/1.2 var(--f-type); color: var(--muted); margin-top: 9px; }
.site-head .r-x { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1.5px solid rgba(245,245,242,.2); color: var(--paper); cursor: pointer; flex: none; }
.site-head .r-x:hover { border-color: var(--paper); }

.site-head .r-now { padding: 16px 18px 6px; }
.site-head .r-meta { display: flex; align-items: center; gap: 10px; font: 600 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.site-head .r-meta .st { display: inline-flex; align-items: center; gap: 6px; }
.site-head .r-meta .st i { width: 7px; height: 7px; background: #555; display: inline-block; }
.site-head .r-meta .st.on { color: var(--paper); }
.site-head .r-meta .st.on i { background: var(--red); box-shadow: 0 0 0 3px rgba(229,35,41,.25); }
.site-head .r-meta .idx { margin-left: auto; font: 400 18px/1 var(--f-term); letter-spacing: .04em; color: var(--paper); }
.site-head .r-title { font: 400 30px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .01em; margin: 6px 0 -4px; min-height: 36px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-head .r-by { font: 400 12px/1.3 var(--f-body); color: var(--muted); margin-top: 6px; }

.site-head .r-msg { margin: 10px 18px 2px; padding: 10px 12px; font: 500 13px/1.4 var(--f-body); border-left: 4px solid var(--sticker-yellow); background: rgba(242,211,53,.08); }
.site-head .r-msg.err { border-color: var(--red); background: rgba(229,35,41,.1); }
.site-head .r-quiet { background: none; border: 0; padding: 0; color: var(--paper); font: 600 13px/1.4 var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* sliders nativos (teclado e leitor de tela de graça), com a cara da marca */
.site-head .radio input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; --p: 0%; }
.site-head .radio input[type=range]:disabled { cursor: default; }
.site-head .radio input[type=range]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--red) var(--p), rgba(245,245,242,.14) var(--p)); }
.site-head .radio input[type=range]::-moz-range-track { height: 6px; background: rgba(245,245,242,.14); }
.site-head .radio input[type=range]::-moz-range-progress { height: 6px; background: var(--red); }
.site-head .radio input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -4px; background: var(--paper); border: 3px solid var(--red); border-radius: 0; transform: rotate(45deg); }
.site-head .radio input[type=range]::-moz-range-thumb { width: 10px; height: 10px; background: var(--paper); border: 3px solid var(--red); border-radius: 0; transform: rotate(45deg); }
.site-head .radio input[type=range]:disabled::-webkit-slider-thumb { visibility: hidden; }
.site-head .radio input[type=range]:disabled::-moz-range-thumb { visibility: hidden; }
.site-head .r-prog { padding: 12px 18px 4px; }
.site-head .times { display: flex; justify-content: space-between; font: 500 12px/1 var(--f-body); font-variant-numeric: tabular-nums; color: var(--muted); margin-top: 4px; }

.site-head .r-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 18px 8px; }
.site-head .radio .ib { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 1.5px solid rgba(245,245,242,.22); color: var(--paper); cursor: pointer; padding: 0; }
.site-head .radio .ib:hover { border-color: var(--paper); background: rgba(245,245,242,.06); }
.site-head .radio .play { width: 68px; height: 64px; padding: 0; background: var(--red); border: 3px solid var(--ink); outline: 2px solid var(--red); color: #fff; transform: rotate(-2deg);
  box-shadow: 0 6px 0 rgba(0,0,0,.5); display: grid; place-items: center; cursor: pointer; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.site-head .radio .play:hover { transform: rotate(1.5deg) translateY(-2px) scale(1.04); }
.site-head .radio .play.busy svg { animation: radio-pulse 1s ease-in-out infinite alternate; }
@keyframes radio-pulse { from { opacity: 1; } to { opacity: .45; } }

.site-head .r-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 18px 14px; }
.site-head .radio .mode { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 12px; background: none; border: 1.5px solid rgba(245,245,242,.2); color: var(--paper);
  font: 600 12px/1.15 var(--f-body); letter-spacing: .06em; text-transform: uppercase; text-align: left; cursor: pointer; }
.site-head .radio .mode small { display: block; font-weight: 500; letter-spacing: .04em; color: var(--muted); text-transform: none; font-size: 12px; margin-top: 2px; }
.site-head .radio .mode[aria-pressed=true], .site-head .radio .mode.lit { border-color: var(--red); background: rgba(229,35,41,.14); }
.site-head .radio .mode[aria-pressed=true] small, .site-head .radio .mode.lit small { color: #ff8a8e; }
.site-head .radio .mode svg { flex: none; }

.site-head .r-vol { display: flex; align-items: center; gap: 10px; padding: 0 18px 14px; }
.site-head .r-vol .ib { width: 44px; height: 44px; border: 0; }
.site-head .r-vol input[type=range] { flex: 1; height: 44px; }
.site-head .r-vol input[type=range]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--paper) var(--p), rgba(245,245,242,.14) var(--p)); }
.site-head .r-vol input[type=range]::-moz-range-progress { height: 4px; background: var(--paper); }
.site-head .r-vol input[type=range]::-moz-range-track { height: 4px; }
.site-head .r-vol input[type=range]::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4px; border-color: var(--paper); background: var(--ink); }
.site-head .r-vol input[type=range]::-moz-range-thumb { border-color: var(--paper); background: var(--ink); }
.site-head .r-vol .pc { width: 38px; text-align: right; font: 500 12px/1 var(--f-body); color: var(--muted); font-variant-numeric: tabular-nums; }

.site-head .r-list { border-top: 1px solid rgba(245,245,242,.08); max-height: 216px; overflow: auto; padding: 6px 0; overscroll-behavior: contain; }
.site-head .r-list h3 { margin: 6px 18px 6px; font: 600 11px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; }
.site-head .r-list h3 span { margin-left: auto; }
.site-head .radio .tk { width: 100%; min-height: 48px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 0 18px; background: none; border: 0;
  border-left: 4px solid transparent; color: var(--paper); font: 500 14px/1.25 var(--f-body); text-align: left; cursor: pointer; }
.site-head .radio .tk:hover { background: rgba(245,245,242,.06); }
.site-head .radio .tk .n { font: 400 18px/1 var(--f-term); color: var(--muted); }
.site-head .radio .tk .d { font: 500 12px/1 var(--f-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.site-head .radio .tk[aria-current] { border-left-color: var(--red); background: rgba(229,35,41,.1); font-weight: 700; }
.site-head .radio .tk[aria-current] .n { color: var(--red); }
.site-head .radio .tk.bad { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(229,35,41,.7); cursor: default; }
.site-head .eqm { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; width: 18px; }
.site-head .eqm i { flex: 1; background: var(--red); animation: shell-eq .8s ease-in-out infinite alternate; height: 4px; }
.site-head .eqm i:nth-child(2) { animation-duration: .55s; } .site-head .eqm i:nth-child(3) { animation-duration: .7s; }
.site-head .eqm.stop i { animation: none; height: 6px; }

.site-head .r-empty { padding: 26px 18px 28px; text-align: center; }
.site-head .r-empty b { display: block; font: 400 24px/1 var(--f-display); text-transform: uppercase; margin-bottom: 8px; }
.site-head .r-empty p { margin: 0; color: var(--muted); font-size: 13px; }
.site-head .radio :focus-visible { outline: 3px solid var(--sticker-yellow); outline-offset: 2px; }

/* mobile: largura útil logo abaixo do header, sem cobrir a página inteira, rolável se a tela for baixa */
@media (max-width: 600px) {
  .site-head .radio { position: fixed; top: 64px; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); width: auto;
    max-height: calc(100dvh - 76px - env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; }
  .site-head .radio::before { right: 108px; }
  .site-head .r-title { font-size: 26px; }
  .site-head .r-list { max-height: none; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .site-head .radio { transition: none; transform: none; }
  .site-head .eqm i { animation: none; height: 8px; }
  .site-head .radio .play { transition: none; }
  .site-head .radio .play.busy svg { animation: none; }
}
