/* Only site-owned UI. Never mask, crop, cover, or restyle YouTube disclosures. */
.vt-main .vt-lesson > .vt-player-panel {
  min-width: 0;
  width: 100%;
  max-width: 390px;
  justify-self: center;
}
.vt-player-actions,
.vt-player-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vt-player-actions { margin-bottom: 10px; flex-wrap: wrap; }
.vt-player-actions > :is(button, a),
.vt-player-modal-actions > :is(button, a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #dce0e6;
  border-radius: 10px;
  background: #fff;
  color: #20232b;
  font: 700 13px/1.35 Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.vt-player-actions > button { background: #af1767; border-color: #af1767; color: #fff; }
.vt-player-actions > :focus-visible,
.vt-player-modal-actions > :focus-visible { outline: 3px solid #af1767; outline-offset: 3px; }
.vt-main .vt-lesson > .vt-player-panel > iframe.vt-youtube {
  display: block;
  width: min(100%, 303.75px, 39.375vh);
  width: min(100%, 303.75px, 39.375svh);
  height: auto;
  aspect-ratio: 9 / 16;
  max-height: min(70vh, 540px);
  max-height: min(70svh, 540px);
  border: 0;
  border-radius: 18px;
  background: #111;
  margin: 0 auto;
}
.vt-player-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  color: #fff;
  background: #08090c;
  overflow: hidden;
}
.vt-player-dialog::backdrop { background: #08090c; }
.vt-player-surface {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: #08090c;
}
.vt-player-surface:fullscreen { width: 100%; height: 100%; }
.vt-player-surface:-webkit-full-screen { width: 100%; height: 100%; }
.vt-player-modal-actions { flex: 0 0 auto; }
.vt-player-modal-actions > :is(button, a) { background: #20232b; border-color: #515967; color: #fff; }
.vt-player-modal-actions > :focus-visible { outline-color: #f39bc8; }
.vt-player-canvas {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  align-items: center;
  justify-content: center;
}
.vt-player-dialog .vt-player-canvas > iframe.vt-youtube {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #000;
}
@media (max-width: 700px) {
  .vt-player-actions { justify-content: center; }
  .vt-player-actions > :is(button, a) { flex: 1; }
}
