/* FriendHub 2.9 V12 — Stage · isolated from current Voice Lounge CSS */
.fh12 { --fh12-bg:#111c30; --fh12-panel:#182843; --fh12-border:rgba(132,174,247,.23); --fh12-text:#eef4ff;
  --fh12-muted:#a5b8d9; --fh12-blue:#719dff; display:block; margin:16px 0 30px; color:var(--fh12-text); border-radius:24px;
  background:linear-gradient(147deg,#1d3762 0%,#111f38 31%,#11192b 100%); border:1px solid var(--fh12-border);
  overflow:hidden; box-shadow:0 15px 36px rgba(0,0,0,.22); font-family:inherit; }
.fh12.hidden,.fh12-dock.hidden {display:none!important}
.fh12 * {box-sizing:border-box}
.fh12-top {display:flex; justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;padding:25px 28px;border-bottom:1px solid var(--fh12-border)}
.fh12-heading {display:flex;align-items:center;gap:17px}
.fh12-mascot {width:60px;height:60px;display:grid;place-items:center;background:linear-gradient(135deg,#668cf4,#6a58d1);border-radius:18px;font-size:34px;transform:rotate(-6deg);box-shadow:0 8px 18px #0004}
.fh12-eyebrow{font-size:11px;letter-spacing:.16em;font-weight:800;color:#93b4ff;margin:0 0 4px!important}
.fh12-heading h2{margin:0 0 5px;font-size:clamp(21px,3vw,30px);line-height:1.2;color:var(--fh12-text)}
.fh12-heading p:last-child{margin:0;font-size:13px;color:var(--fh12-muted)}
.fh12-live-status{border-radius:999px;background:#172746;border:1px solid #49618a;padding:9px 13px;color:#c9daff;font-size:12px;font-weight:700}
.fh12-live-status.onair{background:#113f34;border-color:#337762;color:#a1efc7}
.fh12-body{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(230px,.72fr);gap:0;min-height:520px}
.fh12-main{min-width:0;padding:22px 24px 28px}
.fh12-side{border-left:1px solid var(--fh12-border);background:#0d1729aa;padding:23px 19px;min-width:0}
.fh12-screen{position:relative;overflow:hidden;aspect-ratio:16/9;background:radial-gradient(circle at 50% 34%,#274477,#101b30 70%);
  border-radius:19px;border:1px solid #51699777;display:grid;place-items:center}
.fh12-screen-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;padding:18px}
.fh12-screen-empty strong{font-size:clamp(16px,2.4vw,23px)}
.fh12-screen-empty span{color:#b5c7e6;font-size:12px}
.fh12-screen-empty.hidden{display:none}
.fh12-curtains{font-size:clamp(48px,10vw,76px);color:#8baaff;text-shadow:0 0 40px #7fa1fc66;animation:fh12-float 3.2s ease-in-out infinite}
.fh12-screen video{display:none;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#060d18}
.fh12-screen video.show{display:block}
.fh12-screen-chip{position:absolute;right:14px;top:12px;background:rgba(5,17,28,.85);border:1px solid #5bd6a7;border-radius:999px;
  color:#9df1d2;padding:6px 12px;font-size:12px;font-weight:800}
.fh12-main-title,.fh12-side-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0 13px}
.fh12-main-title h3,.fh12-side-head h3,.fh12-requests h3{margin:0;color:var(--fh12-text);font-size:17px}
.fh12-main-title span,.fh12-side-head span{color:#abbfe4;font-size:12px}
.fh12-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;min-height:64px}
.fh12-person{display:flex;align-items:center;gap:11px;min-width:0;min-height:64px;border-radius:17px;
  background:linear-gradient(140deg,#263d64bb,#1c2d49dd);border:1px solid #7892c43a;padding:11px 13px;transition:background .2s, box-shadow .2s, transform .2s}
.fh12-person.speaking{border-color:#58e8a6;box-shadow:0 0 0 1px #58e8a65e,0 0 22px #1eaf7460;animation:fh12-bob .52s ease-in-out infinite alternate}
.fh12-avatar{width:41px;height:41px;min-width:41px;display:grid;place-items:center;overflow:hidden;color:white;font-weight:800;background:#4064a4;
  border-radius:15px;border:2px solid #8eabdd60}
.fh12-person.speaking .fh12-avatar{box-shadow:0 0 13px #51ebaa88}
.fh12-avatar img{height:100%;width:100%;object-fit:cover;border-radius:13px}
.fh12-person-meta{min-width:0;flex:1}
.fh12-person-meta strong{display:block;font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.fh12-person-meta small{display:block;font-size:10px;color:#a2b7da;margin-top:4px;letter-spacing:.045em}
.fh12-dev{font-size:9px;letter-spacing:.08em;background:#7154c544;padding:4px 7px;border-radius:8px;color:#dec5ff}
.fh12-small{border:1px solid #758cc855;border-radius:9px;background:#283e6b;color:#e7f1ff;padding:6px 8px!important;font-size:11px!important;cursor:pointer}
.fh12-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:18px}
.fh12-actions button{border-radius:12px!important;padding:10px 13px!important;min-height:42px;border:1px solid #9bb2e143;
  background:linear-gradient(180deg,#294572,#1b2b49);color:#f0f5ff;font-weight:700;font-size:12px;cursor:pointer;transition:transform .15s,border-color .15s}
.fh12-actions button:hover:not(:disabled){transform:translateY(-2px);border-color:#94b8fa}
.fh12-actions button.primary{background:linear-gradient(140deg,#7399f4,#547bdc);color:#fff}
.fh12-actions button[disabled]{cursor:not-allowed;opacity:.43}
.fh12-actions button[hidden]{display:none}
.fh12-info{font-size:12px!important;color:#b4cae9!important;margin:15px 0 0!important;line-height:1.5}
.fh12-info.error{color:#ffa1b1!important}
.fh12-audience{display:grid;gap:9px}
.fh12-audience .fh12-person{padding:9px;min-height:58px}
.fh12-audience .fh12-avatar{width:35px;height:35px;min-width:35px;border-radius:12px}
.fh12-requests{margin-top:24px;padding-top:18px;border-top:1px solid var(--fh12-border)}
.fh12-request{display:flex;justify-content:space-between;align-items:center;gap:9px;border-radius:11px;background:#2c406433;padding:10px;margin:9px 0}
.fh12-request button{border:1px solid #7394cd;border-radius:9px;padding:8px;background:#2a4880;color:white;cursor:pointer}
.fh12-tip{border-top:1px solid var(--fh12-border);margin-top:25px;padding-top:17px;font-size:12px;color:var(--fh12-muted);line-height:1.55}
.fh12-tip strong{color:#e4edff;font-size:13px}.fh12-tip p{margin:9px 0 0}
.fh12-empty{color:#b0bee0;font-size:12px;padding:13px 9px;margin:0}
.fh12-audio{display:none}
.fh12-dock{position:fixed;bottom:18px;left:18px;z-index:2000;background:#121e36;color:#eff5ff;box-shadow:0 15px 32px #0007;
  display:flex;align-items:center;gap:12px;border:1px solid #6984b86b;border-radius:16px;padding:10px 13px;max-width:calc(100vw - 34px)}
.fh12-dock>div{display:flex;flex-direction:column;min-width:115px}.fh12-dock strong{font-size:12px}.fh12-dock small{font-size:10px;color:#adc1e2;margin-top:4px}
.fh12-dock button{border:1px solid #6383be55;border-radius:10px;padding:8px 10px;background:#31548d;color:white;cursor:pointer}
.fh12-dock #fh12-dock-leave{background:#50283d}
.fh12-stage-entry{white-space:normal}
@keyframes fh12-float{50%{transform:translateY(-9px) rotate(8deg)}}
@keyframes fh12-bob{to{transform:translateY(-4px) rotate(1deg)}}
@media(max-width:900px){.fh12-body{grid-template-columns:1fr}.fh12-side{border-left:0;border-top:1px solid var(--fh12-border)}.fh12-audience{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}}
@media(max-width:550px){.fh12-top{padding:17px}.fh12-main{padding:14px}.fh12-side{padding:17px}.fh12-heading{gap:10px}.fh12-mascot{width:45px;height:45px;font-size:26px}.fh12-actions{gap:6px}.fh12-actions button{padding:10px!important}.fh12-person{padding:10px}.fh12-dock{bottom:10px;left:10px;gap:8px}}
@media(prefers-reduced-motion:reduce){.fh12 .fh12-person.speaking,.fh12-curtains{animation:none!important}.fh12 *{transition:none!important}}


.fh15-chat{display:grid;gap:9px;margin-top:14px;padding-top:12px;border-top:1px solid #435574}
.fh15-chat h3{margin:0}
.fh15-stage-log{height:190px;overflow:auto;background:#111d31;border-radius:12px;border:1px solid #456080;padding:10px}
.fh15-stage-log p{margin:5px 0;overflow-wrap:anywhere;font-size:13px}
#fh15-stage-send{display:flex;gap:6px}#fh15-stage-send input{min-width:0;flex:1;background:#10243c;color:white;border:1px solid #567496;border-radius:8px;padding:9px}
#fh15-stage-send button{background:#35669b;border:0;color:white;border-radius:8px;padding:8px}
.fh12-screen.fh15-no-share{display:none!important}
.fh12-people.fh15-featured{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.fh12-people.fh15-featured .fh12-person{min-height:120px;padding:14px}


/* V16: developer-only screen-share preferences */
.fh16-host-settings{margin:12px 0;padding:12px;border:1px solid #50779b;border-radius:12px;background:#152941}
.fh16-host-settings summary{cursor:pointer;font-weight:800}
.fh16-host-settings label{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:12px 0;font-size:13px}
.fh16-host-settings input[type=range]{width:min(240px,100%)}
.fh16-host-settings select{border-radius:8px;padding:7px;color:white;background:#1b3452;border:1px solid #6589b7}
.fh16-host-settings p{color:#afcbe6;font-size:12px;line-height:1.45}
