/* Ролики-уроки на странице упражнения: компактная карточка и окно с видео. */
.lesson-video { margin: 14px 0 4px; }
.lesson-video-open {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 14px 10px 10px;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  background: color-mix(in srgb, currentColor 6%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 18px;
  -webkit-tap-highlight-color: transparent;
}
.lesson-video-open:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.lesson-video-open:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.lesson-video-thumb {
  position: relative; flex: 0 0 auto; width: 54px; height: 96px; border-radius: 10px; overflow: hidden;
  background: #101814 center / cover no-repeat;
  box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent);
}
.lesson-video-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45));
}
.lesson-video-play svg { width: 26px; height: 26px; fill: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.lesson-video-text { display: grid; gap: 4px; min-width: 0; }
.lesson-video-title { font-weight: 650; font-size: 1.02rem; line-height: 1.25; }
.lesson-video-note { font-size: .88rem; line-height: 1.3; opacity: .72; overflow-wrap: anywhere; }

.lesson-video-dialog {
  width: min(430px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); padding: 12px;
  color: #f2f5f3; background: #121a16; border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px;
  overflow: hidden;
}
.lesson-video-dialog[open] { display: flex; flex-direction: column; gap: 10px; }
.lesson-video-dialog::backdrop { background: rgba(4, 8, 6, .78); }
.lesson-video-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lesson-video-heading { margin: 0 4px; font-weight: 650; font-size: 1.05rem; }
.lesson-video-close, .lesson-video-tab {
  font: inherit; color: inherit; cursor: pointer; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.lesson-video-tabs { display: flex; gap: 8px; }
.lesson-video-tab { flex: 1 1 0; text-align: center; }
.lesson-video-tab.is-active { color: #0d1511; background: #5be3a7; border-color: #5be3a7; font-weight: 650; }
.lesson-video-player {
  display: block; width: 100%; min-height: 0; flex: 1 1 auto; max-height: calc(100dvh - 150px);
  aspect-ratio: 9 / 16; object-fit: contain; background: #000; border-radius: 14px;
}
.lesson-video-status { margin: 0 4px; font-size: .9rem; color: #ffb4a8; }
