/*
 * IsoPlayer (values from the native POC: player/css/webflow-classes.css + embed.css), two looks picked by the
 * "Style" prop (root data-style):
 *   connected (default)  joined tiles with 1px white borders, no fill; a light bottom gradient behind the bar
 *                        (Video.js Controls.Backdrop) and a soft radial shade behind the title card
 *   tiles                separate frosted tiles 1px apart, no borders, like the site's card labels
 *                        ("ANNOUNCEMENT" on news cards, the native VideoPlayer play icon); no gradient
 * Lives inside the code component's Shadow DOM: site classes don't reach in; site CSS variables and
 * inherited properties (font) do. The site sets its variables on :root (mobile mode) and again on body for
 * the desktop (>= 992 px) and tablet (480-991 px) modes; they inherit into the shadow root, so the player
 * follows the site's breakpoint modes. Each with a fallback (= the site's desktop value):
 *   --_radius---radius--radius-container    16px     frame
 *   --_radius---radius--radius-3            5.6px    Connected tiles
 *   --_radius---radius--radius-2            4.5px    Tiles tiles (as the site's card label / play icon)
 *   --_size---btn-size--btn-size-3          36px     bar height, square bar tiles (site: nav links, "Apply")
 *   --_size---btn-size--btn-size-4          40px     + spacing-2 = title card height (site: CTA buttons)
 *   --_size---spacing--spacing-2/-3/-4      8/12/16  paddings, bar inset
 *   --_type---tag-l--font-size-2            12px     time readouts (site .text-tag-l)
 *   --_type---tag-l--letter-spacing-2       .08em
 *   --_type---tag-s--font-size-2 / -letter-spacing-2  10px / .12em  card title (Tiles) + duration, narrow players
 *   --_type---headline-4/-5--font-size-2    20/18px  title on the card (Connected)
 *   --_type---family-mono-400               Sohne Mono (time readouts; Tiles titles)
 *   --_color---card-label-background        #62626280  Tiles fill
 *   --_blur---background-blur--background-blur-s-3  20px  Tiles backdrop blur
 * State hooks:
 *   ours on the root:   data-state=idle|playing|paused|ended, data-style=connected|tiles, data-aspect,
 *                       data-fullscreen, data-touch, data-failed, data-loading (played, first frame not there yet)
 *   Video.js:           Controls.Content / Controls.Backdrop [data-visible], slider [data-pointing|data-dragging|data-interactive],
 *                       --media-slider-fill / --media-slider-pointer / --media-slider-buffer on sliders,
 *                       BufferingIndicator[data-visible], Poster.Root[data-visible], Thumbnail [data-error|data-hidden],
 *                       Time.Value[data-unavailable], [hidden] on unsupported buttons/sliders,
 *                       ErrorDialog Backdrop/Popup [data-open|data-starting-style|data-ending-style].
 */

:host {
  display: block;
}

.iso-player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--_radius---radius--radius-container, 16px);
  background-color: #000;
  color: #fff;
  /* Site font: Söhne Leicht via the site Type variable (body itself is system-ui); falls back to inherit. */
  font-family: var(--_type---family-300, inherit);
  -webkit-font-smoothing: antialiased;
  container-type: inline-size;
  --preview-w: clamp(10rem, 24cqw, 16rem);
  -webkit-tap-highlight-color: transparent;
  /* Sizes (site variables, see the header). Narrow players (phones) use 40px tiles; touch devices get at
     least 40px. */
  --iso-bar: var(--_size---btn-size--btn-size-3, 36px);
  --iso-card: calc(var(--_size---btn-size--btn-size-4, 40px) + var(--_size---spacing--spacing-2, 8px));
  --iso-inset: var(--_size---spacing--spacing-4, 16px);
  --iso-pad: var(--_size---spacing--spacing-4, 16px);
  --iso-pad-time: var(--_size---spacing--spacing-4, 16px);
  --iso-pad-clock: var(--_size---spacing--spacing-3, 12px);
  --iso-icon: 14px;
  --iso-card-icon: 18px;
  --iso-tag: var(--_type---tag-l--font-size-2, 12px);
  --iso-tag-spacing: var(--_type---tag-l--letter-spacing-2, 0.08em);
  --iso-title: var(--_type---headline-4--font-size-2, 20px);
  /* Look (Connected; Tiles overrides below). */
  --iso-radius: var(--_radius---radius--radius-3, 5.6px);
  --iso-border: 1px;
  --iso-fill: transparent;
  --iso-blur: none;
  --iso-join: -1px; /* Connected: joined tiles share their 1px border */
  --iso-gap: 0px; /* Tiles: 1px between tiles */
  --iso-fade: 0.25s;
}

/* Touch devices: every control at least 40px, whatever the container width. own: 40, not Apple's 44pt
   (Karol, 2026-11-10: "slightly smaller on iOS, but not too much"). 40 is still above every tappable control
   the site has on phones (28-36px) except its 48px native play icon, and well above WCAG 2.5.8's 24px; the
   tiles sit in one row 1px apart, with the 10px touch gap after the seek tile. */
@media (hover: none) and (pointer: coarse) {
  .iso-player {
    --iso-bar: max(40px, var(--_size---btn-size--btn-size-3, 36px));
    --iso-card: max(40px, calc(var(--_size---btn-size--btn-size-4, 40px) + var(--_size---spacing--spacing-2, 8px)));
  }
}

.iso-player[data-aspect="4:3"] {
  aspect-ratio: 4 / 3;
}

.iso-player[data-aspect="1:1"] {
  aspect-ratio: 1 / 1;
}

.iso-player *,
.iso-player *::before,
.iso-player *::after {
  box-sizing: border-box;
}

.iso-player [hidden] {
  display: none !important;
}

.iso-player:focus-visible {
  outline: 1px solid #fff;
  outline-offset: -1px;
}

.iso-player :focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -5px;
}

/* Fullscreen: the whole container (not the bare <video>) fills the screen. */
.iso-player:fullscreen,
.iso-player[data-fullscreen] {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.iso-player:-webkit-full-screen {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.iso-player_video,
.iso-player_poster,
.iso-player_poster-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.iso-player_poster {
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.iso-player_poster:not([data-visible]) {
  opacity: 0;
}

/* Video.js hides the poster at the click; keep it until the first frame (no black frame). */
.iso-player[data-loading] .iso-player_poster {
  opacity: 1;
}

/* Teaser (Video.js BackgroundVideo): over the poster, under the title card. Invisible until it
   really plays (`playing`), so the poster shows until then and if play() is refused. The swap is
   instant (no fade: a fade read as a flash of the poster under the teaser), and the teaser is fitted
   like the poster and the main video (contain), so the frame doesn't change size at either swap
   (poster -> teaser, and teaser -> held poster -> main video at the first play). */
.iso-player_teaser {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}

.iso-player_teaser[data-playing] {
  opacity: 1;
}

.iso-player--empty {
  display: flex;
  justify-content: center;
  align-items: center;
}

.iso-player_empty {
  margin: 0;
  opacity: 0.64;
  font-size: 14px;
}

/* ---------- Tiles (shared look) ---------- */

.iso-player_lockup-play,
.iso-player_lockup-label,
.iso-player_lockup-time,
.iso-player_button,
.iso-player_seek,
.iso-player_time,
.iso-player_volume {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: none;
  margin: 0 0 0 var(--iso-join);
  padding: 0;
  border: var(--iso-border) solid currentColor;
  border-radius: var(--iso-radius);
  /* Connected: no fill (the bar sits on the bottom gradient). Tiles: the site's frosted card-label fill. */
  background-color: var(--iso-fill);
  -webkit-backdrop-filter: var(--iso-blur);
  backdrop-filter: var(--iso-blur);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.iso-player_lockup-play:hover,
.iso-player_button:hover,
.iso-player_volume:hover {
  background-image: linear-gradient(#ffffff1f, #ffffff1f);
}

.iso-player_icon {
  display: block;
  width: var(--iso-icon);
  height: var(--iso-icon);
  overflow: visible;
}

/* ---------- Title card (lockup): play | title | duration, centred over the poster ---------- */

.iso-player_lockup {
  /* own: no text selection / magnifier on long press (iOS) on the title card. */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  transition: visibility 0s linear 0s;
}

/* The card fades its tiles, not itself: a fading ancestor (opacity < 1) switches the Tiles' backdrop blur
   off for the whole fade (Chromium, tested), so each tile carries its own opacity. */
.iso-player_lockup > *,
.iso-player_lockup::before {
  transition: opacity var(--iso-fade) ease;
}

.iso-player[data-state="playing"] .iso-player_lockup,
.iso-player[data-state="paused"] .iso-player_lockup,
.iso-player[data-failed] .iso-player_lockup {
  visibility: hidden;
  transition: visibility 0s linear var(--iso-fade);
}

.iso-player[data-state="playing"] .iso-player_lockup > *,
.iso-player[data-state="paused"] .iso-player_lockup > *,
.iso-player[data-failed] .iso-player_lockup > *,
.iso-player[data-state="playing"] .iso-player_lockup::before,
.iso-player[data-state="paused"] .iso-player_lockup::before,
.iso-player[data-failed] .iso-player_lockup::before {
  opacity: 0;
}

.iso-player_lockup-play,
.iso-player_lockup-label,
.iso-player_lockup-time {
  height: var(--iso-card);
  pointer-events: auto;
}

.iso-player_lockup-play {
  width: var(--iso-card);
  margin-left: 0;
}

.iso-player_lockup-play .iso-player_icon {
  width: var(--iso-card-icon);
  height: var(--iso-card-icon);
}

.iso-player_lockup-label {
  min-width: 0;
  max-width: 70%;
  padding: 0 var(--iso-pad);
  font-size: var(--iso-title);
  line-height: 1.2;
  letter-spacing: -0.3px;
  white-space: nowrap;
  cursor: default;
}

.iso-player_lockup-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.iso-player_lockup-again {
  display: none;
}

.iso-player[data-state="ended"] .iso-player_lockup-title {
  display: none;
}

.iso-player[data-state="ended"] .iso-player_lockup-again {
  display: block;
}

/* No title: the card is just the play tile (Video.js' <Title> renders nothing / hidden). */
.iso-player_lockup-label:not(:has(.iso-player_lockup-title:not([hidden]))) {
  display: none;
}

.iso-player[data-state="ended"] .iso-player_lockup-label {
  display: flex;
}

.iso-player_lockup-time,
.iso-player_time,
.iso-player_preview-time {
  font-family: var(--_type---family-mono-400, ui-monospace, monospace);
  font-size: var(--iso-tag);
  line-height: 1;
  letter-spacing: var(--iso-tag-spacing);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.iso-player_lockup-time {
  padding: 0 var(--iso-pad-time);
  cursor: default;
}

/* Duration is unknown before the first play (preload="none"): no empty tile, unless the Duration
   prop gives its text (data-preset). Kept at every width, as in the concept (≤ 480 px: 12 px padding). */
.iso-player_lockup-time[data-unavailable]:not([data-preset]) {
  display: none;
}

/* ---------- Control bar ---------- */

.iso-player_controls {
  position: absolute;
  left: var(--iso-inset);
  right: var(--iso-inset);
  bottom: var(--iso-inset);
  z-index: 2;
  display: flex;
  align-items: stretch;
  height: var(--iso-bar);
}

/* Video.js Controls.Group (role=group "Video controls"): the row of tiles. */
.iso-player_controls-group {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  min-width: 0;
}

/* The bar fades its tiles, not itself (as the title card: keeps the Tiles' backdrop blur during the fade). */
.iso-player_controls-group > * {
  transition: opacity var(--iso-fade) ease;
}

/* Behind the title card while idle / ended. */
.iso-player[data-state="idle"] .iso-player_controls,
.iso-player[data-state="ended"] .iso-player_controls,
.iso-player[data-failed] .iso-player_controls {
  visibility: hidden;
}

.iso-player[data-state="idle"] .iso-player_controls-group > *,
.iso-player[data-state="ended"] .iso-player_controls-group > *,
.iso-player[data-failed] .iso-player_controls-group > * {
  opacity: 0;
}

/* Video.js controls visibility (idle timer, touch toggle). While faded the bar takes no pointer
   events, so a touch tap lands on the video and Video.js shows the bar. */
.iso-player_controls:not([data-visible]) {
  pointer-events: none;
}

.iso-player_controls:not([data-visible]) .iso-player_controls-group > * {
  opacity: 0;
}

/* ---------- Connected: bottom gradient behind the bar (Video.js Controls.Backdrop) ----------
   Large and light (Marcin, 2026-11-10: no black tile fill; "a gradient from the bottom"): 40 % of the frame,
   35 % black at the bottom edge, eased out to nothing. Shown and hidden with the bar (same data-visible from
   Video.js, same fade, gone while idle / ended / failed). Decorative, takes no pointer events. */
.iso-player_scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: var(--iso-scrim-h, 40%);
  pointer-events: none;
  background-image: linear-gradient(
    to top,
    rgb(0 0 0 / calc(var(--iso-scrim, 0.35) * 100%)) 0%,
    rgb(0 0 0 / calc(var(--iso-scrim, 0.35) * 86%)) 18%,
    rgb(0 0 0 / calc(var(--iso-scrim, 0.35) * 62%)) 38%,
    rgb(0 0 0 / calc(var(--iso-scrim, 0.35) * 34%)) 60%,
    rgb(0 0 0 / calc(var(--iso-scrim, 0.35) * 12%)) 80%,
    transparent 100%
  );
  transition: opacity var(--iso-fade) ease;
}

.iso-player_scrim:not([data-visible]) {
  opacity: 0;
}

.iso-player[data-state="idle"] .iso-player_scrim,
.iso-player[data-state="ended"] .iso-player_scrim,
.iso-player[data-failed] .iso-player_scrim {
  visibility: hidden;
  opacity: 0;
}

.iso-player_button {
  width: var(--iso-bar);
}

.iso-player_button:first-child {
  margin-left: 0;
}

/* Seek */
.iso-player_seek {
  flex: 1 1 auto;
  min-width: 96px;
}

/* own: touch gap. iOS Safari moves a tap within ~4 px of the seek tile's right end onto the next button
   (Mute), so the tap seeks and mutes. A 10 px gap keeps the targets apart (taps ≥ 10 px away only
   seek). Only in narrow players (≤ 480 px), where the clock is hidden and Mute follows the seek tile;
   wider players have the (non-interactive) clock there. Mouse / desktop keep the joined tiles.
   10 px = margin + the tiles' own spacing (Connected: -1 px overlap -> 11 px; Tiles: 1 px gap -> 9 px). */
@container (max-width: 480px) {
  @media (hover: none) and (pointer: coarse) {
    .iso-player_seek {
      margin-right: calc(10px - var(--iso-join) - var(--iso-gap));
    }
  }

  .iso-player[data-touch] .iso-player_seek {
    margin-right: calc(10px - var(--iso-join) - var(--iso-gap));
  }
}

.iso-player_seek-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: max(0px, calc(var(--iso-radius) - var(--iso-border)));
}

.iso-player_seek-buffer,
.iso-player_seek-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.iso-player_seek-buffer {
  width: var(--media-slider-buffer);
  background-color: #ffffff0f;
}

.iso-player_seek-fill {
  width: var(--media-slider-fill);
  background-color: #ffffff24;
}

.iso-player_seek-thumb,
.iso-player_seek-ghost {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -0.5px;
  background-color: currentColor;
}

.iso-player_seek-thumb {
  left: var(--media-slider-fill);
}

/* The thumb is Video.js' focusable role=slider; outline the whole tile instead of the 1px line. */
.iso-player_seek-thumb:focus-visible {
  outline: none;
}

.iso-player_seek:has(.iso-player_seek-thumb:focus-visible) {
  outline: 1px solid currentColor;
  outline-offset: -5px;
}

.iso-player_seek-ghost {
  left: var(--media-slider-pointer);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.iso-player_seek:is([data-pointing], [data-dragging]) .iso-player_seek-ghost {
  opacity: 0.4;
}

/* Preview: Video.js TimeSlider.Preview positions it along the bar (overflow clamp); Video.js
   ThumbnailCore scales the tile to the frame's max-width and crops the sprite. */
.iso-player_preview {
  position: absolute;
  bottom: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.iso-player_seek:is([data-pointing], [data-dragging], :has(:focus-visible)) .iso-player_preview[data-sized] {
  opacity: 1;
  visibility: visible;
}

/* Sprite failed to load: no preview at all. */
.iso-player_preview:has(.iso-player_preview-frame[data-error]) {
  display: none;
}

.iso-player_preview-frame {
  box-sizing: content-box !important;
  max-width: var(--preview-w);
  border: 1px solid currentColor;
  border-radius: var(--_radius---radius--radius-3, 5.6px);
  background-color: #000;
}

.iso-player_preview-image {
  display: block;
}

/* The pointer-time chip floats over the picture above the bar (outside the gradient's darkest part), so
   Connected keeps its own tint here, as the concept's Hairline variant does. */
.iso-player_preview-time {
  padding: 6px 10px;
  border-radius: var(--iso-radius);
  background-color: #0c0c0c99;
}

/* Time */
.iso-player_time {
  gap: 6px;
  padding: 0 var(--iso-pad-clock);
  cursor: default;
}

.iso-player_time-sep,
.iso-player_time-total {
  opacity: 0.64;
}

/* Duration unknown until metadata (preload="none"): no "0:00 / 0:00". */
.iso-player_time-total[data-unavailable],
.iso-player_time:has(.iso-player_time-total[data-unavailable]) .iso-player_time-sep {
  display: none;
}

/* Volume: mute + slider that opens on hover (mouse) or keyboard focus */
.iso-player_volume {
  justify-content: flex-start;
  cursor: default;
}

.iso-player_mute {
  display: flex;
  justify-content: center;
  align-items: center;
  /* Square volume tile: the button fills it inside the tile's borders. */
  width: calc(var(--iso-bar) - 2 * var(--iso-border));
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.iso-player_icon-volume line[data-dim] {
  opacity: 0.4;
}

.iso-player_volume-slider {
  position: relative;
  width: 0;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  transition: width 0.25s ease, margin 0.25s ease, opacity 0.25s ease;
}

.iso-player_volume:focus-within .iso-player_volume-slider {
  width: 64px;
  margin-right: 14px;
  opacity: 1;
}

@media (hover: hover) {
  .iso-player_volume:hover .iso-player_volume-slider {
    width: 64px;
    margin-right: 14px;
    opacity: 1;
  }
}

.iso-player_volume-track,
.iso-player_volume-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 1px;
  background-color: currentColor;
}

.iso-player_volume-track {
  right: 0;
  background-color: #ffffff66;
}

.iso-player_volume-fill {
  width: var(--media-slider-fill);
}

.iso-player_volume-thumb {
  position: absolute;
  top: 50%;
  left: var(--media-slider-fill);
  width: 1px;
  height: 9px;
  margin: -4px 0 0 -0.5px;
  background-color: currentColor;
}

.iso-player_volume-thumb:focus-visible {
  outline: none;
}

/* The volume thumb is a 1px line: ring the whole volume tile instead (as the seek tile). */
.iso-player_volume:has(.iso-player_volume-thumb:focus-visible) {
  outline: 1px solid currentColor;
  outline-offset: -5px;
}

/* Touch-first devices: no volume slider (iOS reports volume as settable to Video.js 10.3.0, so its
   `hidden` doesn't fire there), no hover ghost, no preview. */
@media (hover: none) {
  .iso-player_volume-slider {
    display: none;
  }
}

.iso-player[data-touch] .iso-player_volume-slider,
.iso-player[data-touch] .iso-player_seek-ghost,
.iso-player[data-touch] .iso-player_preview {
  display: none;
}

/* ---------- Buffering (Video.js BufferingIndicator: waiting while playing, after 500 ms) ---------- */

.iso-player_spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 1px solid #ffffff3d;
  border-top-color: #fff;
  border-radius: 50%;
  pointer-events: none;
  animation: iso-player-spin 0.8s linear infinite;
}

.iso-player_spinner:not([data-visible]) {
  display: none;
}

@keyframes iso-player-spin {
  to {
    transform: rotate(1turn);
  }
}

/* Live region (Video.js StatusAnnouncer): visually hidden, still read. */
.iso-player_status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

/* ---------- Media error (Video.js ErrorDialog, confined to the player) ---------- */

.iso-player[data-failed] .iso-player_spinner {
  display: none;
}

.iso-player_error-backdrop {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-color: #000000a3;
  transition: opacity 0.25s ease;
}

.iso-player_error {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(420px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  margin: 0;
  padding: 20px;
  border: 1px solid currentColor;
  border-radius: var(--_radius---radius--radius-3, 5.6px);
  background-color: #0c0c0c99;
  color: inherit;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
}

.iso-player_error-backdrop:is([data-starting-style], [data-ending-style]),
.iso-player_error:is([data-starting-style], [data-ending-style]) {
  opacity: 0;
}

.iso-player_error-title {
  margin: 0;
  font-size: 18px;
  font-weight: inherit;
  line-height: 1.2;
}

.iso-player_error-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.64;
}

.iso-player_error-close {
  height: 40px;
  margin-top: 8px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: var(--_radius---radius--radius-3, 5.6px);
  background-color: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.iso-player_error-close:hover {
  background-image: linear-gradient(#ffffff1f, #ffffff1f);
}

/* ---------- Narrow players (container width) ---------- */

@container (max-width: 640px) {
  .iso-player_time-sep,
  .iso-player_time-total {
    display: none;
  }
}

/* Narrow players (phones, or a narrow column): 40px targets for every pointer (was 44px; see the touch
   floor), 10px inset. Text and icons follow the site's phone values: the news-card glass label's .text-tag-s
   (10px, .12em) for the card title / duration, 12px bar icons (the site's functional-ui-icon-size-m on phones;
   a fixed 12px here, because that variable is 16px on desktop and would grow the icons in a narrow desktop
   column), 16px card play icon (40 % of the tile, as the native play icon's glyph). The variables are set on
   the bar / card (a container query can't style the container itself). */
@container (max-width: 480px) {
  .iso-player_controls {
    --iso-bar: 40px;
    --iso-inset: 10px;
    --iso-icon: 12px;
  }

  .iso-player_mute {
    width: var(--iso-bar);
  }

  .iso-player_time,
  .iso-player_volume-slider {
    display: none;
  }

  .iso-player_lockup {
    --iso-card: 40px;
    --iso-card-icon: 16px;
    --iso-pad: var(--_size---spacing--spacing-3, 12px);
    --iso-pad-time: var(--_size---spacing--spacing-3, 12px);
    --iso-tag: var(--_type---tag-s--font-size-2, 10px);
    --iso-tag-spacing: var(--_type---tag-s--letter-spacing-2, 0.12em);
    --iso-title: var(--_type---headline-5--font-size-2, 18px);
  }
}

/* Touch: the mute button fills the whole tile (borders included in the target). */
@media (hover: none) and (pointer: coarse) {
  .iso-player_mute {
    width: var(--iso-bar);
  }
}

/* ---------- Connected: soft radial shade behind the title card ----------
   own: the card has no fill any more, so white text over a bright poster or teaser frame needs a little help.
   A radial shade centred on the card (35 % black at the centre, gone by the frame's edges) is the lightest
   option that still lifts the text; a tile tint would bring back the box Marcin didn't want, a whole-frame
   scrim darkens the entire poster. Fades with the card. */
.iso-player[data-style="connected"] .iso-player_lockup::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(
    ellipse 40% 34% at 50% 50%,
    rgb(0 0 0 / calc(var(--iso-scrim, 0.35) * 100%)) 0%,
    rgb(0 0 0 / calc(var(--iso-scrim, 0.35) * 80%)) 30%,
    rgb(0 0 0 / calc(var(--iso-scrim, 0.35) * 40%)) 62%,
    rgb(0 0 0 / calc(var(--iso-scrim, 0.35) * 12%)) 85%,
    transparent 100%
  );
}

/* ---------- Tiles: separate frosted tiles, like the site's card labels ----------
   Measured on staging (news card "ANNOUNCEMENT" label, .news-card_label / .news-card_icon-wrap; the native
   VideoPlayer play icon .video-player_play-icon): background var(--_color---card-label-background) #62626280,
   backdrop-filter blur(var(--_blur---background-blur--background-blur-s-3)) 20px (the play icon has no blur),
   radius var(--_radius---radius--radius-2) 4.5 / 3.9 / 3.6px, no border, 1px between the icon tile and the
   label, mono uppercase label text. The blur sits only on the few tiles, never full-frame. No gradient. */
.iso-player[data-style="tiles"] {
  --iso-radius: var(--_radius---radius--radius-2, 4.5px);
  --iso-border: 0px;
  --iso-fill: var(--_color---card-label-background, #62626280);
  --iso-blur: blur(var(--_blur---background-blur--background-blur-s-3, 20px));
  --iso-join: 0px;
  --iso-gap: 1px;
}

.iso-player[data-style="tiles"] .iso-player_scrim {
  display: none;
}

.iso-player_controls-group,
.iso-player_lockup {
  gap: var(--iso-gap);
}

/* Title in the site's tag style (mono, uppercase), as on the card labels. */
.iso-player[data-style="tiles"] .iso-player_lockup-label {
  font-family: var(--_type---family-mono-400, ui-monospace, monospace);
  font-size: var(--iso-tag);
  line-height: 1;
  letter-spacing: var(--iso-tag-spacing);
  text-transform: uppercase;
}

.iso-player[data-style="tiles"] .iso-player_preview-frame {
  border: 0;
  border-radius: var(--iso-radius);
  overflow: hidden;
}

.iso-player[data-style="tiles"] .iso-player_preview-time {
  background-color: var(--iso-fill);
}

@media (prefers-reduced-motion: reduce) {
  .iso-player *,
  .iso-player *::before {
    transition: none !important;
  }

  .iso-player_spinner {
    animation-duration: 2.4s;
  }
}

