/* Live MasterClass «teatro» */
.th-lobby{max-width:1100px;margin:0 auto;padding:48px 16px;display:grid;gap:24px}
.th-lobby.host{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);align-items:start}
.th-lobby-card{background:#100904;color:#ffedd7;border-radius:16px;padding:40px 32px;text-align:center}
.th-lobby-card h1{color:#ffedd7;font-size:clamp(28px,4vw,44px);line-height:1.05;margin:10px 0 8px}
.th-lobby-card .muted{color:#c9b8a3}
.th-lobby-card .eyebrow{color:#ffedd7;opacity:.8}
.th-lobby-card .btn.big{margin-top:22px;font-size:18px;padding:16px 28px}
.th-lobby-card .notice{background:#2a1a0e;color:#ffedd7;border-color:#40372e}
.th-ok{font-size:20px;font-weight:700;margin-top:20px}
.th-pct{font:700 64px/1 'Space Grotesk',sans-serif;color:#ffedd7;margin:16px 0}
.th-wait{margin-top:26px}
.th-wait h2{color:#ffedd7;margin:14px 0 6px}
.th-dots{display:inline-flex;gap:8px}.th-dots i{width:10px;height:10px;border-radius:50%;background:#dc5000;animation:thdot 1.2s infinite ease-in-out}
.th-dots i:nth-child(2){animation-delay:.15s}.th-dots i:nth-child(3){animation-delay:.3s}
@keyframes thdot{0%,80%,100%{transform:scale(.5);opacity:.4}40%{transform:scale(1);opacity:1}}
.th-admin h2{margin-top:0}
.th-q-stats{margin:0 0 12px}
.th-q ul{list-style:none;padding:0;margin:8px 0 16px;display:grid;gap:6px}
.th-q li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line,#e5e5e5);border-radius:10px}
.th-q .who{display:flex;flex-direction:column;min-width:0}.th-q .who small{color:#888;overflow:hidden;text-overflow:ellipsis}
.th-q .acts{display:flex;gap:6px;flex-shrink:0}
.th-q h3{font-size:14px;text-transform:uppercase;letter-spacing:.06em;margin:16px 0 4px}
.th-q .check{margin:12px 0}
.th-offer-form{margin-top:20px;border-top:1px dashed #ccc;padding-top:16px}
@media(max-width:860px){.th-lobby.host{grid-template-columns:1fr}}

/* la sala */
.th-shell{position:fixed;inset:0;display:flex;flex-direction:column;background:#100904;color:#ffedd7;z-index:50}
.th-top{display:flex;align-items:center;gap:14px;padding:10px 16px;border-bottom:1px solid #40372e}
.th-brand img{width:30px;height:30px;object-fit:contain;filter:invert(1) sepia(1) saturate(.3) brightness(1.1)}
.th-title{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.th-count{font-size:13px;color:#c9b8a3}
.th-leave{color:#ffedd7!important;border-color:#6c5f51!important;background:transparent!important}
.th-shell [hidden],.th-lobby [hidden]{display:none!important}
.th-body{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 360px;min-height:0}
.th-stage{position:relative;background:#000;display:grid;place-items:center;overflow:hidden}
.th-main{width:100%;height:100%}.th-main video{width:100%;height:100%;object-fit:contain;background:#000}
.th-pip{position:absolute;right:16px;bottom:16px;width:22%;min-width:160px;aspect-ratio:16/9;border-radius:12px;overflow:hidden;border:2px solid #ffedd755;background:#000}
.th-pip video{width:100%;height:100%;object-fit:cover}
.th-idle{position:absolute;color:#c9b8a3;font-size:18px}
.th-audio{position:absolute;top:16px;left:50%;transform:translateX(-50%)}
.th-float{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.th-float span{position:absolute;bottom:-40px;font-size:34px;animation:thfloat 3.2s ease-out forwards}
@keyframes thfloat{0%{transform:translate(0,0) scale(.6);opacity:0}10%{opacity:1}100%{transform:translate(var(--dx),-70vh) scale(1.2);opacity:0}}
.th-hostbar{position:absolute;left:16px;bottom:16px;display:flex;gap:8px}
.th-hostbar .rbtn,.th-invite .rbtn,.th-dev .rbtn{background:#382416;color:#ffedd7;border:1px solid #6c5f51;border-radius:22px;padding:9px 14px;cursor:pointer;font-weight:600}
.th-hostbar .rbtn.off{background:#5a1c10;border-color:#a0412c}
.th-side{display:flex;flex-direction:column;min-height:0;border-left:1px solid #40372e;background:#160d06}
.th-tabs{display:flex;border-bottom:1px solid #40372e}
.th-tabs button{flex:1;background:none;border:0;color:#c9b8a3;padding:12px 6px;cursor:pointer;font-weight:600;border-bottom:2px solid transparent}
.th-tabs button.on{color:#ffedd7;border-bottom-color:#dc5000}
.th-tabs i{font-style:normal;color:#dc5000}
.th-offer{display:flex;gap:10px;align-items:center;padding:10px 12px;background:#382416;font-size:13px;line-height:1.35}
.th-offer .btn{flex-shrink:0}
.th-pane{flex:1;display:flex;flex-direction:column;min-height:0;overflow:auto}
#th-pane-queue,#th-pane-offer{padding:14px;color:#ffedd7}
#th-pane-queue .th-q li{border-color:#40372e}
#th-pane-offer .form label{color:#ffedd7}
.th-chat{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:6px}
.th-msg{font-size:14px;line-height:1.4;word-wrap:break-word}
.th-msg b{color:#e8b98d}.th-msg.host b{color:#ff8a4c}.th-msg.me b{color:#ffedd7}
.th-msg.offer{background:#382416;border:1px solid #dc5000;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.th-msg.offer p{margin:0}
.th-kick{background:none;border:0;color:#6c5f51;cursor:pointer;font-size:11px}.th-kick:hover{color:#ff8a4c}
.th-emotes{display:flex;justify-content:space-around;padding:6px 8px;border-top:1px solid #40372e}
.th-emotes button{background:none;border:0;font-size:24px;cursor:pointer;padding:4px 6px;border-radius:8px;transition:transform .1s}
.th-emotes button:hover{background:#2a1a0e;transform:scale(1.15)}
.th-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #40372e}
.th-form input{flex:1;min-width:0;background:#2a1a0e;border:1px solid #40372e;color:#ffedd7;border-radius:10px;padding:10px}
@media(max-width:860px){
  .th-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
  .th-stage{aspect-ratio:16/9}
  .th-side{border-left:0;border-top:1px solid #40372e}
  .th-count{display:none}
}
.th-main iframe{width:100%;height:100%;border:0;display:block;background:#000}
.th-stream-form{margin-bottom:24px;padding-bottom:16px;border-bottom:1px dashed #ccc}
.th-self{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.th-hostbar{z-index:3;flex-wrap:wrap;align-items:center;right:16px}
.th-hostbar .rbtn.go{background:#d71e1e;border-color:#ff6b5b;font-size:16px;padding:12px 20px}
.th-hostbar .rbtn.stop{background:#2a1a0e}
.th-onair{background:#2a1a0e;color:#c9b8a3;border-radius:22px;padding:9px 14px;font-weight:700;font-size:13px}
.th-onair.on{background:#d71e1e;color:#fff}
.th-warn{color:#ffb38a;font-size:13px}
.th-open{color:#7fd18b;font-weight:700}
.th-v{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.th-stage video.th-pip{position:absolute;right:16px;bottom:16px;width:22%;min-width:150px;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:12px;border:2px solid #ffedd755;background:#000;z-index:2}
.th-stage .th-hostbar{z-index:3}
.th-early{margin-bottom:20px;padding-bottom:16px;border-bottom:1px dashed #ccc}
.live-banner{display:flex;align-items:center;gap:12px;justify-content:center;flex-wrap:wrap;background:#d71e1e;color:#fff;text-decoration:none;padding:10px 16px;font-weight:600;position:relative;z-index:9}
.live-banner .lb-dot{width:10px;height:10px;border-radius:50%;background:#fff;animation:lbpulse 1.2s infinite}
.live-banner .lb-title{opacity:.9;font-weight:500}
.live-banner .lb-cta{background:#fff;color:#d71e1e;border-radius:20px;padding:4px 12px;font-weight:700}
@keyframes lbpulse{0%,100%{opacity:1}50%{opacity:.3}}
.mc-live-pill{display:inline-block;background:#d71e1e;color:#fff;border-radius:12px;padding:2px 8px;font-size:12px;font-weight:700;margin-left:6px}
.th-notify{margin:8px 0 4px}

/* invitados en el escenario */
.th-guests{position:absolute;left:14px;bottom:76px;display:flex;gap:10px;z-index:3;max-width:calc(100% - 28px);overflow-x:auto}
.th-guest{position:relative;width:180px;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#2a1a0e;border:2px solid rgba(255,237,215,.5);flex:none}
.th-guest video{width:100%;height:100%;object-fit:cover;display:block}
.th-guest .av{display:none;position:absolute;inset:0;place-items:center;font:700 38px/1 Inter,sans-serif;color:#ffedd7}
.th-guest.novideo .av{display:grid}
.th-guest b{position:absolute;left:0;right:0;bottom:0;padding:3px 8px;background:rgba(0,0,0,.6);color:#fff;font:600 12px/1.3 Inter,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.th-g-x{position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:50%;border:0;background:rgba(0,0,0,.65);color:#fff;cursor:pointer;font-size:12px}
/* invitación a hablar y selector de dispositivos */
.th-invite,.th-dev{position:absolute;left:50%;transform:translateX(-50%);z-index:6;background:#1c120a;color:#ffedd7;border:1px solid rgba(255,237,215,.25);border-radius:14px;padding:16px 18px;box-shadow:0 14px 40px rgba(0,0,0,.5);width:min(420px,calc(100% - 28px))}
.th-invite{top:16px;text-align:center}.th-invite p{margin:0 0 12px}.th-invite .row{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.th-dev{bottom:78px}.th-dev h3{margin:0 0 12px;font-size:16px}
.th-dev label{display:block;font-size:13px;margin-bottom:10px}
.th-dev select{display:block;width:100%;margin-top:4px;padding:8px;border-radius:8px;background:#100904;color:#ffedd7;border:1px solid rgba(255,237,215,.3);font:inherit}
.th-meter{height:8px;border-radius:4px;background:rgba(255,237,215,.15);overflow:hidden;margin:6px 0 2px}.th-meter i{display:block;height:100%;width:0;background:#4ade80;transition:width .08s}
.th-dev .small{font-size:12px;opacity:.7;margin:0 0 12px}
/* grabación */
.th-rec-pill{background:#b91c1c;color:#fff;border-radius:999px;padding:3px 10px;font:700 12px/1.4 Inter,sans-serif;animation:threc 1.4s infinite}
@keyframes threc{50%{opacity:.55}}
.rbtn.rec.on{background:#b91c1c;color:#fff;border-color:#b91c1c}
.th-rec-dlg{border:0;border-radius:16px;padding:24px;max-width:440px;background:#1c120a;color:#ffedd7}
.th-rec-dlg::backdrop{background:rgba(0,0,0,.6)}.th-rec-dlg h2{margin:0 0 8px}.th-rec-dlg .row{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}
@media (max-width:700px){.th-guest{width:120px}.th-guests{bottom:70px}}
.th-bunny{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);width:clamp(150px,22%,240px);aspect-ratio:1;display:grid;place-items:center}
.th-bunny[hidden]{display:none}
.th-bunny-v{width:80%;aspect-ratio:1;border-radius:50%;overflow:hidden;background:#000;display:block}
.th-bunny video{width:100%;height:100%;object-fit:cover;transform:scale(1.9) translateY(4%);display:block}
.th-spin{position:absolute;inset:0;border-radius:50%;border:3px solid rgba(255,237,215,.12);border-top-color:#ed0000;animation:thspin 1.1s linear infinite}
@keyframes thspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.th-spin{animation-duration:3s}}
.th-idle.over{top:calc(44% + 140px);bottom:auto;z-index:1;color:#ffedd7;font-size:15px}
@media (max-width:700px){
  .th-bunny{width:clamp(80px,30%,150px);top:40%}
  .th-idle.over{display:none}
  .th-hostbar{left:8px;right:8px;bottom:8px;flex-wrap:nowrap;overflow-x:auto;gap:6px;scrollbar-width:none}
  .th-hostbar .rbtn,.th-hostbar .rbtn.go{padding:7px 11px;font-size:12px;flex:none}
}
/* Moderación: contador solo para el equipo y canal privado en el chat */
.th-count:not([hidden]){display:inline-flex;align-items:center;gap:4px;font-weight:700;color:#ffedd7;background:#2a1a0e;border:1px solid #40372e;border-radius:999px;padding:3px 10px;font-size:13px}
.th-count[hidden]{display:none!important}
.host-badge.mod-badge{background:#7b4fd6}
.th-msg.mod b{color:#c7a8ff}
.th-msg.staff{background:#241a3d;border:1px dashed #9a7be8;border-radius:10px;padding:6px 9px}
.th-msg .staff-tag{display:block;font-style:normal;font-size:11px;font-weight:700;color:#c7a8ff;margin-bottom:2px}
.th-staff-toggle{margin:8px 12px 0;align-self:flex-start;background:#2a1a0e;border:1px solid #40372e;color:#c7a8ff;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:700;cursor:pointer}
.th-staff-toggle.on{background:#7b4fd6;border-color:#9a7be8;color:#fff}
.th-form.staff input{border-color:#9a7be8;background:#241a3d}
/* Invitados (enlace para redes) */
.th-gbar{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:10px;max-width:calc(100% - 28px);background:rgba(20,14,10,.82);backdrop-filter:blur(6px);border:1px solid #40372e;border-radius:14px;padding:8px 10px 8px 14px;font-size:13px;color:#ffedd7;box-shadow:0 6px 20px rgba(0,0,0,.35)}
.th-gbar span{line-height:1.35}
.th-gbar .google-btn{flex:none;padding:6px 12px;font-size:13px;white-space:nowrap}
.th-gbar-x{flex:none;background:none;border:0;color:#9b8b7a;cursor:pointer;font-size:14px;padding:4px}
.th-gbar-x:hover{color:#ffedd7}
.th-gchat{padding:10px 12px;border-top:1px solid #40372e;font-size:13px;color:#c9b8a3;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.th-gchat p{margin:0}
.th-gjoin{margin-top:22px;padding-top:16px;border-top:1px dashed #ccc;display:flex;flex-direction:column;gap:10px;align-items:center;font-size:14px}
.th-gjoin p{margin:0}
.th-glink{margin:14px 0;padding:12px;border:1px dashed #40372e;border-radius:12px}
.th-glink h3{margin:0 0 6px}
.th-glink input{width:100%;margin:6px 0;background:#2a1a0e;border:1px solid #40372e;color:#ffedd7;border-radius:8px;padding:8px;font-size:12px}
.th-glink .row{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:860px){.th-gbar{flex-wrap:wrap;bottom:8px;font-size:12px}}
/* Emojis de Miniruben */
.th-emotes.th-mr{border-top:0;padding-top:0;flex-wrap:wrap;justify-content:space-around;gap:2px}
.th-emotes.th-mr button{padding:3px;line-height:0}
.th-emotes.th-mr img{width:44px;height:44px;display:block}
.th-float span.mr{line-height:0}
.th-float span.mr img{width:64px;height:64px;display:block;filter:drop-shadow(0 2px 6px rgba(0,0,0,.4))}
/* Cámara del anfitrión en un círculo arriba a la izquierda cuando comparte pantalla */
.th-stage video.th-pip{left:16px;top:16px;right:auto;bottom:auto;width:clamp(96px,15%,170px);min-width:0;aspect-ratio:1/1;height:auto;border-radius:50%;object-fit:cover;border:3px solid #ED0000;box-shadow:0 6px 20px rgba(0,0,0,.45)}
.th-gjoin.th-gjoin-first{margin:18px 0 6px;padding:0 0 16px;border-top:0;border-bottom:1px dashed #ccc}
.th-gjoin.th-gjoin-first p{color:#ffedd7;font-size:15px}
.th-gjoin .or-sep{display:none}
.th-gjoin .google-btn{max-width:360px;width:100%}
/* Moderadora: cabecita de Korogi dorada junto a su nombre */
.mod-ico{display:inline-block;width:18px;height:18px;margin:0 2px -3px 4px;background:linear-gradient(160deg,#fff1a8 0%,#f5c542 45%,#b8860b 100%);-webkit-mask:url(/assets/korogi-head-mask.png) center/contain no-repeat;mask:url(/assets/korogi-head-mask.png) center/contain no-repeat;filter:drop-shadow(0 0 3px rgba(245,197,66,.55))}
.host-badge.mod-badge{background:linear-gradient(160deg,#f5c542,#b8860b);color:#1a1206}
.th-msg.mod b{color:#f5c542}
.th-gbar{width:min(620px,calc(100% - 28px));bottom:14px}
.th-gbar span{flex:1;min-width:0}
.th-gbar .or-sep,.th-gchat .or-sep{display:none}
.th-gbar .google-btn{width:auto!important;flex:none}
.th-gchat .google-btn{width:100%}
/* Móvil: la cámara del anfitrión, cuando comparte pantalla, en un círculo pequeño para no tapar el texto */
@media (max-width:860px){.th-stage video.th-pip{width:clamp(44px,13vw,68px);left:6px;top:6px;border-width:2px}}
/* Móvil en horizontal: vídeo a la izquierda y chat a la derecha, todo en una pantalla */
@media (orientation:landscape) and (max-height:540px){
  .th-top{padding:4px 10px;gap:8px}.th-top .btn{padding:4px 10px;font-size:12px}.th-brand img{width:22px;height:22px}
  .th-body{grid-template-columns:minmax(0,1fr) minmax(200px,34%)!important;grid-template-rows:minmax(0,1fr)!important}
  .th-stage{aspect-ratio:auto!important;height:100%;min-height:0}
  .th-side{border-top:0!important;border-left:1px solid #40372e!important;min-height:0}
  .th-emotes{padding:4px 6px}.th-emotes button{font-size:18px;padding:2px}
  .th-emotes.th-mr img{width:30px;height:30px}
  .th-form input{padding:6px 8px;font-size:13px}.th-form .btn{padding:6px 10px}
  .th-stage video.th-pip{width:clamp(40px,9vh,60px)}
  .th-gbar{font-size:11px;padding:4px 6px 4px 10px;bottom:6px}.th-gbar > span{display:none}
  .th-hostbar{bottom:4px}
}
/* Móvil: la barra de Google y el recuadro del descuento, compactos para no tapar la pantalla compartida ni el chat */
@media (max-width:860px){
  .th-gbar{width:auto;left:8px;right:auto;transform:none;bottom:8px;padding:4px 4px 4px 8px;gap:6px}
  .th-gbar > span{display:none}
  .th-gbar .google-btn{padding:5px 10px;font-size:12px;min-height:0}
  .th-offer{padding:6px 10px;font-size:12px;gap:8px}
  .th-offer span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .th-offer .btn{padding:6px 10px;font-size:12px}
}
@media (orientation:landscape) and (max-height:540px){
  .th-offer span{-webkit-line-clamp:1}
  .th-gbar .google-btn{padding:4px 8px;font-size:11px}
}

/* Pantalla completa */
.th-fs{background:transparent;border:1px solid #6c5f51;color:#ffedd7;border-radius:999px;width:32px;height:30px;font-size:16px;line-height:1;cursor:pointer;flex:none}
.th-fs:hover{background:#2a1a0e}
.th-fs-tip{position:absolute;inset:0;z-index:80;background:rgba(10,6,3,.72);display:flex;align-items:center;justify-content:center;padding:16px}
.th-fs-tip>div{background:#1d130b;border:1px solid #40372e;border-radius:14px;padding:18px;max-width:360px;display:flex;flex-direction:column;gap:10px;color:#ffedd7}
.th-fs-tip p{margin:0;font-size:14px;line-height:1.5;color:#e4d3bf}
@media (display-mode: standalone){ .th-shell{padding-top:env(safe-area-inset-top)} }
@media (max-width:760px){ .th-fs{width:28px;height:26px;font-size:14px} }
@media (orientation:landscape) and (max-height:540px){ .th-fs{width:26px;height:24px;font-size:13px} }
