.music-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-width: 0;
}

.music-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 5px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #181818;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.music-toggle:hover { background: #ffa4c526; }
.music-toggle:focus-visible { outline: 2px solid var(--pink-ink, #bd1b67); outline-offset: 2px; }
.music-toggle:disabled { cursor: default; opacity: .55; }
.music-vinyl { display: block; width: 34px; height: 34px; transform-origin: center; }
.music-toggle.is-playing .music-vinyl { animation: music-vinyl-spin 6s linear infinite; }
@keyframes music-vinyl-spin { to { transform: rotate(360deg); } }

/* Preserve the centered case-page logo on desktop, including its original link. */
.case-header > .music-brand-group {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.case-header .music-brand-group > .case-brand {
  position: static;
  left: auto;
  transform: none;
}

@media (max-width: 760px) {
  .music-brand-group { gap: 3px; }
  .experience-home .site-header > .music-brand-group { grid-column: 1 / 3; grid-row: 1; }
  .about-page .site-header > .music-brand-group { grid-column: 1; grid-row: 1; }
  /* Case headers already hide their logo at this width. Keep that layout and
     place the 44px music control between Back and the existing right controls. */
  .case-header { gap: 8px; }
  .case-header > .music-brand-group { position: static; left: auto; transform: none; margin-left: auto; }
  .case-header .music-brand-group > .case-brand { display: none; }
  .case-header > .case-back { min-width: 0; }
  .case-header .case-header-right { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .music-toggle.is-playing .music-vinyl { animation: none; }
}
.no-motion .music-toggle.is-playing .music-vinyl { animation: none; }
