/* ==========================================================================
   Football Huddle – Web-App, Bereich „Liga“ (views/league.js)
   Tabellen, Play-off-Bild, Teams, Teamseite, Verletzungen, Statistik-Zentrale,
   Spielerprofil und Vergleich. Baut auf huddle.css auf (Tokens, Karten, Tabellen);
   alle eigenen Klassen tragen das Präfix „lg-“.
   ========================================================================== */

:root {
  --lg-warn: #FFB340;   /* „fraglich“ im Verletzungsbericht – bewusst nicht First-Down-Gelb */
}

/* 1 · Kleinteile ---------------------------------------------------------- */
.lg-seed {
  display: inline-grid; place-items: center; flex: none;
  min-width: 26px; height: 26px; padding: 0 5px; border-radius: 8px;
  font-family: var(--font-score); font-stretch: 70%; font-weight: 900; font-size: .95rem; line-height: 1;
  color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  font-variant-numeric: tabular-nums;
}
.lg-seed--bye { background: color-mix(in srgb, var(--line) 18%, transparent); border-color: color-mix(in srgb, var(--line) 55%, transparent); color: var(--line); }
.lg-seed--sm { min-width: 20px; height: 20px; font-size: .8rem; border-radius: 6px; }

.lg-rank {
  display: inline-grid; place-items: center; flex: none;
  width: var(--lg-rank, 26px); height: var(--lg-rank, 26px); border-radius: 50%;
  font-family: var(--font-score); font-stretch: 72%; font-weight: 900; font-size: calc(var(--lg-rank, 26px) * .5);
  color: var(--mist); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  font-variant-numeric: tabular-nums;
}
.lg-rank.is-top { color: var(--night); background: var(--mist); border-color: transparent; }

.lg-clinch {
  display: inline-grid; place-items: center; flex: none; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 5px; font-size: .68rem; font-weight: 900; text-transform: lowercase; line-height: 1;
  color: var(--night); background: var(--sky);
}
.lg-clinch--e { background: rgba(255, 255, 255, .14); color: var(--muted); }

.lg-star-btn {
  display: inline-flex; align-items: center; gap: 6px;
}
.lg-star-btn[aria-pressed="true"] .icon { color: var(--line); }

.lg-num { font-variant-numeric: tabular-nums; }
.lg-muted { color: var(--muted); }
.lg-pos { display: inline-block; min-width: 2.4em; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .04em; color: var(--muted); }
.lg-hairline { height: 1px; background: rgba(255, 255, 255, .08); border: 0; margin: var(--space-3) 0; }
.lg-eyebrow-row { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-3) 0 var(--space-1); }
.lg-eyebrow-row::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .08); }
.lg-eyebrow-row > .t-eyebrow { margin: 0; }

/* Spoiler für Tabellen/Bilanzen */
.lg-veil { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.lg-veil__text { flex: 1 1 220px; margin: 0; color: var(--muted); }
.lg-hidden-record { font-family: var(--font-score); font-stretch: 70%; font-weight: 900; letter-spacing: .1em; color: var(--slate); }

/* 2 · Tabs der Teamseite / Ansichtsumschalter ------------------------------- */
.lg-tabs { display: flex; max-width: 100%; }
.lg-tabs .segmented { width: max-content; max-width: 100%; }
.lg-panel { min-height: 160px; }
.lg-panel:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus); border-radius: var(--radius); }

/* 3 · Liga-Start ------------------------------------------------------------ */
.lg-hero { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: center; }
.lg-hero__badge svg { display: block; filter: drop-shadow(0 6px 22px color-mix(in srgb, var(--team-glow) 55%, transparent)); }
.lg-hero__text { min-width: 0; }
.lg-hero__name { margin: 0; font-size: var(--fs-2xl); font-weight: 900; font-stretch: 112%; line-height: 1.05; overflow-wrap: anywhere; }
.lg-hero__stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3) var(--space-5); }
.lg-hero__record { line-height: .9; }
.lg-hero__meta { display: flex; flex-direction: column; gap: 6px; }
.lg-hero__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.lg-next { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.lg-next__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lg-next__text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lg-favchips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.lg-favchip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--team-glow) 18%, rgba(255,255,255,.05)); border: 1px solid var(--glass-border);
  color: #fff; font-weight: 700; font-size: var(--fs-sm); text-decoration: none; }
.lg-favchip:hover { border-color: var(--glass-border-strong); color: #fff; }

.lg-tiles { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.lg-tile { display: flex; flex-direction: column; gap: var(--space-3); min-height: 138px; }
.lg-tile__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  color: var(--tile, var(--sky)); background: color-mix(in srgb, var(--tile, var(--sky)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tile, var(--sky)) 32%, transparent); }
.lg-tile__head { display: flex; align-items: center; justify-content: space-between; }
.lg-tile__title { font-weight: 850; font-stretch: 112%; font-size: var(--fs-lg); line-height: 1.15; color: #fff; }
.lg-tile__text { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.35; }

/* Seeds-Karten (Play-off-Bild) */
.lg-seeds__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.lg-seeds__title { margin: 0; font-size: var(--fs-2xl); font-weight: 900; font-stretch: 112%; }
.lg-seedrow { position: relative; display: flex; align-items: center; gap: var(--space-2); padding: 7px 8px; margin: 0 -8px;
  border-radius: 12px; color: inherit; text-decoration: none; min-width: 0; }
.lg-seedrow:hover { background: rgba(255, 255, 255, .04); color: inherit; }
.lg-seedrow.is-favorite { background: color-mix(in srgb, var(--team-glow) 20%, transparent); }
.lg-seedrow__name { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.lg-seedrow__name > span:first-child { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-seedrow__note { font-size: var(--fs-xs); color: color-mix(in srgb, var(--line) 85%, #fff); }
.lg-seedrow__sub { font-size: var(--fs-xs); color: var(--muted); }
.lg-seedrow__record { font-family: var(--font-score); font-stretch: 72%; font-weight: 850; font-size: 1.2rem; color: var(--mist); font-variant-numeric: tabular-nums; }

.lg-matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-2);
  padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.lg-matchup + .lg-matchup { margin-top: var(--space-2); }
.lg-matchup__side { display: flex; align-items: center; gap: 8px; min-width: 0; color: inherit; text-decoration: none; }
.lg-matchup__side--home { justify-content: flex-end; text-align: right; }
.lg-matchup__abbr { display: block; font-weight: 900; font-stretch: 80%; font-size: var(--fs-lg); line-height: 1.1; color: #fff; }
.lg-matchup__sub { display: block; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-matchup__at { font-weight: 900; font-stretch: 120%; color: var(--slate); font-size: var(--fs-sm); }

/* 4 · Tabellen ---------------------------------------------------------------- */
/* Spalten richten sich nach der Breite der Tabelle selbst (Container), nicht nach dem Fenster:
   .lg-c2 = zweitrangig (fällt unter 420 px weg), .lg-c3 = Zusatz (fällt unter 620 px weg). */
.lg-cq { container-type: inline-size; }
@container (max-width: 620px) { .lg-c3 { display: none; } }
@container (max-width: 420px) { .lg-c2 { display: none; } }
.lg-body .table thead abbr[title], .lg-panel .table thead abbr[title] { text-decoration: none; cursor: help; }
.lg-body > .segmented { align-self: flex-start; }
.lg-standings .table td { vertical-align: middle; }
.lg-teamcell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lg-teamcell a { color: #fff; font-weight: 750; text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.lg-teamcell a:hover { text-decoration: underline; }
.lg-teamcell a:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus); border-radius: 4px; }
.lg-teamcell .fav-star { color: var(--line); display: inline-flex; }
.lg-teamcell__name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.lg-legend { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--muted); }
.lg-legend li { display: flex; gap: var(--space-2); align-items: center; }

.lg-diff-pos { color: var(--win); }
.lg-standings .table tr.lg-cut td { border-top: 2px solid color-mix(in srgb, var(--line) 70%, transparent); }
.lg-divcard > .card__title { padding: var(--space-4) var(--space-4) 0; }
.lg-diff-neg { color: var(--loss); }

/* 5 · Teams-Raster ------------------------------------------------------------ */
.lg-teamgrid { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .lg-teamgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lg-teamtile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-2);
  padding: var(--space-4) var(--space-3) var(--space-3); }
.lg-teamtile .card__link { z-index: 0; }
.lg-teamtile__badge svg { display: block; filter: drop-shadow(0 4px 16px color-mix(in srgb, var(--team-glow) 45%, transparent)); }
.lg-teamtile__city { font-size: var(--fs-xs); color: var(--muted); line-height: 1.2; }
.lg-teamtile__name { font-weight: 850; font-stretch: 108%; line-height: 1.15; color: #fff; }
.lg-teamtile__record { font-family: var(--font-score); font-stretch: 72%; font-weight: 850; color: var(--mist); font-variant-numeric: tabular-nums; }
.lg-teamtile__fav { position: absolute; top: 6px; right: 6px; z-index: 1; }
.lg-teamtile__fav .btn { width: 36px; height: 36px; min-height: 36px; }

/* 6 · Teamseite --------------------------------------------------------------- */
.lg-teamhead { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4) var(--space-5); align-items: center; }
.lg-teamhead__badge svg { display: block; filter: drop-shadow(0 8px 26px color-mix(in srgb, var(--team-glow) 60%, transparent)); }
.lg-teamhead__title { margin: 0; font-size: var(--fs-3xl); font-weight: 900; font-stretch: 112%; line-height: 1; overflow-wrap: anywhere; }
.lg-teamhead__body { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-4) var(--space-6); }
.lg-teamhead__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-2); }
@media (min-width: 720px) {
  .lg-teamhead { grid-template-columns: auto 1fr auto; }
  .lg-teamhead__body { grid-column: auto; justify-content: flex-end; }
}

.lg-games { list-style: none; margin: 0; padding: 0; }
.lg-games > li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
.lg-game { position: relative; display: grid; grid-template-columns: 3.2em auto 1fr auto; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); min-height: 60px; }
.lg-game:hover { background: rgba(255, 255, 255, .03); }
.lg-game > *:not(.card__link) { position: relative; z-index: 1; pointer-events: none; }
.lg-game button, .lg-game a:not(.card__link) { pointer-events: auto; }
.lg-game__week { font-family: var(--font-score); font-stretch: 72%; font-weight: 900; color: var(--slate); font-size: 1.05rem; }
.lg-game__main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lg-game__opp { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-game__when { font-size: var(--fs-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-game__result { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.lg-game__score { font-family: var(--font-score); font-stretch: 72%; font-weight: 900; font-size: 1.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.lg-game__rec { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-game--bye { grid-template-columns: 3.2em 1fr; color: var(--muted); font-style: italic; min-height: 44px; }
.lg-letter { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 900; font-size: .75rem; }
.lg-letter--S { background: color-mix(in srgb, var(--win) 20%, transparent); color: #A7F3C0; }
.lg-letter--N { background: color-mix(in srgb, var(--loss) 20%, transparent); color: #FFC2BD; }
.lg-letter--U { background: rgba(255, 255, 255, .12); color: var(--mist); }

.lg-form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.lg-form__item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--space-3) 4px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); color: inherit; text-decoration: none; min-width: 0; }
.lg-form__item:hover { background: rgba(255, 255, 255, .09); color: inherit; }
.lg-form__item .lg-letter { width: 30px; height: 30px; font-size: .9rem; border-radius: 9px; }
.lg-form__opp { font-size: var(--fs-xs); font-weight: 850; font-stretch: 80%; color: var(--mist); }
.lg-form__score { font-family: var(--font-score); font-stretch: 72%; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }

.lg-facts { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.lg-fact { display: flex; flex-direction: column; gap: 4px; padding: var(--space-4); }
.lg-fact__value { font-family: var(--font-score); font-stretch: 72%; font-weight: 900; font-size: 1.85rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lg-fact__detail { font-size: var(--fs-xs); color: var(--muted); line-height: 1.35; }
.lg-fact .t-eyebrow { margin: 0; }

.lg-depth { display: grid; gap: 0; }
.lg-depth__row { display: grid; grid-template-columns: 3.6em 1fr; gap: var(--space-3); align-items: start; padding: 10px 0; }
.lg-depth__row + .lg-depth__row { border-top: 1px solid rgba(255, 255, 255, .07); }
.lg-depth__pos { font-weight: 900; font-stretch: 80%; color: var(--sky); padding-top: 2px; }
.lg-depth__pos small { display: block; font-weight: 600; font-stretch: 100%; font-size: .68rem; color: var(--muted); line-height: 1.2; }
.lg-depth__names { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.lg-depth__name { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .05); font-size: var(--fs-sm); color: var(--mist); text-decoration: none; }
.lg-depth__name:first-child { background: rgba(255, 255, 255, .11); color: #fff; font-weight: 750; }
.lg-depth__name.is-out { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--loss) 70%, transparent); }
.lg-depth__num { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .3); font-size: .68rem; font-weight: 900; color: var(--muted); }

.lg-news { list-style: none; margin: 0; padding: 0; }
.lg-news > li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
.lg-news__item { display: block; padding: var(--space-4); color: inherit; text-decoration: none; }
.lg-news__item:hover { background: rgba(255, 255, 255, .03); color: inherit; }
.lg-news__item:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: inset var(--focus); }
.lg-news__title { font-weight: 800; line-height: 1.3; color: #fff; }
.lg-news__desc { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
.lg-news__meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--fs-xs); color: var(--slate); }

.lg-tx { list-style: none; margin: 0; padding: 0; }
.lg-tx > li { display: grid; grid-template-columns: 4.2em 1fr; gap: var(--space-3); padding: var(--space-3) var(--space-4); }
.lg-tx > li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
.lg-tx__date { font-family: var(--font-score); font-stretch: 72%; font-weight: 850; color: var(--slate); line-height: 1.2; }
.lg-tx__text { margin: 0; font-size: var(--fs-sm); line-height: 1.45; }
.lg-tx__kinds { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

/* 7 · Verletzungen ------------------------------------------------------------- */
.lg-status { display: inline-grid; place-items: center; min-width: 3.4em; padding: 3px 6px; border-radius: 7px; flex: none;
  font-size: .7rem; font-weight: 900; letter-spacing: .03em; line-height: 1.1;
  background: rgba(255, 255, 255, .1); color: var(--mist); }
.lg-status--out { background: color-mix(in srgb, var(--loss) 22%, transparent); color: #FFC2BD; }
.lg-status--warn { background: color-mix(in srgb, var(--lg-warn) 20%, transparent); color: #FFD89A; }
.lg-status--ok { background: color-mix(in srgb, var(--win) 18%, transparent); color: #A7F3C0; }
.lg-inj { list-style: none; margin: 0; padding: 0; }
.lg-inj > li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); padding: var(--space-3) var(--space-4); align-items: start; }
.lg-inj > li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
.lg-inj__name { font-weight: 750; }
.lg-inj__name a { color: #fff; text-decoration: none; }
.lg-inj__name a:hover { text-decoration: underline; }
.lg-inj__meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.lg-inj details { margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); }
.lg-inj summary { cursor: pointer; color: var(--sky); font-size: var(--fs-xs); font-weight: 700; width: max-content; max-width: 100%; }
.lg-inj summary:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus); border-radius: 4px; }
.lg-inj details p { margin: 6px 0 0; line-height: 1.45; }
.lg-teamhead-sm { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lg-teamhead-sm a { color: #fff; font-weight: 800; text-decoration: none; }
.lg-teamhead-sm .lg-count { margin-left: auto; }
.lg-count { font-family: var(--font-score); font-stretch: 72%; font-weight: 900; color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-filterbar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.lg-filterbar .field { flex: 0 1 360px; min-width: 0; }
.chip[aria-pressed="true"] .lg-count { color: inherit; opacity: .7; }
.chip .lg-count { font-size: .85em; margin-left: 2px; }

/* 8 · Statistik ------------------------------------------------------------------ */
.lg-searchlink { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-pill);
  background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--muted); text-decoration: none; }
.lg-searchlink .icon { color: var(--sky); }
.lg-searchlink:hover { border-color: var(--glass-border-strong); color: #fff; }
.lg-searchlink:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus); }

.lg-metric { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4); }
.lg-metric__value { font-family: var(--font-score); font-stretch: 72%; font-weight: 900; font-size: 2.1rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.lg-metric__rank { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.lg-metric .t-eyebrow { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lg-toplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lg-toplist li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lg-toplist__name { flex: 1; min-width: 0; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-toplist__name.is-favorite { color: var(--line); }
.lg-toplist__value { font-family: var(--font-score); font-stretch: 72%; font-weight: 850; font-size: 1.2rem; font-variant-numeric: tabular-nums; }

.lg-leader { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4); }
.lg-leader__value { font-family: var(--font-score); font-stretch: 72%; font-weight: 900; font-size: 2.3rem; line-height: 1; color: #fff;
  text-shadow: 0 0 18px color-mix(in srgb, var(--team-glow) 55%, transparent); font-variant-numeric: tabular-nums; }
.lg-leader__who { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 750; color: var(--mist); min-width: 0; }
.lg-leader__who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-leader .t-eyebrow { margin: 0; }

.lg-metric-explain { display: grid; gap: var(--space-2); }
.lg-metric-explain__title { margin: 0; font-size: var(--fs-xl); font-weight: 850; font-stretch: 108%; }
.lg-metric-explain p { margin: 0; }

.lg-bar { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; min-width: 60px; }
.lg-bar::before { content: ""; display: block; height: 100%; width: calc(var(--v, 0) * 100%); border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bar, var(--sky)) 55%, transparent), var(--bar, var(--sky))); }
.lg-rankings .table .col-team { width: auto; min-width: 0; white-space: normal; }
@container (max-width: 360px) { .lg-rankings .avatar { display: none; } .lg-rankings .table th, .lg-rankings .table td { padding-inline: 7px; } }
.lg-rankings .table td.lg-barcell { width: 45%; min-width: 90px; }
.lg-rankings .table td.num { font-family: var(--font-score); font-stretch: 74%; font-weight: 850; font-size: 1.05rem; }
.lg-playercell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lg-playercell__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.lg-playercell__text a { color: #fff; font-weight: 750; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.lg-playercell__text a:hover { text-decoration: underline; }
.lg-playercell__text a:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus); border-radius: 4px; }
.lg-playercell__sub { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: var(--muted); }

.lg-results { list-style: none; margin: 0; padding: 0; }
.lg-results > li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
.lg-result { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-3) var(--space-4); min-height: 56px;
  color: inherit; text-decoration: none; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.lg-result:hover { background: rgba(255, 255, 255, .04); color: inherit; }
.lg-result:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: inset var(--focus); }
.lg-result__text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.lg-result__name { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-result__meta { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }

/* 9 · Spielerprofil --------------------------------------------------------------- */
.lg-player { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: center; }
.lg-player__title { margin: 0; font-size: var(--fs-3xl); font-weight: 900; font-stretch: 108%; line-height: 1.02; overflow-wrap: anywhere; }
.lg-player__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; color: var(--mist); font-weight: 650; }
.lg-player__sub a { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.lg-player__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.lg-jersey { font-family: var(--font-score); font-stretch: 70%; font-weight: 900; font-size: 1.4rem; color: var(--sky); }

.lg-dl { display: grid; gap: 0; margin: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.lg-dl > div { padding: var(--space-3) 0; border-bottom: 1px solid rgba(255, 255, 255, .06); padding-right: var(--space-3); }
.lg-dl dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lg-dl dd { margin: 2px 0 0; font-weight: 700; color: #fff; }
.lg-statgrid { display: grid; gap: 0; margin: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.lg-statgrid > div { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.lg-statgrid dt { font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
.lg-statgrid dd { margin: 2px 0 0; font-family: var(--font-score); font-stretch: 74%; font-weight: 850; font-size: 1.35rem; color: #fff; font-variant-numeric: tabular-nums; }
.lg-gamelog .table th[scope="colgroup"] { text-align: center; color: var(--sky); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.lg-gamelog .table td.num { font-variant-numeric: tabular-nums; }

/* 10 · Diagramme (eigenes SVG) ----------------------------------------------------- */
.lg-chart { display: block; width: 100%; height: auto; overflow: visible; }
.lg-chart text { font-family: var(--font); font-size: 11px; fill: var(--muted); }
.lg-chart .lg-chart__grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.lg-chart .lg-chart__avg { stroke-dasharray: 5 4; stroke-width: 1.5; fill: none; }
.lg-chart .lg-chart__line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.lg-chart .lg-chart__dot { stroke: var(--night); stroke-width: 2; }
.lg-legend-row { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0 0 var(--space-2); padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--mist); }
.lg-legend-row li { display: inline-flex; align-items: center; gap: 6px; }
.lg-swatch { width: 12px; height: 12px; border-radius: 4px; background: var(--c, var(--sky)); flex: none; }
.lg-chartdata { margin-top: var(--space-3); font-size: var(--fs-sm); }
.lg-chartdata summary { cursor: pointer; color: var(--sky); font-weight: 700; font-size: var(--fs-xs); width: max-content; max-width: 100%; }
.lg-chartdata summary:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus); border-radius: 4px; }
.lg-chartdata .table-wrap { margin-top: var(--space-2); }

/* 11 · Vergleich ------------------------------------------------------------------- */
.lg-vs { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-3); align-items: start;
  padding: var(--space-5) var(--space-4); border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--left) 40%, transparent), color-mix(in srgb, var(--right) 40%, transparent)), var(--glass-bg);
  border: 1px solid var(--glass-border); }
.lg-vs__side { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; min-width: 0; }
.lg-vs__side .select { width: 100%; max-width: 260px; }
.lg-vs__mid { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding-top: 26px; }
.lg-vs__label { font-weight: 900; font-stretch: 125%; font-size: var(--fs-lg); color: rgba(255, 255, 255, .85); letter-spacing: .04em; }
.lg-vs__name { font-weight: 850; font-stretch: 105%; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.lg-vs__sub { font-size: var(--fs-xs); color: var(--muted); }

.lg-tally { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-2) var(--space-3); align-items: center; }
.lg-tally__num { font-family: var(--font-score); font-stretch: 70%; font-weight: 900; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.lg-tally__mid { text-align: center; }
.lg-tally__names { display: flex; justify-content: space-between; gap: var(--space-2); font-size: var(--fs-sm); font-weight: 750; }
.lg-tally__bar { grid-column: 1 / -1; display: flex; gap: 3px; height: 8px; }
.lg-tally__bar span { border-radius: 4px; min-width: 4px; }

.lg-cmp { list-style: none; margin: 0; padding: 0 var(--space-4); }
.lg-cmp > li { padding: var(--space-3) 0; }
.lg-cmp > li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
.lg-cmp__title { text-align: center; font-size: var(--fs-xs); font-weight: 750; color: var(--muted); margin-bottom: 6px; }
.lg-cmp__row { display: grid; grid-template-columns: minmax(64px, auto) 1fr minmax(64px, auto); align-items: center; gap: var(--space-3); }
.lg-cmp__val { display: flex; flex-direction: column; font-family: var(--font-score); font-stretch: 74%; font-weight: 750; font-size: 1.45rem; line-height: 1;
  color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.lg-cmp__val--right { align-items: flex-end; text-align: right; }
.lg-cmp__val.is-win { font-weight: 900; color: var(--c); text-shadow: 0 0 14px color-mix(in srgb, var(--c) 50%, transparent); }
.lg-cmp__val small { font-family: var(--font); font-stretch: 100%; font-size: .68rem; font-weight: 650; color: var(--slate); margin-top: 3px; text-shadow: none; }
.lg-split { display: flex; gap: 2px; height: 8px; max-width: 260px; width: 100%; justify-self: center; }
.lg-split span { border-radius: 4px; min-width: 2px; }
.lg-split.is-empty { opacity: .25; }
.lg-cmp__row--text { grid-template-columns: minmax(64px, 1fr) auto minmax(64px, 1fr); }
.lg-cmp__label { text-align: center; font-size: var(--fs-xs); font-weight: 650; color: var(--muted); max-width: 16ch; }

.lg-picker { width: 100%; max-width: 320px; }
.lg-picker__list { margin-top: var(--space-2); max-height: 280px; overflow-y: auto; border-radius: var(--radius); background: var(--glass-bg-strong); border: 1px solid var(--glass-border); text-align: left; }
.lg-picker__list:empty { display: none; }
.lg-picker .lg-result { padding: 10px 12px; min-height: 48px; }

@media (max-width: 559px) {
  .lg-game { grid-template-columns: 2.6em auto 1fr auto; gap: var(--space-2); padding: var(--space-3); }
  .lg-game .lg-game__badge svg { width: 26px; height: 26px; }
  .lg-vs { padding: var(--space-4) var(--space-2); gap: var(--space-2); }
  .lg-vs__mid { padding-top: 18px; }
  .lg-cmp { padding: 0 var(--space-3); }
  .lg-cmp__val { font-size: 1.2rem; }
  .lg-tally__num { font-size: 2.3rem; }
  .lg-teamhead__title { font-size: var(--fs-2xl); }
  .lg-player__title { font-size: var(--fs-2xl); }
}
@media (max-width: 380px) {
  .lg-form { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .lg-form__opp { font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-bar::before { transition: none; }
}
