.tz104{max-width:1150px;margin:20px auto 100px;padding:18px;color:#123451}.tz104-hero{background:linear-gradient(120deg,#0788e5,#62cbff);color:white;border-radius:24px;padding:26px}.tz104-hero span{font-weight:800}.tz104-hero h1{font-size:2rem;margin:10px 0}.tz104-note{margin:16px 0;padding:15px;background:#fff6dc;border:1px solid #f1ce74;border-radius:14px}.tz104-create,.tz104-grid>div{background:#fff;border-radius:20px;padding:20px;margin:18px 0;box-shadow:0 3px 16px #003c7210}.tz104-create label{display:block;margin:12px 0}.tz104 input,.tz104 select{display:block;width:100%;max-width:550px;min-width:0;padding:12px;border:1px solid #a6c7dd;border-radius:12px;font-size:16px}.tz104 button{background:#0076d6;color:white;border:0;border-radius:12px;padding:11px 14px;margin:5px;cursor:pointer}.tz104 button:disabled{opacity:.6}.tz104-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:16px}.tz104-room-link{display:block;width:100%;text-align:left}.tz104-preview video{width:100%;max-height:350px;background:#172b43;border-radius:12px}.tz104-emoji{display:flex;flex-wrap:wrap}.tz104-emoji button{font-size:23px;background:#e9f6ff}.tz104-reaction{display:inline-block;font-size:24px;padding:4px}.tz104 #tz104-comments{max-height:280px;overflow:auto}.tz104 #tz104-comments p{padding:7px;border-bottom:1px solid #e5edf2;overflow-wrap:anywhere}.tz104 #tz104-comment-form{display:flex;gap:5px;align-items:center}.tz104 #tz104-comment-form input{flex:1}@media(max-width:720px){.tz104-grid{grid-template-columns:1fr}.tz104{padding:10px}.tz104-create,.tz104-grid>div{padding:14px}}

.tz105-stage{margin:14px 0;padding:12px;background:#071629;color:white;border-radius:14px;min-width:0}.tz105-stage[hidden]{display:none!important}#tz105-remote{display:flex;flex-wrap:wrap;gap:10px;min-height:90px}#tz105-remote video{width:100%;max-height:450px;object-fit:contain;background:#000;border-radius:10px}.tz105-stage button{margin:8px 8px 0 0;padding:10px 15px;border:0;border-radius:9px;background:#0b83db;color:white}#tz105-video-status{color:#fff}
/* V1.3.15.39.80.105.5 — live experience */
.tz105-stage{position:relative;overflow:hidden}.tz105-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px;color:white;font-size:13px}.tz105-toolbar #tz105-live-badge{font-weight:800;background:#b71c36;border-radius:20px;padding:5px 10px}.tz105-toolbar #tz105-fullscreen{margin-left:auto;background:#245784;padding:7px 11px}.tz105-stage:fullscreen{display:flex;flex-direction:column;justify-content:center;background:#071a30;padding:20px}.tz105-stage:fullscreen #tz105-remote{max-height:80vh;overflow:auto}.tz105-stage:fullscreen video{max-height:75vh;object-fit:contain}.tz105-stage #tz105-float{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:3}.tz105-float-emoji{position:absolute;bottom:12%;font-size:35px;animation:tz105-float-up 2.2s ease-out forwards;filter:drop-shadow(0 2px 3px #0005)}@keyframes tz105-float-up{0%{transform:translateY(0) scale(.8);opacity:0}15%{opacity:1}85%{opacity:1}100%{transform:translateY(-210px) scale(1.3);opacity:0}}@media(prefers-reduced-motion:reduce){.tz105-float-emoji{animation:none;opacity:1;bottom:30%;}}

/* V1.3.15.39.80.105.6 — live sharing, reporting, moderation and mobile */
.tz106-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.tz106-actions button,.tz106-mod{border:1px solid #b9d5ec;background:#e9f5ff;color:#123c60;border-radius:9px;padding:8px 12px;cursor:pointer}.tz106-mod{padding:4px 8px;margin-left:5px;font-size:12px}.tz104 #tz104-comments p{line-height:1.6}@media(max-width:720px){.tz105-stage{padding:9px}.tz105-stage button{padding:10px 12px}.tz104 #tz104-comment-form input{min-width:0}.tz104 #tz104-comments{max-height:230px}.tz105-toolbar{gap:6px}.tz106-actions button{flex:1}}

.tz111-language{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:8px 0 14px;flex-wrap:wrap}.tz111-language label{font-weight:650}.tz111-language select{min-height:42px;border-radius:9px;padding:7px 12px;max-width:220px}

/* V6.6.0: immersive LIVE viewing. Only applies when the viewer is expanded. */
#tz105-stage:fullscreen,#tz105-stage.tz166-expanded{
 position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;
 max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;
 border:0!important;border-radius:0!important;background:#050811!important;display:block!important;
 overflow:hidden!important;z-index:2147483000!important;
}
#tz105-stage:fullscreen #tz105-remote,#tz105-stage.tz166-expanded #tz105-remote{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 max-height:none!important;min-height:0!important;overflow:hidden!important;
 display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;justify-content:center!important;gap:0!important;
}
#tz105-stage:fullscreen #tz105-remote .tz110-video-tile,#tz105-stage.tz166-expanded #tz105-remote .tz110-video-tile{
 position:relative!important;flex:1 1 0!important;width:100%!important;height:100%!important;
 min-height:0!important;max-height:none!important;border-radius:0!important;overflow:hidden!important;
}
#tz105-stage:fullscreen #tz105-remote .tz110-video-tile video,#tz105-stage.tz166-expanded #tz105-remote .tz110-video-tile video{
 display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
 object-fit:cover!important;object-position:center center!important;border-radius:0!important;background:#050811!important;
}
#tz105-stage:fullscreen .tz105-toolbar,#tz105-stage.tz166-expanded .tz105-toolbar{
 position:absolute!important;top:0;left:0;right:0;z-index:8;display:flex!important;
 margin:0!important;padding:calc(12px + env(safe-area-inset-top,0px)) 12px 12px!important;
 background:linear-gradient(to bottom,rgba(0,0,0,.65),transparent);pointer-events:none;
}
#tz105-stage:fullscreen .tz105-toolbar button,#tz105-stage.tz166-expanded .tz105-toolbar button{pointer-events:auto}
#tz105-stage:fullscreen #tz105-video-status,#tz105-stage.tz166-expanded #tz105-video-status{
 position:absolute!important;top:calc(64px + env(safe-area-inset-top,0px));left:12px;right:12px;
 z-index:8;margin:0!important;font-size:13px;text-shadow:0 1px 4px #000;pointer-events:none;
}
#tz105-stage:fullscreen #tz105-disconnect,#tz105-stage.tz166-expanded #tz105-disconnect{
 position:absolute!important;z-index:9;bottom:calc(18px + env(safe-area-inset-bottom,0px));
 left:50%;transform:translateX(-50%);margin:0!important;max-width:90%;
 background:rgba(0,0,0,.68)!important;border:1px solid rgba(255,255,255,.55)!important;
}
#tz105-stage:fullscreen #tz110-mic,#tz105-stage.tz166-expanded #tz110-mic,
#tz105-stage:fullscreen #tz110-leave,#tz105-stage.tz166-expanded #tz110-leave{
 position:relative;z-index:9;
}
#tz105-stage:fullscreen #tz105-float,#tz105-stage.tz166-expanded #tz105-float{z-index:5}
#tz105-stage:fullscreen #tz105-remote .tz110-video-label,#tz105-stage.tz166-expanded #tz105-remote .tz110-video-label{
 bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:6;
}
body.tz166-live-expanded{overflow:hidden!important}
@media(max-width:720px){
 #tz105-stage:fullscreen #tz105-remote.tz110-split,#tz105-stage.tz166-expanded #tz105-remote.tz110-split{display:flex!important;flex-direction:column!important}
 #tz105-stage:fullscreen #tz105-remote.tz110-split .tz110-video-tile,#tz105-stage.tz166-expanded #tz105-remote.tz110-split .tz110-video-tile{height:50%!important}
}
/* V6.6.1: unobtrusive LIVE activity inside the already-working expanded stage. */
#tz661-overlay{display:none;position:absolute;left:14px;right:72px;bottom:88px;z-index:6;pointer-events:none;color:#fff;font-size:13px;text-shadow:0 1px 3px #000;max-width:390px}
#tz105-stage:fullscreen #tz661-overlay,#tz105-stage.tz166-expanded #tz661-overlay{display:flex;flex-direction:column;gap:8px}
#tz661-comments{display:flex;flex-direction:column;gap:5px;max-height:148px;overflow:hidden}
.tz661-comment{width:fit-content;max-width:100%;padding:7px 10px;border-radius:12px;background:rgba(5,13,28,.58);overflow-wrap:anywhere;line-height:1.35}
.tz661-comment strong{color:#a9d9ff}
#tz661-gifts{display:flex;flex-direction:column;gap:5px}
.tz661-gift{width:fit-content;max-width:100%;background:rgba(46,15,68,.78);border:1px solid rgba(255,255,255,.25);border-radius:14px;padding:9px 12px;font-weight:700;animation:tz661-in .3s ease-out}
@keyframes tz661-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){#tz661-overlay{left:9px;right:60px;bottom:82px;font-size:12px;max-width:calc(100% - 95px)}#tz661-comments{max-height:120px}}
@media(prefers-reduced-motion:reduce){.tz661-gift{animation:none}}
/* V6.6.2: safe full-screen controls; existing event handlers stay attached to original forms. */
#tz662-dock{display:none;position:absolute;z-index:30;bottom:max(20px,env(safe-area-inset-bottom));left:10px;right:10px;pointer-events:none;color:#fff}
#tz105-stage:fullscreen #tz662-dock,#tz105-stage.tz166-expanded #tz662-dock{display:block}
#tz662-dock[hidden]{display:none!important}
#tz662-actions{display:flex;gap:8px;justify-content:flex-end;pointer-events:auto}
#tz662-actions button{border:1px solid #ffffff77;border-radius:22px;background:#13233ddd;color:white;padding:10px 12px;font-weight:700;min-height:44px}
#tz662-panel{pointer-events:auto;position:absolute;bottom:54px;left:0;right:0;max-height:48vh;overflow:auto;background:#101b31ed;border:1px solid #ffffff44;border-radius:14px;padding:10px;box-shadow:0 4px 24px #0008}
#tz662-panel[hidden]{display:none!important}
#tz662-panel #tz104-compose{display:block!important;color:white}
#tz662-panel #tz104-compose input{max-width:100%;min-width:0}
#tz662-panel #tz104-comment-form{display:flex;gap:6px}
#tz662-panel .tz13450-gifts{margin:0;background:#f8fbff;color:#14233b;padding:10px;border-radius:12px}
#tz662-panel .tz13450-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#tz662-panel .tz13450-choices button{min-width:0}
#tz105-stage:fullscreen #tz661-overlay,#tz105-stage.tz166-expanded #tz661-overlay{bottom:85px}
/* V6.6.3 TikTok-like fullscreen viewer; preserve the existing video element and track. */
#tz663-dock{display:none!important}
#tz105-stage:fullscreen #tz663-dock:not([hidden]),#tz105-stage.tz166-expanded #tz663-dock:not([hidden]){display:block!important;position:absolute;inset:0;z-index:35;pointer-events:none;color:#fff}
#tz663-rail{position:absolute;right:12px;bottom:calc(115px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;pointer-events:auto}
#tz663-rail button{width:48px;height:48px;border:0;border-radius:50%;background:#101522bb;color:#fff;font-size:26px;box-shadow:0 2px 8px #0007}
#tz663-entry{position:absolute;left:12px;right:75px;bottom:calc(16px + env(safe-area-inset-bottom));pointer-events:auto}
#tz663-entry #tz104-compose{display:block!important;background:transparent!important;padding:0!important;margin:0!important}
#tz663-entry #tz104-comment-form{display:flex;align-items:center;gap:6px;margin:0}
#tz663-entry #tz104-comment{flex:1;min-width:0;max-width:100%;border-radius:25px;background:#252936dc;color:#fff;border:1px solid #ffffff55;min-height:44px;padding:10px 13px}
#tz663-entry #tz104-comment::placeholder{color:#e2e2e2}
#tz663-entry #tz104-comment-form button{min-height:44px;border-radius:22px;padding:8px 12px}
#tz663-entry .tz104-emoji{display:none!important}
#tz663-gift-drawer{position:absolute;right:8px;left:8px;bottom:calc(78px + env(safe-area-inset-bottom));max-height:62%;overflow:auto;pointer-events:auto;background:#f8faff;border-radius:18px;padding:10px;color:#152034;box-shadow:0 5px 24px #000a}
#tz663-gift-drawer[hidden]{display:none!important}
#tz663-gift-drawer .tz13450-gifts{display:block!important;margin:0!important}
#tz663-gift-drawer .tz13450-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#tz663-gift-drawer .tz13450-choices button{min-width:0}
.tz663-close{float:right;border:0;background:#e6e9f2;border-radius:12px;padding:7px 10px;margin:0 0 6px 0}
#tz105-stage:fullscreen #tz661-overlay,#tz105-stage.tz166-expanded #tz661-overlay{left:12px;right:76px;bottom:calc(95px + env(safe-area-inset-bottom));max-width:390px;z-index:34}
#tz105-stage:fullscreen #tz662-dock,#tz105-stage.tz166-expanded #tz662-dock{display:none!important}
@media(max-width:600px){#tz663-rail{right:8px;bottom:calc(110px + env(safe-area-inset-bottom))}#tz663-entry{left:8px;right:65px}#tz663-rail button{width:44px;height:44px}}
/* V6.6.4 visible overlay is a real child of the fullscreen element. */
#tz664-ui[hidden],#tz664-drawer[hidden]{display:none!important}
#tz664-ui{display:none!important}
#tz105-stage:fullscreen #tz664-ui:not([hidden]),#tz105-stage.tz166-expanded #tz664-ui:not([hidden]){display:block!important;position:absolute!important;inset:0!important;z-index:2147483001!important;pointer-events:none!important;color:white}
#tz664-comments{position:absolute;bottom:calc(105px + env(safe-area-inset-bottom));left:12px;right:74px;max-height:110px;overflow:hidden;font-size:13px;text-shadow:0 1px 3px black}
.tz664-comment{background:#151923aa;border-radius:10px;padding:5px 9px;margin-top:3px;overflow-wrap:anywhere}
#tz664-entry{position:absolute;left:10px;right:72px;bottom:calc(12px + env(safe-area-inset-bottom));pointer-events:auto}
#tz664-entry #tz104-compose{display:block!important;margin:0!important;padding:0!important;background:transparent!important}
#tz664-entry #tz104-comment-form{display:flex!important;align-items:center;gap:5px}
#tz664-entry #tz104-comment{flex:1;min-width:0;max-width:100%;border-radius:25px;background:#242833ed;color:white;border:1px solid #ffffff66;min-height:42px;padding:9px 12px}
#tz664-entry #tz104-comment::placeholder{color:#ddd}
#tz664-entry .tz104-emoji{display:none!important}
#tz664-entry #tz104-comment-form button{min-height:42px;margin:0;padding:7px 9px}
#tz664-rail{position:absolute;right:9px;bottom:calc(105px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px;pointer-events:auto}
#tz664-rail button{display:block;width:47px;height:47px;padding:0;margin:0;border-radius:50%;background:#10131dbb;color:white;font-size:25px}
#tz664-drawer{position:absolute;left:8px;right:8px;bottom:calc(74px + env(safe-area-inset-bottom));max-height:60%;overflow:auto;background:#f7f9ff;color:#14243c;border-radius:14px;padding:12px;pointer-events:auto}
#tz664-drawer .tz13450-gifts{display:block!important}
#tz664-drawer button{max-width:100%}
#tz105-stage:fullscreen #tz663-dock,#tz105-stage.tz166-expanded #tz663-dock,#tz105-stage:fullscreen #tz662-dock,#tz105-stage.tz166-expanded #tz662-dock{display:none!important}
#tz105-stage:fullscreen #tz661-overlay,#tz105-stage.tz166-expanded #tz661-overlay{display:none!important}
/* V6.6.5 mobile fullscreen: video fills viewer; controls remain in the same fullscreen stage. */
@media(max-width:720px){
 #tz105-stage:fullscreen,#tz105-stage.tz166-expanded{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border-radius:0!important;display:block!important;overflow:hidden!important;background:#090d17!important}
 #tz105-stage:fullscreen #tz105-remote,#tz105-stage.tz166-expanded #tz105-remote{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;display:block!important;overflow:hidden!important;margin:0!important;padding:0!important}
 #tz105-stage:fullscreen #tz105-remote .tz110-video-tile,#tz105-stage.tz166-expanded #tz105-remote .tz110-video-tile{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
 #tz105-stage:fullscreen #tz105-remote .tz110-video-tile.tz665-inactive,#tz105-stage.tz166-expanded #tz105-remote .tz110-video-tile.tz665-inactive{display:none!important}
 #tz105-stage:fullscreen #tz105-remote video,#tz105-stage.tz166-expanded #tz105-remote video{width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;border-radius:0!important;background:transparent!important}
 #tz105-stage:fullscreen .tz105-toolbar,#tz105-stage.tz166-expanded .tz105-toolbar{position:absolute!important;top:calc(8px + env(safe-area-inset-top));left:8px;right:8px;z-index:60!important;pointer-events:none}
 #tz105-stage:fullscreen .tz105-toolbar button,#tz105-stage.tz166-expanded .tz105-toolbar button{pointer-events:auto}
 #tz105-stage:fullscreen #tz105-video-status,#tz105-stage.tz166-expanded #tz105-video-status{position:absolute!important;top:calc(54px + env(safe-area-inset-top));left:10px;right:10px;z-index:58!important;background:transparent!important;font-size:12px;text-shadow:0 1px 4px #000}
 #tz105-stage:fullscreen #tz664-ui:not([hidden]),#tz105-stage.tz166-expanded #tz664-ui:not([hidden]){z-index:70!important}
 #tz664-comments{bottom:calc(104px + env(safe-area-inset-bottom));right:65px;max-height:100px}
 #tz664-drawer{left:8px;right:8px;bottom:calc(74px + env(safe-area-inset-bottom));max-height:min(38dvh,320px);overflow:auto;background:#131b2ff2;color:white;border:1px solid #ffffff44;border-radius:20px}
 #tz664-drawer .tz13450-gifts{background:transparent!important;color:white!important;margin:0!important;padding:4px!important}
 #tz664-drawer .tz13450-choices{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
 #tz664-drawer .tz13450-choices button{font-size:12px!important;padding:7px 4px!important;min-width:0!important}
}
@media(min-width:721px){#tz664-drawer{left:auto;right:12px;width:min(460px,65vw);max-height:45vh;background:#141c30f2;color:white}#tz664-drawer .tz13450-gifts{background:transparent!important;color:white!important}#tz664-drawer .tz13450-choices{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}}

/* V6.9.7: keep viewer action visible before video and above Gifts on mobile. */
@media(max-width:720px){
 #tz105-stage{margin-top:10px;scroll-margin-top:80px}
 #tz105-stage #tz105-connect:not([hidden]){display:block!important;width:100%;margin:10px 0 12px;padding:15px 12px;font-weight:800;font-size:17px;background:#1677e8;color:#fff;min-height:50px}
 #tz105-stage #tz105-remote{min-height:120px}
 #tz105-stage #tz105-remote video{max-height:60dvh}
 .tz13450-gifts{margin-top:12px}
}
/* V6.9.8: LIVE video first on portrait mobile; gifts remain available below. */
@media(max-width:720px){
 #tz104-live #tz105-stage{scroll-margin-top:75px;position:relative;z-index:1}
 #tz104-live #tz105-stage #tz105-connect:not([hidden]){display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;min-height:52px!important;margin:10px 0!important;font-size:17px!important;font-weight:800!important;background:#1677e8!important;color:#fff!important;position:relative!important;z-index:2!important}
 #tz104-live #tz105-stage + .tz13450-gifts{margin-top:16px!important}
}
