/* Rádio Brasilidades: barra fixa compacta, independente do restante do site. */
:root { --radio-dock-height: 112px; }
body { padding-bottom: var(--radio-dock-height); }
.radio-dock { position: fixed; z-index: 1200; inset: auto 0 0; color: var(--text); border-top: 1px solid #c9892a70; background: #0c141df5; box-shadow: 0 -12px 45px #0006; backdrop-filter: blur(18px); padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); }
.radio-dock-inner { display: grid; grid-template-columns: 210px minmax(120px,1fr) 146px 146px; grid-template-areas: 'brand track transport volume' 'brand next activity volume' 'notice notice notice notice'; align-items: center; column-gap: 22px; row-gap: 7px; max-width: 1200px; margin: auto; }
.radio-brand { grid-area: brand; display: flex; align-items: center; gap: 12px; min-width: 0; }
.radio-brand img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.radio-brand h2 { font: 600 1rem/1.25 var(--font-main); letter-spacing: -.02em; color: #f0d5a8; margin: 0 0 6px; }
.radio-brand-meta { display: flex; align-items: center; gap: 9px; font-size: .65rem; color: #b0bec5; white-space: nowrap; }
.radio-onair { display: inline-flex; align-items: center; gap: 5px; color: #a7e8c8; font: 700 .7rem var(--font-accent); letter-spacing: .09em; }
.radio-onair::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #91e2b8; }
.radio-now { grid-area: track; min-width: 0; }
.radio-now h3 { font: 600 .95rem/1.35 var(--font-main); color: #f3f3ed; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-now p { font-size: .75rem; color: #a9bac3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-timeline { display: flex; align-items: center; gap: 12px; margin-top: 5px; }
.radio-timeline progress { appearance: none; flex: 1; min-width: 0; height: 2px; border: 0; border-radius: 2px; background: #ffffff16; color: #e8b574; }
.radio-timeline progress::-webkit-progress-bar { background: #ffffff16; }
.radio-timeline progress::-webkit-progress-value { background: #e8b574; }
.radio-timeline progress::-moz-progress-bar { background: #e8b574; }
.radio-time { flex-shrink: 0; font: 500 .6rem var(--font-main); color: #9eb0ba; font-variant-numeric: tabular-nums; }
.radio-toggle { grid-area: transport; display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 6px; background: linear-gradient(110deg,#ebba72,#d29843); color: #11181c; font: 600 .85rem var(--font-main); white-space: nowrap; }
.radio-toggle:hover { filter: brightness(1.08); }
.radio-toggle:disabled { opacity: .5; }
.radio-toggle svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.radio-volume { grid-area: volume; display: flex; align-items: center; justify-content: end; gap: 8px; }
.radio-mute { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid #ffffff20; border-radius: 6px; color: #e9d5b6; background: #ffffff05; }
.radio-mute svg { width: 19px; height: 19px; }
.radio-mute[aria-pressed='true'] svg { opacity: .45; }
.radio-volume input { width: 90px; min-width: 0; height: 44px; accent-color: #e8b775; }
.radio-next { grid-area: next; display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: .65rem; line-height: 1.4; color: #9fb2bc; }
.radio-next > span:first-child { color: #d8b17c; flex-shrink: 0; }
.radio-next > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-listening { grid-area: activity; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; font-size: .58rem; white-space: nowrap; color: #9fb2bc; }
.radio-equalizer { display: flex; align-items: center; gap: 2px; height: 12px; }
.radio-equalizer i { width: 2px; height: 3px; background: #d4a465; border-radius: 1px; }
.is-playing .radio-equalizer i { animation: radio-level .8s ease-in-out infinite alternate; }
.is-playing .radio-equalizer i:nth-child(2) { animation-delay: -.3s; }
.is-playing .radio-equalizer i:nth-child(3) { animation-delay: -.6s; }
.is-playing .radio-equalizer i:nth-child(4) { animation-delay: -.45s; }
.radio-notices { grid-area: notice; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.radio-status, .radio-volume-hint { font: 400 .75rem/1.5 var(--font-main); color: #aebdc2; }
.radio-status.radio-error { color: #ffc5b0; }
.radio-status:not(.radio-error), .radio-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.radio-retry { min-height: 44px; padding: 7px 13px; background: #c9892a14; color: #ffda9e; border: 1px solid #c9892a80; border-radius: 5px; font: 500 .75rem var(--font-main); }
.radio-dock [hidden] { display: none !important; }
.radio-dock :is(button,input):focus-visible { outline: 3px solid var(--cyan-bright); outline-offset: 3px; }
@keyframes radio-level { to { height: 12px; } }
@media (max-width: 900px) {
  .radio-dock-inner { grid-template-columns: 180px minmax(100px,1fr) 130px 128px; column-gap: 14px; }
  .radio-brand h2 { font-size: .86rem; }
  .radio-brand img { width: 40px; height: 40px; }
  .radio-volume input { width: 76px; }
}
@media (max-width: 700px) {
  :root { --radio-dock-height: 152px; }
  .radio-dock { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .radio-dock-inner { grid-template-columns: minmax(0,1fr) 128px; grid-template-areas: 'brand volume' 'track transport' 'next next' 'notice notice'; gap: 8px 14px; }
  .radio-brand { gap: 8px; }
  .radio-brand img { width: 34px; height: 34px; }
  .radio-brand h2 { font-size: .83rem; margin-bottom: 3px; }
  .radio-brand-meta { font-size: .58rem; }
  .radio-onair { font-size: .62rem; }
  .radio-now h3 { font-size: .85rem; }
  .radio-now p { font-size: .65rem; }
  .radio-time { display: none; }
  .radio-timeline { margin-top: 6px; }
  .radio-toggle { font-size: .78rem; padding: 10px; }
  .radio-listening { display: none; }
  .radio-next { font-size: .6rem; }
  .radio-notices { gap: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .radio-dock *, .radio-dock *::before, .radio-dock *::after { animation: none !important; transition: none !important; }
  .is-playing .radio-equalizer i { height: 10px; }
}
