/* Whole-player sheet transition: minimized ↔ player ↔ evaluation */
.song-mini-player{transition:max-height .32s cubic-bezier(.2,.8,.2,1),padding .25s ease,border-radius .25s ease;max-height:88dvh}
.song-mini-player.song-study-expanded-safe-v1{max-height:88dvh}
@media(prefers-reduced-motion:reduce){.song-mini-player{transition:none}}

/* Contain any remaining scroll chaining within the player sheet. */
.song-mini-player{overscroll-behavior:contain}
.song-study-panel-safe-v1{overscroll-behavior:contain}

/* SAFE V4: isolate the fixed player from page scroll; follow vertical finger drag. */
#songMiniPlayer_SAFE{
  overscroll-behavior:contain;
  transform:translate(-50%,var(--song-swipe-offset-safe-v4,0px));
  transition:transform .28s cubic-bezier(.22,1,.36,1),max-height .36s cubic-bezier(.22,1,.36,1),padding .28s ease,border-radius .28s ease;
}
#songMiniPlayer_SAFE.song-is-dragging-safe-v4{transition:none}
@media(prefers-reduced-motion:reduce){#songMiniPlayer_SAFE{transition:none}}

/* SAFE V6: player gestures must not pinch/double-tap zoom the page.
   Keep horizontal seeking and vertical scrolling inside the assessment form. */
#songMiniPlayer_SAFE{touch-action:none}
#songMiniPlayer_SAFE input[type="range"]{touch-action:pan-x}
#songMiniPlayer_SAFE .song-study-panel-safe-v1{touch-action:pan-y;overscroll-behavior-y:contain}
#songMiniPlayer_SAFE button,#songMiniPlayer_SAFE a{touch-action:manipulation}
