.tb-music {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #31322e40;
  border-radius: 100px;
  background: #eeeeebc9;
  color: #30312e;
  font: 13px/1.2 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background .2s ease, border-color .2s ease;
}
.tb-music:hover { background: #fafaf4; border-color: #31322e80; }
.tb-music:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.tb-music-bars { display: flex; align-items: center; justify-content: center; gap: 3px; width: 20px; height: 20px; }
.tb-music-bars i { display: block; width: 2px; height: 13px; border-radius: 2px; background: currentColor; transform: scaleY(.3); opacity: .5; }
.tb-music-bars i:nth-child(2) { height: 19px; }
.tb-music-bars i:nth-child(3) { height: 15px; }
.tb-music-bars i:nth-child(4) { height: 10px; }
.tb-music[data-state="playing"] .tb-music-bars i { opacity: 1; animation: tb-music-wave .95s ease-in-out infinite alternate; }
.tb-music[data-state="playing"] .tb-music-bars i:nth-child(2) { animation-delay: -.4s; }
.tb-music[data-state="playing"] .tb-music-bars i:nth-child(3) { animation-delay: -.7s; }
.tb-music[data-state="playing"] .tb-music-bars i:nth-child(4) { animation-delay: -.2s; }
@keyframes tb-music-wave { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@media (max-width: 760px) {
  .tb-music { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 10; width: 46px; height: 46px; padding: 0; background: #eeeeebe8; box-shadow: 0 3px 16px #00000012; }
  .tb-music-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-music { transition: none; }
  .tb-music[data-state="playing"] .tb-music-bars i { animation: none; transform: scaleY(.85); }
}
