/* Edu Shorts: full-screen reel feed; site header/footer stay in the page underneath */
body.edu-shorts{overflow:hidden}
body.edu-shorts main{padding:0;margin:0;background:#0A1A33}
.back{position:fixed;z-index:210;top:calc(12px + env(safe-area-inset-top,0px));left:12px;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#0A1A33aa;border:1px solid #ffffff55;color:#fff;text-decoration:none;font-size:22px;line-height:1;backdrop-filter:blur(8px)}
.feed{position:fixed;inset:0;z-index:200;height:100vh;height:100dvh;overflow:hidden;touch-action:none;overscroll-behavior:none;scrollbar-width:none;background:#0A1A33;color:#f4efe6}
.feed::-webkit-scrollbar{display:none}
.reel{position:relative;height:100%;height:var(--rh,100%);scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden}
.reel .bg{position:absolute;inset:-20px;background-size:cover;background-position:center;filter:blur(28px) brightness(.45);transform:scale(1.1)}
.reel{--sw:min(100vw,calc((100dvh - 290px) * 16 / 9));--sh:calc(var(--sw) * 9 / 16)}
.reel .stage{position:relative;width:var(--sw);aspect-ratio:16/9;background:#000;box-shadow:0 10px 40px #0008}
.reel video{width:100%;height:100%;display:block;object-fit:cover}
.reel .pause{position:absolute;inset:0;display:none;align-items:center;justify-content:center;font-size:56px;color:#fff;background:#0004;pointer-events:none}
.reel .stage.paused .pause{display:flex}
.reel .meta{position:absolute;left:0;right:0;top:calc(50% + var(--sh) / 2 + 14px);margin:0 auto;width:100%;max-width:640px;padding:0 20px;text-align:center}
.reel .act{margin:0 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:#b9c3d6}
.reel .topic{margin:0;font-size:17px;line-height:1.4;font-weight:600;color:#fff}
.reel .share{display:block;margin:16px auto 0;padding:11px 22px;border:1px solid #ffffff55;border-radius:999px;background:#ffffff1f;color:#fff;font:600 14px inherit;font-family:inherit;cursor:pointer}
.reel .share:active{background:#ffffff40}
.toast{position:fixed;left:50%;bottom:80px;transform:translateX(-50%);padding:10px 16px;border-radius:999px;background:#f4efe6;color:#111;font-size:14px;font-weight:600;opacity:0;pointer-events:none;transition:opacity .2s;z-index:300}
.toast.on{opacity:1}
@media (min-width:700px){.reel .meta{max-width:min(100vw,calc((100dvh - 290px) * 16 / 9))}}
/* laptop / wide window: the video fills the screen height, caption sits on it */
@media (min-width:700px) and (orientation:landscape){
.reel{--sw:min(100vw,calc(100dvh * 16 / 9))}
.reel .stage{box-shadow:none}
.reel .meta{top:auto;bottom:0;max-width:var(--sw);padding:80px 28px 22px;background:linear-gradient(transparent,#000c);text-align:left;display:flex;flex-wrap:wrap;align-items:flex-end;gap:0 16px}
.reel .act,.reel .topic{flex:1 0 100%}
.reel .share{margin:12px 0 0}
}
/* phone turned sideways: the video fills the whole screen */
@media (orientation:landscape) and (max-height:600px){
.reel .stage{width:min(100vw,calc(100dvh * 16 / 9));height:auto;aspect-ratio:16/9;box-shadow:none}
.reel video{object-fit:cover}
.reel .meta,.reel .share,.back{display:none}
}
.fsbtn{position:fixed;z-index:210;top:calc(12px + env(safe-area-inset-top,0px));right:12px;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#0A1A33aa;border:1px solid #ffffff55;color:#fff;font-size:20px;line-height:1;cursor:pointer;backdrop-filter:blur(8px)}
@media (orientation:landscape) and (max-height:600px){.fsbtn{display:none}}
/* true full screen (laptop or phone): the video takes the whole screen; Esc or the icon exits */
html.is-fs .reel{--sw:min(100vw,calc(100dvh * 16 / 9))}
html.is-fs .reel .meta,html.is-fs .back{display:none}
html.is-fs .fsbtn{opacity:.55}
