/* ── Fonts ─────────────────────────────────────── */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #000;
  color: #ccc;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
}

/* ── Splashscreen ──────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #000;
  opacity: 1;
  transition: opacity 0.5s ease;
}
#splash-title {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 0.02em;
}
#splash-subtitle {
  color: #999;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
#splash-page-title {
  color: #63C1FF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ── Nav ───────────────────────────────────────── */
#topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #111;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

/* Scoped to the burger-menu header shape (only present once .nav-page-title
   exists), so this doesn't affect auslosung/index.html's shorter, unmigrated
   3-child header, which never gets a .nav-page-title. */
#topnav:has(.nav-page-title) {
  align-items: flex-start;
  padding-bottom: 26px;
}

.nav-toggle {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ccc;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle-bar:nth-child(1) { top: 0; }
.nav-toggle-bar:nth-child(2) { top: 8px; }
.nav-toggle-bar:nth-child(3) { top: 16px; }

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { top: 8px; transform: rotate(-45deg); }

.nav-brand {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

/* Scoped to the burger-menu header shape (brand follows the toggle button)
   so this doesn't affect auslosung/index.html's unmigrated 3-child header,
   which also uses .nav-brand but keeps it in normal flex flow. */
.nav-toggle + .nav-brand {
  position: absolute;
  left: 48px;
  transform: translateX(0);
  transition: left 0.2s ease, transform 0.2s ease;
}
body.nav-open .nav-toggle + .nav-brand {
  left: 50%;
  transform: translateX(-50%);
}

.nav-page-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  color: #888;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease;
}
body.nav-open .nav-page-title {
  opacity: 0;
  pointer-events: none;
}

.nav-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 99;
  display: flex;
  flex-direction: column;
  background: #111;
  border-bottom: 1px solid #222;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
/* Same [hidden]-vs-author-display cascade fix as .auslosung-actions[hidden]
   below: without this, display:flex above wins over the UA [hidden] rule,
   leaving the closed panel's links keyboard-focusable and tabbable. */
.nav-panel[hidden] {
  display: none;
}
.nav-panel.is-open {
  max-height: 420px;
  opacity: 1;
}

.nav-panel-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: #eee;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #1c1c1c;
}
.nav-panel-link:last-of-type { border-bottom: none; }
.nav-panel-link:active { background: #1a1a1a; }

/* ── Sections ──────────────────────────────────── */
main { max-width: 680px; margin: 0 auto; padding: 0 16px 60px; }

section {
  padding: 24px 0;
  border-bottom: 1px solid #1a1a1a;
  scroll-margin-top: 52px;
}

section:last-child { border-bottom: none; }

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.section-bar {
  width: 3px;
  height: 18px;
  background: #63C1FF;
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

/* Top-level section headers (Tabelle / Pokal / CL) */
section > .section-header {
  background: rgba(99, 193, 255, 0.18);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 -12px 16px;
}

section > .section-header .section-bar {
  height: 22px;
}

section > .section-header .section-title {
  font-size: 20px;
  letter-spacing: 0.2px;
}

.section-description {
  color: #aaa;
  font-size: 13px;
  margin: 6px 0 12px;
  line-height: 1.5;
}

/* ── Gap Controls ──────────────────────────────── */
.gap-controls {
  margin-bottom: 12px;
  font-size: 14px;
  color: #888;
}

.gap-toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.gap-toggle-label input { cursor: pointer; }

.gap-size-wrapper {
  margin-top: 8px;
  padding-left: 20px;
}

.gap-size-wrapper select {
  background: #1e1e1e;
  border: 1px solid #333;
  color: #ccc;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: inherit;
  margin-left: 6px;
}

.hidden { display: none; }

/* ── WhatsApp Admin Export ─────────────────────── */
.wa-copy-btn {
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}
.wa-copy-btn:hover { background: rgba(255,255,255,0.16); }

.wa-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e1e1e;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 200;
}
.wa-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.wa-action-row {
  text-align: right;
  margin-top: 6px;
}

.league-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.league-header .league-name { margin-bottom: 0; }

.cl-leg-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Tabelle ───────────────────────────────────── */
.league-block { margin-bottom: 20px; }

.league-name {
  color: #63C1FF;
  font-size: 14px;
  font-style: italic;
  margin-bottom: 8px;
}

/* Spieltagssieger-Banner */
.td-winner {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  background: linear-gradient(135deg, #1a1500, #241f00);
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 10px;
  padding: 10px 13px;
  margin-bottom: 12px;
}
.td-winner-ico { font-size: 18px; line-height: 1; text-align: center; }
.td-winner-txt { min-width: 0; }
.td-winner-label {
  display: block;
  color: #FFD700;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.td-winner-name {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.td-winner-pts { color: #FFD700; font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }

.td-card {
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
}

.td-colhead,
.td-row {
  display: grid;
  grid-template-columns: 3px 20px 15px 1fr 40px 44px 12px;
  gap: 8px;
  align-items: center;
}

.td-colhead {
  padding: 7px 12px;
  background: #161616;
  border-bottom: 1px solid #2a2a2a;
  color: #5a5a5a;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.td-colhead .r { text-align: right; }

.td-entry { border-bottom: 1px solid #262626; }
.td-entry:last-child { border-bottom: none; }

.td-row {
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.td-row:hover { background: #262626; }
.td-row:focus-visible { outline: 2px solid #63C1FF; outline-offset: -2px; }

.td-accent { width: 3px; height: 18px; border-radius: 2px; background: transparent; }
.td-row--cl .td-accent { background: #63C1FF; }
.td-row--last .td-accent { background: #C0201C; }
.td-row--last { background: rgba(192, 32, 28, 0.07); }

.td-pos {
  color: #888;
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.td-row--cl .td-pos { color: #cfe9ff; }

.td-trend { width: 15px; height: 15px; }

.td-name-cell { display: flex; align-items: center; gap: 5px; min-width: 0; }
.td-name {
  color: #e9e9e9;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.td-row--cl .td-name { color: #fff; }
.row-badge { font-size: 12px; margin-left: 1px; flex-shrink: 0; }

.td-delta {
  justify-self: end;
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 1.5px 5px;
  border-radius: 4px;
  background: rgba(19, 143, 22, 0.16);
  color: #4fc752;
}
.td-delta--low { background: rgba(255, 255, 255, 0.06); color: #999; }

.td-pts {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.td-caret {
  width: 10px;
  height: 10px;
  color: #666;
  transition: transform 0.18s ease;
}
.td-entry--open .td-caret { transform: rotate(90deg); }

.td-detail { background: #171717; padding: 3px 12px 9px 46px; }
.td-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid #232323;
  font-size: 11px;
}
.td-detail-row:last-child { border-bottom: none; }
.td-detail-row span { color: #888; }
.td-detail-row b { color: #eee; font-weight: 600; font-variant-numeric: tabular-nums; }
.td-detail-row--lead b { color: #63C1FF; }

/* Virtuelle Abstandsdarstellung: Leerraum ∝ Punkteabstand */
.td-gap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  background: #1b1b1b;
}
.td-gap::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 50px;
  top: 50%;
  border-top: 1px dashed #333;
}
.td-gap-num {
  position: relative;
  background: #1b1b1b;
  padding-left: 5px;
  color: #555;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.td-legend {
  margin-top: 10px;
  display: flex;
  gap: 16px;
  color: #666;
  font-size: 10.5px;
}
.td-legend span { display: flex; align-items: center; gap: 5px; }
.td-legend-dot { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }

/* ── Placeholder ───────────────────────────────── */
.placeholder {
  background: #1e1e1e;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  color: #555;
  font-size: 14px;
  font-style: italic;
}

/* ── Loading / Error ───────────────────────────── */
.loading {
  color: #555;
  font-size: 14px;
  padding: 10px 0;
}

.error-msg {
  color: #D75452;
  font-size: 14px;
  padding: 10px 0;
}

/* ── Pokal ─────────────────────────────────────── */
.cup-round {
  margin-bottom: 24px;
}

.cup-match {
  background: #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.cup-match--open {
  padding: 12px 10px;
}

.cup-match-header {
  padding: 3px 10px;
  color: #444;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #161616;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cup-match-open-label {
  color: #444;
  font-size: 14px;
  font-style: italic;
}

.cup-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid #2a2a2a;
}

.cup-team:last-child { border-bottom: none; }

.cup-team-name {
  font-size: 14px;
  color: #ccc;
}

.cup-team--winner .cup-team-name { color: #fff; font-weight: 700; }
.cup-team--loser  .cup-team-name { color: #555; }

/* Klickbare Team-Zeile (Aufstellung aufklappen) – wie in der LIVE-Tabelle. */
.cup-team--expandable { cursor: pointer; }
.cup-team--expandable:hover { background: #262626; }
.cup-team--expandable:focus-visible { outline: 2px solid #C0201C; outline-offset: -2px; }
.cup-caret { color: #666; font-size: 9px; margin-left: 5px; }

.cup-score {
  font-size: 14px;
  font-weight: 700;
  min-width: 20px;
  text-align: right;
}

.cup-score--winner {
  background: #138F16;
  color: #fff;
  padding: 1px 7px;
  border-radius: 3px;
}

.cup-score--loser   { color: #fff; padding: 1px 7px; }
.cup-score--draw    { color: #888; padding: 1px 7px; }
.cup-score--pending { color: #555; padding: 1px 7px; }
/* Live-Zwischenstand: neutral, kein Sieger/Verlierer-Farbcode. */
.cup-score--live    { color: #ccc; padding: 1px 7px; }

/* Kurzer Farbblitz bei Punkteänderung seit dem letzten Reload — grün bei
   Zuwachs, rot bei Rückgang. Auf .live-points (Tabelle) und .cup-score
   (Pokal/CL-Karten) gleichermaßen einsetzbar. */
@keyframes live-flash-up {
  0%   { background: rgba(19, 143, 22, 0.85); color: #fff; }
  100% { background: transparent; }
}
@keyframes live-flash-down {
  0%   { background: rgba(192, 32, 28, 0.85); color: #fff; }
  100% { background: transparent; }
}
.live-flash-up   { animation: live-flash-up 1.6s ease-out; border-radius: 4px; }
.live-flash-down { animation: live-flash-down 1.6s ease-out; border-radius: 4px; }

/* ── Champions League ──────────────────────────── */
.cl-group { margin-bottom: 28px; }

/* Gruppenphase Tabelle */
.cl-table {
  background: #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
  font-size: 14px;
}

.cl-table-row {
  display: grid;
  grid-template-columns: 1fr 28px 24px 24px 24px 44px 36px 28px;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #2a2a2a;
}

.cl-table-row:last-child { border-bottom: none; }

.cl-table-header { background: #161616; }
.cl-table-header span { color: #666; font-size: 11px; text-transform: uppercase; }

.cl-table-name { color: #ccc; }
.cl-table-qualified { color: #63C1FF; font-weight: 700; }
.cl-table-out { color: #555; }

.cl-table-cell { color: #888; text-align: center; font-size: 12px; }
.cl-table-pkt  { color: #fff; font-weight: 700; text-align: center; }

/* Gruppenphase Spielliste */
.cl-match-details { margin-top: 8px; }

.cl-match-list-label {
  color: #555;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cl-match-list-label::-webkit-details-marker { display: none; }

.cl-match-list-label::before {
  content: '›';
  font-size: 15px;
  color: #444;
  display: inline-block;
  transition: transform 0.15s;
}

.cl-match-details.is-open .cl-match-list-label::before {
  transform: rotate(90deg);
}

.cl-match-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease;
  overflow: hidden;
}

.cl-match-details.is-open .cl-match-content {
  grid-template-rows: 1fr;
}

.cl-match-content > * {
  min-height: 0;
}

.cl-match-list {
  background: #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
}

.cl-match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #2a2a2a;
  font-size: 14px;
}

.cl-match-row:last-child { border-bottom: none; }

.cl-match-teams { color: #ccc; }

.cl-match-scores {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.cl-score-label { color: #444; font-size: 11px; }
.cl-score       { color: #fff; font-size: 12px; min-width: 24px; text-align: center; }

/* Gruppenphase Spielkarten */
.cl-group-matches { display: flex; flex-direction: column; gap: 12px; }
.cl-group-match   { display: flex; flex-direction: column; gap: 4px; }
.cl-group-match .cl-ko-match { margin-bottom: 0; }

.cl-leg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 10px;
  color: #555;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #161616;
  border-bottom: 1px solid #2a2a2a;
}

.cl-leg-spieltag { color: #3a3a3a; letter-spacing: 0; text-transform: none; }

.cl-ko-col-spieltag {
  display: block;
  font-size: 10px;
  color: #3a3a3a;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 1px;
}

/* KO-Phase */
.cl-ko { margin-top: 4px; }

.cl-ko-match--cols .cl-ko-col-header,
.cl-ko-match--cols .cl-ko-team {
  display: grid;
  grid-template-columns: 1fr 40px 40px 54px;
  align-items: center;
  padding-left: 10px;
  padding-right: 10px;
}

.cl-ko-col-header {
  padding-top: 4px;
  padding-bottom: 4px;
  color: #444;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #161616;
  border-bottom: 1px solid #2a2a2a;
}

.cl-ko-col-header span:not(:first-child) { text-align: center; }

.cl-ko-col-score {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 1px 6px;
}

.cl-ko-col-score--leg-win {
  background: #3a3a3a;
  color: #ccc;
  border-radius: 3px;
}

.cl-ko-match--cols .cl-finale-score--winner,
.cl-ko-match--cols .cl-finale-score--loser,
.cl-ko-match--cols .cl-finale-score--draw,
.cl-ko-match--cols .cl-finale-score--pending {
  justify-self: center;
}

.cl-ko-match {
  background: #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.cl-ko-match--open {
  padding: 12px 10px;
}

.cl-open-label {
  color: #444;
  font-size: 14px;
  font-style: italic;
}

.cl-ko-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid #2a2a2a;
}

.cl-ko-team:last-child { border-bottom: none; }

.cl-ko-name { font-size: 14px; color: #ccc; }

.cl-ko-team--winner .cl-ko-name { color: #fff; font-weight: 700; }
.cl-ko-team--loser  .cl-ko-name { color: #555; }

.cl-ko-scores {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cl-ko-agg {
  padding: 3px 10px;
  color: #555;
  font-size: 11px;
  border-top: 1px solid #2a2a2a;
  background: #161616;
}

/* Finale Score */
.cl-finale-score--winner {
  background: #138F16;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 3px;
}

.cl-finale-score--draw    { color: #888; font-size: 14px; font-weight: 700; padding: 1px 7px; }
.cl-finale-score--loser   { color: #fff; font-size: 14px; font-weight: 700; padding: 1px 7px; }
.cl-finale-score--pending { color: #555; font-size: 14px; padding: 1px 7px; }

/* ── Winner Banner ─────────────────────────────── */
.winner-banner {
  background: linear-gradient(135deg, #1a1500, #252000);
  border: 1px solid #FFD700;
  border-radius: 6px;
  padding: 20px 16px;
  margin-top: 12px;
  text-align: center;
}

.winner-banner-trophy { font-size: 33px; margin-bottom: 6px; }

.winner-banner-label {
  color: #FFD700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.winner-banner-name {
  color: #FFD700;
  font-size: 23px;
  font-weight: 700;
}

/* ── Stats Page ──────────────────────────────────── */
.nav-back {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 10px;
  border: 1px solid #333;
  border-radius: 4px;
}
.nav-back:hover { color: #fff; border-color: #555; }

.stats-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 8px;
}
.stats-row {
  display: flex;
  align-items: center;
  padding: 5px 4px;
  gap: 6px;
}
.stats-header {
  font-size: 11px;
  color: #666;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 5px;
  margin-bottom: 3px;
}
.stats-rank {
  width: 18px;
  text-align: right;
  flex-shrink: 0;
  color: #666;
  font-size: 12px;
}
.stats-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.stats-cell {
  width: 36px;
  text-align: right;
  flex-shrink: 0;
  font-size: 13px;
  color: #ccc;
}
.stats-pts {
  font-weight: 700;
  color: #fff;
  width: 52px;
}
.stats-avg {
  color: #666;
  width: 44px;
}
.stats-season {
  width: 38px;
  color: #888;
}
.stats-cell--best {
  color: #FFD700;
  font-weight: 700;
}
.stats-row--current {
  background: rgba(99, 193, 255, 0.07);
  border-radius: 4px;
}
.stats-row--current .stats-season {
  color: #63c1ff;
}

/* ── Ewige Tabelle Detail ─────────────────────────── */
.ewige-compact { display: block; }
.ewige-wrap {
  display: none;
  overflow-x: auto;
  margin-top: 8px;
}
@media (min-width: 600px) {
  .ewige-compact { display: none; }
  .ewige-wrap { display: block; }
}
.ewige-table {
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 13px;
  width: 100%;
}
.ewige-th {
  font-weight: normal;
  font-size: 11px;
  color: #555;
  padding: 5px 6px;
  text-align: right;
  border-bottom: 1px solid #2a2a2a;
}
.ewige-td {
  padding: 5px 6px;
  text-align: right;
  color: #888;
  border-bottom: 1px solid #1a1a1a;
}
.ewige-col-rank {
  position: sticky;
  left: 0;
  background: #000;
  z-index: 2;
  width: 22px;
}
.ewige-col-name {
  position: sticky;
  left: 22px;
  background: #000;
  z-index: 2;
  min-width: 90px;
  text-align: left;
  padding-left: 8px;
  padding-right: 10px;
  border-right: 1px solid #2a2a2a;
}
.ewige-col-season {
  min-width: 44px;
}
.ewige-col-current {
  background: rgba(99, 193, 255, 0.07);
  color: #63c1ff;
}
.ewige-col-total {
  position: sticky;
  right: 44px;
  background: #000;
  z-index: 2;
  min-width: 56px;
  font-weight: 700;
  color: #fff;
  border-left: 1px solid #2a2a2a;
}
.ewige-col-avg {
  position: sticky;
  right: 0;
  background: #000;
  z-index: 2;
  min-width: 44px;
  color: #555;
}
.ewige-miss {
  color: #333;
}
.ewige-row {
  border-bottom: 1px solid #1a1a1a;
}

/* ── Stats Cards ──────────────────────────────────── */
.stat-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}
.stat-card {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #272727;
}
.stat-card-header {
  padding: 6px 9px 5px;
  border-bottom: 1px solid #242424;
  display: flex;
  align-items: center;
  gap: 5px;
}
.stat-card-icon { font-size: 11px; }
.stat-card-title {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.stat-card-description {
  padding: 0 9px 6px;
  font-size: 11px;
  color: #666;
  line-height: 1.4;
}
.stat-card-body { padding: 3px 0; }
.stat-entry {
  display: flex;
  align-items: center;
  padding: 3px 9px;
  border-bottom: 1px solid #1e1e1e;
  gap: 4px;
}
.stat-entry:last-child { border-bottom: none; }
.stat-entry-pos {
  color: #444;
  font-size: 10px;
  width: 10px;
  flex-shrink: 0;
}
.stat-entry-player {
  color: #bbb;
  flex: 1;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-entry-manager {
  color: #555;
  font-size: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.stat-entry-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
  margin-left: auto;
}
.stat-entry-prices span {
  font-size: 11px;
  color: #777;
  white-space: nowrap;
}
.stat-entry-val {
  color: #63C1FF;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}
.stat-entry-count {
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
}
.stat-card--loading .stat-entry-player {
  background: #2a2a2a;
  border-radius: 3px;
  color: transparent;
  width: 60%;
}
.stat-card--loading .stat-entry-val,
.stat-card--loading .stat-entry-count {
  background: #2a2a2a;
  border-radius: 3px;
  color: transparent;
  width: 28px;
}
.stat-card--error .stat-card-body {
  padding: 8px 9px;
  font-size: 11px;
  color: #555;
}

.stat-chart-toggle {
  margin: 4px 9px 0;
  padding: 8px 0 4px;
  border-top: 1px solid #242424;
  font-size: 11px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  user-select: none;
}
.stat-chart-chevron {
  font-size: 9px;
  display: inline-block;
  margin-right: 3px;
}
.stat-chart-wrap {
  position: relative;
  margin: 4px 9px 6px;
}
.stat-chart-wrap--collapsed { display: none; }

/* ── Rahmenterminplan ─────────────────────────────── */
.tp-table {
  width: 100%;
  border-collapse: collapse;
}
.tp-th {
  font-size: 10px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px 6px;
  text-align: left;
  border-bottom: 1px solid #2a2a2a;
}
.tp-th--spieltag {
  width: 72px;
}
.tp-row {
  background: #1a1a1a;
  transition: background 0.15s;
}
.tp-row:hover {
  background: #222;
}
.tp-row td {
  padding: 7px 8px;
  border-bottom: 1px solid #222;
  vertical-align: middle;
}
.tp-spieltag {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  width: 72px;
}
.tp-spieltag--ew {
  color: #888;
}
.tp-caret { color: #555; font-size: 9px; margin-left: 5px; }
.tp-row--clickable { cursor: pointer; }
.tp-row--clickable:hover { background: #202020; }
.tp-row--clickable:focus-visible { outline: 2px solid #63C1FF; outline-offset: -2px; }
.tp-done {
  font-size: 10px;
  opacity: 0.75;
  margin-left: 3px;
}
.tp-current-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 50%;
  background: #C0201C;
  vertical-align: middle;
  animation: live-pulse 1.4s ease-in-out infinite;
}
.tp-event {
  font-size: 13px;
  color: #ccc;
  line-height: 1.45;
}
.tp-icon {
  margin-right: 5px;
}
.tp-detail-row[hidden] { display: none; }
.tp-detail {
  background: #141414;
  padding: 5px 10px 7px;
}
.tp-match {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
  font-size: 12px;
}
.tp-match + .tp-match { border-top: 1px solid #1f1f1f; }
.tp-match-comp { color: #888; white-space: nowrap; }
.tp-match-pair { color: #ccc; text-align: right; }
.tp-match-vs {
  color: #fff;
  font-weight: 700;
  margin: 0 6px;
  font-variant-numeric: tabular-nums;
}
.tp-match-open { color: #666; font-style: italic; }

.tp-row--pause {
  background: #111;
}
.tp-row--pause:hover {
  background: #111;
}
.tp-row--pause td {
  padding: 5px 8px;
  text-align: center;
  font-size: 10px;
  color: #444;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid #1e1e1e;
}

/* ── Auslosung ─────────────────────────────────── */
.auslosung-main { max-width: 960px; margin: 0 auto; padding: 24px 16px 60px; }

.auslosung-no-access {
  max-width: 960px;
  margin: 80px auto;
  text-align: center;
  color: #555;
  font-size: 17px;
}

.auslosung-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #222;
  margin-bottom: 20px;
}

.auslosung-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  padding: 10px 18px;
  cursor: pointer;
}

.auslosung-tab:hover { color: #aaa; }

.auslosung-tab--active {
  color: #63C1FF;
  border-bottom-color: #63C1FF;
}

.auslosung-section-label {
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.auslosung-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.auslosung-chip {
  background: #111;
  border: 1px solid #333;
  color: #666;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  padding: 10px 8px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}

.auslosung-chip:hover:not(:disabled) { border-color: #555; color: #aaa; }

.auslosung-chip--selected {
  background: #1a1a1a;
  border-color: #63C1FF;
  color: #fff;
  font-weight: 700;
}

.auslosung-chip:disabled { opacity: 0.3; cursor: default; }

.auslosung-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auslosung-start-btn {
  background: #63C1FF;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.auslosung-start-btn:disabled { opacity: 0.3; cursor: default; }

.auslosung-reset-btn {
  background: none;
  color: #888;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid #333;
  cursor: pointer;
}

.auslosung-reset-btn:hover { color: #fff; border-color: #555; }

.auslosung-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  min-height: 40px;
}

/* .auslosung-actions sets display:flex, which (same specificity, author
   origin) overrides the UA [hidden]{display:none} rule on elements like
   #cl-export-row that carry both the class and the hidden attribute.
   Restore standard hidden behaviour. */
.auslosung-actions[hidden] {
  display: none;
}

.slot-window {
  width: 220px;
  height: 40px;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 6px;
  background: #111;
}

.slot-strip {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
}

.slot-strip div {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  padding: 0 10px;
}

.auslosung-groups {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.auslosung-group-col {
  flex: 1;
  background: #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
}

.auslosung-group-title {
  background: #161616;
  color: #FFD700;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 10px;
}

.auslosung-group-team {
  padding: 8px 10px;
  font-size: 14px;
  color: #fff;
  border-bottom: 1px solid #2a2a2a;
}

.auslosung-group-team:last-child { border-bottom: none; }

.auslosung-duels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.auslosung-duel {
  background: #1e1e1e;
  border-radius: 6px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
}

.auslosung-duel-team { color: #fff; font-weight: 700; }
.auslosung-duel-team--pending { color: #555; font-weight: 400; }
.auslosung-duel-vs { color: #555; font-size: 13px; }

.auslosung-team-label,
.auslosung-duel-team {
  display: inline-block;
  transition: transform 0.3s ease-out, text-shadow 0.3s ease-out, color 0.3s ease-out;
}

.auslosung-celebrate--pulse {
  transform: scale(1.08);
  color: #FFD700;
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.7);
}

.auslosung-spark {
  position: fixed;
  z-index: 300;
  font-size: 15px;
  pointer-events: none;
}

/* ── Spielplan ─────────────────────────────────── */
.spielplan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.spielplan-col {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #272727;
}
.spielplan-col-header {
  padding: 6px 8px 5px;
  border-bottom: 1px solid #242424;
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.spielplan-col-matches { padding: 3px 0; }
.spielplan-match {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 6px;
  border-bottom: 1px solid #1e1e1e;
}
.spielplan-match:last-child { border-bottom: none; }
.spielplan-team-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
.spielplan-match-mid {
  font-size: 11px;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
  flex-shrink: 0;
}
.spielplan-match-mid--time {
  color: #888;
  font-weight: 400;
}
.spielplan-match-mid--score {
  color: #fff;
  font-weight: 400;
}
.spielplan-match--skeleton .spielplan-team-icon {
  background: #2a2a2a;
  border-radius: 50%;
  display: inline-block;
}
.spielplan-match--skeleton .spielplan-match-mid { color: #333; }
.spielplan-error {
  grid-column: 1 / -1;
  padding: 12px;
  text-align: center;
  color: #555;
  font-size: 12px;
  font-style: italic;
}

/* LIVE-Seite: Bundesliga-Sektion — gleiches Grid wie .spielplan-*, plus
   Klick-Affordanz und roter Puls-Punkt für laufende Spiele. */
.live-bl-match { cursor: pointer; }
.live-bl-match:hover { background: rgba(255, 255, 255, 0.03); }
.live-bl-dot {
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #C0201C;
  display: inline-block;
  vertical-align: middle;
  animation: live-pulse 1.4s ease-in-out infinite;
}
.live-bl-goals {
  padding: 6px 10px 8px;
  background: #151515;
  border-bottom: 1px solid #1e1e1e;
}
.live-bl-goal {
  display: grid;
  grid-template-columns: 24px 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #ccc;
  padding: 2px 0;
}
.live-bl-goal-min { color: #888; }
.live-bl-goal-side { display: flex; flex-direction: column; gap: 1px; }
.live-bl-goal-side--home { align-items: flex-end; }
.live-bl-goal-side--away { align-items: flex-start; }
.live-bl-goal-owner { font-style: italic; color: #777; font-size: 10px; }
.live-bl-goal-score { color: #fff; font-weight: 700; min-width: 28px; text-align: center; }
.live-bl-goals-empty { font-size: 11px; color: #666; padding: 2px 0; }

/* ── Vereinswerte ──────────────────────────────── */
.vereinswerte-chart-card {
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #272727;
  padding: 12px 8px 8px;
  margin-bottom: 10px;
}
.vereinswerte-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 8px;
}
.vereinswerte-legend-item {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 10px;
  color: #c3c2b7;
  white-space: nowrap;
  cursor: pointer;
}
.vereinswerte-legend-item--hidden {
  color: #555;
  text-decoration: line-through;
}
.vereinswerte-canvas-wrap {
  position: relative;
  height: 300px;
}
.vereinswerte-table-wrap { margin-top: 4px; }
.vereinswerte-table-label {
  padding: 10px 0 4px;
  font-size: 11px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  user-select: none;
}
.vereinswerte-table-chevron {
  font-size: 9px;
  display: inline-block;
  margin-right: 3px;
}
.vereinswerte-table { margin-top: 4px; }
.vereinswerte-table--collapsed { display: none; }
.vereinswerte-row {
  display: flex;
  align-items: center;
  padding: 5px 9px;
  border-bottom: 1px solid #1e1e1e;
  gap: 4px;
}
.vereinswerte-row:last-child { border-bottom: none; }
.vereinswerte-row--header {
  color: #555;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vereinswerte-cell-name {
  flex: 1;
  color: #ccc;
  font-size: 12px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vereinswerte-cell {
  min-width: 52px;
  text-align: right;
  color: #888;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.vereinswerte-delta-up   { color: #138F16; }
.vereinswerte-delta-down { color: #D75452; }
.vereinswerte-swatch {
  display: inline-block;
  width: 14px;
  height: 0;
  border-top: 2px solid;
  margin-right: 6px;
  flex-shrink: 0;
}
.vereinswerte-swatch--dashed { border-top-style: dashed; }

/* ── LIVE-Spieltag ─────────────────────────────── */
.live-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: #C0201C;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  text-align: center;
}
.live-banner[hidden] { display: none; }
.live-banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.7); }
}

.nav-panel-link--live { color: #F26C6A; }

/* Page-wide red accent so live.html reads as distinct from every other page. */
.live-page-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #C0201C;
  vertical-align: middle;
  animation: live-pulse 1.4s ease-in-out infinite;
}
body.live-page #topnav { border-bottom-color: #C0201C; }
body.live-page #splash-page-title { color: #E9504C; }
body.live-page .section-bar { background: #C0201C; }
body.live-page section > .section-header { background: rgba(192, 32, 28, 0.18); }

.live-countdown {
  color: #888;
  font-size: 12px;
  margin: 0 0 10px;
}

.live-idle {
  color: #888;
  font-size: 15px;
  padding: 40px 4px;
  text-align: center;
  line-height: 1.6;
}

.live-refresh-note {
  color: #C08A00;
  font-size: 12px;
  margin: 0 0 10px;
}
.live-refresh-note[hidden] { display: none; }

.live-table {
  background: #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
}
.live-entry { border-bottom: 1px solid #2a2a2a; }
.live-entry:last-child { border-bottom: none; }
.live-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto auto 14px;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
}
.live-row[role="button"] { cursor: pointer; }
.live-row[role="button"]:hover { background: #262626; }
.live-row:focus-visible { outline: 2px solid #C0201C; outline-offset: -2px; }
.live-row--header {
  padding: 6px 12px;
  background: #161616;
  color: #444;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #2a2a2a;
}
.live-row--leader { background: rgba(19, 143, 22, 0.14); }
.live-rank { color: #888; font-size: 13px; text-align: right; }
.live-name { color: #ddd; font-size: 14px; }
.live-row--leader .live-name { color: #fff; font-weight: 700; }
.live-scored { color: #888; font-size: 11px; font-weight: 400; text-align: right; }
.live-points { color: #fff; font-size: 14px; font-weight: 700; text-align: right; }
.live-total { color: #888; font-size: 11px; font-weight: 400; text-align: right; white-space: nowrap; }
.live-caret { color: #666; font-size: 9px; text-align: center; }

/* Datenzeilen: die Spalte, nach der sortiert wird, ist prominent (weiß, groß,
   fett), die andere dezent (grau, klein). Standard = Sortierung nach Pkt. */
.live-entry .live-points,
.live-entry .live-total {
  color: #888;
  font-size: 11px;
  font-weight: 400;
}
.live-table:not(.live-table--sort-total) .live-entry .live-points,
.live-table--sort-total .live-entry .live-total {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* Sortierbare Kopf-Spalten (Pkt / Ges.) */
.live-row--header .live-points,
.live-row--header .live-total {
  color: #555;
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
}
.live-row--header .live-points:hover,
.live-row--header .live-total:hover { color: #999; }
.live-table:not(.live-table--sort-total) .live-row--header .live-points,
.live-table--sort-total .live-row--header .live-total {
  color: #ccc;
  font-weight: 700;
}

/* Aufklappbare Aufstellung */
.live-squad { background: #171717; padding: 2px 12px 8px; }
.live-squad[hidden] { display: none; }
.live-squad .loading,
.live-squad .error-msg { font-size: 12px; margin: 8px 0 4px; }
.live-squad-sep {
  color: #555;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0 3px;
}
.live-player {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
}
.live-player-club { display: flex; align-items: center; }
.live-player-club img { width: 16px; height: 16px; object-fit: contain; }
.live-player-nameline {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.live-player-name {
  color: #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-player--bench .live-player-name { color: #777; }
/* Torschütze dieses Spieltags. */
.live-player-goal { font-size: 11px; flex-shrink: 0; }
/* Roter Puls direkt hinter dem Namen: Spieler ist gerade im laufenden Spiel. */
.live-player-live {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #C0201C;
  animation: live-pulse 1.4s ease-in-out infinite;
}
.live-player-pts { color: #fff; font-weight: 700; text-align: right; }
.live-player--bench .live-player-pts { color: #888; }
/* Farbcodierte Punkte-Pille (wie .cup-score--winner, aber abgestuft). */
.live-player-pts--coded {
  color: #fff;
  padding: 1px 7px;
  border-radius: 3px;
  min-width: 22px;
}
.live-player--bench .live-player-pts--coded { color: #fff; }

/* ── Health-Dashboard ──────────────────────────── */
.health-refresh-btn {
  margin: 4px 0 12px;
  padding: 6px 14px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #1a1a1a;
  color: #ccc;
  font-size: 13px;
  cursor: pointer;
}
.health-refresh-btn:hover { background: #222; }
.health-card {
  background: #1a1a1a;
  border: 1px solid #272727;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.health-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.health-card-icon { font-size: 16px; }
.health-card-name { font-weight: 700; color: #fff; }
.health-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #999;
}
.health-card-label { font-weight: 600; }
.health-status--ok .health-card-label { color: #1f8f2c; }
.health-status--warn .health-card-label { color: #c98500; }
.health-status--error .health-card-label { color: #c0201c; }
.health-status--info .health-card-label { color: #3987e5; }
.health-card-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: #63c1ff;
}
