/* Keep the existing loading/auth placeholder until real metadata arrives. */
.media-video-shell[data-video-fit="ready"] {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: var(--video-fit-ratio);
  line-height: 0;
}
.media-video-shell[data-video-fit="ready"] > video {
  box-sizing: border-box;
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  margin: 0 !important;
  object-fit: contain;
  object-position: center;
}
.video-output-player[data-video-fit="ready"] {
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: var(--video-fit-ratio);
}
.video-output-player[data-video-fit="ready"] > .media-video-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}
.video-output-player[data-video-fit="ready"] > video {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
