.music-toggle {
  position: absolute;
  z-index: 35;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid #a538604d;
  border-radius: 50%;
  background: #fff9eef2;
  color: #a53860;
  box-shadow: 0 3px 14px #4509201a;
  touch-action: manipulation;
}
.music-toggle svg {
  width: 22px;
  height: 22px;
}
.music-toggle:focus-visible {
  outline: 2px solid #a53860;
  outline-offset: 4px;
}
.music-toggle:active {
  scale: 0.95;
}
.music-toggle.is-loading {
  border-style: dashed;
}
.music-equalizer {
  position: absolute;
  right: -2px;
  bottom: 0;
  display: none;
  align-items: end;
  gap: 2px;
  height: 14px;
  padding: 3px;
  border-radius: 5px;
  background: #a53860;
}
.is-playing .music-equalizer {
  display: flex;
}
.music-equalizer i {
  width: 2px;
  height: 7px;
  background: #fff9ee;
  transform-origin: bottom;
  animation: music-beat 0.9s ease-in-out infinite alternate;
}
.music-equalizer i:nth-child(2) {
  animation-delay: -0.3s;
}
.music-equalizer i:nth-child(3) {
  animation-delay: -0.6s;
}
.music-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.phone-app[data-screen='memories'] .music-toggle {
  top: calc(6px + env(safe-area-inset-top, 0px));
  right: clamp(12px, 5vw, 24px);
}
@keyframes music-beat {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .music-equalizer i {
    animation: none;
  }
}
