/* The video player (player.js), dressed in BiteSized's own look on 18 November 2026: a dark rounded stage, frosted
   glass for the controls, the family's lilac for the position, the hover, the focus and any choice that is on.

   A video is watched on a dark stage in the light theme and in the dark one, so what sits over the picture has its own
   few tokens, set once here. The lilac over the stage is the one the family uses on dark surfaces (clean.css, the dark
   theme), whatever the page's theme; the ring around the whole player sits on the page, so it takes the page's lilac.
   Nothing below this block names a colour. */
.bsp {
  --bsp-stage: #08080a;
  --bsp-ink: #ffffff;
  --bsp-ink-2: rgba(255, 255, 255, 0.72);
  --bsp-on-ink: #141415;
  --bsp-lilac: #A89DFF;
  --bsp-lilac-glass: rgba(168, 157, 255, 0.3);
  --bsp-lilac-line: rgba(168, 157, 255, 0.75);
  --bsp-glass: rgba(20, 20, 24, 0.46);
  --bsp-glass-2: rgba(20, 20, 24, 0.8);
  --bsp-cue: rgba(8, 8, 10, 0.74);
  --bsp-hair: rgba(255, 255, 255, 0.12);
  --bsp-hair-2: rgba(255, 255, 255, 0.24);
  --bsp-veil: rgba(8, 8, 10, 0.5);
  --bsp-veil-0: rgba(8, 8, 10, 0);
  --bsp-track: rgba(255, 255, 255, 0.24);
  --bsp-loaded: rgba(255, 255, 255, 0.4);
  --bsp-ghost: rgba(255, 255, 255, 0.55);
  --bsp-well: rgba(255, 255, 255, 0.12);
  --bsp-drop: rgba(0, 0, 0, 0.4);
  --bsp-accent: var(--bsp-lilac);
  --bsp-ring: var(--cl-lilac, #8B7CFF);
  --bsp-spring: var(--cl-spring, cubic-bezier(.16, 1, .3, 1));
  --bsp-out: var(--cl-out, cubic-bezier(.22, .61, .36, 1));
  --bsp-font: var(--cl-sans, system-ui, -apple-system, "Segoe UI", sans-serif);
  --bsp-lift: 74px;
  --bsp-tip-up: 34px;
  --bsp-p: 0%;
  --bsp-b: 0%;
}

/* ── the stage ── */
.bsp { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: var(--bsp-stage); color: var(--bsp-ink); font-family: var(--bsp-font); container-type: inline-size; cursor: pointer; isolation: isolate; touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.bsp > video { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; border: 0; border-radius: 0; background: none; object-fit: contain; -webkit-touch-callout: none; -webkit-user-drag: none; }
.bsp__glow { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0; filter: blur(34px) saturate(1.2); transform: scale(1.25); pointer-events: none; transition: opacity .5s var(--bsp-out); }
.bsp.has-glow .bsp__glow { opacity: .85; }
/* a hairline around the picture, so the stage keeps its edge on a dark page and a light one */
.bsp::after { content: ''; position: absolute; inset: 0; z-index: 7; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--bsp-hair); pointer-events: none; }
/* while the bar is away, the position stays as a thin lilac thread along the foot */
.bsp::before { content: ''; position: absolute; bottom: 0; left: 0; z-index: 3; width: var(--bsp-p); height: 2px; background: var(--bsp-lilac); opacity: 0; pointer-events: none; transition: opacity .3s var(--bsp-out); }
.bsp.is-idle.is-playing::before { opacity: .9; }
.bsp:focus { outline: 0; }
.bsp:focus-visible { outline: 2px solid var(--bsp-ring); outline-offset: 3px; }
.bsp.is-idle { cursor: none; }

/* inside a frame that has its own corners (a feed card, the post page, a profile's video) the frame does the rounding */
.bsp--flat, .fc-video > .bsp, .pp-cover--video > .bsp { border-radius: 0; }
/* a vertical clip (the studio's shape, a phone's shape) stands in a tall stage */
.bsp--tall { aspect-ratio: 9 / 16; }

/* ── at rest: one frosted round button, and the length in a small pill ── */
.bsp .bsp__big { position: absolute; top: 50%; left: 50%; z-index: 4; display: grid; width: 72px; height: 72px; margin: 0; padding: 0; place-items: center; border: 1px solid var(--bsp-hair-2); border-radius: 50%; background: var(--bsp-glass); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); box-shadow: 0 14px 36px -12px var(--bsp-drop); color: var(--bsp-ink); font-size: 26px; translate: -50% -50%; transition: scale .45s var(--bsp-spring), background-color .2s var(--bsp-out), border-color .2s var(--bsp-out), opacity .2s var(--bsp-out), top .35s var(--bsp-out); }
.bsp .bsp__big[hidden] { display: none; }
.bsp .bsp__big i { margin-left: 3px; }
.bsp.is-ended .bsp__big i { margin-left: 0; }
@media (hover: hover) {
  .bsp:hover .bsp__big { border-color: var(--bsp-lilac-line); }
  .bsp .bsp__big:hover { background: var(--bsp-lilac-glass); scale: 1.06; }
}
.bsp .bsp__big:active { scale: .96; }
.bsp.is-scrub .bsp__big, .bsp.is-error .bsp__big, .bsp.is-waiting .bsp__big { opacity: 0; pointer-events: none; }

.bsp__chip { position: absolute; bottom: 14px; left: 14px; z-index: 3; padding: 6px 10px; border: 1px solid var(--bsp-hair); border-radius: 999px; background: var(--bsp-glass); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); color: var(--bsp-ink); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; opacity: 0; pointer-events: none; transition: opacity .2s var(--bsp-out); }
.bsp__chip[hidden] { display: none; }
.bsp.is-fresh .bsp__chip { opacity: 1; }

/* waiting for the next piece of the file */
.bsp__wait { position: absolute; top: 50%; left: 50%; z-index: 3; display: none; width: 42px; height: 42px; margin: -21px 0 0 -21px; border: 2.5px solid var(--bsp-track); border-top-color: var(--bsp-lilac); border-radius: 50%; pointer-events: none; animation: bsp-turn .8s linear infinite; }
.bsp.is-waiting .bsp__wait { display: block; }
@keyframes bsp-turn { to { rotate: 360deg; } }

/* what went wrong, said on the stage */
.bsp__note { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; background: var(--bsp-glass-2); text-align: center; cursor: default; }
.bsp__note[hidden] { display: none; }
.bsp__note p { max-width: 36ch; margin: 0; font-size: 15px; line-height: 1.45; color: var(--bsp-ink); text-wrap: balance; }
.bsp .bsp__note button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--bsp-ink); color: var(--bsp-on-ink); font: inherit; font-size: 14px; font-weight: 600; }

/* captions, drawn by the player above the bar */
.bsp__cc { position: absolute; right: 0; bottom: 16px; left: 0; z-index: 2; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; transition: translate .45s var(--bsp-spring); }
.bsp__cc[hidden] { display: none; }
/* the words are drawn by the player only: a stream library that turns a track to "showing" (hls.js does, 22 November 2026)
   must not make the browser draw the same words a second time under ours */
.bsp video::cue { color: transparent; background: transparent; text-shadow: none; }
.bsp video::-webkit-media-text-track-display { visibility: hidden; }
.bsp__cc > span { max-width: min(88%, 62ch); padding: 5px 12px 6px; border-radius: 8px; background: var(--bsp-cue); color: var(--bsp-ink); font-size: clamp(14px, 2.6cqw, 30px); font-weight: 500; line-height: 1.35; text-align: center; white-space: pre-line; text-wrap: balance; }
.bsp:not(.is-idle):not(.is-fresh) .bsp__cc { translate: 0 calc(-1 * var(--bsp-lift)); }

/* a short word for a change made by a key: the speed, the captions */
.bsp__flash { position: absolute; top: 14px; left: 50%; z-index: 5; padding: 8px 14px; border: 1px solid var(--bsp-hair); border-radius: 999px; background: var(--bsp-glass); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); color: var(--bsp-ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; translate: -50% -6px; opacity: 0; pointer-events: none; transition: opacity .18s var(--bsp-out), translate .45s var(--bsp-spring); }
.bsp.is-said .bsp__flash { opacity: 1; translate: -50% 0; }

/* the one-line hint, once in this browser: the mini player's mark and "Keeps playing in a corner when you scroll" */
.bsp__hint { position: absolute; top: 14px; left: 50%; z-index: 5; display: flex; align-items: center; gap: 9px; width: max-content; max-width: calc(100% - 28px); padding: 8px 15px 8px 12px; border: 1px solid var(--bsp-hair); border-radius: 999px; background: var(--bsp-glass); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); color: var(--bsp-ink); font-size: 13.5px; font-weight: 500; line-height: 1.3; text-wrap: balance; translate: -50% -6px; opacity: 0; pointer-events: none; transition: opacity .35s var(--bsp-out), translate .55s var(--bsp-spring); }
.bsp__hint[hidden] { display: none; }
.bsp__hint svg { flex: none; width: 18px; height: 18px; }
.bsp.is-hint .bsp__hint { opacity: 1; translate: -50% 0; }
.bsp.is-said .bsp__hint, .bsp.is-menu .bsp__hint { opacity: 0; }
@container (max-width: 520px) { .bsp__hint { top: 10px; padding: 7px 12px 7px 10px; border-radius: 14px; font-size: 13px; } }

/* ── the bar: a frosted panel at the foot, the thin line on top, the controls under it ── */
.bsp__bar { position: absolute; right: 0; bottom: 0; left: 0; z-index: 4; padding: 40px 10px 10px; background: linear-gradient(to top, var(--bsp-veil), var(--bsp-veil-0)); cursor: default; transition: opacity .28s var(--bsp-out), translate .45s var(--bsp-spring); }
.bsp.is-idle .bsp__bar { opacity: 0; translate: 0 10px; pointer-events: none; }
/* the veil above the controls is picture, not bar: a press there goes to the video (on a small player it reaches the middle) */
.bsp__bar { pointer-events: none; }
.bsp__bar > * { pointer-events: auto; }
.bsp.is-idle .bsp__bar > * { pointer-events: none; }
.bsp.is-error .bsp__bar { display: none; }
/* before the first play the picture stays clean: the bar comes when the pointer or the keyboard arrives */
.bsp.is-fresh:not(.is-menu) .bsp__bar { opacity: 0; translate: 0 10px; }
.bsp.is-fresh:not(.is-menu) .bsp__bar > * { pointer-events: none; }
.bsp.is-fresh:focus-within .bsp__bar { opacity: 1; translate: none; }
.bsp.is-fresh:focus-within .bsp__bar > * { pointer-events: auto; }
.bsp.is-fresh:focus-within .bsp__chip { opacity: 0; }
@media (hover: hover) {
  .bsp.is-fresh:hover .bsp__bar { opacity: 1; translate: none; }
  .bsp.is-fresh:hover .bsp__bar > * { pointer-events: auto; }
  .bsp.is-fresh:hover .bsp__chip { opacity: 0; }
}

.bsp__panel { position: relative; padding: 2px 6px 5px; border: 1px solid var(--bsp-hair); border-radius: 16px; background: var(--bsp-glass); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 14px 34px -16px var(--bsp-drop); }
.bsp__row { display: flex; align-items: center; gap: 2px; min-width: 0; }
.bsp__gap { flex: 1 1 auto; }

/* the line for the position: thin at rest, a touch thicker under the pointer, with the moment in a bubble */
.bsp__line { position: relative; height: 22px; margin: 0 8px; cursor: pointer; touch-action: none; }
.bsp__rail { position: absolute; top: 50%; right: 0; left: 0; height: 3px; overflow: hidden; border-radius: 999px; background: var(--bsp-track); translate: 0 -50%; transition: height .3s var(--bsp-spring); }
.bsp__rail > span { position: absolute; top: 0; bottom: 0; left: 0; border-radius: inherit; }
.bsp__buf { width: var(--bsp-b); background: var(--bsp-loaded); }
.bsp__ghost { width: var(--bsp-h, 0%); background: var(--bsp-ghost); opacity: 0; transition: opacity .16s var(--bsp-out); }
.bsp__fill { width: var(--bsp-p); background: var(--bsp-lilac); }
.bsp__knob { position: absolute; top: 50%; left: var(--bsp-p); width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--bsp-ink); box-shadow: 0 0 0 4px var(--bsp-lilac-glass), 0 2px 6px var(--bsp-drop); scale: 0; pointer-events: none; transition: scale .3s var(--bsp-spring); }
.bsp__line.is-hover .bsp__rail, .bsp__line.is-drag .bsp__rail, .bsp__line:focus-within .bsp__rail { height: 6px; }
.bsp__line.is-hover .bsp__ghost, .bsp__line.is-drag .bsp__ghost { opacity: 1; }
.bsp__line.is-hover .bsp__knob, .bsp__line.is-drag .bsp__knob, .bsp__line:focus-within .bsp__knob { scale: 1; }
/* the field itself is for the keyboard and a screen reader; the pointer is read by the line (player.js) */
.bsp input.bsp__seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.bsp__tip { position: absolute; bottom: calc(100% + 4px); left: 0; padding: 5px 8px; border: 1px solid var(--bsp-hair); border-radius: 8px; background: var(--bsp-glass-2); color: var(--bsp-ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; translate: -50% 4px; opacity: 0; pointer-events: none; transition: opacity .14s var(--bsp-out), translate .3s var(--bsp-spring); }
.bsp__line.is-hover .bsp__tip, .bsp__line.is-drag .bsp__tip { opacity: 1; translate: -50% 0; }

/* the volume: its line opens beside the speaker when the pointer or the keyboard reaches it */
.bsp__vols { display: flex; flex: none; align-items: center; }
.bsp input[type="range"] { -webkit-appearance: none; appearance: none; display: block; margin: 0; border: 0; border-radius: 999px; outline: 0; background-color: transparent; background-clip: content-box; box-shadow: none; cursor: pointer; }
.bsp input.bsp__vol { flex: none; width: 0; height: 20px; margin: 0; padding: 8px 0; opacity: 0; background-image: linear-gradient(to right, var(--bsp-ink) var(--bsp-v, 100%), var(--bsp-track) var(--bsp-v, 100%)); transition: width .4s var(--bsp-spring), margin .4s var(--bsp-spring), opacity .2s var(--bsp-out); }
.bsp__vols:hover input.bsp__vol, .bsp__vols:focus-within input.bsp__vol { width: 72px; margin: 0 8px 0 4px; opacity: 1; }
.bsp input[type="range"]::-webkit-slider-runnable-track { height: 4px; border: 0; background: none; }
.bsp input[type="range"]::-moz-range-track { height: 4px; border: 0; background: none; }
.bsp input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; margin-top: -4px; border: 0; border-radius: 50%; background: var(--bsp-ink); box-shadow: 0 1px 4px var(--bsp-drop); }
.bsp input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--bsp-ink); box-shadow: 0 1px 4px var(--bsp-drop); }

/* the buttons: quiet icons on the glass, a soft well under the pointer, lilac when a choice is on */
.bsp .bsp__btn { position: relative; display: grid; flex: none; width: 38px; height: 38px; margin: 0; padding: 0; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--bsp-ink); font: inherit; font-size: 20px; transition: background-color .16s var(--bsp-out), color .16s var(--bsp-out), scale .3s var(--bsp-spring); }
.bsp .bsp__btn[hidden] { display: none; }
@media (hover: hover) { .bsp .bsp__btn:hover { background: var(--bsp-well); } }
.bsp .bsp__btn:active { scale: .94; }
.bsp .bsp__btn.is-on { color: var(--bsp-lilac); }
.bsp .bsp__btn.is-on::before { content: ''; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--bsp-lilac); }
.bsp .bsp__btn svg { display: block; width: 20px; height: 20px; }
/* back and forward: the turning arrow with the 10 inside it, a little larger so the number reads */
.bsp .bsp__jump svg { width: 24px; height: 24px; font-family: var(--bsp-font); }
/* the speed says itself: 1x, 1.5x */
.bsp .bsp__rate { width: auto; min-width: 38px; padding: 0 8px; }
.bsp .bsp__rate span { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; line-height: 1; }
.bsp .bsp__rate.is-on::before { bottom: 3px; }
.bsp .bsp__more { display: none; }
.bsp__time { flex: none; margin: 0 4px 0 8px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; color: var(--bsp-ink); white-space: nowrap; }
.bsp__time [hidden] { display: none; }
.bsp__time [data-bsp-of] { color: var(--bsp-ink-2); }

/* each button says what it does when the pointer rests on it or the keyboard reaches it */
/* it stands above the panel, clear of the line, so the position stays in sight */
.bsp .bsp__btn::after { content: attr(aria-label); position: absolute; bottom: calc(100% + var(--bsp-tip-up)); left: 50%; z-index: 2; padding: 6px 9px; border: 1px solid var(--bsp-hair); border-radius: 8px; background: var(--bsp-glass-2); color: var(--bsp-ink); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; translate: -50% 4px; opacity: 0; pointer-events: none; transition: opacity .12s var(--bsp-out), translate .3s var(--bsp-spring); }
.bsp .bsp__row > .bsp__btn:first-child::after { left: 0; translate: 0 4px; }
.bsp .bsp__row > .bsp__btn:last-child::after { right: 0; left: auto; translate: 0 4px; }
@media (hover: hover) {
  .bsp .bsp__btn:hover::after { opacity: 1; translate: -50% 0; transition-delay: .35s, .35s; }
  .bsp .bsp__row > .bsp__btn:first-child:hover::after, .bsp .bsp__row > .bsp__btn:last-child:hover::after { translate: 0 0; }
}
.bsp .bsp__btn:focus-visible::after { opacity: 1; translate: -50% 0; }
.bsp .bsp__row > .bsp__btn:first-child:focus-visible::after, .bsp .bsp__row > .bsp__btn:last-child:focus-visible::after { translate: 0 0; }
.bsp.is-menu .bsp__btn::after, .bsp.is-idle .bsp__btn::after, .bsp__line.is-drag ~ .bsp__row .bsp__btn::after { display: none; }

/* ── the menu: a small frosted list above the bar's right end ── */
.bsp__menu { position: absolute; right: 12px; bottom: var(--bsp-menu-b, 92px); z-index: 6; min-width: 188px; padding: 6px; border: 1px solid var(--bsp-hair); border-radius: 14px; background: var(--bsp-glass-2); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 22px 50px -18px var(--bsp-drop); color: var(--bsp-ink); cursor: default; transform-origin: 100% 100%; animation: bsp-pop .38s var(--bsp-spring); }
.bsp__menu[hidden] { display: none; }
/* the page dresses every floating menu in white (clean.css, with !important); over a video this one stays glass */
html .bsp .bsp__menu[role="menu"] { border: 1px solid var(--bsp-hair) !important; background: var(--bsp-glass-2) !important; -webkit-backdrop-filter: blur(24px) saturate(1.6) !important; backdrop-filter: blur(24px) saturate(1.6) !important; box-shadow: 0 22px 50px -18px var(--bsp-drop) !important; }
@keyframes bsp-pop { from { opacity: 0; translate: 0 6px; scale: .96; } }
.bsp__menu-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 4px 10px; min-height: 26px; color: var(--bsp-ink-2); font-size: 12px; font-weight: 500; }
.bsp .bsp__menu .bsp__menu-x { display: none; }
.bsp__rates { display: flex; flex-direction: column; gap: 1px; }
.bsp .bsp__menu button { display: flex; width: 100%; min-height: 36px; align-items: center; gap: 10px; margin: 0; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--bsp-ink); font: inherit; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: left; transition: background-color .14s var(--bsp-out), color .14s var(--bsp-out), border-color .14s var(--bsp-out); }
.bsp .bsp__menu button[hidden] { display: none; }
@media (hover: hover) { .bsp .bsp__menu button:hover { background: var(--bsp-well); } }
.bsp .bsp__menu small { color: var(--bsp-ink-2); font-size: 12.5px; font-weight: 400; }
.bsp .bsp__menu button > i.ph-check { margin-left: auto; color: var(--bsp-lilac); font-size: 16px; opacity: 0; }
.bsp .bsp__menu button[aria-checked="true"] { color: var(--bsp-lilac); }
.bsp .bsp__menu button[aria-checked="true"] > i.ph-check { opacity: 1; }
.bsp .bsp__menu button > i, .bsp .bsp__menu button > svg { flex: none; width: 18px; height: 18px; font-size: 18px; }
.bsp__menu-more { display: none; }
/* picture in picture, in the options with its icon, its name and what it does: on a wide player the one row under the
   speeds (the sound and the captions have their own buttons in the bar there) */
.bsp.has-pip .bsp__menu-more { display: block; margin: 6px -6px 0; padding: 6px 6px 0; border-top: 1px solid var(--bsp-hair); }
.bsp .bsp__menu-more [data-bsp-act="mute"], .bsp .bsp__menu-more [data-bsp-act="cc"] { display: none; }
.bsp .bsp__menu-more [data-bsp-act="pip"] { min-height: 46px; }
.bsp__mi-w { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.15; }
.bsp .bsp__menu .bsp__mi-w small { font-size: 12px; }

/* ── a narrow player (a phone, a tall clip): the bar keeps play, back, forward, the time, the options and full
   screen; the speed, the sound, the captions and picture in picture rise in a sheet from the foot of the stage ── */
@container (max-width: 520px) {
  .bsp__bar { padding: 30px 8px 8px; }
  .bsp__panel { padding: 1px 4px 3px; border-radius: 14px; }
  .bsp__line { margin: 0 8px; }
  .bsp__row { gap: 0; }
  .bsp .bsp__btn { width: 40px; }
  .bsp .bsp__rate, .bsp .bsp__row > [data-bsp-act="cc"], .bsp .bsp__row > [data-bsp-act="pip"], .bsp .bsp__vols { display: none; }
  .bsp .bsp__more { display: grid; }
  .bsp .bsp__big { width: 60px; height: 60px; font-size: 22px; }
  /* paused with the controls up, the big Play stands in the middle of the picture above the bar (about 84 px with its
     padding), not half under it (19 November 2026: at 360-390 px it sat 24-32 px under the bar) */
  .bsp:not(.is-fresh):not(.is-idle):not(.is-playing) .bsp__big { top: calc(50% - 42px); }
  .bsp__chip { bottom: 10px; left: 10px; }

  .bsp__menu { right: 8px; bottom: 8px; left: 8px; min-width: 0; max-height: calc(100% - 16px); overflow-y: auto; padding: 8px 10px 10px; border-radius: 16px; transform-origin: 50% 100%; animation-name: bsp-rise; overscroll-behavior: contain; }
  .bsp__menu-head { margin: 0 -4px 6px 2px; }
  .bsp .bsp__menu .bsp__menu-x { display: grid; width: 32px; min-height: 32px; padding: 0; place-items: center; border-radius: 50%; }
  .bsp__rates { flex-direction: row; gap: 6px; }
  .bsp .bsp__rates button { flex: 1 1 0; min-width: 0; min-height: 40px; justify-content: center; padding: 0 2px; border: 1px solid var(--bsp-hair); border-radius: 10px; font-size: 13.5px; }
  .bsp .bsp__rates small, .bsp .bsp__rates button > i.ph-check { display: none; }
  .bsp .bsp__rates button[aria-checked="true"] { border-color: var(--bsp-lilac-line); background: var(--bsp-lilac-glass); color: var(--bsp-ink); }
  .bsp__menu-more, .bsp.has-pip .bsp__menu-more { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; border-top: 0; }
  .bsp .bsp__menu-more [data-bsp-act="mute"], .bsp .bsp__menu-more [data-bsp-act="cc"] { display: flex; }
  .bsp .bsp__menu-more [data-bsp-act="pip"] { min-height: 40px; }
  .bsp .bsp__menu .bsp__mi-w small { display: none; }
  .bsp .bsp__menu-more button { flex: 1 1 auto; width: auto; min-height: 40px; justify-content: center; gap: 8px; padding: 0 12px; border: 1px solid var(--bsp-hair); border-radius: 10px; font-size: 13.5px; }
  .bsp .bsp__menu-more button[aria-checked="true"] { border-color: var(--bsp-lilac-line); background: var(--bsp-lilac-glass); color: var(--bsp-ink); }
}
@keyframes bsp-rise { from { opacity: 0; translate: 0 14px; } }
/* the narrowest players keep the time that has passed; the length was in the pill at rest */
@container (max-width: 369px) {
  .bsp__time [data-bsp-of] { display: none; }
}

/* the focus ring over a picture: the family's lilac */
.bsp .bsp__btn:focus-visible, .bsp .bsp__big:focus-visible, .bsp .bsp__note button:focus-visible, .bsp .bsp__menu button:focus-visible { outline: 2px solid var(--bsp-lilac); outline-offset: 2px; }
.bsp input[type="range"]:focus-visible { outline: 2px solid var(--bsp-lilac); outline-offset: 3px; }
.bsp__line:focus-within { border-radius: 8px; outline: 2px solid var(--bsp-lilac); outline-offset: 2px; }

/* a finger: 44px to press, and the phone's own buttons set the volume */
@media (pointer: coarse) {
  .bsp .bsp__btn { width: 44px; height: 44px; font-size: 22px; }
  .bsp__line { height: 26px; }
  .bsp input.bsp__vol { display: none; }
  .bsp { --bsp-lift: 80px; --bsp-tip-up: 38px; }
}
@container (max-width: 520px) {
  .bsp .bsp__btn { width: 40px; }
}

/* ── full screen ── */
.bsp:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.bsp:-webkit-full-screen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.bsp:fullscreen::after { display: none; }
.bsp:fullscreen .bsp__bar { padding: 80px 28px 24px; }
.bsp:fullscreen .bsp__panel { max-width: 1120px; margin: 0 auto; padding: 4px 10px 8px; border-radius: 20px; }
.bsp:fullscreen .bsp__btn { width: 46px; height: 46px; font-size: 23px; }
.bsp:fullscreen .bsp__time { font-size: 14.5px; }
.bsp:fullscreen .bsp__big { width: 92px; height: 92px; font-size: 34px; }
.bsp:fullscreen { --bsp-lift: 96px; --bsp-tip-up: 40px; }

/* ── the mini player (player.js): the same player in a small frosted card in a corner of the window ──
   The card is the app's own floating glass (the page's surface, line and shadow, as the bar at a phone's foot), so it
   reads in the light theme and the dark one; the picture inside keeps its dark stage. The card's box is the picture
   itself: the glass around it and the row of buttons under it are drawn outside the box, so on the way back the picture
   alone flies into its place while they fade. */
.bsp-mini {
  --mini-pad: 6px; --mini-row: 46px; --mini-w: 320px; --mini-x: 24px; --mini-y: 24px; --mini-top: 88px;
  --mini-ease: var(--cl-spring, cubic-bezier(.16, 1, .3, 1));
  --mini-bars: cubic-bezier(.32, .72, 0, 1);
  position: fixed; z-index: 305; display: block; width: var(--mini-w); isolation: isolate; color: var(--cl-ink); font-family: var(--cl-sans, system-ui, -apple-system, "Segoe UI", sans-serif);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; cursor: grab;
  opacity: 0; scale: .94; translate: 0 12px; transform-origin: 100% 100%;
  transition: opacity .26s var(--cl-out, ease-out), scale .6s var(--mini-ease), translate .6s var(--mini-ease), top .46s var(--mini-bars), bottom .46s var(--mini-bars);
}
.bsp-mini.is-in { opacity: 1; scale: 1; translate: none; }
.bsp-mini::before { content: ''; position: absolute; z-index: -1; top: calc(-1 * var(--mini-pad)); right: calc(-1 * var(--mini-pad)); bottom: calc(-1 * (var(--mini-row) + var(--mini-pad))); left: calc(-1 * var(--mini-pad)); border: 1px solid var(--cl-line-2); border-radius: calc(14px + var(--mini-pad)); background: color-mix(in srgb, var(--cl-surface) 86%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); box-shadow: var(--cl-shadow-pop); transition: opacity .18s var(--cl-out, ease-out); }
/* the corners: clear of the top bar, and of the phone's foot bar while it shows (it slides away going down, and the card steps down with it) */
.bsp-mini[data-corner="br"], .bsp-mini[data-corner="tr"] { right: calc(var(--mini-x) + var(--mini-pad) + env(safe-area-inset-right, 0px)); }
.bsp-mini[data-corner="bl"], .bsp-mini[data-corner="tl"] { left: calc(var(--mini-x) + var(--mini-pad) + env(safe-area-inset-left, 0px)); }
.bsp-mini[data-corner="br"], .bsp-mini[data-corner="bl"] { bottom: calc(var(--mini-y) + var(--mini-row) + var(--mini-pad) + env(safe-area-inset-bottom, 0px)); }
.bsp-mini[data-corner="tr"], .bsp-mini[data-corner="tl"] { top: calc(var(--mini-top) + var(--mini-pad) + env(safe-area-inset-top, 0px)); }
.bsp-mini[data-corner="bl"] { transform-origin: 0 100%; }
.bsp-mini[data-corner="tr"] { transform-origin: 100% 0; }
.bsp-mini[data-corner="tl"] { transform-origin: 0 0; }
@media (min-width: 641px) { body:has(.bsc-dock.open) .bsp-mini[data-corner$="r"] { right: calc(404px + var(--mini-pad)); } }
@media (max-width: 1023.98px) {
  .bsp-mini { --mini-w: 288px; --mini-x: 12px; --mini-y: 90px; --mini-top: 72px; }
  html.top-away .bsp-mini { --mini-y: 16px; }
  html.is-post-open .bsp-mini { --mini-y: 84px; }
}
@media (max-width: 639.98px) { .bsp-mini { --mini-w: 216px; --mini-pad: 5px; --mini-row: 44px; } }
/* Back to top shares the right foot corner: it stands above the card while the card is there */
html[data-bsp-mini="br"] #backTop { translate: 0 calc(-1 * var(--bsp-mini-h, 0px) - 12px); }

/* the picture in the card: its own controls rest, the position stays as the thin line along its foot */
.bsp-mini > .bsp.is-mini { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; cursor: pointer; touch-action: none; }
.bsp-mini > .bsp.is-mini > :is(.bsp__bar, .bsp__big, .bsp__chip, .bsp__menu, .bsp__hint) { display: none; }
.bsp-mini > .bsp.is-mini::before { height: 3px; opacity: .95; }
.bsp-mini > .bsp.is-mini .bsp__cc { bottom: 10px; padding: 0 10px; translate: none; }
.bsp-mini > .bsp.is-mini .bsp__cc > span { padding: 3px 8px 4px; border-radius: 6px; font-size: 12.5px; line-height: 1.3; }
.bsp-mini > .bsp.is-mini .bsp__wait { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.bsp-mini > .bsp.is-mini .bsp__note { gap: 8px; padding: 10px; }
.bsp-mini > .bsp.is-mini .bsp__note p { font-size: 12.5px; }
.bsp-mini > .bsp.is-mini .bsp__flash { top: 8px; padding: 6px 10px; font-size: 12.5px; }

/* the row under the picture: play and pause, the time, Back to video, Close */
.bsp-mini__row { position: absolute; top: 100%; right: 0; left: 0; display: flex; align-items: center; gap: 2px; height: var(--mini-row); padding: 3px 0 0; container-type: inline-size; transition: opacity .16s var(--cl-out, ease-out); }
.bsp-mini__gap { flex: 1 1 auto; }
.bsp-mini__time { flex: none; margin: 0 0 0 2px; color: var(--cl-ink-3); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
@container (max-width: 250px) { .bsp-mini__time { display: none; } }
.bsp-mini .bsp-mini__btn { position: relative; display: grid; flex: none; width: 36px; height: 36px; margin: 0; padding: 0; place-items: center; border: 0; border-radius: 11px; background: none; color: var(--cl-ink); font: inherit; font-size: 19px; cursor: pointer; transition: background-color .16s var(--cl-out, ease-out), scale .3s var(--mini-ease); }
.bsp-mini .bsp-mini__back { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 32px; margin: 0 2px 0 0; padding: 0 12px 0 10px; border: 1px solid var(--cl-line-2); border-radius: 999px; background: var(--cl-surface); color: var(--cl-ink); font: inherit; font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; transition: border-color .16s var(--cl-out, ease-out), background-color .16s var(--cl-out, ease-out), scale .3s var(--mini-ease); }
.bsp-mini .bsp-mini__back svg { flex: none; width: 15px; height: 15px; }
@media (hover: hover) {
  .bsp-mini .bsp-mini__btn:hover { background: var(--cl-hover); }
  .bsp-mini .bsp-mini__back:hover { border-color: var(--cl-line-3); background: color-mix(in srgb, var(--cl-ink) 4%, var(--cl-surface)); }
}
.bsp-mini .bsp-mini__btn:active, .bsp-mini .bsp-mini__back:active { scale: .95; }
.bsp-mini .bsp-mini__btn:focus-visible, .bsp-mini .bsp-mini__back:focus-visible { outline: 2px solid var(--cl-lilac); outline-offset: 2px; }
/* the two buttons with an icon only say what they do under the pointer or the keyboard, above the row */
.bsp-mini .bsp-mini__btn::after { content: attr(aria-label); position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 2; padding: 6px 9px; border: 1px solid var(--cl-line-2); border-radius: 8px; background: var(--cl-surface); color: var(--cl-ink); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; translate: -50% 4px; opacity: 0; pointer-events: none; transition: opacity .12s var(--cl-out, ease-out), translate .3s var(--mini-ease); }
.bsp-mini .bsp-mini__row > .bsp-mini__btn:first-child::after { left: 0; translate: 0 4px; }
.bsp-mini .bsp-mini__row > .bsp-mini__btn:last-child::after { right: 0; left: auto; translate: 0 4px; }
@media (hover: hover) {
  .bsp-mini .bsp-mini__btn:hover::after { opacity: 1; translate: -50% 0; transition-delay: .35s, .35s; }
  .bsp-mini .bsp-mini__row > .bsp-mini__btn:first-child:hover::after, .bsp-mini .bsp-mini__row > .bsp-mini__btn:last-child:hover::after { translate: 0 0; }
}
.bsp-mini .bsp-mini__btn:focus-visible::after { opacity: 1; translate: -50% 0; }
.bsp-mini .bsp-mini__row > .bsp-mini__btn:first-child:focus-visible::after, .bsp-mini .bsp-mini__row > .bsp-mini__btn:last-child:focus-visible::after { translate: 0 0; }
.bsp-mini.is-drag .bsp-mini__btn::after { display: none; }
.bsp-mini__said { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* moved by a drag: with the pointer while it is held, then to the nearest corner with a soft spring */
.bsp-mini.is-drag { cursor: grabbing; transition: none; }
.bsp-mini.is-drag > .bsp.is-mini { cursor: grabbing; }
.bsp-mini.is-settle { transition: opacity .26s var(--cl-out, ease-out), transform .62s cubic-bezier(.3, 1.22, .48, 1); }
/* leaving in its corner (Close while its place is out of sight, or another video started) */
.bsp-mini.is-out { opacity: 0; scale: .96; translate: 0 8px; pointer-events: none; transition: opacity .22s var(--cl-out, ease-out), scale .3s var(--cl-out, ease-out), translate .3s var(--cl-out, ease-out); }
/* on the way back: the glass and the row fade, the picture flies (player.js sets its place and size each frame) */
.bsp-mini.is-docking { right: auto; bottom: auto; cursor: default; transition: none; }
.bsp-mini.is-docking::before, .bsp-mini.is-docking > .bsp-mini__row { opacity: 0; }
.bsp-mini.is-docking > .bsp.is-mini { height: 100%; aspect-ratio: auto; }

/* the stand-in that keeps the video's place: the moment it left, blurred, and where it went */
.bsp-slot { cursor: pointer; }
.bsp-slot__in { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; background: var(--bsp-veil); color: var(--bsp-ink-2); text-align: center; transition: opacity .2s var(--bsp-out); }
.bsp-slot__in > svg { width: 26px; height: 26px; }
.bsp-slot__w { color: var(--bsp-ink); font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.bsp .bsp-slot__back { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; margin: 2px 0 0; padding: 0 15px 0 12px; border: 1px solid var(--bsp-hair-2); border-radius: 999px; background: var(--bsp-glass); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); color: var(--bsp-ink); font: inherit; font-size: 13.5px; font-weight: 500; transition: background-color .16s var(--bsp-out), border-color .16s var(--bsp-out); }
.bsp .bsp-slot__back svg { width: 16px; height: 16px; }
@media (hover: hover) { .bsp .bsp-slot__back:hover { border-color: var(--bsp-lilac-line); background: var(--bsp-lilac-glass); } }
.bsp .bsp-slot__back:focus-visible { outline: 2px solid var(--bsp-lilac); outline-offset: 2px; }
.bsp-slot.is-landing .bsp-slot__in { opacity: 0; }
@container (max-width: 360px) { .bsp-slot__in { gap: 7px; } .bsp-slot__in > svg { display: none; } }

/* ── stand still when asked ── */
@media (prefers-reduced-motion: reduce) {
  .bsp .bsp__big, .bsp__bar, .bsp__glow, .bsp .bsp__btn, .bsp .bsp__btn::after, .bsp__rail, .bsp__knob, .bsp__tip, .bsp__ghost, .bsp__cc, .bsp__flash, .bsp__chip, .bsp input.bsp__vol, .bsp .bsp__menu button, .bsp::before { transition: none; }
  .bsp__menu { animation: none; }
  /* the hint and the mini player appear and leave without moving */
  .bsp__hint, .bsp.is-hint .bsp__hint { translate: -50% 0; transition: opacity .2s linear; }
  .bsp-mini, .bsp-mini.is-in, .bsp-mini.is-out, .bsp-mini.is-settle { scale: 1; translate: none; transition: opacity .2s linear; }
  .bsp-mini::before, .bsp-mini__row, .bsp-mini .bsp-mini__btn, .bsp-mini .bsp-mini__btn::after, .bsp-mini .bsp-mini__back, .bsp-slot__in, .bsp .bsp-slot__back { transition: none; }
  .bsp-mini .bsp-mini__btn:active, .bsp-mini .bsp-mini__back:active { scale: 1; }
  .bsp .bsp__big:hover, .bsp .bsp__big:active, .bsp .bsp__btn:active { scale: 1; }
  .bsp.is-idle .bsp__bar, .bsp.is-fresh .bsp__bar { translate: none; }
  .bsp__wait { animation-duration: 2.4s; }
}
html.a11y-reduce-motion .bsp .bsp__big, html.a11y-reduce-motion .bsp__bar, html.a11y-reduce-motion .bsp__glow, html.a11y-reduce-motion .bsp .bsp__btn, html.a11y-reduce-motion .bsp .bsp__btn::after, html.a11y-reduce-motion .bsp__rail, html.a11y-reduce-motion .bsp__knob, html.a11y-reduce-motion .bsp__tip, html.a11y-reduce-motion .bsp__ghost, html.a11y-reduce-motion .bsp__cc, html.a11y-reduce-motion .bsp__flash, html.a11y-reduce-motion .bsp__chip, html.a11y-reduce-motion .bsp input.bsp__vol, html.a11y-reduce-motion .bsp .bsp__menu button, html.a11y-reduce-motion .bsp::before { transition: none; }
html.a11y-reduce-motion .bsp__menu { animation: none; }
html.a11y-reduce-motion .bsp__hint, html.a11y-reduce-motion .bsp.is-hint .bsp__hint { translate: -50% 0; transition: opacity .2s linear; }
html.a11y-reduce-motion .bsp-mini, html.a11y-reduce-motion .bsp-mini.is-in, html.a11y-reduce-motion .bsp-mini.is-out, html.a11y-reduce-motion .bsp-mini.is-settle { scale: 1; translate: none; transition: opacity .2s linear; }
html.a11y-reduce-motion .bsp-mini::before, html.a11y-reduce-motion .bsp-mini__row, html.a11y-reduce-motion .bsp-mini .bsp-mini__btn, html.a11y-reduce-motion .bsp-mini .bsp-mini__btn::after, html.a11y-reduce-motion .bsp-mini .bsp-mini__back, html.a11y-reduce-motion .bsp-slot__in, html.a11y-reduce-motion .bsp .bsp-slot__back { transition: none; }
html.a11y-reduce-motion .bsp-mini .bsp-mini__btn:active, html.a11y-reduce-motion .bsp-mini .bsp-mini__back:active { scale: 1; }
html.a11y-reduce-motion .bsp .bsp__big:hover, html.a11y-reduce-motion .bsp .bsp__big:active, html.a11y-reduce-motion .bsp .bsp__btn:active { scale: 1; }
html.a11y-reduce-motion .bsp.is-idle .bsp__bar, html.a11y-reduce-motion .bsp.is-fresh .bsp__bar { translate: none; }
html.a11y-reduce-motion .bsp__wait { animation-duration: 2.4s; }
