/* Live broadcast controls occupy the open side of the filmed stage. */
body[data-scene=live]{background:#130e1c}
body[data-scene=live]::before{content:none}
.room[data-scene-host]{
  --margin:clamp(24px,4.4vw,90px);
  --rail:min(36vw,520px);
  --blush:#ffc5dd;
  --stroke:rgba(255,213,236,.25);
  width:100%; max-width:none; height:100dvh; margin:0; border:0; box-shadow:none;
  background:#201421 url("v3/scene/live_w.webp") center/cover;
}
.room .hh-stage{z-index:-5;background:transparent}
.room:has(#talentClip:not([hidden]))>.hh-stage{display:none}
.room .hh-poster[src*="set5/live_"]{visibility:hidden}
.room::before{content:"";position:absolute;inset:0;z-index:-3;pointer-events:none;background:linear-gradient(90deg,#160d1dd6,rgba(26,12,31,.62) 26%,transparent 62%),linear-gradient(0deg,#160b1a55,transparent 22%)}
.room #her{position:absolute;pointer-events:none;left:58%;top:2%;width:32%;height:96%}
.room .top{width:auto;left:var(--margin);right:var(--margin);top:max(20px,env(safe-area-inset-top));padding:0;gap:10px}
.room .back{width:38px;height:38px;border:1px solid var(--stroke);border-radius:50%;background:#201423bf}
.room .anchor,.room .pill,.room .hh-wallet{background:#221525d9;border:1px solid var(--stroke);box-shadow:none}
.room .anchor{padding-right:5px}.anchor img{object-position:center 10%}
.room .anchor button{background:#f3cadb;color:#442239;font-weight:700}
.room .seats{margin-left:0}
.room .pill,.room .hh-wallet{padding:6px 12px;border-radius:30px;font-size:13px;height:auto}
.room .hh-wallet{margin-left:auto;color:#ffdeab}
.live-heading{position:absolute;top:clamp(138px,24vh,290px);left:var(--margin);z-index:2}
.broadcast,.rec,.feed-head span,.program-cover small{font:700 11px/1.35 var(--font);letter-spacing:.18em}
.broadcast{display:inline-flex;align-items:center;gap:9px;color:#ffd0e1}
.broadcast i,.rec i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#ff8eb9;box-shadow:0 0 10px #f56faa}
.live-heading h1{font:600 clamp(48px,4.8vw,92px)/1.15 var(--serif);letter-spacing:.08em;margin:10px 0 0;color:#fff1ee;text-shadow:0 4px 24px #210e25}
.live-heading h1 span{display:block;color:#e3bad0;font:500 16px/1.5 var(--font);letter-spacing:.34em;margin-top:12px}
.room .goal{left:var(--margin);top:max(76px,calc(env(safe-area-inset-top) + 58px));width:min(230px,55vw);background:#251828d9}
.room .goal i{background:#935877}
.studio-console{position:absolute;bottom:max(30px,5vh);left:var(--margin);width:var(--rail);z-index:5;color:#fff4f6}
.program-cover{width:100%;display:grid;grid-template-columns:68px 1fr 36px;align-items:center;gap:16px;position:relative;text-align:left;padding:16px 20px;border:1px solid #f4aecd66;border-radius:14px;color:#fff3f5;background:linear-gradient(113deg,#593346ed,#382035e8 68%,#4c2b4bdf);box-shadow:0 10px 30px #0b06182e}
.program-cover:hover{border-color:#ffdae6}.program-cover:active,.live-nav button:active{transform:translateY(1px)}
.program-art{height:68px;border-radius:50%;font-size:0;display:block;background:radial-gradient(circle at center,#ffd2de 0 8%,#9f647f 9% 23%,transparent 24%),repeating-radial-gradient(circle at center,transparent 0 4%,#d4a2b530 5% 6%,transparent 7% 11%),conic-gradient(from -38deg,#201420,#985f82,#271628,#603850,#201420);border:1px solid #d09bb5}
.program-cover small,.program-cover strong,.program-cover em{display:block}
.program-cover small{color:#eec4ce;font-size:11px;letter-spacing:.18em}
.program-cover strong{font:600 clamp(22px,1.7vw,32px)/1.35 var(--serif);margin:2px 0}
.program-cover em{font:normal 13px/1.5 var(--font);color:#ead1dd}
.program-arrow{border:1px solid var(--stroke);border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font:20px/1 var(--font)}
.live-nav{display:flex;gap:8px;margin:10px 0 18px}
.live-nav button{display:flex;justify-content:space-between;align-items:center;gap:10px;flex:1;text-align:left;border:1px solid var(--stroke);border-radius:9px;background:#2c1d30dd;padding:9px 13px;font-weight:600}
.live-nav span{font:600 12px/1.25 var(--font);color:var(--blush)}
.feed-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--stroke);padding:0 0 7px}
.feed-head b{font:600 17px/1.35 var(--serif);letter-spacing:.1em}
.feed-head span{color:#ddc3d2;letter-spacing:.08em}
.room .chat{position:static;width:100%;height:clamp(64px,10.5vh,128px);margin:4px 0 8px;mask-image:none}
.room .chat ol{padding:2px 0;gap:4px}
.room .chat li{background:#211424d9;border:0;border-radius:5px;padding:4px 8px;font-size:14px;backdrop-filter:none}
.room .chat li b{color:#ffc3dd}
.room .dock{position:static;padding:0;gap:6px}
.room .dock form{background:#211725ec;border-color:var(--stroke)}
.room .ico,.room .ico.gift{width:44px;height:44px;border-radius:50%;background:#382237eb;border-color:var(--stroke)}
.room #giftBtn::before{inset:1px}.room #likeBtn::before{inset:6px}
.room .sheet{left:var(--margin);right:auto;bottom:max(22px,4vh);width:var(--rail);max-height:75dvh;background:#271c2df7;border:1px solid #a77793;border-radius:16px;padding:18px;box-shadow:0 14px 40px #11091788;overscroll-behavior:contain}
.room .sheetHead{position:sticky;top:-18px;padding:6px 0;z-index:2;background:#281c2c}
.room .sheetHead b,.cue-card h2{font-family:var(--serif)}
.room .sheetHead span,.room .tip{color:#e3c8d5}
.room .sheetHead button,.act-controls button{border:1px solid var(--stroke);border-radius:6px;color:#f4e2ea;background:#412e42}
.act-list,.fan-list{display:grid;gap:8px;margin:0;padding:0}
.act-list button,.fan-list li{display:flex;align-items:center;gap:10px;padding:13px 10px;min-height:46px;border:1px solid var(--stroke);border-radius:8px;background:#493046;color:#fff3f5;text-align:left}
.act-list button:disabled{background:#342b38;color:#d4bfd1}
.act-list small{color:#e9b6d0}.act-list span,.fan-list strong{margin-left:auto;text-align:right;font-size:12px}
.act-list b{white-space:nowrap}.fan-list .is-me{border-color:#ed9fc3}
.watch-track,.act-track{height:5px;border-radius:8px;background:#795369;overflow:hidden}
.watch-track i,.act-track i{display:block;background:#ffbad3;height:100%;transition:width .2s}
.claim-btn{border-radius:8px;padding:10px 18px;background:#f2c2d7;color:#412735;font-weight:700}
.claim-btn:disabled{color:#d6c7d1;background:#4c3c50}
.room .newmsg{bottom:50px;left:auto;right:5px;transform:none}
.room .pk{left:var(--margin);right:auto;top:110px;width:var(--rail)}
.room .bag{right:var(--margin);top:76px}
.room .slots{left:auto;right:var(--margin);bottom:17%;width:min(26vw,290px);z-index:6}
.room .combo{right:var(--margin);bottom:4%;z-index:6}
.room .moment,.room.cineOn .moment{left:var(--margin);width:var(--rail);top:15%;bottom:auto;transform:none}
.room #says.on,.room.inMoment #says.on{display:block;opacity:1;top:auto;bottom:15%;right:var(--margin);max-width:min(30vw,320px);color:#3e2033;background:#ffedf4f5;z-index:6}
.room:has(.slot) #says.on{bottom:29%}
.room .enter{pointer-events:none;top:94px;bottom:auto;max-width:min(50%,280px)}.room .guard{top:105px;right:var(--margin)}
.studio-edge{position:absolute;inset:0;pointer-events:none;z-index:4;box-shadow:inset 0 0 48px #f99cca;opacity:0}
.performance{position:absolute;inset:0;z-index:7;isolation:isolate}
.performance video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.room .hh-surface,.performance video{transition:scale .8s ease,transform .35s ease;transform-origin:72% 30%}
.room[data-camera="1"] :is(.hh-surface,.performance video){scale:1.10}
.room[data-camera="2"] :is(.hh-surface,.performance video){scale:1.055;transform-origin:85% 50%}
.performing :is(.studio-console,.live-heading,.goal,.says,.slots,.combo,.moment,.enter,.pk,.bag){visibility:hidden}
.room.performing #says{display:none}
.show-lights{position:absolute;inset:0;pointer-events:none;background:conic-gradient(from 115deg at 22% -10%,transparent 0deg,color-mix(in srgb,var(--cue) 36%,transparent) 17deg,transparent 32deg),conic-gradient(from 190deg at 90% -8%,transparent,var(--cue) 17deg,transparent 34deg);animation:showBeat var(--beat) ease-in-out infinite alternate}
@keyframes showBeat{from{opacity:.22}to{opacity:.76}}
.glow-sticks{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:flex-end;justify-content:space-around;pointer-events:none}
.glow-sticks i{width:5px;background:var(--cue);box-shadow:0 0 12px var(--cue);border-radius:5px;transform-origin:50% 100%;animation:stickBeat var(--beat) ease-in-out infinite alternate}
@keyframes stickBeat{from{transform:rotate(calc(var(--tilt) - 15deg))}to{transform:rotate(calc(var(--tilt) + 15deg))}}
.cue-card{position:absolute;left:var(--margin);bottom:8%;width:var(--rail);padding:22px;background:linear-gradient(130deg,#322033f5,#241928ee);border:1px solid var(--cue);border-radius:12px;color:#fff2f5}
.rec{display:flex;align-items:center;gap:7px;color:var(--cue)}.rec span{margin-left:auto}
.cue-card h2{font-size:32px;margin:14px 0 2px}.cue-card p{margin:0 0 14px;color:#ead4e1}
.act-controls{display:flex;gap:8px;align-items:center;margin-top:14px}
.act-controls time{margin-right:auto;font-variant-numeric:tabular-nums}
.act-controls button{min-height:42px;padding:5px 12px}
@media(max-width:740px),(max-aspect-ratio:4/5){
  .room[data-scene-host]{--margin:12px;--rail:calc(100% - 24px);background-image:url("v3/scene/live_p.webp")}
  .room::before{background:linear-gradient(180deg,#200f2959,transparent 20%,transparent 44%,#1c0e21ad 68%,#1b1020fa 96%)}
  .room #her{left:20%;top:2%;width:64%;height:86%}
  .room .top{gap:5px;top:max(8px,env(safe-area-inset-top))}.room .top .back{width:30px;height:34px}
  .room .top .seats{display:none}.room .top .hh-wallet,.room .pill{padding:5px 8px;font-size:12px}
  .room .anchor img{width:29px;height:29px}.room .anchor{gap:5px}.room .anchor button{height:28px;min-width:36px;font-size:12px}
  .studio-console{bottom:max(9px,env(safe-area-inset-bottom))}
  .live-heading{top:auto;bottom:310px;left:var(--margin)}.live-heading h1{font-size:36px;margin:2px 0}.live-heading h1 span{display:none}
  .broadcast{font-size:10px}.broadcast i{width:6px;height:6px}
  .room .goal{top:55px;height:19px;width:162px}.room .goal span{font-size:10px;line-height:19px}
  .program-cover{padding:9px 12px;grid-template-columns:46px 1fr 30px;gap:10px;border-radius:10px}
  .program-art{height:46px}.program-cover strong{font-size:20px;margin:0}.program-cover small{display:none}.program-cover em{font-size:12px}.program-arrow{width:28px;height:28px}
  .live-nav{margin:6px 0 8px;gap:6px}.live-nav button{padding:6px 10px;min-height:36px;font-size:13px}
  .feed-head{padding-bottom:3px}.feed-head b{font-size:14px}.feed-head span{font-size:10px}
  .room .chat{height:66px;margin:3px 0 6px}.room .chat li{font-size:12px}
  .room .dock .ico,.room .dock .ico.gift{width:38px;height:38px}
  .room .dock input,.room .me,.room .send{height:41px}.room .me{max-width:48px}
  .room .sheet{bottom:0;left:0;width:100%;max-height:min(59dvh,520px);border-radius:16px 16px 0 0;padding:12px 14px max(14px,env(safe-area-inset-bottom))}
  .room .sheetHead{top:-12px}
  .room .enter{top:80px;max-width:52%}
  .room .pk{top:88px}.room .bag,.room .guard{top:130px}
  .room .slots{bottom:46%;width:160px;right:8px}
  .room .combo{bottom:34%;width:70px;height:70px;right:8px}
  .room #says.on,.room.inMoment #says.on,.room:has(.slot) #says.on{bottom:49%;right:auto;left:12px;max-width:52%;font-size:13px;padding:7px 10px}
  .room .moment,.room.cineOn .moment{top:auto;bottom:34%;width:66%;left:12px}
  .room .hh-surface,.performance video{transform-origin:53% 28%}
  .performance:has(video:not([hidden])){background:radial-gradient(ellipse at 50% 56%,#4b3153,#211a32 62%,#171324)}
  .performance video{inset:0 0 auto;height:71%;object-position:var(--portrait-camera,69%) center;transition:scale .8s ease,transform .35s ease,object-position .2s linear;mask-image:linear-gradient(to bottom,#000 83%,transparent)}
  .cue-card{bottom:max(44px,env(safe-area-inset-bottom));padding:16px}
}
@media(max-height:780px) and (min-width:741px){.live-heading{top:105px}.live-heading h1{font-size:44px}.studio-console{bottom:14px}.program-cover{padding:8px 14px}.program-art{height:48px;width:48px}.live-nav{margin:6px 0}.room .chat{height:56px}}
@media(max-height:700px) and (max-width:740px){.live-heading{bottom:255px}.live-heading h1{font-size:27px}.room .chat{height:36px}.program-cover em{display:none}}
@media(max-height:525px){.live-heading{display:none}.room .studio-console{bottom:4px}.room .program-cover{padding:4px 10px}.room .chat{height:30px}.room .sheet{max-height:82dvh}}
@media(orientation:landscape){.room[data-scene-host]{background-image:url("v3/scene/live_w.webp")}}
@media(prefers-reduced-motion:reduce){.show-lights,.glow-sticks i{animation:none}.room .hh-surface,.performance video{transition:none}.room[data-camera] :is(.hh-surface,.performance video){scale:1}}

/* The theater's enamel gifts, gilded stage trim and emote art share the idol palette. */
.gift-artwork{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:62% 50%;z-index:1;pointer-events:none}
.painted-apron .stage-apron{position:absolute;pointer-events:none;z-index:2;inset:auto -1% -1% auto;width:min(48vw,800px);height:13%;background:url("v3/live/apron.webp") right bottom/contain no-repeat}
.painted-props .room .program-art{background:radial-gradient(ellipse at center,#89567966,transparent 70%),url("v3/live/musicbox.webp") center/contain no-repeat;border:none;border-radius:0}
.painted-props .room #giftBtn::before{background-image:url("v3/live/gift-box.webp")}
.painted-props .room #songBtn::before{inset:3px;background-image:url("v3/live/notes.webp")}
.painted-props .room #likeBtn::before{inset:2px;background-image:url("v3/live/heart.webp")}
.painted-props .room .rkHead::before{background-image:url("v3/live/crown.webp")}
.painted-props .room .chat li[data-who]{border:solid transparent;border-width:4px 14px 7px 16px;border-image:url("v3/live/bubble.webp") 32% 33% 34% 33% fill / 8px 20px 11px 20px stretch;background:none;padding:2px 1px 1px;color:#fff1fa}
.painted-props .room .chat li[data-who] b{color:#ffd3e5}
.painted-apron .room.gift-reveal .stage-apron{visibility:hidden}
.painted-props .room .feed-head b{display:inline-flex;gap:6px;align-items:center}
.painted-props .room .feed-head b::before{content:"";width:20px;height:18px;background:url("v3/live/feather.webp") center/contain no-repeat}
.fan-avatar{position:relative;isolation:isolate;display:grid;place-items:center;flex:none;width:42px;height:42px;background:radial-gradient(circle,#735075 36%,#473145 52%,transparent 54%);font:600 17px/1 var(--serif);color:#fff0d3}
.painted-props .fan-avatar::after{content:"";position:absolute;inset:0;background:url("v3/live/frame.webp") center/contain no-repeat}
.painted-props .room .glow-sticks i{width:32px;min-height:40px;max-height:62px;background:url("v3/live/stick.webp") center bottom/contain no-repeat;box-shadow:none;border-radius:0;transform-origin:50% 92%}
@media(max-width:740px){.painted-apron .stage-apron{width:52vw;bottom:0;opacity:.48}.painted-props .room .glow-sticks i{width:26px}.fan-avatar{width:35px;height:35px}}

.room.gift-reveal :is(.studio-console,.live-heading,.goal,.moment,.slots,.banner,.enter,.pk,.bag,.guard){visibility:hidden;pointer-events:none}
.room.gift-reveal #says.on,.room.gift-reveal.inMoment #says.on{display:none}

.room .sheetHead .hh-button{display:inline-flex;align-items:center;gap:5px;min-height:36px}

.room .sheet.hh-panel{border-color:var(--hh-edge,var(--stroke))}

.room[data-scene-host]{--font:var(--hh-font-body,"Hehe Sans",sans-serif);--serif:var(--hh-font-title,"Hehe Serif",serif);font-family:var(--font)}
.room .live-heading h1{font-family:var(--serif);letter-spacing:var(--hh-track-title,.08em)}
.room .broadcast.hh-tag{padding:3px 8px;font-size:11px;line-height:1.25;background:#28172cd4;color:var(--hh-gold,#f5cf8d)}
.room .back .hh-icon{width:18px;height:18px;color:var(--hh-gold)}
.room .sheet.hh-panel,.room .cue-card.hh-panel{background-color:var(--hh-panel,#241b2b);color:var(--hh-ink,#fff4df);border-color:var(--hh-edge,#836577);box-shadow:var(--hh-shadow,0 10px 36px #11091599)}
.room .program-cover.hh-primary{background:linear-gradient(105deg,#f6dec0,#e9c69c 65%,#e7b7a9);color:#382332;border-color:#ffe6c1}
.room .program-cover.hh-primary :is(small,em){color:#573b48}.room .program-cover.hh-primary .program-arrow{border-color:#79576b88}
.room .claim-btn.hh-primary:enabled{background:var(--hh-gold,#f5cf8d);color:#32232b}.room .gtabs .hh-tab{min-width:0}
.room .me.hh-button,.room .send.hh-button{min-height:0;padding-inline:6px}.room .me.hh-button{padding-left:12px}
.room .giftItem.hh-button{display:grid;justify-items:center;align-content:start}

.room .hh-panel.hh-ornate,dialog.hh-dialog.hh-ornate{
  background-color:var(--hh-panel);background-image:url("v3/ui/sakura-corner.svg"),url("v3/ui/star-trail.svg"),var(--hh-glass);
  background-position:top 3px left 3px,bottom 3px right 3px,center,center;background-size:48px 38px,55px 38px,cover,cover;background-repeat:no-repeat
}
.room .sheetHead{background:#1b2c40ee;padding-left:8px}.room .sheetHead b{color:var(--hh-ink)}
.room .gtabs .hh-tab[aria-selected=true]{background:linear-gradient(128deg,#ffedcb,#e2bc81 68%,#ffe5ac);color:#302632;border-color:var(--hh-gold)}
.room .dock form :is(.send,.me){box-shadow:none;border:0;background:none}
.room .act-list .hh-button{justify-content:flex-start}.room .live-nav .hh-button{justify-content:space-between}
.room .broadcast.hh-latin{font-family:var(--hh-font-latin)}
@media(max-width:740px){.room .gtabs{flex-wrap:nowrap;gap:4px}.room .gtabs .hh-tab{flex:1;padding-inline:4px;min-height:34px}}

.room .top .anchor .hh-button{white-space:nowrap;padding:0 9px;min-height:0;line-height:1.15}
@media(max-width:740px){.room .top .anchor .hh-button{padding-inline:6px;min-width:38px;font-size:12px}}
