/* Approved three-mode LIVE Overlay. All styles are scoped to the room route.
   Existing LIVE effects, gifts, chat nodes, video tracks, VIP & Guild assets survive. */
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-mo-bottom {
 position:absolute;inset:auto 0 max(8px,env(safe-area-inset-bottom,0px)) 0;
 width:100%;max-width:none;min-width:0;
 height:auto;display:flex;flex-direction:row;align-items:center;
 justify-content:flex-start;gap:4px;padding:0 max(7px,env(safe-area-inset-right,0px)) 0 max(7px,env(safe-area-inset-left,0px));
 margin:0;border:0!important;background:transparent!important;z-index:75;
 pointer-events:auto;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-mo-shortcuts{
 display:flex;flex:0 0 auto;flex-direction:row;flex-wrap:nowrap;
 align-items:center;justify-content:flex-start;gap:3px;
 height:auto;width:auto;padding:0;margin:0;pointer-events:auto;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-mo-bottom .lov-mo-round{
 width:33px;height:36px;min-width:33px;min-height:36px;
 flex:0 0 33px;padding:5px;border-radius:50%!important;
 margin:0;display:grid;place-items:center;pointer-events:auto;
 background:#12263996!important;border:1px solid #82cde466!important;color:#e4faff!important;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-mo-bottom .lov-unified-modes-trigger{
 border-radius:8px!important;background:#18354bc9!important;font-size:23px!important;font-weight:800!important;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-mo-bottom .lov-hud-viewer-compose{
 position:relative;inset:auto;left:auto;right:auto;bottom:auto;
 flex:1 1 0;min-width:0;max-width:none;width:auto;
 margin:0;padding:0;z-index:76;display:flex;
 pointer-events:auto;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-mo-bottom .lov-hud-viewer-compose .chat-send{
 min-width:0;width:100%;padding:2px 4px;gap:2px;
 background:#0e1828a8!important;border:1px solid #ffffff55!important;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-mo-bottom .lov-hud-viewer-compose textarea{
 font-size:14px!important;padding:6px 2px;min-width:0;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-mo-bottom .lov-unified-more{
 display:grid;flex:0 0 33px;min-width:33px;pointer-events:auto;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-mo-bottom .lov-mo-round[hidden],
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-mo-bottom [hidden]{
 display:none!important;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-chat{
 z-index:var(--lov-z-chat-mobile,30);bottom:max(57px,env(safe-area-inset-bottom,0px) + 53px);
 max-height:min(28%,220px);
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-mobile-overlay{
 z-index:var(--lov-z-mobile-overlay,60);
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-mo-top{
 z-index:65;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-mobile-overlay .lov-mo-right{
 display:flex;align-items:flex-start;gap:4px;flex-wrap:nowrap;max-width:52%;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-mobile-overlay .lov-unified-top-action{
 display:grid;place-items:center;flex:0 0 26px;width:26px;height:28px;
 padding:0;margin:0;border:0!important;border-radius:50%!important;
 background:#091827b8!important;color:#fff!important;font-size:15px!important;pointer-events:auto;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-mobile-overlay .lov-mo-host-stack{
 min-width:0;max-width:55%;display:flex;flex-direction:column;gap:3px;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-mobile-overlay .lov-unified-host-summary{
 display:flex;flex-wrap:wrap;align-items:center;gap:4px;
 max-width:100%;color:#d2f6ff!important;font-size:10px!important;pointer-events:auto;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-mobile-overlay .lov-unified-host-summary>button,
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-mobile-overlay .lov-unified-host-summary>span{
 padding:2px 5px;border:1px solid #84d5e954!important;border-radius:12px!important;
 background:#091a2ac5!important;color:#e1faff!important;max-width:100%;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-unified-modes-menu,
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-unified-drawer{
 position:absolute;z-index:1000;pointer-events:auto;
 box-sizing:border-box;overscroll-behavior:contain!important;color:#f3fbff!important;
 background:linear-gradient(145deg,#101c32f8,#102e43f9)!important;border:1px solid #57a7cbbb!important;
 box-shadow:0 16px 40px #000d!important;backdrop-filter:blur(15px)!important;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-unified-modes-menu{
 left:8px;right:8px;bottom:max(62px,env(safe-area-inset-bottom,0px) + 54px);
 padding:12px;border-radius:16px!important;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-unified-modes-menu[hidden],
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-unified-drawer[hidden],
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-unified-drawer-scrim[hidden]{
 display:none!important;
}
.lov-unified-mode-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.lov-unified-mode-tile{display:flex;flex-direction:column;align-items:center;gap:5px;min-height:96px;padding:9px 5px;
 border:1px solid #4a8fae;border-radius:11px;background:#163d55d9;color:#e5f8ff;font-size:23px;cursor:pointer}
.lov-unified-mode-tile strong{font-size:12px}.lov-unified-mode-tile small{font-size:10px;color:#b9e2f2}
.lov-unified-mode-tile[aria-pressed="true"]{border-color:#69e6fb;box-shadow:0 0 14px #50daed55}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-unified-drawer-scrim{
 position:absolute;inset:0;z-index:990;background:#0009!important;pointer-events:auto;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-unified-drawer{
 inset:0 auto 0 0;width:min(86%,385px);overflow-y:auto;
 border-radius:0 18px 18px 0!important;padding:18px 14px max(18px,env(safe-area-inset-bottom,0px));
}
.lov-unified-drawer-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.lov-unified-drawer-head strong{font-size:16px}.lov-unified-drawer-head button{border:0;background:transparent;color:white;font-size:22px}
.lov-unified-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}
.lov-unified-stat-grid>div{display:grid;gap:5px;padding:10px;border-radius:10px;background:#1f3752;color:#cbe9f5;font-size:11px}
.lov-unified-stat-grid b{color:white;font-size:18px}.lov-unified-drawer h3{font-size:13px;color:#c2eaff}
.lov-unified-donor{display:flex;justify-content:space-between;gap:8px;padding:5px 0;border-bottom:1px solid #ffffff22;font-size:11px}

/* 16:9 is a different scene, not a side panel added to 9:16.
   Reuse the existing live media player & one speaker-grid. */
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-watch-party[hidden]{display:none!important}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="youtube"] #lov-main-stage #lov-watch-party{
 display:block;position:absolute;top:clamp(78px,13%,104px);
 left:0;right:0;height:min(28%,56vw);padding:0 8px;
 margin:0;border:0!important;z-index:4;pointer-events:auto;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-watch-player{
 height:100%;width:100%;display:grid;place-items:center;
 background:#05090f!important;overflow:hidden;border-radius:8px!important;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-watch-player #live-cinema-stage{
 display:block;width:100%;height:100%;min-height:0;border:0!important;background:#05090f!important;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-watch-player #live-cinema-stage iframe,
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-watch-player #live-cinema-stage video{
 display:block;width:100%;height:100%;max-height:none;aspect-ratio:16/9;border:0!important;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room .lov-watch-youtube-form{flex-wrap:nowrap;gap:5px;align-items:center;
 margin-top:3px;position:relative;z-index:10;pointer-events:auto;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room .lov-watch-youtube-form[hidden]{display:none!important}
.lov-watch-youtube-form label{display:flex;align-items:center;gap:5px;font-size:10px;flex:1;min-width:0}
.lov-watch-youtube-form input{flex:1;min-width:0;padding:5px 8px!important;font-size:12px!important;background:#112b3d!important;color:#fff!important;border:1px solid #5dabc2!important;border-radius:7px!important}
.lov-watch-youtube-form button{flex:0 0 auto;padding:6px 8px;border:1px solid #64cbe5;border-radius:7px;background:#14617b;color:white;font-size:11px}
.lov-watch-placeholder{color:#becddc;font-size:14px;text-align:center}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-multi-spotlight[hidden]{display:none!important}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-multi-spotlight{
 display:block;position:absolute;z-index:40;
 bottom:calc(20% + 70px);left:10px;right:10px;
 padding:6px 10px;background:#142e48cc!important;border:1px solid #b6dbff66!important;
 border-radius:10px!important;color:#ffe2a6!important;font-size:11px!important;pointer-events:none;
}

/* Adaptive 9:16 guest layout, same camera tiles and preserved chat overlay. */
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="multiguest"] #lov-main-stage #lov-scene-tiles{
 display:block;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="multiguest"] #lov-main-stage #speaker-grid{
 display:grid;position:absolute;inset:0;width:100%;height:100%;
 grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:3px;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="multiguest"] #lov-main-stage #speaker-grid>.room-tile{
 grid-column:span 3;grid-row:auto;height:100%;min-height:0;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="multiguest"] #lov-main-stage #speaker-grid[data-live-count="1"]>.room-tile:first-child{
 grid-column:span 6;grid-row:span 2;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="multiguest"] #lov-main-stage #speaker-grid[data-live-count="2"]>.room-tile{
 grid-column:span 3;grid-row:span 2;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="multiguest"] #lov-main-stage #speaker-grid[data-live-count="3"]>.room-tile:first-child{
 grid-column:span 6;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="multiguest"] #lov-main-stage #speaker-grid[data-live-count="4"]>.room-tile{
 grid-column:span 3;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="multiguest"] #lov-main-stage #speaker-grid[data-live-count="5"]>.room-tile:nth-child(-n+2){
 grid-column:span 3;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="multiguest"] #lov-main-stage #speaker-grid[data-live-count="5"]>.room-tile:nth-child(n+3){
 grid-column:span 2;
}

/* Watch Party: YouTube on top, one 4x2 grid below it, comments beneath the cells. */
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="youtube"] #lov-main-stage #lov-scene-tiles{
 display:block;position:absolute;inset:calc(clamp(78px,13%,104px) + min(28%,56vw) + 22px) 8px calc(var(--lov-mobile-footer,60px) + 20%) 8px;
 top:calc(clamp(78px,13%,104px) + min(28%,56vw) + 22px);
 bottom:calc(var(--lov-mobile-footer,60px) + 20%);width:auto;height:auto;
 max-height:none;background:transparent!important;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="youtube"] #lov-main-stage #speaker-grid{
 display:grid;width:100%;height:100%;grid-template-columns:repeat(4,minmax(0,1fr));
 grid-template-rows:repeat(2,minmax(0,1fr));gap:3px;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="youtube"] #lov-main-stage #speaker-grid>.room-tile,
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="youtube"] #lov-main-stage #speaker-grid>.lov-mode-vacancy{
 display:flex;grid-column:auto;grid-row:auto;min-width:0;min-height:0;
 width:100%;height:100%;max-width:none;max-height:none;
 aspect-ratio:auto;flex-direction:column;align-items:center;justify-content:center;
 padding:0;margin:0;border:1px solid #4e748e88!important;border-radius:5px!important;
 background:#1d2a3dcf!important;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="youtube"] #lov-main-stage #speaker-grid>.lov-mode-vacancy{
 color:#aac9e3!important;font-size:10px!important;pointer-events:auto;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="youtube"] #lov-chat{
 bottom:max(55px,env(safe-area-inset-bottom,0px) + 52px);
 max-height:18%;height:18%;width:calc(100% - 16px);
 max-width:none;left:8px;right:8px;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="youtube"] #lov-main-stage #lov-mobile-overlay .lov-mo-bottom{
 bottom:max(7px,env(safe-area-inset-bottom,0px));
}

@media(max-width:380px){
 html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-mo-bottom{
  gap:2px;padding-left:4px;padding-right:4px;
 }
 html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-mo-bottom .lov-mo-round{
  width:29px;min-width:29px;flex-basis:29px;
 }
}

.lov-unified-drawer-tabs{display:flex;gap:7px;margin:12px 0}
.lov-unified-drawer-tabs button{flex:1;min-height:38px;padding:6px 9px;border:1px solid #4b839b;border-radius:10px;background:#152c3f;color:#d5e8f5;font-size:12px;font-weight:650}
.lov-unified-drawer-tabs button[aria-selected="true"]{background:#16516b;color:#fff;border-color:#70d6ef}
.lov-unified-drawer [data-unified-panel][hidden]{display:none!important}

/* MICRO 1 — overlay layering. Scoped to active mobile LIVE room only. */
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-mobile-layered #lov-main-stage{
 z-index:auto;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-mobile-layered #lov-main-stage #lov-scene-tiles,
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-mobile-layered #lov-main-stage #lov-watch-party{
 z-index:1;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-chat{
 z-index:20;
 bottom:max(60px,calc(env(safe-area-inset-bottom,0px) + 56px));
 max-height:min(26dvh,210px);
 transition:opacity .16s ease,visibility .16s ease;
}
html body.in-live-room.lov-mo-live.lov-overlay-panel-open #main #lov-studio-v2 #lov-chat{
 opacity:0!important;visibility:hidden!important;pointer-events:none;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-unified-modes-menu{
 z-index:120;
 bottom:max(64px,calc(env(safe-area-inset-bottom,0px) + 58px));
 max-height:calc(var(--lov-viewport-height,100dvh) - 140px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
 overflow-y:auto;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-unified-drawer-scrim{
 z-index:130;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-unified-drawer{
 z-index:140;
 padding-top:max(18px,env(safe-area-inset-top,0px));
 padding-bottom:max(18px,env(safe-area-inset-bottom,0px));
}

/* Three active scene choices. */
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-unified-mode-tiles{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:7px;
 width:100%;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-unified-mode-tile{
 box-sizing:border-box;min-width:0;min-height:90px;
 height:auto;padding:9px 4px;
 overflow-wrap:anywhere;white-space:normal!important;line-height:1.2!important;
 text-align:center!important;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-unified-mode-tile strong{
 font-size:11px!important;line-height:1.25!important;white-space:normal!important;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-unified-mode-tile small{
 font-size:10px!important;line-height:1.2!important;white-space:normal!important;
}

/* Emoji picker belongs to the existing chat form: no second chat instance. */
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-hud-viewer-compose form[data-form="room-chat"]{
 position:relative;overflow:visible;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-hud-viewer-compose .lov-chat-editor{
 position:static;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-chat-emoji-picker{
 position:absolute;
 bottom:calc(var(--hud-bottom-height,64px) + 12px);
 left:0;right:auto;top:auto;
 z-index:60;width:min(330px,calc(100vw - 24px));
 max-height:min(35dvh,250px);overflow-y:auto;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay .lov-chat-emoji-picker[hidden]{
 display:none!important;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room:has(.lov-chat-emoji-picker:not([hidden])) #lov-chat{
 bottom:max(330px,calc(env(safe-area-inset-bottom,0px) + 300px))!important;
 max-height:min(18dvh,130px)!important;
}
/* Audience only: hide the legacy card and keep one horizontal TikTok-style control row. */
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-mobile-overlay[data-hud-role="viewer"] .lov-viewer-actions,
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-mobile-overlay[data-hud-role="guest"] .lov-viewer-actions{
 display:none;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay[data-hud-role="viewer"] .lov-mo-bottom,
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay[data-hud-role="guest"] .lov-mo-bottom{
 display:flex;flex-direction:row;flex-wrap:nowrap;
 align-items:center;gap:4px;width:100%;
 padding-inline:max(6px,env(safe-area-inset-left,0px)) max(6px,env(safe-area-inset-right,0px));
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay:is([data-hud-role="viewer"],[data-hud-role="guest"]) .lov-mo-bottom .lov-hud-viewer-compose{
 order:0;flex:1 1 auto;min-width:0;width:auto;
 max-width:none;position:relative;inset:auto;
 margin:0;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay:is([data-hud-role="viewer"],[data-hud-role="guest"]) .lov-mo-bottom .lov-mo-shortcuts{
 order:1;flex:0 0 auto;display:flex;flex-direction:row;
 flex-wrap:nowrap;gap:3px;min-width:0;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-main-stage #lov-mobile-overlay:is([data-hud-role="viewer"],[data-hud-role="guest"]) .lov-mo-bottom .lov-mo-shortcuts>.lov-mo-round{
 width:32px;min-width:32px;height:36px;min-height:36px;
 flex:0 0 32px;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room #lov-mobile-overlay:is([data-hud-role="viewer"],[data-hud-role="guest"]) .lov-mo-bottom .lov-hud-viewer-compose textarea{
 min-width:0;width:100%;
}
/* Keep the link and Play control fully inside narrow iPhone Watch Party layouts. */
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room .lov-watch-youtube-form{
 display:flex;width:100%;min-width:0;max-width:100%;
 box-sizing:border-box;overflow:hidden;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room .lov-watch-youtube-form label{
 flex:1 1 0%;min-width:0;width:auto;overflow:hidden;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room .lov-watch-youtube-form input{
 flex:1 1 auto;min-width:0;width:100%;max-width:100%;
 box-sizing:border-box;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room .lov-watch-youtube-form button{
 flex:0 0 auto;white-space:nowrap!important;max-width:38%;
}


/* Emergency scene isolation: only the selected LIVE mode may own the stage. */
html body.in-live-room #lov-studio-v2.lov-clean-room[data-unified-mode="solo"] #lov-watch-party,
html body.in-live-room #lov-studio-v2.lov-clean-room[data-unified-mode="multiguest"] #lov-watch-party,
html body.in-live-room #lov-studio-v2.lov-clean-room:not([data-unified-mode="youtube"]) :is(#lov-cinema,#lov-cinema-cell,#lov-cinema-tools,#live-cinema-stage,.lov-watch-youtube-form,.lov-watch-placeholder),
html body.in-live-room #lov-studio-v2.lov-clean-room:not([data-unified-mode="youtube"]) #lov-scene-tiles .lov-mode-vacancy,
html body.in-live-room #lov-studio-v2.lov-clean-room[data-unified-mode="solo"] #lov-multi-spotlight{
 display:none;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="solo"] #lov-main-stage #lov-scene-tiles{
 display:block;position:absolute;inset:0;
 width:100%;height:100%;max-height:none;overflow:hidden;
 padding:0;margin:0;border:0!important;background:transparent!important;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="solo"][data-layout="solo"] #lov-main-stage #speaker-grid{
 display:grid;position:absolute;inset:0;width:100%;height:100%;
 grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);
 gap:0;padding:0;margin:0;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="solo"][data-layout="solo"] #lov-main-stage #speaker-grid>.lov-host-tile{
 display:block;grid-column:1/-1;grid-row:1/-1;
 position:relative;inset:auto;width:100%;height:100%;min-width:0;
 max-width:none;max-height:none;aspect-ratio:auto;
 padding:0;margin:0;border:0!important;border-radius:0!important;
 overflow:hidden;
}
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="solo"][data-layout="solo"] #speaker-grid>.lov-host-tile video{
 position:absolute;inset:0;width:100%;height:100%;max-width:none;
 max-height:none;object-fit:cover;border:0!important;border-radius:0!important;
}
html body.in-live-room #lov-studio-v2.lov-clean-room[data-unified-mode="solo"][data-layout="solo"] #speaker-grid>.room-tile:not(.lov-host-tile){
 display:none;
}
/* SOLO PK 1v1 retains both active video participants rather than being collapsed into SOLO. */
html body.in-live-room.lov-mo-live #main #lov-studio-v2.lov-clean-room[data-unified-mode="solo"][data-layout^="pk"] #lov-main-stage #lov-scene-tiles{
 display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
}
html body.in-live-room #lov-studio-v2.lov-clean-room[data-unified-mode="multiguest"] :is(#lov-cinema,#lov-cinema-cell,#lov-cinema-tools){
 display:none;
}
/* HOST tile opens actual existing camera and microphone commands, no duplicate media engine. */
html body.in-live-room #lov-studio-v2.lov-clean-room #speaker-grid>.lov-host-tile{
 cursor:pointer;touch-action:manipulation;
}
html body.in-live-room #lov-studio-v2.lov-clean-room #lov-unified-host-tile-menu{
 position:absolute;bottom:max(88px,calc(env(safe-area-inset-bottom,0px) + 80px));
 left:50%;transform:translateX(-50%);z-index:90;
 display:flex;gap:8px;padding:9px;
 border:1px solid rgba(255,255,255,.08)!important;border-radius:14px!important;
 background:rgba(22,24,35,.94)!important;backdrop-filter:blur(12px)!important;
 -webkit-backdrop-filter:blur(12px)!important;box-shadow:0 10px 30px #0009!important;
}
html body.in-live-room #lov-studio-v2.lov-clean-room #lov-unified-host-tile-menu[hidden]{display:none!important}
html body.in-live-room #lov-studio-v2.lov-clean-room .lov-unified-host-tile-option{
 border:1px solid #7bd2e977;border-radius:10px;background:#203b4bd9;color:#e7faff;
 padding:9px 12px;min-height:40px;font-size:12px;white-space:nowrap;
}

.lov-playback-retry,.lov-audio-unlock{
 position:absolute;z-index:150;left:50%;bottom:20%;transform:translateX(-50%);
 max-width:90%;min-height:44px;padding:8px 14px;border:1px solid #7bd2e9;
 border-radius:12px;background:#15232f;color:white;white-space:normal;cursor:pointer;
}
.lov-audio-unlock{position:fixed;bottom:calc(env(safe-area-inset-bottom,0px) + 76px)}

/* LoveApp LIVE scene selector: three equal, touch-friendly scene tiles.
   Uses existing authorized studio-mode changes: no leaveRoom(), no second
   camera or LiveKit connection and no replacement of chat/gift controls. */
html body.in-live-room #lov-studio-v2.lov-clean-room .lov-unified-modes-menu{
 max-height:min(72dvh,530px)!important;
 overflow-y:auto!important;
 scrollbar-width:thin;
 overscroll-behavior:contain;
}
html body.in-live-room #lov-studio-v2.lov-clean-room .lov-unified-modes-menu>strong{
 display:block;
 text-align:left;
 font-size:14px;
 font-weight:850;
 line-height:1.4;
 margin-bottom:10px;
 color:#f4fbff;
}
html body.in-live-room #lov-studio-v2.lov-clean-room .lov-unified-mode-tiles,
html body.in-live-room #lov-studio-v2.lov-clean-room #lov-live-sidebar .lov-unified-mode-tiles{
 display:grid!important;
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:clamp(5px,1.1vw,10px)!important;
 width:100%;
 margin:0!important;
}
html body.in-live-room #lov-studio-v2.lov-clean-room .lov-unified-mode-tile{
 box-sizing:border-box;
 display:flex;
 flex-direction:column;
 justify-content:center;
 align-items:center;
 min-width:0!important;
 min-height:94px!important;
 padding:9px 5px!important;
 gap:6px;
 border-radius:14px!important;
 border:1px solid rgba(105,196,231,.38)!important;
 background:linear-gradient(160deg,#173448,#0c1c31)!important;
 box-shadow:inset 0 1px rgba(255,255,255,.07);
 color:#edfaff!important;
 font-size:23px;
 text-align:center;
 overflow-wrap:anywhere!important;
 touch-action:manipulation;
}
html body.in-live-room #lov-studio-v2.lov-clean-room .lov-unified-mode-tile strong{
 font-size:clamp(10px,2.8vw,13px)!important;
 font-weight:800;
 line-height:1.2;
 max-width:100%;
}
html body.in-live-room #lov-studio-v2.lov-clean-room .lov-unified-mode-tile small{
 font-size:clamp(9px,2.4vw,11px)!important;
 color:#b5dbe9!important;
 line-height:1.2;
 max-width:100%;
}
html body.in-live-room #lov-studio-v2.lov-clean-room .lov-unified-mode-tile[aria-pressed="true"]{
 border:2px solid #39d1eb!important;
 background:linear-gradient(135deg,#12536d,#13364a)!important;
 box-shadow:0 0 15px #1ba3c64d,inset 0 1px #ffffff28!important;
}
html body.in-live-room #lov-studio-v2.lov-clean-room .lov-unified-mode-tile:focus-visible{
 outline:2px solid #a3eaff!important;
 outline-offset:2px;
}
@media(max-width:359px){
 html body.in-live-room #lov-studio-v2.lov-clean-room .lov-unified-mode-tile{
  min-height:86px!important;padding:6px 3px!important;font-size:19px;
 }
}
/* LoveApp HUD readability while preserving existing badges/actions and exact
   HOST/VIEWER permission separation. */
html body.in-live-room #lov-studio-v2.lov-clean-room .lov-mo-host-pill{
 min-width:0;
 border-radius:15px!important;
 background:rgba(6,18,30,.72)!important;
 border:1px solid rgba(159,220,240,.25)!important;
 -webkit-backdrop-filter:blur(14px);
 backdrop-filter:blur(14px);
}
html body.in-live-room #lov-studio-v2.lov-clean-room .lov-hud-badges{
 min-width:0;
 flex-wrap:wrap;
 gap:4px;
}
html body.in-live-room #lov-studio-v2.lov-clean-room .lov-hud-badge{
 max-width:100%;
 white-space:nowrap;
 text-overflow:ellipsis;
 overflow:hidden;
}

/* VISUAL_SCREEN_WIREFRAMES */
.lov-mode-wireframe {
  display: grid;
  width: 58px;
  height: 36px;
  gap: 2px;
  padding: 3px;
  border-radius: 7px;
  background: #091524;
  border: 1px solid #356e88;
  box-sizing: border-box;
}
.lov-mode-wireframe i {
  display: block;
  border-radius: 2px;
  background: linear-gradient(135deg, #1b4d68, #14364b);
  border: 1px solid #4ba5c466;
}
.lov-mode-wireframe[data-wire="solo"] { grid-template-columns: 1fr; }
.lov-mode-wireframe[data-wire="solo"] i { background: linear-gradient(135deg, #00d2ff55, #10b98144); border-color: #00d2ff; }
.lov-mode-wireframe[data-wire="multiguest"] { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.lov-mode-wireframe[data-wire="youtube"] { grid-template-columns: repeat(4, 1fr); grid-template-rows: 2fr 1fr; }
.lov-mode-wireframe[data-wire="youtube"] i.wide { grid-column: 1 / -1; background: linear-gradient(135deg, #00d2ff44, #0c2b40); border-color: #22d3ee; }
.lov-mode-wireframe[data-wire="spotlight"],
.lov-mode-wireframe[data-wire="fixed-panel"] { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); }
.lov-mode-wireframe[data-wire="spotlight"] i.hero,
.lov-mode-wireframe[data-wire="fixed-panel"] i.hero { grid-row: 1 / span 2; background: linear-gradient(135deg, #00d2ff55, #10b98144); border-color: #00d2ff; }
.lov-mode-wireframe[data-wire="together"] { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
.lov-mode-wireframe[data-wire="game10"] { grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(2, 1fr); }
.lov-mode-wireframe[data-wire="adaptive"] { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
.lov-mode-wireframe[data-wire="fixed-grid"] { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.lov-mode-wireframe[data-wire="side-by-side"] { grid-template-columns: repeat(2, 1fr); }
.lov-unified-mode-tile[aria-pressed="true"] .lov-mode-wireframe { border-color: #00d2ff; box-shadow: 0 0 10px #00d2ff55; }
.lov-unified-mode-tile[aria-pressed="true"] .lov-mode-wireframe i:first-child { background: linear-gradient(135deg, #00d2ff88, #10b98177); }
.lov-unified-modes-menu h4 { margin: 10px 0 4px; font-size: 12px; color: #9ad8ec; }
/* LUDO_WAGER_UI_BAR (0 !important) */
html body.in-live-room #lov-studio-v2 .lov-ludo-wager-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(11, 28, 45, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #e6f8ff;
  font-size: 12px;
}
html body.in-live-room #lov-studio-v2 .lov-ludo-wager-info,
html body.in-live-room #lov-studio-v2 .lov-ludo-wager-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
html body.in-live-room #lov-studio-v2 #lov-ludo-wager-input {
  width: 78px;
  min-height: 30px;
  padding: 4px 6px;
  border-radius: 7px;
  border: 1px solid #38bdf8;
  background: #081827;
  color: #fff;
  font-size: 12px;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #lov-game-board, html body.in-live-room #lov-studio-v2[data-scene-mode="ludo"] #lov-game-board { display: block; position: relative; z-index: 45; margin: 74px 8px 6px; padding: 8px; border-radius: 12px; background: rgba(7, 22, 36, 0.94); border: 1px solid rgba(56, 189, 248, 0.45); pointer-events: auto; }

html body.in-live-room #lov-studio-v2 #lov-game-board:not([hidden]), html body.in-live-room #lov-studio-v2 #lov-game-board:not([hidden]) #lov-ludo-actions, html body.in-live-room #lov-studio-v2 #lov-game-board:not([hidden]) .lov-ludo-wager-bar, html body.in-live-room #lov-studio-v2 #lov-game-board:not([hidden]) #lov-ludo-wager-input { display: flex; visibility: visible; opacity: 1; pointer-events: auto; }
html body.in-live-room #lov-studio-v2 #lov-game-board:not([hidden]) { flex-direction: column; position: relative; z-index: 50; margin: 74px 8px 6px; padding: 8px; border-radius: 12px; background: rgba(7, 22, 36, 0.94); border: 1px solid rgba(56, 189, 248, 0.45); }

html body.in-live-room #lov-studio-v2 .lov-board-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #7ce8ff; margin: 0 0 6px; }
html body.in-live-room #lov-studio-v2 .lov-board-brand { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }
html body.in-live-room #lov-studio-v2 .lov-ludo-cell.center { background: radial-gradient(circle, #0e3a56 0%, #07192c 100%); }

html body.in-live-room #lov-studio-v2 .lov-ludo-center-brand { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; pointer-events: none; }
