.oakmont-video-player {
  width: 100%;
  overflow: hidden;
  border: 3px solid #101832;
  border-radius: 18px;
  background: #08080b;
  box-shadow: 0 20px 48px rgba(31, 38, 84, 0.2);
}

.oakmont-video-player video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.video-frame.oakmont-player-host,
.followup-demo-player.oakmont-player-host,
.video-shell.oakmont-player-host {
  display: block !important;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  background: #101832 !important;
}

.video-frame.oakmont-player-host .oakmont-video-player,
.followup-demo-player.oakmont-player-host .oakmont-video-player,
.video-shell.oakmont-player-host .oakmont-video-player {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.video-frame.oakmont-player-host .oakmont-video-player video,
.followup-demo-player.oakmont-player-host .oakmont-video-player video,
.video-shell.oakmont-player-host .oakmont-video-player video {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: contain !important;
}

.oakmont-video-controls {
  position: relative;
  display: grid;
  grid-template-columns: auto auto auto minmax(90px, 1fr) auto auto 82px auto;
  align-items: center;
  gap: 8px;
  padding: 11px 11px 9px;
  color: #fff;
  background: linear-gradient(110deg, #101832 0%, #151a35 55%, #21163b 100%);
}

.oakmont-video-controls::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #0b55ff, #7c35ed, #0b55ff);
}

.oakmont-video-button {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  font: 900 14px/1 Inter, Arial, sans-serif;
  cursor: pointer;
}

.oakmont-video-button:hover,
.oakmont-video-button:focus-visible {
  border-color: rgba(125, 76, 244, 0.48);
  background: linear-gradient(135deg, rgba(11, 85, 255, 0.3), rgba(124, 53, 237, 0.3));
  outline: none;
}

.oakmont-video-button:first-child,
.oakmont-video-button:last-child {
  border-color: rgba(91, 92, 248, 0.38);
  background: linear-gradient(135deg, #0b55ff, #7c35ed);
  box-shadow: 0 6px 16px rgba(60, 65, 220, 0.22);
}

.oakmont-video-progress,
.oakmont-video-volume {
  min-width: 0;
  margin: 0;
  accent-color: #7c35ed;
  cursor: pointer;
}

.oakmont-video-time {
  min-width: 72px;
  color: #e6e8f3;
  font: 800 10px/1 Inter, Arial, sans-serif;
  text-align: center;
}

.oakmont-video-volume { width: 82px; }

/* Keep the entire custom player, including its controls, visible in fullscreen. */
.oakmont-video-player:fullscreen {
  display: flex;
  width: 100vw;
  height: 100vh;
  max-width: none;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: #000;
}

.oakmont-video-player:fullscreen video {
  width: 100% !important;
  height: 0 !important;
  min-height: 0 !important;
  flex: 1 1 auto;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

.oakmont-video-player:fullscreen .oakmont-video-controls {
  flex: 0 0 auto;
}

@media (max-width: 600px) {
  .oakmont-video-controls {
    grid-template-columns: auto auto auto minmax(64px, 1fr) auto auto;
    gap: 5px;
    padding: 9px 7px 7px;
  }
  .oakmont-video-volume { display: none; }
  .oakmont-video-skip { display: none; }
  .oakmont-video-button { min-width: 29px; height: 29px; }
  .oakmont-video-time { min-width: 62px; font-size: 9px; }
}
