/*
 * Play/pause toggle for background videos (fluid_video_toggle() in kits/fluid/functions.php – intro „Vollflächig“ of the kits
 * fluid and NativeCSS, video „Morphing“ in the kit NativeCSS). Loaded only on pages with a background video (kit.php → assets,
 * @videotoggle); a kit replaces the file with its own css/video-toggle.css. Taken from KLXM Studio (resources/css/video-toggle.css, MIT).
 *
 * Round icon button at the bottom right of the frame (the frame needs position: relative), at least 44 × 44 px, semi-transparent
 * dark surface with a light border – the icon reaches at least 3:1 on any video frame (white on ≥ 60 % black: ≥ 5.9:1),
 * double focus ring (light + dark). Styling with button:where() (specificity of an element – any class rule of a kit
 * wins); only icon size, icon switching and hidden text have specificity. File without @layer.
 *
 * Tokens (settable anywhere, e.g. :root or the intro's frame; default in parentheses):
 *   --hx-vt-size (2.75rem)          button size (minimum; with text it grows in width)
 *   --hx-vt-icon (1.25rem)          icon size
 *   --hx-vt-bg (rgb(0 0 0/.6))      surface        --hx-vt-bg-hover (rgb(0 0 0/.78))   surface on hover
 *   --hx-vt-fg (#fff)               icon + text
 *   --hx-vt-border (rgb(255 255 255/.8))  border color  --hx-vt-border-width (2px)
 *   --hx-vt-radius (999px)          rounding
 *   --hx-vt-x (1rem), --hx-vt-y (1rem)    distance to the right and bottom edge
 *   --hx-vt-focus (#fff), --hx-vt-focus-halo (#000), --hx-vt-focus-width (3px)   focus ring
 *   --hx-vt-font-size (.875rem)     text for „Symbol mit Text“
 */
button:where(.hx-vt){position:absolute;z-index:2;inset-block-end:var(--hx-vt-y,1rem);inset-inline-end:var(--hx-vt-x,1rem);
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;box-sizing:border-box;
  min-width:var(--hx-vt-size,2.75rem);min-height:var(--hx-vt-size,2.75rem);margin:0;padding:0;
  border:var(--hx-vt-border-width,2px) solid var(--hx-vt-border,rgb(255 255 255/.8));border-radius:var(--hx-vt-radius,999px);
  background:var(--hx-vt-bg,rgb(0 0 0/.6));color:var(--hx-vt-fg,#fff);
  font:inherit;font-size:var(--hx-vt-font-size,.875rem);font-weight:600;line-height:1.2;text-shadow:none;cursor:pointer;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background-color .15s;pointer-events:auto}
button:where(.hx-vt)[hidden]{display:none}
button:where(.hx-vt):hover{background:var(--hx-vt-bg-hover,rgb(0 0 0/.78))}
button:where(.hx-vt):focus-visible{outline:var(--hx-vt-focus-width,3px) solid var(--hx-vt-focus,#fff);outline-offset:2px;
  box-shadow:0 0 0 calc(var(--hx-vt-focus-width,3px) + 4px) var(--hx-vt-focus-halo,#000)}
.hx-vt .hx-ico{flex:none;width:var(--hx-vt-icon,1.25rem);height:var(--hx-vt-icon,1.25rem);--ico-2-opacity:.35}
/* Playing → pause icon; paused (.is-paused) → play icon (with specificity so general .ico rules never show both) */
.hx-vt .hx-ico--play,.hx-vt.is-paused .hx-ico--pause{display:none}
.hx-vt.is-paused .hx-ico--play{display:block}
/* „Symbol“: text for screen readers only (accessible name, changes with the state); „Symbol mit Text“: visible next to it */
:where(.hx-vt--icon) .hx-vt__label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
button:where(.hx-vt--text){padding-inline:.8rem 1.1rem}
@media (forced-colors:active){button:where(.hx-vt){border-color:ButtonText;background:ButtonFace;color:ButtonText;-webkit-backdrop-filter:none;backdrop-filter:none}}
@media print{button:where(.hx-vt){display:none}}
