:root { --bg:#0d1320; --panel:#162033; --text:#dde2f5; --muted:#8a94b0; --accent:#4cd7f6; --danger:#ff6b6b; --line:#26324a; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.4 system-ui, sans-serif; }
#map { position: absolute; inset: 0; }
.painel { position: absolute; z-index: 1000; top: 12px; left: 12px; width: min(340px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 8px 30px #0008; }
.painel h1 { font-size: 16px; margin: 0 0 8px; }
.painel h2 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 6px; }
.painel p { margin: 4px 0; color: var(--muted); font-size: 13px; }
input, textarea { width: 100%; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
button { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; cursor: pointer; margin: 4px 4px 0 0; }
button.principal { background: var(--accent); color: #002; border-color: var(--accent); font-weight: 600; }
button.perigo { color: var(--danger); }
.link { display: flex; gap: 6px; } .link input { font-size: 12px; }
.ao-vivo { display: inline-block; padding: 2px 8px; border-radius: 99px; background: #ff3b3b; color: #fff; font-size: 12px; font-weight: 700; }
.legenda { position: absolute; z-index: 1000; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: calc(100% - 24px); background: #000c; padding: 10px 16px; border-radius: 10px; font-size: 18px; text-align: center; }
.legenda:empty { display: none; }
.opcao { display: block; width: 100%; text-align: left; } .opcao small { float: right; color: var(--muted); }
#tela { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
body.overlay, body.overlay #map { background: transparent; }
body.overlay .painel { width: 420px; top: auto; bottom: 12px; }
