:root { --bg:#0f1420; --panel:#182033; --text:#e8ecf4; --muted:#8a95ab; --accent:#3d7cff; --danger:#e5484d; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-family: Vazirmatn, Tahoma, system-ui, sans-serif; }
button { font: inherit; color: var(--text); background: var(--panel); border: 1px solid #2a3550; border-radius: 10px; padding: .6rem 1rem; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); }
button.danger { background: var(--danger); border-color: var(--danger); }
button.on { background: #1f6f43; border-color: #2c9a5d; }
.muted { color: var(--muted); font-size: .9rem; }

.landing main { max-width: 560px; margin: 15vh auto; padding: 0 1.25rem; line-height: 1.9; }

.room { display: flex; flex-direction: column; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; background: var(--panel); }
.lobby { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; text-align: center; }
.stage { flex: 1; display: flex; flex-direction: column; gap: .5rem; padding: .5rem; min-height: 0; overflow: auto; }
.screen { flex: 3; background: #000; border-radius: 12px; overflow: hidden; display: flex; }
.screen video { width: 100%; height: 100%; object-fit: contain; }
.grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; align-content: start; }
.tile { position: relative; aspect-ratio: 16/9; background: var(--panel); border-radius: 12px; overflow: hidden; border: 2px solid transparent; }
.tile.speaking { border-color: #2c9a5d; }
.tile .media, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile .name { position: absolute; bottom: 0; right: 0; left: 0; padding: .3rem .6rem; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.controls { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; padding: .75rem; background: var(--panel); }
