/* Criado por Vinícius Manzano. */
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 200 900; src: url(/fonts/unbounded-latin-wght-normal.woff2) format('woff2'); }

:root {
  --bg-rail: #0b0c11;
  --bg-side: #11131b;
  --bg-main: #0d0e14;
  --bg-elev: #1e2130;
  --bg-hover: #262a3c;
  --bg-input: #1a1d29;
  --surface: #161823;
  --border: #23263a;
  --border-2: #2f3450;
  --text: #eceef6;
  --text-2: #c9cde0;
  --muted: #9aa0b8;
  --accent: #3b5bff;
  --accent-2: #6d83ff;
  --cyan: #3ecadc;
  --magenta: #c026d3;
  --grad: linear-gradient(135deg, #3ecadc 0%, #3b5bff 50%, #c026d3 100%);
  --live: #ff3b5c;
  --ok: #23c55e;
  --warn: #f5a623;
  --radius: 14px;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg-main); color: var(--text); font-size: 15px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: #8fb4ff; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--live); margin: 0; font-size: 14px; }
.hint { margin: 0; font-size: 12px; color: var(--muted); }
code { background: var(--bg-rail); padding: 1px 5px; border-radius: 4px; font-size: .9em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; white-space: nowrap; transition: background .12s, border-color .12s;
}
.btn:hover:not(:disabled) { background: var(--bg-hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; background-size: 140% 140%; background-position: 0% 50%; transition: background-position .3s, filter .15s; }
.btn.primary:hover:not(:disabled) { background: var(--grad); background-size: 140% 140%; background-position: 100% 50%; filter: brightness(1.08); }
.btn.danger { background: #d83a52; border-color: #d83a52; color: #fff; }
.btn.danger-ghost { background: transparent; border-color: transparent; color: #ff6b81; }
.btn.danger-ghost:hover { background: rgba(255,59,92,.12); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--bg-hover); }
.btn.icon { padding: 7px 9px; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.big { padding: 12px 26px; font-size: 16px; }
.btn.on { background: rgba(255,59,92,.15); border-color: var(--live); }
.btn.active { background: #2c2750; border-color: var(--accent); }
.btn.live.streaming { background: var(--live); border-color: var(--live); color: #fff; }
.link { background: none; border: 0; padding: 0; color: #8fb4ff; cursor: pointer; }
.link:hover { text-decoration: underline; }
input, select, textarea {
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; outline: none; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.field input, .field select, .field textarea { color: var(--text); font-weight: 400; font-size: 15px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 10px; align-items: flex-end; }
.row > * { flex: 1; }
.row.center { align-items: center; }
.row.center > * { flex: 0 0 auto; }

.avatar {
  border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; flex: 0 0 auto;
  background: var(--bg-elev); user-select: none;
}
.avatar img, .server-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-wrap { position: relative; display: inline-flex; flex: 0 0 auto; }
.status-dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #5d6070; border: 3px solid var(--bg-side); }
.status-dot.on { background: var(--ok); }
.server-icon { border-radius: 16px; display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; font-size: 15px; transition: border-radius .15s; }

.auth { min-height: 100%; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 15% 10%, rgba(62,202,220,.28), transparent 45%), radial-gradient(circle at 85% 90%, rgba(192,38,211,.28), transparent 45%), var(--bg-rail); }
.auth-card { width: 100%; max-width: 420px; display: grid; gap: 14px; background: var(--bg-side); border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.auth-card h2 { margin: 0; font-size: 20px; }
.auth-card h3 { margin: 4px 0 0; font-size: 16px; }
.auth-form { display: grid; gap: 12px; }
.brand { font-weight: 800; font-size: 24px; display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 44px; height: 44px; border-radius: 12px; }
.brand { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand img { filter: drop-shadow(0 4px 14px rgba(106,92,255,.45)); }
.invite-preview { display: flex; gap: 14px; align-items: center; background: var(--bg-elev); padding: 14px; border-radius: 12px; }
.invite-preview h2 { margin: 2px 0; }
.switch { margin: 0; font-size: 14px; color: var(--muted); }

.layout { height: 100dvh; display: grid; grid-template-columns: 72px 250px 1fr auto; overflow: hidden; }
.rail { background: var(--bg-rail); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; overflow-y: auto; scrollbar-width: none; }
.rail-sep { width: 32px; height: 2px; background: var(--border); border-radius: 2px; flex: 0 0 auto; }
.server-list { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.rail-btn { position: relative; width: 48px; height: 48px; padding: 0; border: 0; background: none; border-radius: 16px; flex: 0 0 auto; }
.rail-btn::before { content: ''; position: absolute; left: -12px; top: 50%; width: 4px; height: 0; background: #fff; border-radius: 0 4px 4px 0; transform: translateY(-50%); transition: height .15s; }
.rail-btn.unread::before { height: 8px; }
.rail-btn:hover::before { height: 20px; }
.rail-btn.active::before { height: 40px; background: linear-gradient(var(--cyan), var(--magenta)); }
.rail-btn:hover .server-icon, .rail-btn.active .server-icon { border-radius: 14px; }
.rail-btn:not(.active) .server-icon { border-radius: 50%; }
.rail-btn.home img { width: 48px; height: 48px; border-radius: 50%; transition: border-radius .15s; object-fit: cover; }
.rail-btn.home.active img, .rail-btn.home:hover img { border-radius: 14px; }
.rail-btn.add { background: var(--bg-elev); color: var(--ok); font-size: 26px; border-radius: 50%; transition: border-radius .15s, background .15s; }
.rail-btn.add:hover { background: var(--ok); color: #fff; border-radius: 14px; }
.rail-btn.admin { background: var(--bg-elev); font-size: 20px; border-radius: 50%; transition: border-radius .15s, background .15s; }
.rail-btn.admin:hover { background: var(--grad); border-radius: 14px; }

.admin-admins { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: grid; gap: 8px; background: var(--bg-side); }
.admin-admins-head { font-weight: 600; font-size: 14px; }
.admin-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-admins .row input { flex: 1; min-width: 0; }
.chip-x { background: none; border: 0; color: var(--muted); padding: 0 2px; font-size: 12px; }
.chip-x:hover { color: #ff6b81; }
.admin-panel { display: flex; flex-direction: column; gap: 12px; }
.admin-stats { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.admin-stats span { background: var(--bg-elev); border-radius: 999px; padding: 4px 10px; }
.admin-stats .live { background: rgba(35,197,94,.15); color: var(--ok); }
.admin-server { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; background: var(--bg-side); }
.admin-server-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-server-info { flex: 1; min-width: 140px; display: flex; flex-direction: column; font-size: 13px; }
.admin-server-info strong { font-size: 15px; }
.admin-channels { margin-top: 8px; display: grid; gap: 4px; }
.admin-ch { border-radius: 8px; padding: 4px 6px; }
.admin-ch.busy { background: rgba(62,202,220,.07); }
.admin-ch-name { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; padding: 2px 0; font-size: 14px; color: var(--text-2); text-align: left; }
button.admin-ch-name:hover { color: var(--text); }
.admin-ch-name .ch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-ch-name .small { margin-left: auto; font-size: 12px; }
.admin-parts { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 2px 22px; }
.admin-part { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; background: var(--bg-elev); border-radius: 999px; padding: 2px 8px 2px 2px; }
.rail-voice { position: absolute; right: -4px; bottom: -4px; background: var(--ok); border-radius: 50%; font-size: 10px; width: 20px; height: 20px; display: grid; place-items: center; border: 3px solid var(--bg-rail); }

.sidebar { background: var(--bg-side); display: grid; grid-template-rows: auto 1fr auto auto; min-height: 0; }
.side-header { height: 52px; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 12px; }
.side-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-menu-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 6px; border-radius: 6px; }
.server-menu-btn:hover { background: var(--bg-hover); }
.side-list { overflow-y: auto; padding: 8px; }
.side-section { display: flex; justify-content: space-between; align-items: center; padding: 14px 6px 4px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.mini-btn { background: none; border: 0; color: var(--muted); font-size: 16px; padding: 0 4px; line-height: 1; }
.mini-btn:hover { color: var(--text); }
.side-item { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 8px; border-radius: 6px; color: var(--text-2); text-align: left; }
.side-item:hover { background: var(--bg-hover); color: var(--text); }
.side-item.active { background: var(--bg-elev); color: #fff; }
.side-item.unread .ch-name { color: #fff; font-weight: 700; }
.side-item.channel { padding: 0; }
.ch-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 8px; color: inherit; text-align: left; }
.ch-icon { width: 20px; text-align: center; color: var(--muted); flex: 0 0 auto; }
.ch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-gear { opacity: 0; font-size: 14px; }
.side-item:hover .ch-gear, .side-item.active .ch-gear { opacity: 1; }
.side-item.connected .ch-icon { color: var(--ok); }
.side-item.spawner .ch-main { color: var(--text-2); font-style: italic; }
.side-item.spawner .ch-icon { color: var(--ok); font-style: normal; }
.side-item.temp-room .ch-icon { font-size: 13px; }
.room-card.spawner { border-style: dashed; }
.side-empty { color: var(--muted); font-size: 13px; padding: 4px 8px; }
.voice-parts { padding-left: 30px; display: grid; gap: 2px; }
.vp { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 6px; font-size: 13px; color: var(--text-2); }
.vp .avatar { box-shadow: 0 0 0 2px transparent; transition: box-shadow .1s; }
.vp.speaking .avatar { box-shadow: 0 0 0 2px var(--ok); }
.vp-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-icons { display: flex; gap: 3px; align-items: center; font-size: 11px; }
.srv-icon { background: rgba(216,58,82,.25); border-radius: 4px; padding: 0 2px; }
.btn.forced, #upMute.forced, #upDeafen.forced { background: rgba(216,58,82,.25); border-color: #d83a52; }
.vp-vol { font-size: 10px; color: var(--muted); background: var(--bg-elev); border-radius: 4px; padding: 0 4px; }

.vol-ctl { padding: 8px 10px 6px; display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
.vol-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.vol-head span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vol-val { color: var(--cyan); font-variant-numeric: tabular-nums; flex: none; }
.vol-ctl input[type=range] { width: 100%; padding: 0; margin: 0; accent-color: var(--accent); height: 22px; }
.vol-ctl input[type=range]:disabled { opacity: .4; }
.vol-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.vol-actions .btn:first-child { flex: 1; }
.vol-hint { font-size: 11px; color: var(--muted); }
.live-pill { background: var(--live); color: #fff; font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 3px; }

.voice-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--border); background: #1a2a22; }
.vb-info { flex: 1; min-width: 0; }
.vb-status { color: var(--ok); font-weight: 700; font-size: 13px; }
.vb-channel { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; display: block; }
.user-panel { display: flex; align-items: center; gap: 2px; padding: 8px; background: #17181d; }
.me-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px; border-radius: 6px; text-align: left; }
.me-btn:hover { background: var(--bg-hover); }
.me-names { display: grid; min-width: 0; line-height: 1.2; }
.me-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-user { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-panel .btn.icon { padding: 6px 7px; }

.main { display: grid; grid-template-rows: auto 1fr; min-width: 0; min-height: 0; }
.main-header { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.main-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; overflow: hidden; white-space: nowrap; }
.main-title span:last-child { overflow: hidden; text-overflow: ellipsis; }
.hash, .at { color: var(--muted); font-size: 20px; font-weight: 400; }
.mobile-only { display: none; }
.view { min-height: 0; overflow: hidden; }

.member-panel { width: 240px; background: var(--bg-side); overflow-y: auto; padding: 8px; }
.member-panel h3 { font-size: 12px; color: var(--muted); margin: 16px 8px 6px; letter-spacing: .03em; }
.member { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px 8px; border-radius: 6px; text-align: left; }
.member:hover { background: var(--bg-hover); }
.member.offline { opacity: .45; }
.member-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.role-tag { font-size: 13px; }
.member-card { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }

.home-view { overflow-y: auto; }
.home-inner { max-width: 640px; margin: 0 auto; padding: 48px 20px; }
.home-inner h1 { margin: 0 0 8px; }
.home-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 30px; }
.home-online h3 { font-size: 12px; color: var(--muted); }
.empty-home { padding: 40px; text-align: center; }

.chat-view { display: grid; grid-template-rows: 1fr auto auto; }
.messages { overflow-y: auto; padding: 16px 0 8px; overflow-anchor: none; }
.loading { padding: 20px; color: var(--muted); text-align: center; }
.chat-start { padding: 16px 20px 20px; }
.chat-start h2 { margin: 0 0 4px; font-size: 26px; }
.day-sep { display: flex; align-items: center; gap: 10px; margin: 16px 20px 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.day-sep::before, .day-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.msg { position: relative; display: grid; grid-template-columns: 56px 1fr; padding: 4px 20px 4px 12px; margin-top: 12px; }
.msg.grouped { margin-top: 0; padding-top: 1px; padding-bottom: 1px; }
.msg:hover { background: rgba(0,0,0,.12); }
.msg.pending { opacity: .55; }
.msg-gutter { display: flex; justify-content: center; padding-top: 2px; }
.hover-time { visibility: hidden; font-size: 11px; color: var(--muted); padding-top: 4px; }
.msg:hover .hover-time { visibility: visible; }
.msg-body { min-width: 0; }
.msg-head { display: flex; align-items: baseline; gap: 8px; }
.msg-author { font-weight: 600; color: #fff; }
.msg-time { font-size: 12px; color: var(--muted); }
.msg-text { line-height: 1.45; overflow-wrap: anywhere; white-space: normal; color: var(--text); }
.msg-text a { word-break: break-all; }
.edited { font-size: 11px; color: var(--muted); }
.msg-actions { position: absolute; right: 16px; top: -14px; display: none; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px; padding: 2px; z-index: 2; }
.msg:hover .msg-actions { display: flex; }
.msg-actions button { background: none; border: 0; padding: 4px 7px; border-radius: 6px; }
.msg-actions button:hover { background: var(--bg-hover); }
.edit-wrap { display: grid; gap: 4px; margin-top: 4px; }
.edit-box { width: 100%; min-height: 44px; }
.edit-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.msg-actions .act-save { padding: 4px 7px; border-radius: 6px; text-decoration: none; }
.msg-actions .act-save:hover { background: var(--bg-hover); }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.att-image img { max-width: min(420px, 100%); max-height: 320px; border-radius: 8px; display: block; background: var(--bg-elev); }
.att-video { max-width: min(480px, 100%); max-height: 320px; border-radius: 8px; background: #000; }
.att-file { display: flex; align-items: center; gap: 10px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; text-decoration: none; color: var(--text); max-width: 360px; }
.att-icon { font-size: 26px; }
.att-meta { display: grid; min-width: 0; flex: 1; }
.att-name { color: #8fb4ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-size { font-size: 12px; color: var(--muted); }
.typing { height: 20px; padding: 0 20px; font-size: 12px; color: var(--text-2); }
.composer { padding: 0 16px 16px; }
.composer-row { display: flex; align-items: flex-end; gap: 4px; background: var(--bg-input); border-radius: 10px; padding: 4px 6px; }
.composer textarea { flex: 1; min-width: 0; background: transparent; border: 0; resize: none; max-height: 200px; padding: 9px 4px; line-height: 1.4; }
.composer textarea:focus { border: 0; }
.pending { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.chip { display: flex; align-items: center; gap: 6px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px; padding: 4px 6px 4px 4px; font-size: 13px; max-width: 240px; }
.chip img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-progress { color: var(--muted); font-size: 12px; }
.chip.uploading { opacity: .8; }
.chip button { background: none; border: 0; color: var(--muted); }
.drop-overlay { position: fixed; inset: 0; background: rgba(106,92,255,.25); border: 3px dashed var(--accent); display: grid; place-items: center; font-size: 24px; font-weight: 700; z-index: 60; pointer-events: none; }

.voice-view { display: grid; grid-template-rows: 1fr auto; position: relative; background: #111217; }
.voice-lobby { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; z-index: 1; background: var(--bg-main); }
.lobby-card { text-align: center; display: grid; gap: 10px; justify-items: center; }
.lobby-card h2 { margin: 0; }
.lobby-icon { font-size: 48px; }
.lobby-people { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 6px 0 10px; }
.stage { position: relative; padding: 14px; overflow: auto; min-height: 0; display: grid; gap: 12px; align-content: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.empty-stage { grid-column: 1 / -1; text-align: center; padding: 12vh 16px; }
.empty-icon { font-size: 44px; }
.empty-stage h2 { margin: 10px 0 6px; font-size: 19px; }
.tile { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; border: 2px solid transparent; cursor: pointer; }
.tile:hover { border-color: var(--border); }
.tile video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.tile.cam video { object-fit: cover; }
.tile.cam.mirror video { transform: scaleX(-1); }
.tile .overlay { position: absolute; inset: auto 0 0 0; padding: 10px 12px; display: flex; align-items: center; gap: 8px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 14px; }
.tile .who { font-weight: 600; }
.tile .what { color: #cfd3de; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.badge { background: var(--live); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.badge.q, .badge.cam { background: rgba(255,255,255,.15); font-weight: 500; }
.tile .tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tile .tools button { background: rgba(0,0,0,.5); border: 0; border-radius: 6px; padding: 4px 7px; }
.tile .tools .hide-live { padding-left: 9px; padding-right: 9px; white-space: nowrap; }
.tile .tools input[type=range] { width: 80px; padding: 0; accent-color: var(--accent); }
.tile .status { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); font-size: 14px; pointer-events: none; }
.tile .unmute { position: absolute; top: 10px; right: 10px; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; }
.tile:fullscreen { border: 0; border-radius: 0; }
.stage.focus { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.stage.focus .tile.big { grid-column: 1 / -1; order: -1; }
.stage.focus .tile:not(.big) .what, .stage.focus .tile:not(.big) .tools, .stage.focus .tile:not(.big) .badge { display: none; }
.voice-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--bg-side); }
.voice-controls .group { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.voice-controls .share input { width: 220px; }

.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
.modal::backdrop { background: rgba(0,0,0,.65); }
.modal-card { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); display: grid; grid-template-rows: auto 1fr auto; background: var(--bg-side); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.modal.wide .modal-card { width: min(760px, calc(100vw - 24px)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 8px; }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-body { padding: 8px 18px 18px; overflow-y: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; background: var(--bg-rail); }
.box { background: var(--bg-elev); border-radius: 10px; padding: 14px; display: grid; gap: 10px; }
.box h3 { margin: 0; font-size: 15px; }
.radio-card { display: flex; align-items: center; gap: 12px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--accent); }
.radio-card span:last-child { display: grid; }
.radio-card small { color: var(--muted); }
.rc-icon { font-size: 22px; width: 28px; text-align: center; }
.invite-link { flex: 3 !important; }
.invite-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--bg-elev); border-radius: 8px; padding: 8px 10px; }
.invite-row .muted { flex: 1; font-size: 13px; }
.settings { display: grid; grid-template-columns: 170px 1fr; gap: 18px; min-height: 360px; }
.tabs { display: grid; gap: 2px; align-content: start; }
.tabs button { text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; color: var(--text-2); }
.tabs button:hover { background: var(--bg-hover); }
.tabs button.active { background: var(--bg-elev); color: #fff; }
.tab-content { min-width: 0; }
.danger-zone { border: 1px solid #d83a52; border-radius: 10px; padding: 14px; }
.danger-zone h3 { margin: 0; }
.pick-list { display: grid; gap: 2px; max-height: 50vh; overflow-y: auto; }
.pick-list .muted { margin-left: auto; font-size: 12px; }
.meter-row { display: flex; align-items: center; gap: 10px; }
.meter { flex: 1; height: 8px; background: var(--bg-rail); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.meter-fill { height: 100%; width: 0; background: var(--ok); transition: width .08s linear; }
.cam-preview { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; object-fit: cover; transform: scaleX(-1); }
.popup-menu { position: fixed; z-index: 70; min-width: 220px; max-width: 300px; background: #111217; border: 1px solid var(--border); border-radius: 10px; padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.popup-menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 2px; }
.menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; font-size: 14px; }
.menu-item:hover { background: var(--grad); color: #fff; }
.menu-item.danger { color: #ff6b81; }
.menu-item.danger:hover { background: #d83a52; color: #fff; }
.icon-preview { display: grid; place-items: center; }

.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 80; width: min(92vw, 460px); }
.toast { background: var(--bg-elev); border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.toast.warn { border-left-color: var(--warn); }
.toast.err { border-left-color: var(--live); }
.conn-banner { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--warn); color: #111; font-weight: 600; padding: 8px 16px; border-radius: 999px; z-index: 80; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 30; }

@media (max-width: 1099px) {
  .layout { grid-template-columns: 72px 250px 1fr; }
  .member-panel { position: fixed; right: 0; top: 0; bottom: 0; z-index: 40; box-shadow: -10px 0 30px rgba(0,0,0,.4); }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .rail, .sidebar { position: fixed; top: 0; bottom: 0; z-index: 40; transform: translateX(calc(-100% - 90px)); transition: transform .2s; visibility: hidden; }
  .layout.drawer-open .rail, .layout.drawer-open .sidebar { visibility: visible; }
  .rail { left: 0; width: 72px; }
  .sidebar { left: 72px; width: min(280px, calc(100vw - 72px)); }
  .layout.drawer-open .rail, .layout.drawer-open .sidebar { transform: none; }
  .mobile-only { display: inline-flex; }
  .settings { grid-template-columns: 1fr; }
  .tabs { display: flex; overflow-x: auto; }
  .msg { grid-template-columns: 48px 1fr; padding-right: 10px; }
  .voice-controls .share input { width: 100%; }
  .voice-controls .share { flex: 1 1 100%; }
  .composer { padding: 0 8px 10px; }
}

.pw-wrap { position: relative; display: grid; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.eye-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 4px 6px; font-size: 16px; opacity: .7; border-radius: 6px; line-height: 1; }
.eye-btn:hover { opacity: 1; background: var(--bg-hover); }
.icon-edit { position: relative; border: 0; padding: 0; background: none; border-radius: 50%; }
.icon-edit::after { content: '📷'; position: absolute; right: -2px; bottom: -2px; background: var(--grad); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; font-size: 13px; border: 3px solid var(--bg-side); }

.rail-btn.install { background: var(--bg-elev); color: var(--cyan); font-size: 20px; border-radius: 50%; margin-top: auto; transition: border-radius .15s, background .15s; }
.rail-btn.install:hover { background: var(--grad); color: #fff; border-radius: 14px; }
.install-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, rgba(62,202,220,.12), rgba(192,38,211,.12)); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 26px; }
.install-card img { width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto; }
.install-card > div { flex: 1; min-width: 0; }
.install-card p { margin: 2px 0 0; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.4; }

@media (hover: none) {
  .msg:hover { background: none; }
  .msg:hover .msg-actions { display: none; }
  .msg.show-actions { background: rgba(0,0,0,.14); }
  .msg.show-actions .msg-actions { display: flex; }
  .msg-actions { top: -18px; }
  .msg-actions button { padding: 8px 12px; font-size: 16px; }
  .ch-gear { opacity: .7; }
  .hover-time { display: none; }
  .tile .tools button { padding: 7px 10px; }
}

.composer { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.user-panel { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.voice-controls { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.main-header { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }

@media (max-width: 760px) {
  input, select, textarea, .composer textarea { font-size: 16px; }
  .auth-card { padding: 22px 18px; border-radius: 14px; }
  .main-header { height: 50px; }
  .main-title { font-size: 16px; }
  .messages { padding-top: 8px; }
  .chat-start { padding: 12px 14px 16px; }
  .chat-start h2 { font-size: 21px; }
  .day-sep { margin: 12px 12px 4px; }
  .msg { padding: 4px 10px 4px 4px; }
  .msg-actions { right: 8px; }
  .att-image img, .att-video { max-width: 100%; }
  .typing { padding: 0 12px; }
  .stage { padding: 8px; gap: 8px; grid-template-columns: 1fr; }
  .tile .overlay { padding: 8px; gap: 6px; font-size: 13px; flex-wrap: wrap; }
  .tile .tools input[type=range] { width: 64px; }
  .voice-controls { padding: 8px 10px; gap: 8px; }
  .voice-controls .group:last-child { margin-left: auto; }
  .voice-controls .btn { padding: 8px 10px; }
  .home-inner { padding: 28px 16px; }
  .install-card { flex-wrap: wrap; }
  .install-card .btn { width: 100%; }
  .modal-card, .modal.wide .modal-card { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .modal { max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .modal-body { padding: 8px 14px 16px; }
  .settings { min-height: 0; gap: 12px; }
  .tabs button { white-space: nowrap; }
  .row { flex-wrap: wrap; }
  .member-panel { width: min(280px, 85vw); }
  .popup-menu { max-width: calc(100vw - 16px); }
  .menu-item { padding: 11px 12px; }
  .side-item, .ch-main { padding-top: 9px; padding-bottom: 9px; }
  .rail-btn.install { margin-top: 8px; }
}
@media (max-width: 380px) {
  .voice-controls .share select { flex: 1; }
  .voice-controls #vcMute span { display: none; }
  .msg { grid-template-columns: 44px 1fr; }
  .msg-gutter .avatar { width: 34px !important; height: 34px !important; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .main-header { height: 42px; }
  .stage { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .empty-stage { padding: 4vh 16px; }
}
@media (min-width: 1800px) {
  .layout { grid-template-columns: 72px 280px 1fr auto; }
  .member-panel { width: 280px; }
  .msg-text { font-size: 16px; }
}

.settings { grid-template-columns: 170px minmax(0, 1fr); }
.tabs { min-width: 0; }
.modal-body hr { border: 0; border-top: 1px solid var(--border); width: 100%; margin: 6px 0; }
.modal-body .btn { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 760px) {
  .settings { grid-template-columns: minmax(0, 1fr); }
  .field input, .field select, .field textarea, .pw-wrap { min-width: 0; max-width: 100%; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .voice-controls { flex-wrap: nowrap; overflow-x: auto; padding: 6px 10px; }
  .voice-controls .share { flex: 0 1 auto; flex-wrap: nowrap; }
  .voice-controls .share input { width: 170px; }
  .voice-controls .btn { padding: 6px 9px; }
  .voice-controls .group:last-child { margin-left: 0; }
}

.ch-lock { font-size: 11px; opacity: .7; margin-left: auto; }
.ch-limit { font-size: 11px; color: var(--muted); background: var(--bg-rail); border-radius: 999px; padding: 1px 7px; margin-left: auto; flex: 0 0 auto; }
.ch-lock + .ch-limit { margin-left: 4px; }
.ch-limit.full { color: #fff; background: #b3263c; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-btn { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--text-2); }
.chip-btn.on { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; }
.limit-custom { width: 70px; padding: 6px 8px; border-radius: 999px; text-align: center; }
.role-checks { display: grid; gap: 4px; padding-left: 4px; max-height: 240px; overflow-y: auto; }
.role-check { padding: 6px 8px; border-radius: 8px; }
.role-check:hover { background: var(--bg-hover); }
.role-check.locked { opacity: .45; }
.role-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: 0 0 auto; box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
.role-dot.big { width: 18px; height: 18px; }
.role-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.role-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--bg-elev); border-radius: 6px; padding: 2px 7px; font-size: 12px; }
.mc-info { min-width: 0; }
.row.between { justify-content: space-between; }
.row.between > p { flex: 1 1 240px; margin: 0; font-size: 13px; }
.role-row { display: flex; align-items: center; gap: 12px; background: var(--bg-elev); border-radius: 10px; padding: 10px 12px; }
.role-row.locked { opacity: .55; }
.role-meta { flex: 1; min-width: 0; display: grid; }
.role-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.empty-roles { text-align: center; padding: 20px; color: var(--muted); background: var(--bg-elev); border-radius: 12px; }
.empty-roles div { font-size: 34px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; padding: 0; }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.swatches input[type=color] { width: 36px; height: 30px; padding: 0; border-radius: 8px; background: none; }
.role-preview { font-weight: 700; }
.perm-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.perm { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 10px; cursor: pointer; }
.perm:has(input:checked) { border-color: var(--accent); }
.perm.locked { opacity: .45; cursor: not-allowed; }
.perm span { display: grid; gap: 2px; }
.perm small { color: var(--muted); font-size: 12px; }
.perm input { margin-top: 3px; }
@media (max-width: 760px) {
  .role-row { flex-wrap: wrap; }
  .role-actions { width: 100%; justify-content: flex-start; }
}

.terms-check { align-items: flex-start; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.terms-check input { margin-top: 3px; flex: 0 0 auto; }
.legal-links { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.legal-links a { color: var(--muted); }
.legal-links a:hover { color: var(--text); }
.modal-body a.btn { text-decoration: none; color: var(--text); }
.meeting-badge { font-size: 12px; font-weight: 700; color: #ffd166; background: rgba(255,209,102,.12); border: 1px solid rgba(255,209,102,.35); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

.live-preview { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #1d3b4f, #2b1d4f 60%, #4f1d44); border: 1px solid var(--border); }
.lp-game { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: rgba(255,255,255,.45); }
.lp-cam { position: absolute; display: grid; place-items: center; background: #111; border: 3px solid transparent; border-image: var(--grad) 1; font-size: 20px; transition: all .15s; }
.lp-cam.shape-circle { border-radius: 50%; border-image: none; border-color: #6a5cff; aspect-ratio: 1; }
.lp-cam.shape-rect { aspect-ratio: 16 / 9; border-radius: 4px; }
.lp-cam.size-s { width: 18%; } .lp-cam.size-m { width: 25%; } .lp-cam.size-l { width: 34%; }
.lp-cam.pos-tl { top: 4%; left: 2%; } .lp-cam.pos-tr { top: 4%; right: 2%; }
.chroma-hint { margin-bottom: 0; }
.chroma-note { font-size: 12px; color: var(--text-2); background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.18); border-radius: 10px; padding: 8px 10px; }
.lp-cam.pos-bl { bottom: 4%; left: 2%; } .lp-cam.pos-br { bottom: 4%; right: 2%; }
.gate-meter { position: relative; overflow: visible; }
.gate-mark { position: absolute; top: -4px; bottom: -4px; width: 3px; background: #ffd166; border-radius: 2px; transform: translateX(-50%); box-shadow: 0 0 6px rgba(255,209,102,.8); }
.meter-fill.closed { background: #6b6f80; }
.tips { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }
.tips summary { cursor: pointer; font-weight: 600; }
.tips ul { margin: 10px 0 2px; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); }

.vp.movable { cursor: grab; }
.vp.movable:hover { background: var(--bg-hover); }
.vp.movable:active { cursor: grabbing; }
.side-item.channel.drop-target { background: rgba(62,202,220,.18); outline: 2px dashed var(--cyan); outline-offset: -2px; }
body.dragging-vp .side-item.channel .ch-main { pointer-events: none; }

.chat-view { display: block; }
.chat-panel { height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; }
.voice-view { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); position: relative; background: #111217; }
.voice-main { position: relative; display: grid; grid-template-rows: 1fr auto; min-width: 0; min-height: 0; }
.voice-chat { width: 360px; min-height: 0; display: none; grid-template-rows: auto minmax(0, 1fr); border-left: 1px solid var(--border); background: var(--bg-main); }
.voice-chat.open { display: grid; }
.vchat-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.vchat-slot { min-height: 0; display: grid; }
.voice-chat .messages { padding-top: 8px; }
.voice-chat .chat-start h2 { font-size: 18px; }
.voice-chat .msg { grid-template-columns: 46px 1fr; padding-left: 6px; padding-right: 10px; }
.voice-chat .msg-gutter .avatar { width: 34px !important; height: 34px !important; }
.voice-chat .composer { padding: 0 10px 10px; }
.voice-view, .voice-chat, .vchat-slot { overflow: hidden; }
.voice-chat, .vchat-slot, .chat-panel { grid-template-columns: minmax(0, 1fr); }
.composer, .composer-row { min-width: 0; }
.voice-chat .composer-row { gap: 0; padding: 4px; }
.voice-chat .composer-row .btn.icon { width: 32px; min-width: 32px; padding: 0; }
.voice-chat .att-image img, .voice-chat .att-video { max-width: 100%; }
.chat-toggle { position: relative; }
.chat-toggle.active { background: var(--bg-elev); }
.chat-toggle .dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px var(--bg-main); }
@media (max-width: 1280px) { .voice-chat { width: 320px; } }
@media (max-width: 899px) {
  .voice-chat { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); z-index: 20; box-shadow: -12px 0 30px rgba(0,0,0,.45); }
}

h1, h2, .modal-head h2, .side-title, .chat-start h2 { font-family: var(--font-display); letter-spacing: -.01em; }
.modal-head h2 { font-size: 18px; }
.chat-start h2 { font-weight: 700; }
.layout { grid-template-columns: 76px 260px 1fr auto; }
@media (max-width: 1099px) { .layout { grid-template-columns: 76px 260px 1fr; } }
@media (min-width: 1800px) { .layout { grid-template-columns: 76px 280px 1fr auto; } }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; } }
.rail { background: var(--bg-rail); border-right: 1px solid #1a1c28; gap: 8px; padding: 18px 0 16px; }
.rail-logo { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 15px; background: none; margin-bottom: 14px; flex: 0 0 auto; }
.rail-logo img { width: 46px; height: 46px; border-radius: 15px; display: block; }
.nav-btn { position: relative; width: 50px; height: 50px; border-radius: 16px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; flex: 0 0 auto; transition: background .12s, color .12s; }
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn:hover { background: var(--bg-elev); color: var(--text); }
.nav-btn.active { background: var(--bg-elev); color: var(--cyan); }
.nav-btn.unread::after { content: ''; position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--live); border: 2px solid var(--bg-rail); }
.rail-spacer { flex: 1 1 auto; }
.rail #installBtn, .rail #adminBtn { font-size: 0; }

.srv-switch { display: inline-flex; align-items: center; gap: 8px; height: 38px; max-width: 100%; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid #2a2e40; background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; }
.srv-switch:hover { border-color: var(--border-2); background: var(--bg-elev); }
.srv-switch .server-icon { border-radius: 10px !important; flex: 0 0 auto; }
.srv-switch .sw-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.srv-switch .sw-live { font-size: 12px; color: #ff6b84; white-space: nowrap; }
.srv-switch .sw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: 0 0 auto; }
.srv-switch svg { flex: 0 0 auto; color: var(--muted); }
.side-header .srv-switch, .side-switch .srv-switch { width: 100%; justify-content: flex-start; }
.side-switch { padding: 4px 0 10px; }
.side-switch .srv-switch .sw-name { flex: 1; text-align: left; }
.side-header .srv-switch .sw-name { flex: 1; text-align: left; }
.srv-menu { display: grid; gap: 2px; min-width: 300px; }
.srv-menu-title { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .08em; padding: 8px 10px 4px; }
.srv-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 0; background: none; text-align: left; }
.srv-row:hover { background: var(--bg-elev); }
.srv-row.current { background: var(--bg-elev); }
.srv-row .server-icon { border-radius: 12px !important; flex: 0 0 auto; }
.srv-row .srv-info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.srv-row strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-row .srv-sub { font-size: 12px; font-weight: 600; color: var(--muted); }
.srv-row .srv-sub.live { color: #ff6b84; }
.srv-row .srv-sub.voice { color: #4ade80; }
.srv-row .srv-cur { font-size: 12px; color: var(--cyan); font-weight: 700; }
.srv-row .srv-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.popup-menu:has(.srv-menu) { max-width: 360px; }
.popup-menu { border-radius: 16px; background: #11131b; border-color: var(--border-2); padding: 8px; }

.layout.palco-mode { grid-template-columns: 76px minmax(0, 1fr); }
.layout.palco-mode .sidebar, .layout.palco-mode .member-panel { display: none; }
.layout.palco-mode .main-header { display: none; }
.layout.palco-mode .main { grid-template-rows: 1fr; }
.palco-view { overflow-y: auto; }
.palco { display: grid; grid-template-columns: minmax(0, 1fr) 330px; min-height: 100%; }
.palco-main { padding: 26px 32px 120px; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.palco-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.palco-head .ph-left { display: grid; gap: 10px; min-width: 0; justify-items: start; }
.palco-head h1 { margin: 0; font-size: 30px; font-weight: 700; }
.btn-live { height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--live); color: #fff; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 9px; }
.btn-live::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.btn-live:hover { filter: brightness(1.08); }
.stories { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; flex: 0 0 auto; background: none; border: 0; padding: 0; color: var(--text); }
.story .ring { width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: #2a2e40; display: grid; }
.story.live .ring { background: var(--grad); }
.story.voice .ring { background: var(--ok); }
.story .ring .avatar { width: 100% !important; height: 100% !important; border: 3px solid var(--bg-main); border-radius: 50%; font-size: 22px !important; }
.story .st-name { font-size: 13px; font-weight: 700; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .st-sub { font-size: 11px; font-weight: 800; color: var(--muted); margin-top: -4px; letter-spacing: .02em; }
.story.live .st-sub { color: #ff6b84; }
.story.voice .st-sub { color: #4ade80; }
.lives { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.live-card { border-radius: 22px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; }
.live-card .lc-shot { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; background: linear-gradient(160deg, #1b3a4a, #0f1a2e 60%, #231236); cursor: pointer; border: 0; padding: 0; color: #c9d6e6; width: 100%; }
.live-card:nth-child(2n) .lc-shot { background: linear-gradient(160deg, #3a1b3c, #1a1030 60%, #0f2233); }
.live-card:nth-child(3n) .lc-shot { background: linear-gradient(160deg, #1f3a2a, #0f1f1a 60%, #1a1236); }
.lc-shot .lc-game { font-family: var(--font-display); font-size: 22px; font-weight: 700; padding: 0 20px; text-align: center; }
.lc-shot .lc-badge { position: absolute; top: 14px; left: 14px; background: var(--live); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.lc-shot .lc-viewers { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.lc-shot .lc-cam { position: absolute; left: 14px; bottom: 14px; background: rgba(0,0,0,.55); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.lc-foot { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.lc-foot .lc-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lc-foot strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-foot .lc-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-watch { height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--text); color: #0d0e14; font-weight: 800; font-size: 14px; white-space: nowrap; }
.btn-watch:hover { background: #fff; }
.palco-empty { border-radius: 22px; border: 1px dashed var(--border-2); padding: 42px 24px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.palco-empty h2 { margin: 0; font-size: 20px; }
.palco-empty p { margin: 0; color: var(--muted); max-width: 440px; line-height: 1.5; }
.palco-aside { border-left: 1px solid #1a1c28; padding: 26px 22px 120px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.crew-card { border-radius: 20px; padding: 18px; background: linear-gradient(135deg, rgba(62,202,220,.14), rgba(192,38,211,.14)); border: 1px solid var(--border-2); display: grid; gap: 10px; }
.crew-card strong { font-family: var(--font-display); font-size: 16px; }
.crew-card p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.crew-card button { height: 44px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; }
.crew-card button:disabled { opacity: .6; cursor: default; }
.aside-title { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .08em; }
.aside-sec { display: grid; gap: 10px; }
.room-card { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); padding: 12px 14px; display: grid; gap: 10px; text-align: left; width: 100%; color: var(--text); }
.room-card:hover { border-color: var(--border-2); background: #1a1d2a; }
.room-card.empty { background: none; border-style: dashed; color: var(--muted); }
.room-card.here { border-color: var(--ok); }
.room-card .rc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.room-card .rc-top strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-card .rc-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.room-card .rc-people { display: flex; gap: 6px; flex-wrap: wrap; }
.last-msg { font-size: 14px; line-height: 1.5; color: var(--text-2); background: none; border: 0; padding: 0; text-align: left; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.last-msg strong { margin-right: 4px; }
.last-msg:hover { color: var(--text); }

.voice-pill { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 25; display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 999px; background: #1e2130; border: 1px solid var(--border-2); box-shadow: 0 14px 40px rgba(0,0,0,.5); max-width: calc(100vw - 24px); }
.voice-pill .vp-where { background: none; border: 0; color: #4ade80; font-weight: 800; font-size: 13px; padding: 0 10px 0 8px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-pill .pill-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #2a2e40; color: var(--text); display: grid; place-items: center; flex: 0 0 auto; }
.voice-pill .pill-btn svg { width: 20px; height: 20px; }
.voice-pill .pill-btn.on { background: rgba(255,59,92,.2); color: #ff6b84; }
.voice-pill .pill-leave { width: 54px; border-radius: 999px; background: #e11d48; color: #fff; }

@media (max-width: 1180px) {
  .palco { grid-template-columns: minmax(0, 1fr); }
  .palco-aside { border-left: 0; border-top: 1px solid #1a1c28; padding-top: 22px; }
}
@media (max-width: 760px) {
  .layout.palco-mode { grid-template-columns: 1fr; }
  .layout.palco-mode .main-header { display: flex; }
  .layout.palco-mode .main { grid-template-rows: auto 1fr; }
  .layout.palco-mode .sidebar { display: grid; }
  .rail { width: 76px; }
  .sidebar { left: 76px; width: min(280px, calc(100vw - 76px)); }
  .palco-main { padding: 16px 16px 24px; gap: 18px; }
  .palco-head h1 { font-size: 22px; }
  .palco-head .btn-live { width: 100%; justify-content: center; }
  .lives { grid-template-columns: 1fr; gap: 14px; }
  .palco-aside { padding: 18px 16px 110px; }
  .story { width: 64px; }
  .story .ring { width: 58px; height: 58px; }
  .voice-pill .vp-where { max-width: 120px; }
}

.msg.has-reply { margin-top: 6px; }
.msg-reply { display: flex; align-items: center; gap: 6px; max-width: 100%; background: none; border: 0; padding: 0 0 2px; font-size: 13px; color: var(--muted); text-align: left; cursor: pointer; }
.msg-reply:hover { color: var(--text-2); }
.msg-reply .mr-arrow { color: var(--cyan); font-weight: 800; }
.msg-reply strong { color: var(--text-2); white-space: nowrap; }
.msg-reply .mr-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.msg.flash { background: rgba(62,202,220,.14) !important; transition: background .3s; }
.msg.bot .msg-author { color: #22C55E !important; font-weight: 800; }
.bot-tag { font-size: 10px; font-weight: 800; background: #5865F2; color: #fff; border-radius: 4px; padding: 1px 5px; letter-spacing: .04em; }
.bot-avatar { border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 2px #22C55E, 0 0 10px rgba(34,197,94,.35); background: #0F172A; }
.bot-avatar.elfo-mood { object-fit: contain; object-position: center bottom; background: radial-gradient(circle at 50% 60%, #16323a, #0F172A 70%); }
.bot-avatar.mood-serio { filter: grayscale(1) contrast(1.05); box-shadow: 0 0 0 2px #9ca3af; }
.elfo-thinking { display: inline-flex; align-items: center; gap: 6px; color: #22C55E; }
.elfo-thinking img { width: 18px; height: 18px; animation: elfo-bob 1.2s ease-in-out infinite; }
@keyframes elfo-bob { 50% { transform: translateY(-2px) rotate(-4deg); } }
.elfo-sleep { width: 96px; height: 96px; object-fit: contain; display: block; margin: 0 auto 8px; opacity: .92; animation: elfo-breathe 3.2s ease-in-out infinite; }
@keyframes elfo-breathe { 50% { transform: scale(1.03); } }
.chat-start.is-empty { text-align: center; padding-top: 40px; }
.elfo-name { color: #22C55E; display: inline-flex; align-items: center; gap: 4px; }
.elfo-mini { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px #22C55E; }
.elfo-grid img.cemoji { width: 28px; height: 28px; }
.elfo-emotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.elfo-emotes figure { margin: 0; text-align: center; padding: 6px 4px; border-radius: 10px; background: rgba(34,197,94,.06); border: 1px solid rgba(34,197,94,.18); }
.elfo-emotes img { width: 48px; height: 48px; object-fit: contain; }
.elfo-emotes figcaption { font-size: 10px; color: var(--text-2); word-break: break-all; }
.reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.reaction { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; color: var(--text-2); }
.reaction:hover { border-color: var(--border-2); background: var(--bg-elev); }
.reaction.mine { border-color: var(--accent); background: rgba(59,91,255,.18); color: var(--text); }
.reaction .r-count { font-size: 12px; font-weight: 800; }
.reaction.add { opacity: .6; padding: 0 8px; }
.reaction.add:hover { opacity: 1; }
.emoji-grid { display: grid; grid-template-columns: repeat(6, 40px); gap: 4px; padding: 4px; }
.emoji-grid button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; font-size: 22px; }
.emoji-grid button:hover { background: var(--bg-elev); }
.reply-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 12px; margin-bottom: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.reply-bar .rb-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-bar strong { color: var(--text); }

.quote-line { display: inline-block; border-left: 3px solid var(--border-2); padding-left: 8px; color: var(--text-2); }
.mention { background: rgba(59,91,255,.18); color: #b9c6ff; border-radius: 4px; padding: 0 3px; font-weight: 700; }
.mention.me { background: rgba(245,166,35,.22); color: #ffd28a; }
.cemoji { width: 22px; height: 22px; object-fit: contain; vertical-align: -5px; }
.reaction .cemoji { width: 18px; height: 18px; vertical-align: -4px; }
.game-icon { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 28%; overflow: hidden; color: #fff; font-weight: 800; letter-spacing: -.02em; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; }
.game-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 46vh; overflow-y: auto; }
.game-pick { display: grid; justify-items: center; gap: 6px; padding: 12px 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 700; text-align: center; }
.game-pick:hover, .game-pick.on { border-color: var(--accent); background: rgba(59,91,255,.12); }
.game-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.game-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sound-emoji { font-size: 26px; width: 40px; text-align: center; }
.emoji-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.emoji-card { display: grid; justify-items: center; gap: 6px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.emoji-card img { width: 44px; height: 44px; object-fit: contain; }
.botzin-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 14px; background: #0F172A; border: 1px solid rgba(34,197,94,.35); }
.botzin-hero img.elfo-logo { width: min(100%, 360px); height: auto; border-radius: 10px; }
.botzin-hero p { margin: 2px 0 0; }
.botzin-tab h3 { margin: 10px 0 0; font-size: 15px; }
.gameid-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
@media (max-width: 600px) { .gameid-grid { grid-template-columns: minmax(0, 1fr); } }
.rules-text { white-space: pre-wrap; line-height: 1.55; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }

.card-poll, .card-bet, .card-lfg { margin-top: 6px; max-width: min(460px, 100%); box-sizing: border-box; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); padding: 12px; display: grid; gap: 8px; }
.cp-q { font-weight: 800; font-size: 15px; }
.cp-opt { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--bg-input); text-align: left; }
.cp-opt:hover:not(:disabled) { border-color: var(--accent); }
.cp-opt:disabled { cursor: default; opacity: .85; }
.cp-opt.mine { border-color: var(--accent); }
.cp-opt.won { border-color: var(--ok); }
.cp-bar { position: absolute; inset: 0 auto 0 0; background: rgba(59,91,255,.22); transition: width .3s; }
.cp-opt.won .cp-bar { background: rgba(35,197,94,.25); }
.cp-label, .cp-pct { position: relative; }
.cp-label { font-weight: 700; }
.cp-pct { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cp-foot, .cb-status { font-size: 12px; color: var(--muted); }
.cb-admin { gap: 8px; }
.card-lfg { background: linear-gradient(135deg, rgba(62,202,220,.1), rgba(59,91,255,.1)); }
.card-lfg.full { background: linear-gradient(135deg, rgba(35,197,94,.14), rgba(62,202,220,.1)); }
.cl-top { display: flex; gap: 10px; align-items: center; }
.cl-people { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cl-slot { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--border-2); display: grid; place-items: center; color: var(--muted); font-weight: 800; font-size: 12px; }
.msg.bot .msg-text { background: rgba(34,197,94,.06); border: 1px solid rgba(34,197,94,.28); border-left: 3px solid #22C55E; border-radius: 12px; padding: 8px 12px; display: inline-block; max-width: 100%; }

.mention-box { display: grid; gap: 2px; padding: 6px; margin-bottom: 6px; border-radius: 14px; background: #11131b; border: 1px solid var(--border-2); max-height: 260px; overflow-y: auto; }
.mb-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; border: 0; background: none; text-align: left; }
.mb-item.on, .mb-item:hover { background: var(--bg-elev); }
.mb-special { width: 24px; text-align: center; font-size: 18px; }
.rec-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 6px; border-radius: 14px; background: rgba(255,59,92,.1); border: 1px solid rgba(255,59,92,.35); }
.rec-bar #recTime { font-weight: 800; font-variant-numeric: tabular-nums; }
.rec-bar .muted { flex: 1; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); animation: recblink 1s infinite; }
@keyframes recblink { 50% { opacity: .3; } }
#micBtn.on { color: var(--live); }
.emoji-picker { display: grid; gap: 4px; max-width: 300px; }
.ep-title { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .08em; padding: 6px 6px 2px; }
.emoji-picker .emoji-grid { grid-template-columns: repeat(auto-fill, 40px); }
.emoji-picker .cemoji { width: 28px; height: 28px; }
.attachments audio { max-width: min(360px, 100%); }

.member-extras { display: grid; gap: 6px; padding: 0 12px 10px; font-size: 13px; color: var(--text-2); }
.mx-ids { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-id { display: grid; text-align: left; gap: 0; padding: 5px 9px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; }
.mx-id small { font-size: 10px; color: var(--muted); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mx-id:hover { border-color: var(--accent); }
.mx-totals { font-size: 12px; color: var(--muted); }
.mx-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badge-award { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(245,166,35,.15); color: #ffd28a; }
.popup-menu.member-menu { max-width: 340px; }
.member-lines { display: grid; min-width: 0; flex: 1; }
.member-status { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lc-center { display: grid; justify-items: center; gap: 10px; }
.lc-center .game-icon { box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.story { position: relative; }
.st-game { position: absolute; top: 44px; right: 6px; }
.st-game .game-icon { border: 2px solid var(--bg-main); }
.crew-btns { display: flex; gap: 8px; }
.crew-btns button { flex: 1; }
.crew-card button.secondary { background: rgba(255,255,255,.08); border: 1px solid var(--border-2); }
.crew-card .crew-push { background: none !important; height: auto !important; color: #c9cde0; font-weight: 600; padding: 0; text-align: left; }
.aside-head { display: flex; justify-content: space-between; align-items: center; }
.mini-link { background: none; border: 0; color: var(--cyan); font-weight: 800; font-size: 13px; padding: 2px 4px; }
.event-card { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); padding: 12px; display: grid; gap: 8px; }
.ev-top { display: flex; gap: 10px; align-items: center; }
.ev-info { display: grid; min-width: 0; }
.ev-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-people { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.ev-btns { display: flex; gap: 6px; }
.rank-group { display: grid; gap: 4px; }
.rank-group small { color: var(--muted); font-weight: 700; font-size: 12px; }
.rank-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rank-n { width: 18px; font-weight: 800; color: var(--muted); }
.rank-n.n1 { color: #facc15; } .rank-n.n2 { color: #cbd5e1; } .rank-n.n3 { color: #d97706; }
.rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-val { color: var(--muted); font-size: 13px; white-space: nowrap; }
.my-points { font-size: 13px; color: var(--text-2); background: rgba(59,91,255,.12); border-radius: 10px; padding: 8px 10px; }

.game-chip { max-width: 220px; gap: 8px; }
.game-chip .gc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-chip.empty { border-style: dashed; color: var(--text-2); }
.tile .what { display: inline-flex; align-items: center; gap: 6px; }
.react-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.float-react { position: absolute; bottom: 8%; font-size: 34px; animation: floatup 2.5s ease-out forwards; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
@keyframes floatup { 0% { transform: translateY(0) scale(.6); opacity: 0; } 10% { opacity: 1; transform: translateY(-10px) scale(1.1); } 100% { transform: translateY(-260px) scale(1); opacity: 0; } }
.react-grid { grid-template-columns: repeat(4, 44px); }
.react-grid button { font-size: 26px; width: 44px; height: 44px; }
.soundboard { display: grid; gap: 6px; max-width: 320px; }
.sb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sb-item { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 12px; font-weight: 700; }
.sb-item:hover { border-color: var(--accent); background: rgba(59,91,255,.12); }
.sb-emoji { font-size: 24px; }
.tile .tools button.on { background: rgba(255,59,92,.35); }
.voice-controls .group.fun .btn { font-size: 18px; }
@media (max-width: 760px) {
  .game-chip { max-width: 150px; }
  .card-poll, .card-bet, .card-lfg { max-width: 100%; }
}

.build-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; }
.build-sources .bs-label { color: var(--text-2); font-weight: 700; }
.build-sources .bs-chip { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; color: #8fb4ff; text-decoration: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.build-sources .bs-chip:hover { border-color: #8fb4ff; }
.build-sources .bs-queries { flex-basis: 100%; color: var(--muted); }
.build-sources .bs-queries a { color: var(--text-2); }

.st-game .game-icon { width: 22px !important; height: 22px !important; border-radius: 7px; }
.lc-game-symbol { font-size: 46px; opacity: .85; }
.card-poll.closed { opacity: .88; }
.card-poll.closed .cp-opt { cursor: default; }
.card-poll .cp-opt:disabled { opacity: .78; }

.game-hub { margin: 20px 0 8px; padding: 16px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012)); border-radius: 20px; }
.game-hub-head h2 { margin: 0; font-size: 18px; }
.game-hub-head p { margin: 3px 0 12px; }
.game-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 9px; }
.game-hub-card { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); color: inherit; text-align: left; cursor: pointer; }
.game-hub-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.gh-info { min-width: 0; display: grid; gap: 3px; }
.gh-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-avatars { display: flex; align-items: center; }
.gh-avatars > * + * { margin-left: -6px; }
.mx-game { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: rgba(75, 92, 255, .09); border: 1px solid var(--border); }
@media (max-width: 600px) { .game-hub-grid { grid-template-columns: 1fr; } }

.game-icon.has-img { background: #0b0c10; }
.vp-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-icons { flex: 1 1 auto; }
.vp-game { margin-left: auto; display: inline-flex; flex: 0 0 auto; }
.vp-game .game-icon { border-radius: 6px; }
.streamer-tag { font-size: 12px; filter: saturate(1.3); }
.member-game { display: inline-flex; flex: 0 0 auto; margin-left: 4px; }
.member-game .game-icon { border-radius: 7px; }
.member-playing b { color: var(--text-2); font-weight: 700; }
.voice-bar { flex-wrap: wrap; }
.vb-game { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; padding: 2px 0 8px; margin-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.06); font-weight: 700; font-size: 14px; min-width: 0; }
.vb-game .game-icon { border-radius: 8px; }
.vb-game .vbg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.me-game { display: flex; align-items: center; gap: 5px; }
.me-game .game-icon { border-radius: 4px; }
.me-game span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-streamer { color: #ff6b8b; font-weight: 700; }
.streamer-banner { flex: 1 1 100%; order: -1; background: linear-gradient(90deg, rgba(255,45,85,.18), rgba(192,38,211,.18)); border: 1px solid rgba(255,45,85,.45); color: #ffd6df; font-size: 12px; padding: 6px 12px; border-radius: 10px; }
.streamer-banner b { color: #fff; }
.streamer-mode .sensitive { filter: blur(7px); transition: filter .15s; }
.streamer-mode .sensitive:hover, .streamer-mode .sensitive:focus { filter: none; }
@media (max-width: 700px) { .streamer-banner { font-size: 11px; padding: 5px 9px; } }
.mb-cmd strong { font-family: var(--font-mono, ui-monospace, monospace); }
.mb-cmd .mb-args { font-size: 11px; color: var(--text-2); background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.mb-cmd .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#composer.punished .composer-row { opacity: .75; outline: 1px dashed rgba(255, 90, 110, .6); }
#composer.punished textarea::placeholder { color: #ff8a9e; }
.mod-active { display: grid; gap: 6px; }
.mod-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev); }
.mod-row-info { display: grid; flex: 1; min-width: 0; }
.mod-row-info .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-status { font-weight: 600; }
.mod-list { display: grid; gap: 4px; max-height: 180px; overflow: auto; }
.mod-item { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; font-size: 13px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.rules-list p { margin: 0 0 10px; line-height: 1.55; }
.rules-list h3 { margin: 14px 0 6px; }
.ar-progress { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev); }
.ar-row { display: grid; grid-template-columns: auto 1fr 120px; gap: 8px; align-items: center; font-size: 13px; }
.ar-row > span:first-child:not(.game-icon) { grid-column: span 1; }
.ar-row:not(:has(.game-icon)) { grid-template-columns: 1fr 120px; }
.ar-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.ar-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #3ecadc, #3b5bff, #c026d3); }

.auth-wrap { width: 100%; max-width: 980px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 420px); gap: 36px; align-items: center; }
.auth-hero { display: grid; gap: 14px; color: var(--text); }
.auth-hero .brand { font-size: 20px; }
.hero-hello { margin: 6px 0 0; color: #7ee3f0; font-weight: 700; font-size: 15px; letter-spacing: .01em; }
.hero-title { margin: 0; font-family: var(--font-display, inherit); font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.02em; }
.hero-title span { background: linear-gradient(90deg, #3ecadc, #3b5bff 55%, #c026d3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.55; max-width: 46ch; }
.hero-feats { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.hero-feats li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); }
.hero-feats .hf-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; font-size: 20px; border-radius: 11px; background: linear-gradient(135deg, rgba(62,202,220,.2), rgba(192,38,211,.2)); }
.hero-feats b { display: block; font-size: 14px; }
.hero-feats small { color: var(--muted); font-size: 12.5px; }
.hero-note { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.welcome-tip { display: flex; gap: 12px; align-items: flex-start; }
.welcome-tip .wt-icon { font-size: 22px; width: 32px; text-align: center; }
.welcome-tip p { margin: 2px 0 0; }
@media (max-width: 860px) {
  .auth { place-items: start center; }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 460px; }
  .auth-hero { gap: 8px; text-align: left; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 14.5px; }
  .hero-feats, .hero-note { display: none; }
}
.welcome-card { position: relative; margin: 4px 0 18px; padding: 18px 20px; border-radius: 20px; border: 1px solid rgba(62,202,220,.35); background: linear-gradient(135deg, rgba(62,202,220,.10), rgba(59,91,255,.08) 50%, rgba(192,38,211,.10)); display: grid; gap: 10px; }
.welcome-card h2 { margin: 0; font-size: 20px; padding-right: 30px; }
.welcome-card > p { margin: 0; }
.welcome-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.welcome-card .wc-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--text-2); }
.wc-actions { gap: 8px; flex-wrap: wrap; }

.unread-count { flex: 0 0 auto; min-width: 20px; height: 18px; padding: 0 6px; margin-left: auto; border-radius: 999px; background: var(--live); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg-side); font-variant-numeric: tabular-nums; }
.side-item .ch-main .unread-count { margin-left: 6px; }
.side-item.dm .unread-count { margin-left: auto; }
.sw-count { margin-left: 2px; }
.srv-row .unread-count { box-shadow: none; }
.nav-btn.unread[data-count]::after { content: attr(data-count); width: auto; min-width: 18px; height: 18px; padding: 0 5px; top: 4px; right: 2px; border-radius: 999px; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 14px; text-align: center; box-sizing: border-box; }

.vbg-text { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
.vbg-text .vbg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vbg-sub { font-size: 11.5px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-game-info { display: grid; min-width: 0; line-height: 1.25; }
.mx-game-info b, .mx-game-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detector-box { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(124, 92, 255, 0.45); background: rgba(124, 92, 255, 0.1); }
.detector-box p { margin: 0; }
.detector-box .row { display: flex; gap: 8px; flex-wrap: wrap; }
.detector-box.ok { display: block; border-color: rgba(59, 165, 93, 0.45); background: rgba(59, 165, 93, 0.1); }
.msg { padding-right: 40px; }
.msg-more { position: absolute; right: 8px; top: 4px; width: 28px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; opacity: .35; cursor: pointer; }
.msg-more.can-edit { opacity: .7; }
.msg:hover .msg-more, .msg.show-actions .msg-more, .msg-more:focus-visible { opacity: 1; background: var(--bg-hover); color: var(--text); }
.msg-actions { right: 40px; }
.voice-chat .msg { padding-right: 36px; }
.legal-links .credits { display: block; margin-top: 6px; opacity: .8; }
.img-viewer { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 6, 10, .88); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 24px 24px; }
.img-viewer > img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.iv-bar { position: absolute; top: 10px; left: 16px; right: 16px; display: flex; align-items: center; gap: 8px; }
.iv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 600; }
.att-image { cursor: zoom-in; }
.popup-menu { max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain; }
.srv-rows { display: grid; gap: 2px; max-height: min(52dvh, 440px); overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.srv-rows::-webkit-scrollbar, .popup-menu::-webkit-scrollbar { width: 8px; }
.srv-rows::-webkit-scrollbar-thumb, .popup-menu::-webkit-scrollbar-thumb { background: #2a2e40; border-radius: 8px; }
.status-dot.st-online { background: #23a55a; }
.status-dot.st-idle { background: #f0b232; }
.status-dot.st-idle::after { content: ''; position: absolute; left: -2px; top: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--bg-side); }
.status-dot.st-dnd { background: #f23f43; }
.status-dot.st-dnd::after { content: ''; position: absolute; left: 1px; right: 1px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--bg-side); }
.status-dot.st-invisible { background: var(--bg-side); box-shadow: inset 0 0 0 2px #80848e; }
.status-dot.st-playing { background: #23a55a; }
.status-dot.st-streaming { background: #9b59ff; }
.status-dot.st-offline { background: #5d6070; }
.status-dot { overflow: hidden; }
.me-status { cursor: pointer; }
.me-status:hover, .me-status:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.me-st-dnd { color: #f5868a; }
.me-st-idle { color: #f0c46a; }
.me-st-invisible { color: #a5a9b4; }
.me-st-streaming { color: #c4a5ff; }
.ptt-box { display: grid; gap: 8px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.02); }
.ptt-box[hidden] { display: none; }

/* 🎶 Música em grupo */
.music-dock { position: fixed; right: 16px; bottom: 96px; width: 320px; max-width: calc(100vw - 32px); z-index: 60; background: var(--bg-elev, #151822); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.45); overflow: hidden; }
.music-video { aspect-ratio: 16 / 9; background: #000; }
.music-frame { width: 100%; height: 100%; border: 0; display: block; }
.music-dock.mini .music-video { height: 1px; aspect-ratio: auto; overflow: hidden; opacity: 0; }
.music-info { display: grid; gap: 2px; padding: 8px 12px 0; min-width: 0; }
.music-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.music-by { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-ctrls { display: flex; align-items: center; gap: 4px; padding: 6px 8px 8px; }
.music-vol { flex: 1; min-width: 60px; accent-color: #22C55E; }
.music-vol-icon { font-size: 12px; margin-left: 4px; }
#vcMusic.on { background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.5); }
@media (max-width: 640px) { .music-dock { right: 8px; left: 8px; width: auto; bottom: 150px; } }

/* 💬 Legendas */
.caption-box { position: fixed; left: 50%; transform: translateX(-50%); bottom: 110px; z-index: 61; width: min(720px, calc(100vw - 32px)); display: grid; gap: 4px; pointer-events: none; }
.caption-line { background: rgba(0,0,0,.78); color: #fff; padding: 6px 12px; border-radius: 10px; font-size: 16px; line-height: 1.35; text-align: center; text-shadow: 0 1px 2px #000; }
.caption-line b { color: #86efac; }
.caption-line.interim .caption-text { opacity: .75; }
#vcCaptions.on { background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.5); }
.swatch.none { display: grid; place-items: center; font-size: 11px; color: var(--muted); background: transparent; border: 1px dashed var(--border-2); }
.name-color-preview { font-weight: 800; }
.gather-toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 14px; background: #0F172A; border: 1px solid rgba(34,197,94,.5); box-shadow: 0 12px 40px rgba(0,0,0,.5); max-width: calc(100vw - 32px); }

/* ☀️ Tema claro */
:root[data-theme="light"] {
  --bg-rail: #e2e5ee;
  --bg-side: #f1f2f7;
  --bg-main: #ffffff;
  --bg-elev: #ffffff;
  --bg-hover: #e7e9f1;
  --bg-input: #eceef4;
  --surface: #f5f6fa;
  --border: #dde0ea;
  --border-2: #c6cbd9;
  --text: #141722;
  --text-2: #363c50;
  --muted: #646b82;
  color-scheme: light;
}
:root[data-theme="light"] a { color: #2f55d4; }
:root[data-theme="light"] .btn.active { background: #e2e7ff; }
:root[data-theme="light"] .voice-bar { background: #e5f5eb; }
:root[data-theme="light"] .user-panel { background: #e6e8f0; }
:root[data-theme="light"] .popup-menu, :root[data-theme="light"] .mention-box { background: #ffffff; box-shadow: 0 12px 40px rgba(20,23,34,.18); }
:root[data-theme="light"] .story .ring { background: #d3d8e4; }
:root[data-theme="light"] .room-card:hover { background: #eef0f6; }
:root[data-theme="light"] .voice-pill .pill-btn { background: #e1e4ee; }
:root[data-theme="light"] .srv-rows::-webkit-scrollbar-thumb, :root[data-theme="light"] .popup-menu::-webkit-scrollbar-thumb { background: #c3c8d6; }
:root[data-theme="light"] .msg.bot .msg-text { background: rgba(34,197,94,.08); }
:root[data-theme="light"] .msg.bot .msg-author, :root[data-theme="light"] .elfo-name { color: #15803d !important; }
/* A sala de voz (vídeo) continua escura, como no cinema. */
:root[data-theme="light"] .stage, :root[data-theme="light"] .music-dock, :root[data-theme="light"] .gather-toast {
  --bg-elev: #1e2130; --bg-hover: #262a3c; --bg-input: #1a1d29; --surface: #161823; --border: #23263a; --border-2: #2f3450;
  --text: #eceef6; --text-2: #c9cde0; --muted: #9aa0b8; color: var(--text); color-scheme: dark;
}
:root[data-theme="light"] .side-item.active, :root[data-theme="light"] .side-item.unread .ch-name, :root[data-theme="light"] .msg-author, :root[data-theme="light"] .tabs button.active { color: var(--text); }
:root[data-theme="light"] .side-item.active { background: #e3e6f0; }
:root[data-theme="light"] .crew-card button.secondary { background: #fff; color: var(--text); }
:root[data-theme="light"] .crew-card .crew-push { color: var(--text-2); }
:root[data-theme="light"] .voice-view { background: var(--bg-main); }
:root[data-theme="light"] .stage { background: #111217; }
.mc-origin { padding: 0 12px 8px; line-height: 1.4; }

/* 🎞️ Estúdio de clipes */
.clip-studio .cs-previews { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.cs-prev { background: #000; border-radius: 10px; border: 1px solid var(--border-2); max-width: 100%; }
.cs-prev.wide { width: min(100%, 480px); height: auto; aspect-ratio: 16 / 9; }
.cs-prev.tall { width: 150px; height: auto; aspect-ratio: 9 / 16; cursor: ew-resize; touch-action: none; }
.cs-trim { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-trim label { display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }
.cs-trim input, .cs-tall-opts input[type=range] { accent-color: #22C55E; width: 100%; }
.cs-range { font-size: 13px; color: var(--muted); }
.cs-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--bg-input); overflow: hidden; }
.cs-bar-fill { width: 0; height: 100%; background: #22C55E; transition: width .2s; }
.cs-results { display: grid; gap: 8px; }
.cs-result { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-result span { min-width: 170px; font-weight: 700; }
.att-video-wrap { display: grid; gap: 6px; justify-items: start; }
.att-edit { font-size: 12px; }

/* 📱 Vídeo do telemóvel a converter antes do envio */
.tap-continue { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9999; box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.chip .chip-note { font-size: 11px; opacity: .8; }
.att-video-fail { display: grid; gap: 6px; padding: 10px 12px; border-radius: 8px; background: var(--bg-3, #1f2230); max-width: 480px; }
.home-hello { margin: 0 0 4px; font-weight: 700; color: var(--muted, #9aa3b2); }
.home-title { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; }
.home-title span { background: linear-gradient(90deg, #3ecadc, #c026d3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-sub { margin: 0 0 18px; font-size: 15px; }
.exe-card .exe-icon { width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto; display: grid; place-items: center; font-size: 28px; background: rgba(255,255,255,.06); }
.hero-exe { margin-top: 12px; justify-self: start; width: fit-content; }
.side-item.dm { position: relative; }
.side-item.dm .dm-del { margin-left: auto; opacity: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; font-size: 12px; color: var(--muted, #9aa3b2); }
.side-item.dm:hover .dm-del, .side-item.dm:focus-within .dm-del, .side-item.dm.active .dm-del { opacity: 1; }
.side-item.dm .dm-del:hover { background: rgba(239,68,68,.18); color: #f87171; }
@media (hover: none) { .side-item.dm .dm-del { opacity: .7; } }
.side-item.dm .unread-count + .dm-del { margin-left: 6px; }
.wm-request { display: grid; gap: 6px; }
.wm-request .hint { margin: 0; }
.wm-form { display: grid; gap: 6px; }
.wm-note { width: 100%; resize: vertical; }
.wm-status { margin: 0; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.05); }
.wm-status.pending { color: #fbbf24; }
.wm-status.denied { color: #f87171; }

/* 🛡️ Painel do administrador — separadores, localizador de pessoas */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.admin-tabs button { background: var(--bg-elev); border: 1px solid transparent; color: var(--text-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.admin-tabs button.active { background: rgba(62,202,220,.15); border-color: rgba(62,202,220,.45); color: var(--text, #fff); }
.admin-people { display: grid; gap: 10px; }
.admin-search-row { align-items: center; }
.admin-search { flex: 1; min-width: 0; }
.admin-people-list { display: grid; gap: 4px; max-height: 42vh; overflow: auto; }
.admin-person-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--bg-side); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; color: inherit; cursor: pointer; }
.admin-person-row:hover { background: var(--bg-hover); }
.apr-names { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.apr-names b, .apr-names span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apr-stats { display: flex; gap: 8px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; justify-content: flex-end; }
.admin-person { border: 1px solid rgba(62,202,220,.35); border-radius: var(--radius); padding: 12px; background: var(--bg-side); display: grid; gap: 8px; }
.admin-person h4 { margin: 8px 0 0; font-size: 14px; }
.ap-head { display: flex; align-items: center; gap: 10px; }
.ap-names { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ap-table { display: grid; gap: 4px; }
.ap-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--bg-elev); border-radius: 8px; padding: 6px 8px; font-size: 13px; border: 0; color: inherit; text-align: left; width: 100%; }
.ap-row.link-row { cursor: pointer; }
.ap-row.link-row:hover { background: var(--bg-hover); }
.ap-main { font-weight: 600; }
.ap-tag { font-size: 12px; background: rgba(255,255,255,.06); border-radius: 999px; padding: 1px 8px; }
.ap-row .btn { margin-left: auto; }
.ap-srv { display: grid; gap: 6px; padding: 8px; border-radius: 8px; background: var(--bg-elev); }
.ap-srv .row { align-items: center; justify-content: space-between; }
.admin-admins-head.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.wm-req { display: grid; gap: 6px; padding: 8px; border-radius: 8px; background: var(--bg-elev); }
.wm-req .row { align-items: center; gap: 8px; flex-wrap: wrap; }
.wm-msg { margin: 0; font-style: italic; color: var(--text-2); }
.social-row input.soc-label { width: 130px; flex: 0 0 auto; }
.social-row input.soc-url { flex: 1; min-width: 0; }
@media (max-width: 640px) { .apr-stats { display: none; } }

/* 🎬 VoiceClub Cinema */
.cinema { display: grid; gap: 8px; align-content: start; flex: 0 0 auto; padding: 10px; margin: 8px 10px 0; border-radius: 14px; background: linear-gradient(180deg, rgba(192,38,211,.10), rgba(62,202,220,.06)); border: 1px solid var(--border); }
.cin-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 62vh; background: #000; border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.cin-screen .cin-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.cin-idle { text-align: center; padding: 20px; max-width: 560px; color: #e5e7eb; }
.cin-idle h2 { margin: 6px 0; }
.cin-idle-icon { font-size: 56px; }
.cin-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; background: rgba(0,0,0,.55); color: #fff; text-align: center; padding: 16px; z-index: 2; }
.cin-overlay.countdown { background: radial-gradient(circle, rgba(0,0,0,.55), rgba(0,0,0,.85)); }
.cin-count { font-size: clamp(64px, 14vw, 160px); font-weight: 900; line-height: 1; text-shadow: 0 6px 30px rgba(192,38,211,.6); font-variant-numeric: tabular-nums; }
.cin-count-sub { font-size: 16px; font-weight: 600; max-width: 520px; }
.cin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cin-now { display: flex; flex-direction: column; min-width: 160px; flex: 1; }
.cin-now b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cin-ctl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cin-vol { width: 90px; }
.cin-cd { height: auto; min-height: 34px; padding: 6px 30px 6px 12px; line-height: 1.3; font-size: 14px; border-radius: 999px; width: auto; }
.cin-badge { font-size: 12px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 2px 8px; }
.cin-source { display: flex; gap: 6px; flex-wrap: wrap; }
.cin-source .cin-url { flex: 2; min-width: 200px; }
.cin-source .cin-title { flex: 1; min-width: 120px; }
.cin-vote { display: grid; gap: 6px; padding: 8px; border-radius: 10px; background: rgba(0,0,0,.18); }
.cin-vote.empty { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cin-vote-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cin-vote-head b { flex: 1; }
.cin-options { display: grid; gap: 4px; }
.cin-opt { position: relative; display: flex; align-items: center; gap: 6px; border-radius: 8px; overflow: hidden; background: var(--bg-elev); }
.cin-opt-fill { position: absolute; inset: 0 auto 0 0; background: rgba(62,202,220,.18); transition: width .3s; pointer-events: none; }
.cin-opt.mine { outline: 2px solid rgba(62,202,220,.7); }
.cin-opt.win { outline: 2px solid #eab308; }
.cin-opt-main { position: relative; flex: 1; display: flex; justify-content: space-between; gap: 8px; align-items: center; background: none; border: 0; color: inherit; text-align: left; padding: 8px 10px; cursor: pointer; }
.cin-opt-main:disabled { cursor: default; }
.cin-opt-title { font-weight: 600; }
.cin-opt .chip-x { position: relative; margin-right: 6px; }
.cin-sugg-row { display: flex; gap: 6px; }
.cin-sugg-row .cin-sugg { flex: 1; min-width: 0; }
@media (max-width: 700px) { .cinema { margin: 6px 4px 0; padding: 8px; } .cin-screen { max-height: 40vh; } }
.cin-sugg-row .btn { flex: 0 0 auto; }
.exe-card a.btn, .hero-exe { text-decoration: none; }

/* ↕️ Arrastar canais e salas */
.side-item.channel[draggable="true"] { cursor: grab; }
.side-item.channel.dragging { opacity: .45; }
.side-item.channel.drop-before { box-shadow: inset 0 3px 0 #3ecadc; }
.side-item.channel.drop-after { box-shadow: inset 0 -3px 0 #3ecadc; }

/* 🧝 Emotes do Elfo maiores (no texto, sozinhos na mensagem, nas reações e no seletor) */
.cemoji.elfo-emoji { width: 38px; height: 38px; vertical-align: -12px; }
.cemoji.jumbo { width: 48px; height: 48px; vertical-align: middle; }
.cemoji.elfo-emoji.jumbo { width: 72px; height: 72px; }
.reaction .cemoji.elfo-emoji { width: 26px; height: 26px; vertical-align: -7px; }
.elfo-grid img.cemoji { width: 44px; height: 44px; }
/* 🎬 A transmissão do filme vai para dentro do ecrã do cinema */
.cin-screen .tile.in-cinema { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; z-index: 1; }
.cin-screen .tile.in-cinema video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.cin-screen .cin-overlay { z-index: 3; }
#stage.cinema-empty { display: none; }
.cin-external { display: grid; justify-items: center; gap: 10px; }
.cin-ext-logo { font-weight: 900; font-size: 30px; color: #e5e7eb; letter-spacing: .02em; }
.cin-external a.btn { text-decoration: none; }
/* 📺 Cinema a passar: só a imagem, grande; controlos escondidos (a moderação abre em "⚙️ Controlos") */
.cin-more { display: none; }
.cinema.showing .cin-more { display: inline-flex; }
.cinema.showing .cin-idle { display: none; }
.cinema.showing .cin-screen { max-height: calc(100vh - 230px); }
.cinema.showing:not(.controls-open) .cin-source,
.cinema.showing:not(.controls-open) .cin-vote:not(.open),
.cinema.showing:not(.controls-open) .cin-bar > .cin-ctl:last-of-type { display: none; }
/* 📺 Live na sala de cinema: esconde o 1.º ecrã (o do cinema), fica o ecrã da transmissão com a barra de controlos */
.cinema.live-on .cin-screen { display: none; }
.cinema.live-on { margin-bottom: 0; }
.cin-overlay.on-stage { position: absolute; inset: 0; z-index: 5; border-radius: 12px; }
.voice-main:has(> #cinemaPanel.live-on:not([hidden])) { grid-template-rows: auto 1fr auto; }
.voice-main:has(> #cinemaPanel.live-on:not([hidden])) > #stage { min-height: 0; }
/* 🗳️ Votação do filme numa janela por cima */
.cin-vote-chip.live { background: rgba(62,202,220,.18); border-color: rgba(62,202,220,.55); }
.cin-vote-modal { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; background: rgba(0,0,0,.55); padding: 16px; }
.cin-vote-card { position: relative; width: min(560px, 100%); max-height: min(80vh, 720px); overflow: auto; background: var(--bg-side, #15171f); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cin-vote-card .cin-vote { background: none; padding: 0; }
.cin-vote-card .cin-vote-head { padding-right: 34px; }
.cin-vote-card .cin-options { max-height: 50vh; overflow: auto; }
.cin-vote-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: inherit; cursor: pointer; }
.cin-vote-x:hover { background: rgba(255,255,255,.16); }
/* 🗳️ Criar votação (até 5 filmes + tempo) */
.cin-vote-chip.live[data-left]::after { content: ' · ⏱ ' attr(data-left); }
.cin-vote-create { display: grid; gap: 8px; }
.cin-create-row { display: grid; grid-template-columns: 22px 1fr 1fr; gap: 6px; align-items: center; }
.cin-create-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(62,202,220,.18); }
.cin-create-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.cin-vote-timer { font-weight: 800; font-variant-numeric: tabular-nums; color: #3ecadc; }
@media (max-width: 560px) { .cin-create-row { grid-template-columns: 22px 1fr; } .cin-create-row .cvc-url { grid-column: 2; } }
/* 💡 Aviso: voz pelo navegador */
.voice-hint { position: fixed; right: 18px; top: 64px; z-index: 950; width: min(380px, calc(100vw - 36px)); display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--bg-side, #15171f); border: 1px solid rgba(62,202,220,.45); box-shadow: 0 16px 50px rgba(0,0,0,.5); transition: opacity .8s; }
.voice-hint { animation: vhIn .35s ease-out; } @keyframes vhIn { from { transform: translateY(-10px); opacity: 0; } }
.voice-hint.fade { opacity: 0; }
.voice-hint .vh-icon { font-size: 22px; }
.voice-hint .vh-text { display: grid; gap: 6px; flex: 1; }
.voice-hint .vh-text p { margin: 0; font-size: 13px; color: var(--text-2, #c9ced8); line-height: 1.45; }
.voice-hint .vh-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.voice-hint .vh-actions a.btn { text-decoration: none; }
.voice-hint .vh-x { border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; font-size: 13px; }
