/* TwisTzi V6.7: Facebook-style viewing, TikTok-style optional fullscreen. */
body:not(.tz166-live-expanded) #tz105-stage:not(:fullscreen){background:#101827;color:#f7f9ff;border-radius:16px;overflow:hidden;box-shadow:0 5px 24px #091b3833;padding:12px;max-width:100%;}
body:not(.tz166-live-expanded) #tz105-stage:not(:fullscreen) .tz105-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:4px 4px 10px;}
body:not(.tz166-live-expanded) #tz105-stage:not(:fullscreen) #tz105-fullscreen{margin-left:auto;background:#1264bd;color:white;border:0;border-radius:9px;padding:9px 13px;}
body:not(.tz166-live-expanded) #tz105-stage:not(:fullscreen) #tz105-remote{background:#080d16;border-radius:12px;overflow:hidden;min-height:160px;}
body:not(.tz166-live-expanded) #tz105-stage:not(:fullscreen) #tz105-remote.tz110-split{display:flex;flex-direction:column;gap:0;}
body:not(.tz166-live-expanded) #tz105-stage:not(:fullscreen) #tz105-remote .tz110-video-tile{width:100%;background:#080d16;border-radius:0;}
body:not(.tz166-live-expanded) #tz105-stage:not(:fullscreen) #tz105-remote .tz110-video-tile video{width:100%;max-height:68vh;object-fit:contain;}
body:not(.tz166-live-expanded) #tz105-stage:not(:fullscreen) #tz105-remote .tz67-empty-tile{display:none!important;}
body:not(.tz166-live-expanded) #tz105-stage:not(:fullscreen) #tz105-video-status{font-size:13px;margin:5px 0 9px;}
/* Existing comments and gifts remain on the viewing page; they are not duplicated. */
#tz104-comments{overflow-wrap:anywhere;}
#tz104-comment-form{display:flex;gap:8px;align-items:center;}
#tz104-comment-form input{min-width:0;flex:1;}
#tz104-compose .tz104-emoji{display:flex;flex-wrap:wrap;gap:5px;}
/* Fullscreen is the TikTok-style mode: one active video behind controls. */
#tz105-stage:fullscreen,#tz105-stage.tz166-expanded{background:#080c15!important;}
#tz105-stage:fullscreen #tz105-remote .tz665-inactive,#tz105-stage.tz166-expanded #tz105-remote .tz665-inactive{display:none!important;}
#tz105-stage:fullscreen #tz664-ui:not([hidden]),#tz105-stage.tz166-expanded #tz664-ui:not([hidden]){display:block!important;z-index:2147483001!important;}
#tz105-stage:fullscreen #tz664-drawer:not([hidden]),#tz105-stage.tz166-expanded #tz664-drawer:not([hidden]){background:#151d30f2!important;color:#fff!important;border:1px solid #ffffff33!important;max-height:min(40dvh,320px)!important;overflow-y:auto!important;}
#tz105-stage:fullscreen #tz664-drawer .tz13450-gifts,#tz105-stage.tz166-expanded #tz664-drawer .tz13450-gifts{background:transparent!important;color:#fff!important;}
#tz105-stage:fullscreen #tz664-drawer .tz13450-choices,#tz105-stage.tz166-expanded #tz664-drawer .tz13450-choices{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;}
#tz105-stage:fullscreen #tz664-drawer .tz13450-choices button,#tz105-stage.tz166-expanded #tz664-drawer .tz13450-choices button{min-width:0!important;padding:7px 4px!important;}
@media(max-width:720px){
 body:not(.tz166-live-expanded) #tz105-stage:not(:fullscreen){padding:9px;border-radius:12px;}
 body:not(.tz166-live-expanded) #tz105-stage:not(:fullscreen) #tz105-remote .tz110-video-tile video{max-height:58dvh;}
 #tz105-stage:fullscreen #tz105-remote,#tz105-stage.tz166-expanded #tz105-remote{display:block!important;}
 #tz105-stage:fullscreen #tz105-remote .tz110-video-tile,#tz105-stage.tz166-expanded #tz105-remote .tz110-video-tile{position:absolute!important;inset:0!important;}
 #tz105-stage:fullscreen #tz105-remote .tz110-video-tile video,#tz105-stage.tz166-expanded #tz105-remote .tz110-video-tile video{height:100%!important;width:100%!important;object-fit:cover!important;}
 #tz105-stage:fullscreen #tz664-entry,#tz105-stage.tz166-expanded #tz664-entry{bottom:calc(12px + env(safe-area-inset-bottom))!important;}
 #tz105-stage:fullscreen #tz664-rail,#tz105-stage.tz166-expanded #tz664-rail{bottom:calc(110px + env(safe-area-inset-bottom))!important;}
}
