.saiem-project-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background: #1d335b;
}
.saiem-project-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
}

.saiem-native-video {
  overflow: hidden;
  width: 100%;
  margin-bottom: 20px;
  border: 1px solid #fbc96d;
  border-radius: 14px;
  background: #1d335b;
  color: #1d335b;
}
.saiem-native-video__stage { position: relative; aspect-ratio: 16 / 9; background: #101c32; }
body .saiem-native-video .saiem-native-video__stage video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  object-fit: contain;
  cursor: pointer;
}
body .saiem-native-video button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1d335b;
  cursor: pointer;
  font-size: 16px;
}
body .saiem-native-video button:hover { background: #fbc96d; color: #1d335b; }
body .saiem-native-video button:focus-visible,
.saiem-native-video input:focus-visible { outline: 3px solid #ed403b; outline-offset: 2px; }
body .saiem-native-video .saiem-native-video__start {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  background: #ed403b;
  color: #fff;
  box-shadow: 0 4px 18px #101c3240;
  font-size: 23px;
}
body .saiem-native-video .saiem-native-video__start:hover { background: #1d335b; color: #fbc96d; }
.saiem-native-video__controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: #f9efdf;
  color: #1d335b;
}
.saiem-native-video__time { flex-shrink: 0; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
body .saiem-native-video input[type="range"] {
  flex: 1;
  min-width: 32px;
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: #ed403b;
  cursor: pointer;
}
body .saiem-native-video .saiem-native-video__error { margin: 0; padding: 12px 16px; background: #f9efdf; color: #1d335b; font-size: 14px; line-height: 1.5; }
.saiem-native-video__error a { color: inherit; text-decoration: underline; }
.saiem-native-video:fullscreen {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.saiem-native-video:fullscreen .saiem-native-video__stage {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
}
body .saiem-native-video:fullscreen .saiem-native-video__stage video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain;
}
@media (max-width: 700px) {
  .saiem-native-video__controls { flex-wrap: wrap; gap: 4px; }
  body .saiem-native-video input[type="range"] { order: -1; flex-basis: 100%; }
  .saiem-native-video__time { margin-right: auto; }
}

