.mv-music-toggle {
  position: fixed; left: 12px; bottom: calc(var(--site-footer-safe-space, 78px) + 4px + env(safe-area-inset-bottom, 0px));
  z-index: 1040; display: flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 48px; min-height: 48px; max-width: calc(100vw - 24px); padding: 10px 14px;
  border: 1px solid #b2c7ba; border-radius: 30px; color: #fff; background: #173b2c;
  box-shadow: 0 3px 14px #0003; font: 600 14px system-ui, sans-serif; cursor: pointer;
}
.mv-music-toggle:focus-visible { outline: 3px solid #f4c55d; outline-offset: 3px; }
.mv-music-toggle[hidden] { display: none; }
.mv-music-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.mv-music-toggle[data-state="playing"] { background: #22633e; }

/* Desktop: footer in the normal document flow, audio close to the bottom edge. */
@media (min-width: 1200px) {
  .mv-music-toggle { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
/* Phones only. iPad (768px and above) keeps the floating control and text. */
@media (max-width: 767.98px) {
  .mv-music-toggle {
    position: static; flex: 0 0 42px; width: 42px; height: 42px;
    min-width: 42px; min-height: 42px; padding: 9px; gap: 0;
    border-radius: 50%; box-shadow: none;
  }
  .mv-music-toggle span { display: none; }
  .mv-music-toggle svg { width: 22px; height: 22px; }
  .mv-music-mobile-footer {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040;
    display: flex; justify-content: center; padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    background: #071d18;
  }
  .mv-music-mobile-footer:has(.mv-music-toggle[hidden]) { display: none; }
}
@media print {
  .mv-music-toggle, .mv-music-mobile-footer { display: none !important; }
}
