.rdc-player { max-width: 100%; }
.rdc-player [hidden] { display: none !important; }
.rdc-card, .rdc-screen { position: relative; aspect-ratio: 16 / 9; min-height: 200px; background: #172332; }
.rdc-card { display: grid; align-items: center; overflow: hidden; }
.rdc-card img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rdc-card img { object-fit: cover; }
.rdc-actions { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: clamp(1rem, 4%, 2rem); text-shadow: 0 1px 4px #000; color: white; }
.rdc-actions strong { font-size: 1.25em; overflow-wrap: anywhere; }
.rdc-actions button { border-radius: .4rem; border: 1px solid white; background: white; color: #172332; font: inherit; cursor: pointer; padding: .5em 1em; }
.rdc-actions button:focus-visible { outline: 3px solid #49cfff; outline-offset: 3px; }
.rdc-player .rdc-status:empty { margin: 0; }

.rdc-player { --plyr-color-main: #146c83; }
.rdc-screen .plyr { width: 100%; }

/* Keep the visible lesson at 16:9 and center the taller YouTube viewport. */
.rdc-screen .plyr--youtube .plyr__video-wrapper { overflow: hidden; }
.rdc-screen .plyr--youtube .plyr__video-wrapper iframe {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 200%;
  max-height: none;
}
