/* ---------- голосовой чат в стиле Discord: плитки 16:9, имя в углу, зелёная рамка у говорящего, панель кнопок группами ---------- */
html body .vs-body{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:16px}
html body .vs-body:not(.shared) .vs-grid{display:grid;gap:10px;width:100%;margin:0 auto;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;align-content:center;justify-content:center;flex:0 0 auto}
html body .vs-body:not(.shared) .vs-grid.n1{grid-template-columns:minmax(0,760px)!important}
html body .vs-body:not(.shared) .vs-grid.n2{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:1100px}
html body .vs-body:not(.shared) .vs-grid:is(.n3,.n4){grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:980px}
html body .vs-body:not(.shared) .vs-grid:is(.n5,.n6,.n7,.n8,.n9){grid-template-columns:repeat(3,minmax(0,1fr))!important}
html body .vs-tile{aspect-ratio:16/9;border-radius:14px;padding:0;gap:0;justify-content:center;border:0;overflow:hidden;
  background:linear-gradient(135deg,hsl(var(--tc,150) 35% 26%),hsl(calc(var(--tc,150) + 30) 30% 17%));box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);transition:box-shadow .15s,transform .15s}
html body .vs-tile:hover{background:linear-gradient(135deg,hsl(var(--tc,150) 35% 29%),hsl(calc(var(--tc,150) + 30) 30% 19%))}
html body .vs-tile .vs-av .ava{--s:clamp(56px,9vw,96px)!important;box-shadow:0 8px 28px rgba(0,0,0,.35)}
/* говорит — зелёная рамка вокруг всей плитки (как в Discord) */
html body .vs-tile.talk{box-shadow:inset 0 0 0 3px var(--accent),0 0 0 1px var(--accent)}
html body .vs-tile.talk .vs-av .ava{box-shadow:0 8px 28px rgba(0,0,0,.35)}
/* имя — плашкой в левом нижнем углу */
html body .vs-tile .vs-n{position:absolute;left:8px;bottom:8px;max-width:calc(100% - 16px);margin:0;padding:3px 9px;border-radius:8px;background:rgba(0,0,0,.5);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;font-size:13px;justify-content:flex-start}
html body .vs-tile .vs-off{color:#ff6b7a}
html body .vs-tile.mute .vs-av{opacity:1}
html body .vs-tile .vs-rl{position:absolute;right:8px;top:8px;font-size:11px}
html body .vs-tile.cam{padding:0}
/* плитка «Пригласить» рядом, когда вы одни */
html body .vs-tile.vs-inv{flex-direction:column;gap:6px;background:rgba(255,255,255,.025);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.12);border:0;color:var(--fg)}
html body .vs-tile.vs-inv{background-image:none;outline:1.5px dashed rgba(255,255,255,.14);outline-offset:-8px}
html body .vs-tile.vs-inv:hover{background:color-mix(in srgb,var(--accent) 8%,transparent)}
.vs-inv-ic{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent);margin-bottom:4px}
.vs-inv-ic svg{width:24px;height:24px}
.vs-inv b{font-size:15px}.vs-inv small{color:var(--muted);font-size:12.5px}
/* ---------- нижняя панель: группы круглых кнопок без подписей ---------- */
html body .vs-bar{gap:12px;align-items:center;padding:12px 14px calc(14px + var(--safe-b,0px));border-top:0;background:linear-gradient(transparent,rgba(0,0,0,.25))}
.vs-grp{display:flex;gap:4px;padding:4px;border-radius:16px;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
html body .vs-b{min-width:0;max-width:none;flex:none;gap:0}
html body .vs-b small{display:none}
html body .vs-b>span{width:46px;height:42px;border-radius:12px;background:transparent;color:var(--fg);transition:background .15s,color .15s,transform .15s}
html body .vs-b:hover>span{background:rgba(255,255,255,.09)}
/* включённая камера/экран — светлая кнопка; выключенный микрофон/звук — красная */
html body .vs-b.on>span{background:#f2f5f3;color:#0b100e}
html body .vs-b.off>span{background:rgba(242,63,67,.16);color:#ff5c63}
html body .vs-b.off:hover>span{background:rgba(242,63,67,.26)}
html body .vs-b.bad>span{width:58px;height:50px;border-radius:16px;background:#f23f43;color:#fff;box-shadow:0 6px 18px -6px rgba(242,63,67,.7)}
html body .vs-b.bad:hover>span{background:#da373c}
@media (max-width:600px){
  html body .vs-body:not(.shared) .vs-grid{grid-template-columns:1fr!important;max-width:520px}
  html body .vs-body:not(.shared) .vs-grid:is(.n3,.n4,.n5,.n6,.n7,.n8,.n9){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body .vs-bar{gap:8px}
  html body .vs-b>span{width:42px;height:42px}
}
html body .vs-empty{text-align:center}
