:root{color-scheme:dark;font-family:Inter,Segoe UI,system-ui,sans-serif;color:#f4ffe9;background:#040904;--green:#65ff1b;--muted:#a8b6a3}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.22) 44%,#040904 94%),url('/background.png') center top/max(100%,1100px) auto no-repeat}a{color:inherit;text-decoration:none}a:focus-visible{outline:3px solid var(--green);outline-offset:5px}header{display:flex;justify-content:space-between;align-items:center;padding:24px 4%;gap:20px;background:linear-gradient(#000b,transparent)}.wordmark{font-weight:900;letter-spacing:-.8px;font-size:19px}.wordmark span{color:var(--green)}.ims{padding:10px 16px;border:1px solid #ffffff38;border-radius:8px;font-size:12px;background:#071007c9}.brand-space{height:clamp(225px,32vw,490px)}main{max-width:1520px;padding:0 4%;margin:auto}.broadcast-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px}.panel{border:1px solid #8eff343c;background:#071007ed;border-radius:15px;overflow:hidden;box-shadow:0 22px 70px #000a;min-width:0}.panel-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:17px 20px;border-bottom:1px solid #ffffff12;letter-spacing:1.7px;font-size:10px;font-weight:800}.badge{color:#a8b6a3;font-size:10px;letter-spacing:.8px;border:1px solid #ffffff25;border-radius:20px;padding:6px 9px}.badge.live{color:var(--green);border-color:#65ff1b70}.stream{aspect-ratio:16/9;display:grid;place-items:center;background:radial-gradient(ellipse at center,#142a0b99,#030603);min-height:290px}.offline{padding:26px;text-align:center;max-width:470px;margin:auto}.offline h2{font-size:clamp(20px,2.1vw,30px);letter-spacing:-.8px;margin:18px 0 10px}.offline p{color:var(--muted);font-size:14px;line-height:1.6}.play-icon,.chat-icon{font-size:37px;color:var(--green);display:block}.primary{display:inline-block;background:var(--green);color:#091202;font-size:12px;font-weight:800;padding:14px 22px;border-radius:8px;margin-top:16px}.stream-footer{padding:15px 20px;display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted)}.stream-footer>span:first-child{color:#e0edda}.community{display:flex;flex-direction:column}.chat{flex:1;min-height:330px;display:grid;place-items:center}.chat .offline h2{font-size:19px;line-height:1.35}.chat .offline p{font-size:12px}.stream iframe,.chat iframe{width:100%;height:100%;border:0;display:block}.stream:has(iframe),.chat:has(iframe){display:block}footer{max-width:1520px;margin:30px auto;padding:0 4% 24px;display:flex;justify-content:space-between;color:#b4c6a4;font-size:10px;letter-spacing:1px}footer span{color:#72806d;letter-spacing:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:900px){.broadcast-layout{grid-template-columns:1fr}.community{min-height:360px}.brand-space{height:285px}.chat{min-height:290px}}@media(max-width:500px){header{padding:20px 5%}.wordmark{font-size:15px}.ims{padding:9px;font-size:10px}.brand-space{height:250px}main{padding:0 4%}.stream-footer{flex-direction:column}.stream{min-height:300px}.panel-heading{padding:14px}.offline{padding:22px}}



/* The broadcast fits the viewport; only the embedded chat scrolls its messages. */

html,body{height:100%;overflow:hidden}

body{height:100vh;height:100dvh;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#040904;isolation:isolate}

body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(#0002,#0007),url('/background.png') center center/cover no-repeat}

header{padding:16px 4%}

.brand-space{height:0}

main{width:100%;max-width:1520px;margin:0 auto;min-height:0;padding:0 4%}

.broadcast-layout{height:100%;min-height:0;grid-template-columns:minmax(0,1fr) minmax(250px,340px)}

.panel{min-height:0}

.broadcast{display:flex;flex-direction:column}

.stream{flex:1;aspect-ratio:auto;min-height:0;overflow:auto}

.chat{min-height:0;overflow:auto}

.community{min-height:0}

.panel-heading,.stream-footer{flex-shrink:0}

footer{width:100%;margin:0 auto;padding:12px 4%;flex-shrink:0}

@media(max-width:900px){.broadcast-layout{grid-template-columns:minmax(0,1fr) minmax(220px,30%);gap:12px}.offline{padding:14px}.offline h2{font-size:23px}}

@media(max-width:600px){header{padding:12px 4%}.broadcast-layout{grid-template-columns:1fr;grid-template-rows:minmax(0,1.4fr) minmax(0,1fr);gap:10px}.panel-heading{padding:9px 12px}.stream-footer{padding:8px 12px;flex-direction:row;font-size:9px}.offline{padding:10px}.offline h2,.chat .offline h2{font-size:18px;margin:8px 0}.offline p{font-size:12px;margin:6px 0}.play-icon,.chat-icon{font-size:25px}.primary{padding:10px 15px;margin-top:8px}footer{padding:9px 4%;font-size:9px}}

@media(max-height:500px){header{padding:8px 4%}.panel-heading{padding:8px 12px}.play-icon,.chat-icon{display:none}.offline h2{margin:6px 0}.offline p{margin:4px 0}.primary{margin-top:6px;padding:9px 14px}footer{padding:6px 4%}.stream-footer{padding:7px 12px}}

.live-video{width:100%;height:100%;min-height:0;object-fit:contain;background:#000}.stream:has(.live-video){display:block;overflow:hidden}

.live-player{position:relative;width:100%;height:100%;background:#000}.live-controls{position:absolute;bottom:12px;right:12px;display:flex;gap:8px}.live-controls button{padding:10px 14px;border:1px solid #ffffff60;border-radius:6px;background:#071007e8;color:#fff;cursor:pointer}.live-controls button:focus-visible{outline:3px solid var(--green);outline-offset:3px}.live-player:fullscreen{width:100vw;height:100vh}

.live-controls{flex-wrap:wrap;max-width:calc(100% - 24px);align-items:center}.live-controls label{font-size:12px;background:#071007e8;padding:6px;border-radius:6px}.live-controls select{background:#071007;color:#fff;border:1px solid #ffffff60;border-radius:4px;padding:8px}.live-controls select:focus-visible{outline:3px solid var(--green)}

.discord-feed{width:100%;height:100%;overflow-y:auto;box-sizing:border-box;padding:16px}.discord-feed article{padding:10px 0;border-bottom:1px solid #ffffff20;font-size:13px;overflow-wrap:anywhere}.discord-feed article p{white-space:pre-wrap;margin:5px 0}.chat-hint{font-size:12px;color:var(--muted)}.discord-links{display:flex;flex-wrap:wrap;gap:10px;padding:14px 0}.discord-links a{padding:9px;border:1px solid #65ff1b70;border-radius:6px;font-size:12px}.chat:has(.discord-feed){display:block;overflow:hidden}

.live-controls button.player-icon{width:44px;height:44px;padding:10px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.player-expanded{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:10000}.player-expanded .live-controls,.live-player:fullscreen .live-controls{bottom:max(12px,env(safe-area-inset-bottom));right:max(12px,env(safe-area-inset-right))}

.relay-composer{padding:14px 16px;border-top:1px solid #344b26;flex-shrink:0;font-size:12px}

.relay-composer textarea{box-sizing:border-box;width:100%;resize:vertical;background:#091105;color:#fff;border:1px solid #688750;border-radius:6px;padding:8px;margin:8px 0}

.relay-composer button,.relay-login{display:inline-block;padding:9px 12px;margin:4px 6px 4px 0;border:1px solid #688750;border-radius:6px;background:#112209;color:#fff}

.relay-composer [hidden]{display:none!important}

.relay-composer textarea:disabled,.relay-composer button:disabled{opacity:.5;cursor:not-allowed}

.chat-filters{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 12px}.chat-filters button{background:#122009;color:#d7e6ce;border:1px solid #456231;border-radius:12px;padding:5px 9px;cursor:pointer}.chat-filters button[aria-pressed=true]{background:#8ded27;color:#081000}.chat-source{display:block;color:#9cac90;font-size:10px;margin-bottom:3px}

.community .chat{flex:1 1 180px;min-height:120px}.relay-composer{max-height:48%;overflow:auto}

.chat-toolbar{padding:0 16px;flex-shrink:0}.chat-toolbar:empty,.chat-links-fixed:empty{display:none}.chat-links-fixed{padding:10px 16px;flex-shrink:0;border-top:1px solid #ffffff20}.discord-feed{overflow-anchor:none}.chat-toolbar .chat-hint{margin:8px 0}.chat-toolbar .chat-filters{margin:6px 0}.relay-profile[hidden]{display:none}

@media(max-width:600px){html,body{height:auto;min-height:100dvh;overflow:auto}body{display:block}main{height:auto}.broadcast-layout{height:auto;grid-template-rows:minmax(300px,45dvh) auto}.community{height:80dvh;min-height:620px}.relay-composer{max-height:48%}footer{margin-top:12px}}



/* Shop beside the broadcast; chat floats inside the player. */

.site-nav{display:flex;gap:20px;align-items:center;font-size:12px}.site-nav a{color:#dbefce}.broadcast{position:relative}.stream-shop{display:flex;flex-direction:column;min-height:0}.shop-intro{color:var(--muted);font-size:11px;padding:0 18px;margin:15px 0}.shop-items{flex:1;min-height:0;overflow:auto;padding:0 16px 12px}.shop-item{border:1px solid #ffffff16;background:#0b1609;border-radius:10px;overflow:hidden;margin:0 0 14px}.shop-item>img{width:100%;max-height:185px;aspect-ratio:4/3;object-fit:cover;display:block;background:#10200b}.shop-item>img.tiktok-product-image{object-fit:contain}.shop-placeholder{height:95px;display:grid;place-items:center;font-size:32px;font-weight:900;color:#84b76b;background:radial-gradient(#294519,#0d1909)}.shop-item-info{padding:14px}.shop-item h3{font-size:14px;margin:0 0 8px}.shop-item p{color:var(--muted);font-size:11px;line-height:1.55;white-space:pre-wrap;margin:0 0 13px}.shop-item-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.shop-item-actions strong{font-size:16px}.shop-buy{padding:9px 13px;border-radius:7px;background:var(--green);color:#091202;font-size:10px;font-weight:800}.shop-unavailable{color:#aabc9f;font-size:10px}.shop-empty{border:1px dashed #486336;border-radius:10px;padding:35px 18px;margin-top:6px;color:var(--muted);font-size:12px;text-align:center;line-height:1.7}.shop-teams-link{padding:15px 18px;font-size:10px;color:#b9e3a3;border-top:1px solid #ffffff16}@media(max-width:600px){

 .stream-shop .panel-heading{padding:9px 12px}

 .shop-intro{display:none}

 .shop-items{display:flex;align-items:center;gap:12px;overflow-x:auto;overflow-y:hidden;padding:10px 12px;overscroll-behavior-x:contain;scroll-snap-type:x proximity}

 .shop-item{flex:0 0 285px;display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:12px;height:126px;min-height:126px;margin:0;padding:10px;scroll-snap-align:start}

 .shop-item>img{width:96px;height:96px;max-height:none;aspect-ratio:1;object-fit:contain;border-radius:6px;align-self:center}

 .shop-placeholder{width:96px;height:96px;font-size:24px;border-radius:6px}

 .shop-item-info{min-width:0;padding:0}

 .shop-item h3{font-size:12px;line-height:1.25;margin:0 0 7px;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

 .shop-item p{display:none}

 .shop-item-actions{flex-direction:column;align-items:flex-start;gap:6px;flex-wrap:nowrap}

 .shop-item-actions strong{font-size:13px;line-height:1.2}

 .shop-buy{max-width:100%;font-size:10px;line-height:1.2;padding:8px 9px}

 .shop-unavailable{font-size:10px;line-height:1.2}

 .shop-teams-link{flex-shrink:0;padding:7px 12px;font-size:9px}

 .shop-empty{padding:16px;margin:0;width:100%}

}





/* Transparent comment stream over the video. */

[hidden]{display:none!important}

.community.floating-chat{position:absolute;left:18px;bottom:53px;z-index:10;width:min(420px,calc(100% - 36px));height:auto;max-height:calc(100% - 85px);min-height:0;display:flex;flex-direction:column;pointer-events:none;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}

.floating-chat .chat-content{display:flex;flex-direction:column;min-height:0;height:min(38dvh,310px);padding:0;pointer-events:none;background:transparent;border:0;border-radius:0;box-shadow:none;backdrop-filter:none}

.floating-chat:not(.chat-active) .chat-content{height:auto}

.floating-chat .chat{display:block;flex:1;min-height:0;overflow:hidden;pointer-events:auto}

.floating-chat .chat>.offline{display:none}

.floating-chat .discord-feed{height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;padding:4px 2px;display:flex;flex-direction:column;overflow-anchor:none}

.floating-chat .discord-feed::before{content:"";margin-top:auto}

.floating-chat .discord-feed article{flex:0 0 auto;padding:5px 0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:13px;line-height:1.55;overflow-wrap:anywhere;text-shadow:0 1px 3px #000,0 1px 8px #000;opacity:1;visibility:visible;transition:opacity .65s,visibility 0s .65s}

.floating-chat .discord-feed strong{display:inline;color:#c5ffae;font-size:13px;margin-right:6px}

.floating-chat .discord-feed p{display:inline;font-size:13px;color:#fff;line-height:1.55;white-space:pre-wrap;margin:0}

.floating-chat .chat-source{display:none}

.floating-chat .discord-feed article.expired{opacity:0;visibility:hidden;pointer-events:none}

.floating-chat .discord-feed article.collapsed{display:none}

.floating-chat:is(.chat-hover,.chat-focus,.chat-pinned,.chat-selected) .discord-feed{scrollbar-width:thin}

.floating-chat:is(.chat-hover,.chat-focus,.chat-pinned,.chat-selected) .discord-feed article.expired{display:block;opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s}

.floating-chat .chat-hint{font-size:11px;color:#d4e6ca;text-shadow:0 1px 4px #000}

.floating-chat .relay-composer{flex-shrink:0;max-height:none;overflow:visible;padding:6px 0 0;margin:0;border:0;background:transparent;pointer-events:auto;font-size:11px}

.floating-chat .relay-composer form{display:flex;align-items:center;gap:6px;padding:0;margin:0}

.floating-chat .relay-composer textarea{flex:1;min-width:0;width:0;height:38px;min-height:38px;max-height:90px;margin:0;padding:9px 12px;border:1px solid #ffffff55;border-radius:22px;background:#07100765;color:#fff;font-size:12px;line-height:18px;resize:none;box-shadow:none}

/* Keep chat text large enough for phone focus without restricting page zoom. */
@media(max-width:1100px),(hover:none) and (pointer:coarse){.relay-composer textarea,.floating-chat .relay-composer textarea{font-size:16px}}

.floating-chat .relay-composer textarea::placeholder{color:#d2decc}

.floating-chat .relay-actions{display:flex;align-items:center;gap:5px;margin:0}

.floating-chat .relay-composer button,.floating-chat .relay-login{padding:8px 10px;margin:0;border:1px solid #ffffff45;border-radius:20px;background:#07100765;color:#eaffdf;font-size:10px;white-space:nowrap}

.floating-chat .relay-identity{display:none;margin:0 0 5px;font-size:11px;color:#eaffdf;text-shadow:0 1px 4px #000}

.floating-chat .relay-composer.relay-notice .relay-identity{display:block}

.floating-chat .relay-result{margin:4px 0 0;font-size:10px;color:#eaffdf;text-shadow:0 1px 4px #000}

.floating-chat .relay-result:empty{display:none}

.message-delete{margin-left:8px;padding:3px 6px;font-size:8px;border:1px solid #b25d5d66;border-radius:4px;background:#502222;color:#ffdcdc;cursor:pointer}

.floating-chat :focus-visible{outline:2px solid var(--green);outline-offset:2px}

.live-player .floating-chat{bottom:64px}

@media(max-width:600px){

 html{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}

 body{height:auto;min-height:100dvh;overflow:visible;display:grid;grid-template-rows:auto minmax(544px,1fr) auto}

 main{height:100%;min-height:544px}

 .broadcast-layout{height:100%;grid-template-rows:minmax(320px,1fr) 214px}

 .community.floating-chat{left:12px;bottom:36px;width:calc(100% - 24px)}

 .floating-chat .chat-content{height:min(32dvh,240px)}

 .floating-chat:not(.chat-active) .chat-content{height:auto}

 .floating-chat .discord-feed article{padding:4px 0}

 .floating-chat .discord-feed p,.floating-chat .discord-feed strong{font-size:12px}

 .live-player .floating-chat{bottom:64px}

 header{gap:10px}

 .site-nav{gap:10px;font-size:11px}

 footer{margin-top:0}

}

@media(prefers-reduced-motion:reduce){.floating-chat *{transition:none!important}}



.message-tools{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.message-tools button{font-size:10px;padding:3px 6px;border:1px solid #416432;border-radius:4px;background:#102309;color:#d5efc9}.message-tools button:hover{background:#29431c}



.heading-status{display:flex;align-items:center;gap:12px}.viewer-count{font-size:10px;font-weight:600;color:var(--muted);letter-spacing:0;text-transform:none;white-space:nowrap}@media(max-width:480px){.heading-status{gap:8px}.viewer-count{font-size:9px}}



.shared-card{grid-column:1;display:flex;gap:16px;align-items:center;border:1px solid #435b31;border-radius:10px;background:#13200b;padding:15px 20px;min-width:0}.shared-card[hidden]{display:none}.shared-card img{width:62px;height:87px;object-fit:contain;border-radius:4px;background:#080e05}.shared-card h2{font-size:15px;margin:5px 0}.shared-card p{font-size:10px;margin:5px 0;color:#a9bc96;line-height:1.5}.shared-card-label{font-size:8px;font-weight:800;letter-spacing:1.5px;color:#a1e878}.shared-card strong{font-size:16px;color:#d6f7bf}.shared-card a{display:block;font-size:9px;color:#aaf582;margin-top:5px}.shared-card-price-note{font-size:9px!important}@media(max-width:900px){.shared-card{grid-column:auto;padding:13px 15px}.shared-card h2{font-size:13px}}



.broadcast .shared-card{position:absolute;z-index:4;top:66px;right:16px;width:240px;padding:12px;gap:12px;background:#14200feb;box-shadow:0 7px 22px #0006}.shared-card img{width:48px;height:70px}.shared-card h2{font-size:12px}.shared-card p{font-size:9px}.shared-card strong{font-size:14px}@media(max-width:600px){.broadcast .shared-card{top:48px;right:10px;width:185px;padding:9px;gap:8px}.shared-card img{width:35px;height:52px}.shared-card h2{font-size:11px}.shared-card p{font-size:8px}.shared-card-label{font-size:7px}}



/* Account controls sit with the team board link, away from the chat input. */

.site-nav{flex-wrap:wrap;justify-content:flex-end;margin-left:auto;gap:18px}

.site-nav a,.site-nav button{white-space:nowrap;padding:5px 0}

.site-nav .relay-logout{appearance:none;border:0;background:transparent;color:#dbefce;font:inherit;cursor:pointer}

.site-nav a:hover,.site-nav button:hover{color:var(--green)}

.site-nav .relay-logout:disabled{opacity:.5;cursor:wait}

.site-nav :focus-visible{outline:3px solid var(--green);outline-offset:4px}

@media(max-width:600px){header{flex-wrap:wrap;gap:4px 10px}.site-nav{gap:14px}.site-nav a,.site-nav button{min-height:34px;display:inline-flex;align-items:center}}





/* Website navigation belongs beside the broadcast title. */

.broadcast-heading{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px 22px}

.broadcast-heading .broadcast-title{white-space:nowrap}

.broadcast-heading .site-nav{min-width:0;margin-left:0;justify-content:flex-start;gap:8px 16px;letter-spacing:0;font-weight:500}

.broadcast-heading .heading-status{justify-content:flex-end;white-space:nowrap}

.broadcast .shared-card{top:calc(var(--broadcast-heading-height,54px) + 12px)}

.broadcast>.floating-chat{max-height:calc(100% - var(--broadcast-heading-height,54px) - 65px)}

@media(max-width:1100px){

 .broadcast-heading{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}

 .broadcast-heading .broadcast-title{grid-column:1;grid-row:1}

 .broadcast-heading .heading-status{grid-column:2;grid-row:1}

 .broadcast-heading .site-nav{grid-column:1/-1;grid-row:2}

}

@media(max-width:600px){

 .broadcast-heading .site-nav{font-size:11px;gap:4px 14px}

 .broadcast .shared-card{top:calc(var(--broadcast-heading-height,40px) + 10px)}

 .broadcast>.floating-chat{max-height:calc(100% - var(--broadcast-heading-height,40px) - 48px)}

}



/* Keep the fullscreen chat and explicit controls above the video. */

.live-player{isolation:isolate}.live-controls{z-index:30;opacity:1;visibility:visible;pointer-events:auto}.player-control-label,.player-chat-toggle{display:none!important}.player-exit{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:40;padding:10px 16px;border:1px solid #ffffff80;border-radius:8px;background:#081408f2;color:#fff;font:inherit;cursor:pointer}.player-exit:focus-visible{outline:3px solid var(--green);outline-offset:3px}.live-player:is(:fullscreen,.player-expanded){width:100vw;height:100dvh;overflow:hidden}.live-player:is(:fullscreen,.player-expanded) .live-controls{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));right:max(12px,env(safe-area-inset-right));z-index:30;max-width:calc(100% - 24px);display:flex;opacity:1;visibility:visible;transform:none}.live-player:is(:fullscreen,.player-expanded) .player-control-label{display:inline!important}.live-player .player-chat-toggle:not([hidden]){display:inline-flex!important}.live-player:is(:fullscreen,.player-expanded) .live-controls .player-icon{width:auto;min-width:44px;gap:8px}.live-player:is(:fullscreen,.player-expanded) .floating-chat{position:absolute;z-index:20;left:max(12px,env(safe-area-inset-left));bottom:76px;width:min(420px,calc(100% - 24px));max-height:calc(100% - 144px)}.live-player.fullscreen-chat-hidden .floating-chat{display:none!important}.live-player:is(:fullscreen,.player-expanded) .floating-chat .chat-content{max-height:calc(100dvh - 190px)}@media(max-height:420px){.live-player:is(:fullscreen,.player-expanded) .floating-chat .chat-content{height:calc(100dvh - 150px);max-height:calc(100dvh - 150px)}.live-player:is(:fullscreen,.player-expanded) .floating-chat{bottom:68px;max-height:calc(100% - 124px)}}



.player-start{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:35;padding:14px 22px;border:1px solid #ffffff80;border-radius:10px;background:#081408f2;color:#fff;font:inherit;font-weight:700;cursor:pointer}.player-start:focus-visible{outline:3px solid var(--green);outline-offset:4px}



/* Lower chat on roomy players; reserve wrapped controls on small screens. */

.live-player{container-type:inline-size}

.live-player .floating-chat{bottom:calc(var(--live-controls-height,44px) + 20px)}

.live-player:is(:fullscreen,.player-expanded) .floating-chat{bottom:calc(var(--live-controls-height,44px) + 32px);max-height:calc(100% - var(--live-controls-height,44px) - 100px)}

.live-player:is(:fullscreen,.player-expanded) .floating-chat .chat-content{max-height:calc(100dvh - var(--live-controls-height,44px) - 146px)}

@media(max-height:420px){.live-player:is(:fullscreen,.player-expanded) .floating-chat{bottom:calc(var(--live-controls-height,44px) + 24px)}}

@container(min-width:780px){.live-player:not(:fullscreen):not(.player-expanded) .floating-chat{bottom:24px;max-height:calc(100% - 52px)}}

@container(min-width:900px){.live-player:is(:fullscreen,.player-expanded) .floating-chat{bottom:max(24px,env(safe-area-inset-bottom));max-height:calc(100% - 92px)}.live-player:is(:fullscreen,.player-expanded) .floating-chat .chat-content{max-height:calc(100dvh - 140px)}}



.floating-chat .chat-history-toggle{align-self:flex-start;padding:5px 10px;margin:0 0 6px;border:1px solid #ffffff55;border-radius:14px;background:#071007b8;color:#eaffdf;font-size:11px;pointer-events:auto;cursor:pointer}

.floating-chat.chat-history .discord-feed{overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain;touch-action:pan-y}

.floating-chat.chat-history .discord-feed article:is(.expired,.collapsed){display:block;opacity:1;visibility:visible;pointer-events:auto;transition:none}

.floating-chat .chat-reaction{display:inline-flex;align-items:center;margin:2px 0 2px 8px;padding:2px 7px;border:1px solid #ffffff50;border-radius:12px;background:#0710079c;color:#fff;font-size:11px;cursor:pointer}.floating-chat .chat-reaction[aria-pressed=true]{border-color:var(--green);background:#29431ce8}.floating-chat .chat-reaction:disabled{opacity:.65;cursor:default}

.floating-chat .relay-composer{position:relative}.floating-chat .relay-emoji-toggle{font-size:16px;line-height:18px;padding:7px 9px}

.relay-emojis{position:absolute;bottom:calc(100% + 8px);left:0;z-index:50;display:grid;grid-template-columns:repeat(5,40px);gap:4px;padding:10px;border:1px solid #557344;border-radius:12px;background:#101d0df5;box-shadow:0 4px 18px #0008;max-height:180px;overflow-y:auto;pointer-events:auto}.floating-chat .relay-emojis button{font-size:22px;padding:4px;width:40px;height:36px;border:0;background:transparent;border-radius:6px}.floating-chat .relay-emojis button:hover{background:#345329}



/* Phone portrait fullscreen: full-size video with chat above compact controls. */

@media(max-width:700px) and (orientation:portrait){

 .live-player:is(:fullscreen,.player-expanded){display:block;height:var(--live-viewport-height,100dvh)!important;box-sizing:border-box;background:#000;}

 .live-player:is(:fullscreen,.player-expanded) .live-video{width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain;background:#000;}

 .live-player:is(:fullscreen,.player-expanded) .player-exit{top:max(6px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));width:34px;height:32px;padding:0;border:0;border-radius:8px;background:#081408c9;font-size:0;}

 .live-player:is(:fullscreen,.player-expanded) .player-exit::before{content:'×';font-size:26px;font-weight:400;line-height:30px;}

 .live-player:is(:fullscreen,.player-expanded) .floating-chat{position:absolute;left:max(12px,env(safe-area-inset-left));bottom:calc(var(--live-controls-height,52px) + max(12px,env(safe-area-inset-bottom)) + 12px);width:calc(100% - 24px);height:auto;max-height:calc(var(--live-viewport-height,100dvh) - var(--live-controls-height,52px) - max(12px,env(safe-area-inset-bottom)) - 64px);min-height:0;box-sizing:border-box;padding:8px 10px;border-radius:10px;background:linear-gradient(0deg,#081408d9,#08140838);pointer-events:none;}

 .live-player:is(:fullscreen,.player-expanded) .floating-chat .chat-content{position:relative;flex:1;height:min(calc(var(--live-viewport-height,100dvh) * .38),310px);max-height:calc(var(--live-viewport-height,100dvh) - var(--live-controls-height,52px) - max(12px,env(safe-area-inset-bottom)) - 80px);min-height:0;padding-top:24px;box-sizing:border-box;}

 .live-player:is(:fullscreen,.player-expanded) .chat-content::before{content:'Chat';position:absolute;top:4px;left:0;color:#d3ddce;font-size:12px;font-weight:600;}

 .live-player:is(:fullscreen,.player-expanded) .chat-history-toggle{align-self:flex-end;margin:0 0 8px;padding:4px 0 4px 10px;border:0;background:transparent;font-size:12px;color:#aabfa1;}

 .live-player:is(:fullscreen,.player-expanded) .discord-feed{padding:0;scrollbar-width:thin;overscroll-behavior:contain;touch-action:pan-y;}

 .live-player:is(:fullscreen,.player-expanded) .discord-feed article{padding:6px 0;line-height:1.5;}

 .live-player:is(:fullscreen,.player-expanded) .discord-feed p,.live-player:is(:fullscreen,.player-expanded) .discord-feed strong{font-size:14px;}

 .live-player:is(:fullscreen,.player-expanded) .relay-composer{padding-top:8px;}

 .live-player:is(:fullscreen,.player-expanded) .relay-composer textarea{font-size:16px;height:40px;min-height:40px;padding:9px 12px;line-height:20px;background:#141c12;border-color:#354430;}

 .live-player:is(:fullscreen,.player-expanded) .relay-composer button{min-height:38px;border-color:#354430;background:#141c12;font-size:12px;}

 .live-player:is(:fullscreen,.player-expanded) .relay-emoji-toggle{font-size:18px;}

 .live-player:is(:fullscreen,.player-expanded) .live-controls{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));display:flex;flex-wrap:nowrap;gap:8px;width:calc(100% - 24px);max-width:none;height:52px;padding:6px;box-sizing:border-box;border:1px solid #ffffff20;border-radius:10px;background:#081408ce;}

 .live-player:is(:fullscreen,.player-expanded) .live-controls label{flex:1;min-width:0;padding:0;background:transparent;font-size:0;}

 .live-player:is(:fullscreen,.player-expanded) .live-controls select{width:100%;max-width:180px;height:38px;padding:6px 10px;font-size:13px;border-color:#354430;border-radius:8px;}

 .live-player:is(:fullscreen,.player-expanded) .live-controls button.player-icon{width:40px;min-width:40px;height:38px;padding:8px;gap:0;border-color:#354430;border-radius:8px;}

 .live-player:is(:fullscreen,.player-expanded) .player-control-label{display:none!important;}

 .live-player:is(:fullscreen,.player-expanded) .live-controls button[aria-pressed]{display:none;}



}



/* Keep fallback fullscreen inside the visible browser area, including zoom and rotation. */

.player-expanded{width:var(--live-viewport-width,100vw)!important;height:var(--live-viewport-height,100dvh)!important;top:var(--live-viewport-top,0px)!important;left:var(--live-viewport-left,0px)!important;right:auto!important;bottom:auto!important;}

@media(max-height:600px) and (orientation:landscape){

 .live-player:is(:fullscreen,.player-expanded){display:block;box-sizing:border-box;overflow:hidden;background:#000;height:var(--live-viewport-height,100dvh)!important;}

 .live-player:is(:fullscreen,.player-expanded) .live-video{width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain;}

 .live-player:is(:fullscreen,.player-expanded) .player-exit{top:max(6px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));width:34px;height:32px;padding:0;border:0;border-radius:8px;background:#081408c9;font-size:0;}

 .live-player:is(:fullscreen,.player-expanded) .player-exit::before{content:'×';font-size:26px;font-weight:400;line-height:30px;}

 .live-player:is(:fullscreen,.player-expanded) .live-controls{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));display:flex;flex-wrap:nowrap;gap:6px;width:auto;max-width:calc(100% - 24px);height:44px;padding:4px;border:1px solid #ffffff20;border-radius:10px;background:#081408ce;}

 .live-player:is(:fullscreen,.player-expanded) .live-controls label{flex:0 1 auto;min-width:0;padding:0;background:transparent;font-size:0;}

 .live-player:is(:fullscreen,.player-expanded) .live-controls select{width:124px;max-width:124px;height:36px;padding:6px 8px;font-size:13px;border-color:#ffffff40;border-radius:7px;}

 .live-player:is(:fullscreen,.player-expanded) .live-controls button.player-icon{width:40px;min-width:40px;height:36px;padding:8px;gap:0;border-color:#ffffff40;border-radius:7px;}

 .live-player:is(:fullscreen,.player-expanded) .player-control-label{display:none!important;}

 .live-player:is(:fullscreen,.player-expanded) .live-controls button[aria-pressed]{display:none;}

 .live-player:is(:fullscreen,.player-expanded) .floating-chat{position:absolute;left:max(12px,env(safe-area-inset-left));bottom:max(8px,env(safe-area-inset-bottom));width:min(360px,calc(var(--live-viewport-width,100vw) - 280px));height:auto;max-height:calc(var(--live-viewport-height,100dvh) - 66px);padding:8px;box-sizing:border-box;border-radius:10px;background:linear-gradient(0deg,#081408d9,#08140838);}

 .live-player:is(:fullscreen,.player-expanded) .floating-chat .chat-content{height:clamp(60px,calc(var(--live-viewport-height,100dvh) * .45),190px);max-height:calc(var(--live-viewport-height,100dvh) - 130px);min-height:0;background:transparent;}

 .live-player:is(:fullscreen,.player-expanded) .floating-chat .chat{background:transparent;}

 .live-player:is(:fullscreen,.player-expanded) .floating-chat .discord-feed{padding:0;scrollbar-width:thin;overscroll-behavior:contain;touch-action:pan-y;}

 .live-player:is(:fullscreen,.player-expanded) .floating-chat .relay-composer{padding-top:6px;}

 .live-player:is(:fullscreen,.player-expanded) .relay-composer textarea{font-size:16px;height:38px;min-height:38px;line-height:18px;padding:9px 10px;}

 .live-player:is(:fullscreen,.player-expanded) .relay-composer button{min-height:36px;}

 .live-player:is(:fullscreen,.player-expanded) .message-tools{display:flex;flex-wrap:wrap;gap:4px;}

 .live-player:is(:fullscreen,.player-expanded) .message-tools button{font-size:10px;padding:3px 6px;}

}



/* Pop-out stays an icon and respects unsupported browsers. */

.live-controls button.player-pip[hidden]{display:none!important;}

.live-controls button.player-pip:disabled{opacity:.5;cursor:wait;}



.floating-chat :is(.discord-feed,.chat-content){scrollbar-width:none!important;-ms-overflow-style:none;}

.floating-chat :is(.discord-feed,.chat-content)::-webkit-scrollbar{display:none!important;width:0!important;height:0!important;}



.floating-chat .message-tools{display:inline!important;margin:0 0 0 5px!important;}

.floating-chat .message-tools summary{display:inline-flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:26px;height:24px;border:1px solid #ffffff35;border-radius:5px;background:#081408b8;font-size:15px;color:#d4efc7;vertical-align:middle;}

.floating-chat .message-tools summary::-webkit-details-marker{display:none;}

.floating-chat .message-tools summary:focus-visible{outline:2px solid var(--green);outline-offset:2px;}

.floating-chat .message-menu{display:flex;gap:6px;flex-wrap:wrap;padding:6px;margin:5px 0;border:1px solid #ffffff35;border-radius:6px;background:#081408f5;}

.floating-chat .message-tools:not([open]) .message-menu{display:none;}


/* Chat actions float outside the scroll clipping region. */
.floating-chat .message-menu{position:fixed;inset:auto;z-index:20020;box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:4px;width:max-content;min-width:130px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;padding:6px;margin:0;border:1px solid #617456;border-radius:9px;background:#0b160bf8;box-shadow:0 8px 24px #0008;color:#fff;font:13px system-ui;text-shadow:none;}
.floating-chat .message-menu[hidden]{display:none!important;}
.floating-chat .message-menu button{min-height:32px;margin:0;padding:6px 10px;text-align:left;font:inherit;border-radius:5px;}
.floating-chat .message-menu::backdrop{background:transparent;}

/* Give the first video download priority over decorative artwork. */
html.player-starting body,html.player-starting body::before{background-image:none}

/* The regular sound control briefly introduces itself over a muted first playback. */
.player-sound-slot{display:inline-block;flex:0 0 auto;pointer-events:none;}
.live-player>.player-sound.player-sound-notice{position:absolute;left:var(--sound-notice-x,50%);top:var(--sound-notice-y,50%);z-index:35;display:flex;align-items:center;justify-content:center;gap:14px;width:250px;max-width:calc(100% - 32px);min-height:104px;height:auto;margin:0;padding:20px 22px;box-sizing:border-box;border:2px solid #91eb45;border-radius:18px;background:#0b190bf2;box-shadow:0 8px 30px #0009;color:#f4ffe9;transform:translate(-50%,-50%);transform-origin:0 0;cursor:pointer;font:600 16px/1.35 Inter,Segoe UI,system-ui,sans-serif;}
.live-player>.player-sound.player-sound-notice svg{flex:0 0 auto;width:34px;height:34px;}
.live-player>.player-sound.player-sound-notice .player-control-label{display:none!important;}
.player-sound-notice-text{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;}
.player-sound-notice-text strong{font-size:20px;font-weight:700;}
.player-sound-notice-text>span{color:#bdec96;font-size:15px;}
.live-player>.player-sound.player-sound-notice:focus-visible{outline:3px solid #fff;outline-offset:4px;}
@media(max-height:420px){.live-player>.player-sound.player-sound-notice{min-height:82px;padding:14px 18px;}}
@media(prefers-reduced-motion:reduce){.live-player>.player-sound.player-sound-notice{transition:none;}}
.startup-diagnostic{position:fixed;bottom:8px;left:8px;right:8px;z-index:2147483647;max-width:700px;padding:8px;border:1px solid #87e735;border-radius:6px;background:#071007ee;color:#e8f7de;font:12px/1.4 system-ui,sans-serif;pointer-events:none}

/* A blocked or failed start has a visible action, including muted autoplay. */
.player-play-prompt{position:absolute;top:32%;left:50%;transform:translate(-50%,-50%);z-index:20;min-height:48px;padding:12px 22px;border:1px solid #8de341;border-radius:24px;background:#071007f5;box-shadow:0 4px 18px #0009;color:#f4ffe9;font:600 14px Inter,Segoe UI,system-ui,sans-serif;cursor:pointer;}
.player-play-prompt[hidden]{display:none!important}

/* Public viewer tools and account-only spot summaries. */
.viewer-tools{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.viewer-tools :is(button,.viewer-discord),.viewer-dialog button{min-height:40px;padding:9px 11px;border:1px solid #91d45570;border-radius:8px;background:#10200ce8;color:#efffe4;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer;}
.viewer-tools :is(button,.viewer-discord):focus-visible,.viewer-dialog :focus-visible{outline:2px solid var(--green);outline-offset:3px;}
.viewer-tools button[aria-busy="true"]{opacity:.7;}
.viewer-dialog{width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 40px);margin:auto;padding:20px;border:1px solid #5a7746;border-radius:14px;background:#0c190c;color:#efffe4;box-shadow:0 20px 80px #000a;overflow:auto;}
.viewer-dialog::backdrop{background:#0009;}
.viewer-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;}
.viewer-dialog h2{margin:0;font-size:20px;letter-spacing:-.4px;}
.viewer-dialog p{font-size:14px;line-height:1.5;color:#bdcdb3;}
.viewer-dialog label{display:block;margin-bottom:8px;font-size:13px;}
.viewer-dialog input{width:100%;min-width:0;padding:12px;border:1px solid #536f40;border-radius:8px;background:#071007;color:#fff;font-size:16px;}
@media(max-width:600px),(hover:none) and (pointer:coarse){.viewer-tools :is(button,.viewer-discord),.viewer-dialog button{min-height:44px;}.viewer-tools{gap:6px;}.viewer-tools :is(button,.viewer-discord){padding:9px 10px;}}

#my-spots-dialog{box-sizing:border-box;width:min(30rem,calc(100vw - 2rem));max-height:80dvh;overflow:auto;padding:1.25rem;border:1px solid var(--border,#344528);border-radius:.8rem;background:var(--panel,#101d12);color:var(--text,#e6f0df)}#my-spots-dialog::backdrop{background:#0009}.my-spots-heading{display:flex;justify-content:space-between;gap:1rem;align-items:center}.my-spots-heading h2{margin:0}.my-spots-heading button{min-width:2.5rem;min-height:2.5rem}.my-spots-group{border-top:1px solid var(--border,#344528);padding-top:.75rem;margin-top:1rem}.my-spots-group h3{margin:.2rem 0 .6rem;font-size:1rem}.my-spots-group p{line-height:1.5;margin:.5rem 0}.my-spots-group ul{padding-left:1.2rem;margin:.4rem 0}.my-spots-group li{margin:.35rem 0}#my-spots-dialog a{color:inherit;text-decoration:underline}#my-spots-dialog button{font:inherit;cursor:pointer}.my-spots-actions{display:flex;justify-content:flex-end;margin-top:1rem}

/* Viewer chat mentions: append to the shared stylesheet during integration. */
.floating-chat .chat-author{cursor:pointer;text-decoration:underline;text-decoration-color:#b2df9755;text-underline-offset:3px}
.floating-chat .chat-author:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:3px}
.floating-chat .discord-feed article.chat-mentioned{background:#385021b8;border-left:3px solid #a6ed65;padding-left:7px;border-radius:4px}
.floating-chat .chat-mention-notice{flex-shrink:0;align-self:flex-start;max-width:100%;margin:4px 0;padding:7px 10px;border:1px solid #91d853;border-radius:12px;background:#1d3512;color:#e8ffd8;font:600 12px/1.3 system-ui;cursor:pointer;pointer-events:auto}
.floating-chat .chat-mention-notice[hidden],.floating-chat .chat-mention-choices[hidden]{display:none!important}
.floating-chat .chat-mention-choices{position:absolute;left:0;right:0;bottom:calc(100% + 5px);z-index:60;max-height:160px;overflow:auto;padding:6px;border:1px solid #6a8b52;border-radius:10px;background:#0c190cf5;box-shadow:0 4px 18px #0008;pointer-events:auto}
.floating-chat .chat-mention-choices button{display:block;width:100%;min-height:36px;margin:2px 0;text-align:left;border-radius:6px;font:14px/1.3 system-ui}
.floating-chat .chat-mention-choices p{margin:5px;color:#d9edcc;font:12px/1.4 system-ui}
.player-chat-toggle.has-mentions{position:relative}
.player-chat-toggle.has-mentions::after{content:attr(data-mention-count);position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;padding:0 3px;border-radius:10px;background:#b3ef70;color:#0b1805;font:700 11px/17px system-ui}

.my-spots-actions{gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}

/* Chat overlays the stream in both live and placeholder states. */
#stream{position:relative;container-type:inline-size;min-height:0}
.broadcast.broadcast-offline #stream{flex:1 1 0%;min-height:0}
.broadcast.broadcast-offline>.stream-footer{order:initial}
#stream.stream-placeholder{display:block;overflow:hidden}
#stream.stream-placeholder>.offline{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(470px,calc(100% - 24px));margin:0;padding:10px 12px}
.broadcast.broadcast-offline #stream>.offline .play-icon{display:none}
:is(#stream,.live-player)>.floating-chat{position:absolute;left:18px;bottom:calc(var(--live-controls-height,0px) + 20px);width:calc(100% - 36px);height:min(44%,320px);min-height:76px;max-height:calc(100% - var(--live-controls-height,0px) - 40px);margin:0;padding:0;border:0;border-radius:0;background:transparent;pointer-events:none;box-sizing:border-box}
#stream>.floating-chat{bottom:12px;max-height:calc(100% - 24px)}
:is(#stream,.live-player)>.floating-chat::before{display:none}
:is(#stream,.live-player)>.floating-chat .chat-content{position:static;display:flex;flex-direction:column;width:100%;height:100%;min-height:0;max-height:none;padding:0;box-sizing:border-box;background:transparent}
:is(#stream,.live-player)>.floating-chat .chat-content::before{display:none}
:is(#stream,.live-player)>.floating-chat .chat{flex:1 1 0%;width:100%;min-height:0;align-self:flex-start}
:is(#stream,.live-player)>.floating-chat .discord-feed{height:100%;width:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain}
:is(#stream,.live-player)>.floating-chat .relay-composer{flex-shrink:0;width:100%;padding:6px 0 0;border:0;background:transparent}
.floating-chat .message-tools{display:inline-block!important;vertical-align:baseline;margin-right:5px!important}
@media(min-width:601px) and (hover:hover) and (pointer:fine){:is(#stream,.live-player)>.floating-chat{width:calc(50cqw + 110px);max-width:calc(100% - 36px)}:is(#stream,.live-player)>.floating-chat .chat{width:35cqw}:is(#stream,.live-player)>.floating-chat .relay-composer textarea{flex:0 0 50cqw;width:50cqw;white-space:pre;overflow-x:auto}:is(#stream,.live-player)>.floating-chat .relay-actions{flex-shrink:0}}
@media(max-width:600px),(hover:none) and (pointer:coarse){:is(#stream,.live-player)>.floating-chat{left:12px;width:calc(100% - 24px);max-width:calc(100% - 24px)}}
@media(max-width:600px){:is(#stream,.live-player)>.floating-chat{min-height:88px}}
@media(max-width:600px) and (max-height:650px){.broadcast.broadcast-offline #stream>.offline{padding:4px 10px}.broadcast.broadcast-offline #stream>.offline p{display:none}.broadcast.broadcast-offline #stream>.offline h2{font-size:16px;margin:0 0 4px}.broadcast.broadcast-offline #stream>.offline .primary{margin:0;padding:6px 10px}}

/* Leave clear space below the centered offline message on phones. */
@media(max-width:600px){
 .broadcast-layout:has(.broadcast-offline){grid-template-rows:auto auto}
 .broadcast.broadcast-offline #stream.stream-placeholder{min-height:max(280px,var(--offline-stream-min-height,280px))}
 .broadcast.broadcast-offline #stream.stream-placeholder>.floating-chat{height:var(--offline-chat-room,88px);min-height:0;max-height:var(--offline-chat-room,88px)}
}

/* Keep the offline follow link on desktop; phones show the message and chat. */
@media(max-width:600px){#stream.stream-placeholder>.offline .primary{display:none}}

/* More history on phones, with a clear offline message above it. */
@media(max-width:600px),(hover:none) and (pointer:coarse){
 :is(#stream,.live-player)>.floating-chat{height:55%}
}
@media(max-width:600px){
 .broadcast.broadcast-offline #stream.stream-placeholder{min-height:360px}
 .broadcast.broadcast-offline #stream.stream-placeholder>.offline{top:22.5%}
 .broadcast.broadcast-offline #stream.stream-placeholder>.floating-chat{height:55%;min-height:88px;max-height:calc(100% - 24px)}
}

/* Keep fullscreen chat above controls when the device has a bottom safe inset. */
:is(#stream,.live-player):is(:fullscreen,.player-expanded)>.floating-chat{
 bottom:calc(var(--live-controls-height,44px) + max(20px,calc(env(safe-area-inset-bottom) + 12px)));
}

/* Offer an explicit jump without changing the video/chat layout. */
.player-live-recovery[hidden]{display:none!important}
.player-live-recovery:not([hidden]){position:absolute;z-index:35;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;max-width:calc(100% - 96px);padding:8px 10px;border:1px solid #c4e2aa66;border-radius:10px;background:#081408e8;color:#edf4e8;font-size:13px;text-align:center;box-sizing:border-box}
.player-live-recovery button{min-height:36px;padding:6px 12px;border:1px solid #8ae234;border-radius:7px;background:#8ae234;color:#091006;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}
.player-live-recovery button:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* Fullscreen stays at the top right of the picture, clear of chat controls. */
.live-player>.player-fullscreen{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:40;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;border:1px solid #ffffff80;border-radius:8px;background:#081408e8;color:#fff;cursor:pointer;}
.live-player>.player-fullscreen:focus-visible{outline:3px solid var(--green);outline-offset:3px;}
.live-player .player-fullscreen[hidden]{display:none!important;}

/* Desktop chat shares the bottom edge with the toolbar beside it. */
@media(min-width:601px) and (hover:hover) and (pointer:fine){
 #stream>.live-player:not(:fullscreen):not(.player-expanded)>.floating-chat{bottom:12px;max-height:calc(100% - 24px);max-width:max(200px,calc(100% - var(--live-controls-width,300px) - 40px));}
 #stream>.live-player:not(:fullscreen):not(.player-expanded)>.floating-chat .chat{max-width:100%;}
 #stream>.live-player:not(:fullscreen):not(.player-expanded)>.floating-chat .relay-composer textarea{flex-shrink:1;min-width:0;}
}

/* Keep the offline call to action above chat, with unused space transparent to input. */
#stream.stream-placeholder>.offline{z-index:11;pointer-events:none}
#stream.stream-placeholder>.offline .primary{pointer-events:auto}

.viewer-tools .viewer-discord{display:inline-flex;align-items:center;justify-content:center;}
