/* LinguaPro teacher media: hover preview layer, play badge, gallery chip, player/lightbox (see media.js). */
[data-lpm-hover]{position:relative}
.lpm-hover-layer{position:absolute;inset:0;z-index:2;overflow:hidden;border-radius:inherit;background:#04142b;opacity:0;transition:opacity .25s ease;pointer-events:none}
.lpm-hover-layer.is-playing{opacity:1}
.lpm-hover-layer video,.lpm-hover-layer iframe{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:cover}
.lpm-hover-layer iframe{width:auto;height:100%;aspect-ratio:16/9;left:50%;right:auto;transform:translateX(-50%);pointer-events:none}
[data-lpm-hover].is-previewing{cursor:pointer}

.lpm-play{position:absolute;z-index:3;right:12px;bottom:12px;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#fff;color:#0a8fd8;box-shadow:0 6px 18px #04234a40;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.lpm-play svg{width:20px;height:20px;margin-left:3px;fill:currentColor}
.lpm-play:hover{transform:scale(1.07);box-shadow:0 8px 22px #04234a59}
.lpm-play:focus-visible{outline:3px solid #00a9cf;outline-offset:3px}
.lpm-play--lg{width:62px;height:62px;right:18px;bottom:18px}
.lpm-play--lg svg{width:26px;height:26px}
[data-lpm-hover].is-previewing .lpm-play{opacity:0;pointer-events:none}
.lpm-chip{position:absolute;z-index:3;left:8px;bottom:8px;display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:40px;background:#071b49cc;color:#fff;font-size:11.5px;font-weight:700;line-height:1.3;backdrop-filter:blur(4px);pointer-events:none}
.lpm-chip svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

html.lpm-lock,html.lpm-lock body{overflow:hidden}
.lpm-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:16px}
.lpm-modal[hidden]{display:none}
.lpm-modal__backdrop{position:absolute;inset:0;background:#020b1ae6;opacity:0;transition:opacity .2s ease}
.lpm-modal.is-open .lpm-modal__backdrop{opacity:1}
.lpm-modal__dialog{position:relative;display:flex;flex-direction:column;align-items:center;width:min(1100px,100%);max-height:100%;opacity:0;transform:scale(.97);transition:opacity .2s ease,transform .2s ease}
.lpm-modal.is-open .lpm-modal__dialog{opacity:1;transform:none}
.lpm-modal__bar{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;color:#fff}
.lpm-modal__count{font-size:14px;font-weight:700;letter-spacing:.3px;opacity:.85}
.lpm-modal__close{width:44px;height:44px;border:0;border-radius:50%;background:#ffffff1f;color:#fff;cursor:pointer;display:grid;place-items:center}
.lpm-modal__close:hover{background:#ffffff38}
.lpm-modal__close svg,.lpm-modal__nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.lpm-modal__stage{position:relative;display:flex;align-items:center;justify-content:center;width:100%;touch-action:pan-y}
.lpm-modal__stage img{display:block;max-width:100%;max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);border-radius:14px;object-fit:contain;user-select:none;-webkit-user-drag:none}
.lpm-modal__stage--video video,.lpm-modal__stage--video iframe{display:block;width:100%;max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);border:0;border-radius:14px;background:#000}
.lpm-modal__stage--video iframe{aspect-ratio:16/9;height:auto}
.lpm-modal__caption{margin:12px 0 0;max-width:760px;color:#e8f3ff;font-size:15px;line-height:1.5;text-align:center}
.lpm-modal__caption[hidden]{display:none}
.lpm-modal__nav{position:absolute;top:50%;width:48px;height:48px;margin-top:-24px;border:0;border-radius:50%;background:#ffffffe6;color:#071b49;cursor:pointer;display:grid;place-items:center;box-shadow:0 6px 18px #0006}
.lpm-modal__nav[hidden]{display:none}
.lpm-modal__nav--prev{left:-64px}
.lpm-modal__nav--next{right:-64px}
.lpm-modal button:focus-visible{outline:3px solid #4fd8f5;outline-offset:3px}
@media(max-width:1240px){.lpm-modal__nav--prev{left:8px}.lpm-modal__nav--next{right:8px}}
@media(max-width:600px){.lpm-modal{padding:10px}.lpm-modal__nav{width:40px;height:40px;margin-top:-20px}.lpm-modal__caption{font-size:14px}.lpm-play--lg{width:52px;height:52px;right:12px;bottom:12px}}
@media(prefers-reduced-motion:reduce){.lpm-modal__backdrop,.lpm-modal__dialog,.lpm-hover-layer,.lpm-play{transition:none}}
