#vsl-layer { position: relative; z-index: 40; pointer-events: none; }

.vsl__media, .vsl__home {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  width: min(84vw, 1180px, calc((100svh - 48px) * 16 / 9));
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 24px;
  background: var(--bg-dark);
  box-shadow: 0 16px 48px rgba(0,0,0,.3), 0 0 0 1px var(--brand-soft);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.vsl__media[aria-hidden="true"] { pointer-events: none; }
.vsl__video { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--bg-dark); cursor: pointer; }
.vsl__badge { display: none; }
.vsl__start {
  position: absolute;
  top: calc((100% - 88px) / 2);
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target, 44px);
  max-width: calc(100% - 24px);
  gap: 10px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font: 700 12px/1.2 var(--font-body);
  cursor: pointer;
  transform: translate(-50%, -50%);
}
.vsl__media [hidden] { display: none; }
/* Controls overlay the picture; neither the player nor its measuring box reserves a strip. */
.vsl__controls {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 4px;
  left: 8px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.vsl__controls::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -12px -8px -4px;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,.12) 40%, rgba(0,0,0,.65));
}
.vsl__actions, .vsl__position { display: flex; align-items: center; gap: 6px; height: 44px; }
.vsl__position { order: -1; }
.vsl__actions button, .vsl__offers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(0,0,0,.24);
  color: var(--paper);
  font: 600 11px/1.2 var(--font-body);
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.vsl__actions .vsl__toggle, .vsl__actions .vsl__expand { font-size: 20px; }
.vsl__actions .vsl__dismiss { font-size: 24px; }
.vsl__offers { margin-left: auto; color: var(--paper); }
.vsl__sound[aria-pressed="false"] { color: var(--brand); background: rgba(0,0,0,.5); }
.vsl__time { white-space: nowrap; color: var(--paper); font: 500 11px var(--font-body); font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px var(--bg-dark); }
.vsl__progress { flex: 1; min-width: 44px; width: 100%; height: 44px; margin: 0; background: transparent; accent-color: var(--brand); cursor: pointer; }
.vsl__progress { appearance: none; -webkit-appearance: none; }
.vsl__progress::-webkit-slider-runnable-track { height: 2px; background: rgba(255,255,255,.55); border-radius: 2px; }
.vsl__progress::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4px; border: 0; border-radius: 50%; background: var(--brand); }
.vsl__progress::-moz-range-track { height: 2px; background: rgba(255,255,255,.55); }
.vsl__progress::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--brand); }
.vsl__media button:focus-visible, .vsl__media a:focus-visible, .vsl__progress:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.vsl__status:empty { display: none; }
.vsl__status { position: absolute; z-index: 3; inset: 8px 8px auto; padding: 6px; border-radius: 8px; background: rgba(0,0,0,.72); color: var(--paper); font-size: 11px; pointer-events: none; }
.vsl__media:fullscreen { left: 0 !important; top: 0 !important; width: 100% !important; position: fixed; inset: 0; height: 100%; transform: none !important; border-radius: 0; }
.vsl__media:fullscreen .vsl__video { height: 100%; }
html[data-still] .vsl__media,
html[data-no-motion] .vsl__media { position: relative; top: auto; left: auto; transform: none; opacity: 1; visibility: visible; margin: 24px auto 0; }
.vsl__home { visibility: hidden; pointer-events: none; background: none; box-shadow: none; }
.vsl__media.is-floating { position: fixed; transform: none; }
.vsl__media[data-dock-hidden] { visibility: hidden !important; opacity: 0 !important; pointer-events: none; }
.vsl__media.is-compact { border-radius: 14px; }
.vsl__media.is-compact .vsl__offers, .vsl__media.is-compact .vsl__start { display: none; }
.vsl__media.is-compact .vsl__actions { justify-content: space-between; gap: 2px; }
.vsl__media.is-compact .vsl__actions button { padding-inline: 4px; }
.vsl__media.is-compact .vsl__sound { font-size: 10px; }
.vsl__media.is-compact .vsl__time { font-size: 9px; }
.vsl__media.is-expanded { border-radius: 24px; }
html[data-still] .vsl__home, html[data-no-motion] .vsl__home { display: none; }
@media (max-width: 900px) {
  .vsl__media, .vsl__home { width: calc(100% - 24px); border-radius: 16px; }
  .vsl__start { font-size: 11px; }
  .vsl__actions, .vsl__position { gap: 4px; }
}
@media (max-height: 500px) and (min-width: 600px) {
  .vsl__media, .vsl__home { width: min(calc(100% - 24px), calc((100svh - 32px) * 16 / 9)); }
}
