/* The authored clip owns the motion; these rules only place transparent media. */
.ms-scene.ms-video .ms-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}

.ms-scene.ms-video .ms-stage > .ms-static,
.ms-scene.ms-video .ms-stage > .ms-video-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  pointer-events: none;
  transform: none;
  animation: none;
  transition: none;
}

/* A decoded frame is never painted until its real transparency is checked. */
.ms-scene.ms-video .ms-video-media {
  visibility: hidden;
}
.ms-scene.ms-video[data-video-visible="true"] .ms-video-media {
  visibility: visible;
}
.ms-scene.ms-video .ms-stage > [hidden],
.ms-scene.ms-video [data-scene-pause][hidden] {
  display: none !important;
}

.ms-scene.ms-video .ms-controls [data-scene-pause] {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
}
.ms-scene.ms-video [data-scene-pause] svg {
  display: block;
  width: 16px;
  height: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .ms-scene.ms-video .ms-stage > .ms-video-media {
    display: none !important;
  }
  .ms-scene.ms-video .ms-stage > .ms-static {
    display: block !important;
    visibility: visible !important;
  }
}
