.sia-live-shell{direction:rtl;max-width:1024px;margin:22px auto;padding:0 14px;color:var(--bb-body-text-color,#152035);font-family:inherit;box-sizing:border-box;overflow-wrap:anywhere}.sia-live-shell *{box-sizing:border-box}.sia-live-hero{background:linear-gradient(125deg,#0b1b35,#153b6b);color:#fff;padding:30px 26px;border-radius:18px;margin-bottom:17px}.sia-live-hero h2{margin:5px 0;font-size:30px;color:#fff}.sia-live-hero h2 span{color:#ff4260}.sia-live-hero p{color:#d1dded;font-size:15px}.sia-live-kicker{font-size:11px;color:#9ebedb;letter-spacing:2px}.sia-live-panel{padding:24px;border:1px solid #dce4ee;border-radius:16px;background:#fff;margin:16px 0;box-shadow:0 6px 18px #14274a0c}.sia-live-panel h3{font-size:20px;margin:0 0 16px;color:#182c46}.sia-live-panel label{display:block;margin:12px 0;font-weight:650}.sia-live-panel input,.sia-live-panel textarea,.sia-live-panel select{display:block;max-width:100%;width:100%;margin:7px 0;padding:12px;border-radius:8px;border:1px solid #cbd5e2;background:#fff;color:#14233a;font:inherit;min-height:42px}.sia-live-btn{display:inline-block;padding:11px 19px;background:#1767b0;color:#fff!important;text-decoration:none;border:0;border-radius:8px;cursor:pointer;font:inherit;font-weight:650}.sia-live-btn:disabled{opacity:.6;cursor:wait}.sia-live-hint,.sia-live-muted{color:#6b778c;font-size:14px}.sia-live-requests{display:grid;gap:12px}.sia-live-request{border:1px solid #e1e7ef;border-radius:10px;padding:13px;display:grid;gap:7px}.sia-live-pill{display:inline-block;width:max-content;border-radius:24px;background:#eaf2fa;color:#234f83;padding:4px 10px;font-size:12px}.sia-live-request small{color:#69768a}.sia-live-link{background:transparent;border:0;color:#b02a37;font:inherit;cursor:pointer;padding:2px 0}.sia-live-alert{border:1px solid #b5d9b6;background:#effbf0;padding:14px;border-radius:10px}.sia-live-stream{background:#101b2a;border-radius:14px;overflow:hidden;aspect-ratio:16/9}.sia-live-stream video{width:100%;height:100%;display:block}.sia-live-live-badge{background:#ce1d36;color:#fff;font-weight:700;font-size:12px;padding:6px 10px;border-radius:12px}.sia-live-chat-messages{height:280px;overflow-y:auto;display:grid;align-content:start;gap:10px;margin-bottom:13px;background:#f5f8fc;padding:13px;border-radius:10px}.sia-live-chat-message{border-bottom:1px solid #dde5ed;padding-bottom:7px}.sia-live-chat-message strong{font-size:13px}.sia-live-chat-message p{font-size:14px;margin:3px 0;white-space:pre-wrap;word-break:break-word}.sia-live-chat-message time{color:#81899b;font-size:12px}.sia-live-chat-form{display:flex;gap:9px}.sia-live-chat-form input{flex:1;margin:0;min-width:0}.sia-live-chat-status{font-size:13px;color:#a54331}.sia-live-watch .sia-live-hero h2{font-size:25px}@media(max-width:560px){.sia-live-hero{padding:19px}.sia-live-panel{padding:15px}.sia-live-chat-form{flex-direction:column}.sia-live-btn{width:100%;text-align:center}.sia-live-shell{margin:8px auto;padding:0 10px}}

.sia-live-camera-preview{margin-top:18px;background:#111b2b;color:#fff;padding:12px;border-radius:14px}.sia-live-camera-preview[hidden]{display:none}.sia-live-camera-preview video{display:block;width:100%;max-height:420px;object-fit:contain;transform:scaleX(-1)}.sia-live-camera-preview p{color:#d5e4fb}.sia-live-camera-test{margin-top:7px}
/* LiveKit v0.2.0 media UI */
.sia-live-camera-preview[hidden],.sia-live-finish[hidden]{display:none!important}
.sia-live-local-media,.sia-live-remote-media{width:100%;background:#09192f;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center;min-height:170px}
.sia-live-local-media video,.sia-live-remote-media video{display:block;width:100%;height:auto;max-height:65vh;object-fit:contain}
.sia-live-remote-media audio{display:none}
.sia-live-broadcast-status,.sia-live-watch-status{line-height:1.8;color:#c8d8e7}
.sia-live-join{margin:12px!important}
.sia-live-shell,.sia-live-shell *{box-sizing:border-box}
.sia-live-shell{width:100%;max-width:100%;overflow-wrap:anywhere}
.sia-live-shell input,.sia-live-shell textarea,.sia-live-shell select{max-width:100%}

/* v0.2.2: mobile camera flip, camera mute, microphone mute. */
.sia-live-camera-preview .sia-live-local-media video{transform:none}
.sia-live-camera-preview .sia-live-local-media.sia-live-mirror video{transform:scaleX(-1)}
.sia-live-media-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:stretch;justify-content:center;margin:14px 0 8px}
.sia-live-media-controls[hidden]{display:none!important}
.sia-live-media-controls .sia-live-btn{flex:1 1 150px;min-width:140px;max-width:300px;min-height:46px;line-height:1.5;background:#1d578a}
.sia-live-media-controls .sia-live-btn:focus-visible{outline:3px solid #ffc857;outline-offset:3px}
.sia-live-media-controls .sia-live-btn[aria-pressed="true"]{background:#76424b;color:white}
.sia-live-media-hint{font-size:13px;line-height:1.7;color:#c9daef;margin:9px 0}
.sia-live-camera-off{color:#f1f5fc;text-align:center;padding:34px 12px;line-height:1.8}
@media(max-width:560px){.sia-live-media-controls{gap:8px}.sia-live-media-controls .sia-live-btn{width:auto;flex:1 1 calc(50% - 8px);min-width:0;font-size:14px;padding:10px 8px}}

/* v0.3.0 — Mobile-first broadcast studio and public viewing theater.
 * All rules scoped to SIA LIVE, avoiding BuddyBoss and WordPress theme globals.
 */
.sia-live-shell{--sia-l-navy:#0d1b35;--sia-l-ink:#f7fbff;--sia-l-blue:#1768c4;--sia-l-border:rgba(255,255,255,.16);max-width:1160px;margin-inline:auto}
.sia-live-shell button,.sia-live-shell input{touch-action:manipulation}
.sia-live-console-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0 auto 12px;max-width:480px}
.sia-live-console-heading strong{font-size:18px;font-weight:800;color:#fff}
.sia-live-console-heading span{font-size:12px;color:#bed1ed}
.sia-live-camera-preview{background:linear-gradient(145deg,#0b1830,#132d4c);border:1px solid #254466;padding:16px 12px 17px;border-radius:20px;box-shadow:0 15px 45px rgba(6,21,43,.2)}
.sia-live-video-stage{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 48%,#253e5e 0%,#0b1324 78%);border:1px solid rgba(255,255,255,.18);border-radius:21px;color:#fff}
.sia-live-video-stage--host{aspect-ratio:9/16;width:100%;max-width:440px;margin:auto;max-height:min(76dvh,750px)}
.sia-live-video-stage--host .sia-live-local-media,
.sia-live-video-stage--viewer .sia-live-remote-media{position:absolute;inset:0;width:100%;height:100%;min-height:0;border-radius:0;display:flex;justify-content:center;align-items:center;background:transparent}
.sia-live-video-stage .sia-live-local-media video,
.sia-live-video-stage .sia-live-remote-media video{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none;object-fit:cover;border-radius:0;background:transparent}
.sia-live-video-stage--viewer .sia-live-remote-media video{object-fit:contain}
.sia-live-video-stage .sia-live-remote-media audio{display:none}
.sia-live-video-stage::before{content:"";position:absolute;inset:0 0 auto;min-height:112px;background:linear-gradient(180deg,rgba(4,10,21,.7),transparent);z-index:1;pointer-events:none}
.sia-live-video-stage::after{content:"";position:absolute;inset:auto 0 0;height:43%;background:linear-gradient(0deg,rgba(2,9,20,.8),transparent);z-index:1;pointer-events:none}
.sia-live-stage-top{position:absolute;z-index:3;inset:14px 14px auto;display:flex;align-items:center;gap:9px;direction:rtl;color:#fff;font-size:13px;line-height:1}
.sia-live-stage-label{display:inline-flex;align-items:center;gap:7px;border-radius:9px;padding:9px 10px;font-weight:850;background:#da3149;color:white;box-shadow:0 4px 12px #0003}
.sia-live-pulse{width:7px;height:7px;display:inline-block;background:#fff;border-radius:50%;box-shadow:0 0 0 3px #ffffff40;animation:sia-live-pulse 1.8s ease-out infinite}
@keyframes sia-live-pulse{0%,100%{box-shadow:0 0 0 3px #ffffff3a}50%{box-shadow:0 0 0 7px #ffffff00}}
.sia-live-stage-timer,.sia-live-stage-viewers{display:inline-flex;align-items:center;justify-content:center;min-height:34px;border:1px solid rgba(255,255,255,.25);background:rgba(7,16,32,.7);color:#fff;border-radius:9px;padding:0 11px;font-variant-numeric:tabular-nums;font-weight:700;backdrop-filter:blur(7px)}
.sia-live-stage-viewers{margin-inline-start:auto;gap:7px}
.sia-live-chat-overlay{position:absolute;z-index:3;bottom:16px;left:13px;right:13px;display:grid;gap:7px;pointer-events:none;min-height:0;align-content:end;max-height:38%;overflow:hidden}
.sia-live-overlay-message{display:flex;gap:5px;align-items:baseline;flex-wrap:wrap;max-width:100%;width:fit-content;line-height:1.45;text-shadow:0 1px 2px #0009;background:rgba(6,16,34,.65);border:1px solid rgba(255,255,255,.12);color:#fff;padding:7px 10px;border-radius:11px;font-size:12px;overflow-wrap:anywhere;backdrop-filter:blur(9px)}
.sia-live-overlay-message strong{font-weight:800;color:#b4e2ff;white-space:nowrap}
.sia-live-overlay-message span{display:inline;white-space:pre-wrap;overflow-wrap:anywhere}
.sia-live-media-controls{max-width:620px;margin:14px auto 8px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.sia-live-media-controls .sia-live-btn{max-width:none;min-width:0;width:100%;min-height:54px;padding:8px 5px;border-radius:12px;background:#1d4572;line-height:1.35;font-size:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.sia-live-media-controls .sia-live-btn [aria-hidden="true"]{font-size:19px;line-height:1.1}
.sia-live-media-controls .sia-live-btn.sia-live-stage-stop{background:#b7223d}
.sia-live-media-controls .sia-live-btn[aria-pressed="true"]{background:#755063}
.sia-live-camera-preview .sia-live-media-hint{max-width:620px;margin:9px auto;font-size:12px}
.sia-live-camera-preview .sia-live-broadcast-status{max-width:620px;margin:5px auto 0;padding:10px 12px;border-radius:10px;background:rgba(0,0,0,.17);font-size:13px;color:#ebf5ff}
.sia-live-stream{width:100%;min-width:0;aspect-ratio:auto;background:transparent;border-radius:0;overflow:visible}
.sia-live-video-stage--viewer{aspect-ratio:16/9;width:100%;min-height:0}
.sia-live-join-wrap{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:4;pointer-events:none}
.sia-live-join-wrap .sia-live-join{pointer-events:auto;margin:0!important;display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:190px;min-height:48px;border:1px solid rgba(255,255,255,.25);border-radius:13px;background:#1868c5;box-shadow:0 10px 35px #0006}
.sia-live-join[hidden]{display:none!important}
.sia-live-stream .sia-live-watch-status{margin:9px 4px;color:#324663;font-size:13px;line-height:1.6}
.sia-live-theater{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,.85fr);gap:14px;align-items:start}
.sia-live-chat-panel{margin:0;min-width:0;display:flex;flex-direction:column;gap:8px;max-height:580px;padding:17px}
.sia-live-chat-header{display:flex;align-items:baseline;justify-content:space-between;gap:6px}
.sia-live-chat-header h3{margin:0;font-size:17px}
.sia-live-chat-header span{font-size:11px;color:#667b98}
.sia-live-chat-panel .sia-live-chat-messages{flex:1 1 auto;min-height:250px;margin:0;height:380px;background:#f3f7fb;border:1px solid #e2eaf1;padding:12px}
.sia-live-chat-message{background:#fff;border:1px solid #e0e9f3;border-radius:11px;padding:9px 10px;box-shadow:0 1px 3px #1020300d}
.sia-live-chat-message strong{color:#195a9f}
.sia-live-chat-message p{margin:4px 0 0;color:#243450;line-height:1.45}
.sia-live-chat-form{display:flex;flex-direction:row;gap:7px;align-items:center;margin:0}
.sia-live-chat-form input{flex:1;min-height:44px;width:100%;margin:0}
.sia-live-chat-form .sia-live-btn{width:auto;min-height:44px;min-width:75px;padding:8px 14px}
.sia-live-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sia-live-shell .sia-live-btn:focus-visible,.sia-live-shell a:focus-visible,.sia-live-shell input:focus-visible{outline:3px solid #f2be64;outline-offset:3px}
@media(max-width:760px){
 .sia-live-shell{padding:0 10px;margin:8px auto}
 .sia-live-hero{padding:19px 16px}
 .sia-live-theater{grid-template-columns:minmax(0,1fr)}
 .sia-live-video-stage--viewer{aspect-ratio:9/14;max-height:72dvh;border-radius:17px}
 .sia-live-watch{max-width:650px}
 .sia-live-chat-panel{max-height:none;margin:0;padding:13px}
 .sia-live-chat-panel .sia-live-chat-messages{height:210px;min-height:155px;max-height:290px}
 .sia-live-media-controls{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .sia-live-media-controls .sia-live-btn{flex:auto;min-height:60px;font-size:11px;padding:8px 2px;max-width:none}
 .sia-live-video-stage--host{max-height:72dvh}
 .sia-live-chat-form{flex-direction:row}
 .sia-live-chat-form .sia-live-btn{width:auto}
}
@media(max-width:390px){
 .sia-live-stage-top{gap:6px;inset:11px 10px auto;font-size:12px}
 .sia-live-stage-label{padding:8px}
 .sia-live-stage-timer,.sia-live-stage-viewers{min-height:30px;padding:0 7px}
 .sia-live-overlay-message{font-size:11px;padding:6px 8px}
 .sia-live-media-controls .sia-live-btn{font-size:10px;min-height:58px}
 .sia-live-chat-form .sia-live-btn{padding:8px 10px;min-width:63px}
}
@media(prefers-reduced-motion:reduce){.sia-live-pulse{animation:none}}

/* A stream is not marked LIVE until the server confirms the start. */
.sia-live-video-stage--host:not([data-state="live"]) .sia-live-stage-label{background:#52637c}
.sia-live-video-stage--host:not([data-state="live"]) .sia-live-pulse{animation:none;box-shadow:none}

/* v0.3.1 — one-tap viewer fullscreen (desktop, Android, iOS fallback). */
.sia-live-shell .sia-live-fullscreen-toggle{
 position:absolute;left:13px;bottom:13px;z-index:7;
 display:flex;justify-content:center;align-items:center;
 width:46px;height:46px;min-width:46px;min-height:46px;margin:0;padding:0;
 background:rgba(7,16,32,.82);color:#fff;border:1px solid rgba(255,255,255,.45);
 border-radius:12px;box-shadow:0 3px 14px rgba(0,0,0,.28);
 font:700 27px/1 system-ui,sans-serif;cursor:pointer;touch-action:manipulation;
}
.sia-live-shell .sia-live-fullscreen-toggle:focus-visible{outline:3px solid #f2be64;outline-offset:3px}
.sia-live-shell .sia-live-fullscreen-toggle:hover{background:rgba(28,68,116,.94)}
.sia-live-video-stage--viewer:fullscreen,
.sia-live-video-stage--viewer:-webkit-full-screen,
.sia-live-video-stage--viewer.sia-live-faux-fullscreen{
 aspect-ratio:auto!important;
 position:fixed!important;inset:0!important;
 width:100vw!important;height:100vh!important;height:100dvh!important;
 min-width:100vw;max-width:none!important;min-height:0;max-height:none!important;
 padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
 background:#030712;z-index:2147483640;
}
.sia-live-video-stage--viewer:fullscreen .sia-live-remote-media video,
.sia-live-video-stage--viewer:-webkit-full-screen .sia-live-remote-media video,
.sia-live-video-stage--viewer.sia-live-faux-fullscreen .sia-live-remote-media video{
 object-fit:contain!important;
}
.sia-live-video-stage--viewer:fullscreen .sia-live-fullscreen-toggle,
.sia-live-video-stage--viewer:-webkit-full-screen .sia-live-fullscreen-toggle,
.sia-live-video-stage--viewer.sia-live-faux-fullscreen .sia-live-fullscreen-toggle{
 bottom:max(14px,env(safe-area-inset-bottom));left:max(14px,env(safe-area-inset-left));
}
body.sia-live-fullscreen-lock{overflow:hidden!important;overscroll-behavior:none}

/* v0.3.2: Always-on public SIA LIVE watch page. */
.sia-live-watch-standby .sia-live-standby-panel{
  text-align:center;
  max-width:760px;
  margin-inline:auto;
  padding:clamp(26px,5vw,56px) 24px;
}
.sia-live-watch-standby .sia-live-standby-panel h3{
  font-size:clamp(21px,3vw,29px);
  margin:0 0 14px;
}
.sia-live-watch-standby .sia-live-standby-panel .sia-live-btn{
  display:inline-flex;
  text-decoration:none;
  margin-top:16px;
}

/* v0.3.4: live-first layout, overlay comments/reactions, and accessible request section. */
.sia-live-shell .sia-live-request-disclosure{padding:0;overflow:hidden}
.sia-live-shell .sia-live-request-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap;min-height:76px;padding:18px 24px;background:#f7fbff;color:#182c46;border-radius:16px;cursor:pointer;user-select:none;list-style:none}
.sia-live-shell .sia-live-request-summary::-webkit-details-marker{display:none}
.sia-live-shell .sia-live-request-summary::marker{content:''}
.sia-live-shell .sia-live-request-summary:after{content:'+';margin-inline-start:auto;display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;background:#e3f0fe;color:#1767b0;font:700 25px/1 system-ui,sans-serif;border-radius:10px}
.sia-live-shell .sia-live-request-disclosure[open]>.sia-live-request-summary:after{content:'−'}
.sia-live-shell .sia-live-request-summary-title{font-size:20px;font-weight:800}
.sia-live-shell .sia-live-request-summary-help{font-size:13px;color:#6b778c}
.sia-live-shell .sia-live-request-disclosure[open]>.sia-live-request-summary{border-bottom:1px solid #dce4ee;border-radius:16px 16px 0 0}
.sia-live-shell .sia-live-request-fields{padding:20px 24px 24px}
.sia-live-shell .sia-live-request-summary:focus-visible{outline:3px solid #1767b0;outline-offset:-4px}
.sia-live-shell .sia-live-current-request .sia-live-request{border-color:#bcd7ed;background:#f8fbff}
@media(max-width:560px){
 .sia-live-shell .sia-live-request-summary{padding:16px;min-height:72px;gap:8px}
 .sia-live-shell .sia-live-request-summary-title{font-size:18px}
 .sia-live-shell .sia-live-request-summary-help{flex-basis:calc(100% - 46px);order:2;font-size:12px}
 .sia-live-shell .sia-live-request-summary:after{order:1}
 .sia-live-shell .sia-live-request-fields{padding:16px}
}


/* v0.3.4 — embedded live theater with in-video comments and reactions. */
.sia-live-panel-live-now{padding:18px}
.sia-live-panel-live-now>h3{margin:0 0 12px}
.sia-live-embedded-watch,.sia-live-public-watch-embedded{display:block}
.sia-live-public-watch-embedded .sia-live-embedded-stage-empty{background:linear-gradient(145deg,#0b1830,#132d4c);border:1px solid #254466;border-radius:20px;min-height:420px;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}
.sia-live-public-watch-embedded .sia-live-embedded-stage-empty:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at center,rgba(255,255,255,.08),transparent 55%),linear-gradient(180deg,rgba(255,255,255,.08),transparent 35%,rgba(0,0,0,.22));pointer-events:none}
.sia-live-embedded-stage-inner{position:relative;z-index:1;display:grid;gap:10px;text-align:center;padding:24px;color:#eaf3ff}
.sia-live-embedded-stage-inner strong{font-size:28px}
.sia-live-embedded-stage-inner span{font-size:15px;color:#c6d7ee}
.sia-live-theater-embedded{display:block}
.sia-live-theater-embedded .sia-live-stream{max-width:420px;margin-inline:auto}
.sia-live-stage-meta{position:absolute;right:14px;bottom:18px;z-index:3;display:grid;gap:4px;max-width:min(68%,320px);pointer-events:none}
.sia-live-stage-title,.sia-live-stage-author{display:inline-flex;width:max-content;max-width:100%;padding:8px 12px;border-radius:14px;background:rgba(5,14,29,.62);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(10px);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.sia-live-stage-title{font-weight:800;font-size:13px}
.sia-live-stage-author{font-size:12px;color:#d7e8ff}
.sia-live-video-stage--viewer .sia-live-chat-overlay{left:12px;right:12px;bottom:106px;max-height:34%;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:7px}
.sia-live-bottom-ui{position:absolute;left:12px;right:12px;bottom:12px;z-index:6;display:grid;gap:9px}
.sia-live-reaction-rail{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}
.sia-live-react-btn,.sia-live-share-btn{border:1px solid rgba(255,255,255,.24);background:rgba(8,16,31,.78);color:#fff;border-radius:999px;min-height:42px;padding:7px 12px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;backdrop-filter:blur(9px);box-shadow:0 3px 10px rgba(0,0,0,.22)}
.sia-live-react-btn{min-width:58px;justify-content:center}
.sia-live-react-btn:disabled,.sia-live-share-btn:disabled{opacity:.65;cursor:wait}
.sia-live-react-emoji{font-size:18px;line-height:1}
.sia-live-react-count{font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.sia-live-share-btn{margin-inline-start:auto;font-size:18px;line-height:1;min-width:42px;justify-content:center}
.sia-live-chat-form--overlay{display:flex;gap:7px;align-items:center;background:rgba(6,14,29,.72);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(11px);padding:8px;border-radius:16px}
.sia-live-chat-form--overlay input{background:rgba(255,255,255,.96);border:0;border-radius:999px;min-height:40px;padding:0 14px}
.sia-live-chat-form--overlay .sia-live-btn{min-height:40px;border-radius:999px;padding:8px 14px;min-width:72px}
.sia-live-chat-form--guest{display:flex;justify-content:flex-start}
.sia-live-chat-form--guest .sia-live-btn{border-radius:999px;min-height:40px;padding:8px 14px}
.sia-live-bottom-ui .sia-live-chat-status{margin:0;color:#f7fbff;font-size:12px;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.sia-live-reaction-burst{position:absolute;left:0;right:0;bottom:70px;top:16%;z-index:5;pointer-events:none;overflow:hidden}
.sia-live-burst-item{position:absolute;bottom:0;font-size:28px;line-height:1;filter:drop-shadow(0 4px 10px rgba(0,0,0,.35));animation-name:siaLiveFloat;animation-timing-function:ease-out;animation-fill-mode:forwards}
@keyframes siaLiveFloat{0%{transform:translate3d(0,0,0) scale(.88);opacity:0}10%{opacity:1}100%{transform:translate3d(var(--drift,18px),-280px,0) scale(1.28);opacity:0}}
@media(max-width:760px){
 .sia-live-public-watch-embedded .sia-live-embedded-stage-empty{min-height:360px}
 .sia-live-theater-embedded .sia-live-stream{max-width:100%}
 .sia-live-stage-meta{max-width:74%;bottom:16px}
 .sia-live-video-stage--viewer .sia-live-chat-overlay{bottom:102px;max-height:31%}
 .sia-live-bottom-ui{gap:8px}
 .sia-live-react-btn,.sia-live-share-btn{min-height:40px;padding:6px 10px}
 .sia-live-react-btn{min-width:54px}
 .sia-live-chat-form--overlay input{min-height:38px;padding:0 12px}
 .sia-live-chat-form--overlay .sia-live-btn{min-height:38px;min-width:64px;padding:8px 12px}
}
@media(max-width:420px){
 .sia-live-stage-meta{right:10px;bottom:14px;max-width:67%}
 .sia-live-stage-title,.sia-live-stage-author{padding:7px 10px;font-size:11px}
 .sia-live-video-stage--viewer .sia-live-chat-overlay{left:10px;right:10px;bottom:98px;gap:6px}
 .sia-live-react-emoji{font-size:17px}
 .sia-live-react-count{font-size:11px}
 .sia-live-react-btn,.sia-live-share-btn{padding:6px 9px}
 .sia-live-chat-form--overlay{padding:7px;gap:6px}
 .sia-live-chat-form--overlay .sia-live-btn{padding:8px 10px;min-width:60px}
}

/* v0.3.5 — viewer-requested multi-guest broadcast (host + up to 4 guests). */
.sia-live-shell .sia-live-host-guests[hidden],.sia-live-shell .sia-live-guest-actions button[hidden]{display:none!important}
.sia-live-host-guests{margin-top:15px;border:1px solid #b9d3eb;border-radius:14px;background:#f4f9ff;padding:15px;color:#19314f}
.sia-live-host-guests h4{display:flex;gap:12px;align-items:center;margin:0 0 7px;font-size:18px;color:#12355b}
.sia-live-guest-slots{display:inline-flex;background:#ddebf9;border-radius:100px;padding:3px 10px;font-size:13px;font-weight:800}
.sia-live-host-guest-help{font-size:13px;line-height:1.65;color:#526781}
.sia-live-guest-pending,.sia-live-guest-active{display:grid;gap:8px;margin:10px 0;padding:11px;background:#fff;border-radius:10px;border:1px solid #e0ebf4;font-size:13px;color:#4a5a70}
.sia-live-host-guest-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;direction:rtl}
.sia-live-host-guest-row strong{flex:1 1 140px;color:#142c4d}
.sia-live-host-guest-row small{color:#64748b}
.sia-live-guest-decision{border:1px solid #bdd8f3;border-radius:9px;color:#154d86;padding:8px 12px;background:#e6f2ff;cursor:pointer;font:inherit;white-space:nowrap}
.sia-live-guest-decision[data-decision="reject"],.sia-live-guest-decision[data-decision="remove"]{border-color:#f6bec4;color:#912b40;background:#fff1f2}
.sia-live-guest-decision:disabled{opacity:.5}
.sia-live-host-guest-status{margin:5px 0;color:#54627b;font-size:12px}
.sia-live-guest-actions{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;min-height:36px;max-width:100%;direction:rtl}
.sia-live-guest-actions button{border:1px solid rgba(255,255,255,.3);background:rgba(11,49,92,.84);color:#fff;border-radius:14px;min-height:36px;padding:7px 12px;white-space:normal;font-weight:700;font-size:12px;line-height:1.3;font-family:inherit;cursor:pointer;backdrop-filter:blur(8px)}
.sia-live-guest-actions .sia-live-guest-join-btn{background:rgba(19,112,87,.92)}
.sia-live-guest-actions .sia-live-guest-leave-btn{background:rgba(151,39,57,.9)}
.sia-live-guest-action-status{font-size:11px;color:#fff;text-shadow:0 1px 3px #000a;max-width:70%;line-height:1.5}
.sia-live-shell .sia-live-video-stage--viewer .sia-live-chat-overlay{bottom:196px;max-height:27%;right:12px;left:12px}
.sia-live-shell .sia-live-stage-meta{top:60px;bottom:auto;right:12px;max-width:75%;z-index:3}
.sia-live-stage-meta .sia-live-stage-title{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sia-live-video-stage .sia-live-local-media,.sia-live-video-stage .sia-live-remote-media{display:grid;gap:3px;grid-template-columns:1fr;grid-auto-rows:minmax(0,1fr);align-items:stretch;justify-content:stretch;padding:3px}
.sia-live-video-stage .sia-live-local-media[data-tiles="2"],.sia-live-video-stage .sia-live-remote-media[data-tiles="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.sia-live-video-stage .sia-live-local-media[data-tiles="3"],.sia-live-video-stage .sia-live-remote-media[data-tiles="3"],
.sia-live-video-stage .sia-live-local-media[data-tiles="4"],.sia-live-video-stage .sia-live-remote-media[data-tiles="4"]{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
.sia-live-video-stage .sia-live-local-media[data-tiles="5"],.sia-live-video-stage .sia-live-remote-media[data-tiles="5"]{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
.sia-live-video-stage .sia-live-media-tile{position:relative;min-width:0;min-height:0;background:#101c30;overflow:hidden;border-radius:9px;display:flex;justify-content:center;align-items:center;isolation:isolate}
.sia-live-video-stage .sia-live-media-tile>video{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;border-radius:0;background:transparent}
.sia-live-video-stage .sia-live-media-tile>.sia-live-tile-name{position:absolute;bottom:6px;right:7px;z-index:1;max-width:85%;color:#fff;border-radius:6px;background:rgba(6,14,27,.72);padding:3px 7px;font-size:11px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:none}
.sia-live-video-stage .sia-live-media-tile>audio{display:none}
.sia-live-video-stage--host .sia-live-local-media.sia-live-mirror .sia-live-media-tile[data-participant="sia-host-self"] video{transform:scaleX(-1)}
.sia-live-video-stage--viewer .sia-live-remote-media .sia-live-media-tile video{object-fit:contain}
.sia-live-video-stage--host .sia-live-local-media .sia-live-media-tile video{transform:none}
.sia-live-video-stage--host .sia-live-chat-overlay{bottom:66px;max-height:28%;right:12px;left:12px}
.sia-live-host-reaction-tally{position:absolute;left:12px;bottom:14px;z-index:4;padding:7px 10px;border:1px solid #ffffff4d;border-radius:100px;background:#060e1ecc;font-size:13px;color:#fff;direction:ltr}
.sia-live-video-stage--host .sia-live-reaction-burst{bottom:55px;z-index:4}
@media(max-width:760px){
 .sia-live-shell .sia-live-video-stage--viewer .sia-live-chat-overlay{bottom:187px;max-height:26%}
 .sia-live-guest-action-status{max-width:60%}
 .sia-live-shell .sia-live-stage-meta{top:56px;bottom:auto;max-width:70%}
 .sia-live-video-stage .sia-live-media-tile>.sia-live-tile-name{font-size:10px;padding:2px 5px}
}
@media(max-width:420px){
 .sia-live-shell .sia-live-video-stage--viewer .sia-live-chat-overlay{bottom:180px;max-height:24%}
 .sia-live-guest-actions{min-height:32px}
 .sia-live-guest-actions button{font-size:11px;padding:6px 9px}
 .sia-live-guest-action-status{font-size:10px;max-width:54%}
 .sia-live-media-tile>.sia-live-tile-name{font-size:9px}
}

.sia-live-guest-login-link{display:inline-flex;align-items:center;border:1px solid #ffffff4d;background:#092b50d9;color:#fff!important;font-size:12px;font-weight:750;border-radius:14px;padding:7px 12px;text-decoration:none}
/* Keep viewer video tiles clear of the on-screen comment/reaction controls. */
.sia-live-video-stage--viewer .sia-live-remote-media{padding:3px 3px 164px}
.sia-live-video-stage--viewer .sia-live-remote-media[data-tiles="5"]{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}
.sia-live-video-stage--viewer .sia-live-remote-media[data-tiles="5"]>.sia-live-media-tile:first-child{grid-column:span 2}
.sia-live-video-stage--host .sia-live-local-media[data-tiles="5"]{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}
.sia-live-video-stage--host .sia-live-local-media[data-tiles="5"]>.sia-live-media-tile:first-child{grid-column:span 2}
.sia-live-embedded-watch .sia-live-stage-meta,.sia-live-watch .sia-live-stage-meta{top:60px;bottom:auto;right:12px;max-width:75%;z-index:3}
.sia-live-embedded-watch .sia-live-video-stage--viewer .sia-live-chat-overlay,.sia-live-watch .sia-live-video-stage--viewer .sia-live-chat-overlay{bottom:196px;max-height:27%;right:12px;left:12px}
@media(max-width:760px){.sia-live-video-stage--viewer{aspect-ratio:9/16;max-height:78dvh}.sia-live-video-stage--viewer .sia-live-remote-media{padding-bottom:164px}}
@media(max-width:420px){.sia-live-video-stage--viewer .sia-live-remote-media{padding-bottom:160px}.sia-live-embedded-watch .sia-live-video-stage--viewer .sia-live-chat-overlay,.sia-live-watch .sia-live-video-stage--viewer .sia-live-chat-overlay{bottom:182px;max-height:22%}}
/* Fullscreen stays IN the reaction row; never covers the comment input. */
.sia-live-video-stage--viewer .sia-live-reaction-rail .sia-live-fullscreen-toggle{
 position:static!important;inset:auto!important;flex:0 0 42px;width:42px;height:42px;min-width:42px;min-height:42px;
 border-radius:999px;font-size:21px;padding:0;box-shadow:0 3px 10px #0003;
}
.sia-live-theater-embedded .sia-live-video-stage--viewer{aspect-ratio:9/16;max-height:78dvh}

/* v0.3.7 — polished in-video conversation, BuddyBoss avatars and a dedicated pinned comment. */
.sia-live-shell .sia-live-pinned-comment[hidden]{display:none!important}
.sia-live-video-stage .sia-live-pinned-comment{
 position:absolute;z-index:4;top:116px;right:12px;left:12px;
 display:grid;gap:5px;width:auto;max-width:min(94%,490px);
 border-radius:14px;padding:8px 10px;background:rgba(9,21,42,.84);
 border:1px solid rgba(251,200,76,.58);box-shadow:0 9px 25px rgba(0,0,0,.26);
 color:#fff;backdrop-filter:blur(9px);overflow:hidden;
}
.sia-live-video-stage--host .sia-live-pinned-comment{top:62px;max-width:95%;}
.sia-live-pin-label{font-size:11px;font-weight:800;color:#f8dd8c;line-height:1.35}
.sia-live-pinned-content{display:flex;align-items:center;gap:8px;min-width:0;direction:rtl}
.sia-live-video-stage .sia-live-comment-avatar{width:32px;height:32px;flex:0 0 32px;border-radius:50%;object-fit:cover;background:#1c3c66;border:1px solid rgba(255,255,255,.38);color:#fff;display:grid;place-items:center;font-size:18px}
.sia-live-video-stage .sia-live-comment-avatar-fallback{font-size:16px}
.sia-live-comment-copy{min-width:0;flex:1;display:flex;gap:4px;align-items:baseline;flex-wrap:wrap;direction:rtl;line-height:1.48;white-space:normal;overflow-wrap:anywhere}
.sia-live-comment-copy strong{font-size:12px;color:#bfeaff;font-weight:800;white-space:normal}
.sia-live-comment-copy>span{font-size:12px;color:#fff;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;max-width:100%}
.sia-live-video-stage .sia-live-overlay-message{max-width:96%;width:fit-content;gap:8px;display:flex;align-items:flex-start;flex-wrap:nowrap;text-align:right;padding:7px 10px;border-radius:15px;background:rgba(6,15,33,.76);direction:rtl;}
.sia-live-pin-button{flex:0 0 auto;align-self:center;border:1px solid rgba(255,255,255,.32);background:rgba(32,66,107,.7);border-radius:999px;color:#fff;font-size:12px;line-height:1.2;padding:6px 7px;cursor:pointer;pointer-events:auto;white-space:nowrap}
.sia-live-pin-button:hover,.sia-live-pin-button:focus-visible{background:#2a73ac;outline:2px solid #f4c36d;outline-offset:2px}
.sia-live-pin-button:disabled{opacity:.55;cursor:wait}
.sia-live-video-stage .sia-live-chat-overlay{z-index:5;pointer-events:none}
.sia-live-video-stage .sia-live-chat-overlay .sia-live-pin-button{pointer-events:auto}
.sia-live-video-stage .sia-live-pinned-comment .sia-live-pin-button{pointer-events:auto}
.sia-live-video-stage .sia-live-pinned-comment:not(:has(.sia-live-pin-button)){pointer-events:none}
.sia-live-shell .sia-live-effects-toggle{display:inline-flex;flex:0 0 38px;height:40px;align-items:center;justify-content:center;background:rgba(8,16,31,.78);border:1px solid rgba(255,255,255,.3);border-radius:999px;color:#fff;font-size:18px;cursor:pointer;padding:0}
.sia-live-shell .sia-live-effects-toggle[aria-pressed="false"]{opacity:.62}
.sia-live-shell .sia-live-effects-toggle:focus-visible{outline:3px solid #f1bb67;outline-offset:2px}
.sia-live-shell .sia-live-effects-toggle:disabled{opacity:.5;cursor:not-allowed}
.sia-live-video-stage .sia-live-burst-item{will-change:transform,opacity;font-size:clamp(24px,4vw,36px);animation-name:siaLiveFloat037}
@keyframes siaLiveFloat037{0%{transform:translate3d(0,0,0) rotate(0deg) scale(.6);opacity:0}12%{opacity:1}42%{transform:translate3d(calc(var(--drift,16px)*.48),calc(var(--rise,-270px)*.48),0) rotate(calc(var(--rotation,10deg)*.42)) scale(1.22)}100%{transform:translate3d(var(--drift,16px),var(--rise,-270px),0) rotate(var(--rotation,10deg)) scale(1.04);opacity:0}}
.sia-live-shell .sia-live-react-btn:active{transform:scale(.95)}
/* The comment column is isolated above controls; no overlap with emoji buttons. */
.sia-live-embedded-watch .sia-live-video-stage--viewer .sia-live-chat-overlay,
.sia-live-watch .sia-live-video-stage--viewer .sia-live-chat-overlay{bottom:190px;max-height:24%;}
.sia-live-video-stage--host .sia-live-chat-overlay{bottom:66px;max-height:29%}
@media(max-width:560px){
 .sia-live-video-stage--viewer .sia-live-pinned-comment{top:107px;right:9px;left:9px;padding:7px 8px;max-width:calc(100% - 18px)}
 .sia-live-video-stage--host .sia-live-pinned-comment{top:56px}
 .sia-live-video-stage .sia-live-comment-avatar{width:27px;height:27px;flex-basis:27px}
 .sia-live-video-stage .sia-live-overlay-message{max-width:95%;padding:6px 8px;gap:6px}
 .sia-live-comment-copy>span,.sia-live-comment-copy strong{font-size:11px}
 .sia-live-embedded-watch .sia-live-video-stage--viewer .sia-live-chat-overlay,
 .sia-live-watch .sia-live-video-stage--viewer .sia-live-chat-overlay{bottom:185px;max-height:23%}
}
@media(max-width:390px){
 .sia-live-video-stage--viewer .sia-live-pinned-comment{top:102px;max-width:calc(100% - 20px)}
 .sia-live-video-stage .sia-live-overlay-message{max-width:94%}
 .sia-live-embedded-watch .sia-live-video-stage--viewer .sia-live-chat-overlay,
 .sia-live-watch .sia-live-video-stage--viewer .sia-live-chat-overlay{bottom:181px;max-height:22%}
 .sia-live-shell .sia-live-effects-toggle{flex-basis:34px;width:34px;height:38px;font-size:16px}
}
@media(prefers-reduced-motion:reduce){
 .sia-live-burst-item,.sia-live-pulse{animation:none!important;display:none!important}
 .sia-live-react-btn:active{transform:none}
}
/* Allocate enough vertical space for a pinned message + live chat + guest/reaction controls.
   Wide screens previously compressed 16:9 video to ~250px and caused overlays to collide. */
.sia-live-shell .sia-live-video-stage--viewer{min-height:min(520px,75dvh)}
