/* Compact background-audio controls; no video or radio panel. */
.music-bar { position: absolute; left: 24px; bottom: 24px; pointer-events: auto; color: var(--mint); max-width: calc(100vw - 48px); }
.music-controls { display: flex; align-items: center; gap: 8px; padding-right: 8px; border: 2px solid var(--forest-700); background: var(--bg); box-shadow: 3px 3px 0 #0008; }
.music-launch, .music-choose { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; background: transparent; color: var(--mint); font: 600 18px/1 var(--f-pixel); cursor: pointer; }
.music-launch { padding: 8px 10px; }
.music-launch.playing { color: var(--green); }
.music-choose { width: 32px; padding: 0; font-size: 22px; }
.music-controls input[type=range] { width: 66px; margin: 0; accent-color: var(--green); }
.music-controls output { min-width: 30px; font: 11px/1 var(--f-mono); }
.music-status { max-width: 280px; margin: 8px 0 0; padding: 7px 9px; background: var(--bg); border: 1px solid var(--forest-700); font: 11px/1.4 var(--f-mono); }
.music-status[hidden], .music-file[hidden] { display: none; }
/* The same speaker popover serves the walking world and vertical sections. */
#hud .music-popover { left: auto; bottom: auto; top: 78px; right: 28px; width: 340px; max-width: calc(100vw - 24px); padding: 14px; border: 1px solid #739c80; background: #08130ff7; box-shadow: 4px 4px 0 #173427, 0 12px 32px #0008; }
#hud .music-popover[hidden] { display: none; }
body.atlas-visible #hud .music-popover { top: calc(var(--site-header-height) + 8px); }
.music-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.music-heading h2 { margin: 0; font: 600 16px/1.3 var(--f-mono); }
.music-close { width: 36px; height: 36px; border: 0; background: none; color: var(--mint); font: 24px/1 var(--f-mono); cursor: pointer; }
.music-popover .music-controls { border: 0; box-shadow: none; background: transparent; gap: 8px; padding: 0; }
.music-popover .music-launch { padding-left: 0; font: 500 12px/1.3 var(--f-mono); gap: 5px; white-space: nowrap; }
.music-popover .music-controls input[type=range] { flex: 1; min-width: 40px; }
.music-popover .music-status { position: static; width: auto; height: auto; clip-path: none; max-width: none; margin-top: 8px; padding: 8px 0; border: 0; border-top: 1px solid #284e37; background: transparent; color: #b8ccbf; }
.music-effects { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 40px; padding: 8px 0; border: 0; border-top: 1px solid #284e37; background: none; color: var(--mint); font: 12px/1.4 var(--f-mono); cursor: pointer; }
.music-effects > span:last-child { color: #95a99c; }
.music-effects[aria-pressed=true] > span:last-child { color: var(--green); }
.music-close:hover, .music-effects:hover { color: var(--green); }
@media (max-width: 760px) {
  #hud .music-popover { top: 62px; right: 8px; padding: 12px; max-width: calc(100vw - 16px); }
  .music-bar { left: 12px; bottom: 48px; max-width: calc(100vw - 24px); }
  .music-launch { font-size: 15px; padding: 7px 9px; }
  .music-controls { gap: 6px; }
  .music-controls input[type=range] { width: 56px; }
}

/* Short viewports keep audio controls below the street, with status still announced. */
@media (max-height: 600px) {
  .music-bar { bottom: 12px; }
  .music-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; border: 0; margin: 0; }
}
