/* Lobbies de mix: layout compacto (cartoes de time a esquerda, painel ao vivo a direita). Cores e componentes base: tema.css */
.lb-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lb-topo h2 { margin: 0; font-size: 1.15rem; }
.lb-topo-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-barra-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.lb-entrar-topo { margin-left: auto; }

/* ---- inicio ---- */
.tm-barra { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin: 2px 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mudo); }
.tm-barra b { color: var(--texto); }
.tm-barra .pt { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--mudo); }
.tm-barra .pt.on { background: var(--ok); } .tm-barra .pt.live { background: var(--erro); } .tm-barra .pt.vet { background: var(--aviso); }
.tm-barra .dir { margin-left: auto; display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; }
.tm-filtros { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tm-filtros .tm-input { height: 38px; }
.tm-filtros .busca { flex: 1 1 200px; max-width: 280px; }
.tm-filtros .check { display: flex; align-items: center; gap: 6px; color: var(--mudo); font-size: 13px; padding: 0 6px; }
.tm-filtros .verde { margin-left: auto; height: 38px; padding: 0 18px; }
.tm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.tm-lateral { display: grid; gap: 12px; position: sticky; top: 62px; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.tm-vazio { grid-column: 1 / -1; padding: 22px 12px; text-align: center; color: var(--mudo); border: 1px dashed var(--borda); border-radius: 12px; }

/* cartao de time (lobby) */
.tm-card { background: var(--painel); border: 1px solid var(--borda); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.tm-card:hover { border-color: #4a3480; }
.tm-card.meu { border-color: var(--accent); }
.tm-card-topo { display: flex; align-items: center; gap: 8px; }
.tm-card-topo .nome { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-card-topo .fmt { font-size: 11px; color: var(--mudo); border: 1px solid var(--borda); border-radius: 6px; padding: 1px 6px; }
.tm-slots { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 4px; background: #0d0919; border: 1px solid #1d1535; border-radius: 10px; padding: 8px 4px; }
.tm-slot { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.tm-slot .av { width: 38px; height: 38px; }
.tm-slot .nm { font-size: 10.5px; color: var(--mudo); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.tm-slot .nv { width: 18px; height: 18px; font-size: 10px; border-width: 1.5px; }
.tm-slot.vazio .av { background: #120c22; border: 2px dashed #2b2147; }
.tm-slot.vazio .nv { visibility: hidden; }
.tm-slot a { display: grid; justify-items: center; gap: 4px; color: inherit; text-decoration: none; min-width: 0; }
.tm-card-pe { display: flex; align-items: center; gap: 8px; }
.tm-card-pe .tm-btn { flex: 1; height: 34px; }
.tm-card-pe .meta { font-size: 12px; color: var(--mudo); }

/* painel da direita */
.tm-lat-linha { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; padding: 8px; background: var(--campo); border: 1px solid var(--borda); border-radius: 10px; }
.tm-lat-linha + .tm-lat-linha { margin-top: 6px; }
.tm-lat-linha .nome { font-weight: 700; display: flex; align-items: center; gap: 6px; min-width: 0; }
.tm-lat-linha .nome span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-lat-linha .sub { grid-column: 1; font-size: 11.5px; color: var(--mudo); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tm-lat-linha .acao { grid-column: 2; grid-row: 1 / span 2; }
.tm-lat-linha .placar { color: var(--ok); font-weight: 800; }
.tm-lat-linha.clicavel { cursor: pointer; text-align: left; color: var(--texto); font: inherit; width: 100%; }
.tm-lat-linha.clicavel:hover { border-color: var(--accent); }
.tm-mini-av { display: flex; }
.tm-mini-av .av { width: 20px; height: 20px; border-width: 1.5px; margin-left: -5px; }
.tm-mini-av .av:first-child { margin-left: 0; }
.tm-rank-linha { display: grid; grid-template-columns: 22px auto 1fr auto; align-items: center; gap: 8px; padding: 4px 2px; font-size: 13px; }
.tm-rank-linha a { color: var(--texto); text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-rank-linha .pts { color: var(--mudo); font-size: 12px; }
.tm-mm-linha { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lb-mm-tag { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--borda); }
.lb-mm-tag.on { color: var(--ok); border-color: #135a35; } .lb-mm-tag.off { color: var(--aviso); border-color: #5c4513; }
.lb-mm-connect { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lb-mm-connect .lb-pre { margin: 0; padding: 6px 10px; font-size: 12.5px; flex: 1 1 100%; }
.tm-passos { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--mudo); font-size: 12px; margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--borda); border-radius: 10px; background: var(--painel); }
.tm-passos b { color: var(--accent-h); }

/* sala (o meu lobby) e partida */
.lb-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.lb-time { background: var(--painel); border: 1px solid var(--borda); border-radius: 12px; padding: 10px; display: grid; gap: 6px; align-content: start; }
.lb-time h3 { margin: 0; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.lb-time .cont { color: var(--mudo); font-size: 12px; font-weight: 400; }
.lb-jog { display: flex; align-items: center; gap: 8px; background: var(--campo); border: 1px solid var(--borda); border-radius: 9px; padding: 6px 9px; }
.lb-jog img { width: 26px; height: 26px; border-radius: 50%; background: #1a1233; }
.lb-jog .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-jog.eu { border-color: var(--accent); }
.lb-vaga { border: 1px dashed var(--borda); border-radius: 9px; padding: 6px 9px; color: var(--mudo); font-size: 13px; }
.lb-mini { background: none; border: 1px solid var(--borda); color: var(--mudo); border-radius: 7px; padding: 2px 7px; cursor: pointer; font: inherit; font-size: 12px; }
.lb-mini:hover { color: var(--erro); border-color: var(--erro); }
.lb-lista { display: grid; gap: 8px; }
.lb-card { background: var(--painel); border: 1px solid var(--borda); border-radius: 10px; padding: 10px; display: grid; gap: 4px; text-align: left; color: var(--texto); font: inherit; cursor: pointer; }
.lb-card:hover { border-color: var(--accent); }
.lb-card .nome { font-weight: 700; }
.lb-card .meta { color: var(--mudo); font-size: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.lb-mapas-veto { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.lb-mapa { background: var(--campo); border: 1px solid var(--borda); color: var(--texto); border-radius: 10px; padding: 14px 8px; font: inherit; font-weight: 700; cursor: pointer; display: grid; gap: 4px; text-align: center; }
.lb-mapa:hover:not(:disabled) { border-color: var(--erro); }
.lb-mapa:disabled { cursor: default; opacity: .75; }
.lb-mapa.banido { opacity: .4; text-decoration: line-through; }
.lb-mapa small { font-weight: 400; font-size: 11px; color: var(--mudo); text-decoration: none; }
.lb-campo { display: grid; gap: 4px; color: var(--mudo); font-size: 12.5px; border: 0; padding: 0; margin: 0; }
.lb-linha { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.lb-linha .lb-campo { flex: 1 1 150px; }
.lb-ac-link { margin-left: 8px; color: inherit; font-weight: 700; }
.lb-ac a { color: inherit; font-weight: 700; }

/* resumo da partida */
.lb-resumo { display: grid; gap: 12px; }
.lb-r-placar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; }
.lb-r-placar .tm { font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
.lb-r-placar .tm.venceu { color: var(--accent-h); }
.lb-r-placar .tm small { display: block; color: var(--mudo); font-weight: 600; font-size: 11px; letter-spacing: .08em; }
.lb-r-placar .pl { font-size: 1.9rem; font-weight: 800; letter-spacing: .04em; }
.lb-r-time { background: var(--campo); border: 1px solid var(--borda); border-radius: 10px; padding: 8px; overflow-x: auto; }
.lb-r-time h4 { margin: 0 0 6px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.lb-r-time h4 .tot { color: var(--mudo); font-weight: 400; font-size: 12px; }
.lb-r-tab { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 460px; }
.lb-r-tab th, .lb-r-tab td { padding: 5px 7px; text-align: right; white-space: nowrap; }
.lb-r-tab th:first-child, .lb-r-tab td:first-child { text-align: left; white-space: normal; overflow-wrap: anywhere; }
.lb-r-tab thead th { color: var(--mudo); font-weight: 600; font-size: 11px; border-bottom: 1px solid var(--borda); }
.lb-r-tab tbody tr + tr td { border-top: 1px solid #211838; }
.lb-r-tab tr.eu td:first-child { color: var(--accent-h); }
.lb-r-tab a { color: inherit; text-decoration: none; } .lb-r-tab a:hover { color: var(--accent-h); }
.lb-r-tab .mvp { margin-left: 6px; font-size: 10px; color: var(--accent-h); border: 1px solid var(--accent); border-radius: 6px; padding: 0 5px; }
.lb-r-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

@media (max-width: 980px) { .tm-layout { grid-template-columns: 1fr; } .tm-lateral { position: static; } }
@media (max-width: 720px) { .lb-times { grid-template-columns: 1fr; } .lb-r-placar { grid-template-columns: 1fr; } .lb-r-placar .pl { order: -1; } .lb-nav a { padding: 0 8px; font-size: 12px; } }
