:root{color-scheme:dark;--bg:#090c14;--surface:#151925;--panel:#101522;--border:#2b3040;--muted:#a4acc1;--text:#f4f5fa;--accent:#8f75fa;--mint:#74e6c6;--shadow:0 14px 56px #0008;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{background:radial-gradient(ellipse at 25% -15%,#45346855,transparent 50%),radial-gradient(ellipse at 80% 45%,#132f3b55,transparent 55%),#090c14}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;color:inherit}button:disabled{opacity:.42;cursor:not-allowed}.hidden{display:none!important}.app{max-width:1800px;margin:auto;min-height:100vh}.topbar{display:flex;align-items:center;justify-content:space-between;height:84px;border-bottom:1px solid #ffffff16;padding:0 max(24px,3vw);gap:18px}.brand{display:flex;gap:13px;align-items:center;color:inherit;text-decoration:none}.brand-logo{width:46px;height:46px;border-radius:15px;background:linear-gradient(145deg,#bd68fc,#6757de);display:grid;place-items:center;font-weight:950;font-size:25px;box-shadow:0 10px 30px #8d63ff55}.brand b{display:block;letter-spacing:.03em;font-size:16px}.brand em{font-style:normal;color:#c6b4ff}.brand small{font-size:11px;color:var(--muted);display:block;margin-top:3px}.top-actions{display:flex;gap:9px;align-items:center}.online{color:#bfc6d7;font-size:12px;margin-right:20px}.online i{display:inline-block;width:7px;height:7px;border-radius:100%;background:#49d7b1;margin-right:5px;box-shadow:0 0 12px #49d7b1}.primary,.ghost,.toolbar button,.sync button{border-radius:12px;padding:11px 16px;font-weight:700;transition:filter .15s,transform .15s}.primary{background:linear-gradient(110deg,#9177f9,#6350d7);box-shadow:0 4px 18px #694ce654}.primary:hover,.ghost:hover,.toolbar button:hover{filter:brightness(1.17);transform:translateY(-1px)}.ghost{background:#ffffff10;border:1px solid #ffffff24}.big{padding:15px 23px;font-size:14px}.full{width:100%}.landing{padding:0 max(24px,6vw) 60px}.hero{text-align:center;max-width:980px;margin:auto;padding:100px 0 70px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.25em;color:#bfa9ff}.hero h1{font-weight:850;letter-spacing:-.055em;font-size:clamp(40px,7vw,79px);line-height:1.08;margin:22px 0}.hero h1 span{color:#b69dff}.hero p{max-width:640px;margin:0 auto 26px;color:var(--muted);font-size:16px;line-height:1.8}.hero-buttons{display:flex;justify-content:center;flex-wrap:wrap;gap:14px}.showcase{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:780px;margin:64px auto 0}.showcase>div{height:126px;background:linear-gradient(155deg,#252d40,#161c2b);border:1px solid #ffffff18;border-radius:20px;display:flex;gap:9px;align-items:center;justify-content:center;flex-direction:column;font-size:30px}.showcase b{font-size:14px}.public-rooms{max-width:1100px;margin:0 auto}.public-rooms h2{font-size:21px}.room-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}.room-card{background:#1a2030;border:1px solid #ffffff19;padding:21px;border-radius:18px;display:flex;flex-direction:column;gap:11px;text-align:left}.room-card strong{font-size:16px}.room-card small{font-size:12px;color:var(--muted)}.room-card .emoji{font-size:27px}.empty{text-align:center;color:var(--muted);padding:24px;border:1px dashed #ffffff22;border-radius:14px}.room-view{padding:26px max(18px,2.7vw) 15px}.room-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}.room-heading h1{font-size:25px;margin:7px 0 5px}.room-heading p{margin:0;color:var(--muted);font-size:12px}.room-heading-actions{display:flex;gap:8px}.tag{display:inline-flex;background:#926dff24;color:#c8b6ff;border:1px solid #9f79fa44;border-radius:20px;font-size:10px;font-weight:800;letter-spacing:.05em;padding:4px 9px}.room-layout{display:grid;grid-template-columns:minmax(0,1fr) 342px;gap:15px;min-height:min(790px,calc(100vh - 194px))}.theater{position:relative;isolation:isolate;min-height:625px;border-radius:22px;overflow:hidden;border:1px solid #ffffff17;background:linear-gradient(165deg,#20273a 0%,#181d2c 35%,#141822 65%,#0b0e17 100%);display:flex;align-items:center;flex-direction:column;justify-content:flex-start;padding:28px 22px 72px}.theater:before,.theater:after{content:"";position:absolute;z-index:-1;top:90px;bottom:90px;width:34%;background:repeating-linear-gradient(90deg,transparent 0px,transparent 52px,#b38b511f 53px,#b38b512f 55px,transparent 58px);transform:perspective(250px) rotateY(34deg);left:-17%}.theater:after{left:auto;right:-17%;transform:perspective(250px) rotateY(-34deg)}.theater-glow{pointer-events:none;position:absolute;inset:0;background:radial-gradient(ellipse at 50% 35%,#7e7caa3b,transparent 58%)}.stage{position:relative;width:min(94%,780px);z-index:1;background:linear-gradient(#0d1424,#080c16);border:8px solid #3b4152;border-radius:12px 12px 4px 4px;box-shadow:0 0 0 1px #02030a,0 25px 65px #0009,0 0 70px #6d85ed10;transform:perspective(1300px) rotateX(.5deg)}.stage-head{height:27px;display:flex;justify-content:center;align-items:center;letter-spacing:.3em;font-size:9px;color:#9faac1;font-weight:800}.screen{position:relative;background:#080c16;aspect-ratio:16/9;display:grid;place-items:center;overflow:hidden}.screen video,.screen #youtubeLayer{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.screen iframe{height:100%;width:100%;border:none}.screen-placeholder{background:radial-gradient(ellipse at 50% 65%,#453b8357,transparent 70%),linear-gradient(130deg,#131c34,#0a1426);height:100%;width:100%;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:9px}.screen-placeholder>span{font-size:60px;color:#a58ff8}.screen-placeholder strong{font-size:clamp(13px,2.1vw,25px)}.screen-placeholder small{color:#b9c2d0;text-align:center;font-size:11px;padding:0 10px}.stage-floor{position:absolute;background:linear-gradient(#2b3041,#131822);width:120%;height:25px;bottom:-26px;left:-10%;transform:perspective(190px) rotateX(30deg)}.theater-seats{z-index:2;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));width:min(90%,690px);gap:9px 1%;margin-top:58px;transform:perspective(650px) rotateX(12deg);transform-origin:top center}.seat{position:relative;min-height:51px;border:2px solid #62747b;background:linear-gradient(145deg,#2a565f,#223c4a);border-radius:10px 10px 6px 6px;box-shadow:inset 0 5px 0 #8eaab22b,0 6px 0 #101925;display:flex;align-items:center;justify-content:center;color:#c2d6da;font-size:10px}.seat:before{content:"";position:absolute;bottom:-7px;left:-7px;right:-7px;height:12px;border-radius:4px;background:#394d55;z-index:-1}.seat.occupied{background:linear-gradient(160deg,#7d61b5,#443d78);border-color:#af96ee}.seat.mine{outline:3px solid #77e9c4}.seat span{font-size:22px;line-height:1}.seat small{position:absolute;bottom:-13px;left:0;right:0;text-align:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:8px;color:#fff}.toolbar{z-index:2;position:absolute;left:50%;bottom:17px;transform:translateX(-50%);display:flex;align-items:center;gap:7px;background:#090d16d9;border:1px solid #ffffff25;border-radius:18px;padding:8px;backdrop-filter:blur(15px);max-width:calc(100% - 20px)}.toolbar button{white-space:nowrap;background:#ffffff12;border:1px solid #ffffff15;font-size:13px;padding:11px 10px}.toolbar button.active{background:#8867d955}.floating-reaction{position:absolute;top:45%;left:50%;font-size:68px;pointer-events:none;z-index:5;opacity:0}.floating-reaction.pop{animation:float 1.4s ease-out}@keyframes float{0%{opacity:0;transform:translate(-50%,20px) scale(.7)}30%{opacity:1}100%{opacity:0;transform:translate(-50%,-140px) scale(1.6)}}.sidebar{border-radius:21px;border:1px solid #ffffff1b;background:#111622;display:flex;flex-direction:column;min-height:620px;overflow:hidden}.tabs{display:flex;gap:0;border-bottom:1px solid #ffffff19}.tabs button{flex:1;padding:18px 3px;background:transparent;color:#8c97ad;font-size:12px;font-weight:800;white-space:nowrap}.tabs button.active{color:#e9e0ff;border-bottom:2px solid #a68cff}.pane{display:flex;flex-direction:column;flex:1;min-height:0;padding:18px;overflow-y:auto;gap:10px}.pane h3{font-size:13px;margin:10px 0 2px}.chat-list{flex:1;min-height:420px;max-height:650px;overflow-y:auto;display:flex;flex-direction:column;gap:13px;padding:6px 0}.message{display:flex;gap:9px;align-items:flex-start}.message-icon{border-radius:13px;width:32px;height:32px;display:grid;place-items:center;background:#ffffff11;flex-shrink:0}.message strong{font-size:11px;color:#d0c4ff}.message time{font-size:9px;color:#7b859a;margin-left:5px}.message p{margin:4px 0;line-height:1.5;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;color:#e8eaf5}.chat-form{display:flex;gap:7px;border-top:1px solid #ffffff17;padding-top:14px}.chat-form input{flex:1;min-width:0}.chat-form button{background:#866cf0;border-radius:9px;padding:0 15px}.pane input:not([type=checkbox]),.pane textarea,select,.modal input,.modal select{color:#fff;background:#202639;border:1px solid #ffffff20;border-radius:10px;padding:12px;outline:0}.pane input:focus,.pane textarea:focus,.modal input:focus,.modal select:focus{border-color:#9076ec}.vertical{display:flex;flex-direction:column;gap:8px}.fineprint{font-size:10px;line-height:1.5;color:#8794aa}.notice{border:1px solid #ffffff1b;background:#ffffff0b;border-radius:12px;padding:15px;font-size:12px;line-height:1.6}.sync{display:flex;gap:7px}.sync button{background:#273049;border:1px solid #ffffff14;padding:8px;font-size:11px;flex:1}.queue-item,.person,.poll-option{border:1px solid #ffffff13;background:#ffffff0a;border-radius:12px;padding:11px;margin:7px 0;display:flex;justify-content:space-between;align-items:center;gap:10px}.queue-item span,.person span{font-size:11px;overflow-wrap:anywhere}.queue-item button,.person button{border-radius:9px;background:#7360c8;padding:7px 11px;font-size:10px}.person .user-meta{display:flex;gap:9px;align-items:center;min-width:0}.person .user-meta b{font-size:22px}.person small{display:block;font-size:10px;color:#b6c0cf;margin-top:4px}.person .actions{display:flex;gap:4px}.person .actions button{padding:7px}.muted{color:var(--muted);font-size:11px}.options{border-top:1px solid #ffffff20;margin-top:10px;padding-top:10px}.tick{font-size:12px}.palette{display:flex;gap:8px;align-items:center}.palette button[data-ink]{height:24px;width:24px;border-radius:50%;background:var(--ink);border:2px solid transparent}.palette button[data-ink].active{outline:2px solid #fff;outline-offset:2px}#whiteboard{width:100%;height:auto;touch-action:none;background:#111822;border:1px solid #ffffff20;border-radius:8px}.poll-option{width:100%;color:#fff;cursor:pointer;text-align:left;font-size:12px}.poll-option strong{color:#bdaeff}.room-footer{color:#78849a;text-align:center;font-size:11px;padding:19px}.modal{position:fixed;inset:0;background:#000b;backdrop-filter:blur(9px);display:grid;place-items:center;z-index:30;padding:15px}.modal-card{width:min(100%,440px);max-height:min(90vh,750px);overflow:auto;padding:25px;border-radius:24px;border:1px solid #ffffff25;box-shadow:var(--shadow);background:linear-gradient(160deg,#27283f,#151b29)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.modal-head h2{margin:0;font-size:23px}.modal-head button{background:transparent;font-size:20px}.modal form{display:flex;flex-direction:column;gap:14px}.modal label{font-size:12px;color:#c2c7d4;display:flex;flex-direction:column;gap:6px}#toast{position:fixed;bottom:20px;right:20px;z-index:99;background:#292d43;border:1px solid #8f78fc;color:#fff;box-shadow:var(--shadow);border-radius:13px;padding:14px 17px;font-size:13px;display:none;max-width:min(390px,90vw)}#toast.show{display:block}
@media(max-width:1100px){.room-layout{grid-template-columns:minmax(0,1fr) 300px}.theater{padding-left:12px;padding-right:12px}.seat{min-height:42px}.sidebar{min-height:590px}}@media(max-width:850px){.room-layout{grid-template-columns:minmax(0,1fr)}.sidebar{min-height:440px}.chat-list{min-height:245px;max-height:345px}.theater{min-height:490px}.theater-seats{margin-top:35px;gap:7px 1%}.seat{min-height:38px}.topbar{height:69px}.room-heading{align-items:flex-start}.room-heading-actions{flex-shrink:0}}@media(max-width:600px){.topbar{padding:0 14px}.brand-logo{width:38px;height:38px}.brand b{font-size:12px}.brand small{font-size:9px}.online,#browseBtn{display:none}.top-actions .primary{font-size:11px;padding:9px 10px}.hero{padding:70px 0 40px}.hero p{font-size:14px}.showcase{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:43px}.showcase>div{height:105px}.room-heading{flex-direction:column;gap:10px}.room-heading h1{font-size:21px}.room-heading-actions{width:100%}.room-heading-actions button{flex:1;font-size:11px}.theater{min-height:400px;padding:16px 6px 64px;border-radius:14px}.stage{width:96%;border-width:4px}.stage-head{height:20px;font-size:7px}.screen-placeholder>span{font-size:33px}.screen-placeholder small{font-size:9px}.theater-seats{width:94%;margin-top:27px;gap:6px 1%}.seat{min-height:28px;border-radius:5px;border-width:1px}.seat span{font-size:17px}.seat small{font-size:7px}.seat:before{bottom:-4px;height:7px}.toolbar{padding:4px;gap:3px;bottom:11px}.toolbar button{font-size:11px;padding:9px 7px}.toolbar button span{display:none}.room-view{padding:18px 10px 0}.tabs button{font-size:11px}}

/* NGỒI CHUNG brand refresh · friendly lavender + lime */
:root{--accent:#ab8cff;--mint:#baff89}
.brand-logo{background:linear-gradient(140deg,#b4ff8a,#74e6c6);color:#17201b;box-shadow:0 8px 25px #80e5ba33}
.brand em{color:#c4ff9d}
.eyebrow{color:#baff89}
.hero h1 span{color:#bbff97}
.primary{background:linear-gradient(110deg,#9572f3,#6550d9)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #baff89;outline-offset:3px}
#installBtn{white-space:nowrap}
@media(max-width:700px){#installBtn{padding:10px 11px;font-size:12px}.online{display:none}.topbar{padding:0 12px}.brand small{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Media discovery and third-party embeds (v0.3.2) */
#embedLayer{width:100%;height:100%;min-height:205px;position:relative}
#embedLayer iframe,#embedLayer>div{width:100%;height:100%;border:0}
.media-discover{margin:12px 0;display:flex;flex-direction:column;gap:7px}
.media-discover input{width:100%}
.source-links{display:flex;gap:6px;flex-wrap:wrap}
.source-links button{padding:9px 11px;font-size:12px;flex:1;white-space:nowrap}
@media (max-width:600px){.source-links button{flex-basis:30%}#embedLayer{min-height:190px}}

/* v0.4.2 - one-tap inline playback / visible from the theater */
.join-playback{display:block;position:relative;z-index:3;max-width:92%;margin:34px auto 0;padding:12px 18px;border-radius:13px;background:linear-gradient(110deg,#886ce4,#6550d9);font-size:14px;font-weight:700;box-shadow:0 6px 24px #0006;cursor:pointer}
.screen video,.screen iframe{max-width:100%;object-fit:contain}
@media(max-width:600px){.join-playback{font-size:12px;padding:10px;margin:31px auto 0}}

.theater:has(.join-playback:not(.hidden)) .theater-seats{margin-top:23px}


/* NGỒI CHUNG v0.4.3 — danmaku and free virtual gifts */
.danmaku-layer,.gift-fx-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:8;contain:layout paint}
.danmaku-comment{position:absolute;left:100%;width:max-content;max-width:75%;top:var(--lane);font-size:clamp(11px,1.5vw,17px);font-weight:800;line-height:1.3;color:#fff;text-shadow:0 2px 4px #000,0 0 7px #000;background:#111a2d99;border-radius:99px;padding:3px 11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;animation:danmaku-run 9s linear forwards;will-change:transform}
.danmaku-comment.mine{color:#baff89;background:#182b26d9}
@keyframes danmaku-run{from{transform:translateX(0)}to{transform:translateX(calc(-100vw - 120%))}}
.gift-fx{position:absolute;left:50%;bottom:0;display:flex;flex-direction:column;align-items:center;gap:2px;max-width:88%;background:#191534c9;border:1px solid #e6baff88;padding:7px 12px;border-radius:14px;color:#fff;font-size:clamp(10px,1.4vw,15px);text-shadow:0 1px 2px #000;animation:gift-rise 3.2s ease-out forwards}
.gift-fx .gift-emoji{font-size:clamp(32px,4vw,58px);filter:drop-shadow(0 1px 12px #fba5d3)}
.gift-fx .gift-label{font-weight:700;text-align:center;overflow-wrap:anywhere}
@keyframes gift-rise{0%{opacity:0;transform:translate(-50%,12px) scale(.7)}18%{opacity:1;transform:translate(-50%,-14px) scale(1.04)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-110px) scale(1.1)}}
.room-overlay-controls{display:flex;justify-content:center;gap:7px;padding:6px;background:#080d19}
.overlay-switch{font-size:11px;padding:7px 9px;border-radius:999px;background:#1a2440;border:1px solid #8e84c455;color:#e3dcff;min-height:32px}
.overlay-switch[aria-pressed="false"]{background:#222938;color:#a9b3c1;border-color:#56607966}
.gift-controls{border:1px solid #7a5dae44;padding:10px;border-radius:12px;background:#201b2a;margin-top:auto;display:grid;gap:8px}
.gift-header{display:flex;justify-content:space-between;gap:7px;align-items:center;font-size:12px}.gift-header span{font-size:10px;color:#b3b5c2}
.gift-recipient-label{display:flex;gap:9px;align-items:center;font-size:11px;color:#d5d8e8}.gift-recipient-label select{min-width:0;flex:1;padding:6px 8px!important;font-size:12px}
.gift-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.gift-buttons button{border:1px solid #ffffff22;background:#362e4a;padding:7px 2px;border-radius:9px;display:flex;align-items:center;flex-direction:column;gap:3px;font-size:21px}.gift-buttons button span{font-size:9px;white-space:nowrap}.gift-buttons button:disabled{opacity:.4}
.gift-totals{font-size:10px;color:#d4c9e9;min-height:10px}.options .tick{display:block;margin:9px 0}
@media(max-width:600px){.danmaku-comment{font-size:11px;max-width:70%;padding:2px 6px;animation-duration:7s}.room-overlay-controls{padding:5px 0}.overlay-switch{font-size:9px;padding:6px 8px}.gift-controls{margin-top:0}}
@media(prefers-reduced-motion:reduce){.danmaku-comment{animation:danmaku-accessible 4s linear forwards}.gift-fx{animation:gift-accessible 2.2s linear forwards}}
@keyframes danmaku-accessible{0%{opacity:1;transform:none}90%{opacity:1}100%{opacity:0}}
@keyframes gift-accessible{0%{opacity:1;transform:translate(-50%,-30px)}90%{opacity:1}100%{opacity:0}}


/* NGỒI CHUNG 0.4.5 — premium mobile-first watch-room interactions */
.room-view{--glass:#171b2ddc}
.room-heading{align-items:center;gap:14px}
.room-description{font-size:11px!important;opacity:.78}
.room-presence{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:12px}
.room-presence>span{border:1px solid #e3d5ff26;border-radius:999px;padding:7px 11px;background:linear-gradient(140deg,#22273ddd,#131a2bcd);color:#d5dff6;font-size:11px;font-weight:700;white-space:nowrap}
.room-presence .presence-dot{background:#1941385e;border-color:#55e6b049;color:#a9ffe4;letter-spacing:.045em;font-size:10px}
.presence-avatars{display:flex;align-items:center;padding-left:8px}
.presence-avatar{display:grid;place-items:center;width:27px;height:27px;background:#2e3451;border:2px solid #121523;border-radius:50%;margin-left:-8px;font-size:15px;box-shadow:0 2px 6px #0005}
.theater{background:radial-gradient(ellipse at 50% 3%,#554c9950,transparent 44%),linear-gradient(170deg,#1b2035,#111726 60%,#0b101c);border-color:#b4a2f42a;box-shadow:0 20px 65px #02020d88}
.stage{border-color:#525571;box-shadow:0 0 0 1px #d4cbff24,0 28px 65px #000a,0 0 65px #8377ed1e}
.stage-head{background:linear-gradient(90deg,#121e39,#1b2245,#121e39);color:#c0c7e3}
.seat{transition:transform .18s ease,box-shadow .18s ease}
.seat.mine{outline:2px solid #c3ffc9;box-shadow:0 0 0 4px #a5f5be26,0 7px 10px #0007}
.seat:focus-visible{outline:3px solid #d4ffb7}
.room-overlay-controls{background:#090f20d9;padding:7px;gap:8px}
.overlay-switch{font-size:10px;opacity:.84}
.danmaku-comment{font-size:clamp(10px,1.25vw,14px);font-weight:650;background:#0b1424a8;padding:4px 8px;border:1px solid #ffffff30}
.quick-social{z-index:11;position:relative;display:flex;gap:6px;align-items:stretch;justify-content:center;width:min(98%,800px);padding:8px;border-radius:22px;border:1px solid #c7bbff2e;background:linear-gradient(145deg,#252b43f5,#141b31ef);box-shadow:0 15px 40px #0009,0 0 35px #9576f721;backdrop-filter:blur(18px);margin:15px auto 0}
.quick-action{flex:1;min-width:0;border-radius:14px;border:1px solid transparent;background:transparent;color:#d7ddf2;min-height:58px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:10px;font-weight:750;position:relative;transition:background .15s,transform .15s}
.quick-action .quick-icon{font-size:21px;line-height:1.2}
.quick-action:hover,.quick-action[aria-expanded=true]{background:#ffffff15;border-color:#ffffff18}
.quick-action:active{transform:scale(.95)}
.quick-action.quick-chat{background:#8261e433;color:#f4eaff}
.quick-action:disabled{opacity:.4}
.quick-unread{position:absolute;right:13%;top:4px;color:#d6ff8e;font-size:14px}
.quick-sheet{position:relative;z-index:12;width:min(98%,690px);border:1px solid #c2aafa4d;border-radius:22px;background:linear-gradient(160deg,#262944f9,#131a2df9);box-shadow:0 18px 46px #000a;padding:16px;margin:10px auto 5px;display:flex;flex-direction:column;gap:12px}
.quick-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.quick-sheet-head strong{font-size:14px;color:#f9f8ff}.quick-sheet-head small{display:block;font-size:10px;line-height:1.5;color:#aab8d4;margin-top:5px}
.quick-close{border-radius:11px;min-width:32px;min-height:32px;background:#ffffff12;border:1px solid #ffffff25}
.quick-chat-messages{background:#0b1223b5;border:1px solid #ffffff12;padding:12px;border-radius:14px;max-height:138px;overflow:auto;display:flex;flex-direction:column;gap:8px}
.quick-chat-line{font-size:12px;line-height:1.45;color:#d5e0f4;overflow-wrap:anywhere}.quick-chat-line strong{color:#c5aafd}
.quick-chat-form{display:flex;gap:8px;align-items:center}
.quick-chat-form input{border:1px solid #a8a1de62;background:#161d33;color:white;border-radius:13px;min-width:0;flex:1;min-height:46px;padding:12px 13px;font-size:16px}
.quick-chat-form button{border-radius:12px;min-width:48px;min-height:46px;background:linear-gradient(135deg,#a07df9,#7153d9);font-size:20px}
.quick-gift-to{font-size:12px;color:#d1d8ee;display:flex;align-items:center;gap:12px}
.quick-gift-to select{flex:1;min-width:0;border:1px solid #ffffff28;background:#232b44;color:#fff;padding:9px;border-radius:11px;font-size:13px}
.quick-gift-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.quick-gift-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:79px;border:1px solid #ffffff17;border-radius:15px;background:linear-gradient(145deg,#37324e,#24253e);font-size:11px;color:#f5edff;font-weight:700;gap:7px}
.quick-gift-grid button span{font-size:29px;filter:drop-shadow(0 5px 8px #e2a1f122)}
.quick-gift-grid button:active{transform:scale(.97)}
.gift-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:850px){
 .room-view{padding-bottom:100px}
 .room-heading{align-items:flex-start}
 .quick-social{position:fixed;bottom:calc(8px + env(safe-area-inset-bottom));left:10px;right:10px;width:auto;max-width:680px;margin:auto;z-index:40;padding:6px 5px;border-radius:21px;background:#181c30f5;box-shadow:0 8px 35px #02040bcc,0 0 0 1px #9878fd29}
 .quick-action{min-height:52px;font-size:9px;gap:3px;padding:2px 1px}
 .quick-action .quick-icon{font-size:20px}
 .quick-sheet{position:fixed;left:10px;right:10px;bottom:calc(76px + env(safe-area-inset-bottom));width:auto;max-width:670px;margin:0 auto;z-index:41;padding:14px 15px;max-height:min(65vh,480px);overflow:auto;border-radius:24px;box-shadow:0 25px 80px #02020de0}
 #toast{bottom:calc(95px + env(safe-area-inset-bottom));left:12px;right:12px;max-width:unset;z-index:70}
 .theater{overflow:visible}
 .stage{overflow:hidden}
}
@media(max-width:600px){
 .room-heading{margin-bottom:16px}
 .room-heading h1{font-size:25px;letter-spacing:-.03em}
 .room-presence{gap:6px;margin-top:11px}
 .room-presence>span{font-size:10px;padding:7px 9px}
 .room-presence .presence-dot{font-size:9px}
 .presence-avatar{width:25px;height:25px}
 .theater{padding:14px 6px 65px;border-radius:21px}
 .stage{width:99%;border-width:4px;border-radius:12px}
 .theater-seats{width:96%;margin-top:22px}
 .quick-social{left:6px;right:6px;bottom:calc(6px + env(safe-area-inset-bottom));gap:1px}
 .quick-action{font-size:8.5px;letter-spacing:-.015em}
 .quick-action .quick-icon{font-size:20px}
 .quick-sheet{left:8px;right:8px;bottom:calc(73px + env(safe-area-inset-bottom))}
 .quick-gift-grid{gap:6px}
 .quick-gift-grid button{font-size:10px;min-height:72px}
 .toolbar{bottom:9px}
 .room-footer{padding-bottom:30px}
}
@media(prefers-reduced-motion:reduce){.seat,.quick-action{transition:none!important}}
/* Keep the phone dock above the sidebar and prevent ephemeral toasts stealing taps. */
#toast{pointer-events:none}
@media(max-width:850px){.room-layout>.theater{z-index:5}.room-layout>.sidebar{position:relative;z-index:1}}
@media(max-width:600px){.room-description{display:none}}


/* NGỒI CHUNG v0.4.6 — native-feeling mobile layout without sideways scroll */
:root { --mobile-dock-space: 94px; }
html,body { width:100%; max-width:100%; }
.app,.room-view,.room-layout,.theater,.sidebar { min-width:0; }
.room-layout>.theater,.room-layout>.sidebar { min-width:0; }
.room-presence,.room-heading,.room-heading-actions { min-width:0; }
.screen,.stage,#embedLayer { max-width:100%;min-width:0; }
/* Player controls are never obstructed by decorative switches. */
.stage .room-overlay-controls {display:none!important}
.settings-sheet {max-width:550px;gap:12px}
.view-setting { display:flex;align-items:center;justify-content:space-between;gap:14px;background:#11182bbd;border:1px solid #ffffff1a;border-radius:16px;min-height:75px;padding:12px 14px;cursor:pointer; }
.view-setting>span {min-width:0;display:flex;flex-direction:column;gap:5px;}
.view-setting strong {color:#f5efff;font-size:14px}
.view-setting small {color:#aab5cc;font-size:11px;line-height:1.4}
.view-setting input[type=checkbox] {appearance:none;-webkit-appearance:none;flex:0 0 54px;width:54px;height:31px;border-radius:100px;background:#505976;border:1px solid #ffffff38;position:relative;cursor:pointer;transition:background .15s;}
.view-setting input[type=checkbox]:before {content:"";position:absolute;left:3px;top:3px;width:23px;height:23px;border-radius:50%;background:#f5f3ff;box-shadow:0 2px 7px #0005;transition:transform .15s}
.view-setting input[type=checkbox]:checked {background:linear-gradient(120deg,#9873f4,#6e59de)}
.view-setting input[type=checkbox]:checked:before {transform:translateX(23px)}
.view-setting input[type=checkbox]:focus-visible {outline:3px solid #baff89;outline-offset:3px}
.settings-note {font-size:11px;line-height:1.5;color:#aeb7cc;margin:2px 4px 0}
/* Desktop retains all seven shortcuts. */
@media(max-width:850px){
  html,body {overflow-x:clip;}
  .room-view {width:100%;max-width:100%;padding:12px 10px calc(var(--mobile-dock-space) + env(safe-area-inset-bottom));}
  .room-layout {display:grid;grid-template-columns:minmax(0,1fr);gap:14px;width:100%;}
  .room-heading {gap:9px;margin-bottom:12px}
  .room-heading-actions {width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .room-heading-actions button {min-width:0;white-space:normal;overflow-wrap:break-word;min-height:46px;padding:11px 6px;font-size:12px}
  .room-presence {gap:6px;flex-wrap:wrap;max-width:100%}
  .room-presence>span {font-size:11px;padding:7px 9px}
  .theater {overflow:hidden!important;border-radius:19px;padding:12px 7px 74px;min-height:0;max-width:100%;}
  .stage {width:100%;max-width:100%;border-width:4px;overflow:hidden}
  .stage-head {height:23px;letter-spacing:.2em}
  .screen {aspect-ratio:16/9}
  #embedLayer {min-height:0!important;height:100%}
  .theater-seats {width:98%;max-width:100%;margin-top:24px;gap:8px 1%;transform:none}
  .seat {min-height:35px;min-width:0;padding:0;touch-action:manipulation}
  .seat span {font-size:20px}
  .toolbar {left:50%;width:max-content;max-width:calc(100% - 10px);display:flex;justify-content:center;gap:4px;padding:5px;bottom:10px}
  .toolbar button {min-width:44px;min-height:44px;padding:7px 6px;font-size:19px;display:grid;place-items:center}
  .toolbar button span {display:none}
  .quick-social {position:fixed;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:4px;left:8px;right:8px;width:auto;max-width:630px;margin:auto;padding:7px 6px;bottom:calc(8px + env(safe-area-inset-bottom));border-radius:22px;z-index:40;overflow:visible;}
  .quick-action {min-width:0;min-height:65px;padding:6px 2px 4px;gap:3px;font-size:11px;line-height:1.2;letter-spacing:normal;text-align:center;}
  .quick-action .quick-icon {font-size:30px;line-height:1.15}
  /* Tim/vỗ tay are still one-tap via the six-button bar above seats. */
  #quickHeartBtn,#quickClapBtn {display:none}
  #quickListenBtn span:last-child {font-size:10px}
  .quick-sheet {position:fixed;left:10px;right:10px;width:auto;max-width:610px;bottom:calc(93px + env(safe-area-inset-bottom));margin:0 auto;z-index:41;max-height:min(66dvh,530px);overflow:auto;padding:17px;border-radius:24px;}
  .quick-chat-form input {font-size:16px;min-width:0}
  .sidebar {width:100%;overflow:hidden;min-height:0;}
  .tabs button {min-width:0;font-size:12px;padding:13px 4px}
  .pane {min-width:0;padding:14px}
  .source-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .source-links button {min-width:0;white-space:normal;}
  .queue-item,.person {min-width:0}
  .room-footer {font-size:11px}
}
@media(max-width:360px){
 .room-view {padding-left:7px;padding-right:7px}
 .quick-social {left:5px;right:5px;padding:6px 4px;gap:2px}
 .quick-action {font-size:10px;min-height:62px}
 .quick-action .quick-icon {font-size:27px}
 .toolbar button {min-width:42px;min-height:44px}
 .theater {padding-left:5px;padding-right:5px}
 .room-heading h1 {font-size:23px}
}
@media(min-width:851px){.settings-sheet {position:relative}}
@media(min-width:601px) and (max-width:850px){
 .room-heading {flex-direction:column;align-items:stretch}
 .room-heading>div:first-child {min-width:0;width:100%}
 .room-heading-actions {width:100%}
 .room-heading h1 {overflow-wrap:anywhere}
}
@media(max-width:850px){
 .stage-floor {width:100%;left:0}
 .screen-placeholder strong {font-size:clamp(15px,4vw,20px);text-align:center;padding:0 8px}
 .screen-placeholder small {font-size:11px;line-height:1.45}
 .seat>span {font-size:13px!important}
 .seat.occupied>span {font-size:22px!important}
 .seat small {font-size:9px}
}
