:root { color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #111418; color: #e6e8eb; font: 16px/1.4 system-ui, sans-serif; }
main { padding: 16px; max-width: 1400px; margin: 0 auto; }
#entrada { max-width: 380px; padding-top: 12vh; }
form { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 4px; }
input, button { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid #343b45; background: #1b2027; color: inherit; }
button { cursor: pointer; background: #2a5bd7; border-color: #2a5bd7; }
button.sec { background: #1b2027; border-color: #343b45; }
button.ativo { background: #b3382c; border-color: #b3382c; }
.aviso { background: #3a2f12; border: 1px solid #7a6420; padding: 8px 12px; border-radius: 8px; }
header { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.botoes { display: flex; flex-wrap: wrap; gap: 8px; }
.corpo { display: grid; grid-template-columns: 1fr 220px; gap: 16px; }
#telas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; align-content: start; }
#telas:empty::before { content: "Ninguém compartilhando tela."; color: #8b94a0; }
.tela { background: #000; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.tela video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; cursor: zoom-in; background: #000; }
.tela .info { display: flex; gap: 8px; align-items: center; padding: 6px 10px; background: #1b2027; }
.tela .info span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tela input[type=range] { padding: 0; width: 110px; }
.tela.grande { grid-column: 1 / -1; }
.tela.grande video { max-height: 80vh; cursor: zoom-out; }
aside h2 { font-size: 1rem; margin: 0 0 8px; }
#participantes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#participantes li { padding: 6px 10px; border-radius: 8px; background: #1b2027; border: 2px solid transparent; overflow: hidden; text-overflow: ellipsis; }
#participantes li.falando { border-color: #3fb950; }
@media (max-width: 700px) { .corpo { grid-template-columns: 1fr; } }
