@font-face { font-family: Gabarito; src: url(/gabarito.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
:root {
  --bg: #08080a; --bg2: #101014; --card: #131318; --line: #24242c; --line2: #33333d;
  --tx: #ececf1; --tx2: #a0a0ab; --tx3: #6a6a76;
  --onair: #ff3b30; --onair-glow: rgba(255, 59, 48, .45); --ok: #4ade80; --warn: #fbbf24; --acc: #e8ff5a;
  --r: 14px; --sans: Gabarito, system-ui, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; }
html, body { background: var(--bg); color: var(--tx); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.topo { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px); background: rgba(8, 8, 10, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; letter-spacing: .02em; }
.marca b { font-weight: 800; font-size: 17px; }
#nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
main { max-width: 1080px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 40px) 96px; }

/* A assinatura: a plaquinha ON AIR que acende quando há live no ar */
.onair { font: 700 10px/1 var(--mono); letter-spacing: .18em; padding: 6px 8px; border-radius: 5px;
  border: 1px solid #3a2020; color: #5a3030; background: #160c0c; transition: all .5s ease; }
.onair.aceso, body.aovivo .marca .onair { color: #fff; background: var(--onair); border-color: var(--onair);
  box-shadow: 0 0 18px var(--onair-glow), 0 0 2px #fff inset; animation: pulso 2.4s ease-in-out infinite; }
@keyframes pulso { 50% { box-shadow: 0 0 30px var(--onair-glow), 0 0 2px #fff inset; } }
@media (prefers-reduced-motion: reduce) { .onair { animation: none !important; transition: none; } }

h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.02; letter-spacing: -.02em; font-weight: 800; margin-bottom: 8px; }
h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.sub { color: var(--tx2); max-width: 640px; margin-bottom: 32px; }
.dica { color: var(--tx3); font-size: 13px; margin-top: 6px; }
.erro { color: var(--onair); font-size: 14px; min-height: 20px; margin-top: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line2); background: var(--bg2); cursor: pointer; font-weight: 600; text-decoration: none; }
.btn:hover { border-color: var(--tx3); }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.btn.prim { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.btn.vivo { background: var(--onair); border-color: var(--onair); color: #fff; }
.btn.fino { padding: 6px 10px; font-size: 13px; }
.btn.perigo { color: var(--onair); }
.btn:disabled { opacity: .5; cursor: progress; }

.cartao { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.form { max-width: 440px; display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--tx2); font-weight: 600; }
input, select { background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 11px 12px; font-size: 15px; width: 100%; }
.linha { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.entre { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.grade { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.stream { display: grid; gap: 14px; text-decoration: none; transition: border-color .2s; }
.stream:hover { border-color: var(--line2); }
.stream h3 { font-size: 18px; }
.estado { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tx3); }
.estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tx3); }
.estado.aovivo { color: var(--onair); } .estado.aovivo::before { background: var(--onair); box-shadow: 0 0 10px var(--onair-glow); }
.estado.iniciando { color: var(--warn); } .estado.iniciando::before { background: var(--warn); }
.mono { font-family: var(--mono); font-size: 13px; color: var(--tx2); }
.vazio { border: 1px dashed var(--line2); border-radius: var(--r); padding: 40px 24px; text-align: center; color: var(--tx2); }

.duas { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .duas { grid-template-columns: 1fr; } }
.lista { list-style: none; padding: 0; display: grid; gap: 6px; }
.item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }
.item .nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item[draggable="true"] { cursor: grab; } .item.arrastando { opacity: .4; } .item.alvo { border-color: var(--acc); }
.alca { color: var(--tx3); font-family: var(--mono); user-select: none; }
.pill { font: 600 11px var(--mono); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line2); color: var(--tx2); }
.pill.pronto { color: var(--ok); border-color: #1f3b2a; } .pill.erro { color: var(--onair); border-color: #3b1f1f; }
.pill.processando, .pill.enviando { color: var(--warn); border-color: #3b331f; }
.barra { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.barra i { display: block; height: 100%; background: var(--acc); width: 0; transition: width .3s; }
.chave { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.chave:last-child { border-bottom: 0; }
.chave input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--acc); }
.local { display: inline-flex; align-items: center; gap: 6px; }
.regras li { margin: 6px 0 6px 18px; color: var(--tx2); }

/* Gestão (admin) */
.abas { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); flex-wrap: wrap; }
.abas a { padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--tx2); }
.abas a.ativa { background: var(--tx); color: var(--bg); }
.numeros { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 22px 0; }
.numeros div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 2px; }
.numeros strong { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.numeros span { color: var(--tx3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.rolagem { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg2); white-space: nowrap; }
.tabela td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela small { color: var(--tx3); }
.tabela tr.apagada td { opacity: .55; }
input.curto { width: 84px; padding: 7px 9px; font-size: 14px; }
.registro { list-style: none; padding: 0; display: grid; gap: 8px; max-height: 70vh; overflow: auto; overflow-wrap: anywhere; }
.aviso { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 20; background: var(--tx); color: var(--bg); font-weight: 600; padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.segredo { font-size: 18px; letter-spacing: .08em; color: var(--tx); padding: 12px; border: 1px dashed var(--line2); border-radius: 10px; text-align: center; }
[hidden] { display: none !important; }

/* tela de espera */
.espera { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.espera h3 { font-size: 16px; }
.modelos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.modelo { display: grid; gap: 6px; padding: 6px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg2); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--tx2); text-align: center; }
.modelo img { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 8px; display: block; background: #000; }
.modelo.escolhido { border-color: var(--acc); color: var(--tx); box-shadow: 0 0 0 1px var(--acc) inset; }

/* arrastar e soltar vídeos */
body.soltando .zona-soltar { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc) inset, 0 0 40px rgba(232, 255, 90, .12); }
body.soltando .zona-soltar::after { content: attr(data-soltar); display: block; margin-top: 12px; padding: 18px; border: 1px dashed var(--acc); border-radius: 10px; text-align: center; color: var(--acc); font-weight: 700; }

/* envios em andamento */
.envios { display: grid; gap: 8px; margin: 12px 0; }
.envios:empty { display: none; }
.envio { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }
.envio .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.envio .mono { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.envio .barra { grid-column: 1 / -1; margin-top: 0; }
.envio .erro-envio { color: var(--onair); white-space: normal; }
@media (max-width: 560px) { .envio { grid-template-columns: 1fr; } }
.lista { grid-template-columns: minmax(0, 1fr); }
.lista > * { min-width: 0; }
