.header-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-music {
  position: relative;
  display: flex;
  align-items: center;
}
.site-music[hidden] { display: none; }
.music-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.music-toggle { color: var(--green); }
.music-button:hover { color: var(--green); }
.music-toggle:not([data-playing]) .music-pause,
.music-toggle[data-playing] .music-play { display: none; }
.music-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 240px;
  max-width: calc(100vw - 44px);
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top-color: var(--green);
  box-shadow: 0 18px 36px #0008;
  font-size: .75rem;
  z-index: 40;
}
.music-panel p { color: var(--text); margin-bottom: 8px; }
.music-panel label { display: flex; justify-content: space-between; color: var(--muted); }
.music-panel input { width: 100%; margin: 5px 0 0; accent-color: var(--green); }

@media (max-width: 760px) {
  .header-identity { position: relative; gap: 5px; }
  .header-identity .brand { gap: 8px; white-space: nowrap; }
  .site-music { position: static; }
  .music-button { width: 28px; }
}
@media (max-width: 420px) {
  .header-inner { padding-inline: 12px; gap: 8px; }
  .header-identity .brand { font-size: .85rem; gap: 5px; }
  .header-identity .brand img { width: 28px; height: 28px; }
  .music-button { width: 26px; }
}
@media (max-width: 360px) {
  .header-identity { gap: 3px; }
  .header-identity .brand { font-size: .8rem; white-space: normal; }
}
@media print { .site-music { display: none; } }
