/* Keep the shared player independent of document section/nav/footer layouts. */
.aethera-live-watch{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));z-index:70;color:#f4f1e9;font:500 14px/1.4 system-ui,sans-serif;color-scheme:dark;pointer-events:none}
.aethera-live-watch[hidden],.aethera-live-watch [hidden]{display:none!important}.aethera-live-watch *{box-sizing:border-box}.aethera-live-watch button,.aethera-live-watch a{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:inherit;font:inherit;text-decoration:none;border-radius:9px;cursor:pointer}.aethera-live-watch button{border:1px solid #ffffff24;background:#20262b;padding:8px 12px}.aethera-live-watch a{padding:8px;color:#d4ebaa}.aethera-live-watch :is(button,a):focus-visible{outline:3px solid #b6f26a;outline-offset:3px}.aethera-live-watch svg{height:18px;width:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.live-launcher{display:flex;gap:6px;pointer-events:auto;justify-content:flex-end}.live-launcher [data-watch-toggle]{background:#12181df5;border-color:#ff880080;box-shadow:0 4px 22px #0005}.live-dot{width:7px;height:7px;background:#b6f26a;border-radius:50%;box-shadow:0 0 0 4px #b6f26a16}.live-launcher b{font-size:12px;letter-spacing:.04em}.live-launcher small{color:#b6f26a;font-size:10px;font-weight:800;letter-spacing:.12em}
.live-watch-panel{position:fixed;inset:auto max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) auto;width:444px;max-width:calc(100vw - 24px);margin:0;padding:0;max-height:calc(100dvh - 24px);overflow:auto;pointer-events:auto;border:1px solid #ffffff28;border-radius:14px;background:#10161b;color:#f4f1e9;box-shadow:0 18px 70px #0008}.live-watch-panel::backdrop{background:#03070be6;backdrop-filter:blur(5px)}.aethera-live-watch .live-window{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;grid-column:auto;gap:0;align-items:stretch;min-width:0;min-height:0;max-height:inherit;margin:0;padding:0;border:0;border-radius:0;background:#10161b;box-shadow:none}.live-watch-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid #ffffff17}.live-watch-title{display:grid;gap:2px;min-width:0}.live-watch-title strong{font-size:15px;letter-spacing:-.02em}.live-watch-title small{font-size:10px;letter-spacing:.12em;color:#b6f26a;font-weight:800}.live-watch-toolbar{display:flex;gap:4px;flex-wrap:wrap}.live-watch-toolbar button{padding:7px;background:transparent;border-color:transparent}.live-watch-toolbar button:hover{background:#ffffff12}.live-watch-grid{display:grid;min-width:0;grid-template-columns:minmax(0,1fr);align-content:start}.live-watch-video{min-width:0;min-height:300px;background:#05090c}.live-watch-video .twitch-embed__viewport{min-height:300px;height:100%;width:100%}.live-watch-video iframe{display:block;min-width:400px;min-height:300px;width:100%;height:100%;border:0}.live-watch-chat{min-width:0;min-height:340px;background:#0c1115;border-top:1px solid #ffffff17}.live-watch-chat iframe{display:block;width:100%;height:100%;min-height:340px;border:0}.live-watch-footer{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:space-between;margin:0;padding:8px 12px;border-top:1px solid #ffffff17;font:inherit}.aethera-live-watch .live-watch-footer p{flex:1 1 150px;width:auto;min-width:0;margin:0;color:#aeb8bf;font-size:12px}.live-watch-footer nav{position:static;inset:auto;z-index:auto;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:4px;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none}.aethera-live-watch .live-watch-footer nav>a{display:inline-flex;justify-content:center;width:auto;margin:0;padding:8px;border:0;border-radius:9px;background:none;color:#d4ebaa;font-size:12px;font-weight:inherit;letter-spacing:normal}.aethera-live-watch .live-watch-footer nav>a:first-child::before{content:none}.live-watch-narrow{display:grid;align-content:center;justify-items:center;gap:10px;min-height:180px;text-align:center;padding:24px;background:#121a20}.live-watch-narrow p{max-width:32ch;margin:0;color:#bdc6cd}.live-watch-narrow a{border:1px solid #ff880080;color:#ffb16a;padding:8px 16px}.live-watch-notice{max-width:min(360px,calc(100vw - 24px));padding:14px;pointer-events:auto;background:#12181d;border:1px solid #ffffff28;border-radius:10px}.live-watch-notice a{display:inline-flex}
.live-watch-panel[data-mode="theater"]{inset:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));width:auto;max-width:1600px;max-height:none;margin:auto}.live-watch-panel[data-mode="theater"] .live-window{height:100%;max-height:none}.live-watch-panel[data-mode="theater"] .live-watch-grid{grid-template-columns:minmax(400px,1fr) minmax(280px,340px);overflow:auto;align-content:stretch}.live-watch-panel[data-mode="theater"] .live-watch-video{min-height:300px}.live-watch-panel[data-mode="theater"] .live-watch-chat{border-top:0;border-left:1px solid #ffffff17}.live-window:fullscreen{width:100%;height:100%;max-height:none;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));overflow:auto}.live-window:fullscreen .live-watch-grid{min-height:0}
@media(max-width:800px){.live-watch-panel[data-mode="theater"] .live-watch-grid{grid-template-columns:minmax(0,1fr);align-content:start}.live-watch-panel[data-mode="theater"] .live-watch-video{height:max(300px,45dvh)}.live-watch-panel[data-mode="theater"] .live-watch-chat{min-height:360px;border-left:0;border-top:1px solid #ffffff17}.live-watch-header{flex-wrap:wrap}.live-watch-title{flex:1 1 150px}.live-watch-toolbar{margin-left:auto}.live-watch-panel[data-mode="theater"]{inset:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))}.live-watch-footer nav{width:100%;justify-content:space-between}}
@media(prefers-reduced-motion:reduce){.live-watch-panel::backdrop{backdrop-filter:none}}
.live-watch-panel[data-mode="dock"]:not([hidden]){display:block}
.live-watch-panel[data-mode="theater"]{height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)));max-height:calc(100dvh - 32px)}
.live-watch-panel[data-mode="theater"] .live-window{min-height:0;overflow:auto}
.live-watch-panel[data-mode="theater"][data-chat="false"] .live-watch-grid{grid-template-columns:minmax(0,1fr)}
@media(max-width:800px){.live-watch-panel[data-mode="theater"]{height:calc(100dvh - max(6px,env(safe-area-inset-top)) - max(6px,env(safe-area-inset-bottom)));max-height:calc(100dvh - 12px)}}
.aethera-live-watch{max-width:calc(100vw - max(12px,env(safe-area-inset-left)) - max(12px,env(safe-area-inset-right)))}
.live-launcher{max-width:100%}.live-launcher [data-watch-toggle]{min-width:0;flex:1 1 auto}.live-launcher [data-watch-dismiss]{flex:0 0 44px}.live-launcher b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aethera-live-watch:not([data-live="true"]) .live-launcher{display:none}
