.mxlive-app{min-height:calc(100vh - 56px)}
.mxlive-headline{font-weight:900;font-size:20px;color:var(--text)}
.mxlive-subline{margin-top:4px;font-size:13px;color:var(--muted)}
.mxlive-layout{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:16px;padding:16px}
.mxlive-leftcol,.mxlive-stagecol{display:flex;flex-direction:column;gap:16px}
.mx-card.mxlive-create-card,.mx-card.mxlive-list-card,.mx-card.mxlive-stage-card{background:var(--panel);border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow)}
.mxlive-create-card,.mxlive-list-card{padding:16px}
.mxlive-stage-card{padding:18px}
.mxlive-card-title{font-size:18px;font-weight:900;color:var(--text)}
.mxlive-card-sub{margin-top:4px;font-size:13px;line-height:1.45;color:var(--muted)}
.mxlive-field{display:block;margin-top:14px}
.mxlive-field span{display:block;margin-bottom:8px;font-weight:800;font-size:13px;color:var(--text)}
.mxlive-field input,.mxlive-field textarea{display:block;width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:16px;background:var(--card);color:var(--text);outline:none;font:inherit}
.mxlive-field input:focus,.mxlive-field textarea:focus,.mxlive-chat-form input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(29,155,240,.12)}
.mxlive-go-btn{margin-top:14px;width:100%;min-height:46px}
.mxlive-note{margin-top:10px;color:var(--muted);font-size:12px;line-height:1.5}
.mxlive-status{min-height:20px;margin-top:10px;font-size:13px;color:var(--accent);font-weight:700}
.mxlive-room-list{display:grid;gap:12px;margin-top:14px}
.mxlive-room-card{position:relative;padding:14px;border:1px solid var(--border);border-radius:20px;background:var(--card);overflow:hidden}
.mxlive-room-card::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(180deg,#8b5cf6,#ec4899)}
.mxlive-room-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.mxlive-room-host{display:flex;align-items:center;gap:10px;min-width:0}
.mxlive-room-avatar{width:44px;height:44px;border-radius:999px;object-fit:cover;border:1px solid var(--border);background:#fff;flex:0 0 auto}
.mxlive-room-name{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:900;color:var(--text);min-width:0}
.mxlive-room-handle{font-size:12px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxlive-room-badge,.mxlive-livepill{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:30px;padding:0 12px;border-radius:999px;background:#f4212e;color:#fff;font-size:12px;font-weight:900;letter-spacing:.04em}
.mxlive-room-title{margin-top:12px;font-size:16px;font-weight:900;color:var(--text);line-height:1.3}
.mxlive-room-desc{margin-top:6px;font-size:13px;line-height:1.5;color:var(--muted)}
.mxlive-room-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;color:var(--muted);font-size:12px}
.mxlive-room-actions{display:flex;gap:10px;margin-top:14px}
.mxlive-room-actions .mx-btn{flex:1}
.mxlive-stage-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.mxlive-stage-top-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.mxlive-stage-kicker{font-size:12px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.mxlive-stage-title{margin-top:4px;font-size:24px;line-height:1.15;font-weight:900;color:var(--text)}
.mxlive-stage-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;color:var(--muted);font-size:13px}
.mxlive-stage-shell{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px;margin-top:16px}
.mxlive-stream-panel{display:flex;flex-direction:column;gap:12px;min-width:0}
.mxlive-stage-badges{display:flex;flex-wrap:wrap;gap:10px}
.mxlive-stat-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#111827;color:#fff;font-size:12px;font-weight:800}
.mxlive-stat-pill strong{font-size:16px;line-height:1}
.mxlive-stat-pill span{opacity:.9}
.mxlive-stage{position:relative;min-height:520px;border:1px solid var(--border);border-radius:28px;background:linear-gradient(180deg,#111827,#0f172a);overflow:hidden}
.mxlive-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;text-align:center;color:#cbd5e1;font-size:16px;line-height:1.5;z-index:1}
.mxlive-video-grid{position:relative;z-index:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;min-height:520px;height:100%}
.mxlive-video-slot{position:relative;min-height:200px;border-radius:24px;overflow:hidden;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.mxlive-video-slot:only-child{grid-column:1 / -1;min-height:calc(520px - 24px)}
.mxlive-video-slot .agora_video_player{width:100% !important;height:100% !important;border-radius:24px !important}
.mxlive-video-slot .agora_video_player video{width:100% !important;height:100% !important;object-fit:contain !important;background:linear-gradient(180deg,#111827,#0f172a)}
.mxlive-video-label{position:absolute;left:12px;bottom:12px;z-index:3;display:inline-flex;align-items:center;gap:8px;max-width:calc(100% - 24px);padding:8px 12px;border-radius:999px;background:rgba(15,20,25,.72);backdrop-filter:blur(10px);color:#fff;font-size:13px;font-weight:800}
.mxlive-video-dot{width:8px;height:8px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.15)}
.mxlive-video-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#fff;background:rgba(255,255,255,.03)}
.mxlive-video-empty img{width:74px;height:74px;border-radius:999px;object-fit:cover;border:2px solid rgba(255,255,255,.2)}
.mxlive-video-empty strong{font-size:16px}
.mxlive-controls{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center}
.mxlive-controls .mx-btn{min-height:44px}
.mxlive-loading{padding:18px;border-radius:18px;border:1px dashed var(--border);background:rgba(255,255,255,.55);text-align:center;color:var(--muted);font-weight:700}
.mxlive-host-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:rgba(17,24,39,.1);color:var(--text);font-weight:700}
.mxlive-host-chip img{width:24px;height:24px;border-radius:999px;object-fit:cover}
.mxlive-follow-host.is-following{background:var(--card);border-color:var(--border);color:var(--text)}
.mxlive-chat-panel{display:flex;flex-direction:column;min-height:520px;border:1px solid var(--border);border-radius:28px;background:linear-gradient(180deg,#121826,#0f172a);color:#fff;overflow:hidden}
.mxlive-chat-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.08)}
.mxlive-chat-title{font-size:15px;font-weight:900}
.mxlive-chat-usersbtn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:inherit;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.mxlive-chat-usersbtn:hover{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.14)}
.mxlive-chat-usersbtn:disabled{opacity:.5;cursor:not-allowed}
.mxlive-chat-usersbtn.is-active{background:rgba(29,155,240,.14);border-color:rgba(29,155,240,.28);color:#1d9bf0}
.mxlive-chat-usersbtn .mxlive-btnsvg{width:19px;height:19px}
.mxlive-chat-list{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:12px}
.mxlive-chat-empty{display:flex;align-items:center;justify-content:center;min-height:120px;text-align:center;color:rgba(255,255,255,.65);font-size:13px}
.mxlive-chat-item,.mxlive-chat-event{display:flex;align-items:flex-start;gap:10px}
.mxlive-chat-avatar{width:34px;height:34px;border-radius:999px;object-fit:cover;flex:0 0 auto;border:1px solid rgba(255,255,255,.1)}
.mxlive-chat-bubble{flex:1;min-width:0;padding:10px 12px;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.mxlive-chat-item.is-own .mxlive-chat-bubble{background:rgba(29,155,240,.18);border-color:rgba(29,155,240,.22)}
.mxlive-chat-userline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}
.mxlive-chat-userline strong{font-weight:900;color:#fff}
.mxlive-chat-userline span{color:rgba(255,255,255,.62)}
.mxlive-chat-text{margin-top:4px;color:#fff;font-size:14px;line-height:1.45;word-break:break-word}
.mxlive-chat-event{padding:10px 12px;border-radius:18px;background:rgba(236,72,153,.13);border:1px solid rgba(236,72,153,.22)}
.mxlive-chat-event-copy{font-size:13px;line-height:1.45;color:#fff}
.mxlive-chat-event-copy strong{font-weight:900;color:#fff}
.mxlive-chat-form{display:flex;align-items:center;gap:10px;padding:14px;border-top:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02)}
.mxlive-chat-form input{display:block;flex:1;min-width:0;padding:12px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);color:#fff;outline:none;font:inherit}
.mxlive-chat-form input::placeholder{color:rgba(255,255,255,.48)}
.mxlive-chat-note{padding:0 14px 14px;font-size:12px;color:rgba(255,255,255,.62)}
.mxlive-chat-note a{color:#8ecbff;text-decoration:none}
.mxlive-heart-layer{pointer-events:none;position:absolute;inset:0;z-index:4;overflow:hidden}
.mxlive-heart{position:absolute;right:22px;bottom:20px;font-size:28px;line-height:1;opacity:0;animation:mxlive-heart-float 3.2s ease-in forwards;filter:drop-shadow(0 6px 14px rgba(236,72,153,.25))}
@keyframes mxlive-heart-float{0%{transform:translate3d(0,0,0) scale(.8);opacity:0}10%{opacity:1}100%{transform:translate3d(28px,-240px,0) scale(1.4);opacity:0}}
@media (max-width:1280px){.mxlive-stage-shell{grid-template-columns:1fr}.mxlive-chat-panel{min-height:420px}}
@media (max-width:1120px){.mxlive-layout{grid-template-columns:1fr}.mxlive-stage{min-height:420px}.mxlive-video-grid{min-height:420px}}
@media (max-width:720px){.mxlive-layout{padding:12px;gap:12px}.mxlive-stage-card,.mxlive-create-card,.mxlive-list-card{border-radius:20px}.mxlive-stage-title{font-size:20px}.mxlive-video-grid{grid-template-columns:1fr}.mxlive-stage{min-height:320px}.mxlive-video-grid{min-height:320px}.mxlive-room-actions,.mxlive-chat-form{flex-direction:column}.mxlive-controls{flex-direction:row;justify-content:center}.mxlive-chat-form .mx-btn{width:100%}.mxlive-controls .mx-btn{width:50px !important}}
body.mxlive-panel-page .mx-right{display:none !important}
body.mxlive-panel-page .mx-left{display:none !important}
body.mxlive-panel-page .mx-grid{display:block !important;grid-template-columns:minmax(0,1fr) !important}
body.mxlive-panel-page .mx-main,body.mxlive-panel-page .mx-center,body.mxlive-panel-page .mx-wrap{width:100% !important;max-width:none !important}
body.mxlive-panel-page .mx-topbar{position:sticky;top:0;z-index:5;background:var(--panel)}
.mxlive-home-feed-post{padding:16px;border-bottom:1px solid var(--border);background:var(--panel)}
.mxlive-home-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.mxlive-home-kicker{font-size:18px;font-weight:900;color:var(--text)}
.mxlive-home-copy{margin-top:4px;font-size:13px;line-height:1.45;color:var(--muted);max-width:560px}
.mxlive-home-all{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 14px;border:1px solid var(--border);border-radius:999px;background:var(--card);color:var(--text);font-size:13px;font-weight:800;text-decoration:none;white-space:nowrap}
.mxlive-home-list{display:flex;flex-direction:column;gap:10px}
.mxlive-home-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--border);border-radius:18px;background:var(--card);cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .15s ease}
.mxlive-home-item:hover{background:rgba(15,20,25,.03);border-color:rgba(29,155,240,.28);transform:translateY(-1px)}
.mxlive-home-user{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.mxlive-home-avatar{width:48px;height:48px;border-radius:999px;object-fit:cover;border:1px solid var(--border);background:#fff;flex:0 0 auto}
.mxlive-home-usercopy{min-width:0;flex:1}
.mxlive-home-userline{display:flex;align-items:center;gap:8px;min-width:0}
.mxlive-home-userline strong{font-size:15px;font-weight:900;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxlive-home-badge{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:0 10px;border-radius:999px;background:#f4212e;color:#fff;font-size:11px;font-weight:900;letter-spacing:.04em;flex:0 0 auto}
.mxlive-home-title{margin-top:4px;font-size:14px;font-weight:800;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxlive-home-meta{margin-top:4px;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxlive-home-watch{min-width:112px;flex:0 0 auto}
@media (max-width:720px){.mxlive-home-head{flex-direction:column}.mxlive-home-item{align-items:flex-start;flex-direction:column}.mxlive-home-watch{width:100%}}


.mxlive-icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px}
.mxlive-btnicon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.mxlive-btnsvg{width:18px;height:18px;display:block}
.mxlive-btntext{display:inline-flex;align-items:center;line-height:1}
.mxlive-follow-host,.mxlive-controls .mx-btn,.mxlive-chat-send{border-radius:999px !important;font-weight:800 !important;letter-spacing:-.01em}
.mxlive-controls .mx-btn{padding:0 18px;background:#0f1419;color:#fff;border:1px solid rgba(255,255,255,.1);box-shadow:0 10px 30px rgba(15,20,25,.18)}
.mxlive-controls .mx-btn:hover{transform:translateY(-1px);border-color:rgba(29,155,240,.35)}
.mxlive-controls .mx-btn.mx-btn-primary,.mxlive-follow-host.mx-btn-primary,.mxlive-chat-send.mx-btn-primary{background:#1d9bf0;border-color:#1d9bf0;color:#fff}
.mxlive-follow-host.is-following{background:#fff;border-color:var(--border);color:#0f1419}
.mxlive-chat-send{min-width:120px}
.mxlive-chat-send .mxlive-btnsvg{width:16px;height:16px}
@media (max-width:720px){
  .mxlive-chat-send .mxlive-btntext{display:none}
  .mxlive-chat-send{min-width:52px;padding:0 14px}
}


/* icon only controls */
.mxlive-icon-btn .mxlive-btntext,.mxlive-chat-send .mxlive-btntext{display:none !important}
.mxlive-follow-host,.mxlive-controls .mx-btn,.mxlive-chat-send{min-width:50px !important;width:50px;height:50px;padding:0 !important;border-radius:999px !important;justify-content:center !important}
.mxlive-controls .mx-btn .mxlive-btnsvg,.mxlive-follow-host .mxlive-btnsvg,.mxlive-chat-send .mxlive-btnsvg{width:19px;height:19px}
.mxlive-chat-form{gap:12px}
.mxlive-chat-send{flex:0 0 auto}
.mxlive-follow-host{box-shadow:0 10px 30px rgba(15,20,25,.18)}
.mxlive-stage-top-right .mxlive-follow-host[hidden]{display:none !important}

.mxlive-controls[hidden]{display:none !important}


/* theme-aware surface refresh */
.mxlive-app{
  --mxlive-surface:var(--panel,#ffffff);
  --mxlive-surface-2:var(--card,#f7f9f9);
  --mxlive-text:var(--text,#0f1419);
  --mxlive-muted:var(--muted,#536471);
  --mxlive-border:var(--border,#eff3f4);
  --mxlive-stage-card-bg:linear-gradient(180deg,var(--panel,#ffffff) 0%,var(--card,#f7f9f9) 100%);
  --mxlive-chat-bg:var(--panel,#ffffff);
  --mxlive-chat-bubble-bg:var(--card,#f7f9f9);
  --mxlive-chat-form-bg:var(--panel,#ffffff);
  --mxlive-chat-input-bg:var(--card,#f7f9f9);
  --mxlive-pill-bg:var(--card,#f7f9f9);
  --mxlive-pill-text:var(--text,#0f1419);
  --mxlive-shadow:0 12px 34px rgba(15,23,42,.06);
  --mxlive-soft-shadow:0 8px 22px rgba(15,23,42,.04);
}
.mx-theme-dim .mxlive-app,
.mx-theme-dark .mxlive-app{
  --mxlive-stage-card-bg:linear-gradient(180deg,var(--panel,#15202b) 0%,var(--card,#1e2732) 100%);
  --mxlive-chat-bg:var(--card,#1e2732);
  --mxlive-chat-bubble-bg:var(--panel,#15202b);
  --mxlive-chat-form-bg:var(--card,#1e2732);
  --mxlive-chat-input-bg:var(--panel,#15202b);
  --mxlive-pill-bg:var(--panel,#15202b);
  --mxlive-pill-text:var(--text,#e7e9ea);
  --mxlive-shadow:0 14px 34px rgba(0,0,0,.22);
  --mxlive-soft-shadow:0 10px 24px rgba(0,0,0,.18);
}
.mxlive-create-card,.mxlive-list-card,.mxlive-stage-card{background:var(--mxlive-surface);border-color:var(--mxlive-border);box-shadow:var(--mxlive-shadow)}
.mxlive-stage-card{background:var(--mxlive-stage-card-bg)}
.mxlive-chat-panel{background:var(--mxlive-chat-bg);color:var(--mxlive-text);border-color:var(--mxlive-border);box-shadow:var(--mxlive-shadow)}
.mxlive-chat-head{border-bottom:1px solid var(--mxlive-border)}
.mxlive-chat-title{color:var(--mxlive-text)}
.mxlive-chat-usersbtn{color:var(--mxlive-muted);border-color:var(--mxlive-border);background:var(--mxlive-surface-2)}
.mxlive-chat-usersbtn:hover{background:var(--mxlive-surface)}
.mxlive-chat-usersbtn.is-active{color:var(--accent,#1d9bf0);border-color:rgba(29,155,240,.28);background:rgba(29,155,240,.10)}
.mxlive-chat-list{background:transparent}
.mxlive-chat-empty{color:var(--mxlive-muted)}
.mxlive-chat-bubble{background:var(--mxlive-chat-bubble-bg);border:1px solid var(--mxlive-border);box-shadow:var(--mxlive-soft-shadow)}
.mxlive-chat-userline strong{color:var(--mxlive-text)}
.mxlive-chat-userline span{color:var(--mxlive-muted)}
.mxlive-chat-text,.mxlive-chat-event-copy,.mxlive-chat-event-copy strong{color:var(--mxlive-text)}
.mxlive-chat-event{background:rgba(29,155,240,.10);border:1px solid rgba(29,155,240,.18)}
.mxlive-chat-form{border-top:1px solid var(--mxlive-border);background:var(--mxlive-chat-form-bg)}
.mxlive-chat-form input{border-color:var(--mxlive-border);background:var(--mxlive-chat-input-bg);color:var(--mxlive-text)}
.mxlive-chat-form input::placeholder{color:var(--mxlive-muted)}
.mxlive-chat-note{color:var(--mxlive-muted)}
.mxlive-chat-note a{color:var(--accent,#1d9bf0)}
.mxlive-stage-meta{color:var(--mxlive-muted)}
.mxlive-stage-kicker,.mxlive-room-handle,.mxlive-room-meta,.mxlive-home-meta,.mxlive-subline,.mxlive-note{color:var(--mxlive-muted)}
.mxlive-stat-pill{background:var(--mxlive-pill-bg);color:var(--mxlive-pill-text);border:1px solid var(--mxlive-border)}
.mxlive-controls .mx-btn{background:var(--mxlive-surface);color:var(--mxlive-text);border:1px solid var(--mxlive-border);box-shadow:var(--mxlive-shadow)}
.mxlive-controls .mx-btn:hover{border-color:rgba(29,155,240,.35);background:var(--mxlive-surface-2)}
.mxlive-controls .mx-btn.mx-btn-primary,.mxlive-follow-host.mx-btn-primary,.mxlive-chat-send.mx-btn-primary{background:#1d9bf0;border-color:#1d9bf0;color:#fff}
#mxlive-react-btn{background:var(--mxlive-surface) !important;border-color:var(--mxlive-border) !important;color:#ec4899 !important;box-shadow:var(--mxlive-shadow) !important}
#mxlive-react-btn:hover{background:var(--mxlive-surface-2) !important;border-color:rgba(236,72,153,.35) !important;color:#db2777 !important}
#mxlive-react-btn .mxlive-btnsvg{width:20px !important;height:20px !important;display:block !important}
#mxlive-react-btn .mxlive-btnicon{transform:none !important}
.mxlive-follow-host{background:var(--mxlive-surface);color:var(--mxlive-text);border:1px solid var(--mxlive-border);box-shadow:var(--mxlive-shadow)}
.mxlive-follow-host.is-following{background:var(--mxlive-surface-2);border-color:var(--mxlive-border);color:var(--mxlive-text)}
.mxlive-room-card,.mxlive-home-item{background:var(--mxlive-surface-2);border-color:var(--mxlive-border)}
.mxlive-room-card:hover,.mxlive-home-item:hover{background:var(--mxlive-surface);border-color:rgba(29,155,240,.28)}


/* icon stat cleanup */
.mxlive-stage-badges{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.mxlive-stat-pill.mxlive-stat-pill-icon{gap:10px;padding:8px 14px}
.mxlive-stat-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;color:#1d9bf0}
.mxlive-stat-pill.mxlive-stat-pill-icon strong{font-size:14px;line-height:1}


#mxlive-create-card[hidden]{display:none !important}
.mxlive-controls.mxlive-controls-viewer{justify-content:center}
.mxlive-controls.mxlive-controls-viewer #mxlive-react-btn{display:inline-flex !important}
.mxlive-controls.mxlive-controls-viewer #mxlive-leave-btn{display:inline-flex !important}
.mxlive-controls.mxlive-controls-viewer #mxlive-toggle-mic,
.mxlive-controls.mxlive-controls-viewer #mxlive-toggle-cam{display:none !important}


.mxlive-controls.mxlive-controls-host #mxlive-react-btn{display:none !important}
.mxlive-controls.mxlive-controls-host #mxlive-toggle-mic,
.mxlive-controls.mxlive-controls-host #mxlive-toggle-cam,
.mxlive-controls.mxlive-controls-host #mxlive-leave-btn{display:inline-flex !important}


/* text contrast fixes */
.mxlive-go-btn{
  background:var(--accent,#1d9bf0) !important;
  border:1px solid var(--accent,#1d9bf0) !important;
  color:#fff !important;
  font-weight:900 !important;
  box-shadow:var(--mxlive-shadow) !important;
}
.mxlive-go-btn:hover,
.mxlive-go-btn:focus{
  background:var(--accent,#1d9bf0) !important;
  border-color:var(--accent,#1d9bf0) !important;
  color:#fff !important;
  filter:brightness(1.03);
}
.mxlive-go-btn[disabled],
.mxlive-go-btn.is-disabled{
  opacity:.7;
  color:#fff !important;
}
.mxlive-loading{
  background:var(--mxlive-surface-2) !important;
  border:1px dashed var(--mxlive-border) !important;
  color:var(--mxlive-text) !important;
  box-shadow:var(--mxlive-soft-shadow);
}
.mxlive-card-sub,
.mxlive-chat-note,
.mxlive-chat-empty,
.mxlive-room-meta,
.mxlive-home-meta,
.mxlive-note,
.mxlive-subline{
  color:var(--mxlive-muted) !important;
}

/* active room primary button contrast fix */
.mxlive-room-actions .mx-btn.mx-btn-primary,
.mxlive-home-watch.mx-btn.mx-btn-primary,
.mxlive-home-watch.mx-btn{
  background:var(--accent,#1d9bf0) !important;
  border:1px solid var(--accent,#1d9bf0) !important;
  color:#fff !important;
  font-weight:900 !important;
  text-decoration:none !important;
}
.mxlive-room-actions .mx-btn.mx-btn-primary:hover,
.mxlive-room-actions .mx-btn.mx-btn-primary:focus,
.mxlive-home-watch.mx-btn:hover,
.mxlive-home-watch.mx-btn:focus{
  background:var(--accent,#1d9bf0) !important;
  border-color:var(--accent,#1d9bf0) !important;
  color:#fff !important;
  filter:brightness(1.04);
}

/* viewers list + kick system */
.mxlive-viewers-panel{padding:12px 14px;border-bottom:1px solid var(--mxlive-border);background:rgba(255,255,255,.02)}
.mxlive-viewers-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.mxlive-viewers-title{font-size:13px;font-weight:900;color:var(--mxlive-text)}
.mxlive-viewers-list{display:flex;flex-direction:column;gap:8px;max-height:180px;overflow:auto}
.mxlive-viewers-empty{padding:10px 12px;border:1px dashed var(--mxlive-border);border-radius:16px;color:var(--mxlive-muted);font-size:12px;text-align:center;background:var(--mxlive-surface-2)}
.mxlive-viewer-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--mxlive-border);border-radius:16px;background:var(--mxlive-surface-2)}
.mxlive-viewer-avatar{width:38px;height:38px;border-radius:999px;object-fit:cover;flex:0 0 auto;border:1px solid var(--mxlive-border);background:var(--mxlive-surface)}
.mxlive-viewer-avatar-fallback{display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:900;color:var(--mxlive-text)}
.mxlive-viewer-copy{min-width:0;flex:1}
.mxlive-viewer-line{display:flex;align-items:center;gap:6px;min-width:0}
.mxlive-viewer-line strong{font-size:13px;font-weight:900;color:var(--mxlive-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxlive-viewer-handle{margin-top:2px;font-size:12px;color:var(--mxlive-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxlive-host-crown{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;color:#f5b301;flex:0 0 auto}
.mxlive-host-crown .mxlive-btnsvg{width:15px;height:15px}
.mxlive-viewer-kick{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 12px;border-radius:999px;border:1px solid rgba(244,33,46,.24);background:rgba(244,33,46,.08);color:#f4212e;font-size:12px;font-weight:800;box-shadow:none}
.mxlive-viewer-kick:hover{background:rgba(244,33,46,.12);border-color:rgba(244,33,46,.34)}
.mxlive-viewer-kick .mxlive-btnsvg{width:14px;height:14px}
.mxlive-chat-userline .mxlive-host-crown,.mxlive-chat-event-copy .mxlive-host-crown{margin-left:2px;margin-right:2px;vertical-align:middle}
@media (max-width:1280px){.mxlive-viewers-list{max-height:none}}
@media (max-width:720px){.mxlive-viewer-kick span{display:none}.mxlive-viewer-kick{width:36px;min-width:36px;padding:0}}

/* restore visible Follow button */
.mxlive-follow-host{
  width:auto !important;
  min-width:112px !important;
  padding:0 18px !important;
  gap:10px !important;
}
.mxlive-follow-host .mxlive-btntext{
  display:inline-flex !important;
}
.mxlive-follow-host .mxlive-btnsvg{
  width:18px !important;
  height:18px !important;
}


/* follow button night theme fix */
.mx-theme-dim .mxlive-follow-host,
.mx-theme-dark .mxlive-follow-host{
  background:#ffffff !important;
  border-color:#ffffff !important;
  color:#0f1419 !important;
}
.mx-theme-dim .mxlive-follow-host:hover,
.mx-theme-dim .mxlive-follow-host:focus,
.mx-theme-dark .mxlive-follow-host:hover,
.mx-theme-dark .mxlive-follow-host:focus{
  background:#f7f9f9 !important;
  border-color:#f7f9f9 !important;
  color:#0f1419 !important;
}
.mx-theme-dim .mxlive-follow-host.is-following,
.mx-theme-dark .mxlive-follow-host.is-following{
  background:rgba(29,155,240,.16) !important;
  border-color:rgba(29,155,240,.34) !important;
  color:#e8f3ff !important;
}
.mx-theme-dim .mxlive-follow-host.is-following:hover,
.mx-theme-dim .mxlive-follow-host.is-following:focus,
.mx-theme-dark .mxlive-follow-host.is-following:hover,
.mx-theme-dark .mxlive-follow-host.is-following:focus{
  background:rgba(29,155,240,.22) !important;
  border-color:rgba(29,155,240,.42) !important;
  color:#ffffff !important;
}
