.lms-videos { margin: 0 0 40px; scroll-margin-top: 100px; min-width: 0; }
.lms-videos__head { display: flex; gap: 20px; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.lms-videos__controls { display: flex; gap: 8px; flex-shrink: 0; }
.lms-videos__controls[hidden] { display: none; }
.lms-videos__controls button { width: 44px; height: 44px; border: 1px solid var(--g-line-2); border-radius: 50%; background: white; color: var(--g-ink); font-size: 22px; cursor: pointer; }
.lms-videos__controls button:disabled { opacity: .35; cursor: default; }
.lms-videos__rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(350px, 82vw); gap: 22px; justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 3px 3px 16px; scrollbar-width: thin; scrollbar-color: #a2ac97 #edf1e8; overscroll-behavior-x: contain; }
.lms-video-card { min-width: 0; scroll-snap-align: start; }
.lms-video-card__cover { display: block; position: relative; overflow: hidden; aspect-ratio: 16/9; border-radius: 14px; background: var(--g-dark); }
.g-page .lms-video-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lms-video-card__play { position: absolute; inset: 0; display: grid; place-items: center; background: #0b0f0c20; }
.lms-video-card__play svg { width: 58px; height: 58px; padding: 17px; border-radius: 50%; background: var(--g-accent); color: var(--g-dark); box-shadow: 0 4px 20px #0003; }
.lms-video-card__cover:hover .lms-video-card__play svg { background: var(--g-lime); }
.lms-video-card__duration { position: absolute; bottom: 10px; right: 10px; padding: 2px 6px; border-radius: 4px; font-size: 13px; font-weight: 700; color: white; background: #0b0f0ceb; }
.g-prose .lms-video-card h3 { margin: 13px 0 7px; font-size: 19px; line-height: 1.35; }
.g-prose .lms-video-card h3 a { color: var(--g-ink); }
.g-prose .lms-video-card p { margin: 0 0 8px; color: var(--g-ink-2); font-size: 14px; line-height: 1.6; }
.lms-video-card__meta { color: var(--g-dim); font-size: 12px; }
.lms-video-watch { padding-top: 30px; padding-bottom: 48px; }
.lms-video-watch h1 { max-width: 960px; font-size: clamp(28px, 4vw, 42px); line-height: 1.18; margin: 12px 0 18px; }
.lms-video-watch .lms-video-watch__lead { max-width: 900px; color: var(--g-ink-2); margin-bottom: 16px; }
.lms-video-watch video { display: block; width: 100%; aspect-ratio: 16/9; height: auto; background: #102b46; border-radius: 16px; scroll-margin-top: 100px; }
/* Existing MGU/Vygotsky play-overlay pattern, scoped to this page's palette. */
.lms-video-watch .video-frame { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 16px; background: #000; border: 1px solid var(--g-line-2); scroll-margin-top: 100px; }
.lms-video-watch .video-player { width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; }
.lms-video-watch .video-overlay-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; height: 100%; padding: 16px; border: 0; cursor: pointer; font-family: inherit; color: var(--g-accent); background: radial-gradient(ellipse at center, #0b0f0c59 0%, #0b0f0cbf 100%); transition: opacity .25s ease, visibility .25s ease; }
.lms-video-watch .video-overlay-play[hidden] { display: none; }
.lms-video-watch .vop-circle { width: clamp(64px, 12vw, 104px); height: clamp(64px, 12vw, 104px); display: block; filter: drop-shadow(0 10px 30px #0008); transition: transform .2s ease; }
.lms-video-watch .vop-circle svg { width: 100%; height: 100%; display: block; }
.lms-video-watch .vop-label { font-size: clamp(13px, 1.4vw, 17px); font-weight: 600; color: #fff; padding: 8px 16px; border-radius: 999px; background: #0b0f0cbf; border: 1px solid #ffffff24; }
.lms-video-watch .video-overlay-play:hover .vop-circle, .lms-video-watch .video-overlay-play:focus-visible .vop-circle { transform: scale(1.08); }
.lms-video-watch .video-overlay-play:focus-visible { outline: 3px solid var(--g-accent); outline-offset: -3px; }
.lms-video-watch .video-frame.is-playing .video-overlay-play { opacity: 0; visibility: hidden; pointer-events: none; }
.lms-video-watch .video-error[hidden] { display: none; }
.lms-video-watch .video-error { color: #8a2c22; }
.lms-video-watch .lms-video-watch__summary h2 { font-size: clamp(20px, 2.4vw, 27px); line-height: 1.25; margin: 0 0 12px; }
.lms-video-watch .lms-video-watch__summary p { font-size: 15px; line-height: 1.6; margin: 10px 0; }
.lms-video-watch__meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0 18px; font-size: 14px; color: var(--g-dim); }
.lms-video-watch .lms-video-watch__note { color: var(--g-dim); font-size: 13px; line-height: 1.6; margin: 14px 0 28px; }
.lms-video-watch__layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.lms-video-watch > .g-prose { max-width: none; }
.g-page .lms-video-watch__chapters { padding: 0; list-style: none; margin: 0; }
.lms-video-watch__chapters li { margin: 0; border-bottom: 1px solid var(--g-line); }
.lms-video-watch__chapters a { display: flex; gap: 15px; padding: 12px 0; }
.lms-video-watch__chapters time { font-variant-numeric: tabular-nums; flex: 0 0 40px; }
.lms-video-watch__steps { padding-left: 22px; }
.lms-video-watch__steps li { padding-left: 7px; margin: 0 0 16px; }
.lms-video-watch__steps p { margin: 5px 0 0; }
.lms-video-watch__summary { border-left: 4px solid var(--g-accent); padding-left: 20px; margin: 28px 0; }
.lms-videos a:focus-visible, .lms-videos button:focus-visible, .lms-video-watch a:focus-visible, .lms-video-watch video:focus-visible { outline: 3px solid var(--g-accent-ink); outline-offset: 4px; }
.lms-video-watch__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 640px) {
  .g-prose > .lms-videos { padding: 8px 18px 0; }
  .lms-videos__head { align-items: start; }
  .lms-videos__rail { grid-auto-columns: min(320px, 78vw); gap: 16px; }
  .lms-video-watch__layout { grid-template-columns: 1fr; }
  .lms-video-watch video { border-radius: 10px; }
  .lms-video-watch .video-frame { border-radius: 10px; }
  .lms-video-watch .video-player { border-radius: 0; }
  .lms-video-watch .video-overlay-play { gap: 10px; }
  .lms-video-watch .vop-circle { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .lms-video-watch .video-overlay-play, .lms-video-watch .vop-circle { transition: none; }
}
