{
const t = e.target as HTMLElement | null;
// Only toggle when tapping the track info area. Avoid toggling from
// the button zones (above/below/side) by not attaching handlers to the
// whole bar.
if (t?.closest("button,input,label,a")) return;
toggleUiOpen();
}}
onkeydown={(e) => {
if (e.key !== "Enter" && e.key !== " ") return;
const t = e.target as HTMLElement | null;
if (t?.closest("button,input,label,a")) return;
e.preventDefault();
toggleUiOpen();
}}
>
{#if snap.currentTrack}