/* SteemRadio floating player bar (added by radio-player.js on every page while a station is chosen).
   Uses the page theme variables, with fallbacks for pages that do not define them. */
.wbr-bar {
  --wbr-teal: var(--teal, #1A9B8E);
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 9000;
  display: flex; align-items: center; gap: 10px;
  width: min(440px, calc(100vw - 32px)); padding: 8px 10px 8px 8px; box-sizing: border-box;
  background: var(--card, #fff); color: var(--text, #1C2D2B);
  border: 1px solid var(--border, #B2DFDB); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(28,45,43,0.16), 0 2px 6px rgba(28,45,43,0.08);
  font-family: system-ui, sans-serif;
  view-transition-name: wb-radio-bar;
  animation: wbr-in .28s ease-out;
}
.wbr-bar[hidden] { display: none; }
@keyframes wbr-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.wbr-bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wbr-bar button { font: inherit; cursor: pointer; display: inline-grid; place-items: center; flex: 0 0 auto; padding: 0; }

.wbr-play { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--wbr-teal); color: #fff; box-shadow: 0 4px 12px rgba(26,155,142,0.32); transition: transform .15s, background .2s; }
.wbr-play:hover { background: #158275; }
.wbr-play:active { transform: scale(.94); }
.wbr-play.is-loading { animation: wbr-pulse 1.2s ease-in-out infinite; }
@keyframes wbr-pulse { 50% { box-shadow: 0 0 0 6px rgba(26,155,142,0.18); } }

.wbr-info { display: flex; align-items: center; gap: 9px; flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none; }
.wbr-flag { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(26,155,142,0.09); border: 1px solid rgba(26,155,142,0.22); font-size: 1.05rem; line-height: 1; }
.wbr-text { display: flex; flex-direction: column; min-width: 0; }
.wbr-name { font-size: .88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbr-sub { font-size: .72rem; color: var(--muted, #5A7572); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbr-bar[data-status="playing"] .wbr-sub { color: var(--wbr-teal); font-weight: 600; }
.wbr-bar[data-status="error"] .wbr-sub, .wbr-bar[data-status="blocked"] .wbr-sub { color: var(--gold, #B8960F); font-weight: 600; }
.wbr-info:hover .wbr-name { color: var(--wbr-teal); }

.wbr-mute, .wbr-close { width: 32px; height: 32px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--muted, #5A7572); transition: color .2s, border-color .2s; }
.wbr-mute:hover, .wbr-close:hover { color: var(--wbr-teal); border-color: var(--border, #B2DFDB); }
.wbr-close svg { width: 15px; height: 15px; }

.wbr-vol { --wbr-fill: 80%; flex: 0 0 84px; width: 84px; height: 4px; margin: 0; border-radius: 4px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, var(--wbr-teal) var(--wbr-fill), var(--border, #B2DFDB) var(--wbr-fill)); }
.wbr-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--wbr-teal); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.wbr-vol::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--wbr-teal); }

@media (max-width: 560px) {
  .wbr-bar { left: 10px; right: 10px; width: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .wbr-vol { display: none; }
}
