#home-ambient-audio {
  position: fixed;
  z-index: 50;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 6px;
  width: 52px;
  height: 52px;
  padding: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(12,12,12,.72);
  color: #fff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 3px 18px rgba(0,0,0,.16);
  font-family: var(--home-cern-family, Georgia, serif);
  transition: width .22s ease;
}
#home-ambient-audio[data-expanded="true"] { width: min(244px, calc(100vw - 24px)); }
#home-ambient-audio button {
  box-sizing: border-box;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#home-ambient-audio button:hover,
#home-ambient-audio[data-cycle="volume"] button { background: rgba(255,255,255,.1); }
#home-ambient-audio :is(button,input):focus-visible { outline: 1px solid #fff; outline-offset: 2px; }
#home-ambient-audio svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
#home-ambient-audio [data-sound-waves] { display: none; }
#home-ambient-audio[data-state="playing"] [data-sound-waves] { display: block; }
#home-ambient-audio[data-state="playing"] [data-sound-slash] { display: none; }
#home-ambient-audio .home-sound-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#home-ambient-audio .home-sound-inline { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding-left: 8px; }
#home-ambient-audio .home-sound-inline[hidden] { display: none; }
#home-ambient-audio .home-sound-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#home-ambient-audio input { box-sizing: border-box; flex: 1; width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 0; cursor: pointer; accent-color: #fff; }
#home-ambient-audio output { flex: 0 0 34px; text-align: right; font: 400 11px/1 var(--home-cern-family,Georgia,serif); color: #fff; }
@media (max-width: 767px) { #home-ambient-audio { right: max(12px,env(safe-area-inset-right)); bottom: max(12px,env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { #home-ambient-audio { transition: none; } }
