/* Esports auf der Hauptseite (29.10.2026): Banner, TV-&-Spielplan-Block, Livecenter-Filter,
 * Mein KickScope, Schlagzeilen-Kategorie. Nur esh-* Klassen - bestehende Regeln bleiben unberuehrt.
 * Farben aus den Seiten-Tokens (--panel, --border, --text-*, --gold), Hell/Dunkel ueber v21-theme.js.
 * Cache: KS_ESPORTS_HUB_CSS_V in v21/esports/hub.php hochzaehlen. */

.esh {
  --esh-navy-1: rgb(var(--kt-0b1730, 11 23 48)); --esh-navy-2: rgb(var(--kt-101f3d, 16 31 61)); --esh-ink: rgb(var(--kt-eef3fb, 238 243 251)); --esh-muted: rgb(var(--kt-a9b8cf, 169 184 207));
  --esh-gold-1: rgb(var(--kt-f3d68e, 243 214 142)); --esh-gold-2: rgb(var(--kt-c99a3c, 201 154 60)); --esh-line: rgb(var(--kt-acbed4, 172 190 212) / .16);
}

/* ---------- Spiel-Glyphe + Team-Monogramm ---------- */
.esh-gi {
  display: inline-grid; place-items: center; flex: none; border-radius: 9px; color: rgb(var(--kt-0a0f1a, 10 15 26));
  background: linear-gradient(135deg, var(--gc, rgb(var(--kt-e3bf78, 227 191 120))), color-mix(in srgb, var(--gc, rgb(var(--kt-e3bf78, 227 191 120))) 55%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.esh-gi svg { width: 64%; height: 64%; display: block; }
.esh-mono {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--tc, rgb(var(--kt-e3bf78, 227 191 120))); background: rgb(var(--kt-080e1a, 8 14 26) / .55); color: #fff;
  font: 700 11px/1 "KS Display", "Arial Narrow", sans-serif; letter-spacing: .02em; text-transform: uppercase;
}
:root[data-theme="light"] .esh-mono { background: #fff; color: rgb(var(--kt-10203a, 16 32 58)); }

/* ---------- Match-Zeile ---------- */
.esh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.esh-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--border, var(--esh-line)); background: var(--panel, rgba(255, 255, 255, .03));
}
.esh-row-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; }
.esh-row-main:hover .esh-row-names b { color: var(--gold-text, var(--gold)); }
.esh-row-time { display: flex; flex-direction: column; min-width: 86px; font-variant-numeric: tabular-nums; }
.esh-row-time time { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.esh-row-time small { color: var(--text-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; }
.esh-row-teams { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.esh-row-names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; min-width: 0; flex: 1; }
.esh-row-names b { font-weight: 700; font-size: 14px; overflow-wrap: break-word; hyphens: manual; transition: color .15s; }
.esh-row-names i { font-style: normal; color: var(--text-muted); font-size: 12px; }
.esh-row-names small { flex-basis: 100%; color: var(--text-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esh-stream {
  display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 170px; padding: 7px 11px; border-radius: 9px;
  border: 1px solid rgba(145, 70, 255, .55); color: inherit; font-size: 12.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(145, 70, 255, .1);
}
.esh-stream svg { color: #a970ff; flex: none; }
.esh-stream:hover { background: rgba(145, 70, 255, .2); }
.esh-stream.none { border-color: var(--border, var(--esh-line)); background: none; color: var(--text-muted); font-weight: 600; }
:root[data-theme="light"] .esh-stream svg { color: #6b2fd6; }
@media (max-width: 640px) {
  .esh-row { flex-wrap: wrap; row-gap: 6px; }
  .esh-row-main { flex: 1 1 100%; gap: 10px; }
  .esh-row-teams .esh-mono { display: none; }
  .esh-row-time { min-width: 66px; }
  .esh-row-names small { white-space: normal; }
  .esh-stream { margin-left: 40px; max-width: calc(100% - 40px); }
}

/* ---------- Startseiten-Banner ---------- */
.esh-banner {
  position: relative; overflow: hidden; border-radius: 20px; color: var(--esh-ink);
  border: 1px solid rgb(var(--kt-e2bd65, 226 189 101) / .32);
  background:
    radial-gradient(700px 320px at 88% 10%, rgb(var(--kt-4f8df7, 79 141 247) / .28), transparent 62%),
    radial-gradient(520px 300px at 8% 110%, rgb(var(--kt-e2bd65, 226 189 101) / .18), transparent 60%),
    linear-gradient(120deg, var(--esh-navy-1), var(--esh-navy-2));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 26px; padding: 28px 30px;
}
.esh-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, .025) 46px 48px);
}
.esh-banner > * { position: relative; }
.esh-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--esh-gold-1); font: 700 12px/1 "KS Display", sans-serif; letter-spacing: .22em; text-transform: uppercase; }
.esh-eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--esh-gold-1), transparent); }
.esh-banner h2 { margin: 12px 0 10px; font: 700 clamp(30px, 3.6vw, 46px)/.98 "KS Display", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: -.01em; color: #fff; }
.esh-banner h2 em { font-style: normal; background: linear-gradient(180deg, var(--esh-gold-1), var(--esh-gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.esh-banner p { margin: 0 0 18px; color: var(--esh-muted); max-width: 46ch; }
.esh-games { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.esh-games a {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; color: #fff;
  border: 1px solid rgba(255, 255, 255, .14); background: rgb(var(--kt-080e1a, 8 14 26) / .45); font-size: 13px; font-weight: 700;
}
.esh-games a:hover { border-color: rgb(var(--kt-f3d68e, 243 214 142) / .6); }
.esh-games small { color: var(--esh-gold-1); font-weight: 800; }
.esh-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.esh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 10px; font-weight: 700; font-size: 14.5px; white-space: nowrap; color: #fff;
  border: 1.5px solid rgb(var(--kt-f3d68e, 243 214 142) / .7); background: rgb(var(--kt-080e1a, 8 14 26) / .45);
}
.esh-btn.gold { border: 0; color: rgb(var(--kt-1a1408, 26 20 8)); background: linear-gradient(180deg, var(--esh-gold-1), var(--esh-gold-2)); box-shadow: 0 8px 24px rgb(var(--kt-e2bd65, 226 189 101) / .25); }
.esh-btn:hover { transform: translateY(-1px); }
.esh-banner-matches { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.esh-banner-matches h3 { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--esh-muted); }
.esh-banner-matches h3 a { color: var(--esh-gold-1); letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.esh-banner .esh-row { border-color: rgba(255, 255, 255, .1); background: rgb(var(--kt-080e1a, 8 14 26) / .55); color: #fff; }
.esh-banner .esh-row-time small, .esh-banner .esh-row-names i, .esh-banner .esh-row-names small { color: var(--esh-muted); }
.esh-banner .esh-mono { background: rgb(var(--kt-080e1a, 8 14 26) / .7); color: #fff; }
.esh-banner .esh-stream { color: #fff; }
.esh-banner .esh-stream svg { color: #b58cff; }
.esh-banner .esh-stream.none { color: var(--esh-muted); border-color: rgba(255, 255, 255, .14); }
.esh-note { margin: 2px 0 0; font-size: 11.5px; color: var(--esh-muted); }
.esh-note a { text-decoration: underline; color: inherit; }
.esh-banner .esh-empty { margin: 0; padding: 16px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .18); color: var(--esh-muted); }
@media (max-width: 980px) { .esh-banner { grid-template-columns: 1fr; padding: 22px 18px; gap: 18px; } }

/* ---------- TV & Spielplan: E-Sport-Block je Tag ---------- */
.esh-tv { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--k3-line, var(--border)); }
.esh-tv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.esh-tv-head b { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); }
.esh-tv-head a { font-size: 13px; font-weight: 700; color: var(--gold-text, var(--gold)); white-space: nowrap; }
.esh-tv .esh-row { padding: 6px 8px; }
.esh-tv .esh-mono { width: 28px; height: 28px; font-size: 10px; }

/* ---------- Livecenter ---------- */
.esh-live { margin: 6px 0 24px; }
.esh-live-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.esh-live-head h2 { margin: 0; font: 700 22px/1.1 "KS Display", sans-serif; text-transform: uppercase; }
.esh-live-hint { margin: 0 0 12px; color: var(--text-secondary); font-size: 13.5px; }
.esh-day { margin: 16px 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Mein KickScope ---------- */
.esh-mine .esh-row { padding: 6px 8px; }
.esh-mine-teams { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.esh-mine-teams span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; border: 1px solid var(--border, var(--esh-line)); font-size: 12.5px; font-weight: 600; }
.esh-mine-teams .esh-mono { width: 24px; height: 24px; font-size: 9px; border-width: 1.5px; }

/* ---------- Schlagzeilen-Kategorie ---------- */
.esh-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.esh-news a {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; color: inherit;
  border: 1px solid var(--border, var(--esh-line)); background: var(--panel, rgba(255, 255, 255, .03));
}
.esh-news a:hover { border-color: var(--gold); }
.esh-news .esh-news-meta { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; }
.esh-news b { font-size: 16px; line-height: 1.3; }
.esh-news p { margin: 0; color: var(--text-secondary); font-size: 13.5px; }
.esh-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: rgba(145, 70, 255, .16); color: inherit; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) { .esh-btn:hover { transform: none; } }

/* Schlagzeilen-Karte (Kategorie E-Sport) */
.esh-nw-img { background: radial-gradient(260px 160px at 80% 0%, rgb(var(--kt-4f8df7, 79 141 247) / .35), transparent 60%), linear-gradient(120deg, rgb(var(--kt-0b1730, 11 23 48)), rgb(var(--kt-18264a, 24 38 74))) !important; }
.esh-nw-img .ph { display: inline-flex; align-items: center; gap: 10px; color: rgb(var(--kt-f3d68e, 243 214 142)); font: 700 20px/1 "KS Display", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
/* Startseite: E-Sport in der Sportarten-Leiste leicht abgesetzt (klassische Sportarten bleiben vorn) */
.k3-hero-sports .k3-hero-esport svg { color: #b58cff; }
/* Schmale Karten (Mein KickScope, Startseite + /mein-kickscope): Zeile immer gestapelt -
   die Breite haengt hier an der Karte, nicht am Bildschirm. */
.esh-mine .esh-row { flex-wrap: wrap; row-gap: 6px; }
.esh-mine .esh-row-main { flex: 1 1 100%; }
.esh-mine .esh-row-names small { white-space: normal; }
.esh-mine .esh-stream { margin-left: 38px; max-width: calc(100% - 38px); }

/* Kompaktes Banner (29.10.2026, Runde 3): kein ueberdimensionierter E-Sport-Bereich */
.esh-banner { padding: 20px 24px; gap: 20px; border-radius: 16px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); }
.esh-banner h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 8px 0 6px; }
.esh-banner p { margin-bottom: 12px; font-size: 14px; }
.esh-games { margin-bottom: 14px; gap: 6px; }
.esh-games a { padding: 4px 10px 4px 4px; font-size: 12.5px; }
.esh-btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.esh-banner-matches { gap: 8px; }
.esh-banner .esh-row { padding: 6px 8px; }
.esh-banner .esh-mono { width: 30px; height: 30px; font-size: 10px; }
@media (max-width: 980px) { .esh-banner { grid-template-columns: 1fr; padding: 18px 16px; gap: 14px; } }
@media (max-width: 640px) {
  .esh-banner .esh-games { display: none; }
  .esh-banner .esh-list .esh-row:nth-child(n+3) { display: none; }
  .esh-banner p { margin-bottom: 10px; }
  .esh-cta { flex-wrap: nowrap; gap: 8px; }
  .esh-cta .esh-btn { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 13px; }
  .esh-banner-matches h3 { font-size: 11.5px; }
}

/* Startseite TV-Block (29.10.2026): Namen lesbar, einheitliche Stream-Knoepfe.
   Monogramme entfallen hier (Platz), Namen brechen nur an Wortgrenzen. */
.esh-tv .esh-mono { display: none; }
.esh-tv .esh-row-teams { gap: 0; }
.esh-tv .esh-row-names { gap: 0 6px; }
.esh-tv .esh-row-names b { font-size: 13.5px; line-height: 1.3; }
.esh-tv .esh-row-time { min-width: 78px; }
.esh-tv .esh-row-time time { font-size: 13px; }
.esh-tv .esh-stream, .esh-banner .esh-stream { width: 148px; max-width: 148px; justify-content: center; }
.esh-tv .esh-list { gap: 6px; }
@media (max-width: 640px) {
  .esh-tv .esh-stream, .esh-banner .esh-stream { width: auto; max-width: calc(100% - 40px); justify-content: flex-start; }
}
