/* A tiny dance party below the card, leaving every hug and cupcake visible. */
.party-song { margin-top: 12px; padding: 10px 12px; border: 1px solid #e9e2f2; border-radius: 14px; background: #faf6ff; }
.song-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.song-label { min-width: 0; margin: 0; font-size: .85rem; line-height: 1.4; }
.song-label strong, .song-label span { display: block; }
.song-label span { color: #68587c; font-size: .75rem; }
.song-link { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 42px; padding: 8px 10px; border: 2px solid #dfd6ed; border-radius: 12px; background: #fff; color: #7c5cff; text-decoration: none; font: 700 .85rem var(--font-body, system-ui, sans-serif); }
.song-link:hover { border-color: #7c5cff; background: #f0eaff; }
.song-controls { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cat-sticker { display: block; flex: 0 0 72px; width: 72px; height: 86px; border-radius: 16px; background: white; box-shadow: 0 2px 8px #73549a12; }
.song-speaker { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 46px; margin: 0; padding: 10px; border: 2px solid #7c5cff; border-radius: 14px; background: #7c5cff; color: white; cursor: pointer; text-decoration: none; font: 700 .8rem var(--font-body, system-ui, sans-serif); }
.song-speaker span { min-width: 0; overflow-wrap: anywhere; }
.song-speaker:hover { background: #6847e2; border-color: #6847e2; }
.song-speaker[aria-pressed="true"] { background: #6746da; border-color: #6746da; }
.song-speaker:disabled { cursor: wait; opacity: .6; }
.song-speaker:focus-visible, .song-link:focus-visible { outline: 3px solid #c89727; outline-offset: 3px; }
.speaker-icon { display: block; flex-shrink: 0; }
.song-player { display: block; width: 100%; height: 220px; border: 0; border-radius: 10px; margin-top: 10px; }
.song-note { margin: 8px 0 0; font-size: .75rem; color: #68587c; line-height: 1.5; }

/* The music's Play and Pause events also start and stop the kitten's dance. */
.cat-dancer, .cat-left-paw, .cat-right-paw { transform-box: fill-box; transform-origin: center bottom; }
.cat-notes { opacity: 0; }
.is-playing .cat-dancer { animation: kitty-bop .55s ease-in-out infinite alternate; }
.is-playing .cat-left-paw { animation: kitty-wave .55s ease-in-out infinite alternate; }
.is-playing .cat-right-paw { animation: kitty-wave .55s ease-in-out infinite alternate-reverse; }
.is-playing .cat-notes { animation: kitty-notes 1.1s ease-in-out infinite; }
@keyframes kitty-bop { from { transform: translateY(1px) rotate(-6deg); } to { transform: translateY(-5px) rotate(6deg); } }
@keyframes kitty-wave { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes kitty-notes { 0%, 100% { opacity: .45; transform: translateY(1px); } 50% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .party-song .cat-dancer, .party-song .cat-left-paw, .party-song .cat-right-paw, .party-song .cat-notes { animation: none; transform: none; }
  .party-song.is-playing .cat-notes { opacity: 1; }
}
