.due-match-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.due-match-page__header {
  text-align: center;
  margin-bottom: 24px;
}

.due-match-page__league {
  color: var(--vv-muted, #888);
  font-size: .9em;
  margin: 0 0 4px;
}

/* Querformat/Desktop (Standard): Team – Ergebnis – Team nebeneinander. */
.due-match-page__matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.due-match-page__team-block {
  min-width: 0;
}

.due-match-page__team-name {
  font-family: 'Anton', sans-serif;
  font-size: 1.6em;
  line-height: 1.15;
}

.due-match-page__team-fine-links {
  font-size: 9px;
  color: var(--vv-muted, #888);
  margin-top: 2px;
}

.due-match-page__team-fine-links a {
  color: inherit;
}

.due-match-page__score {
  font-family: 'Anton', sans-serif;
  font-size: 1.6em;
  flex-shrink: 0;
  color: var(--vv-accent, #e05a1a);
}

/* Hochformat (Mobiltelefon): Team / Ergebnis / Team untereinander statt gequetscht
   nebeneinander — auf Landscape wird oben wieder die nebeneinander-Anordnung genutzt. */
@media (orientation: portrait) {
  .due-match-page__matchup {
    flex-direction: column;
    gap: 4px;
  }
}

.due-match-page__empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--vv-muted, #888);
}

.due-match-page__ctas {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.due-match-page__boxscore {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .due-match-page__boxscore {
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
  }
}

.due-match-page__boxscore-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95em;
  font-variant-numeric: tabular-nums;
}

.due-match-page__boxscore-table caption {
  text-align: left;
  font-weight: 700;
  font-size: 1.1em;
  margin-bottom: 8px;
}

.due-match-page__boxscore-table th,
.due-match-page__boxscore-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.due-match-page__boxscore-table th:not(:first-child),
.due-match-page__boxscore-table td:not(:first-child) {
  text-align: right;
}

.due-match-page__boxscore-table thead th {
  font-size: .75em;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--vv-muted, #888);
  border-bottom: 2px solid rgba(0, 0, 0, .15);
  white-space: nowrap;
}

.due-match-page__boxscore-table th.due-bs-nr,
.due-match-page__boxscore-table td.due-bs-nr {
  width: 2.5em;
  color: var(--vv-muted, #888);
}

/* Namensspalte immer linksbündig; auf Desktop zusätzlich einzeilig (sonst bricht
   "Marzok El Hadi, I" um und die Zeilen werden hoch). Mobil bleibt Umbruch erlaubt. */
.due-match-page__boxscore-table th.due-bs-name,
.due-match-page__boxscore-table td.due-bs-name {
  text-align: left;
}

@media (min-width: 640px) {
  .due-match-page__boxscore-table th.due-bs-name,
  .due-match-page__boxscore-table td.due-bs-name {
    white-space: nowrap;
    width: 46%;
  }
}

.due-match-page__boxscore-table td:nth-child(n+3) { font-weight: 400; }

/* Punkte (erste Zahlenspalte) hervorheben. */
.due-match-page__boxscore-table td.due-bs-name + td {
  font-weight: 700;
}

.due-match-page__boxscore-table tbody tr:hover {
  background: rgba(0, 0, 0, .03);
}

/* Auf der breiteren Desktop-Seite bleibt der Fließtext des Berichts gut lesbar. */
.due-match-page__report {
  margin-top: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.due-match-page__report h2 {
  font-size: 1.1em;
}

.due-match-page__report-subhead {
  font-weight: 600;
  font-size: 1.05em;
  line-height: 1.5;
  margin-bottom: 16px;
}

.due-match-page__report p {
  line-height: 1.6;
  margin: 0 0 12px;
}

/* ── Login-Teaser für nicht eingeloggte Besucher ─────────────────────── */

.due-match-teaser--blurred {
  position: relative;
}

.due-match-teaser--blurred > *:not(.due-match-teaser__prompt) {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.due-match-teaser__prompt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.due-match-teaser__prompt p {
  background: var(--vv-bg, #fff);
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

/* ── Kommentare der Vereine unter dem KI-Bericht ─────────────────────── */

.due-match-page__comments {
  max-width: 720px;
  margin: 24px auto 0;
}

.due-match-page__comment {
  border-left: 3px solid var(--vv-accent, #e05a1a);
  padding: 4px 0 4px 14px;
  margin: 0 0 16px;
}

.due-match-page__comment-author {
  font-size: .8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--vv-muted, #888);
  margin-bottom: 4px;
}

.due-match-page__comment p {
  margin: 0 0 8px;
  line-height: 1.6;
}

.due-match-page__comment-form {
  margin-top: 20px;
}

.due-match-page__comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.due-match-page__comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.due-match-page__comment-msg {
  margin-left: 10px;
  color: var(--vv-muted, #888);
}

.due-match-page__report .due-match-page__report-ai-note {
  font-size: .8em;
  color: var(--vv-muted, #888);
  margin-top: 16px;
}

/* ── Titelbild im Seitenkopf ─────────────────────────────────────────── */

.due-match-page__header--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 20px 20px;
  color: #fff;
}

.due-match-page__header--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, 0) 100%);
}

.due-match-page__header--photo > * { position: relative; }

.due-match-page__header--photo .due-match-page__league,
.due-match-page__header--photo .due-match-page__team-name,
.due-match-page__header--photo .due-match-page__team-fine-links,
.due-match-page__header--photo .due-match-page__team-fine-links a { color: #fff; }

/* ── Galerie ─────────────────────────────────────────────────────────── */

.due-match-page__photos {
  margin-top: 32px;
}

.due-match-page__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.due-match-page__photo { margin: 0; }

.due-match-page__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.due-match-page__photo figcaption {
  font-size: .8em;
  color: var(--vv-muted, #888);
  margin-top: 4px;
}

.due-match-page__report-photo {
  margin: 0 0 16px;
}

.due-match-page__report-photo img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.due-match-page__report-photo-credit {
  font-size: .8em;
  color: var(--vv-muted, #888);
  margin-top: 6px;
  text-align: right;
}

.due-match-page__photo-actions button {
  background: none;
  border: 0;
  padding: 0 0 0 8px;
  font-size: 1em;
  color: var(--vv-accent, #e05a1a);
  cursor: pointer;
  text-decoration: underline;
}

.due-match-page__photo-form {
  max-width: 720px;
  border: 1px dashed rgba(0, 0, 0, .25);
  border-radius: 12px;
  padding: 16px;
}

.due-match-page__photo-form > label { display: block; font-weight: 600; margin-bottom: 8px; }
.due-match-page__photo-rights { display: block; font-size: .9em; margin: 10px 0; }
.due-match-page__photo-hint { font-size: .8em; color: var(--vv-muted, #888); margin: 10px 0 0; }
.due-match-page__photo-msg { margin-left: 10px; color: var(--vv-muted, #888); }

.due-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, .9);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.due-lightbox img { max-width: 94vw; max-height: 92vh; }

/* Melden */
.due-report { margin-top: 32px; font-size: .85em; color: var(--vv-muted, #888); }
.due-report summary { cursor: pointer; display: inline-block; text-decoration: underline; }
.due-report__form { display: grid; gap: 10px; max-width: 480px; margin-top: 12px; position: relative; }
.due-report__form label { display: grid; gap: 4px; }
.due-report__form textarea, .due-report__form select, .due-report__form input[type=email] { width: 100%; font: inherit; }
.due-report-photo { background: none; border: 0; padding: 0 0 0 8px; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; font-size: .9em; }

.due-match-page__score--upcoming { font-size: 1.1em; opacity: .85; }

.due-match-page__venue { margin: 10px 0 0; font-size: .95em; opacity: .8; text-align: center; }
.due-match-page__venue--changed { font-weight: 600; opacity: 1; }
