/* =====================================================================
   BETROX terminal · view-live.css — Live (#/live), ref 10 in the Betrox look.
   Everything is prefixed .lv-* or scoped to body[data-route="live"].
   Core pieces used: .mt/.mt-row/.mcol (market table), .bx-seg, .bx-odd,
   .bx-sus, .bx-goal-row, .bx-min/.ltag (css/core.css + shared/tokens.css).
   ===================================================================== */

/* ---------- sport tabs (Fußball N · Alle N) ---------- */
.lv-top { display: flex; align-items: flex-end; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid var(--line-2); }
.lv-sports { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.lv-sports::-webkit-scrollbar { display: none; }
.lv-sport {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  min-height: var(--bx-tap); padding: 0 22px; margin-bottom: -1px;
  border: 0; border-bottom: 3px solid transparent; border-radius: var(--r) var(--r) 0 0;
  background: transparent; color: var(--ink-2);
  font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: .05em; text-transform: uppercase;
  touch-action: manipulation;
}
.lv-sport .bx-ic { color: var(--muted); }
.lv-sport:hover { color: var(--ink); background: var(--card); }
.lv-sport.is-active { color: var(--ink); border-bottom-color: var(--accent); background: var(--card); }
.lv-sport.is-active .bx-ic { color: var(--accent); }
.lv-n {
  min-width: 30px; padding: 2px 8px; border-radius: 999px; text-align: center;
  background: var(--tile); color: var(--ink-2); font-size: 17px; letter-spacing: 0; line-height: 1.25;
}
.lv-sport.is-active .lv-n { background: var(--accent); color: var(--on-accent); }

/* ---------- switches + league filter ---------- */
.lv-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin: 0 0 16px; }
.lv-seg > button { min-height: calc(var(--bx-tap) - 10px); padding: 0 22px; white-space: nowrap; }
.lv-filter {
  position: relative; display: flex; align-items: center; margin-left: auto;
  min-width: 300px; max-width: 460px; flex: 0 1 380px;
}
.lv-filter > .bx-ic:first-child { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.lv-filter > .bx-ic:last-child { position: absolute; right: 12px; color: var(--accent); pointer-events: none; }
.lv-filter.is-on > .bx-ic:first-child { color: var(--accent); }
.lv-filter select {
  width: 100%; min-height: var(--bx-tap); padding: 0 42px 0 46px; appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line-3); border-radius: var(--r); background: var(--tile); color: var(--ink);
  font-family: var(--cond); font-weight: 700; font-size: 20px; letter-spacing: .02em; cursor: pointer;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.lv-filter.is-on select { border-color: var(--accent-line); background: var(--accent-tint); }
.lv-filter select:focus { outline: none; border-color: var(--accent); }
.lv-filter option { background: var(--card); color: var(--ink); }

/* ---------- Übersicht: market table ---------- */
body.is-landscape .lv-mt .mt-row { --mt-cols-w: 3.1fr; }
.lv-rows { display: contents; }
.lv-hc { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--cond); font-weight: 700; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.lv-gn {
  margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--tile);
  font-size: 14px; font-weight: 700; color: var(--muted); flex-shrink: 0;
}
.lv-row .mt-info { gap: 14px; }
.lv-row .teams { flex: 1 1 auto; }
.lv-row .score { margin-left: auto; min-width: 28px; }
.lv-row .score b { font-size: 24px; }
.lv-row .lmin { min-width: 64px; }
.lv-row .bx-min { font-size: 20px; padding: 2px 8px; }
.lv-row .mcol .bx-odd .bx-arr, .lv-row .mcol .bx-odd .arr { display: none; }   /* narrow cells: blink + colour only */
.lv-mt .bx-sus--sm { min-height: var(--mt-odd-h); }

/* ---------- Event-Ansicht: cards ---------- */
.lv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 16px; }
.lv-card {
  --row-bg: var(--card);
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: 16px 18px 12px; border-radius: var(--r-lg); background: var(--row-bg); border: 1px solid var(--line);
}
.lv-card-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lv-card-lg { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-card-h .lmin { flex-direction: row; align-items: center; gap: 8px; min-width: 0; }
.lv-card-sc { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 4px 0; }
.lv-tm { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 24px; font-weight: 700; line-height: 1.15; }
.lv-tm--a { justify-content: flex-end; text-align: right; }
.lv-tm-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-card-score {
  display: flex; align-items: center; gap: 8px; padding: 4px 16px; border-radius: var(--r);
  background: var(--bg); font-family: var(--cond); font-weight: 800; font-size: 44px; line-height: 1.05; color: var(--accent);
}
.lv-card-score i { font-style: normal; color: var(--muted-2); font-size: 34px; }
.lv-card-mks { display: flex; flex-direction: column; gap: 10px; }
.lv-mk { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 12px; }
.lv-mk-h { font-family: var(--cond); font-weight: 700; font-size: 18px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.lv-mk-odds { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
.lv-mk-odds .bx-odd { min-height: var(--bx-tap); padding: 0 14px; }
.lv-mk-odds .bx-odd .v { font-size: 26px; }
.lv-card-sus .bx-sus { min-height: 92px; }
.lv-card-f { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.lv-card-more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 10px 0 14px;
  border: 0; border-radius: var(--r); background: transparent; color: var(--ink-2);
  font-family: var(--cond); font-weight: 700; font-size: 19px; letter-spacing: .03em; text-transform: uppercase;
}
.lv-card-more .num { color: var(--accent); }
.lv-card-more .bx-ic { color: var(--muted); }
.lv-card-more:hover { background: var(--tile); color: var(--ink); }

.lv-empty-act { display: flex; justify-content: center; margin-top: -8px; }

/* ---------- portrait kiosk / tablet ---------- */
body.is-portrait .lv-filter { flex: 1 1 320px; max-width: none; }
body.is-portrait .lv-card-more { min-height: var(--bx-tap); }

/* ---------- phone ---------- */
body.is-phone .lv-top { margin-bottom: 10px; }
body.is-phone .lv-sport { min-height: 48px; padding: 0 14px; font-size: 18px; gap: 8px; }
body.is-phone .lv-sport .bx-ic { width: 22px; height: 22px; }
body.is-phone .lv-n { font-size: 15px; min-width: 26px; }
body.is-phone .lv-bar { gap: 8px; margin-bottom: 12px; }
body.is-phone .lv-seg { flex: 1 1 calc(50% - 4px); min-width: 0; }
body.is-phone .lv-seg > button { min-height: 44px; padding: 0 6px; font-size: 16px; letter-spacing: .02em; }
body.is-phone .lv-filter { flex: 1 1 100%; min-width: 0; max-width: none; margin-left: 0; }
body.is-phone .lv-filter select { min-height: 48px; font-size: 18px; }
body.is-phone .lv-row .mt-info { gap: 10px; }
body.is-phone .lv-row .lmin { min-width: 50px; }
body.is-phone .lv-row .bx-min { font-size: 18px; }
body.is-phone .lv-row .teams .tm { font-size: 17px; }
body.is-phone .lv-card { padding: 12px 12px 8px; gap: 10px; }
body.is-phone .lv-tm { font-size: 18px; flex-wrap: wrap; }
body.is-phone .lv-tm-n { white-space: normal; overflow-wrap: anywhere; }
body.is-phone .lv-card-score { font-size: 34px; padding: 2px 10px; }
body.is-phone .lv-mk { grid-template-columns: 1fr; gap: 4px; }
body.is-phone .lv-mk-h { font-size: 15px; }
body.is-phone .lv-mk-odds .bx-odd { min-height: 48px; padding: 0 10px; }
body.is-phone .lv-mk-odds .bx-odd .v { font-size: 22px; }
body.is-phone .lv-card-more { min-height: 44px; font-size: 17px; }

/* cards narrower than ~600 px (portrait 2-up, tablets): market label above its odds, names may wrap */
.lv-card { container-type: inline-size; container-name: lvcard; }
@container lvcard (max-width: 600px) {
  .lv-mk { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lv-mk-h { font-size: 16px; }
  .lv-tm { font-size: 21px; flex-wrap: wrap; }
  .lv-tm-n { white-space: normal; overflow-wrap: anywhere; }
  .lv-card-score { font-size: 38px; padding: 2px 12px; }
}

/* phone: tighter league group rows */
body.is-phone .lv-mt .mt-group { row-gap: 0; padding-top: 6px; padding-bottom: 4px; }
