:root {
  /* Paleta EsportePhotos: vermelho / branco / preto */
  --red: #DB0606;
  --red-2: #ff1a1a;   /* vermelho mais vivo p/ estados ativos */
  --brand: #DB0606;   /* cor de marca (accent) */
  --bg: #000000;
  --panel: #0e0e0e;
  --panel-2: #171717;
  --line: #2a2a2a;
  --text: #ffffff;
  --muted: #b0b0b0;
  --green: #16a34a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .oswald, .num {
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  letter-spacing: .5px;
}

a { color: var(--brand); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 12px;
}

.tag {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 6px;
}

/* ===== Barra superior com relogio ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: linear-gradient(180deg, #141414, #000);
  border-bottom: 2px solid var(--brand);
  position: relative;
}
.topbar .brand {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--brand);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-logo {
  height: 34px;
  width: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #fff;
}
.brand-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .clock {
  font-family: "Oswald", sans-serif;
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* ===== Tarja inferior ===== */
.footerbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #000;
  border-top: 2px solid var(--brand);
  color: #fff;
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px;
  font-size: 15px;
  z-index: 50;
}
.footerbar b { color: var(--brand); }

.conn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.conn::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--muted);
  flex: 0 0 auto;
}
.conn.ok::before { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.conn.off::before { background: var(--red); box-shadow: 0 0 8px var(--red); animation: connBlink 1s steps(2, start) infinite; }
@keyframes connBlink { 50% { opacity: .35; } }
