/* OBS Browser Source: 1280×200 recommended, transparent background */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: transparent;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
  font-size: 13px;
}

#overlay {
  background: linear-gradient(135deg, rgba(10, 10, 20, 0.92) 0%, rgba(20, 20, 40, 0.92) 100%);
  border: 1px solid rgba(120, 80, 255, 0.4);
  border-radius: 6px;
  overflow: hidden;
  min-width: 420px;
}

/* ---- Header ---- */
.overlay-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(120, 80, 255, 0.25);
  border-bottom: 1px solid rgba(120, 80, 255, 0.3);
}

.brand {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2px;
  color: #a97fff;
  text-transform: uppercase;
}

.label {
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

/* ---- Table ---- */
#standings-table {
  width: 100%;
  border-collapse: collapse;
}

#standings-table thead th {
  padding: 4px 10px;
  text-align: left;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#standings-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

#standings-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

#standings-table tbody td {
  padding: 5px 10px;
  white-space: nowrap;
}

.col-rank  { width: 28px; color: rgba(255,255,255,0.4); text-align: center; }
.col-team  { font-weight: 600; }
.col-pts   { width: 50px; font-weight: 700; color: #a97fff; text-align: right; }
.col-kills { width: 50px; color: rgba(255,255,255,0.7); text-align: right; }
.col-place { width: 54px; color: rgba(255,255,255,0.5); text-align: right; }

/* Top-3 highlight */
tr[data-rank="1"] .col-team { color: #ffd700; }
tr[data-rank="2"] .col-team { color: #c0c0c0; }
tr[data-rank="3"] .col-team { color: #cd7f32; }

/* Flash animation on update */
@keyframes row-flash {
  0%   { background: rgba(120, 80, 255, 0.3); }
  100% { background: transparent; }
}
.row-updated {
  animation: row-flash 0.8s ease-out;
}

.placeholder td {
  text-align: center;
  color: rgba(255,255,255,0.3);
  padding: 12px;
  font-style: italic;
}

/* ---- Footer ---- */
.overlay-footer {
  display: flex;
  justify-content: space-between;
  padding: 3px 10px;
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.06);
}
