/* Zateemee Bride — the music control, top right beside the menu: a small sound button and a fine gold
 * slider for the volume. Light and quiet, so it never draws the eye away from the site. */
.music {
  position: fixed;
  top: clamp(18px, 3vw, 30px);
  right: clamp(116px, 11vw, 160px);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  font-family: "DM Sans", Arial, sans-serif;
}
.music[hidden] { display: none; }
.music-toggle {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(42, 37, 34, 0.18);
  background: rgba(255, 252, 248, 0.6);
  color: #2a2522;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.music-toggle:hover, .music-toggle:focus-visible { background: #111; color: #fff; border-color: #111; outline: none; }
/* three little bars that sway gently while the music plays (still when paused) */
.music-bars { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.music-bars i { width: 1.5px; height: 3px; background: currentColor; border-radius: 1px; }
.music.is-on .music-bars i { animation: musicSway 1.3s ease-in-out infinite; }
.music.is-on .music-bars i:nth-child(2) { animation-delay: 0.3s; }
.music.is-on .music-bars i:nth-child(3) { animation-delay: 0.6s; }
@keyframes musicSway { 0%, 100% { height: 3px; } 50% { height: 11px; } }
.music-label { display: none; }
/* the slider: a hairline of gold with a small pearl */
.music-volume {
  --fill: 55%;
  -webkit-appearance: none;
  appearance: none;
  width: 76px;
  height: 20px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.music-volume::-webkit-slider-runnable-track {
  height: 1px;
  background: linear-gradient(to right, #b88a49 var(--fill), rgba(42, 37, 34, 0.18) var(--fill));
}
.music-volume::-moz-range-track { height: 1px; background: rgba(42, 37, 34, 0.18); }
.music-volume::-moz-range-progress { height: 1px; background: #b88a49; }
.music-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fffaf4;
  box-shadow: 0 0 0 1px #b88a49, 0 1px 4px rgba(150, 80, 60, 0.3);
  transition: transform 0.2s ease;
}
.music-volume:hover::-webkit-slider-thumb { transform: scale(1.25); }
.music-volume::-moz-range-thumb {
  width: 11px; height: 11px;
  border: 0;
  border-radius: 50%;
  background: #fffaf4;
  box-shadow: 0 0 0 1px #b88a49, 0 1px 4px rgba(150, 80, 60, 0.3);
}
.music-volume:focus-visible { outline: 1px solid #b88a49; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 760px) {
  .music { right: 96px; top: 16px; gap: 6px; }
  .music-toggle { width: 30px; height: 30px; }
  .music-volume { width: 54px; }
}
@media (prefers-reduced-motion: reduce) { .music.is-on .music-bars i { animation: none; height: 7px; } }
/* out of the way while a story is open */
.music { transition: opacity 0.5s ease; }
html:has(.pop.is-open) .music, html.invite-open .music { opacity: 0; pointer-events: none; }
