--- created: 2026-07-30T22:19:31.770Z title: PiP robustness — close lightbox fluidly, survive tab changes and buffering area: ui severity: major files: - neode-ui/src (lightbox/video player components — locate exact files) --- ## Problem Dorian (2026-07-30), two reports: 1. Entering picture-in-picture on a video does not close the lightbox — it should close with a fluid on-brand animation as PiP begins. 2. "Picture in picture must survive tab changes or video buffering pauses, doesn't seem to, please fix." — PiP currently dies when switching main tabs and/or when the video pauses to buffer. Classified by 02-08 (all pre-existing, NOT phase 2): `src/utils/pip.ts`'s `togglePip()` (introduced f72d4b92 2026-07-23) never touches `MediaLightbox.vue`'s visibility state; no `onDeactivated` teardown exists in Cloud/CloudFolder/MediaLightbox (phase 2 added none there); pre-phase-2 tab switches fully unmounted the view, so PiP tab-survival never existed. The `