:root {
  --green: #006941;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --head: #e6e6e6;
  --stripe: #f5f5f5;
  --line: #e4e4e4;
  --error: #a32020;
  --max: 880px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 0 48px;
  background: #ffffff;
  color: var(--ink);
  font: 15px/1.5 "Droid Sans", Arial, Helvetica, sans-serif;
}

a { color: var(--green); }
a:hover { text-decoration: underline; }

#app { max-width: var(--max); margin: 0 auto; padding: 0; }
footer { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.loading { padding: 32px 0 0 16px; color: var(--muted); }

/* header / section title bars — same look as vvz49.nl's green title bars */
.team-header { margin: 0 0 4px; }
.bar {
  background: var(--green);
  color: #fff;
  margin: 0;
  padding: 11px 16px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}
.team-header h1.bar { text-align: center; }
.subtitle {
  margin: 8px 0 0;
  padding: 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.backlink { margin: 14px 0 0; padding: 0 16px; font-size: 14px; }

/* sections */
.card { margin: 0 0 28px; }

/* poulestand per fase (1e fase, 2e fase, ...) */
.poule-fase { margin: 0 0 20px; }
.poule-fase:last-child { margin-bottom: 0; }
.poule-fase-titel {
  margin: 0 0 4px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
  text-align: left;
  padding: 8px 16px;
  white-space: nowrap;
}
th {
  background: var(--head);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
th:empty { width: 1%; }
tbody tr:nth-child(odd) td { background: #ffffff; }
tbody tr:nth-child(even) td { background: var(--stripe); }

.empty, .privacy, .note { color: var(--muted); margin: 10px 0 0; padding: 0 16px; font-size: 13px; }
.error { color: var(--error); margin: 0; padding: 0 16px; }

/* club-/team-logo's in Programma, Uitslagen en Poulestanden — elk in hun
   eigen (blanco-header) kolom, net als op de referentiepagina. */
.team-logo, .team-logo-empty {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  object-fit: contain;
  flex: none;
}
td:has(> .team-logo), td:has(> .team-logo-empty) { text-align: center; }
.wedstrijd-text { display: block; text-align: center; white-space: normal; }

/* teamfoto / "nog geen foto" leegstand — direct onder de teamtitel */
.team-photo { margin: 0 0 24px; line-height: 0; }
.team-photo img { width: 100%; height: auto; display: block; }
.team-photo-placeholder {
  position: relative;
  margin: 0 0 24px;
  padding: 40px 16px 32px;
  min-height: 220px;
  background: #fff;
  text-align: center;
  overflow: hidden;
}
.placeholder-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-bg img { width: 55%; max-width: 420px; height: auto; }
.placeholder-content { position: relative; z-index: 1; }
.placeholder-logo { width: 100px; height: auto; margin: 0 auto 14px; display: block; }
.placeholder-team { margin: 0; font-size: 22px; font-weight: 700; color: #d9720f; }
.placeholder-msg { margin: 10px auto 0; max-width: 420px; color: #324f73; font-size: 14px; }

/* Countdown + Stats naast elkaar */
.countdown-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 0 28px;
}
@media (max-width: 620px) {
  .countdown-stats { grid-template-columns: 1fr; }
}
.cs-col .bar { margin-bottom: 0; }
.box {
  border: 1px solid #d4d4d4;
  border-top: none;
  padding: 18px 16px;
  background: #fff;
}

/* Countdown-kaart */
.cd-heading { margin: 0; text-align: center; font-size: 1.15rem; font-weight: 700; }
.cd-soort { margin: 2px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.cd-teams {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 16px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line);
  font-weight: 700; text-align: center;
}
.cd-vs { color: var(--muted); font-weight: 400; font-size: 13px; }
.cd-logos {
  display: flex; justify-content: space-around; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
}
.cd-logos .team-logo, .cd-logos .team-logo-empty { width: 56px; height: 56px; }
.cd-meta {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.cd-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.icon { display: inline-flex; }
.cd-meta-item .icon { color: var(--green); }
.cd-timer { display: flex; justify-content: space-around; padding-top: 16px; }
.cd-timer-cell { text-align: center; }
.cd-timer-num { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cd-timer-label { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Stats-kaart */
.stats-team { margin: 0; text-align: center; font-weight: 700; font-size: 1.1rem; }
.stats-sub { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.stat-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--line); margin-top: 14px;
}
.stat-icon {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid currentColor;
}
.stat-icon-green { color: #2fae4e; }
.stat-icon-red { color: #d3352a; }
.stat-icon-dark { color: #1a1a1a; }
.stat-text { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 13px; }

/* team list */
.teamlist { list-style: none; margin: 0; padding: 12px 16px; }
.teamlist li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.teamlist li:last-child { border-bottom: none; }
.teamlist .meta { color: var(--muted); font-size: 13px; }

footer {
  color: var(--muted);
  font-size: 12px;
  padding-top: 8px;
}
