*{box-sizing:border-box}html,body{margin:0;height:100%;background:#061d18;color:#21483c;font-family:Segoe UI,Arial,sans-serif}.player{height:100%;min-width:0;display:grid;grid-template-rows:minmax(0,1fr) 52px}#stage{position:relative;min-width:0;min-height:0;cursor:pointer;touch-action:manipulation}canvas{width:100%;height:100%;display:block}.hint{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:12px 20px;border:1px solid #b0d9c9;border-radius:30px;background:#0b2923;color:#f0f7f3;font-size:15px;white-space:nowrap;pointer-events:none}[hidden]{display:none!important}.controls{display:flex;min-width:0;align-items:center;gap:10px;padding:0 12px;background:#f7faf5}button{border:0;background:transparent;color:#285c48;font:inherit;cursor:pointer;padding:10px 8px;border-radius:5px;min-height:44px;white-space:nowrap}button:hover{background:#dcebe1}button:focus-visible,input:focus-visible,#stage:focus-visible{outline:2px solid #478f72;outline-offset:-3px}#play{font-weight:600;min-width:54px}#captions{font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:5px}#captions[aria-pressed=false]{text-decoration:none;color:#52665d}#seek{flex:1;min-width:0;width:0;accent-color:#347b62;height:30px}output{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}#replay svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}.subtitles{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 40px);padding:10px 18px;border-radius:8px;background:rgba(3,18,14,.94);color:#f2f7ef;font-size:clamp(18px,1.55vw,23px);font-weight:500;line-height:1.35;text-align:center;white-space:pre-line;pointer-events:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}::selection{background:#cce4df;color:#173e36}
@media(max-width:700px) and (max-aspect-ratio:1/1){.controls{gap:3px;padding:0 5px}button{padding:10px 6px;font-size:12px}#play{min-width:40px}output{font-size:11px}#replay{padding:10px 4px}.subtitles{bottom:18px;max-width:calc(100% - 24px);padding:9px 12px;font-size:17px}.hint{font-size:14px}}
