/* ====== Grundlayout ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ====== Farbthemen ======================================================
   Dunkel ist die Voreinstellung (bisheriges Aussehen). Hell wird ueber
   <html data-theme="light"> aktiviert; den Schalter setzt theme.js.
   WICHTIG: Neue Farben immer als Variable anlegen und in BEIDEN Bloecken
   pflegen - feste Hex-Werte in Regeln brechen sonst den Hell-Modus. */
:root {
  --bg: #0a0e1a;
  --panel: #141b2e;
  --panel-2: #1a2340;
  --line: #28324f;
  --line-soft: #1f2740;      /* Trennlinie zwischen Spielzeilen */
  --text: #eef1fa;
  --muted: #95a1c4;
  --muted-2: #6b7aa3;
  --accent: #5b9bff;
  --accent-2: #7db4ff;       /* hellerer Akzent fuer Verlaeufe/Eyebrows */
  --accent-ink: #08101f;     /* Schrift AUF der Akzentflaeche (Weiss waere zu kontrastarm) */
  --accent-soft: #152449;
  --free: #28d17c;
  --pay: #f6a723;
  --stream: #63a8fb;
  --live: #ff4d5e;
  --gold: #ffcf5b;
  --on-live: #ffffff;
  --glass: rgba(255,255,255,.04);
  --chip-bg: rgba(255,255,255,.03);
  --chip-hover: rgba(255,255,255,.1);
  --chip-free-fg: #7ee2a5;
  --chip-pay-fg: #fbbf24;
  --chip-stream-fg: #93c5fd;
  --selected-bg: #182449;
  --score-bg: rgba(255,77,94,.14);
  --score-fg: #ffb3bb;
  --score-line: rgba(255,77,94,.42);
  --note: #eab308;
  --header-bg: rgba(10,14,26,.72);
  --pagetag: #cbd5e1;
  --tagline: #95a1c4;
  --tagline-rule: #3b4a75;
  --focus: #ff8a1e;
  --cnt-bg: rgba(255,255,255,.06);
  --cnt-bg-active: rgba(255,255,255,.22);
  --ring: rgba(255,255,255,.2);
  --shadow: 0 1px 2px rgba(0,0,0,.35);
}
:root[data-theme="light"] {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #eef2f8;
  --line: #dfe4ee;
  --line-soft: #edf0f6;
  --text: #0f1626;
  --muted: #5c6884;
  --muted-2: #8b95ab;
  --accent: #2f6bff;
  --accent-2: #1d4ed8;
  --accent-ink: #ffffff;
  --accent-soft: #e8effe;
  --free: #12793f;
  --pay: #9a5b09;
  --stream: #1d4ed8;
  --live: #d21f37;
  --gold: #b8860b;
  --on-live: #ffffff;
  --glass: rgba(20,40,90,.03);
  --chip-bg: #ffffff;
  --chip-hover: rgba(0,0,0,.05);
  --chip-free-fg: #12793f;
  --chip-pay-fg: #9a5b09;
  --chip-stream-fg: #1d4ed8;
  --selected-bg: #eef2ff;
  --score-bg: rgba(192,39,45,.09);
  --score-fg: #c0272d;
  --score-line: rgba(192,39,45,.35);
  --note: #8a6100;
  --header-bg: rgba(255,255,255,.82);
  --pagetag: #4b5563;
  --tagline: #6b7280;
  --tagline-rule: #d7dbe3;
  --focus: #b45309;
  --cnt-bg: rgba(0,0,0,.05);
  --cnt-bg-active: rgba(255,255,255,.25);
  --ring: rgba(0,0,0,.12);
  --shadow: 0 1px 2px rgba(16,24,40,.05);
}
html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.45;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ====== Waagerechte Navigation (Design A) ======
   Auf ALLEN Breiten sichtbar (das Menue-Dropdown ist entfallen). Reicht der
   Platz nicht, rutscht sie in eine eigene Zeile und laesst sich seitlich
   schieben - so bleibt jeder Punkt erreichbar. */
.top-nav {
  display: flex; align-items: center; gap: 20px;
  margin-left: 24px; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.top-nav::-webkit-scrollbar { display: none; }
.top-nav a {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 5px 0; white-space: nowrap;
}
.top-nav a:hover { color: var(--text); }
.top-nav a.on { color: var(--text); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }

/* Kopfzeile: Logo | Navigation | Bedienelemente */
.header-inner { flex-wrap: nowrap; gap: 14px; }
.brand { flex: none; }
/* Bedienelemente bleiben IMMER in einer Zeile - sonst stapeln sich
   Sprache/Theme/CTA untereinander und der Kopf wirkt unruhig. */
.header-right { flex: none; margin-left: auto; flex-wrap: nowrap; }
.header-btns { flex-wrap: nowrap; }

/* Seit die Navigation elf Punkte hat (Programm … App) wird es einzeilig zu
   eng: unter 1560px bekommt sie deshalb eine eigene, ruhige Zeile unter
   Logo + Bedienelementen (bewusst zweizeilig statt gequetscht).
   Beim Hinzufuegen weiterer Punkte diesen Wert mit erhoehen. */
@media (max-width: 1560px) {
  .header-inner { flex-wrap: wrap; }
  .brand { flex: 1 1 auto; }
  .top-nav {
    order: 3; flex-basis: 100%; margin-left: 0;
    gap: 20px; padding-top: 4px; margin-top: 2px;
    border-top: 1px solid var(--line-soft);
  }
  .top-nav a { padding: 7px 0; }
}
@media (max-width: 620px) {
  .top-nav { gap: 15px; }
  .top-nav a { font-size: .86rem; }
}
@media (max-width: 560px) {
  .header-right .ad-link.cta { font-size: .82rem; padding: 7px 13px; }
  /* Auf schmalen Schirmen passen Sprache + Theme + Anmelden + Haupt-Aktion nicht
     mehr in eine Zeile. Ohne Regel brechen sie rechtsbuendig in einen
     ungleichmaessigen Stapel um (der randumrandete Theme-Knopf sitzt dann direkt
     neben dem DE-Waehler und wirkt ineinandergeschoben). Deshalb hier ein
     aufgeraeumter Umbruch: Sprache / Theme / Anmelden in einer Zeile, die lange
     Haupt-Aktion (nur Startseite) darunter als klarer, gleich breiter Primaerknopf.
     Bewusst ohne width:100% auf .header-right, damit Unterseiten-Header (nur
     Sprache + Theme, kein CTA) unveraendert bleiben. */
  .header-btns { row-gap: 9px; align-items: center; }
  .header-btns .ad-link.cta { flex: 1 1 100%; text-align: center; }
}

/* ====== Seitenkopf: Ueberschrift + Kennzahlen (Design A) ====== */
.page-lead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin: 22px 0 18px;
}
.page-title { font-size: 1.85rem; letter-spacing: -.01em; line-height: 1.15; }
.page-sub { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.kpis { display: flex; gap: 12px; }
.kpi {
  background: linear-gradient(180deg, var(--glass), rgba(255,255,255,.01));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 20px; min-width: 112px; position: relative; overflow: hidden;
}
.kpi b { display: block; font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.kpi span {
  font-size: .64rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .09em; font-weight: 700; margin-top: 7px; display: block;
}
.kpi.free b { color: var(--free); }
.kpi.live b { color: var(--live); }
.kpi.live::before {
  content: ""; position: absolute; top: 13px; right: 13px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 4px rgba(255,77,94,.2); animation: pulse 1.6s infinite;
}
@media (max-width: 560px) {
  .page-title { font-size: 1.45rem; }
  .kpis { gap: 8px; width: 100%; }
  .kpi { flex: 1; min-width: 0; padding: 10px 12px; }
  .kpi b { font-size: 1.35rem; }
}

/* ====== Ligen-Dropdown ("Meine Ligen") in der Filterleiste ====== */
.league-dd { position: relative; }
.league-dd-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: .87rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.league-dd-btn:hover { border-color: var(--accent); }
.league-dd-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.league-dd-btn .ls-pin { font-size: 13px; line-height: 1; }
.league-dd-btn .league-dd-flag {
  width: 18px; height: 12px; border-radius: 2px;
  flex: none; display: block; overflow: hidden;
  box-shadow: 0 0 0 1px var(--ring);
}
.league-dd-btn .league-dd-flag[hidden] { display: none; }
.league-dd-btn .league-dd-chev {
  font-size: 10px; opacity: .8;
  transition: transform .15s;
}
.league-dd-btn[aria-expanded="true"] .league-dd-chev { transform: rotate(180deg); }
.league-dd-btn.active .ls-pin { display: none; }

.league-dd-panel {
  position: absolute; top: calc(100% + 6px); left: 0;
  z-index: 40;
  min-width: 240px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.league-dd-panel[hidden] { display: none; }
.league-dd-panel .ls-list { list-style: none; padding: 0; margin: 0; }
.league-dd-panel .ls-list li + li { margin-top: 1px; }

.ls-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid transparent;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .12s, border-color .12s, color .12s;
}
.ls-btn:hover { background: var(--panel-2); border-color: var(--line); }
.ls-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.ls-flag {
  width: 20px; height: 14px;
  border-radius: 2px;
  flex: none;
  display: block;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--ring);
}
.ls-flag svg { width: 100%; height: 100%; display: block; }
.ls-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-cnt {
  font-size: 11px;
  color: var(--muted);
  background: var(--cnt-bg);
  border-radius: 999px;
  padding: 1px 8px;
  min-width: 22px;
  text-align: center;
  line-height: 1.5;
}
.ls-btn.active .ls-cnt { background: var(--cnt-bg-active); color: var(--accent-ink); }
.ls-btn.empty { opacity: .45; }
.ls-btn.empty .ls-cnt { display: none; }

@media (max-width: 560px) {
  .league-dd-panel { min-width: 220px; }
  .league-dd-btn { padding: 6px 12px; font-size: .82rem; }
}

/* ====== Header ======
   Logo-Header nach Logo_vorlage_neu.png (zuerst auf der Highlight-Seite
   entworfen, gilt jetzt auf allen Seiten): Emblem + Schriftzug nebeneinander,
   darunter die Tagline, rechts optional Trennstrich + Seitenname. */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 0;
  margin-bottom: 0;
  position: sticky; top: 0; z-index: 45;
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
}
.site-header .header-inner { max-width: none; padding: 0 4px 0 16px; }
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.brand { display: flex; align-items: center; gap: 14px; }
h1 { font-size: 1.55rem; letter-spacing: .3px; }
.hl-home { display: inline-block; color: inherit; text-decoration: none; cursor: pointer; }
.hl-home:hover .hl-wordmark, .hl-home:focus-visible .hl-wordmark { opacity: .85; }
.hl-home:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.hl-brand { display: flex; align-items: center; gap: 12px; margin: 0; }
.hl-emblem { height: 44px; width: auto; display: block; margin: 0; }
.hl-word { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
/* Die Wortmarke ist seit dem Logo von 08/2026 ZWEIZEILIG ("KICK" ueber
   "SCOPE"). Bei der alten Hoehe von 26px waere die zweite Zeile nur noch
   ~9px hoch und damit unlesbar - deshalb hier deutlich groesser. */
.hl-wordmark { height: 40px; width: auto; display: block; }
/* Die Wortmarke ist fuer dunkle Flaechen gezeichnet ("Kick" ist nahezu weiss).
   Im Hell-Modus deshalb auf die dunkle Fassung wechseln. Das Emblem bleibt
   unveraendert - es liest sich auf beiden Untergruenden gut. */
:root[data-theme="light"] .hl-wordmark { content: url("/logo-wort-hell.png?v=6"); }
.hl-tagline {
  display: flex; align-items: center; gap: 12px;
  color: var(--tagline); font-size: .6rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
}
.hl-tagline::before, .hl-tagline::after {
  content: ""; height: 1px; width: 0; background: var(--tagline-rule);
}
.hl-divider {
  width: 1px; height: 26px; background: var(--line);
  margin: 0 8px 0 18px;
}
.hl-pagetag { font-size: 1rem; font-weight: 600; color: var(--pagetag); }
@media (max-width: 900px) {
  .hl-divider, .hl-pagetag { display: none; }
}
@media (max-width: 560px) {
  .hl-emblem { height: 34px; }
  .hl-wordmark { height: 31px; }
  .hl-tagline { display: none; }
}
/* Seit dem Wegfall der Stand-Zeile stehen hier nur noch Bedienelemente:
   nebeneinander statt untereinander (sonst wird der Kopf unnoetig hoch). */
.header-right { display: flex; flex-direction: row; align-items: center;
                justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.meta { color: var(--muted); font-size: .82rem; text-align: right; }
.ad-link {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 16px;
  transition: filter .15s;
}
.ad-link:hover { filter: brightness(1.15); }

/* Haupt-Aktion "Spielplan erstellen" hervorheben */
.ad-link.cta {
  font-size: .9rem;
  padding: 9px 18px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #4179dd);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(91, 155, 255, .8);
}
.ad-link.cta:hover { filter: brightness(1.08); }

/* Menü-Dropdown im Header (buendelt Live Game, Highlights, Tagesprogramm, Feedback) */
.menu-dd { position: relative; }
.menu-dd-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.menu-dd-btn:hover { border-color: var(--accent); filter: none; }
.menu-dd-btn .menu-dd-chev { font-size: 10px; opacity: .8; transition: transform .15s; }
.menu-dd-btn[aria-expanded="true"] .menu-dd-chev { transform: rotate(180deg); }
.menu-dd-panel {
  position: absolute; top: calc(100% + 6px); right: 0;
  z-index: 40;
  min-width: 210px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.menu-dd-panel[hidden] { display: none; }
.menu-dd-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
}
.menu-dd-panel a:hover { background: var(--panel-2); color: var(--text); }

/* ====== Filterleiste ====== */
/* Design A: schlanke Leiste statt Panel-Kasten. Tag-Filter und Sportarten
   stehen in EINER Zeile (Sportarten rechts), darunter nur noch die Werkzeuge. */
.controls {
  /* bewusst OHNE Kartenflaeche: sonst endet die weisse Flaeche buendig hinter
     dem DE/AT/CH-Schalter und sieht wie ein abgeschnittener Text aus */
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
}
.controls > * { padding: 9px 0; }
.controls > * + * { border-top: 1px solid var(--line-soft); }
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
/* Sportarten in derselben optischen Zeile nach rechts schieben */
@media (min-width: 900px) {
  .controls { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 18px; }
  .controls > * { padding: 10px 0; }
  .controls > * + * { border-top: 0; }
  /* Die Tagesleiste braucht die volle Breite (bis zu 12 Eintraege), die
     Sportarten stehen darunter linksbuendig statt einsam rechts. */
  #dateRow, #sportRow, .tool-row, .legend { flex-basis: 100%; }
  #sportRow, .tool-row, .legend { border-top: 1px solid var(--line-soft); }
}
.pill {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .84rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.pill:hover { border-color: var(--accent); }
.pill.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pill .cnt { opacity: .7; font-size: .78rem; margin-left: 4px; }

.tool-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
#search {
  flex: 1 1 200px;
  min-width: 0;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: .95rem;
}
#search:focus { outline: none; border-color: var(--accent); }

.toggle { display: flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; user-select: none; flex: none; white-space: nowrap; }
.toggle input { display: none; }
.toggle .slider {
  width: 38px; height: 21px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line);
  position: relative; transition: background .15s;
}
.toggle .slider::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--muted); transition: transform .15s, background .15s;
}
.toggle input:checked + .slider { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .slider::after { transform: translateX(17px); background: var(--accent-ink); }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8rem; }
.legend-note { color: var(--muted); }

/* ====== Sport-Sektionen ====== */
.sport-section { margin-bottom: 26px; }
.sport-title {
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 0;
  margin: 0 0 10px;
  display: flex; align-items: center; gap: 10px;
}
.sport-title::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.sport-title .cnt { color: var(--muted); font-size: .85rem; font-weight: normal; }

/* ====== Spiel-Karten ====== */
.game {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: none;
  padding: 13px 18px;
  margin: 0;
  display: grid;
  /* Sender-Spalte gebunden (minmax .9fr statt auto): bei sehr vielen Sendern
     umbrechen die Badges innerhalb ihrer Spalte, statt die Paarung zu ueberlaufen. */
  grid-template-columns: 78px minmax(0,1.1fr) minmax(0,0.9fr);
  gap: 2px 20px;
  align-items: center;
  transition: background .12s;
}
.game:hover { background: color-mix(in srgb, var(--panel) 88%, var(--accent)); }
/* Die Zeilen einer Sportart bilden zusammen EINEN Block (Design A). */
.game:first-of-type { border-top: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.game:last-of-type  { border-radius: 0 0 10px 10px; }
.game + .game { border-top: 1px solid var(--line-soft); }
.game.live-now { box-shadow: inset 3px 0 0 var(--live); }

.game-time { text-align: left; align-self: center; }
.game-time .t { font-size: 1.12rem; font-weight: 700; color: var(--text); display: block; line-height: 1.2; }
.game-time .d { font-size: .66rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.badge-live {
  display: inline-block; margin-top: 5px;
  background: var(--live); color: var(--on-live);
  font-size: .68rem; font-weight: 700;
  border-radius: 4px; padding: 2px 7px;
  animation: pulse 1.6s infinite;
}
/* Sender-Modus-Banner: erscheint bei Suche nach Sender-Substring */
.sender-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, rgba(79,141,255,.16), rgba(79,141,255,.04));
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: var(--text);
  font-size: .92rem;
}
.sender-banner .sb-icon { font-size: 1.15rem; line-height: 1; }
.sender-banner strong { color: var(--accent); }

/* Countdown-Chip fuer Spiele in den naechsten 4 h (mutex zu LIVE) */
.countdown {
  display: inline-block; margin-top: 5px;
  background: rgba(79, 141, 255, .15);
  color: var(--accent);
  border: 1px solid rgba(79, 141, 255, .38);
  border-radius: 4px; padding: 2px 7px;
  font-size: .68rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@keyframes pulse { 50% { opacity: .55; } }

.game-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.fixture { font-size: 1.02rem; font-weight: 600; }
/* Monogramm-Wappen vor der Paarung */
.game-crests { display: inline-flex; align-items: center; gap: -6px; flex: none; }
.game-crests .crest + .crest { margin-left: -8px; }
.crest {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 800; letter-spacing: -.02em; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 3px 8px -4px rgba(0,0,0,.6);
  overflow: hidden;
}
/* Echtes ESPN-Team-Logo: auf weisser Scheibe, damit jedes Logo (auch dunkle) liest */
.crest.logo { background: #fff; }
.crest.logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; display: block; }
.competition { color: var(--muted); font-size: .8rem; flex-basis: 100%; }
.note { color: var(--note); font-size: .8rem; width: 100%; }

/* Live-Score-Chip (ESPN via Client-Fetch, nur wenn ESPN state === "in") */
.score-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--score-bg);
  color: var(--score-fg);
  border: 1px solid var(--score-line);
  border-radius: 6px;
  padding: 2px 9px;
  font-size: .9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.score-chip .score-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  animation: pulse 1.6s infinite;
}
.score-chip .score-detail {
  font-size: .72rem; font-weight: 500; opacity: .85;
  color: var(--muted);
}

.channels { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.chip {
  font-size: .75rem;
  font-weight: 700;
  border-radius: 7px;
  padding: 4px 9px;
  border: 1px solid transparent;
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.15;
  transition: filter .15s, transform .05s;
}
/* Getönte, gefüllte Badges je Empfangsart (Standard für unbekannte Sender) */
.chip.free   { background: rgba(40,209,124,.14);  color: var(--chip-free-fg);   border-color: rgba(40,209,124,.42); }
.chip.pay    { background: rgba(246,167,35,.14);  color: var(--chip-pay-fg);    border-color: rgba(246,167,35,.42); }
.chip.stream { background: rgba(99,168,251,.12);  color: var(--chip-stream-fg); border-color: rgba(99,168,251,.34); }
/* "+N weitere": gekuerzte Senderliste (Team-Seite) - bewusst unauffaellig */
.chip.more   { background: transparent; color: var(--muted-2); border-style: dashed; }
/* Marken-Badges bekannter Sender: kräftig gefüllt (Wiedererkennung).
   Doppeltes .chip erhoeht die Spezifitaet mit Absicht: stil-schraegpass.css
   wird NACH dieser Datei geladen und setzt dort .chip.free/.pay/.stream mit
   derselben Spezifitaet neu. Ohne das Extra-.chip gewaenne der blasse
   Typ-Hintergrund, waehrend die weisse Markenschrift bliebe -> gemessen
   1,41:1 Kontrast, also praktisch unlesbar. */
.chip.chip.brand-sky    { background:#0a63c9; color:#fff; border-color:transparent; }
.chip.chip.brand-dazn   { background:#101218; color:#fff; border-color:#2e3342; }
.chip.chip.brand-wow    { background:#e0007a; color:#fff; border-color:transparent; }
.chip.chip.brand-magenta{ background:#e20074; color:#fff; border-color:transparent; }
.chip.chip.brand-prime  { background:#00a8e1; color:#04121a; border-color:transparent; }
.chip.chip.brand-ard    { background:#1b40b3; color:#fff; border-color:transparent; }
.chip.chip.brand-zdf    { background:#fa7d19; color:#1a1206; border-color:transparent; }
.chip.chip.brand-rtl    { background:#12307a; color:#fff; border-color:transparent; }
.chip.chip.brand-sport1 { background:#e2001a; color:#fff; border-color:transparent; }
.chip.chip.brand-euro   { background:#111827; color:#fff; border-color:#3a4560; }
.chip.chip.brand-servus { background:#c8102e; color:#fff; border-color:transparent; }
.chip.chip.brand-orf    { background:#c8102e; color:#fff; border-color:transparent; }
.chip.de { box-shadow: 0 0 0 1.5px currentColor inset; }
.chip.demo { cursor: default; }
a.chip:hover { filter: brightness(1.12); }
.chip.dimmed { opacity: .3; }
/* Free-TV-Fähnchen vor der Senderreihe */
.freeflag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: var(--free);
}
.freeflag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--free); box-shadow: 0 0 0 3px rgba(40,209,124,.18);
}

.more-btn {
  background: none; border: 1px dashed var(--line); color: var(--muted);
  border-radius: 6px; padding: 3px 9px; font-size: .78rem; cursor: pointer;
}
.more-btn:hover { color: var(--text); border-color: var(--accent); }

.empty {
  text-align: center; color: var(--muted);
  padding: 60px 20px; font-size: 1rem;
  background: var(--panel); border: 1px dashed var(--line); border-radius: 12px;
}

/* ====== Spielplan-Modus ====== */
.game.selectable { cursor: pointer; }
.game.selectable:hover { background: var(--panel-2); }
.game.selected {
  box-shadow: inset 3px 0 0 var(--accent);
  background: var(--selected-bg);
}
.plan-mode .chip { cursor: pointer; }
.chip.sel {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-ink) !important;
}
body.plan-mode { padding-bottom: 70px; }

.plan-bar[hidden], .plan-overlay[hidden] { display: none !important; }
.plan-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--panel-2);
  border-top: 2px solid var(--accent);
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}
.plan-bar button {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: .88rem;
  cursor: pointer;
  font-family: inherit;
}
.plan-bar button:hover { border-color: var(--accent); }
.plan-bar button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.plan-bar button:disabled { opacity: .45; cursor: default; }

/* ====== Fertiger Spielplan ====== */
.plan-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .65);
  overflow: auto;
  padding: 30px 16px;
}
.plan-sheet {
  background: #fff;
  color: #16181d;
  max-width: 820px;
  margin: 0 auto;
  border-radius: 10px;
  padding: 26px 28px;
}
.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.plan-sheet h2 { font-size: 1.25rem; color: #16181d; }
.plan-actions { display: flex; gap: 8px; }
.plan-actions button {
  background: #f0f2f7;
  border: 1px solid #cdd4e0;
  color: #16181d;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: .85rem;
  cursor: pointer;
  font-family: inherit;
}
.plan-actions button:hover { background: #e2e7f0; }
.plan-table { width: 100%; border-collapse: collapse; }
.plan-table th, .plan-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid #dde2eb;
  vertical-align: top;
  font-size: .92rem;
}
.plan-table th {
  background: #f0f2f7;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.plan-time { white-space: nowrap; font-weight: 700; }
.plan-comp { color: #6b7383; font-size: .78rem; margin-top: 2px; }
.plan-day { color: #6b7383; font-size: .8rem; font-weight: normal; }
.plan-sport {
  white-space: nowrap;
  font-weight: 800;
  background: #f7f9fc;
  border-right: 1px solid #dde2eb;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: .3px;
  font-size: .88rem;
}
.plan-table tr.plan-group-start > td { border-top: 2px solid #c9d0dc; }
.plan-table tr.plan-group-start:first-child > td { border-top: none; }

@media print {
  body * { visibility: hidden; }
  .plan-overlay, .plan-overlay * { visibility: visible; }
  .plan-overlay {
    position: absolute;
    inset: 0;
    background: #fff;
    padding: 0;
    overflow: visible;
  }
  .plan-sheet { max-width: none; border-radius: 0; padding: 10px; }
  .plan-actions { display: none !important; }
}

/* ====== Feedback-Seite (feedback.php) ====== */
.header-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ad-link.ghost {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
}
.ad-link.ghost:hover { border-color: var(--accent); filter: none; }

/* Fruehere Vorlagenfarben (Feedback_vorlage.png) waren fest verdrahtet und
   blieben im Hell-Modus dunkel -> jetzt an die Themefarben gekoppelt. */
.fb-page {
  --fb-card: var(--panel);
  --fb-line: var(--line);
  --fb-blue: var(--accent);
  max-width: 760px;
}
.fb-back {
  display: inline-block;
  background: var(--fb-blue, #4d89fc);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 9px 18px;
  transition: filter .15s;
}
.fb-back:hover { filter: brightness(1.12); }

.fb-title { font-size: 1.9rem; margin: 26px 0 14px; letter-spacing: .3px; }
.fb-note { font-size: .95rem; line-height: 1.6; margin-bottom: 8px; }
.fb-label { display: block; font-size: .92rem; margin: 30px 0 12px; }

/* Auswahl-Karten (Bug / Wunsch / Sonstiges) */
.fb-types { display: flex; gap: 18px; }
.fb-type { flex: 1; }
.fb-type input { display: none; }
.fb-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--fb-line);
  background: var(--fb-card);
  font-size: .95rem;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.fb-card:hover { border-color: var(--fb-blue); }
.fb-radio {
  display: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2px solid var(--fb-blue);
  position: relative;
  flex: none;
}
.fb-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--fb-blue);
}
.fb-type input:checked + .fb-card {
  border-color: var(--fb-blue);
  background: var(--accent-soft);   /* war fest #131c31 -> im Hell-Modus unlesbar */
  box-shadow: 0 0 0 1px var(--fb-blue);
}
.fb-type input:checked + .fb-card .fb-radio { display: inline-block; }

/* Nachricht mit Zeichenzaehler */
.fb-msgbox {
  background: var(--fb-card);
  border: 1px solid var(--fb-line);
  border-radius: 10px;
  padding-bottom: 12px;
}
.fb-msgbox:focus-within { border-color: var(--fb-blue); }
.fb-msgbox textarea {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
  font-size: .9rem;
  padding: 16px 18px 6px;
  resize: vertical;
  min-height: 130px;
  outline: none;
}
.fb-msgbox textarea::placeholder { color: var(--muted-2); }
.fb-count {
  text-align: right;
  padding: 0 20px;
  color: var(--muted);
  font-size: .82rem;
  font-family: Consolas, "Courier New", monospace;
}

/* Privatsphaere-Hinweis */
.fb-privacy {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: var(--fb-card);
  border: 1px solid var(--fb-line);
  border-radius: 10px;
  padding: 15px 18px;
  margin-top: 24px;
}
.fb-privacy .ico { font-size: 1.3rem; line-height: 1.4; }
.fb-privacy strong {
  display: block;
  color: var(--fb-blue);
  font-size: .95rem;
  margin-bottom: 3px;
}
.fb-privacy p { color: var(--muted); font-size: .85rem; }

/* Senden-Button */
.fb-send {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--fb-blue);
  color: var(--accent-ink);
  border: none;
  border-radius: 10px;
  padding: 12px 28px 13px 22px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: filter .15s;
}
.fb-send:hover { filter: brightness(1.12); }
.fb-send:disabled { opacity: .5; cursor: default; }
.fb-send .ico svg {
  width: 26px; height: 26px;
  display: block;
  transform: rotate(-18deg);
}
.fb-send strong { display: block; font-size: .98rem; }
.fb-send small { display: block; font-size: .8rem; font-weight: 400; opacity: .9; margin-top: 1px; }

.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-status { display: block; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.fb-status.ok { color: var(--free); }
.fb-status.err { color: var(--live); }

@media (max-width: 680px) { .fb-types { flex-direction: column; } .fb-card { justify-content: flex-start; } }

/* ====== Live-Band (Startseite, "JETZT LIVE") ====== */
.live-wrap { margin: 4px 0 26px; }
.live-wrap[hidden] { display: none; }
.live-head { display: flex; align-items: center; gap: 11px; margin: 0 0 13px; }
.live-head .txt { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: .92rem; letter-spacing: .02em; }
.live-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 4px rgba(255,77,94,.2); animation: pulse 1.6s infinite; }
.live-head.up .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(91,155,255,.2); }
.live-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.live-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .live-rail { grid-template-columns: 1fr; gap: 11px; } }
.live-tile {
  border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px;
  position: relative; overflow: hidden; text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, rgba(255,77,94,.08), var(--panel));
  box-shadow: 0 20px 40px -30px rgba(0,0,0,.9); transition: border-color .15s, transform .08s;
}
.live-tile.up { background: linear-gradient(180deg, rgba(91,155,255,.09), var(--panel)); }
.live-tile:hover { border-color: var(--accent); }
.live-tile .lt-top { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.live-tile .lt-top .cmp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-tile .lt-min { color: var(--live); font-weight: 800; flex: none; display: flex; align-items: center; gap: 5px; }
.live-tile.up .lt-min { color: var(--accent-text, var(--accent-2)); }
.live-tile .lt-min.blink::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--live); animation: pulse 1.4s infinite; }
.lt-row { display: flex; align-items: center; gap: 11px; margin-top: 12px; }
.lt-row .nm { flex: 1; min-width: 0; font-weight: 700; font-size: 1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-row .sc { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.live-tile .lt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.live-tile .lt-watch { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Sportart-Icon vor der Sektions-Überschrift */
.sport-title .sport-ic {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem;
}

/* ====== "Mein Empfang" (lokaler Abo-Filter) ====== */
.recv-row { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.recv-lbl { font-size: .82rem; font-weight: 800; white-space: nowrap; }
.recv-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.recv-chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: border-color .15s, background .15s, color .15s;
}
.recv-chip:hover { border-color: var(--accent); }
.recv-chip.on { background: rgba(40,209,124,.12); border-color: rgba(40,209,124,.5); color: var(--chip-free-fg); }
.recv-chip.only { margin-left: 4px; }
.recv-chip.only.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.recv-chip[hidden] { display: none; }
.recv-sum { margin-left: auto; font-size: .82rem; color: var(--muted); }
.recv-sum b { color: var(--free); }

/* Schaubar-Kennzeichnung in der Senderzeile */
.watchtag { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 800;
  white-space: nowrap; }
.watchtag.ok { color: var(--free); }
.watchtag.no { color: var(--muted-2); }

/* ====== Top-Spiele heute (renderTopHero) ====== */
.top-hero { margin: 4px 0 22px; }
.top-hero[hidden] { display: none; }
.top-hero-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .92rem;
  margin: 0 0 12px; color: var(--gold, #ffcf5b); }
.th-star { font-size: 1rem; }
.th-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .th-row { grid-template-columns: 1fr; } }
.th-card { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px;
  overflow: hidden; background: linear-gradient(180deg, rgba(255,207,91,.07), var(--panel));
  box-shadow: 0 20px 44px -32px rgba(0,0,0,.9); }
.th-rank { position: absolute; top: 12px; right: 14px; font-size: .7rem; font-weight: 800;
  color: var(--gold, #ffcf5b); letter-spacing: .06em; }
.th-cp { font-size: .64rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
  margin-bottom: 11px; padding-right: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-team { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-weight: 700; min-width: 0; }
.th-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.th-ko { font-weight: 800; font-variant-numeric: tabular-nums; }
.th-ko .lv { color: var(--live); }

/* ====== "Deine Teams"-Leiste (renderFavRail) ====== */
.fav-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 0 0 18px; }
.fav-wrap[hidden] { display: none; }
.fav-lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.fav-rail { display: flex; gap: 10px; flex-wrap: wrap; }
.fav-team { display: inline-flex; align-items: center; gap: 8px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 6px; }
.fav-name { font-size: .84rem; font-weight: 600; }
.fav-x { border: 0; background: none; color: var(--muted-2); cursor: pointer; font-size: .9rem;
  line-height: 1; padding: 0 4px; border-radius: 50%; }
.fav-x:hover { color: var(--live); }

/* Folge-Markierung + Aufklapp-Hinweis in der Spielzeile */
.game.followed { box-shadow: inset 3px 0 0 var(--gold, #ffcf5b); }
.game.followed.live-now { box-shadow: inset 3px 0 0 var(--live); }
.fav-star { color: var(--gold, #ffcf5b); font-size: .9rem; flex: none; }
.game.expandable { cursor: pointer; }
.game.expandable:hover { background: color-mix(in srgb, var(--panel) 90%, var(--accent)); }
.game-time { position: relative; }
.game.expandable .game-time::after { content: "▾ Details"; display: block; margin-top: 6px;
  font-size: .58rem; font-weight: 700; letter-spacing: .04em; color: var(--muted-2); }
.game.expandable.open .game-time::after { content: "▴ weniger"; color: var(--accent); }

/* ====== Detail-Panel (detailPanel) ====== */
.detail-panel { grid-column: 1 / -1; margin-top: 12px; padding-top: 14px;
  border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 12px; }
.dp-watch { font-size: .82rem; font-weight: 700; }
.dp-watch.ok { color: var(--free); }
.dp-watch.no { color: var(--muted-2); }
.dp-groups { display: flex; flex-direction: column; gap: 9px; }
.dp-grp { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.dp-glbl { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  min-width: 70px; padding-top: 5px; }
.dp-glbl.free { color: var(--free); } .dp-glbl.pay { color: var(--pay); } .dp-glbl.stream { color: var(--stream); }
.dp-chs { display: flex; gap: 7px; flex-wrap: wrap; flex: 1; }
.dp-note { color: var(--note); font-size: .82rem; }
/* Vereins-Spielplaene direkt aus dem Spiel heraus erreichbar */
.dp-teams { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dp-tlbl { color: var(--muted-2); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; }
.dp-team { color: var(--muted); text-decoration: none; font-size: .84rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.dp-team:hover { color: var(--accent); border-color: var(--accent); }
.dp-acts { display: flex; gap: 9px; flex-wrap: wrap; }
.dp-act { display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; padding: 9px 14px;
  font-size: .85rem; font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: none;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.dp-act:hover { border-color: var(--accent); }
.dp-act.p { background: linear-gradient(135deg, var(--accent), #4179dd); color: #fff; border-color: transparent; }

/* ====== Ergebnisse heute (renderList) ====== */
.results-wrap { margin: 26px 0 0; border-top: 1px solid var(--line); padding-top: 14px; }
.results-head { display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; color: var(--text); font-family: inherit; cursor: pointer; padding: 6px 2px;
  font-weight: 800; font-size: .95rem; }
.rh-cnt { font-size: .72rem; font-weight: 800; color: var(--muted); background: var(--cnt-bg); border-radius: 999px; padding: 2px 9px; margin-left: 6px; }
.rh-chev { color: var(--muted); transition: transform .15s; }
.results-wrap.open .rh-chev { transform: rotate(180deg); }
.results-body[hidden] { display: none; }
.results-body { margin-top: 10px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent); }
.rrow { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 16px; padding: 12px 18px; }
.rrow + .rrow { border-top: 1px solid var(--line-soft); }
.rrow .rt { font-size: .56rem; font-weight: 800; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.rrow .rt b { display: block; font-size: .78rem; color: var(--text); font-variant-numeric: tabular-nums; }
.rmatch { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rmatch .tm { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 1rem; }
.rmatch .tm .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmatch .tm .sc { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; padding-left: 12px; }
.rmatch .tm.win .sc { color: var(--free); }
.rmatch .cp { color: var(--muted); font-size: .78rem; }
.rchan { display: flex; align-items: center; gap: 7px; justify-content: flex-end; }
.muted-note { color: var(--muted); font-size: .72rem; }
@media (max-width: 560px) { .rrow { grid-template-columns: 50px 1fr; } .rchan { grid-column: 1 / -1; justify-content: flex-start; margin-top: 2px; } }

/* ====== Footer ====== */
.site-footer { color: var(--muted); font-size: .8rem; text-align: center; padding: 26px 0 34px; }
.site-footer a { color: var(--accent); }
code { background: var(--panel-2); padding: 1px 6px; border-radius: 4px; }

@media (max-width: 560px) {
  .game { grid-template-columns: 64px 1fr; }
  /* Die Zeile hat DREI Kinder (Zeit | Paarung | Sender). Auf Handybreite bleiben
     nur zwei Spalten – die Senderspalte rutschte dadurch in die naechste Zeile
     und landete in der 64px schmalen ZEITSPALTE. Weil `.channels` rechtsbuendig
     ist (justify-content:flex-end) und die Badges nicht umbrechen, lief der
     Inhalt dort nach LINKS aus dem Bild: von jedem Sendernamen war nur das Ende
     zu sehen (Bug-Report 16.08.2026). Deshalb hier ueber die volle Breite und
     linksbuendig – genau wie es .rchan in der Ergebnisliste schon macht. */
  .game > .channels { grid-column: 1 / -1; justify-content: flex-start; margin-top: 7px; }
  .game-time .t { font-size: 1.1rem; }
  .meta { text-align: left; }
}

/* ====== Kommende Spiele (Spielplan-Panel bei Liga-Auswahl, "Meine Ligen") ====== */
.fx-section { margin-top: 22px; }
.fx-day { margin-bottom: 4px; }
.fx-day-head {
  font-size: .76rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em;
  margin: 14px 0 6px;
}
.fx-row {
  display: flex; gap: 12px; align-items: baseline;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: .92rem;
}
.fx-time {
  font-variant-numeric: tabular-nums;
  color: var(--accent); font-weight: 700;
  min-width: 44px;
}
.fx-teams { flex: 1; min-width: 0; }
.fx-vs { color: var(--muted); }
.fx-round { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.fx-more {
  display: block; width: 100%;
  margin-top: 4px; padding: 9px 12px;
  background: var(--panel); color: var(--text);
  border: 1px dashed var(--line); border-radius: 8px;
  font-family: inherit; font-size: .86rem; cursor: pointer;
}
.fx-more:hover { border-color: var(--accent); color: var(--accent); }
.fx-src { color: var(--muted); font-size: .72rem; margin-top: 8px; }
.empty.fx-soft { padding: 14px; margin-bottom: 4px; }
@media (max-width: 560px) {
  .fx-row { flex-wrap: wrap; }
  .fx-round { width: 100%; padding-left: 56px; }
}
