:root{color-scheme:dark;font-family:system-ui,sans-serif;background:#101828;color:#edf2f7}body{margin:0}nav{display:flex;gap:1rem;align-items:center;padding:1rem 5%;background:#07111f;flex-wrap:wrap}nav a{color:#c9e2ff;text-decoration:none}nav form{margin-left:auto}button,.button{background:#1769aa;color:white;border:0;border-radius:.35rem;padding:.55rem .8rem;text-decoration:none}main{max-width:1100px;margin:2rem auto;padding:0 1rem}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.card{padding:1rem;background:#172235;border-radius:.6rem;overflow-wrap:anywhere}.card pre,.card p{white-space:pre-wrap;overflow-wrap:anywhere}.login{max-width:360px;margin:auto}#video-shell{position:relative;background:#02070e}#video-shell video{display:block;width:100%;max-height:65vh;background:#02070e}video::-webkit-media-controls-fullscreen-button{display:none}video::cue{color:#fff;background:rgba(0,0,0,.78);font-size:var(--caption-font-size,22px)}#fs-surface,#fs-toolbar,#fs-caption{display:none}.controls{display:flex;gap:.7rem;flex-wrap:wrap;padding:1rem 0}#caption{min-height:4rem;padding:1rem;background:#07111f;text-align:center;white-space:pre-line}#caption button{background:none;color:#fff;padding:.1rem;border-bottom:1px dashed #9dc9ff;font:inherit;line-height:inherit}#dictionary{margin-top:.5rem;padding:.75rem;background:#172235;border-radius:.45rem}#cue-list{max-height:25vh;overflow:auto}#video-shell:fullscreen,#video-shell.immersive{overflow:hidden;position:fixed;inset:0;z-index:100;width:100vw;height:100dvh;background:#000}#video-shell:fullscreen video,#video-shell.immersive video{width:100%;height:100%;max-height:none;object-fit:contain}#video-shell:fullscreen #fs-surface,#video-shell.immersive #fs-surface{display:block;position:absolute;inset:0;z-index:1;touch-action:none}#video-shell:fullscreen #fs-toolbar,#video-shell.immersive #fs-toolbar{display:none;position:absolute;z-index:2;left:max(.5rem,env(safe-area-inset-left));right:max(.5rem,env(safe-area-inset-right));bottom:max(.5rem,env(safe-area-inset-bottom));gap:.35rem;flex-wrap:wrap;align-items:center;padding:.45rem;background:rgba(7,17,31,.9);border-radius:.4rem;max-width:calc(100% - 1rem);box-sizing:border-box}#video-shell:fullscreen #fs-toolbar.shown,#video-shell.immersive #fs-toolbar.shown{display:flex}#video-shell.locked #fs-toolbar{display:flex!important;left:auto;right:.5rem;padding:.25rem}#video-shell.locked #fs-toolbar>*{display:none}#video-shell.locked #fs-toolbar #fs-lock{display:block}body.fullscreen-fallback{overflow:hidden}@media(max-width:600px){main{margin:1rem auto}nav{gap:.5rem;font-size:.9rem}.controls label{width:45%}#fs-seek{width:8rem}#fs-font{width:5rem}#video-shell:fullscreen #fs-toolbar,#video-shell.immersive #fs-toolbar{font-size:.85rem}}
#fs-stage{position:relative;width:100%}#video-shell:fullscreen #fs-stage,#video-shell.immersive #fs-stage{position:absolute;inset:0;width:100%;height:100%}#video-shell:fullscreen #fs-caption,#video-shell.immersive #fs-caption{display:block;position:absolute;z-index:3;pointer-events:none;left:max(.75rem,env(safe-area-inset-left));right:max(.75rem,env(safe-area-inset-right));bottom:max(.75rem,env(safe-area-inset-bottom));padding:.25rem .5rem;color:#fff;background:rgba(0,0,0,.78);text-align:center;white-space:pre-line;border-radius:.25rem}#video-shell:fullscreen #fs-caption[hidden],#video-shell.immersive #fs-caption[hidden]{display:none!important}#video-shell.paused #fs-caption,#video-shell:not(.locked) #fs-toolbar.shown~#fs-caption{top:max(.75rem,env(safe-area-inset-top));bottom:auto}@media (orientation:portrait){#video-shell:fullscreen #fs-stage,#video-shell.immersive #fs-stage{inset:auto;left:50%;top:50%;width:100vh;height:100vw;transform:translate(-50%,-50%) rotate(90deg);transform-origin:center}@supports(height:100dvh){#video-shell:fullscreen #fs-stage,#video-shell.immersive #fs-stage{width:100dvh;height:100dvw}}#video-shell:fullscreen #fs-toolbar,#video-shell.immersive #fs-toolbar{left:max(.5rem,env(safe-area-inset-top));right:max(.5rem,env(safe-area-inset-bottom));bottom:max(.5rem,env(safe-area-inset-left))}#video-shell.locked #fs-toolbar{left:auto;right:max(.5rem,env(safe-area-inset-bottom))}#video-shell:fullscreen #fs-caption,#video-shell.immersive #fs-caption{left:max(.75rem,env(safe-area-inset-top));right:max(.75rem,env(safe-area-inset-bottom));bottom:max(.75rem,env(safe-area-inset-left))}#video-shell.paused #fs-caption,#video-shell:not(.locked) #fs-toolbar.shown~#fs-caption{top:max(.75rem,env(safe-area-inset-right));bottom:auto}}
