.ng-scoreboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  width: 100%;
  max-width: 750px;
  background-color: #fff;
}
.ng-scoreboard-label {
  width: 100%;
  text-align: center;
}
.ng-scoreboard-items {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
}
.ng-scoreboard-items-item {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  font-weight: 600;
}
.ng-scoreboard-items-item-teamlogo {
  width: 100%;
  max-width: 30px;
}
.ng-scoreboard-items-item-vs {
  text-align: center;
}
.ng-scoreboard .hometeam {
  justify-content: end;
}
.ng-scoreboard .guestteam {
  justify-content: start;
}

.oldb-matches,
.oldb-team {
  padding: 12px;
  margin: 12px 0;
  background: #fff;
  /* Responsive Teams: 
     - Mobile (default): jede Info untereinander (Team1, vs, Team2)
     - >=640px: in einer Zeile (Team1 | vs | Team2)
  */
  /* Breakpoint ab 640px: dreispaltiges Grid (Team1 | vs | Team2) */
}
.oldb-matches .oldb-item,
.oldb-team .oldb-item {
  padding: 10px 0;
  border-top: 1px dashed #ddd;
}
.oldb-matches .oldb-item:first-child,
.oldb-team .oldb-item:first-child {
  border-top: none;
}
.oldb-matches .oldb-label,
.oldb-team .oldb-label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #666;
  text-align: center;
}
.oldb-matches .oldb-teams,
.oldb-team .oldb-teams {
  width: 100%;
  max-width: 750px;
}
.oldb-matches .oldb-teams.oldb-teams--responsive,
.oldb-team .oldb-teams.oldb-teams--responsive {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 750px;
}
.oldb-matches .oldb-teams .oldb-team,
.oldb-team .oldb-teams .oldb-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.oldb-matches .oldb-teams .oldb-team .oldb-teamlogo,
.oldb-team .oldb-teams .oldb-team .oldb-teamlogo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 3px;
  background: #fff;
}
.oldb-matches .oldb-teams .oldb-team .oldb-teamname,
.oldb-team .oldb-teams .oldb-team .oldb-teamname {
  line-height: 1;
  font-weight: 600;
}
.oldb-matches .oldb-teams .oldb-team .oldb-score,
.oldb-team .oldb-teams .oldb-team .oldb-score {
  display: inline-block;
  min-width: 24px;
  padding: 2px 6px;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.2;
  background: #f9fafb;
}
.oldb-matches .oldb-teams .oldb-vs,
.oldb-team .oldb-teams .oldb-vs {
  display: inline-block;
  padding: 0 6px;
  font-weight: 400;
  color: #666;
  text-align: center;
}
@media (min-width: 640px) {
  .oldb-matches .oldb-teams.oldb-teams--responsive,
  .oldb-team .oldb-teams.oldb-teams--responsive {
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
  }
  .oldb-matches .oldb-teams.oldb-teams--responsive .oldb-team--home,
  .oldb-team .oldb-teams.oldb-teams--responsive .oldb-team--home {
    justify-self: end;
  }
  .oldb-matches .oldb-teams.oldb-teams--responsive .oldb-vs,
  .oldb-team .oldb-teams.oldb-teams--responsive .oldb-vs {
    justify-self: center;
  }
  .oldb-matches .oldb-teams.oldb-teams--responsive .oldb-team--away,
  .oldb-team .oldb-teams.oldb-teams--responsive .oldb-team--away {
    justify-self: start;
  }
}
.oldb-matches .oldb-datetime,
.oldb-team .oldb-datetime {
  margin-top: 4px;
  font-size: 0.95rem;
  color: #666;
}
.oldb-matches .oldb-result,
.oldb-team .oldb-result {
  margin-top: 6px;
}
.oldb-matches .oldb-result__badge,
.oldb-team .oldb-result__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 6px;
  border: 1px solid #ddd;
  border-radius: 999px;
  margin-right: 8px;
  color: #666;
}
.oldb-matches .oldb-result__score,
.oldb-team .oldb-result__score {
  font-size: 1.1rem;
  font-weight: 700;
}
.oldb-matches .oldb-live,
.oldb-team .oldb-live {
  margin-top: 6px;
  font-weight: 700;
  color: #0057ff;
}
.oldb-matches .oldb-status,
.oldb-team .oldb-status {
  margin-top: 6px;
  color: #666;
}
.oldb-matches .oldb-following,
.oldb-team .oldb-following {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dotted #ddd;
}
.oldb-matches .oldb-debug,
.oldb-team .oldb-debug {
  margin-top: 10px;
}
.oldb-matches .oldb-debug summary,
.oldb-team .oldb-debug summary {
  cursor: pointer;
  color: #666;
}
.oldb-matches .oldb-debug pre,
.oldb-team .oldb-debug pre {
  padding: 8px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: auto;
}
.oldb-matches .oldb-empty,
.oldb-matches .oldb-error,
.oldb-team .oldb-empty,
.oldb-team .oldb-error {
  color: #666;
}
