/* Videoplayer BB: one fixed video stage; poster and player are stacked in the same 16:9 box. */
.bbv10 {
  --bbv10-accent: #00B3FF;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.bbv10--ratio-21-9 { aspect-ratio: 21 / 9; }
.bbv10--ratio-4-3 { aspect-ratio: 4 / 3; }
.bbv10--ratio-1-1 { aspect-ratio: 1 / 1; }

.bbv10__facade,
.bbv10__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
}

.bbv10__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bbv10__poster--empty { background: #222; }
.bbv10__shade {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.12);
  transition: background .2s ease;
}
.bbv10__facade:hover .bbv10__shade,
.bbv10__facade:focus-visible .bbv10__shade { background: rgba(0,0,0,.28); }
.bbv10__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: var(--bbv10-accent);
  box-shadow: 0 4px 20px rgba(0,0,0,.28);
  display: grid;
  place-items: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.bbv10__facade:hover .bbv10__play,
.bbv10__facade:focus-visible .bbv10__play {
  transform: translate(-50%,-50%) scale(1.06);
  box-shadow: 0 6px 24px rgba(0,0,0,.34);
}
.bbv10__play-icon {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 19px solid #fff;
}
.bbv10__privacy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
.bbv10__status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  text-align: center;
  font-size: 13px;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
}
.bbv10__facade--loaded {
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.bbv10--loading .bbv10__play { opacity: .7; }

/* Video.js 10 owns the visible controls. The YouTube iframe must not render its own controls. */
.bbv10__player video-player,
.bbv10__player video-minimal-skin,
.bbv10__player youtube-video {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.bbv10__player img[slot="poster"] { object-fit: cover; }
.bbv10__facade:focus-visible { outline: 3px solid var(--bbv10-accent); outline-offset: -3px; }
.bbv10--empty { padding: 1rem; border: 1px dashed #bbb; background: #fafafa; }

@media (max-width: 600px) {
  .bbv10__play { width: 64px; height: 64px; }
  .bbv10__play-icon { border-top-width: 11px; border-bottom-width: 11px; border-left-width: 16px; }
}

/* Beaver Builder editor: let BB handle module selection instead of the facade. */
.fl-builder-edit .bbv10__facade { pointer-events: none; }
.fl-builder-edit .bbv10__player { display: none !important; }
.fl-builder-edit .bbv10__facade { opacity: 1 !important; }
