/* Video.js is progressively added around the original video; native controls remain a fallback. */
.player[data-enhanced] > .player-tools, .player[data-enhanced] > .seek-feedback { display: none; }
.lesson-video-skin { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 52dvh; color-scheme: dark; --media-accent-color: #d6ad62; --media-accent-text-color: #032f2a; --media-border-radius: 6px; --media-border-color: #bd8c3644; --media-font-family: Noto, Arial, sans-serif; --media-object-fit: contain; }
.player[data-enhanced] video { height: 100%; max-height: none; width: 100%; object-fit: contain; }
.lesson-video-navigation { position: absolute; inset: 0 165px auto 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; direction: rtl; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s; }
.lesson-video-navigation[data-visible] { opacity: 1; visibility: visible; }
.lesson-chapter-navigation, .lesson-seek-buttons { display: flex; align-items: center; gap: 6px; min-width: 0; pointer-events: auto; }
.lesson-chapter-navigation { flex: 1; }
.lesson-video-navigation button, .lesson-video-navigation media-seek-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; min-width: 40px; padding: 6px 10px; border: 1px solid #d6ad6255; border-radius: 5px; color: #fff9e9; background: #032f2ad9; font: 12px/1.7 Noto, Arial, sans-serif; cursor: pointer; user-select: none; }
.lesson-video-navigation button:hover, .lesson-video-navigation media-seek-button:hover { background: #1a5e50; }
.lesson-video-navigation button:disabled { opacity: .35; cursor: default; }
.lesson-video-navigation #chapters-toggle { min-width: 0; justify-content: flex-start; }
.chapter-current-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-seek-buttons { direction: ltr; flex-shrink: 0; }
.player[data-enhanced] #video-index { position: fixed; max-height: min(80dvh, 600px); color-scheme: light; }
.player[data-enhanced] #player-chapters { position: static; max-height: min(60dvh, 460px); width: auto; }
.player[data-enhanced] #video-index .index-header { position: sticky; top: 0; background: var(--paper); z-index: 1; }
@media (max-width: 650px) {
  .lesson-video-skin { --media-border-radius: 0; max-height: 48dvh; }
  .lesson-video-navigation { right: 140px; padding: 7px; gap: 7px; }
  .lesson-video-navigation button, .lesson-video-navigation media-seek-button { min-height: 34px; min-width: 32px; padding: 4px 6px; font-size: 10px; }
  .lesson-chapter-navigation { gap: 3px; }
  .lesson-seek-buttons { display: none; }
  .lesson-video-navigation .chapter-current-label { max-width: 180px; }
}
@media (prefers-reduced-motion: reduce) { .lesson-video-navigation { transition: none; } }
/* Native cues otherwise become too small in the compact mobile player. */
.lesson-video-skin video::cue { font-family: Arial, sans-serif; font-size: clamp(13px, 1.7vw, 26px); line-height: 1.4; background-color: #10231fdb; color: #fff; }
.lesson-audio-language { position: absolute; top: 64px; right: 12px; z-index: 3; opacity: 0; visibility: hidden; pointer-events: none; font: 12px/1.6 Noto, Arial, sans-serif; direction: rtl; }
.lesson-audio-language[data-visible] { opacity: 1; visibility: visible; pointer-events: auto; }
.lesson-audio-language label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 5px; color: #fff9e9; background: #032f2ae8; }
.lesson-audio-language select { max-width: 135px; min-height: 32px; color: #fff9e9; background: #032f2a; border: 1px solid #d6ad6266; border-radius: 4px; font: inherit; }
.audio-language-status { display: block; max-width: 220px; color: #fff; background: #032f2ae8; border-radius: 4px; }
.audio-language-status:empty { display: none; }
@media (max-width: 650px) { .lesson-audio-language { top: 48px; right: 7px; font-size: 10px; } }
