/* The original brand icon, shared by every unbranded video.
   The host already has a definite aspect ratio. Its size container lets the
   overlay follow the visible picture without changing the video or playback. */
.video-badge-host {
  container-type: size;
}

.video-badge-picture {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: auto;
  container-type: inline-size;
  pointer-events: none;
}

/* Match centered object-fit: contain, including letterboxing and pillarboxing.
   Set --video-ratio to the source width / height on this decorative layer.
   Cover videos use the full host instead. */
.video-badge-picture.is-contain {
  width: min(100cqw, calc(100cqh * var(--video-ratio)));
  height: min(100cqh, calc(100cqw / var(--video-ratio)));
}

.video-badge {
  position: absolute;
  top: 3cqw;
  right: 3cqw;
  display: block;
  width: clamp(26px, 6cqw, 44px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 25%;
  box-shadow: 0 2px 6px #00000030;
  pointer-events: none;
  user-select: none;
}
