@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=IBM+Plex+Sans:wght@400;500;600&display=swap');
:root{color-scheme:dark;--bg:#101714;--surface:#19231e;--raised:#222e26;--line:#324137;--text:#f2f4eb;--muted:#a3b2a5;--lime:#d9f99c}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px 'DM Sans',sans-serif}button,input{font:inherit}button{min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--text);cursor:pointer}button:hover{background:var(--raised)}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--lime);outline-offset:3px}input{min-width:0;width:100%;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:13px 14px;font-size:16px}p{line-height:1.5}h1,h2,h3,p{overflow-wrap:anywhere}.app-header{height:76px;max-width:1200px;margin:auto;padding:0 30px;display:flex;justify-content:space-between;align-items:center}.brand{font:800 32px Manrope,sans-serif;letter-spacing:-1.6px;color:var(--text);text-decoration:none}.brand span{color:var(--lime);margin-left:6px}#identity{font-size:13px;color:var(--muted)}main{max-width:1140px;margin:auto;padding:25px 30px}.eyebrow{font-size:11px;letter-spacing:1.6px;font-weight:700;color:var(--muted)}#lobby-intro h1{font:600 clamp(42px,6vw,70px)/1.08 Manrope,sans-serif;letter-spacing:-3px;margin:20px 0}em{font-style:normal;color:var(--lime)}#lobby-intro>p{color:var(--muted);font-size:18px}.connection{font-size:12px;color:var(--muted);margin:20px 0}#rooms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:28px}.room{border:1px solid var(--line);border-radius:20px;padding:24px;background:var(--surface)}.top{display:flex;justify-content:space-between;align-items:center}.letter{font:600 38px Manrope;color:var(--lime)}.badge{font-size:13px;color:var(--muted)}.room h2{font:600 24px Manrope;margin:12px 0}.people{display:flex;flex-wrap:wrap;gap:7px;min-height:40px}.person{background:var(--raised);border-radius:20px;padding:6px 10px;font-size:14px}.empty{font-size:15px;color:var(--muted)}.song{display:flex;gap:12px;border-top:1px solid var(--line);padding-top:16px;margin-top:14px;min-height:83px}.song-icon{color:var(--lime);font-size:24px}.song small{font-size:10px;letter-spacing:1px;color:var(--muted)}.song p{font-size:18px;margin:4px 0 18px}.enter{width:100%;text-align:left;background:var(--lime);color:#172014;border:0;font-weight:700}.enter:hover{background:#c5e989}footer{font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:24px;margin-top:42px}footer span{float:right}#feedback{font-size:14px;color:var(--lime)}#feedback:empty{display:none}[hidden]{display:none!important}.sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
/* Inside a room: no lobby cards and no large hero. */
body:has(#session:not([hidden])) #lobby-intro,body:has(#session:not([hidden])) #rooms,body:has(#session:not([hidden])) .lobby-actions,body:has(#session:not([hidden])) footer{display:none}body:has(#session:not([hidden])) main{padding-top:0;padding-bottom:100px}body:has(#session:not([hidden])) .connection{margin:0 0 12px;font-size:11px}.room-header{display:flex;align-items:center;gap:18px;margin:14px 0 24px}.room-header h1{font:600 26px Manrope;margin:3px 0}.room-header .eyebrow{font-size:9px}.back{border:0;padding:8px 0;color:var(--muted);font-size:14px}.invite{margin-left:auto;font-size:14px}.room-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:26px}.video-panel,.people-panel,.interaction-panel{border:1px solid var(--line);border-radius:18px;background:var(--surface)}.video-panel,.people-panel{padding:18px}.section-label{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1.1px;color:var(--muted);min-height:24px}.text-button{border:0;padding:0 4px;font-size:12px;min-height:32px}#room-status{font-weight:600;font-size:18px;margin:8px 0 14px}#player-shell{position:relative;aspect-ratio:16/9;height:min(25dvh,225px);max-width:100%;margin:auto;border-radius:10px;background:#0b100d;overflow:hidden}#player{width:100%;height:100%}#player-shell iframe{width:100%;height:100%;border:0}#player-empty{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:radial-gradient(ellipse at center,#273b2b,#0e1811);gap:8px}#player-empty>span{font-size:28px;color:var(--lime)}#player-empty p{font-size:17px;margin:0}#pick-song{font-size:13px;border:0;padding:6px;min-height:30px;color:var(--lime)}.player-actions{display:flex;justify-content:space-between;gap:8px;margin-top:12px}.player-actions button{font-size:13px;padding:8px 10px;min-height:40px}.people-panel{margin-top:16px}#people-count{letter-spacing:0}#people-video{display:flex;gap:10px;overflow:auto;padding-top:12px}.participant{position:relative;min-width:100px;max-width:145px;flex:1;background:var(--raised);border-radius:12px;padding:10px;text-align:center}.participant video{width:100%;height:75px;object-fit:cover;border-radius:8px;background:var(--bg)}.avatar{display:grid;place-items:center;width:42px;height:42px;margin:2px auto 8px;background:#3c5140;color:var(--lime);border-radius:50%;font-size:20px;font-weight:600}.participant p{font-size:12px;margin:6px 0 3px}.participant small{font-size:10px;color:var(--muted)}.headphone-note{font-size:12px;color:var(--muted);text-align:center;margin:12px 0}.interaction-panel{display:flex;flex-direction:column;min-height:440px;overflow:hidden}.panel-tabs{display:flex;padding:8px;gap:5px;border-bottom:1px solid var(--line)}.panel-tabs button{flex:1;border:0;font-size:15px;color:var(--muted)}.panel-tabs button[aria-pressed=true]{background:var(--raised);color:var(--lime)}#chat-panel{display:flex;flex-direction:column;flex:1;padding:16px}#messages{flex:1;min-height:240px;max-height:420px;overflow-y:auto;overflow-wrap:anywhere;padding:6px 0}#messages:empty{display:grid;place-content:center;text-align:center}#messages:empty:before{content:'La charla también es parte\A de la canción.';white-space:pre-line;font-size:20px;line-height:1.5;color:var(--muted)}.message{padding:9px 0}.message strong{font-size:12px;color:var(--lime)}.message p{font-size:16px;margin:4px 0}#chat-form,#search{display:flex;gap:8px}#chat-form button,#search button{background:var(--lime);color:#182015;border:0;font-weight:700}#chat-form button{font-size:22px;min-width:48px}#search-panel{padding:16px}.search-note,#search-status{font-size:12px;color:var(--muted);line-height:1.5}#results{max-height:370px;overflow-y:auto}.result{display:flow-root;padding:12px 0;border-bottom:1px solid var(--line)}.result img{float:left;width:96px;aspect-ratio:16/9;object-fit:cover;border-radius:8px;margin:0 10px 6px 0}.result h3{font-size:14px;margin:0 0 5px;line-height:1.4}.result small{font-size:11px;color:var(--muted)}.result button{font-size:12px;padding:7px 12px;min-height:36px;margin-top:8px}.call-bar{position:fixed;z-index:20;bottom:18px;left:50%;transform:translateX(-50%);display:flex;gap:8px;background:#202d24f5;border:1px solid #4a5e4d;padding:9px;border-radius:18px;box-shadow:0 8px 40px #0005;backdrop-filter:blur(15px)}.call-bar button{white-space:nowrap;font-size:14px;min-height:48px;border:0;background:#314035}.call-bar button[aria-pressed=true]{background:var(--lime);color:#172014}
@media(max-width:650px){.app-header{height:64px;padding:0 18px}.brand{font-size:29px}#identity{max-width:160px;text-align:right;font-size:13px}main{padding:24px 18px}#lobby-intro h1{font-size:46px;letter-spacing:-2px}#rooms{grid-template-columns:1fr;gap:14px}.room{padding:22px}.room h2{font-size:25px}.person{font-size:16px}.empty{font-size:16px}.song p{font-size:20px}.enter{font-size:18px;min-height:52px}.room-header{gap:14px;margin:8px 0 16px}.room-header h1{font-size:25px}.room-header .eyebrow{display:none}.back{font-size:16px}.invite{font-size:15px;padding:9px 12px}.room-layout{grid-template-columns:1fr;gap:14px}.video-panel{padding:12px}.section-label{font-size:10px}#room-status{font-size:18px;margin:5px 0 10px}#player-shell{height:min(25dvh,200px);max-width:100%;aspect-ratio:16/9}.player-actions{margin-top:8px}.player-actions button{font-size:14px;min-height:44px}.people-panel{padding:10px 12px;margin-top:10px}#people-video{padding-top:8px}.participant{padding:8px;min-width:96px;max-width:125px}.participant p{font-size:13px}.participant small{font-size:10px}.avatar{width:32px;height:32px;font-size:16px;margin-bottom:4px}.participant video{height:65px}.headphone-note{display:none}.interaction-panel{min-height:290px}.panel-tabs button{font-size:17px;min-height:48px}#messages{min-height:160px;max-height:240px}#messages:empty:before{font-size:19px}.message p{font-size:18px}.message strong{font-size:14px}#chat-panel,#search-panel{padding:12px}input{font-size:18px}#results{max-height:330px}.result h3{font-size:16px}.result button{font-size:15px;min-height:44px}.search-note,#search-status{font-size:14px}.call-bar{bottom:max(10px,env(safe-area-inset-bottom));width:calc(100% - 24px);padding:7px;gap:6px;border-radius:16px}.call-bar button{flex:1;padding:9px 5px;font-size:13px;min-height:50px}#feedback{position:relative;font-size:14px}body:has(#session:not([hidden])) main{padding:0 12px 100px}body:has(#session:not([hidden])) .connection{padding:0 6px;font-size:10px}}
.stage-column,.interaction-panel,.video-panel,.people-panel{min-width:0}#player-shell{width:100%;max-width:400px}#room-status{line-height:1.35}.participant p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.room-layout>*{min-width:0}
@media(max-width:650px){.room-layout{grid-template-columns:minmax(0,1fr)}#player-shell{height:min(24dvh,200px);width:100%;max-width:100%}.participant{padding:7px;min-width:92px}.participant .avatar{width:28px;height:28px;margin:0 auto 4px}.participant p{margin:3px 0;font-size:12px;line-height:1.3}.participant small{font-size:9px}.people-panel{padding:8px 10px}.people-panel .section-label{min-height:18px}.interaction-panel{min-height:260px}#messages{min-height:130px;max-height:210px}}
.turn-box{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:10px}.turn-box p{font-size:14px;color:var(--muted);margin:0}#begin{background:var(--lime);color:#172014;font-weight:700;min-height:48px}#turn-label{font-size:11px;letter-spacing:0;color:var(--lime)}.queue-panel{border:1px solid var(--line);background:var(--surface);padding:14px 16px;border-radius:16px;margin-top:12px}#song-queue{max-height:200px;overflow-y:auto}#song-queue:empty:before{content:'La lista está libre. Elegí tu canción en Buscar.';display:block;color:var(--muted);font-size:14px;line-height:1.5;padding-top:10px}.queue-item{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.queue-number{color:var(--lime);font-size:16px}.queue-item>div{min-width:0;flex:1}.queue-item strong{display:block;font-size:14px;line-height:1.4;font-weight:500}.queue-item small{font-size:12px;color:var(--muted)}dialog{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:20px;max-width:440px;width:calc(100% - 28px);padding:24px}dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}dialog h2{font:600 24px Manrope;margin:0 0 15px}dialog p{font-size:17px;color:var(--muted)}dialog>div{display:flex;gap:8px;flex-wrap:wrap}#echo-accept{background:var(--lime);color:#172014}body:has(#session:not([hidden])) footer{display:block;border:0;text-align:center;margin-top:20px;padding-top:0;font-size:11px}body:has(#session:not([hidden])) footer span{display:none}@media(max-width:650px){.turn-box p{font-size:15px}.queue-panel{padding:12px}.queue-item strong{font-size:16px}.queue-item small{font-size:13px}}
/* The room is a viewport workspace; only conversation history scrolls. */
body:has(#session:not([hidden])){overflow:hidden}body:has(#session:not([hidden])) main{height:calc(100dvh - 76px);display:flex;flex-direction:column;padding-bottom:86px}#session:not([hidden]){display:flex;flex-direction:column;min-height:0;flex:1}.room-header{flex-shrink:0;margin:6px 0 14px}.room-layout{flex:1;min-height:0}.stage-column{min-height:0}.interaction-panel{min-height:0}#chat-panel{min-height:0}#messages{min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}#chat-form{flex-shrink:0}#results,#song-queue{max-height:none;overflow:visible}#people-video{overflow:hidden}.participant{min-width:0}#people-video .participant:nth-child(n+5){display:none}#search-status{margin:6px 0}.result{padding:8px 0}.pages{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:8px;font-size:12px}.pages button{min-height:36px;padding:6px 14px}.queue-item{padding:6px 0}.queue-item strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.queue-item small{font-size:11px}.queue-panel{margin-top:8px;padding:10px 12px}.headphone-note{display:none}body:has(#session:not([hidden])) footer{margin:6px 0 0;font-size:10px}body:has(#session:not([hidden])) #feedback:not(:empty){position:fixed;z-index:30;bottom:85px;left:50%;transform:translateX(-50%);background:#263b2a;padding:9px 14px;border-radius:12px;max-width:90%;width:max-content;box-shadow:0 6px 24px #0006}
@media(max-width:650px){body:has(#session:not([hidden])) .app-header{height:50px}body:has(#session:not([hidden])) main{height:calc(100dvh - 50px);padding-bottom:78px}body:has(#session:not([hidden])) .connection{display:none}.room-header{margin:0 0 8px;min-height:44px}.room-layout{grid-template-rows:auto minmax(0,1fr);gap:8px}.stage-column{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:8px;align-items:start}.video-panel{padding:8px;grid-column:1;grid-row:1/3}.video-panel .section-label{font-size:8px;letter-spacing:.5px}#room-status{font-size:14px;line-height:1.25;margin:4px 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}#player-shell{height:min(22dvh,180px);aspect-ratio:auto}#player-empty>span{font-size:24px}#player-empty p{font-size:14px}#pick-song{font-size:12px;padding:4px}.turn-box{display:block;margin-top:6px}.turn-box p{font-size:12px}#begin{width:100%;margin-top:6px;min-height:44px;font-size:16px}.people-panel{grid-column:2;grid-row:1;margin:0;padding:8px}.people-panel .section-label{font-size:8px;letter-spacing:0}#people-video{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding-top:5px}.participant{padding:4px;max-width:none}.participant .avatar{width:24px;height:24px;font-size:13px}.participant p{font-size:10px;line-height:1.2}.participant small{display:none}.participant video{height:40px}.queue-panel{grid-column:2;grid-row:2;margin:0;padding:8px}.queue-panel .section-label{font-size:8px;letter-spacing:0}#song-queue:empty:before{font-size:11px;padding-top:4px}.queue-item{gap:4px;padding:4px 0}.queue-item strong{font-size:11px}.queue-item small{font-size:10px}.queue-number{font-size:12px}.queue-item button{min-height:24px;padding:0 3px}.pages{margin-top:4px;gap:8px}.pages button{min-height:28px;padding:2px 12px}.panel-tabs{padding:4px;flex-shrink:0}.panel-tabs button{font-size:16px;min-height:42px}.interaction-panel{min-height:0}#chat-panel,#search-panel{padding:8px}#messages{min-height:0}#messages:empty:before{font-size:17px}#chat-form input{font-size:16px;padding:10px}#chat-form button{min-height:42px}#search-panel input{font-size:16px;padding:10px}#search{gap:6px}#search button{padding:8px 10px;font-size:14px}.search-note{display:none}.result img{width:65px}.result h3{font-size:13px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.result small{font-size:10px}.result button{min-height:30px;font-size:12px;padding:5px 10px;margin-top:3px}.result{padding:6px 0}.call-bar{bottom:max(6px,env(safe-area-inset-bottom));padding:6px}.call-bar button{font-size:12px;min-height:45px}body:has(#session:not([hidden])) footer{font-size:9px;margin:4px 0 0}}
@media(max-width:650px){.stage-column{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.video-panel{grid-column:1/-1;grid-row:1}.people-panel{grid-column:1;grid-row:2}.queue-panel{grid-column:2;grid-row:2}#player-shell{height:min(24dvh,200px);max-width:356px;width:100%;margin:auto}.turn-box{display:flex;align-items:center;gap:8px}#begin{width:auto;margin:0;min-width:110px}.video-panel #room-status{font-size:16px}.turn-box p{font-size:13px}.people-panel,.queue-panel{height:100%}}

/* Mobile rooms flow naturally; the chat keeps its own bounded history. */
@media(max-width:900px){
body:has(#session:not([hidden])){overflow-y:auto;overflow-x:hidden}
body:has(#session:not([hidden])) main{height:auto;min-height:calc(100dvh - 50px);display:block;padding:0 12px calc(100px + env(safe-area-inset-bottom))}
#session:not([hidden]){display:block}
.room-layout{display:flex;flex-direction:column;gap:14px}
.stage-column{display:flex;flex-direction:column;gap:12px}
.video-panel,.people-panel,.queue-panel{width:100%;height:auto;margin:0;padding:12px}
.room-header{margin:8px 0 14px;gap:12px}
.room-header h1{font-size:26px}
.video-panel .section-label,.people-panel .section-label,.queue-panel .section-label{font-size:12px;letter-spacing:0;gap:8px;flex-wrap:wrap}
.video-panel #room-status{font-size:18px;display:block;line-height:1.4}
#player-shell{height:auto;aspect-ratio:16/9;width:min(100%,42.66dvh);max-width:400px}
#player-empty{gap:3px}#player-empty>span{display:none}#player-empty p{font-size:16px}#pick-song{font-size:15px;min-height:44px}
.turn-box{flex-wrap:wrap;gap:10px}.turn-box p{font-size:16px}#begin{min-height:48px}
#people-video{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;overflow:visible;padding-top:10px}
#people-video .participant:nth-child(n+5){display:block}
.participant{padding:10px;max-width:none}.participant video{height:auto;aspect-ratio:4/3}.participant p{font-size:15px;line-height:1.4}.participant small{display:block;font-size:12px}.participant .avatar{width:40px;height:40px;font-size:20px}
#song-queue:empty:before{font-size:16px;line-height:1.5}.queue-item{padding:10px 0;gap:8px}.queue-item strong{font-size:16px;white-space:normal}.queue-item small{font-size:14px}.queue-item button{min-height:44px;min-width:44px}.pages{font-size:14px}.pages button{min-height:44px}
.interaction-panel{min-height:0;overflow:hidden;flex:none}.panel-tabs button{font-size:17px;min-height:48px}
#chat-panel,#search-panel{padding:12px}#messages{flex:none;height:clamp(200px,35dvh,360px);min-height:200px;max-height:360px;overflow-y:auto;overscroll-behavior-y:auto}
#chat-form input,#search-panel input{font-size:16px;min-height:48px}#chat-form button,#search button{min-height:48px}
.result{padding:12px 0}.result img{width:88px}.result h3{font-size:16px;line-height:1.4;display:block}.result small{font-size:13px}.result button{font-size:16px;min-height:44px;padding:8px 12px}
.call-bar{width:calc(100% - 16px);max-width:480px;bottom:max(8px,env(safe-area-inset-bottom));gap:4px;padding:6px}.call-bar button{flex:1;min-width:0;white-space:normal;font-size:14px;line-height:1.3;min-height:52px;padding:8px 4px}
body:has(#session:not([hidden])) footer{font-size:12px;margin-top:18px}
body:has(#session:not([hidden])) #feedback:not(:empty){bottom:calc(86px + env(safe-area-inset-bottom));pointer-events:none}
}
@media(max-width:900px){body:has(#session:not([hidden])) #feedback:not(:empty){position:static;transform:none;width:auto;max-width:none;margin:12px 0;box-shadow:none}}

#search-status:empty{display:none}
@media(max-width:900px){
#session:not([hidden]){display:flex;flex-direction:column;gap:0}
.room-header{order:0}.call-bar{order:1;position:static;transform:none;width:100%;max-width:none;margin:0 0 14px;box-shadow:none;backdrop-filter:none}.room-layout{order:2;flex:none}
body:has(#session:not([hidden])) main{padding-bottom:24px}
#search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}#search-status{clear:both;margin:12px 0;line-height:1.5}
}
/* Compact mobile lobby and room panels without locking page scrolling. */
@media(max-width:900px){
body:not(:has(#session:not([hidden]))) main{padding:8px 12px 16px}
body:not(:has(#session:not([hidden]))) .app-header{height:52px;padding:0 14px}
#lobby-intro .eyebrow,#lobby-intro>p{display:none}#lobby-intro h1{font-size:28px;line-height:1.1;letter-spacing:-1px;margin:6px 0 10px}#lobby-intro h1 br{display:none}#lobby-intro h1 em{margin-left:6px}
.connection{font-size:11px;margin:8px 0}#rooms{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.room{padding:12px;border-radius:14px}.letter{font-size:24px}.badge{font-size:11px}.room h2{font-size:18px;margin:6px 0}.people{min-height:30px;max-height:44px;overflow:auto;gap:4px}.person{font-size:12px;padding:3px 5px}.empty{font-size:12px;line-height:1.3}.song{gap:5px;min-height:54px;padding-top:7px;margin-top:8px}.song-icon{font-size:18px}.song small{font-size:9px}.song p{font-size:14px;line-height:1.25;margin:3px 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.enter{font-size:14px;min-height:44px;padding:8px}
body:not(:has(#session:not([hidden]))) footer{margin-top:14px;padding-top:10px;font-size:11px}
.stage-column{display:grid;grid-template-columns:1fr 1fr;gap:8px}.video-panel{grid-column:1/-1}.people-panel{grid-column:1;grid-row:2}.queue-panel{grid-column:2;grid-row:2}.people-panel,.queue-panel{padding:8px}
#people-video{gap:5px;max-height:140px;overflow-y:auto}.participant{padding:5px}.participant p{font-size:12px}.participant small{font-size:10px}.participant .avatar{width:28px;height:28px;font-size:16px}.participant video{max-height:72px}.section-label,#people-count,#queue-count{font-size:10px!important}#song-queue{max-height:140px;overflow-y:auto}#song-queue:empty:before{font-size:13px}.queue-item strong{font-size:13px}.queue-item small{font-size:11px}
.video-panel{padding:10px}.video-panel #room-status{font-size:16px;margin:4px 0 6px}#player-shell{width:min(100%,35.5dvh);max-width:320px}.turn-box p{font-size:14px}.turn-box{margin-top:6px}.room-layout{gap:8px}.call-bar{margin-bottom:8px}.call-bar button{min-height:44px}.room-header{margin:4px 0 8px}
#messages{height:180px;min-height:180px}.panel-tabs button{min-height:44px}#chat-panel,#search-panel{padding:8px}
}
@media(max-width:900px){
body{overflow:hidden}.app-header{height:50px;padding:0 12px}
body:not(:has(#session:not([hidden]))) main{height:calc(100dvh - 52px);display:flex;flex-direction:column;padding:4px 10px 8px}
#lobby-intro h1{font-size:23px;margin:3px 0}.connection{margin:4px 0;font-size:10px}#rooms{flex:1;min-height:0;grid-template-rows:repeat(2,minmax(0,1fr));margin-top:6px}.room{padding:9px;display:flex;flex-direction:column;min-height:0}.room h2{display:none}.letter{font-size:22px}.people{min-height:0;max-height:36px;margin:5px 0;overflow-y:auto}.song{min-height:0;flex:1;margin-top:4px;padding-top:5px;overflow:hidden}.song p{font-size:13px}.enter{flex-shrink:0;font-size:13px;min-height:40px;padding:6px}.room .top{flex-shrink:0}body:not(:has(#session:not([hidden]))) footer{margin-top:6px;padding-top:5px;font-size:10px}
body:has(#session:not([hidden])){overflow:hidden}
body:has(#session:not([hidden])) .app-header{height:44px}
body:has(#session:not([hidden])) main{height:calc(100dvh - 44px);min-height:0;display:flex;padding:0 8px max(6px,env(safe-area-inset-bottom))}
#session:not([hidden]){flex:1;min-height:0}.room-header{flex:none;height:40px;min-height:40px;margin:0 0 4px}.room-header h1{font-size:22px}.room-header button{min-height:38px}.call-bar{flex:none;padding:4px;margin:0 0 6px}.call-bar button{min-height:40px;font-size:13px}
.room-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(128px,.66fr);flex:1;min-height:0;gap:6px}
.stage-column{min-height:0;grid-template-rows:minmax(0,1fr) 90px;gap:6px}.video-panel{min-height:0;display:flex;flex-direction:column;padding:6px 8px;overflow:hidden}.video-panel .section-label{min-height:16px}.video-panel #room-status{font-size:14px;line-height:1.2;margin:3px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.video-panel #player-shell{flex:1;min-height:0;height:auto;max-height:24dvh;width:100%;max-width:320px;aspect-ratio:16/9}.turn-box{flex:none;margin-top:3px}.turn-box p{font-size:12px;line-height:1.2}#begin{min-height:34px;font-size:14px;padding:5px 10px}#player-empty p{display:none}#pick-song{font-size:13px;min-height:36px}
.people-panel,.queue-panel{min-height:0;display:flex;flex-direction:column;padding:6px}.people-panel .section-label,.queue-panel .section-label{flex:none;min-height:16px}#people-video,#song-queue{min-height:0;max-height:none;flex:1;overflow-y:auto;padding-top:4px}#people-video{grid-auto-rows:max-content}.participant video{height:52px}.participant p{font-size:11px}.participant small{display:none}.participant .avatar{width:24px;height:24px;font-size:14px}.queue-item strong{font-size:12px}#song-queue:empty:before{font-size:12px}
.interaction-panel{min-height:0;height:100%}.panel-tabs{flex:none;padding:3px}.panel-tabs button{font-size:15px;min-height:36px}#chat-panel{flex:1;min-height:0;padding:6px}#messages{flex:1;min-height:0;height:auto;max-height:none;overflow-y:auto}#messages:empty:before{font-size:14px}#chat-form input,#chat-form button{min-height:40px;padding:8px}#chat-form{flex:none}#search-panel{flex:1;min-height:0;overflow-y:auto;padding:8px}#results{overflow:visible}
body:has(#session:not([hidden])) footer{display:none}body:has(#session:not([hidden])) #feedback:not(:empty){position:static;flex:none;font-size:11px;line-height:1.2;margin:3px 0;padding:3px 6px;max-height:32px;overflow:hidden}
}
@media(max-width:900px){.room-layout{grid-template-rows:minmax(0,1fr) minmax(160px,.9fr)}.stage-column{grid-template-rows:minmax(0,1fr) 76px;align-items:stretch}.video-panel,.people-panel,.queue-panel{height:100%;max-height:100%;min-height:0;overflow:hidden}.video-panel #player-shell{flex:1 1 0;min-height:0;height:0;aspect-ratio:auto;max-height:24dvh}.turn-box{min-height:0}.panel-tabs button{white-space:nowrap;font-size:14px;padding:6px}.participant p{margin:2px 0}.participant .avatar{width:20px;height:20px;font-size:12px}#people-video{grid-template-columns:repeat(2,minmax(0,1fr))}#messages:empty:before{font-size:13px;line-height:1.3}.message p{font-size:16px}.message strong{font-size:13px}}
/* Larger remote cameras; participant list scrolls independently. */
@media(max-width:900px){
.room-layout{grid-template-rows:minmax(230px,1.25fr) minmax(140px,.9fr)}
.stage-column{grid-template-columns:minmax(0,2fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) clamp(140px,20dvh,180px)}
#people-video{grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;gap:8px;overflow-y:auto;overscroll-behavior:contain}
#people-video .participant{padding:4px;max-width:none;min-width:0}
#people-video .participant video{display:block;width:100%;height:clamp(88px,13dvh,126px);max-height:none;aspect-ratio:4/3;object-fit:contain;background:#0b100d}
#people-video .participant video[hidden]{display:none}
#people-video .participant p{font-size:13px;line-height:1.2;margin:4px 0;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#people-video .participant .avatar{width:32px;height:32px;font-size:18px}
#people-video #self{order:1}
}
/* Persistent profiles. */
.profile-button{display:flex;align-items:center;gap:9px;min-height:44px;padding:5px 10px 5px 6px;border:0;color:var(--muted)}
.profile-button .avatar{width:32px;height:32px;margin:0;font-size:14px}.profile-button span{max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lobby-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.lobby-actions .connection{flex:1}
#create-room{border-color:var(--lime);color:var(--lime);font-weight:600;white-space:nowrap}
.avatar{background-position:center;background-size:cover;background-repeat:no-repeat}.avatar.has-photo{background-color:#27382d}
#profile-dialog{position:relative}.dialog-close{position:absolute;right:12px;top:10px;border:0;font-size:25px;padding:3px 10px}
#profile-form{display:flex;flex-direction:column;gap:10px}#profile-form label:not(.photo-picker){font-size:13px;color:var(--muted)}
.profile-preview{display:grid;place-items:center;margin:2px 0 4px}.profile-preview .avatar{width:96px;height:96px;margin:0;font-size:38px}
#profile-photo{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.photo-picker{display:block;text-align:center;border:1px solid var(--line);border-radius:12px;padding:11px;cursor:pointer}
#profile-remove-photo{align-self:center}.profile-save{background:var(--lime);color:#172014;border:0;font-weight:700}
#profile-form>p{font-size:13px;margin:0;color:var(--muted)}
#room-form{display:flex;flex-direction:column;gap:12px}#room-form>label{font-size:13px;color:var(--muted)}#room-form>p{font-size:14px;color:var(--muted);margin:0}
.message{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;align-items:start}.message .avatar{width:30px;height:30px;margin:0;font-size:12px}.message p{overflow-wrap:anywhere}
.system-message{display:block!important;padding:6px 10px!important;text-align:center}
.system-message p{margin:0!important;color:#d9aef2!important;font-size:15px!important;font-style:italic;line-height:1.35}

/* The host can finish directly below the YouTube player. */
.player-actions:has(#stop-song:not([hidden])){display:flex}.player-actions:has(#stop-song[hidden]){display:none}
#stop-song{width:100%;background:#314035;color:var(--text);font-weight:600}

/* Sala D is a videochat room: no karaoke player, queue or song search. */
body.chat-only-room .video-panel,body.chat-only-room .queue-panel,body.chat-only-room .headphone-note{display:none}
body.chat-only-room .stage-column{display:block;min-height:0}
body.chat-only-room .people-panel{height:100%;margin:0;display:flex;flex-direction:column}
body.chat-only-room #people-video{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;overflow-y:auto}
body.chat-only-room #people-video .participant{max-width:none}
body.chat-only-room #people-video .participant video{height:auto;aspect-ratio:4/3;object-fit:cover}
@media(max-width:900px){
 .profile-button{padding-right:2px}.profile-button span{max-width:120px}
 body.chat-only-room .room-layout{grid-template-rows:minmax(180px,1fr) minmax(180px,1fr)}
 body.chat-only-room .stage-column{display:block}
 body.chat-only-room .people-panel{padding:8px}
 body.chat-only-room #people-video{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.chat-only-room #people-video .participant video{height:auto;max-height:none}
}

/* Mobile stays fixed; only content panes scroll internally. */
@media(max-width:900px){
 html,body{width:100%;max-width:100%;overflow:hidden}
 body:has(#session:not([hidden])) main,#session:not([hidden]),.room-layout,.stage-column,.interaction-panel{min-width:0;max-width:100%;overflow:hidden}
 #people-video,#messages,#results{overflow-x:hidden;overscroll-behavior:contain}
 #search-panel:not([hidden]){display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden}
 #search,.search-note,#search-status{flex:none}
 #results{flex:1;min-height:0;max-height:none;overflow-y:auto}
 body:not(:has(#session:not([hidden]))) .lobby-actions{margin:2px 0}.lobby-actions .connection{min-width:0}
 #create-room{min-height:40px;padding:6px 10px;font-size:13px}
 body:not(:has(#session:not([hidden]))) #rooms{overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;grid-auto-rows:minmax(150px,1fr)}
}

/* Phone and tablet rooms are always one fixed vertical workspace. */
@media(max-width:1100px){
 html,body{width:100%;max-width:100%;overflow:hidden}
 body:has(#session:not([hidden])) .app-header{height:50px}
 body:has(#session:not([hidden])) main{height:calc(100dvh - 50px);min-height:0;display:flex;padding:0 8px max(6px,env(safe-area-inset-bottom));overflow:hidden}
 #session:not([hidden]){display:flex;flex:1;min-width:0;min-height:0;max-width:100%;overflow:hidden}
 .room-header{flex:none;height:40px;min-height:40px;margin:0 0 4px}.room-header button{min-height:36px}
 .call-bar{position:static;order:1;transform:none;flex:none;width:100%;max-width:none;margin:0 0 6px;padding:4px}.call-bar button{min-height:38px}
 .room-layout{order:2;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1.5fr) minmax(130px,.72fr)!important;flex:1;min-width:0;min-height:0;width:100%;max-width:100%;gap:6px;overflow:hidden}
 .stage-column{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) minmax(68px,.28fr)!important;min-width:0;min-height:0;width:100%;max-width:100%;gap:6px;overflow:hidden}
 .video-panel{grid-column:1/-1!important;grid-row:1!important;display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;max-width:100%;height:100%;padding:8px;overflow:hidden}
 .video-panel #player-shell{flex:1 1 0;min-width:0;min-height:0;width:min(100%,400px);height:0;max-height:none;aspect-ratio:16/9;overflow:hidden}
 .video-panel #player-shell iframe{display:block;max-width:100%}
 .video-panel .player-actions,.video-panel .turn-box{flex:none}
 .people-panel{grid-column:1!important;grid-row:2!important}
 .queue-panel{grid-column:2!important;grid-row:2!important}
 .people-panel,.queue-panel{display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;max-width:100%;height:100%;margin:0;padding:6px;overflow:hidden}
 #people-video,#song-queue{flex:1;min-width:0;min-height:0;max-width:100%;max-height:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
 #people-video{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;gap:5px}
 #people-video .participant{min-width:0;max-width:none;padding:4px}
 #people-video .participant video{width:100%;height:clamp(52px,9dvh,86px);max-width:100%;object-fit:contain}
 .interaction-panel{grid-column:1!important;grid-row:2!important;display:flex;min-width:0;min-height:0;width:100%;max-width:100%;height:100%;overflow:hidden}
 .panel-tabs{flex:none}.panel-tabs button{min-width:0;white-space:normal}
 #chat-panel,#search-panel{min-width:0;min-height:0;max-width:100%;overflow:hidden}
 #messages,#results{min-width:0;min-height:0;max-width:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
 body.chat-only-room .stage-column{display:block!important}
 body.chat-only-room .people-panel{display:flex;grid-column:1/-1!important;grid-row:1/-1!important}
}
@media(max-width:1100px) and (max-height:550px){
 body:has(#session:not([hidden])) .app-header{display:none}
 body:has(#session:not([hidden])) main{height:100dvh}
 .room-header{height:34px;min-height:34px}.room-header h1{font-size:19px}.room-header button{min-height:32px;padding-block:4px}
 .call-bar{margin-bottom:4px}.call-bar button{min-height:34px;padding-block:4px}
 .room-layout{grid-template-rows:minmax(0,1.65fr) minmax(112px,.72fr)!important}
 .stage-column{grid-template-rows:minmax(0,1fr) minmax(54px,.24fr)!important}
 .video-panel{padding:5px}.video-panel .section-label{min-height:14px}.video-panel #room-status{margin:2px 0;font-size:13px}
 .turn-box{margin-top:2px}.turn-box p{font-size:11px}#begin{min-height:30px;padding-block:3px}
 .people-panel,.queue-panel{padding:4px}
 .panel-tabs button{min-height:32px;padding-block:3px}
 #chat-panel,#search-panel{padding:5px}#chat-form input,#chat-form button{min-height:34px;padding-block:4px}
}

/* Violet editorial identity. */
:root{--bg:#12091d;--surface:#1d102b;--raised:#2b183d;--line:#523769;--text:#fbf7ff;--muted:#baa6c9;--lime:#c997ff}
body{background:radial-gradient(circle at 12% -10%,#3b1755 0,transparent 32%),linear-gradient(160deg,#12091d 0%,#0d0815 72%);font-family:'IBM Plex Sans',sans-serif}
.brand,#lobby-intro h1,.room-header h1,.room h2,dialog h2{font-family:'Bricolage Grotesque',sans-serif}
.brand{letter-spacing:-1.2px}.brand span,.letter,.song-icon,.message strong,#turn-label{color:#e7a7ff}
#lobby-intro h1{letter-spacing:-2.2px}em{color:#d9a7ff}
.room,.video-panel,.people-panel,.interaction-panel,.queue-panel{background:linear-gradient(155deg,#21122f,#190e26);box-shadow:inset 0 1px #ffffff08}
.enter,#chat-form button,#search button,#begin,.profile-save,#echo-accept{background:linear-gradient(135deg,#d7a7ff,#ef9bd7);color:#1a0925}
.enter:hover{background:linear-gradient(135deg,#e1bcff,#f4afe0)}
.call-bar{background:#251334f5;border-color:#684580}.call-bar button,#stop-song{background:#3a2250}.call-bar button[aria-pressed=true]{background:#d7a7ff;color:#1a0925}
#player-empty{background:radial-gradient(ellipse at center,#42205c,#160a22)}
.avatar{background-color:#53306b;color:#f2c7ff}.avatar.has-photo{background-color:#321b45}
body:has(#session:not([hidden])) #feedback:not(:empty){background:#42235a}
.profile-button:hover,.panel-tabs button[aria-pressed=true]{background:#342047}
#create-room{border-color:#d7a7ff;color:#e6c4ff}
input{background:#100819;border-color:#4b3260}

/* Stage: singer, centered karaoke and audience. Chat stays below. */
body:has(#session:not([hidden])) main{width:100%;max-width:1480px}
body:has(#session:not([hidden])){font-size:18px}
.room-header h1{font-size:32px}.room-header button{font-size:17px;font-weight:700}
.room-layout{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(320px,1.55fr) minmax(190px,.72fr)!important;gap:10px!important;overflow:hidden}
.stage-column{position:relative;display:grid!important;grid-template-columns:minmax(150px,.72fr) minmax(340px,1.75fr) minmax(190px,.9fr)!important;grid-template-rows:minmax(0,1fr) minmax(82px,.28fr)!important;gap:10px!important;min-width:0;min-height:0;overflow:hidden}
.singer-panel,.video-panel,.people-panel,.queue-panel{min-width:0;min-height:0;margin:0!important;border:1px solid var(--line);border-radius:18px;background:linear-gradient(155deg,#21122f,#190e26);box-shadow:inset 0 1px #ffffff0b;overflow:hidden}
.singer-panel{grid-column:1;grid-row:1/3;display:flex;flex-direction:column;padding:12px}
.video-panel{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column;width:100%!important;height:100%;padding:12px!important}
.people-panel{grid-column:3!important;grid-row:1/3!important;display:flex;flex-direction:column;padding:12px!important}
.queue-panel{grid-column:2!important;grid-row:2!important;display:flex;flex-direction:column;padding:8px 12px!important}
.section-label,#people-count,#queue-count{font-size:15px!important;letter-spacing:.8px!important;font-weight:700}
#room-status{font-size:22px!important;margin:4px 0 7px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.video-panel #player-shell{flex:1 1 0!important;width:min(100%,660px)!important;max-width:660px!important;min-height:0!important;height:0!important;max-height:none!important;aspect-ratio:16/9!important}
.video-panel .player-actions,.video-panel .turn-box{flex:none}.turn-box p{font-size:17px!important}.player-actions button,#begin{font-size:17px!important;font-weight:800}
#singer-video,#people-video{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:max-content;gap:9px;flex:1;min-width:0;min-height:0;max-height:none!important;padding-top:10px;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain}
#singer-video:empty:before{content:'El próximo cantante aparecerá acá.';display:grid;place-content:center;height:100%;padding:12px;text-align:center;color:var(--muted);font-size:17px;line-height:1.4}
#singer-video .participant,#people-video .participant{width:100%;min-width:0!important;max-width:none!important;padding:8px!important}
#singer-video .participant video,#people-video .participant video{display:block;width:100%;height:auto!important;max-height:150px!important;aspect-ratio:4/3;object-fit:contain;background:#09050d}
#singer-video .participant video[hidden],#people-video .participant video[hidden]{display:none}
#singer-video .participant p,#people-video .participant p{font-size:17px!important;line-height:1.25;margin:5px 0!important}
#singer-video .participant small,#people-video .participant small{display:block;font-size:14px!important}
#singer-video .participant .avatar,#people-video .participant .avatar{width:46px;height:46px;font-size:22px}
#song-queue{flex:1;min-height:0;max-height:none!important;overflow-y:auto!important}#song-queue:empty:before{font-size:16px;padding-top:4px}.queue-item{padding:5px 0}.queue-item strong{font-size:16px}.queue-item small{font-size:14px}
.interaction-panel{grid-column:1!important;grid-row:2!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(230px,300px);grid-template-rows:auto minmax(0,1fr);width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}
.panel-tabs{grid-column:1/3;grid-row:1;display:flex;padding:6px 8px}.panel-tabs button{flex:0 0 auto;min-height:44px;padding:8px 18px;font-size:18px!important;font-weight:800}.panel-tabs button:last-child{margin-left:auto;background:linear-gradient(135deg,#d7a7ff,#ef9bd7);color:#1a0925;box-shadow:0 0 22px #dc9dff55}
#chat-panel{grid-column:1;grid-row:2;display:flex!important;min-width:0;min-height:0;padding:8px 12px!important}#messages{min-height:0!important;height:auto!important;max-height:none!important}.message strong{font-size:17px}.message p{font-size:21px!important;line-height:1.35}
#chat-form input{min-height:52px;font-size:20px!important}#chat-form button{min-width:56px;font-size:27px}
.call-bar{position:static!important;grid-column:2;grid-row:2;transform:none!important;display:flex;align-self:stretch;width:auto!important;max-width:none!important;margin:8px!important;padding:8px!important;border-color:#9b68bf!important;box-shadow:0 0 26px #9f63c844!important}
.call-bar button{flex:1;min-width:0;white-space:normal!important;font-size:17px!important;font-weight:800;line-height:1.25;background:linear-gradient(145deg,#563474,#3d2454)!important;border:1px solid #9a6ab9!important}
.call-bar button[aria-pressed=true]{background:linear-gradient(135deg,#dfb5ff,#f4a5dc)!important;color:#1a0925!important;box-shadow:0 0 20px #e6a9ff88}
#search-panel:not([hidden]){position:absolute;z-index:25;top:42px;right:8px;bottom:8px;display:flex!important;flex-direction:column;width:calc((100% - 20px)*.23);min-width:250px;max-width:360px;padding:12px;border:1px solid #b57bd3;border-radius:16px;background:#190d25f5;box-shadow:0 18px 55px #050207cc,0 0 28px #bd7be955;backdrop-filter:blur(18px);overflow:hidden}
#search-panel input{font-size:18px!important}#search-panel #results{flex:1;min-height:0;max-height:none;overflow-y:auto}.search-note,#search-status{font-size:15px}.result h3{font-size:17px}.result small{font-size:14px}.result button{font-size:16px;min-height:44px;font-weight:800}
button:not(:disabled){border-color:#8c5cab}#stop-song,#pick-song{color:#f5d8ff;border-color:#b87ad7;background:#4b2a65}#stop-song{box-shadow:0 0 18px #be75e744}
.headphone-note{display:none}

@media(max-width:1100px){
 body:has(#session:not([hidden])) main{padding-inline:6px!important}
 .room-layout{grid-template-rows:minmax(0,1.45fr) minmax(176px,.72fr)!important;gap:6px!important}
 .stage-column{grid-template-columns:minmax(76px,.72fr) minmax(156px,1.65fr) minmax(86px,.84fr)!important;grid-template-rows:minmax(0,1fr) minmax(66px,.25fr)!important;gap:5px!important}
 .singer-panel,.people-panel{padding:6px!important}.video-panel{padding:6px!important}.queue-panel{padding:4px 6px!important}
 .section-label,#people-count,#queue-count{font-size:12px!important;letter-spacing:0!important}
 #room-status{font-size:18px!important;margin:2px 0 4px!important}
 .video-panel #player-shell{width:100%!important;max-width:100%!important}
 .turn-box{margin-top:3px}.turn-box p{font-size:15px!important;line-height:1.2}#begin,.player-actions button{min-height:36px!important;padding:5px 8px!important;font-size:15px!important}
 #singer-video,#people-video{gap:5px;padding-top:5px}
 #singer-video .participant,#people-video .participant{padding:4px!important}
 #singer-video .participant video,#people-video .participant video{max-height:92px!important}
 #singer-video .participant p,#people-video .participant p{font-size:14px!important}
 #singer-video .participant small,#people-video .participant small{font-size:12px!important}
 #singer-video .participant .avatar,#people-video .participant .avatar{width:34px;height:34px;font-size:18px}
 #singer-video:empty:before{font-size:14px;padding:4px}
 .interaction-panel{grid-template-columns:minmax(0,1fr) minmax(142px,34%)}.panel-tabs button{font-size:16px!important;min-height:38px;padding:5px 10px}
 #chat-panel{padding:5px!important}.message strong{font-size:15px}.message p{font-size:18px!important}#chat-form input{min-height:42px;font-size:17px!important}
 .call-bar{order:initial!important;margin:4px!important;padding:4px!important}.call-bar button{min-height:42px!important;font-size:15px!important;padding:5px!important}
 #search-panel:not([hidden]){top:35px;right:4px;bottom:4px;width:min(64vw,330px);min-width:220px;padding:8px}
 #search-panel input{font-size:16px!important}.result h3{font-size:15px}.result button{font-size:14px}
 .queue-item strong{font-size:14px}.queue-item small{font-size:12px}
}
@media(max-width:560px){
 body:has(#session:not([hidden])) .app-header{height:46px}
 body:has(#session:not([hidden])) main{height:calc(100dvh - 46px)!important}
 .room-header{height:38px!important;min-height:38px!important}.room-header h1{font-size:25px}.room-header button{font-size:15px}
 .room-layout{grid-template-rows:minmax(0,1.48fr) minmax(170px,.8fr)!important}
 .stage-column{grid-template-columns:minmax(70px,.72fr) minmax(148px,1.62fr) minmax(80px,.82fr)!important}
 .singer-panel .section-label,.people-panel .section-label{font-size:11px!important}
 .video-panel .section-label{font-size:12px!important}
 #singer-video .participant p,#people-video .participant p{font-size:13px!important}
 #singer-video .participant small,#people-video .participant small{display:none}
 .interaction-panel{grid-template-columns:minmax(0,1fr) 126px}.panel-tabs{padding:3px}.panel-tabs button{font-size:15px!important;min-height:34px;padding:3px 7px}
 .message p{font-size:17px!important}.call-bar button{font-size:13px!important}
}
body.chat-only-room .singer-panel,body.chat-only-room .video-panel,body.chat-only-room .queue-panel,body.chat-only-room #search-panel{display:none!important}
body.chat-only-room .stage-column{display:block!important}
body.chat-only-room .people-panel{display:flex!important;width:100%;height:100%;padding:10px!important}
body.chat-only-room #people-video{grid-template-columns:repeat(3,minmax(0,1fr))!important}

/* Attention overlays for starting and requesting songs. */
.video-panel{position:relative}
.video-panel:has(#begin:not([hidden])):before{content:'';position:absolute;z-index:20;inset:0;background:#10071899;backdrop-filter:blur(8px);border-radius:inherit}
.turn-box:has(#begin:not([hidden])){position:absolute;z-index:21;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;width:min(88%,430px);padding:22px;border:1px solid #edb5ff;border-radius:20px;background:#291338ed;box-shadow:0 22px 70px #030104dd,0 0 42px #d78bff88;text-align:center}
.turn-box:has(#begin:not([hidden])) p{font-size:20px!important;color:#fff}
.turn-box:has(#begin:not([hidden])) #begin{width:100%;min-height:58px!important;font-size:22px!important;background:linear-gradient(135deg,#f0c7ff,#ff9fda);box-shadow:0 0 30px #e9a6ff99;animation:canta-pulse 1.8s ease-in-out infinite}
@keyframes canta-pulse{50%{transform:scale(1.035);box-shadow:0 0 42px #f0b4ffcc}}
.search-float-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.search-float-head strong{font:700 21px 'Bricolage Grotesque',sans-serif}
#search-close{min-width:42px;min-height:42px;padding:0;border:1px solid #c28add;border-radius:50%;background:#4a2860;color:#fff;font-size:27px;line-height:1}
#search-cancel{flex:none;width:100%;min-height:46px;margin-top:9px;background:#3f2652;color:#f6ddff;border:1px solid #9d6bb7;font-size:17px;font-weight:800}
#search-panel:not([hidden]):before{content:'';position:fixed;z-index:-1;inset:0;background:#11071922;backdrop-filter:blur(2px);pointer-events:none}
@media(max-width:560px){
 .turn-box:has(#begin:not([hidden])){width:92%;padding:14px}.turn-box:has(#begin:not([hidden])) p{font-size:17px!important}.turn-box:has(#begin:not([hidden])) #begin{min-height:50px!important;font-size:19px!important}
 .search-float-head strong{font-size:18px}#search-close{min-width:38px;min-height:38px;font-size:24px}#search-cancel{min-height:42px;font-size:15px}
}
.participant{overflow:visible!important}
.reaction-burst{position:absolute;z-index:40;left:50%;top:42%;color:#ff7fcd;font-size:42px;line-height:1;filter:drop-shadow(0 0 10px #fff) drop-shadow(0 0 18px #ff58c7);pointer-events:none;animation:reaction-float 1.45s ease-out forwards}
@keyframes reaction-float{0%{opacity:0;transform:translate(-50%,10px) scale(.45) rotate(-10deg)}20%{opacity:1;transform:translate(-50%,-5px) scale(1.25) rotate(8deg)}100%{opacity:0;transform:translate(-50%,-105px) scale(.9) rotate(-8deg)}}
.reaction-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:1;min-width:0;gap:4px}
.reaction-buttons button{min-width:0!important;padding:5px!important;font-size:24px!important;background:linear-gradient(135deg,#ff8dd1,#e9a9ff)!important;color:#26091f!important;border-color:#ffc7eb!important;box-shadow:0 0 16px #ff79ca55}
.reaction-buttons button:active{transform:scale(.9)}
@media(max-width:1100px){
 .interaction-panel{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr) auto!important}
 .panel-tabs{grid-column:1!important;grid-row:1!important}
 #chat-panel{grid-column:1!important;grid-row:2!important}
 .call-bar{grid-column:1!important;grid-row:3!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-self:auto!important}
 .call-bar button{white-space:normal!important;line-height:1.15}
 .reaction-buttons{min-height:100%}
}
@media(max-width:1100px){
 html,body{touch-action:pan-x pan-y}
 input,textarea,select{font-size:max(16px,1em)}
}
@media(max-width:560px){
 body:has(#session:not([hidden])){font-size:19px}
 .room-header h1{font-size:28px}.room-header button{min-height:42px!important;font-size:17px!important;padding:6px 8px}
 .section-label,#people-count,#queue-count,.singer-panel .section-label,.people-panel .section-label,.video-panel .section-label{font-size:14px!important;font-weight:800}
 #room-status{font-size:20px!important}
 #pick-song{min-height:44px;font-size:17px!important;font-weight:800}
 .turn-box p{font-size:17px!important}
 #singer-video .participant,#people-video .participant{padding:7px!important;border:1px solid #63427a}
 #singer-video .participant p,#people-video .participant p{font-size:16px!important;font-weight:700;line-height:1.3}
 #singer-video .participant small,#people-video .participant small{display:block;font-size:13px!important}
 #singer-video .participant .avatar,#people-video .participant .avatar{width:42px;height:42px;font-size:21px}
 #singer-video:empty:before{font-size:15px;font-weight:600}
 .queue-item strong{font-size:16px}.queue-item small{font-size:14px}.queue-number{font-size:17px}
 .panel-tabs button{min-height:44px!important;font-size:18px!important;padding:7px 10px}
 #chat-form input{min-height:48px;font-size:18px!important}#chat-form button{min-height:48px;min-width:52px;font-size:27px}
 .call-bar{gap:6px!important;padding:6px!important}
 .call-bar button{min-height:56px!important;padding:8px 5px!important;font-size:16px!important;font-weight:900;line-height:1.2!important}
 .reaction-buttons button{font-size:25px!important;padding:4px!important}
 #search-panel input{min-height:48px;font-size:17px!important}#search-go{min-height:48px;font-size:16px}
 #search-close{min-width:42px;min-height:42px;font-size:27px}#search-cancel{min-height:48px;font-size:17px}
 .result button{min-height:48px;font-size:16px}
}
@media(max-width:560px){
 body:has(#session:not([hidden])) .room-header button{font-size:18px!important}
 body:has(#session:not([hidden])) #pick-song,
 body:has(#session:not([hidden])) #begin,
 body:has(#session:not([hidden])) #stop-song{font-size:19px!important}
 body:has(#session:not([hidden])) .panel-tabs button{min-height:48px!important;font-size:20px!important}
 body:has(#session:not([hidden])) .call-bar button{min-height:64px!important;font-size:19px!important;letter-spacing:-.2px}
 body:has(#session:not([hidden])) .reaction-buttons button{font-size:27px!important}
 body:has(#session:not([hidden])) #search-go,
 body:has(#session:not([hidden])) #search-cancel,
 body:has(#session:not([hidden])) .result button{font-size:18px!important}
 body:not(:has(#session:not([hidden]))) .enter,
 #create-room{font-size:18px!important}
}
@media(max-width:560px){
 body{font-size:20px}
 .brand{font-size:34px}.profile-button span,#identity{font-size:16px}
 #lobby-intro h1{font-size:28px}.connection{font-size:13px}.letter{font-size:27px}.badge{font-size:14px}
 .person,.empty{font-size:15px}.song small{font-size:12px}.song p{font-size:17px}
 .room-header .eyebrow{font-size:13px}.room-header h1{font-size:29px}
 .section-label,#people-count,#queue-count,.singer-panel .section-label,.people-panel .section-label,.video-panel .section-label{font-size:15px!important}
 #room-status{font-size:22px!important}.turn-box p{font-size:18px!important}
 #singer-video:empty:before{font-size:17px}
 #singer-video .participant p,#people-video .participant p{font-size:18px!important}
 #singer-video .participant small,#people-video .participant small{font-size:15px!important}
 .queue-item strong{font-size:18px}.queue-item small{font-size:15px}.queue-number{font-size:18px}
 #song-queue:empty:before{font-size:16px}
 #messages:empty:before{font-size:17px}.message strong{font-size:17px}.message p{font-size:20px!important}
 #chat-form input{font-size:19px!important}
 .search-float-head strong{font-size:21px}.search-note,#search-status{font-size:16px}
 .result h3{font-size:18px}.result small{font-size:15px}
 #feedback{font-size:16px}
 dialog h2{font-size:28px}dialog p,#profile-form>p,#room-form>p{font-size:16px!important}
 #profile-form label:not(.photo-picker),#room-form>label,.photo-picker{font-size:17px}
}
@media(max-width:560px){
 body{font-size:22px}
 button{font-size:22px}
 body:has(#session:not([hidden])) .room-header button{font-size:20px!important}
 body:has(#session:not([hidden])) #pick-song,
 body:has(#session:not([hidden])) #begin,
 body:has(#session:not([hidden])) #stop-song{font-size:22px!important}
 body:has(#session:not([hidden])) .panel-tabs button{min-height:54px!important;font-size:22px!important}
 body:has(#session:not([hidden])) .call-bar button{min-height:72px!important;font-size:21px!important}
 #room-status{font-size:25px!important}.turn-box p{font-size:21px!important}
 #singer-video .participant p,#people-video .participant p{font-size:20px!important}
 .queue-item strong{font-size:20px}.message p{font-size:22px!important}
 #chat-form input,#search-panel input{font-size:21px!important}
 .search-float-head strong{font-size:24px}.result h3{font-size:21px}
 body:not(:has(#session:not([hidden]))) .enter,#create-room{font-size:21px!important}
}
@media(max-width:560px){
 .connection,.badge,.person,.empty,.song small,.song p,footer,
 .eyebrow,.section-label,#people-count,#queue-count,
 #singer-video:empty:before,#singer-video .participant small,#people-video .participant small,
 .queue-item small,#song-queue:empty:before,
 #messages:empty:before,.message strong,
 .search-note,#search-status,.result small,#feedback,
 dialog p,#profile-form>p,#room-form>p,
 #profile-form label:not(.photo-picker),#room-form>label,.photo-picker{font-size:20px!important}
 .profile-button span,#identity{font-size:20px!important}
 .profile-button .avatar{width:38px;height:38px;font-size:20px!important}
 .section-label>span{font-size:20px!important}
}
html.room-route-pending #lobby-intro,html.room-route-pending .lobby-actions,html.room-route-pending #rooms,html.room-route-pending footer{visibility:hidden}
html.room-route-pending body:before{content:'Volviendo a la sala…';position:fixed;z-index:80;inset:50% auto auto 50%;transform:translate(-50%,-50%);padding:16px 22px;border:1px solid #9d6bb7;border-radius:16px;background:#21122ff2;color:#fff;font-size:20px;font-weight:800;box-shadow:0 18px 55px #000a}
@media(max-width:560px){
 body{font-size:18px}
 button,input,textarea,select{font-size:18px!important}
 .connection,.badge,.person,.empty,.song small,.song p,footer,
 .eyebrow,.section-label,.section-label>span,#people-count,#queue-count,
 #singer-video:empty:before,#singer-video .participant p,#people-video .participant p,
 #singer-video .participant small,#people-video .participant small,
 .queue-item strong,.queue-item small,.queue-number,#song-queue:empty:before,
 #messages:empty:before,.message strong,.message p,
 .search-note,#search-status,.result h3,.result small,#feedback,
 dialog p,#profile-form>p,#room-form>p,
 #profile-form label:not(.photo-picker),#room-form>label,.photo-picker,
 .profile-button span,#identity{font-size:18px!important}
 .brand{font-size:32px}.room-header h1{font-size:27px}#room-status{font-size:22px!important}
 body:has(#session:not([hidden])) .room-header button,
 body:has(#session:not([hidden])) #pick-song,
 body:has(#session:not([hidden])) #begin,
 body:has(#session:not([hidden])) #stop-song,
 body:has(#session:not([hidden])) .panel-tabs button,
 body:has(#session:not([hidden])) .call-bar button,
 body:has(#session:not([hidden])) #search-go,
 body:has(#session:not([hidden])) #search-cancel,
 body:has(#session:not([hidden])) .result button,
 body:not(:has(#session:not([hidden]))) .enter,#create-room{font-size:18px!important}
 body:has(#session:not([hidden])) .panel-tabs button{min-height:48px!important}
 body:has(#session:not([hidden])) .call-bar button{min-height:60px!important}
}
@media(max-width:560px){
 body{font-size:16px}
 body *{font-size:18px!important}
 .connection,.badge,.song small,footer,.eyebrow,
 .section-label,.section-label>span,#people-count,#queue-count,
 #singer-video .participant small,#people-video .participant small,
 .queue-item small,.search-note,#search-status,.result small,
 #feedback,#profile-form>p,#room-form>p{font-size:15px!important}
 .person,.empty,.song p,#singer-video:empty:before,
 #singer-video .participant p,#people-video .participant p,
 .queue-item strong,.queue-number,#song-queue:empty:before,
 #messages:empty:before,.message strong,
 #profile-form label:not(.photo-picker),#room-form>label,.photo-picker,
 .profile-button span,#identity{font-size:16px!important}
 .brand,.room-header h1,#room-status,.turn-box p,.message p,
 .search-float-head strong,.result h3,dialog h2,dialog p,
 button,input,textarea,select{font-size:18px!important}
 .profile-button .avatar{font-size:18px!important}
 body:has(#session:not([hidden])) .room-header button,
 body:has(#session:not([hidden])) #pick-song,
 body:has(#session:not([hidden])) #begin,
 body:has(#session:not([hidden])) #stop-song,
 body:has(#session:not([hidden])) .panel-tabs button,
 body:has(#session:not([hidden])) .call-bar button,
 body:has(#session:not([hidden])) #search-go,
 body:has(#session:not([hidden])) #search-cancel,
 body:has(#session:not([hidden])) .result button,
 body:not(:has(#session:not([hidden]))) .enter,#create-room{font-size:18px!important}
}
@media(max-width:560px){
 body{font-size:18px}
 .connection,.badge,.song small,footer,.eyebrow,
 .section-label,.section-label>span,#people-count,#queue-count,
 #singer-video .participant small,#people-video .participant small,
 .queue-item small,.search-note,#search-status,.result small,
 #feedback,#profile-form>p,#room-form>p{font-size:16px!important}
 .person,.empty,.song p,#singer-video:empty:before,
 #singer-video .participant p,#people-video .participant p,
 .queue-item strong,.queue-number,#song-queue:empty:before,
 #messages:empty:before,.message strong,.message p,
 #profile-form label:not(.photo-picker),#room-form>label,.photo-picker,
 .profile-button span,#identity,input,textarea,select{font-size:18px!important}
 .brand,.room-header h1,#room-status,.turn-box p,
 .search-float-head strong,.result h3,dialog h2,dialog p,
 button{font-size:20px!important}
 body:has(#session:not([hidden])) .room-header button,
 body:has(#session:not([hidden])) #pick-song,
 body:has(#session:not([hidden])) #begin,
 body:has(#session:not([hidden])) #stop-song,
 body:has(#session:not([hidden])) .panel-tabs button,
 body:has(#session:not([hidden])) .call-bar button,
 body:has(#session:not([hidden])) #search-go,
 body:has(#session:not([hidden])) #search-cancel,
 body:has(#session:not([hidden])) .result button,
 body:not(:has(#session:not([hidden]))) .enter,#create-room{font-size:20px!important}
}
@media(max-width:560px){
 body{font-size:13px}
 .connection,.badge,.song small,footer,.eyebrow,
 .section-label,.section-label>span,#people-count,#queue-count,
 #singer-video .participant small,#people-video .participant small,
 .queue-item small,.search-note,#search-status,.result small,
 #feedback,#profile-form>p,#room-form>p{font-size:12px!important}
 .person,.empty,.song p,#singer-video:empty:before,
 #singer-video .participant p,#people-video .participant p,
 .queue-item strong,.queue-number,#song-queue:empty:before,
 #messages:empty:before,.message strong,.message p,
 #profile-form label:not(.photo-picker),#room-form>label,.photo-picker,
 .profile-button span,#identity{font-size:14px!important}
 input,textarea,select{font-size:16px!important}
 #room-status,.turn-box p,
 .search-float-head strong,.result h3,dialog h2,dialog p,
 button{font-size:15px!important}
 .brand{font-size:24px!important}.room-header h1{font-size:20px!important}dialog h2{font-size:18px!important}
 body:has(#session:not([hidden])) .room-header button,
 body:has(#session:not([hidden])) #pick-song,
 body:has(#session:not([hidden])) #begin,
 body:has(#session:not([hidden])) #stop-song,
 body:has(#session:not([hidden])) .panel-tabs button,
 body:has(#session:not([hidden])) .call-bar button,
 body:has(#session:not([hidden])) #search-go,
 body:has(#session:not([hidden])) #search-cancel,
 body:has(#session:not([hidden])) .result button,
 body:not(:has(#session:not([hidden]))) .enter,#create-room{font-size:15px!important}
 body:has(#session:not([hidden])) .panel-tabs button{min-height:44px!important}
 body:has(#session:not([hidden])) .call-bar button{min-height:50px!important}
 body:has(#session:not([hidden])) .reaction-buttons button{font-size:21px!important}
}
@media(max-width:560px){
 body:has(#session:not([hidden])) main{padding-bottom:max(52px,env(safe-area-inset-bottom))!important}
 .room-layout{grid-template-rows:minmax(330px,.85fr) minmax(280px,1.15fr)!important}
 .stage-column{grid-template-columns:68px minmax(0,1fr) 76px!important;grid-template-rows:minmax(0,1fr) 94px!important}
 .singer-panel,.people-panel{padding:4px!important}
 #singer-video,#people-video{gap:3px!important;padding-top:3px!important}
 #singer-video .participant,#people-video .participant{padding:3px!important}
 #singer-video .participant .avatar,#people-video .participant .avatar{width:28px;height:28px;font-size:14px!important}
 #singer-video .participant p,#people-video .participant p{margin:2px 0!important;font-size:12px!important;line-height:1.15!important}
 #singer-video .participant video,#people-video .participant video{max-height:64px!important}
 .queue-panel{padding:4px 6px!important}
 #song-queue{min-height:62px!important}
 .queue-item{padding:3px 0!important}.queue-item strong{font-size:13px!important}.queue-item small{font-size:11px!important}
 .panel-tabs button{min-height:36px!important;padding:3px 6px!important;font-size:14px!important}
 #chat-panel{padding:4px 6px!important}
 #chat-form{position:relative;z-index:3;order:-1;flex:none!important;margin-bottom:4px}
 #chat-form input{min-height:38px!important;font-size:16px!important}
 #chat-form button{min-width:42px!important;min-height:38px!important;padding:4px!important}
 .call-bar{gap:3px!important;margin:3px!important;padding:3px!important}
 body:has(#session:not([hidden])) .call-bar button{min-height:44px!important;padding:3px!important;font-size:14px!important}
 body:has(#session:not([hidden])) .reaction-buttons button{font-size:20px!important}
}
@media(max-width:380px),(max-width:560px) and (max-height:700px){
 body:has(#session:not([hidden])) .app-header{height:42px}
 body:has(#session:not([hidden])) main{height:calc(100dvh - 42px)!important;padding-bottom:max(24px,env(safe-area-inset-bottom))!important}
 .room-header{height:34px!important;min-height:34px!important}
 .room-layout{grid-template-rows:minmax(220px,.9fr) minmax(180px,1.1fr)!important}
 .stage-column{grid-template-columns:56px minmax(0,1fr) 64px!important;grid-template-rows:minmax(0,1fr) 72px!important}
 .singer-panel,.people-panel{padding:3px!important}
 #singer-video .participant .avatar,#people-video .participant .avatar{width:24px;height:24px;font-size:12px!important}
 #singer-video .participant p,#people-video .participant p{font-size:11px!important}
 #singer-video .participant video,#people-video .participant video{max-height:48px!important}
 .queue-panel{padding:3px 5px!important}
 #song-queue{min-height:42px!important}.queue-item strong{font-size:12px!important}.queue-item small{font-size:10px!important}
 .panel-tabs button{min-height:32px!important;padding:2px 5px!important;font-size:13px!important}
 #chat-panel{padding:3px 5px!important}
 #chat-form input{min-height:34px!important}
 #chat-form button{min-width:38px!important;min-height:34px!important}
 .call-bar{grid-template-columns:minmax(90px,.9fr) repeat(2,minmax(0,1fr))!important;gap:2px!important;margin:2px!important;padding:2px!important}
 body:has(#session:not([hidden])) .call-bar button{min-height:40px!important;padding:2px!important;font-size:12px!important}
 body:has(#session:not([hidden])) .reaction-buttons{gap:2px}
 body:has(#session:not([hidden])) .reaction-buttons button{font-size:18px!important}
}
@media(max-width:560px){
 body:has(#session:not([hidden])) #feedback:not(:empty){position:fixed!important;z-index:90;left:50%;bottom:max(64px,env(safe-area-inset-bottom));transform:translateX(-50%)!important;width:min(88vw,340px);max-width:340px;max-height:none;margin:0!important;padding:9px 12px!important;border:1px solid #d39af1;border-radius:12px;background:#42235af2;box-shadow:0 12px 34px #050207aa;font-size:13px!important;line-height:1.3;text-align:center;pointer-events:none}
}
@media(hover:none) and (pointer:coarse){
 html{-webkit-text-size-adjust:116.67%;text-size-adjust:116.67%}
 html.physical-landscape body>.app-header,html.physical-landscape body>main,html.physical-landscape body>dialog{visibility:hidden!important;pointer-events:none!important}
 html.physical-landscape body:after{content:'↻  Usá el celular en vertical';position:fixed;z-index:9999;inset:0;display:grid;place-items:center;padding:40px;background:#150a20;color:#fff;font:800 28px 'Bricolage Grotesque',sans-serif;text-align:center;visibility:visible}
}
