.site-header { padding-right: max(110px, 5vw); }
.music-dock { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); }
.music-dock[hidden], .music-player[hidden] { display: none; }
.music-menu-button {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid #dfb5c5;
  border-radius: 50%; background: #fff8fa; color: var(--pink-dark);
  transition: background .2s, box-shadow .2s;
}
.music-menu-button:hover, .music-menu-button[aria-expanded="true"] { background: #f8e1ea; box-shadow: 0 0 0 4px #f5e1e970; }
.music-menu-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.music-indicator { display: none; position: absolute; right: 1px; bottom: 1px; width: 9px; height: 9px; background: var(--pink-dark); border: 2px solid var(--paper); border-radius: 50%; }
.is-playing .music-indicator { display: block; }
.music-player {
  position: absolute;
  z-index: 45;
  right: 0;
  top: calc(100% + 27px);
  width: 336px;
  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 18px 12px;
  color: var(--ink);
  background: #fff8fa;
  border: 1px solid #e5bacbcc;
  border-radius: 20px;
  box-shadow: 0 6px 30px #7c345020;
}
.music-panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.music-panel-heading h2 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 5px 0 0; line-height: 1.4; }
.music-close { width: 32px; height: 32px; border: 0; padding: 0; background: transparent; color: var(--muted); font-size: 27px; border-radius: 50%; }
.music-close:hover { background: #f7e4ec; color: var(--pink-dark); }
.music-main { display: flex; align-items: center; gap: 14px; padding: 4px 5px 18px; }
.music-toggle {
  display: grid; place-items: center; flex-shrink: 0;
  width: 45px; height: 45px; padding: 0;
  color: #fff8fa; background: var(--pink-dark);
  border: 0; border-radius: 50%;
  box-shadow: 0 0 0 5px #f5e1e9;
  transition: background .2s, transform .2s;
}
.music-toggle:hover { background: #8f2146; transform: scale(1.04); }
.music-toggle svg { width: 21px; height: 21px; fill: currentColor; }
.music-toggle .music-pause-icon, .is-playing .music-play-icon { display: none; }
.is-playing .music-pause-icon { display: block; }
.music-copy { flex: 1; min-width: 0; }
.music-copy span, .music-copy strong { display: block; }
.music-eyebrow { color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.music-copy strong { margin: 1px 0 5px; font-family: var(--serif); font-size: 19px; font-weight: 400; letter-spacing: .06em; }
#music-status { color: var(--muted); font-size: 11px; line-height: 1.7; }
.music-bars { display: flex; align-items: center; gap: 3px; height: 24px; color: #b9718b; }
.music-bars i { width: 3px; height: 7px; background: currentColor; border-radius: 2px; }
.music-bars i:nth-child(2) { height: 16px; }
.music-bars i:nth-child(3) { height: 11px; }
.is-playing .music-bars i { animation: music-wave 1.3s ease-in-out infinite alternate; }
.is-playing .music-bars i:nth-child(2) { animation-delay: -.5s; }
.is-playing .music-bars i:nth-child(3) { animation-delay: -.9s; }
.is-loading .music-toggle { opacity: .65; }
.music-list-heading { display: flex; justify-content: space-between; padding: 13px 0 10px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.music-list-heading span:last-child { color: #987184; font-size: 10px; }
.music-track-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.music-track { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 10px; text-align: left; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); }
.music-track:hover { background: #faedf2; }
.music-track[aria-pressed="true"] { background: #f8e4ed; border-color: #ecc6d6; }
.music-track-number { width: 20px; flex-shrink: 0; font-size: 12px; color: #9b7183; font-variant-numeric: tabular-nums; }
.music-track-copy { flex: 1; }
.music-track-copy strong { display: block; font-weight: 500; font-size: 14px; line-height: 1.5; }
.music-track-copy small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.music-track-tag { color: var(--pink-dark); font-size: 10px; min-width: 20px; }
.music-volume-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.music-volume-row label, .music-volume-row output { color: var(--muted); font-size: 10px; }
.music-volume-row output { min-width: 29px; text-align: right; font-variant-numeric: tabular-nums; }
.music-mute { width: 30px; height: 30px; padding: 5px; border: 0; background: transparent; color: var(--muted); border-radius: 50%; }
.music-mute:hover { color: var(--pink-dark); background: #f7e4ec; }
.music-mute svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.music-muted-mark, .music-mute[aria-pressed="true"] .music-sound-waves { display: none; }
.music-mute[aria-pressed="true"] .music-muted-mark { display: initial; }
#music-volume { flex: 1; min-width: 0; width: 100%; height: 26px; margin: 0; cursor: pointer; accent-color: var(--pink-dark); background: transparent; }
.music-dock :focus-visible { outline: 2px solid var(--pink-dark); outline-offset: 3px; }
.music-footnote { margin: 5px 0 0; text-align: center; font-size: 10px; color: var(--muted); line-height: 1.7; }
@keyframes music-wave { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
@media (max-width: 760px) {
  .site-header { padding-right: 77px; }
  .music-dock { right: 16px; }
  .music-menu-button { width: 40px; height: 40px; }
  .music-player { top: calc(100% + 27px); right: -4px; width: min(336px, calc(100vw - 24px)); max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); padding: 17px 15px 12px; border-radius: 17px; }
  .music-toggle { width: 41px; height: 41px; }
  .music-copy strong { font-size: 18px; }
  .music-track { padding: 11px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-playing .music-bars i { animation: none; }
  .music-toggle, .music-menu-button { transition: none; }
}
