/* Haske247 GoLive V7.5: minimal room presentation, additive CSS, no RTC/payment logic */
/* Promotional panel belongs to discovery/lobby only. Joining sets #live.hidden=false. */
body.golive-spaces:has(#live:not([hidden])) .gl-next-hero,
body.golive-spaces:has(#live:not([hidden])) #createForm,
body.golive-spaces:has(#live:not([hidden])) #lobby {display:none!important}

/* Prioritize the content when inside a room. */
body.golive-spaces:has(#live:not([hidden])) .shell{max-width:1100px!important;padding-top:8px!important}
body.golive-spaces #live.house-live{padding:clamp(12px,2vw,24px)!important;border-radius:20px!important;overflow:visible}
body.golive-spaces #live .house-stage{padding:7px 0!important;margin:0}
body.golive-spaces #live .stage-sec{margin:8px 0 12px}
body.golive-spaces #live .stage-head{font-size:11px;letter-spacing:.045em;margin-bottom:9px}
body.golive-spaces #live .spk-grid{grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;max-width:760px;margin-inline:auto}
body.golive-spaces #live .spk{background:transparent!important;border:0!important;border-radius:13px!important;padding:8px 3px!important;box-shadow:none!important}
body.golive-spaces #live .spk-face{width:60px;height:60px}
body.golive-spaces #live .spk-role{font-size:10px;opacity:.8}
body.golive-spaces #live .aud-grid{gap:10px 8px}
body.golive-spaces #live .aud-face{width:38px;height:38px}
body.golive-spaces #live .presence-bar{border-radius:13px!important;padding:8px 12px!important}

/* Theater uses adaptive, restrained tiles; preserves existing media elements. */
body.golive-spaces #live .video-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;gap:8px!important;max-width:100%!important;margin:8px 0!important}
body.golive-spaces #live .video-grid>.video-tile{min-width:0;overflow:hidden;border-radius:14px!important;box-shadow:none!important}
body.golive-spaces #live .video-grid>.video-tile:only-child{width:min(100%,690px)!important;justify-self:center}

/* Chat resembles clean transcript rather than stacked oversized cards. */
body.golive-spaces #live .chat-panel{background:transparent!important;border:0!important;padding:8px 0!important;margin:8px 0!important;box-shadow:none!important}
body.golive-spaces #live .v7-chat-head{padding:2px 1px 10px}
body.golive-spaces #live .v7-chat-head h3{font-size:14px!important;font-weight:750!important;letter-spacing:0}
body.golive-spaces #live .v7-chat-head #chatHide{font-size:12px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:7px 10px!important;min-height:34px!important}
body.golive-spaces #live .chat-messages{gap:3px!important;max-height:min(32dvh,260px);min-height:72px;padding:3px 1px 8px!important;scroll-behavior:auto!important;contain:content}
body.golive-spaces #live .chat-msg,body.golive-spaces #live .chat-msg.mine{display:block;background:transparent!important;border:0!important;border-radius:9px!important;padding:7px 8px!important;margin:0!important;font-size:13px!important;line-height:1.5!important;box-shadow:none!important}
body.golive-spaces #live .chat-msg.mine{background:rgba(143,119,204,.08)!important}
body.golive-spaces #live .chat-msg .who{font-weight:750!important;margin-right:7px!important;color:var(--accent-text)!important}
body.golive-spaces #live .chat-msg .when{font-size:10px!important;white-space:nowrap;opacity:.72}
body.golive-spaces #live .chat-msg .v7-msg-reply{font-size:11px!important;color:var(--muted)!important;background:transparent!important;border:0!important;padding:3px 7px!important;opacity:.7}
body.golive-spaces #live .chat-msg .v7-msg-reply:focus-visible,body.golive-spaces #live .chat-msg:hover .v7-msg-reply{opacity:1}
body.golive-spaces #live .chat-msg .del{background:transparent!important;min-height:28px!important}

/* Composer: message + send first, secondary actions underneath, normal sizing. */
body.golive-spaces #live .v7-chat-composer{display:grid!important;grid-template-columns:38px 38px minmax(0,1fr) auto!important;grid-template-areas:'input input input send' 'hide react love love'!important;gap:7px!important;align-items:center!important;margin-top:7px!important}
body.golive-spaces #live .v7-chat-composer #chatInput{grid-area:input!important;width:100%;min-width:0;min-height:44px!important;border-radius:12px!important;padding:8px 12px!important;font-size:14px!important;box-shadow:none!important}
body.golive-spaces #live .v7-chat-composer #chatSend{grid-area:send!important;min-height:44px!important;border-radius:12px!important;padding:8px 15px!important;font-size:13px!important}
body.golive-spaces #live .v7-chat-composer #chatHideInline{grid-area:hide!important}
body.golive-spaces #live .v7-chat-composer .v7-react-wrap{grid-area:react!important}
body.golive-spaces #live .v7-chat-composer #showLove{grid-area:love!important;width:100%!important;min-height:38px!important;font-size:13px!important;border-radius:12px!important;box-shadow:none!important}
body.golive-spaces #live .v7-chat-composer .v7-icon-btn{min-width:0!important;min-height:38px!important;font-size:15px!important;border-radius:11px!important;box-shadow:none!important}
body.golive-spaces #live .v7-chat-composer .react-popover{position:absolute;z-index:35;bottom:100%;left:0;max-width:min(340px,95vw);box-shadow:0 12px 25px rgba(0,0,0,.22)!important}

/* Dock: two essential media buttons followed by quiet actions. */
body.golive-spaces #live .dock{background:var(--surface)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;border-top:1px solid var(--line)!important;padding-top:10px!important}
body.golive-spaces #live .dock .media-toggles{gap:8px!important;margin:0 0 8px!important}
body.golive-spaces #live .dock .toggle-btn{min-height:44px!important;border-radius:12px!important;box-shadow:none!important;font-size:14px!important}
body.golive-spaces #live .dock .dock-actions{gap:7px!important}
body.golive-spaces #live .dock .dock-actions button{min-height:40px!important;border-radius:12px!important;font-size:12px!important;padding:8px 9px!important;box-shadow:none!important}

@media(max-width:600px){
 body.golive-spaces #live.house-live{padding:12px!important}
 body.golive-spaces #live .spk-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.golive-spaces #live .video-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.golive-spaces #live .video-grid>.video-tile:only-child{grid-column:1/-1}
 body.golive-spaces #live .chat-messages{max-height:min(30dvh,225px)}
 body.golive-spaces #live .v7-chat-composer #showLove{background:var(--btn)!important;color:var(--text)!important}
 body.golive-spaces #live .dock{padding-bottom:calc(8px + env(safe-area-inset-bottom))!important}
}
@media(prefers-reduced-motion:reduce){body.golive-spaces #live .spk.talking .spk-face{animation:none!important}}
:root[data-theme='light'] body.golive-spaces #live .chat-msg.mine{background:rgba(110,78,175,.07)!important}
