:root {
  --bg: #0b0f1a;
  --panel: #101623;
  --panel-2: #151c2b;
  --card: #161e2e;
  --card-2: #1c2536;
  --card-3: #202b3d;
  --line: rgba(255,255,255,.075);
  --line-2: rgba(255,255,255,.14);
  --text: #eef2fb;
  --muted: #8b94a8;
  --faint: #596274;
  --primary: #7d66ff;
  --primary-2: #9a7cff;
  --primary-soft: rgba(125,102,255,.18);
  --green: #17b978;
  --live: #ff4f78;
  --danger: #f4436c;
  --shadow: 0 18px 42px rgba(0,0,0,.28);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --rail: 232px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --panel-2: #f7f9fd;
  --card: #ffffff;
  --card-2: #f1f4fa;
  --card-3: #e9eef7;
  --line: rgba(16,24,40,.1);
  --line-2: rgba(16,24,40,.18);
  --text: #141b2d;
  --muted: #5f6878;
  --faint: #929bad;
  --primary: #6c5ce7;
  --primary-2: #4e3dc8;
  --primary-soft: rgba(108,92,231,.13);
  --shadow: 0 16px 40px rgba(31,45,72,.10);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.tr-app { min-height: 100vh; }
.tr-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  padding: 22px 12px 18px;
  border-right: 1px solid var(--line);
  background: #111723;
  z-index: 60;
  overflow: auto;
}

.tr-logo {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  color: #f3f6ff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.04em;
}

.tr-menu { display: grid; gap: 4px; margin-top: 18px; }
.tr-nav, .tr-league-link {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 10px;
  color: #b9c1d1;
  text-align: left;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.tr-nav:hover, .tr-league-link:hover { background: rgba(255,255,255,.045); color: #fff; }
.tr-nav.is-active, .tr-league-link.is-active {
  color: #fff;
  background: rgba(125,102,255,.22);
}
.tr-nav em, .tr-league-link em { color: #8f88ff; font-size: 12px; font-style: normal; font-weight: 800; }
.tr-ico { display: inline-grid; place-items: center; color: var(--primary-2); }
.tr-rail-section { margin-top: 26px; }
.tr-rail-section p {
  margin: 0 0 8px;
  padding: 0 10px;
  color: #5f697e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tr-league-link { grid-template-columns: 26px 1fr auto; min-height: 38px; font-size: 13px; }
.tr-league-link b {
  display: inline-grid;
  place-items: center;
  height: 21px;
  min-width: 21px;
  padding: 0 4px;
  border-radius: 6px;
  background: #4050a7;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}
.ball-dot { color: #23d39a; }

.tr-page {
  min-height: 100vh;
  margin-left: var(--rail);
  background: radial-gradient(circle at top center, rgba(59,44,110,.22), transparent 36rem), var(--bg);
}

.tr-top-promo {
  position: relative;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px clamp(14px, 3vw, 28px) 18px;
  background: linear-gradient(90deg, #126c3e, #18974f);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}
.tr-top-promo[hidden] { display: none; }
.promo-brand {
  color: #ff3a25;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.04em;
}
.promo-copy strong { color: #fff; }
.promo-age { font-size: 11px; opacity: .9; }

/* Банер: мобилно лого/бутон се сменят само на телефон (mob_badge / mob_cta) */
.promo-logo-m, .promo-cta-m { display: none; }
.promo-logo-d, .promo-logo-m { vertical-align: middle; }
@media (max-width: 620px) {
  .promo-brand.has-mob .promo-logo-d { display: none; }
  .promo-brand.has-mob .promo-logo-m { display: inline-flex; }
  .promo-cta .promo-cta-d { display: none; }
  .promo-cta .promo-cta-m { display: inline; }
}

/* Банер: думите се показват една по една; текстът+бутонът пулсират заедно */
.promo-copy, .bottom-banner-copy { text-align: center; }
.promo-copy .bw, .bottom-banner-copy .bw { opacity: 0; transition: opacity .25s ease; }
.promo-copy .bw.show, .bottom-banner-copy .bw.show { opacity: 1; }
@keyframes trxBannerPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.promo-copy.pulse, .bottom-banner-copy.pulse,
.promo-cta.pulse, .bottom-banner-cta.pulse {
  animation: trxBannerPulse .6s ease-in-out 0s 2;
  transform-origin: center;
}

/* Банер оформление: лого ляво, текст център (голям), бутон дясно; правила+18+ долу вляво */
.tr-top-promo .promo-brand { flex: 0 0 auto; }
.tr-top-promo .promo-copy { flex: 1 1 auto; text-align: center; font-size: 21px; font-weight: 800; line-height: 1.15; }
.tr-top-promo .promo-cta { flex: 0 0 auto; }
.tr-top-promo .promo-close { flex: 0 0 auto; }
.promo-terms {
  position: absolute; left: clamp(14px, 3vw, 28px); bottom: 4px;
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.9);
}
.promo-terms .promo-age { font-size: 10px; opacity: 1; }
.promo-terms .promo-terms-txt:empty { display: none; }
@media (max-width: 620px) {
  .tr-top-promo { min-height: 58px; gap: 8px; padding: 6px 12px 15px; }
  .tr-top-promo .promo-copy { font-size: 15px; }
  .tr-top-promo .promo-cta { padding: 6px 12px; }
  .promo-terms { left: 12px; font-size: 9px; }
}
.promo-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  color: #151922;
  font-weight: 900;
  white-space: nowrap;
}
.promo-close {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: 20px;
  line-height: 1;
}

.tr-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 clamp(16px, 3vw, 40px);
  background: rgba(15,21,33,.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
:root[data-theme="light"] .tr-topbar { background: rgba(255,255,255,.9); }

.gift-btn, .icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--card-2);
  color: var(--muted);
  flex: 0 0 auto;
}
.gift-btn {
  background: linear-gradient(135deg, #7d66ff, #9d65ff);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 26px rgba(125,102,255,.32);
}
.gift-btn:hover { transform: translateY(-1px); }
.icon-btn.is-user { background: var(--primary-soft); border-color: rgba(125,102,255,.5); color: var(--primary-2); }

.view-tabs {
  display: inline-flex;
  gap: 5px;
  padding: 5px;
  border-radius: 13px;
  background: var(--card-2);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.view-tab {
  height: 33px;
  padding: 0 15px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.view-tab.is-active { background: var(--primary); color: #fff; }

.search-wrap {
  position: relative;
  width: min(520px, 100%);
  margin-left: auto;
}
.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 18px;
  pointer-events: none;
}
#searchInput {
  width: 100%;
  height: 42px;
  padding: 0 15px 0 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  outline: 0;
  background: var(--card-2);
  color: var(--text);
}
#searchInput::placeholder { color: var(--muted); }
#searchInput:focus { border-color: rgba(125,102,255,.72); box-shadow: 0 0 0 3px rgba(125,102,255,.15); }
.search-results {
  position: absolute;
  inset: calc(100% + 8px) 0 auto 0;
  max-height: 420px;
  overflow: auto;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  box-shadow: var(--shadow);
  z-index: 100;
}
.search-results h4 { margin: 8px 8px 5px; color: var(--faint); text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.search-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  color: var(--text);
}
.search-item:hover { background: var(--card-2); }
.search-item small { display: block; margin-top: 3px; color: var(--muted); }
.search-item time { color: var(--muted); font-size: 12px; }
.top-actions { display: inline-flex; align-items: center; gap: 10px; }
.mobile-only { display: none; }

.tr-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px clamp(16px, 3vw, 40px) 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 334px;
  gap: 18px;
  align-items: start;
}
.tr-main { min-width: 0; }
.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--faint);
  font-size: 12px;
  margin: 0 0 5px;
}
.breadcrumbs a { color: var(--muted); }
h1 {
  margin: 0 0 18px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.sport-card {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.sport-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sport-scroll::-webkit-scrollbar { display: none; }
.sport-pill {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: #bcb6ff;
  font-size: 13px;
  font-weight: 900;
}
.round-dot {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--card-2);
}
.toolbar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.filter-tabs { display: inline-flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.filter-btn {
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.filter-btn.is-active { background: var(--primary); color: #fff; }
.odds-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.odds-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.odds-toggle i {
  width: 24px;
  height: 16px;
  border-radius: 999px;
  background: #778198;
  position: relative;
}
.odds-toggle i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s ease;
}
.odds-toggle input:checked + i { background: var(--primary); }
.odds-toggle input:checked + i::after { transform: translateX(8px); }

.date-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1px;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-btn {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 900;
}
.date-btn small { display: block; margin-top: -4px; color: var(--faint); font-size: 9px; font-weight: 800; }
.date-btn.is-active { background: var(--primary-soft); color: #fff; }

.view-host { display: grid; gap: 15px; }
.state-card, .league-card, .botd-section, .match-detail-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(22,30,46,.88);
  box-shadow: 0 1px 0 rgba(255,255,255,.025) inset;
  overflow: hidden;
}
:root[data-theme="light"] .state-card,
:root[data-theme="light"] .league-card,
:root[data-theme="light"] .botd-section,
:root[data-theme="light"] .match-detail-card { background: var(--card); }
.state-card { padding: 28px; text-align: center; color: var(--muted); }
.state-card b { display: block; color: var(--text); margin-bottom: 6px; font-size: 16px; }
.league-head {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: var(--card-3);
  border-bottom: 1px solid var(--line);
}
.league-title { min-width: 0; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 800; }
.league-title img { width: 22px; height: 22px; border-radius: 50%; background: #fff; object-fit: contain; padding: 2px; }
.league-title strong { color: var(--text); font-size: 13px; }
.league-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.league-toggle { color: var(--muted); font-size: 18px; }
.match-row {
  display: grid;
  grid-template-columns: 24px 64px minmax(0, 1fr) 56px 52px 46px;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
}
.match-row:last-child { border-bottom: 0; }
.match-row:hover { background: rgba(255,255,255,.025); }
.star-btn { color: var(--faint); font-size: 20px; }
.status-cell { color: var(--live); font-size: 12px; line-height: 1.1; font-weight: 900; }
.status-cell small { display: block; color: var(--live); margin-top: 3px; font-size: 10px; }
.status-cell.is-upcoming { color: var(--muted); }
.status-cell.is-upcoming small { color: var(--faint); }
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  margin-right: 4px;
  box-shadow: 0 0 0 rgba(255,79,120,.6);
  animation: livePulse 1.7s infinite;
}
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(255,79,120,0); } }
.teams { min-width: 0; display: grid; gap: 8px; }
.team-line { min-width: 0; display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 800; font-size: 13px; }
.team-line .tl-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.team-line .tl-top { display: flex; align-items: center; min-width: 0; max-width: 100%; }
.team-line .tl-top .tl-name { flex: 0 1 auto; min-width: 0; }
.team-line .tl-top .red-card-badge { flex: 0 0 auto; }
.team-line .tl-name { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.team-logo {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--card);
  background: #fff;
  color: #25304a;
  overflow: hidden;
  font-size: 8px;
  font-weight: 900;
}
.team-logo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.score-cell { display: grid; gap: 8px; text-align: right; color: var(--text); font-weight: 900; font-variant-numeric: tabular-nums; }
.score-cell small { color: var(--faint); font-size: 10px; font-weight: 800; }
.bet-btn {
  height: 34px;
  border-radius: 10px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.bet-btn:hover { border-color: rgba(125,102,255,.55); color: #fff; }
.odds-stack {
  grid-column: 3 / -1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 8px;
}
.odds-stack .odds-row { grid-column: auto; padding: 0; }
.odds-row {
  grid-column: 3 / -1;
  display: grid;
  grid-template-columns: repeat(7, minmax(54px, 1fr));
  gap: 7px;
  padding: 0 0 8px;
}
.odd-box {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 7px 5px;
  border-radius: 9px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.odd-box span { color: var(--faint); font-size: 9px; }

.tr-offers {
  position: sticky;
  top: 86px;
  padding: 17px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
}
.tr-offers h2 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 16px;
  letter-spacing: -.02em;
}
.offer-list { display: grid; gap: 12px; }
.offer-card {
  min-height: 108px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #202d42, #172032);
  overflow: hidden;
  position: relative;
}
.offer-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -50px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(125,102,255,.17);
}
.offer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.offer-logo { max-width: 112px; max-height: 30px; object-fit: contain; }
.offer-brand { font-family: "Space Grotesk", Inter, sans-serif; color: #ff442e; font-size: 27px; font-weight: 900; font-style: italic; letter-spacing: -.05em; }
.offer-reg { padding: 7px 10px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 900; white-space: nowrap; }
.offer-title { position: relative; z-index: 1; color: var(--text); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.offer-title strong { color: #55ffc4; }
.offer-terms { position: relative; z-index: 1; color: var(--faint); font-size: 10px; }

.botd-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.botd-chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--muted);
  font-weight: 800;
}
.botd-chip.is-active { background: var(--primary); color: #fff; }
.botd-section { padding: 16px; }
.botd-section h2 { margin: 0 0 12px; font-size: 18px; font-family: "Space Grotesk", Inter, sans-serif; }
.pick-grid { display: grid; gap: 10px; }
.pick-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 13px;
  border-radius: 14px;
  background: var(--card-2);
  border: 1px solid var(--line);
}
.pick-teams { display: grid; gap: 6px; font-weight: 900; }
.pick-meta { color: var(--muted); font-size: 12px; margin-top: 8px; }
.pick-bet { color: #bcb6ff; font-weight: 900; }
.pick-odd { align-self: center; min-width: 70px; text-align: center; padding: 10px; border-radius: 12px; background: var(--primary); color: #fff; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pick-reasons { grid-column: 1 / -1; margin: 2px 0 0; padding: 0 0 0 18px; color: var(--muted); font-size: 12px; }
.pick-reasons li + li { margin-top: 4px; }

.match-detail-card { padding: 18px; }
.back-link { color: var(--primary-2); font-weight: 900; margin-bottom: 14px; display: inline-flex; }
.match-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--card-2);
}
.match-team { display: grid; gap: 8px; justify-items: center; text-align: center; font-weight: 900; }
.match-team.big .mt-line { display: inline-flex; align-items: center; max-width: 100%; min-width: 0; }
.match-team.big .mt-line .mt-name { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-team.big .mt-line .red-card-badge { flex: 0 0 auto; }
.match-team .team-logo { width: 54px; height: 54px; font-size: 16px; }
.match-score { font-family: "Space Grotesk", Inter, sans-serif; font-size: 32px; font-weight: 900; white-space: nowrap; }
.match-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.info-box { padding: 12px; border-radius: 12px; background: var(--card-2); color: var(--muted); }
.info-box b { display: block; color: var(--text); margin-top: 4px; }

.mobile-drawer, .mobile-bottom-bar { display: none; }

@media (max-width: 1279px) {
  .tr-layout { grid-template-columns: 1fr; }
  .tr-offers { display: none; }
}

@media (max-width: 1023px) {
  :root { --rail: 0px; }
  .tr-rail { display: none; }
  .tr-page { margin-left: 0; }
  .tr-top-promo { height: 48px; gap: 10px; font-size: 11px; justify-content: flex-start; }
  .promo-brand { font-size: 22px; }
  .promo-copy { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .promo-cta { padding: 7px 12px; margin-left: auto; }
  .tr-topbar { height: auto; min-height: 62px; padding: 10px 14px; flex-wrap: wrap; position: relative !important; top: auto !important; }
  .mobile-only { display: inline-grid; }
  .desktop-only { display: none; }
  .view-tabs { order: 3; width: 100%; }
  .view-tab { flex: 1; }
  .search-wrap { order: 4; width: 100%; margin-left: 0; }
  .top-actions { margin-left: auto; }
  .tr-layout { padding: 16px 14px 86px; }
  .toolbar-row { align-items: stretch; flex-direction: column; }
  .date-strip { margin: 0 -2px; }
  .match-row { grid-template-columns: 22px 56px minmax(0,1fr) 40px; padding: 9px 11px; gap: 8px; }
  .bet-btn { display: none; }
  .odds-row { grid-column: 2 / -1; grid-template-columns: repeat(3, 1fr); }
  .odds-stack { grid-column: 2 / -1; }
  .mobile-drawer { display: none; position: fixed; inset: 0; z-index: 200; }
  body.drawer-open .mobile-drawer { display: block; }
  .drawer-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(0,0,0,.56); }
  .drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(310px, 84vw); padding: 18px 12px; background: #111723; border-right: 1px solid var(--line); overflow: auto; box-shadow: var(--shadow); }
  .drawer-close { position: absolute; top: 16px; right: 14px; width: 34px; height: 34px; border-radius: 10px; background: var(--card-2); color: var(--muted); font-size: 22px; }
  .mobile-bottom-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 80;
    height: 64px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(15,21,33,.94);
    backdrop-filter: blur(12px);
  }
  .mobile-bottom-bar button, .mobile-bottom-bar a { display: grid; grid-template-rows: 22px auto; align-items: center; justify-items: center; gap: 2px; color: var(--muted); font-size: 18px; line-height: 1; text-decoration: none; cursor: pointer; background: none; border: none; padding: 0; overflow: hidden; }
  .mobile-bottom-bar svg { width: 20px; height: 20px; display: block; }
  .mobile-bottom-bar .mobile-vip { color: #f5b41f; }
  .mobile-bottom-bar span { font-size: 10px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
  .mobile-bottom-bar .is-active { color: var(--primary-2); }
  .mobile-more-menu {
    position: fixed;
    right: 8px;
    bottom: 72px;
    z-index: 81;
    background: rgba(20,27,42,.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 12px 40px rgba(0,0,0,.5);
    min-width: 140px;
  }
  .mobile-more-menu[hidden] { display: none; }
  .mobile-more-menu.is-open { display: flex !important; }
  .mobile-more-menu button {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 10px 14px;
    background: none; border: none; cursor: pointer;
    color: var(--txt, #cfe0ff); font-size: 15px; font-weight: 700;
    border-radius: 10px; text-align: left;
  }
  .mobile-more-menu button:hover { background: rgba(255,255,255,.06); }
  .mobile-more-menu button span { font-size: 14px; }
  .mobile-more-menu .tr-lang-host-more { border-top: 1px solid rgba(255,255,255,.1); margin-top: 4px; padding: 10px 6px 4px; }
  .mobile-more-menu .tr-lang-host-more::before { content: "Language"; display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; opacity: .5; font-weight: 700; margin-bottom: 8px; padding: 0 8px; }
  .mobile-more-menu .tr-lang { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; }
  .mobile-more-menu .tr-lang-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: inherit; cursor: pointer; font-size: 12px; font-weight: 700; }
  .mobile-more-menu .tr-lang-btn.is-active { background: rgba(143,136,255,.18); border-color: rgba(143,136,255,.55); color: #c9c5ff; }
  .mobile-more-menu .tr-lang-btn.is-soon { opacity: .4; }
  .mobile-more-menu .tr-lang-code { display: inline !important; }
  .mobile-more-menu .tr-flag-svg { width: 18px; height: 12px; border-radius: 2px; }
}

@media (max-width: 620px) {
  h1 { font-size: 24px; }
  .sport-card { padding: 11px; }
  .round-dot { width: 25px; height: 25px; }
  .league-head { padding: 0 12px; }
  .league-title { font-size: 11px; }
  .match-row { min-height: 66px; grid-template-columns: 18px 48px minmax(0,1fr) 34px; }
  .team-line { font-size: 12px; gap: 7px; }
  .team-logo { width: 21px; height: 21px; }
  .status-cell { font-size: 11px; }
  .score-cell { font-size: 12px; }
  .pick-card { grid-template-columns: 1fr; }
  .pick-odd { justify-self: start; min-width: 76px; }
  .match-hero { grid-template-columns: 1fr; }
  .match-score { text-align: center; }
  .match-info-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Match detail tabs and data panels */
.rich-match-detail { padding: 18px; display: grid; gap: 14px; }
.rich-match-detail .back-link { margin: 0; }
.match-hero-pro {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card-2);
}
.match-titleline {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-bottom: 16px;
  text-align: center;
}
.match-titleline b {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.match-titleline span { color: var(--muted); font-size: 13px; }
.fav-star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: #5a6478;
  padding: 2px 6px;
  transition: color .15s, transform .15s;
  margin-top: 2px;
}
.fav-star:hover { color: #f5c451; transform: scale(1.12); }
.fav-star.is-fav { color: #f5c451; }
.match-hero-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}
.match-team.big .team-logo { width: 64px; height: 64px; font-size: 17px; }
.match-center-score { min-width: 150px; text-align: center; }
.match-center-score strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.04em;
}
.match-ht { margin-top: 6px; color: var(--faint); font-size: 12px; font-weight: 800; }
.match-live-state { margin-top: 8px; color: var(--live); font-size: 12px; font-weight: 900; }
.match-quick-info {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.match-quick-info span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.match-primary-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 7px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card-2);
}
.match-primary-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 900;
}
.match-primary-tab span { color: var(--muted); }
.match-primary-tab.is-active {
  background: var(--primary-soft);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(125,102,255,.32);
}
.match-primary-tab.is-active span { color: var(--primary-2); }

/* Брояч до началото на мача (вместо "vs") */
.match-center-score strong .ko-countdown {
  display: inline-block;
  font-size: .58em;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--primary-2);
}

/* Стрелка „има още табове" (мобилно) — кръгло копче като в дизайна */
.match-primary-tabs-wrap { position: relative; }
.mtabs-more, .mtabs-prev {
  display: none;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; padding: 0;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--primary-2);
  font-size: 18px; font-weight: 900; line-height: 1;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
  cursor: pointer; z-index: 2;
}
.mtabs-more { right: 8px; }
.mtabs-prev { left: 8px; }
.match-primary-tabs-wrap.has-more::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 52px;
  pointer-events: none; border-radius: 0 16px 16px 0;
  background: linear-gradient(to right, rgba(0,0,0,0), var(--card-2) 70%);
  z-index: 1;
}
.match-primary-tabs-wrap.has-prev::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 52px;
  pointer-events: none; border-radius: 16px 0 0 16px;
  background: linear-gradient(to left, rgba(0,0,0,0), var(--card-2) 70%);
  z-index: 1;
}
.match-primary-tabs-wrap.has-more .mtabs-more { display: flex; }
.match-primary-tabs-wrap.has-prev .mtabs-prev { display: flex; }

/* Под-табове (Key events and stats / Lineups / Standings / Info / H2H /
   Latest results / Odds): стрелки наляво/надясно като при горните табове. */
.match-sub-tabs-wrap { position: relative; margin-bottom: 18px; }
.match-sub-tabs-wrap .match-sub-tabs { margin-bottom: 0; scroll-behavior: smooth; }
.stabs-more, .stabs-prev {
  display: none;
  position: absolute; top: calc(50% - 6px); transform: translateY(-50%);
  width: 30px; height: 30px; padding: 0;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--primary-2);
  font-size: 18px; font-weight: 900; line-height: 1;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
  cursor: pointer; z-index: 3;
}
.stabs-more { right: 2px; }
.stabs-prev { left: 2px; }
.match-sub-tabs-wrap.has-more::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 48px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0,0,0,0), var(--card-2) 78%);
  z-index: 1;
}
.match-sub-tabs-wrap.has-prev::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 48px;
  pointer-events: none;
  background: linear-gradient(to left, rgba(0,0,0,0), var(--card-2) 78%);
  z-index: 1;
}
.match-sub-tabs-wrap.has-more .stabs-more { display: flex; }
.match-sub-tabs-wrap.has-prev .stabs-prev { display: flex; }

/* === FIX за рязането вдясно ===
   .rich-match-detail е grid с една колона → всички деца са в нея и ширината ѝ
   става колкото най-широкото дете. Таб-лентата (.match-primary-tabs-wrap) по
   подразбиране е min-width:auto и не се свива → бута цялата страница по-широка
   от екрана. min-width:0 на децата позволява колоната да се свие до екрана. */
.rich-match-detail > * { min-width: 0; max-width: 100%; }
.match-primary-tabs-wrap { min-width: 0; max-width: 100%; overflow: hidden; }

/* === МОБИЛНО: спри хоризонталното преливане на match страницата (да не реже вдясно) === */
@media (max-width: 900px) {
  body.is-match-page { overflow-x: hidden; }
  .rich-match-detail, .match-content-card, .match-hero-pro, .match-primary-tabs-wrap,
  .overview-section, .match-panel { min-width: 0 !important; max-width: 100% !important; }
  .rich-match-detail > *, .match-content-card > * { min-width: 0 !important; max-width: 100% !important; }
  /* широки таблици да се скролват в себе си, не да бутат цялата страница */
  .table-wrap, .standings-pro-wrap { max-width: 100% !important; overflow-x: auto !important; }
}
@media (max-width: 768px) {
  .match-hero-board { grid-template-columns: 1fr !important; }                 /* отборите един под друг */
  .match-hero-odds { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
.match-content-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card-2);
}
.state-card.is-embedded { margin: 0; background: var(--card); }
.match-sub-tabs {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.match-sub-tabs::-webkit-scrollbar { display: none; }
.match-sub-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 13px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.match-sub-tab.is-active { color: #27e5b1; }
.match-sub-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 3px;
  background: #27e5b1;
}
.match-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .95fr);
  gap: 26px;
  align-items: start;
}
.match-panel h3 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 16px;
  letter-spacing: -.02em;
}
.muted-note { margin: 0; color: var(--muted); line-height: 1.5; }
.panel-title-row { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.panel-title-row h3 { margin: 0; }
.moment-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #2ae7b5; font-size: 12px; font-weight: 900; }
.moment-filters span { display: inline-flex; align-items: center; gap: 7px; }
.moment-filters i {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #23d7a7;
}
.moment-filters i::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  right: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
}
.stat-lines { display: grid; gap: 10px; }
.stat-line {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.stat-line b { color: var(--text); font-variant-numeric: tabular-nums; text-align: center; }
.stat-line span { display: grid; gap: 6px; text-align: center; }
.stat-line i {
  position: relative;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}
.stat-line i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}
.timeline {
  position: relative;
  min-height: 220px;
  padding: 18px 0 6px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 12px;
  left: 50%;
  width: 1px;
  background: var(--line);
}
.timeline-start {
  display: table;
  position: relative;
  z-index: 1;
  margin: 0 auto 10px;
  padding: 8px 17px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.timeline-event {
  position: relative;
  z-index: 1;
  width: min(47%, 260px);
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid rgba(125,102,255,.72);
  background: rgba(125,102,255,.15);
  font-size: 12px;
}
.timeline-event.home { margin-right: auto; }
.timeline-event.away { margin-left: auto; }
.timeline-event.neutral { margin-left: auto; margin-right: auto; }
.timeline-event span { color: var(--faint); font-weight: 900; }
.timeline-event b { color: #2ae7b5; white-space: nowrap; }
.timeline-event strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.prediction-grid, .recent-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}
.match-odds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 9px;
}
.match-odds-grid .odd-box { min-height: 62px; font-size: 15px; }
.trend-grid { display: grid; gap: 10px; }
.trend-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 13px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.trend-card strong { display: block; font-weight: 950; }
.trend-card small { display: block; margin-top: 5px; color: var(--muted); }
.trend-card > b {
  align-self: start;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.trend-card ul { grid-column: 1 / -1; margin: 2px 0 0; padding-left: 18px; color: var(--muted); }
.info-detail-grid, .h2h-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.info-box span { display: block; color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; border-radius: 13px; border: 1px solid var(--line); }
.standings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 12px;
}
.standings-table th, .standings-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.standings-table th { color: var(--muted); background: rgba(255,255,255,.025); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.standings-table tr:last-child td { border-bottom: 0; }
.standings-table tr.is-highlight td { background: rgba(125,102,255,.14); color: #fff; }
.result-list { display: grid; gap: 8px; }
.result-row {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 12px;
}
.result-row span { color: var(--muted); }
.result-row b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.form-row { margin-bottom: 12px; }
.form-pill {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin: 0 3px 3px 0;
  border-radius: 7px;
  background: var(--card-3);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}
.form-pill.w { background: rgba(35,211,154,.18); color: #2ae7b5; }
.form-pill.d { background: rgba(245,158,11,.17); color: #f8b84e; }
.form-pill.l { background: rgba(244,67,108,.15); color: #ff6a8c; }
.empty-panel { min-height: 132px; display: grid; align-content: center; }

@media (max-width: 900px) {
  .match-primary-tabs { grid-template-columns: repeat(2, 1fr); }
  .match-split, .prediction-grid, .recent-grid { grid-template-columns: 1fr; }
  .info-detail-grid, .h2h-summary { grid-template-columns: 1fr 1fr; }
  .timeline-event { width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
  .timeline::before { left: 12px; }
  .timeline-start { margin-left: 0; }
}

@media (max-width: 620px) {
  .rich-match-detail, .match-content-card, .match-hero-pro { padding: 12px; }
  .match-hero-board { grid-template-columns: 1fr; }
  .match-center-score { min-width: 0; }
  .match-primary-tabs { grid-template-columns: 1fr; }
  .match-primary-tab { justify-content: flex-start; padding-left: 14px; }
  .match-sub-tabs { gap: 16px; }
  .match-odds-grid, .info-detail-grid, .h2h-summary { grid-template-columns: 1fr; }
  .result-row { grid-template-columns: 1fr; }
  .stat-line { grid-template-columns: 40px 1fr 40px; }
}

/* Old-site style trend sections + bookmaker logo CTA */
.trend-content-card {
  background: var(--card-2);
  padding: 20px 22px 22px;
}
.trend-sections {
  display: grid;
  gap: 10px;
}
.trend-section {
  display: grid;
  gap: 10px;
}
.trend-section-head {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .32);
  background: rgba(29, 39, 58, .9);
  color: var(--text);
  font-weight: 950;
  text-align: left;
  cursor: pointer;
}
.trend-section-head:hover {
  border-color: rgba(125, 102, 255, .62);
  filter: brightness(1.12);
}
/* Зебра — редовете редуват по-тъмен/по-светъл нюанс, за да изпъкват от фона и един от друг */
.trend-section:nth-child(odd) > .trend-section-head { background: var(--card); }
.trend-section:nth-child(even) > .trend-section-head { background: var(--card-3); }
.trend-section-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trend-section-title em,
.trend-section-head em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}
.trend-section-side {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  color: #fff;
  font-weight: 950;
  white-space: nowrap;
}
.trend-section-side b {
  min-width: 34px;
  color: #fff;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.trend-section-side i {
  color: var(--muted);
  font-style: normal;
  font-size: 18px;
  line-height: 1;
}
.trend-head-bookmaker {
  width: 70px;
  height: 20px;
}
.trend-grid.is-oldstyle {
  display: grid;
  gap: 10px;
}
.old-trend-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px 16px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-left-width: 4px;
  background: rgba(29, 39, 58, .96);
}
.old-trend-card.trend-market-double { border-left-color: #17c9bd; }
.old-trend-card.trend-market-total { border-left-color: #ff6b22; }
.old-trend-card.trend-market-handicap { border-left-color: #7c6dff; }
.old-trend-card.trend-market-btts { border-left-color: #9b7cff; }
.old-trend-card.trend-market-half { border-left-color: #7c6dff; }
.old-trend-card.trend-market-result { border-left-color: #23d39a; }
.old-trend-card.trend-market-combo { border-left-color: #ff4d94; }
.old-trend-card.trend-market-teamtotal { border-left-color: #ffa726; }
.old-trend-card.trend-market-score { border-left-color: #f8b84e; }
.old-trend-card.trend-market-other { border-left-color: var(--primary); }
.trend-reasons {
  display: grid;
  gap: 12px;
}
.trend-reason-block {
  display: grid;
  gap: 6px;
}
.trend-reason-block strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}
.trend-reason-block p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #91a0bd;
  font-size: 13px;
  line-height: 1.35;
}
.trend-team-logo {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.trend-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.trend-team-logo.is-fallback {
  background: linear-gradient(135deg, #5f7cff, #23d39a);
  color: #fff;
  font-size: 8px;
  font-weight: 950;
}
.trend-bet-row {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(22, 31, 48, .78);
  color: var(--text);
  text-decoration: none;
}
.trend-pick {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 950;
}
.trend-flame {
  color: #ff4f7b;
  font-size: 15px;
  line-height: 1;
}
.trend-book-side {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}
.trend-book-side strong {
  color: var(--primary-2);
  font-weight: 950;
}
.trend-odd-value {
  min-width: 32px;
  color: #29e6ad;
  text-align: right;
  font-size: 14px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.trend-bookmaker {
  width: 72px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}
.trend-bookmaker img {
  max-width: 66px;
  max-height: 16px;
  object-fit: contain;
}
.trend-bookmaker span {
  display: none;
  color: #1269b0;
  font-size: 11px;
  font-style: italic;
  font-weight: 950;
}
.trend-bookmaker img[src=""] + span {
  display: inline;
}
.prediction-grid .trend-section-head {
  min-height: 42px;
  padding: 0 14px;
}
.prediction-grid .old-trend-card {
  padding: 13px 14px 11px;
}

@media (max-width: 620px) {
  .trend-content-card { padding: 14px 12px; }
  .trend-section-head { padding: 0 10px 0 13px; gap: 10px; }
  .trend-section-side { gap: 7px; }
  .trend-head-bookmaker { width: 62px; }
  .old-trend-card { padding: 14px 13px 11px; }
  .trend-section-side b { font-size: 13px; }
  .trend-bet-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .trend-book-side { width: 100%; justify-content: flex-end; }
}

/* Overview long-page layout: INFO / H2H / LATEST RESULTS / STANDINGS / ODDS */
.overview-content-card {
  padding: 20px 22px 22px;
}
.overview-anchor-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  gap: 24px;
  padding-top: 0;
  background: linear-gradient(180deg, var(--card-2) 0%, var(--card-2) 88%, rgba(17, 24, 39, 0) 100%);
}
.overview-anchor-tabs .match-sub-tab {
  padding-bottom: 15px;
}
.overview-scroll-page {
  display: grid;
  gap: 28px;
}
.overview-section {
  scroll-margin-top: 106px;
}
.overview-info-panel h3,
.h2h-pro-panel h3,
.recent-pro-panel h3,
.standings-pro-panel h3,
.overview-standalone-odds h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.overview-meta {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}
.overview-odds-market {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.overview-odds-market h4 {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .02em;
}
.overview-odds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.overview-odds-market.is-two .overview-odds-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.overview-odd-box {
  min-height: 76px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .32);
  background: rgba(29, 39, 58, .86);
  text-decoration: none;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.overview-odd-box span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 950;
}
.overview-odd-box b {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.overview-odd-box .trend-bookmaker {
  width: 68px;
  height: 18px;
}
.overview-odd-box .trend-bookmaker img {
  max-width: 62px;
  max-height: 15px;
}
.h2h-pro-panel {
  padding-top: 2px;
}
.h2h-ratio-bar {
  height: 7px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  margin: 14px 0 15px;
}
.h2h-ratio-bar i,
.h2h-ratio-bar em,
.h2h-ratio-bar b {
  display: block;
  min-width: 2px;
  height: 100%;
}
.h2h-ratio-bar i { background: #7d66ff; }
.h2h-ratio-bar em { background: #6b7280; }
.h2h-ratio-bar b { background: #23d39a; }
.h2h-ratio-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}
.h2h-ratio-row > div {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
}
.h2h-ratio-row .is-home { justify-items: start; }
.h2h-ratio-row .is-draw { justify-items: center; text-align: center; }
.h2h-ratio-row .is-away { justify-items: end; text-align: right; }
.h2h-ratio-row strong {
  color: var(--primary-2);
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.h2h-ratio-row .is-away strong { color: #28e5ae; }
.h2h-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.h2h-goals-average {
  min-height: 46px;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .24);
  background: rgba(29, 39, 58, .78);
}
.h2h-goals-average span {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.h2h-goals-average span:last-child {
  color: var(--muted);
  background: transparent;
  justify-self: end;
}
.h2h-goals-average b {
  text-align: center;
  color: var(--text);
  font-size: 13px;
}
.h2h-pro-panel h4,
.team-recent-block h4,
.standings-pro-panel h4 {
  margin: 18px 0 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}
.h2h-pro-panel h4 {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
}
.h2h-meeting-list {
  display: grid;
  gap: 8px;
}
.h2h-meeting-row {
  display: grid;
  grid-template-columns: 105px 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .28);
  background: rgba(29, 39, 58, .78);
  font-size: 13px;
}
.h2h-meeting-row > span {
  color: var(--muted);
  font-size: 12px;
}
.h2h-meeting-row strong {
  color: #fff;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.team-name-badge,
.standing-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.team-name-badge span:last-child,
.standing-team b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-team-badge {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #384968, #7d66ff);
  color: #fff;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: -.04em;
}
.mini-team-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(255,255,255,.95);
}
.team-recent-block {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.recent-table-head {
  display: grid;
  grid-template-columns: 82px minmax(0,1fr) 44px 34px 34px 34px;
  gap: 10px;
  padding: 0 12px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.recent-table-head span:nth-child(n+3) { text-align: center; }
.recent-result-list {
  display: grid;
  gap: 6px;
}
/* Latest results — W/D/L сметка под списъка (зависи от показаните мачове) */
.recent-wdl-summary { margin-top: 12px; }
.recent-wdl-bar {
  display: flex;
  height: 6px;
  gap: 2px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, .18);
}
.recent-wdl-bar i { display: block; height: 100%; border-radius: 999px; }
.recent-wdl-bar i.w { background: #23d39a; }
.recent-wdl-bar i.d { background: #f5a40b; }
.recent-wdl-bar i.l { background: #ff5b7e; }
.recent-wdl-bar i.empty { background: rgba(148, 163, 184, .18); }
.recent-wdl-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  text-align: center;
}
.wdl-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.wdl-stat b { color: #fff; font-size: 14px; font-weight: 700; }
.wdl-stat span { color: var(--faint); font-size: 12px; }
.wdl-stat i { display: block; width: 46px; height: 4px; border-radius: 999px; margin-top: 3px; }
.wdl-stat.w i { background: #23d39a; }
.wdl-stat.d i { background: #f5a40b; }
.wdl-stat.l i { background: #ff5b7e; }
.recent-pro-row {
  display: grid;
  grid-template-columns: 82px minmax(0,1fr) 44px 34px 34px 34px;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .30);
  background: rgba(29, 39, 58, .78);
}
.recent-date b {
  display: block;
  color: #fff;
  font-size: 12px;
  line-height: 1.08;
}
.recent-date span {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-teams {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.recent-teams > span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
}
.recent-teams b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
}
.recent-score {
  display: grid;
  gap: 5px;
  text-align: center;
  color: #dbe7ff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.muted-score { color: var(--muted); }
.result-pill {
  justify-self: center;
  width: 25px;
  min-width: 25px;
  border-radius: 50%;
}
.show-more-btn {
  width: 100%;
  min-height: 34px;
  margin-top: 6px;
  border-radius: 9px;
  background: rgba(125, 102, 255, .11);
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.standings-pro-wrap {
  border-radius: 12px;
  background: rgba(29, 39, 58, .78);
}
.standings-pro-table {
  min-width: 640px;
}
.standings-pro-table th,
.standings-pro-table td {
  padding: 10px 14px;
}
.standings-pro-table th:nth-child(n+4),
.standings-pro-table td:nth-child(n+4) {
  text-align: center;
}
.standings-pro-table th:nth-child(3),
.standings-pro-table td:nth-child(3) {
  text-align: left;
}
.standings-pro-table tr.is-highlight td {
  background: rgba(125,102,255,.30);
}
.standings-pro-table tr.is-highlight .standing-team b { color: #2fe3aa; }
.standings-pro-table td:first-child,
.standings-pro-table th:first-child {
  color: var(--muted);
  text-align: center;
}
.info-box {
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .24);
  background: rgba(29, 39, 58, .78);
}
.info-box b {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-weight: 950;
}
.overview-standalone-odds {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

@media (max-width: 760px) {
  .overview-content-card { padding: 14px; }
  .overview-odds-grid,
  .overview-odds-market.is-two .overview-odds-grid,
  .h2h-metric-grid { grid-template-columns: 1fr; }
  /* H2H съотношението остава хоризонтално (3 колони) и на мобилно — побира се */
  .h2h-ratio-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .h2h-ratio-row strong { font-size: 20px; }
  .h2h-meeting-row { grid-template-columns: 1fr; gap: 6px; }
  .recent-table-head { display: none; }
  .recent-pro-row { grid-template-columns: 76px minmax(0,1fr) 38px 30px 30px 28px; gap: 6px; padding: 9px 8px; }
  .h2h-goals-average { grid-template-columns: 52px 1fr 52px; }
}

/* Full parity pass: better nav icons, shaking gift, odds market tabs and old BOTD layout */
.tr-ico svg,
.icon-btn svg,
.gift-btn svg,
.search-icon svg,
.tab-svg svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tr-ico svg { width: 17px; height: 17px; }
.ball-dot svg { color: #22e6b6; }
.search-icon svg { width: 19px; height: 19px; }
.icon-btn svg,
.gift-btn svg { width: 20px; height: 20px; }
.tab-svg { display: inline-flex; align-items: center; margin-right: 5px; vertical-align: -3px; }
.tab-svg svg { width: 15px; height: 15px; }

.gift-btn {
  animation: giftWiggle 2.8s ease-in-out infinite;
  transform-origin: 50% 20%;
}
.gift-btn:hover {
  animation-duration: .75s;
}
@keyframes giftWiggle {
  0%, 72%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  76% { transform: translateY(-1px) rotate(-8deg) scale(1.03); }
  80% { transform: translateY(0) rotate(7deg) scale(1.03); }
  84% { transform: translateY(-1px) rotate(-6deg) scale(1.03); }
  88% { transform: translateY(0) rotate(4deg) scale(1.02); }
  92% { transform: translateY(0) rotate(0deg) scale(1); }
}

.filter-tabs {
  padding: 0;
  gap: 8px;
}
.filter-btn {
  min-width: 54px;
  height: 35px;
  padding: 0 17px;
  border: 1px solid var(--line);
  background: rgba(29, 39, 58, .92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.filter-btn.is-active {
  border-color: rgba(125,102,255,.65);
  background: var(--primary);
  color: #fff;
}
.odds-toggle {
  min-height: 35px;
  padding: 0 2px 0 8px;
  color: #a9b2c7;
}
.odds-toggle input:checked + i {
  box-shadow: 0 0 0 3px rgba(125,102,255,.13);
}
.odds-market-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.odds-market-tabs[hidden] { display: none; }
.odds-market-tabs button {
  height: 36px;
  min-width: 68px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(29, 39, 58, .96);
  color: var(--muted);
  font-weight: 950;
}
.odds-market-tabs button.is-active {
  border-color: rgba(125,102,255,.65);
  background: var(--primary);
  color: #fff;
}
.market-odds-row {
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: 8px;
  padding: 0 0 8px;
}
.market-odds-row.market-ou25,
.market-odds-row.market-btts {
  grid-template-columns: repeat(2, minmax(86px, 1fr));
}
.market-odds-row .odd-box {
  min-height: 46px;
  font-size: 13px;
  position: relative;
}
.odd-box.is-winner {
  border-color: rgba(35,211,154,.78);
  background: linear-gradient(180deg, rgba(35,211,154,.22), rgba(29,39,58,.96));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(35,211,154,.15), 0 0 0 1px rgba(35,211,154,.16);
}
.odd-box.is-winner::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 7px;
  color: #28e6ae;
  font-size: 11px;
  font-weight: 950;
}
.odd-box.is-winner span { color: #91ffe0; }

.accas-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 5px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(29, 39, 58, .96);
}
.accas-tab {
  min-height: 36px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 950;
}
.accas-tab.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(125,102,255,.18);
}
.botd-toolbar-old {
  margin: 0 0 18px;
  gap: 9px;
}
.botd-toolbar-old .botd-chip {
  min-width: 0;
  height: 36px;
  padding: 0 17px;
  border: 1px solid var(--line);
  background: rgba(29, 39, 58, .92);
  color: #9aa5bd;
  text-transform: none;
  letter-spacing: 0;
}
.botd-toolbar-old:not(.botd-subtabs) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  max-width: 520px;
}
.botd-toolbar-old:not(.botd-subtabs) .botd-chip {
  text-transform: uppercase;
  width: 100%;
  justify-content: center;
  text-align: center;
}
.botd-toolbar-old .botd-chip.is-active {
  background: var(--primary);
  border-color: rgba(125,102,255,.7);
  color: #fff;
}
.botd-board {
  padding: 16px 18px;
  background: rgba(22, 30, 46, .92);
}
.botd-board-head {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.botd-board-head h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.botd-board-head button {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(29, 39, 58, .95);
  color: var(--muted);
  font-size: 18px;
}
.botd-pick-list {
  display: grid;
  gap: 12px;
}
.acca-pick-card {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(16, 22, 35, .7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.acca-pick-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
}
.acca-pick-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.acca-team-pair {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.acca-team-pair .team-logo {
  width: 28px;
  height: 28px;
  border-width: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}
.acca-team-pair .team-logo + .team-logo {
  margin-left: -7px;
}
.acca-pick-head h3 {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}
.acca-pick-head p {
  margin: 3px 0 0;
  color: var(--faint);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tiny-clock { color: var(--muted); }
.acca-bet-strip {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(29, 39, 58, .88);
  color: #a9b2c7;
  font-size: 13px;
}
.acca-bet-strip strong {
  color: #fff;
  font-weight: 950;
}
.acca-book-odd {
  flex: 0 0 auto;
  min-width: 92px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(10, 15, 25, .6);
}
.acca-book-odd b {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.acca-bookmaker {
  width: 54px;
  height: 17px;
  border-radius: 5px;
}
.acca-bookmaker img {
  max-width: 50px;
  max-height: 14px;
}
.acca-reasons {
  display: grid;
  gap: 8px;
  margin: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(29, 39, 58, .78);
}
.acca-reasons strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}
.acca-reasons p {
  margin: -2px 0 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #92a0ba;
  font-size: 13px;
}
.acca-reason-logo {
  width: 20px;
  height: 20px;
}
.acca-reason-logo img {
  background: #fff;
}

@media (max-width: 760px) {
  .accas-tabs { overflow-x: auto; scrollbar-width: none; }
  .accas-tabs::-webkit-scrollbar { display: none; }
  .accas-tab { flex: 0 0 auto; }
  .botd-toolbar-old { flex-wrap: wrap; overflow: visible; }
  .botd-toolbar-old .botd-chip { flex: 0 1 auto; height: 34px; padding: 0 13px; font-size: 12.5px; }
  .botd-toolbar-old.botd-subtabs .botd-chip { flex: 1 1 auto; }
  .acca-pick-head { align-items: flex-start; }
  .acca-bet-strip { align-items: flex-start; flex-direction: column; padding: 10px 14px; }
  .acca-book-odd { align-self: flex-end; }
  /* 1X2 има 3 кутийки (W1/X/W2) -> остава 3 колони, за да не увисва W2 на нов ред */
  .market-odds-row,
  .market-odds-row.market-1x2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* само 2-изходните пазари (O/U 2.5 и BTTS) остават на 2 колони */
  .market-odds-row.market-ou25,
  .market-odds-row.market-btts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-odds-row .odd-box { min-height: 44px; padding: 6px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .gift-btn { animation: none !important; }
}

/* NEW14: wider old-site parity, bottom/gift banners, prediction comparison and sportsbook table */
.tr-layout {
  max-width: 1500px;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}
.tr-topbar { padding-left: clamp(22px, 3.2vw, 48px); padding-right: clamp(22px, 3.2vw, 48px); }
.tr-main { width: 100%; }
.match-detail-card.rich-match-detail,
.match-content-card,
.sport-card,
.league-card,
.botd-section { box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.match-detail-card.rich-match-detail { padding: 18px 22px; }
.match-hero-pro,
.match-primary-tabs,
.match-content-card { max-width: none; }

.bottom-banner {
  position: fixed;
  left: calc(var(--rail) + 22px);
  right: 22px;
  bottom: 16px;
  z-index: 80;
  min-height: 72px;
  display: grid;
  grid-template-columns: 54px 1fr 38px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 55px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
}
.bottom-banner[hidden] { display: none; }
.bottom-banner-gift {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  font-size: 22px;
  animation: giftWiggle 2.8s ease-in-out infinite;
}
.bottom-banner-link {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #fff;
  text-align: center;
}
.bottom-banner-logo img { max-height: 34px; width: auto; }
.bottom-banner-logo strong { font-family: "Space Grotesk", Inter, sans-serif; font-size: 24px; font-weight: 950; font-style: italic; }
.bottom-banner-copy {
  font-weight: 950;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.bottom-banner-copy b { color: #2affc4; }
.bottom-banner-cta {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: #111723;
  font-weight: 950;
  white-space: nowrap;
}
.bottom-banner-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
body.has-bottom-banner { padding-bottom: 96px; }

.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 7, 13, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.gift-modal[hidden] { display: none; }
.gift-modal-card {
  position: relative;
  width: min(430px, 100%);
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: #111827;
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
}
.gift-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 22px;
}
.gift-modal-visual {
  min-height: 154px;
  display: grid;
  place-items: center;
  padding: 26px;
}
.gift-modal-logo { max-height: 58px; width: auto; }
.gift-modal-body {
  padding: 26px;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.gift-modal-body p { margin: 0; color: #9aa6be; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.gift-modal-body h2 { margin: 0; color: #fff; font-family: "Space Grotesk", Inter, sans-serif; font-size: 42px; letter-spacing: -.05em; }
.gift-modal-body span { color: #bac4d8; }
.gift-modal-body a {
  margin-top: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 950;
}
.gift-modal-body small { margin-top: 6px; color: #7f899e; }

.prediction-old-card {
  padding: 22px 24px;
  background: rgba(20, 28, 43, .96);
}
.prediction-soon {
  margin: 0 0 18px;
  color: #fff;
  font-weight: 800;
}
.compare-panel-old h2,
.sportsbook-panel-old h2 {
  margin: 0 0 14px;
  color: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -.035em;
}
.compare-range-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(29,39,58,.92);
}
.compare-range-tabs button {
  height: 28px;
  padding: 0 16px;
  border-radius: 999px;
  color: #96a2ba;
  font-size: 12px;
  font-weight: 950;
}
.compare-range-tabs button.is-active { background: var(--primary); color: #fff; }
.compare-card-old {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(17,24,39,.65);
}
.compare-team-filter {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.compare-team-filter span { display: inline-flex; align-items: center; gap: 10px; }
.compare-team-filter select {
  min-width: 88px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #202a3c;
  color: #fff;
  font-weight: 850;
}
.compare-summary-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(150px, .8fr) minmax(190px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 26px 20px 12px;
}
.compare-side {
  display: flex;
  align-items: center;
  gap: 18px;
}
.compare-side.away { justify-content: flex-end; }
.compare-donut {
  --win-color: #17b978;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: conic-gradient(var(--win-color) 0 calc(var(--w) * 1%), #8b94a8 calc(var(--w) * 1%) calc((var(--w) + var(--d)) * 1%), #d02f3f calc((var(--w) + var(--d)) * 1%) 100%);
  position: relative;
  text-align: center;
}
.compare-side.away .compare-donut { --win-color: #17b978; }
.compare-donut::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #1d273a;
}
.compare-donut b,
.compare-donut span { position: relative; z-index: 1; display: block; }
.compare-donut b { font-size: 24px; color: #fff; line-height: 1; }
.compare-donut span { color: #8d98ad; font-size: 11px; }
.compare-wdl { display: grid; gap: 10px; }
.compare-wdl p { display: flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-weight: 950; }
.compare-wdl i { width: 9px; height: 9px; border-radius: 50%; }
.compare-wdl i.w { background: #17b978; }
.compare-side.away .compare-wdl i.w { background: #17b978; }
.compare-wdl i.d { background: #8b94a8; }
.compare-wdl i.l { background: #d02f3f; }
.compare-labels { display: grid; gap: 18px; color: #96a2ba; font-weight: 900; text-align: center; }
.compare-goal-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 6px 20px 16px;
  text-align: center;
}
.compare-goal-row > div:nth-child(2) { display: grid; gap: 12px; color: #96a2ba; font-weight: 900; }
.compare-goal-row b { color: #96a2ba; }
.compare-gd {
  justify-self: center;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 4px solid var(--primary);
  color: var(--primary-2);
  font-size: 20px;
  font-weight: 950;
}
.compare-gd.away { border-color: #25d6a6; color: #25d6a6; }
.compare-stat-bars { display: grid; gap: 8px; padding: 0 20px 18px; }
.compare-stat-line {
  min-height: 38px;
  display: grid;
  grid-template-columns: 96px 1fr 96px;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: rgba(31, 41, 59, .82);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}
.compare-stat-line span {
  justify-self: center;
  min-width: 56px;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 950;
}
.compare-stat-line .home-val { background: var(--primary); color: #fff; }
.compare-stat-line .away-val { background: #25d6a6; color: #fff; }
.compare-actions {
  display: flex;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.compare-actions button { color: #aeb8ce; font-weight: 950; text-transform: uppercase; }
.sportsbook-panel-old { margin-top: 18px; }
.sportsbook-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(17,24,39,.65);
}
.sportsbook-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 13px; }
.sportsbook-table th,
.sportsbook-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.sportsbook-table th { color: #8e98ad; font-size: 12px; font-weight: 950; }
.sportsbook-table tr:last-child td { border-bottom: 0; }
.sportsbook-name { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.sportsbook-name img { max-width: 92px; max-height: 26px; width: auto; }
.sportsbook-table td a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 950;
}

@media (max-width: 1300px) {
  .tr-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1100px) {
  .tr-layout { max-width: 100%; }
  .bottom-banner { left: 14px; right: 14px; bottom: 74px; grid-template-columns: 46px 1fr 34px; }
  .bottom-banner-link { gap: 10px; justify-content: flex-start; }
  .bottom-banner-copy { font-size: 12px; }
  .bottom-banner-cta { display: none; }
}
@media (max-width: 900px) {
  .compare-summary-row,
  .compare-goal-row { grid-template-columns: 1fr; }
  .compare-side,
  .compare-side.away { justify-content: center; }
  .compare-stat-line { grid-template-columns: 70px 1fr 70px; font-size: 12px; }
}
.gift-modal-visual { background-size: cover; background-position: center; }


/* NEW15: darker old-site style for gift banner, betting offers, live stats and separated sections */
.tr-layout {
  max-width: 1400px;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 26px;
}
.tr-main { max-width: none; }
.match-detail-card.rich-match-detail,
.match-content-card,
.sport-card { border-radius: 20px; }
.match-content-card { padding: 22px; }
.overview-scroll-page { gap: 22px; }
.overview-section {
  scroll-margin-top: 112px;
  padding: 22px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22,30,46,.88), rgba(15,21,34,.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 14px 28px rgba(0,0,0,.16);
}
.overview-section + .overview-section { margin-top: 20px; }
.overview-key-section { padding: 20px; }
.match-split {
  grid-template-columns: minmax(390px, .98fr) minmax(420px, 1.02fr);
  gap: 28px;
}
.match-panel {
  border-radius: 18px;
}
.match-panel h3, .panel-heading-row h3 {
  font-size: 18px;
  letter-spacing: -.035em;
}
.panel-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.tiny-select {
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  color: #a9b3c7;
  font-size: 12px;
  font-weight: 850;
}
.match-stats-panel,
.key-moments-panel {
  min-height: 100%;
}
.stats-dark-group {
  padding: 15px;
  border-radius: 15px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.stats-dark-group + .stats-dark-group { margin-top: 14px; }
.stats-dark-group h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}
.possession-bar {
  height: 6px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  margin-bottom: 12px;
  background: rgba(255,255,255,.08);
}
.possession-bar i,
.possession-bar b { display: block; height: 100%; }
.possession-bar i { background: #18c987; }
.possession-bar b { background: #5798ef; }
.possession-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.possession-row span { display: inline-flex; align-items: center; gap: 8px; }
.possession-row span:last-child { justify-content: flex-end; }
.possession-row strong { color: #28df9f; font-size: 21px; font-weight: 950; }
.possession-row span:last-child strong { color: #5ea2ff; }
.possession-row em { color: #fff; font-style: normal; font-size: 12px; font-weight: 850; text-align: center; }
.stat-pill-row {
  min-height: 40px;
  display: grid;
  grid-template-columns: 62px 1fr 62px;
  align-items: center;
  gap: 12px;
  padding: 7px 8px;
  border-radius: 11px;
  background: rgba(11,15,26,.42);
  color: #fff;
}
.stat-pill-row + .stat-pill-row { margin-top: 8px; }
.stat-pill-row b {
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255,255,255,.06);
  color: #aab6cd;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.stat-pill-row b:first-child { background: #19b978; color: #fff; }
.stat-pill-row b:last-child { background: rgba(96,165,250,.88); color: #fff; }
.stat-pill-row span {
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
}
.key-moments-panel .panel-title-row { align-items: center; }
.timeline-dark {
  min-height: 320px;
  padding: 18px 0 10px;
}
.timeline-dark::before { background: rgba(148,163,184,.15); }
.timeline-start,
.moment-empty-card,
.timeline-live-note {
  background: rgba(11,15,26,.62);
  border: 1px solid rgba(255,255,255,.06);
  color: #c1cadb;
  font-weight: 950;
}
.timeline-live-note {
  display: table;
  position: relative;
  z-index: 1;
  margin: 14px auto 0;
  padding: 9px 18px;
  border-radius: 14px;
  text-align: center;
}
.moment-empty-card {
  display: table;
  margin: 22px auto 12px;
  padding: 14px 28px;
  border-radius: 14px;
}
.timeline-event {
  grid-template-columns: auto auto 1fr;
  border-color: rgba(125,102,255,.66);
  background: rgba(125,102,255,.18);
  box-shadow: 0 10px 22px rgba(0,0,0,.13);
}
.timeline-event small {
  grid-column: 3 / 4;
  color: #a8b3c8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-event.home { border-left: 3px solid #23d39a; }
.timeline-event.away { border-right: 3px solid #5798ef; }

.tr-offers {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(22,30,46,.96), rgba(15,21,34,.98));
}
.tr-offers h2 { font-size: 18px; margin-bottom: 16px; }
.offer-list { gap: 10px; }
.offer-card-new {
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 15px;
  border-color: color-mix(in srgb, var(--offer-accent) 65%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--offer-accent) 25%, #101827), rgba(255,255,255,.035));
}
.offer-card-new::after { display: none; }
.offer-card-new .offer-copy { position: relative; z-index: 1; min-width: 0; }
.offer-card-new .offer-copy strong {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.08;
  text-transform: uppercase;
  font-weight: 950;
}
.offer-card-new .offer-copy em { color: #23e8ae; font-style: normal; }
.offer-card-new .offer-copy b {
  display: block;
  margin-top: 2px;
  color: #2affc4;
  font-size: 12px;
  line-height: 1.1;
  text-transform: uppercase;
}
.offer-card-new .offer-copy small {
  display: block;
  margin-top: 9px;
  color: rgba(255,255,255,.68);
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.offer-action {
  position: relative;
  z-index: 1;
  min-width: 128px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #05080f;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.offer-logo-pill {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #060a11;
  overflow: hidden;
  color: #fff;
  font-weight: 950;
}
.offer-logo-pill img { max-width: 25px; max-height: 25px; object-fit: contain; }
.offer-logo-text { font-size: 12px; }
.offer-progress {
  grid-column: 1 / -1;
  height: 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--offer-accent) 75%, #fff);
  opacity: .78;
}

.gift-popover {
  position: fixed;
  z-index: 140;
  left: var(--gift-left, calc(var(--rail) + 36px));
  top: var(--gift-top, 76px);
  width: min(330px, calc(100vw - 18px));
  filter: drop-shadow(0 20px 42px rgba(0,0,0,.55));
}
.gift-popover[hidden] { display: none; }
.gift-popover::before {
  content: "";
  position: absolute;
  left: 30px;
  top: -10px;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  background: #05070a;
  border-left: 2px solid #0fc9a7;
  border-top: 2px solid #0fc9a7;
}
.gift-popover-card {
  position: relative;
  overflow: hidden;
  border: 2px solid #0fc9a7;
  border-radius: 7px;
  background: #05070a;
  color: #fff;
}
.gift-popover-close {
  position: absolute;
  z-index: 3;
  right: 8px;
  top: 6px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.gift-popover-main {
  display: grid;
  gap: 9px;
  padding: 13px 11px 8px;
}
.gift-popover-top {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}
.gift-popover-logo { max-width: 58px; max-height: 52px; object-fit: contain; }
.gift-popover-logo-text { font-family: "Space Grotesk", Inter, sans-serif; font-size: 30px; font-style: italic; }
.gift-popover-top h3 {
  margin: 0;
  padding-right: 22px;
  color: #fff;
  font-size: 15px;
  line-height: 1.14;
  font-weight: 950;
  text-transform: uppercase;
}
.gift-popover-top h3 b,
.gift-popover-top h3 span b { color: #14e7c4; }
.gift-popover-top h3 span { color: #fff; }
.gift-popover-cta {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--gift-accent, #12c9a6);
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
}
.gift-popover-main small { color: #fff; font-size: 8px; opacity: .88; }

.bottom-banner {
  max-width: 780px;
  left: 50%;
  right: auto;
  transform: translateX(calc(-50% + var(--rail) / 2));
  border-color: rgba(18,201,166,.55);
}
.bottom-banner-gift { color: #fff; }

@media (max-width: 1380px) {
  .tr-layout { grid-template-columns: minmax(0, 1fr) 330px; max-width: 100%; }
  .match-split { grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr); }
}
@media (max-width: 1100px) {
  .match-split { grid-template-columns: 1fr; }
  .bottom-banner { left: 14px; right: 14px; transform: none; max-width: none; }
  .gift-popover { left: 10px !important; right: 10px; top: 72px !important; width: auto; }
}


/* NEW16: admin banner parity: bottom, gift banner and popup are separate placements */
.bottom-banner {
  display: grid !important;
  opacity: 1;
  visibility: visible;
}
.bottom-banner[hidden] { display: none !important; }
.gift-popover { z-index: 180; }
.promo-popup-banner {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4,7,13,.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.promo-popup-banner[hidden] { display: none !important; }
.promo-popup-card {
  position: relative;
  width: min(430px, calc(100vw - 28px));
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(18, 201, 166, .75);
  box-shadow: 0 26px 85px rgba(0,0,0,.58);
  background: #05070a;
}
.promo-popup-close {
  position: absolute;
  right: 9px;
  top: 8px;
  z-index: 20;
  pointer-events: auto;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.promo-popup-main {
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px 18px 14px;
  color: #fff;
}
.promo-popup-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 14px;
}
.promo-popup-logo { max-width: 72px; max-height: 60px; object-fit: contain; }
.promo-popup-head h3 {
  margin: 0;
  color: var(--bnr-text, #fff);
  font-size: 22px;
  line-height: 1.06;
  font-weight: 950;
  text-transform: uppercase;
  min-width: 0;
  overflow-wrap: anywhere;
}
.promo-popup-head h3 b {
  display: block;
  margin-top: 3px;
  font-size: 27px;
  line-height: 1.05;
  white-space: nowrap;
  color: var(--bnr-amount, #fff);
}
.promo-popup-head h3 span b { display: inline; white-space: normal; color: var(--bnr-amount, var(--popup-accent, #12c9a6)); }
.promo-popup-head h3 span { display: block; margin-top: 4px; font-size: 14px; color: var(--bnr-text, #fff); }
.promo-popup-cta {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--popup-accent, #12c9a6);
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
}
.promo-popup-main small { color: #fff; opacity: .86; font-size: 10px; }


/* NEW17: separate admin banners + full dark stats/timeline parity */
.match-split {
  align-items: stretch;
  gap: 28px;
}
.match-split > div { min-width: 0; display: flex; }
.match-split > div > .match-panel { width: 100%; }
.match-stats-panel,
.key-moments-panel {
  height: min(780px, calc(100vh - 150px));
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.stats-scroll-inner,
.timeline-dark {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(125,102,255,.65) rgba(255,255,255,.045);
  padding-right: 4px;
}
.stats-scroll-inner::-webkit-scrollbar,
.timeline-dark::-webkit-scrollbar { width: 7px; }
.stats-scroll-inner::-webkit-scrollbar-thumb,
.timeline-dark::-webkit-scrollbar-thumb { background: rgba(125,102,255,.7); border-radius: 999px; }
.stats-scroll-inner { display: grid; gap: 14px; }
.stat-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 950;
}
.stat-team { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.stat-home::before,
.stat-away::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.stat-home::before { background: #7c5cff; }
.stat-away::after { background: #28df9f; }
.possession-bar i { background: #7c5cff; }
.possession-bar b { background: #28df9f; }
.possession-row strong { color: #7c5cff; }
.possession-row span:last-child strong { color: #28df9f; }
.stat-pill-row {
  grid-template-columns: 72px minmax(130px, 1fr) 72px;
  min-height: 42px;
  background: rgba(26,36,55,.82);
  border: 1px solid rgba(255,255,255,.075);
}
.stat-pill-row b:first-child { background: #7c5cff; color: #fff; }
.stat-pill-row b:last-child { background: #28df9f; color: #fff; }
.stat-pill-row b:empty,
.stat-pill-row b:not(:has(*)) { font-variant-numeric: tabular-nums; }
.key-moments-panel .panel-title-row {
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.moment-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.moment-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #27e6b1;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}
.moment-filter i {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgba(148,163,184,.35);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.moment-filter i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}
.moment-filter.is-active i { background: #27dca8; }
.moment-filter.is-active i::after { transform: translateX(14px); }
.timeline-dark {
  flex: 1;
  min-height: 0;
  padding: 20px 6px 18px;
}
.timeline-event {
  width: min(280px, calc(50% - 28px));
  min-height: 48px;
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(26,36,55,.9);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}
.timeline-event.home { margin-right: auto; border-left: 3px solid #7c5cff; border-right: 1px solid rgba(255,255,255,.09); }
.timeline-event.away { margin-left: auto; border-right: 3px solid #28df9f; border-left: 1px solid rgba(255,255,255,.09); }
.timeline-event.neutral { margin-left: auto; margin-right: auto; }
.timeline-event .event-minute { color: #98a6bf; font-weight: 900; }
.timeline-event .event-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 13px;
}
.timeline-event.event-goal .event-icon { background: #14b878; color: #fff; }
.timeline-event.event-substitution .event-icon { background: linear-gradient(135deg,#ff5d6c 0 48%, #2bdfa8 52%); color: #fff; }
.timeline-event.event-card .event-icon { background: #f2b400; color: #111827; border-radius: 4px; }
.timeline-event .event-score {
  min-width: 46px;
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 7px;
  background: #14b878;
  color: #fff;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.timeline-event .event-player { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-event small { grid-column: 4 / 5; color: #9fb0cd; }
.timeline-live-note {
  min-width: min(280px, 84%);
  color: #d9e3f6;
  line-height: 1.55;
}
.timeline-ended { background: rgba(255,255,255,.08); }
.timeline-live { border-color: rgba(35,211,154,.35); color: #23d39a; }
.timeline-upcoming { color: #b8c4d8; }
.moment-empty-card { min-width: min(280px, 84%); text-align: center; }
.bottom-banner {
  position: fixed;
  left: calc(var(--rail) + 18px);
  right: 18px;
  bottom: 14px;
  transform: none;
  max-width: none;
  z-index: 160;
  min-height: 70px;
}
.gift-popover { z-index: 185; }
.promo-popup-banner { z-index: 210; }
.promo-popup-card { border-color: color-mix(in srgb, var(--popup-accent, #12c9a6) 78%, #fff); }
.promo-popup-cta { background: #fff; color: #061018; border-radius: 10px; min-height: 45px; }
.promo-popup-main small { color: rgba(255,255,255,.88); text-align: center; }

@supports not selector(:has(*)) {
  .stat-pill-row b { font-variant-numeric: tabular-nums; }
}
@media (max-width: 1100px) {
  .match-stats-panel,
  .key-moments-panel { height: auto; max-height: none; min-height: 0; }
  .stats-scroll-inner,
  .timeline-dark { max-height: 620px; }
  .timeline-event { width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
  .timeline-event small { grid-column: 4 / 5; }
  .bottom-banner { left: 12px; right: 12px; bottom: 76px; }
}


/* Compact match standings: 3 rows around each team + form dots */
.compact-standings-panel {
  background: linear-gradient(180deg, rgba(21, 31, 48, .98), rgba(16, 24, 38, .98));
}
.compact-standings-panel h3 {
  margin-bottom: 18px;
  font-size: 20px;
}
.compact-standings-panel h4 {
  margin: 0;
  padding: 13px 18px 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.compact-standings-table {
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
}
.compact-standings-table th {
  background: transparent;
}
.compact-standings-table th,
.compact-standings-table td {
  padding: 13px 14px;
}
.compact-standings-table td {
  background: rgba(255,255,255,.018);
}
.compact-standings-table tr.is-highlight td {
  background: rgba(255,255,255,.035);
  color: #fff;
}
.compact-standings-table tr.is-highlight td:nth-child(3) b,
.compact-standings-table tr.is-highlight td:nth-child(8),
.compact-standings-table tr.is-highlight td:nth-child(9) {
  color: #fff;
}
.compact-standings-table tr td:first-child,
.compact-standings-table tr th:first-child {
  width: 22px;
  text-align: center;
}
.table-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148,163,184,.45);
}
.compact-standings-table tr.is-highlight .table-live-dot {
  background: #22d68b;
  box-shadow: 0 0 0 4px rgba(34,214,139,.12);
}
.standings-gap td {
  padding: 10px 14px !important;
  text-align: center !important;
  color: rgba(148,163,184,.40) !important;
  background: rgba(255,255,255,.012) !important;
  letter-spacing: .25em;
  border-bottom: 1px solid rgba(148,163,184,.12) !important;
}
.standing-team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.standing-team .mini-team-badge {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.standing-team .mini-team-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.standings-form-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.standings-form-dots i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148,163,184,.36);
}
.standings-form-dots i.is-win { background: #22c55e; }
.standings-form-dots i.is-loss { background: #ef4444; }
.standings-form-dots i.is-draw { background: #94a3b8; }
.standings-form-dots i.is-empty { background: rgba(148,163,184,.24); }

/* Кръгчета за форма под отборите (списък + хедър на мача) */
.form-dots { display: inline-flex; align-items: center; gap: 4px; }
.form-dots i { display: inline-block; width: 7px; height: 7px; border-radius: 999px; background: rgba(148,163,184,.36); cursor: default; }
.form-dots i.is-win { background: #22c55e; }
.form-dots i.is-loss { background: #ef4444; }
.form-dots i.is-draw { background: #94a3b8; }
.form-dots i.is-last { width: 9px; height: 9px; box-shadow: 0 0 0 2px rgba(127,127,127,.38); }
.match-team .form-dots { margin-top: 2px; }
.full-standing-link {
  display: block;
  margin: 10px 16px 14px auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}
@media (max-width: 760px) {
  .compact-standings-table { min-width: 760px; }
  .compact-standings-panel h3 { font-size: 17px; }
}
.standing-team > img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

/* NEW19: match hero odds, clearer stat comparison and timeline status copy */
.match-hero-odds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.hero-odd-box {
  min-height: 74px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.28);
  background: rgba(26,36,55,.76);
  color: #fff;
  text-align: center;
}
.hero-odd-box span {
  color: #8d9bb7;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.hero-odd-box b {
  font-size: 19px;
  font-weight: 950;
  line-height: 1;
}
.hero-odd-box.is-winner {
  border-color: rgba(39,230,177,.85);
  background: rgba(15, 92, 75, .42);
  box-shadow: inset 0 0 0 1px rgba(39,230,177,.1), 0 14px 34px rgba(0,0,0,.18);
}
.hero-odd-box.is-empty { opacity: .6; pointer-events: none; }
.match-state-line {
  margin-top: 7px;
  color: #99a9c7;
  font-weight: 800;
  font-size: 13px;
}
.match-state-line.is-ended { color: #aebbd2; }
.match-state-line.is-live { color: #ff4d74; }
.match-state-line.is-live span,
.timeline-live-note.timeline-live b {
  display: inline-block;
  margin-right: 4px;
  color: #ff305f;
  font-weight: 950;
  animation: trxLiveBlink 1s ease-in-out infinite;
}
@keyframes trxLiveBlink {
  0%, 100% { opacity: 1; text-shadow: 0 0 0 rgba(255,48,95,0); }
  50% { opacity: .35; text-shadow: 0 0 10px rgba(255,48,95,.55); }
}

.stat-pill-row b {
  background: rgba(22,31,48,.72) !important;
  color: #91a2c0 !important;
  box-shadow: none !important;
}
.stat-pill-row b.is-high.stat-high-home {
  background: #7c5cff !important;
  color: #fff !important;
}
.stat-pill-row b.is-high.stat-high-away {
  background: #28df9f !important;
  color: #041311 !important;
}
.possession-row strong {
  color: #91a2c0 !important;
}
.possession-row.home-high span:first-child strong {
  color: #7c5cff !important;
}
.possession-row.away-high span:last-child strong {
  color: #28df9f !important;
}
.timeline-event.home {
  margin-right: auto !important;
  margin-left: 0 !important;
}
.timeline-event.away {
  margin-left: auto !important;
  margin-right: 0 !important;
}
.timeline-event.event-goal .event-score {
  background: #10b981;
  color: #fff;
}
.timeline-live-note.timeline-ended {
  background: rgba(255,255,255,.075);
  color: #dbe6f8;
  font-weight: 850;
}
.timeline-live-note.timeline-live {
  border-color: rgba(255,48,95,.35);
  background: rgba(255,48,95,.08);
  color: #e8efff;
  font-weight: 850;
}
@media (max-width: 760px) {
  .match-hero-odds { grid-template-columns: 1fr; }
  .hero-odd-box { min-height: 58px; }
}


/* new20: Match info, standings and comparison refinements */
.match-info-pro-panel {
  padding: 22px;
}
.match-info-pro-panel h3 {
  font-size: 22px;
  margin: 0 0 16px;
}
.match-info-list {
  display: grid;
  gap: 0;
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(148,163,184,.16);
}
.match-info-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(148,163,184,.14);
}
.match-info-row:last-child { border-bottom: 0; }
.match-info-row i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-style: normal;
  border-radius: 9px;
  background: rgba(34,211,167,.12);
  color: #22d3a7;
}
.match-info-row span {
  display: block;
  color: #98a5bd;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}
.match-info-row b {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.35;
}
.match-info-row small {
  display: block;
  color: #9aa7c0;
  margin-top: 3px;
}
.compare-goal-row-detailed {
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: center;
}
.compare-gd-pack {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: #9aa7c0;
  font-weight: 900;
  min-height: 112px;
  align-content: center;
}
.compare-gd-pack span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.compare-gd-pack span b { color: #fff; font-size: 13px; }
.compare-gd-pack.away span b { color: #25d6a6; }
.compare-gd-pack.home span b { color: var(--primary-2); }
.compare-goal-labels {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: #96a2ba;
  font-weight: 950;
}
.compare-goal-labels b { color: #b7c1d5; font-size: 15px; }
.compact-standings-table td:last-child,
.compact-standings-table th:last-child {
  min-width: 86px;
}
@media (max-width: 760px) {
  .compare-goal-row-detailed { grid-template-columns: 1fr; }
  .match-info-pro-panel { padding: 16px; }
}


/* NEW22: latest results expand, sportsbook voting/sorting, wider key moments */
.match-split-events {
  /* FIX (desktop рязане вдясно): по-рано колоните имаха минимум 330px + 560px,
     които не се свиваха и бутаха Key moments извън картата. minmax(0, …) пази
     същата пропорция, но позволява и двете колони да се сместят в контейнера. */
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: start;
}
.match-split-events .stats-side,
.match-split-events .moments-side,
.match-split-events .match-stats-panel,
.match-split-events .key-moments-panel { min-width: 0; }
.match-split-events .timeline-event,
.match-split-events .timeline-event .event-player { min-width: 0; }
.match-split-events .stats-side,
.match-split-events .moments-side { align-self: stretch; }
.match-split-events .match-stats-panel {
  height: min(760px, calc(100vh - 150px));
  min-height: 560px;
  overflow: hidden;
}
.match-split-events .key-moments-panel {
  height: auto;
  min-height: min(760px, calc(100vh - 150px));
  overflow: visible;
}
.match-split-events .key-moments-panel .timeline-dark {
  overflow: visible;
  max-height: none;
  min-height: 640px;
}
.match-split-events .stats-scroll-inner {
  overflow-y: auto;
  max-height: calc(min(760px, calc(100vh - 150px)) - 72px);
}
.stat-pill-row b:first-child,
.stat-pill-row b:last-child {
  background: rgba(255,255,255,.055);
  color: #9fb0cb;
}
.stat-pill-row b.is-high.stat-high-home { background: #7c5cff; color: #fff; }
.stat-pill-row b.is-high.stat-high-away { background: #28df9f; color: #fff; }
.possession-row strong { color: #9fb0cb; }
.possession-row.home-high span:first-child strong { color: #7c5cff; }
.possession-row.away-high span:last-child strong { color: #28df9f; }
.timeline-event.home {
  margin-left: 0;
  margin-right: auto;
  transform: translateX(-2px);
}
.timeline-event.away {
  margin-left: auto;
  margin-right: 0;
  transform: translateX(2px);
}
.timeline-event.event-goal {
  background: rgba(20,184,120,.10);
  border-color: rgba(20,184,120,.35);
}
.timeline-event.event-goal .event-score {
  background: #14b878;
  color: #fff;
  font-size: 13px;
  min-width: 52px;
}
.timeline-event.event-substitution .event-icon {
  background: conic-gradient(from 45deg, #ef4444 0 35%, #ffffff 35% 45%, #27dca8 45% 80%, #ffffff 80% 90%, #ef4444 90% 100%);
  color: transparent;
}
.timeline-live b {
  color: #ff4266;
  animation: trxLiveBlink 1s ease-in-out infinite;
}
@keyframes trxLiveBlink { 0%,100%{opacity:1} 50%{opacity:.32} }
.recent-pro-row.is-extra-hidden { display: none; }
.show-more-btn[hidden] { display: none !important; }
.show-more-btn {
  width: 100%;
  margin-top: 12px;
  min-height: 38px;
  border-radius: 10px;
  background: rgba(125,102,255,.18);
  color: #a78bfa;
  font-weight: 950;
  text-transform: uppercase;
}
.show-more-btn:hover { background: rgba(125,102,255,.28); color: #fff; }
.sportsbook-panel-new { padding: 22px; }
.sportsbook-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.sportsbook-title-row h2 { margin: 0; }
.sportsbook-sort-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.sportsbook-sort-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #9aa8c0;
  font-weight: 900;
}
.sportsbook-sort-btn.is-active,
.sportsbook-sort-btn:hover { background: rgba(125,102,255,.25); color: #fff; }
.sportsbook-rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sportsbook-rank-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "head bonus" "overview like";
  align-items: center;
  gap: 7px 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(18,26,42,.55);
}
.book-head { grid-area: head; display: flex; align-items: center; gap: 10px; min-width: 0; }
.book-rank {
  flex: 0 0 auto; min-width: 14px; text-align: center;
  color: #8a97ad; font-weight: 950; font-size: 14px;
}
.book-rank.is-gold { color: #f5b400; }
.book-rank.is-silver { color: #c2cbda; }
.book-rank.is-bronze { color: #d98c2f; }
.book-logo-tile {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  color: #0b1220; font-weight: 950;
}
.book-logo-tile img { max-width: 34px; max-height: 34px; object-fit: contain; }
.book-logo-tile .bk-logo-m { display: none; }
.book-id { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.book-id strong { color: #fff; font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-rating { display: inline-flex; align-items: center; gap: 4px; color: #cdd6e6; font-weight: 800; font-size: 12.5px; }
.book-rating i { color: #f5b400; font-style: normal; }
.book-overview-btn,
.book-like-btn {
  min-height: 32px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px;
  background: rgba(30,41,59,.7);
  color: #aebad0;
  font-weight: 800; font-size: 12.5px;
  border: 0; font-family: inherit; text-decoration: none;
}
.book-overview-btn { grid-area: overview; }
.book-overview-btn span { opacity: .8; }
.book-like-btn { grid-area: like; cursor: pointer; }
.book-overview-btn:hover,
.book-like-btn:hover,
.book-like-btn.is-voted {
  background: rgba(23,185,120,.22);
  color: #fff;
}
.book-like-btn.is-loading { opacity: .65; pointer-events: none; }
.book-bonus {
  grid-area: bonus;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  column-gap: 8px;
  min-height: 40px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(30,41,59,.7);
  color: #fff; text-decoration: none;
}
.book-gift {
  width: 30px; height: 30px; display: inline-grid; place-items: center;
  border-radius: 50%; background: rgba(3,7,14,.55); font-size: 14px;
}
.book-bonus-txt { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.book-bonus-txt strong { font-size: 14px; line-height: 1.1; font-weight: 900; }
.book-bonus-txt small { color: #9fb0cc; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-bonus em { color: #8fa0bb; font-style: normal; font-size: 18px; }
.book-bonus:hover { background: rgba(23,185,120,.16); }
@media (max-width: 560px) {
  .book-logo-tile { width: 36px; height: 36px; }
  .book-logo-tile img { max-width: 30px; max-height: 30px; }
  .book-logo-tile .bk-logo-d { display: none; }
  .book-logo-tile .bk-logo-m { display: block; }
  .book-id strong { font-size: 13px; }
  .book-bonus-txt strong { font-size: 13px; }
}
@media (max-width: 1250px) {
  .match-split-events { grid-template-columns: 1fr; }
  .match-split-events .match-stats-panel,
  .match-split-events .key-moments-panel { height: auto; min-height: 0; }
  .match-split-events .stats-scroll-inner,
  .match-split-events .key-moments-panel .timeline-dark { max-height: 640px; overflow-y: auto; }
}


/* collapse offers sidebar when hidden */
.tr-offers.is-hidden{display:none!important;}
.layout-offers-hidden .tr-offers{display:none!important;}
.layout-offers-hidden{grid-template-columns:minmax(0,1fr)!important;}


/* Arc browser rendering fixes */
/* overflow-x:hidden on the root/body silently breaks position:sticky.
   overflow-x:clip prevents horizontal scroll WITHOUT creating a scroll
   container, so native sticky keeps working. (hidden kept as fallback
   for very old browsers that don't support clip.) */
html,body{overflow-x:hidden;overflow-x:clip}
.tr-page,.tr-layout,.main-content,.content,.tr-content,.tr-main{
min-width:0!important;
overflow:visible!important;
}
[class*="stats"],[class*="comparison"],[class*="overview"],.card,.panel{
min-width:0!important;
}
@supports (-webkit-touch-callout:none){
.tr-page,.tr-layout,.main-content{width:100%!important;max-width:none!important;}
}


/* Responsive fixes */
.tr-main,.match-content-card,.sport-card,.league-card,.match-detail-card{
min-width:0!important;
max-width:100%!important;
}
/* десктоп: layout-ът центриран и капнат на 1400px (под 1400px → пълна ширина, виж медиите по-долу) */
.tr-layout{
min-width:0!important;
max-width:1400px!important;
margin-left:auto!important;
margin-right:auto!important;
}
/* Широки екрани (като Scores24): цялата обвивка — меню + съдържание — е центрирана
   с равни полета отстрани. Зоната е ~1632px (рейл 232 + съдържание 1400). */
@media (min-width: 1633px){
  .tr-rail{ left: calc((100vw - 1632px) / 2) !important; }
  .tr-page{
    margin-left: calc(var(--rail) + (100vw - 1632px) / 2) !important;
    margin-right: calc((100vw - 1632px) / 2) !important;
  }
  .tr-layout{ max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
}
@media (max-width: 1280px){
 .tr-layout{grid-template-columns:minmax(0,1fr)!important;}
 .tr-offers,.right-sidebar,.offers-sidebar{display:none!important;}
}
@media (max-width: 768px){
 .tr-layout{padding:12px!important;}
 .comparison-grid,.stats-grid,.match-stats-grid{grid-template-columns:1fr!important;}
}


/* Match page responsive fixes */
.match-layout,.match-page,.match-content,.comparison-grid,.stats-grid,.match-card{
 min-width:0 !important;
 max-width:100% !important;
}
@media (max-width: 1400px){
 .tr-offers{display:none !important;}
 .tr-layout,.match-layout{grid-template-columns:minmax(0,1fr) !important;}
}
@media (max-width: 900px){
 .comparison-grid,.stats-grid,[class*="comparison"],[class*="stats"]{
   grid-template-columns:1fr !important;
 }
 table{display:block;overflow-x:auto;}
}

@media (max-width:1400px){
 .tr-offers{display:none!important;}
 .tr-layout{grid-template-columns:minmax(0,1fr)!important;max-width:100%!important;}
}
@media (max-width:768px){
 .match-split,.compare-summary-row,.compare-goal-row{grid-template-columns:1fr!important;}
 .bottom-banner{left:10px!important;right:10px!important;width:auto!important;max-width:none!important;}
}

/* MOBILE VIEW REPAIR 20260619-mobilefix
   Forces the main content to use the full phone width and keeps filters/dates
   as horizontal touch scrollers instead of squeezing into a narrow column. */
@media (max-width: 1023px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body { min-width: 0 !important; }

  .tr-app,
  .tr-page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    overflow-x: hidden !important;
  }

  .tr-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px 12px 92px !important;
    box-sizing: border-box !important;
  }

  .tr-main {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .tr-offers,
  .right-sidebar,
  .offers-sidebar {
    display: none !important;
  }

  .breadcrumbs,
  #pageTitle,
  #viewHost,
  .view-host {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #pageTitle {
    display: block !important;
    margin: 0 0 16px !important;
    font-size: clamp(24px, 7vw, 30px) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  #matchesToolbar,
  .sport-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 16px !important;
    padding: 12px !important;
    overflow: hidden !important;
  }

  .sport-scroll {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 12px !important;
    -webkit-overflow-scrolling: touch;
  }

  .sport-scroll > * {
    flex: 0 0 auto !important;
  }

  .toolbar-row {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: stretch !important;
    justify-content: start !important;
  }

  .filter-tabs {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 0 3px !important;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tabs > * {
    flex: 0 0 auto !important;
  }

  .filter-btn,
  .odds-toggle {
    white-space: nowrap !important;
  }

  .filter-btn {
    height: 36px !important;
    min-width: max-content !important;
  }

  .odds-toggle {
    min-height: 36px !important;
  }

  .date-strip {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    margin: 0 !important;
    padding: 0 0 2px !important;
    -webkit-overflow-scrolling: touch;
  }

  .date-strip > * {
    flex: 0 0 auto !important;
  }

  .date-btn {
    flex-basis: 44px !important;
    min-width: 44px !important;
  }

  .state-card,
  .league-card,
  .match-detail-card,
  .botd-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .mobile-bottom-bar {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (max-width: 620px) {
  .tr-topbar {
    display: grid !important;
    grid-template-columns: 42px 42px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 10px 12px !important;
  }

  #openDrawer {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  #giftButton {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .tr-topbar .top-actions {
    grid-column: 4 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    margin-left: 0 !important;
  }

  .tr-topbar .view-tabs {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    order: initial !important;
    width: 100% !important;
  }

  .tr-topbar .search-wrap {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    order: initial !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  .tr-top-promo {
    height: 44px !important;
    padding: 0 8px !important;
    gap: 7px !important;
  }

  .promo-brand {
    flex: 0 0 auto !important;
    font-size: 20px !important;
  }

  .promo-copy {
    min-width: 0 !important;
    font-size: 10px !important;
  }

  .promo-cta {
    padding: 6px 10px !important;
    font-size: 10px !important;
  }

  .promo-close {
    width: 26px !important;
    height: 26px !important;
    flex: 0 0 26px !important;
  }
}

@media (max-width: 430px) {
  .tr-layout {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  #pageTitle {
    font-size: 25px !important;
  }

  .filter-btn {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .sport-card {
    border-radius: 16px !important;
  }

  .bottom-banner {
    left: 10px !important;
    right: 10px !important;
    bottom: 74px !important;
  }
}


/* Match/BOTD page chrome fix: mobile CSS forces #matchesToolbar visible with !important. */
body.is-match-page #matchesToolbar,
body.is-botd-page #matchesToolbar {
  display: none !important;
}

@media (max-width: 620px) {
  body.is-match-page #giftButton,
  body.is-match-page .tr-topbar .view-tabs {
    display: none !important;
  }
}


/* Match mobile chrome fix v2: hide filters/top buttons on match detail even before app JS finishes. */
html.is-match-page-route #matchesToolbar,
html.is-botd-page-route #matchesToolbar,
body.is-match-page #matchesToolbar,
body.is-botd-page #matchesToolbar,
html.is-match-page-route .sport-card[aria-label="Football filters"],
html.is-botd-page-route .sport-card[aria-label="Football filters"],
body.is-match-page .sport-card[aria-label="Football filters"],
body.is-botd-page .sport-card[aria-label="Football filters"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 620px) {
  html.is-match-page-route #openDrawer,
  html.is-match-page-route #giftButton,
  html.is-match-page-route .tr-topbar .view-tabs,
  body.is-match-page #openDrawer,
  body.is-match-page #giftButton,
  body.is-match-page .tr-topbar .view-tabs {
    display: none !important;
    visibility: hidden !important;
  }

  html.is-match-page-route .tr-topbar,
  body.is-match-page .tr-topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  html.is-match-page-route .tr-topbar .top-actions,
  body.is-match-page .tr-topbar .top-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  html.is-match-page-route .tr-topbar .search-wrap,
  body.is-match-page .tr-topbar .search-wrap {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }
}


/* MATCH MOBILE VIEW FIX v3: compact, horizontal match header and non-intrusive mobile sections. */
@media (max-width: 620px) {
  html.is-match-page-route,
  html.is-match-page-route body,
  body.is-match-page {
    background: #0b101b !important;
  }

  html.is-match-page-route .tr-page,
  body.is-match-page .tr-page {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  html.is-match-page-route .tr-layout,
  body.is-match-page .tr-layout {
    padding: 10px 8px 88px !important;
  }

  html.is-match-page-route .breadcrumbs,
  html.is-match-page-route #pageTitle,
  body.is-match-page .breadcrumbs,
  body.is-match-page #pageTitle {
    display: none !important;
  }

  html.is-match-page-route .view-host,
  html.is-match-page-route #viewHost,
  body.is-match-page .view-host,
  body.is-match-page #viewHost {
    width: 100% !important;
    max-width: 100% !important;
  }

  html.is-match-page-route .match-detail-card.rich-match-detail,
  body.is-match-page .match-detail-card.rich-match-detail {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    gap: 10px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html.is-match-page-route .rich-match-detail > .back-link,
  body.is-match-page .rich-match-detail > .back-link {
    min-height: 34px !important;
    margin: 0 2px 2px !important;
    align-items: center !important;
    font-size: 13px !important;
  }

  html.is-match-page-route .match-hero-pro,
  body.is-match-page .match-hero-pro {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 12px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  html.is-match-page-route .match-titleline,
  body.is-match-page .match-titleline {
    margin-bottom: 12px !important;
    gap: 4px !important;
  }

  html.is-match-page-route .match-titleline b,
  body.is-match-page .match-titleline b {
    font-size: 18px !important;
    line-height: 1.15 !important;
  }

  html.is-match-page-route .match-titleline span,
  body.is-match-page .match-titleline span {
    font-size: 12px !important;
  }

  html.is-match-page-route .match-hero-board,
  body.is-match-page .match-hero-board {
    grid-template-columns: minmax(70px, 1fr) minmax(86px, auto) minmax(70px, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
  }

  html.is-match-page-route .match-team.big,
  body.is-match-page .match-team.big {
    min-width: 0 !important;
    gap: 6px !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  html.is-match-page-route .match-team.big span,
  body.is-match-page .match-team.big span {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html.is-match-page-route .match-team.big .team-logo,
  body.is-match-page .match-team.big .team-logo {
    width: 50px !important;
    height: 50px !important;
    font-size: 13px !important;
  }

  html.is-match-page-route .match-center-score,
  body.is-match-page .match-center-score {
    min-width: 0 !important;
  }

  html.is-match-page-route .match-center-score strong,
  body.is-match-page .match-center-score strong {
    font-size: 36px !important;
    white-space: nowrap !important;
  }

  html.is-match-page-route .match-ht,
  body.is-match-page .match-ht {
    margin-top: 4px !important;
    font-size: 11px !important;
  }

  html.is-match-page-route .match-state-line,
  body.is-match-page .match-state-line {
    margin-top: 5px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  html.is-match-page-route .match-hero-odds,
  body.is-match-page .match-hero-odds {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }

  html.is-match-page-route .hero-odd-box,
  body.is-match-page .hero-odd-box {
    min-height: 54px !important;
    padding: 7px 4px !important;
    border-radius: 12px !important;
  }

  html.is-match-page-route .hero-odd-box span,
  body.is-match-page .hero-odd-box span {
    font-size: 10px !important;
  }

  html.is-match-page-route .hero-odd-box b,
  body.is-match-page .hero-odd-box b {
    font-size: 17px !important;
  }

  html.is-match-page-route .hero-odd-box .trend-bookmaker,
  body.is-match-page .hero-odd-box .trend-bookmaker {
    width: 54px !important;
    height: 16px !important;
  }

  html.is-match-page-route .hero-odd-box .trend-bookmaker img,
  body.is-match-page .hero-odd-box .trend-bookmaker img {
    max-width: 50px !important;
    max-height: 13px !important;
  }

  html.is-match-page-route .match-quick-info,
  body.is-match-page .match-quick-info {
    margin-top: 12px !important;
    gap: 6px !important;
  }

  html.is-match-page-route .match-quick-info span,
  body.is-match-page .match-quick-info span {
    max-width: 44% !important;
    padding: 5px 8px !important;
    font-size: 10px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html.is-match-page-route .match-primary-tabs,
  body.is-match-page .match-primary-tabs,
  html.is-match-page-route .match-sub-tabs,
  body.is-match-page .match-sub-tabs,
  html.is-match-page-route .match-subtabs,
  body.is-match-page .match-subtabs {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  html.is-match-page-route .match-primary-tabs::-webkit-scrollbar,
  body.is-match-page .match-primary-tabs::-webkit-scrollbar,
  html.is-match-page-route .match-sub-tabs::-webkit-scrollbar,
  body.is-match-page .match-sub-tabs::-webkit-scrollbar,
  html.is-match-page-route .match-subtabs::-webkit-scrollbar,
  body.is-match-page .match-subtabs::-webkit-scrollbar {
    display: none !important;
  }

  html.is-match-page-route .match-primary-tab,
  body.is-match-page .match-primary-tab,
  html.is-match-page-route .match-sub-tab,
  body.is-match-page .match-sub-tab,
  html.is-match-page-route .match-subtabs a,
  body.is-match-page .match-subtabs a {
    flex: 0 0 auto !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 12px !important;
  }

  html.is-match-page-route .match-content-card,
  body.is-match-page .match-content-card,
  html.is-match-page-route .match-panel,
  body.is-match-page .match-panel {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  html.is-match-page-route .match-split,
  body.is-match-page .match-split,
  html.is-match-page-route .match-split-events,
  body.is-match-page .match-split-events,
  html.is-match-page-route .prediction-grid,
  body.is-match-page .prediction-grid,
  html.is-match-page-route .recent-grid,
  body.is-match-page .recent-grid {
    grid-template-columns: 1fr !important;
  }

  html.is-match-page-route .table-wrap,
  body.is-match-page .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (max-width: 360px) {
  html.is-match-page-route .match-hero-board,
  body.is-match-page .match-hero-board {
    grid-template-columns: minmax(58px, 1fr) minmax(78px, auto) minmax(58px, 1fr) !important;
    gap: 6px !important;
  }

  html.is-match-page-route .match-team.big .team-logo,
  body.is-match-page .match-team.big .team-logo {
    width: 44px !important;
    height: 44px !important;
  }

  html.is-match-page-route .match-center-score strong,
  body.is-match-page .match-center-score strong {
    font-size: 32px !important;
  }
}

/* MOBILEFIX4: comparison and key moments layout parity */
.prediction-old-card {
  padding: 16px 18px !important;
}
.compare-panel-old {
  margin: 0 !important;
}
.compare-panel-old h2 {
  margin-bottom: 14px !important;
}
.compare-card-old {
  overflow: hidden !important;
  border-radius: 16px !important;
  border: 1px solid rgba(148,163,184,.20) !important;
  background: rgba(15,23,42,.72) !important;
}
.compare-team-filter {
  min-height: 52px !important;
  padding: 10px 14px !important;
  background: rgba(255,255,255,.025) !important;
}
.compare-team-filter select {
  min-width: 80px !important;
  height: 32px !important;
  border-radius: 7px !important;
}
.compare-summary-row {
  grid-template-columns: minmax(0,1fr) minmax(84px,.42fr) minmax(0,1fr) !important;
  gap: 10px !important;
  padding: 20px 16px 10px !important;
}
.compare-side,
.compare-side.away {
  display: grid !important;
  grid-template-columns: 76px 38px !important;
  align-items: center !important;
  justify-content: start !important;
  gap: 9px !important;
  min-width: 0 !important;
}
.compare-side.away {
  grid-template-columns: 38px 76px !important;
  justify-content: end !important;
}
.compare-donut {
  width: 76px !important;
  height: 76px !important;
}
.compare-donut::after {
  inset: 13px !important;
}
.compare-donut b {
  font-size: 22px !important;
}
.compare-donut span {
  font-size: 10px !important;
  line-height: 1.05 !important;
}
.compare-wdl {
  gap: 7px !important;
}
.compare-wdl p {
  gap: 6px !important;
  font-size: 13px !important;
}
.compare-wdl i {
  width: 9px !important;
  height: 9px !important;
}
.compare-labels {
  gap: 13px !important;
  font-size: 13px !important;
  align-self: center !important;
}
.compare-goal-row-detailed,
.compare-goal-row {
  grid-template-columns: minmax(0,1fr) minmax(98px,.48fr) minmax(0,1fr) !important;
  gap: 10px !important;
  padding: 8px 16px 14px !important;
}
.compare-gd-pack {
  display: grid !important;
  grid-template-columns: 62px minmax(0,auto) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-content: start !important;
  justify-items: start !important;
  column-gap: 10px !important;
  row-gap: 5px !important;
  min-height: 70px !important;
  text-align: left !important;
}
.compare-gd-pack .compare-gd {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
}
.compare-gd-pack span {
  grid-column: 2 !important;
  justify-content: flex-start !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}
.compare-gd-pack.away {
  grid-template-columns: minmax(0,auto) 62px !important;
  justify-content: end !important;
  justify-items: end !important;
  text-align: right !important;
}
.compare-gd-pack.away .compare-gd {
  grid-column: 2 !important;
}
.compare-gd-pack.away span {
  grid-column: 1 !important;
  justify-content: flex-end !important;
}
.compare-gd {
  width: 56px !important;
  height: 56px !important;
  border-width: 4px !important;
  font-size: 18px !important;
}
.compare-goal-labels {
  gap: 8px !important;
  font-size: 12px !important;
  align-self: center !important;
}
.compare-goal-labels b {
  font-size: 13px !important;
}
.compare-stat-bars {
  gap: 6px !important;
  padding: 0 16px 14px !important;
}
.compare-stat-line {
  min-height: 30px !important;
  grid-template-columns: 62px minmax(0,1fr) 62px !important;
  gap: 7px !important;
  border-radius: 0 !important;
  background: rgba(255,255,255,.07) !important;
  color: #eef2fb !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}
.compare-stat-line span {
  min-width: 50px !important;
  width: 100% !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 8px !important;
  border-radius: 0 !important;
  font-size: 13px !important;
}
.compare-stat-line b {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.compare-actions {
  padding: 12px 16px !important;
}

.key-moments-clean {
  overflow: hidden !important;
}
.key-moments-clean .panel-title-row {
  gap: 12px !important;
  align-items: center !important;
}
.timeline-clean {
  position: relative !important;
  min-height: 360px !important;
  padding: 18px 8px 18px !important;
  overflow: visible !important;
}
.timeline-clean::before {
  left: 50% !important;
  top: 50px !important;
  bottom: 38px !important;
  width: 1px !important;
  background: rgba(148,163,184,.18) !important;
}
.timeline-clean .timeline-start,
.timeline-clean .timeline-live-note,
.timeline-clean .moment-empty-card {
  position: relative !important;
  z-index: 2 !important;
  display: table !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 12px !important;
}
.timeline-clean .timeline-event {
  position: relative !important;
  z-index: 2 !important;
  width: min(46%, 380px) !important;
  min-height: 48px !important;
  margin: 10px 0 !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(148,163,184,.15) !important;
  box-shadow: none !important;
  column-gap: 8px !important;
  row-gap: 2px !important;
  font-size: 12px !important;
}
.timeline-clean .timeline-event.home {
  margin-left: 0 !important;
  margin-right: auto !important;
  transform: none !important;
  border-left: 3px solid #20c997 !important;
  border-right: 1px solid rgba(148,163,184,.15) !important;
}
.timeline-clean .timeline-event.away {
  margin-left: auto !important;
  margin-right: 0 !important;
  transform: none !important;
  border-right: 3px solid #5b95f5 !important;
  border-left: 1px solid rgba(148,163,184,.15) !important;
}
.timeline-clean .timeline-event.neutral {
  margin-left: auto !important;
  margin-right: auto !important;
}
.timeline-clean .timeline-event.event-goal {
  background: rgba(34,197,94,.08) !important;
  border-color: rgba(34,197,94,.25) !important;
}
.timeline-clean .timeline-event.event-goal.home {
  border-left-color: #16a34a !important;
}
.timeline-clean .timeline-event.event-goal.away {
  border-right-color: #16a34a !important;
}
.timeline-clean .timeline-event.is-own-goal {
  background: rgba(239,68,68,.08) !important;
  border-color: rgba(239,68,68,.38) !important;
}
.timeline-clean .timeline-event.is-own-goal.home {
  border-left-color: #ef4444 !important;
}
.timeline-clean .timeline-event.is-own-goal.away {
  border-right-color: #ef4444 !important;
}
.timeline-clean .timeline-event.home {
  grid-template-columns: 32px 24px minmax(48px,auto) minmax(0,1fr) !important;
}
.timeline-clean .timeline-event.away {
  grid-template-columns: minmax(0,1fr) minmax(48px,auto) 24px 32px !important;
}
.timeline-clean .timeline-event.home .event-minute {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
}
.timeline-clean .timeline-event.home .event-icon {
  grid-column: 2 !important;
}
.timeline-clean .timeline-event.home .event-score {
  grid-column: 3 !important;
}
.timeline-clean .timeline-event.home .event-player {
  grid-column: 4 !important;
}
.timeline-clean .timeline-event.home .event-detail {
  grid-column: 4 !important;
}
.timeline-clean .timeline-event.home:not(.event-goal) .event-player,
.timeline-clean .timeline-event.home:not(.event-goal) .event-detail {
  grid-column: 3 / 5 !important;
}
.timeline-clean .timeline-event.away .event-minute {
  grid-column: 4 !important;
  grid-row: 1 / 3 !important;
  text-align: right !important;
}
.timeline-clean .timeline-event.away .event-icon {
  grid-column: 3 !important;
}
.timeline-clean .timeline-event.away .event-score {
  grid-column: 2 !important;
}
.timeline-clean .timeline-event.away .event-player {
  grid-column: 1 !important;
  text-align: right !important;
}
.timeline-clean .timeline-event.away .event-detail {
  grid-column: 1 !important;
  text-align: right !important;
}
.timeline-clean .timeline-event.away:not(.event-goal) .event-player,
.timeline-clean .timeline-event.away:not(.event-goal) .event-detail {
  grid-column: 1 / 3 !important;
}
.timeline-clean .event-minute {
  color: #9aa7bd !important;
  font-weight: 850 !important;
  line-height: 22px !important;
}
.timeline-clean .event-icon {
  width: 22px !important;
  height: 22px !important;
  font-size: 12px !important;
}
.timeline-clean .event-score {
  min-width: 48px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  background: #16a34a !important;
}
.timeline-clean .timeline-event.is-own-goal .event-score {
  background: #ef4444 !important;
}
.timeline-clean .event-player {
  min-width: 0 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}
.timeline-clean .event-detail {
  color: #9fb0cd !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}
.timeline-clean .event-detail.is-own-goal {
  color: #ff4d5f !important;
  font-weight: 950 !important;
}
.timeline-clean .timeline-event.event-card .event-icon {
  background: #f2b400 !important;
  border-radius: 4px !important;
  color: transparent !important;
}
.timeline-clean .timeline-event.event-card.is-red-card .event-icon {
  background: #e5342b !important;
  border-radius: 4px !important;
  color: transparent !important;
}
.timeline-clean .timeline-event.event-substitution .event-icon {
  background: conic-gradient(from 45deg, #ef4444 0 35%, #ffffff 35% 45%, #27dca8 45% 80%, #ffffff 80% 90%, #ef4444 90% 100%) !important;
  color: transparent !important;
}

@media (max-width: 620px) {
  .prediction-old-card {
    padding: 14px 12px !important;
  }
  .compare-panel-old h2 {
    font-size: 18px !important;
  }
  .compare-range-tabs {
    margin-bottom: 12px !important;
  }
  .compare-range-tabs button {
    height: 28px !important;
    padding: 0 14px !important;
  }
  .compare-team-filter {
    padding: 9px 12px !important;
  }
  .compare-team-filter select {
    min-width: 74px !important;
    height: 30px !important;
    font-size: 12px !important;
  }
  .compare-summary-row {
    grid-template-columns: minmax(0,1fr) 58px minmax(0,1fr) !important;
    gap: 5px !important;
    padding: 16px 10px 8px !important;
  }
  .compare-side,
  .compare-side.away {
    grid-template-columns: 58px 24px !important;
    gap: 5px !important;
  }
  .compare-side.away {
    grid-template-columns: 24px 58px !important;
  }
  .compare-donut {
    width: 58px !important;
    height: 58px !important;
  }
  .compare-donut::after {
    inset: 10px !important;
  }
  .compare-donut b {
    font-size: 18px !important;
  }
  .compare-donut span {
    font-size: 9px !important;
  }
  .compare-wdl {
    gap: 5px !important;
  }
  .compare-wdl p {
    gap: 4px !important;
    font-size: 11px !important;
  }
  .compare-wdl i {
    width: 8px !important;
    height: 8px !important;
  }
  .compare-labels {
    gap: 8px !important;
    font-size: 11px !important;
  }
  .compare-goal-row-detailed,
  .compare-goal-row {
    grid-template-columns: minmax(0,1fr) 70px minmax(0,1fr) !important;
    gap: 5px !important;
    padding: 7px 10px 12px !important;
  }
  .compare-gd-pack {
    grid-template-columns: 46px minmax(0,auto) !important;
    column-gap: 5px !important;
    row-gap: 4px !important;
    min-height: 56px !important;
  }
  .compare-gd-pack.away {
    grid-template-columns: minmax(0,auto) 46px !important;
  }
  .compare-gd {
    width: 42px !important;
    height: 42px !important;
    border-width: 3px !important;
    font-size: 14px !important;
  }
  .compare-gd-pack span {
    font-size: 10px !important;
    gap: 4px !important;
  }
  .compare-gd-pack span b {
    font-size: 10px !important;
  }
  .compare-goal-labels {
    gap: 5px !important;
    font-size: 10px !important;
  }
  .compare-goal-labels b {
    font-size: 11px !important;
  }
  .compare-stat-bars {
    padding: 0 10px 12px !important;
  }
  .compare-stat-line {
    min-height: 27px !important;
    grid-template-columns: 42px minmax(0,1fr) 42px !important;
    gap: 4px !important;
    font-size: 10px !important;
  }
  .compare-stat-line span {
    min-width: 0 !important;
    height: 27px !important;
    padding: 0 4px !important;
    font-size: 12px !important;
  }
  .compare-actions {
    padding: 10px !important;
  }
  .compare-actions button {
    font-size: 10px !important;
  }
  .timeline-clean {
    min-height: 340px !important;
    padding: 16px 4px 16px !important;
    overflow: visible !important;
  }
  .timeline-clean::before {
    left: 50% !important;
    top: 48px !important;
  }
  .timeline-clean .timeline-event {
    width: calc(50% - 8px) !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 8px 7px !important;
    column-gap: 4px !important;
    font-size: 10px !important;
  }
  .timeline-clean .timeline-event.home {
    grid-template-columns: 22px 18px minmax(34px,auto) minmax(0,1fr) !important;
  }
  .timeline-clean .timeline-event.away {
    grid-template-columns: minmax(0,1fr) minmax(34px,auto) 18px 22px !important;
  }
  .timeline-clean .event-minute {
    font-size: 10px !important;
    line-height: 18px !important;
  }
  .timeline-clean .event-icon {
    width: 17px !important;
    height: 17px !important;
    font-size: 9px !important;
  }
  .timeline-clean .event-score {
    min-width: 34px !important;
    height: 20px !important;
    min-height: 20px !important;
    padding: 0 4px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
  }
  .timeline-clean .event-player {
    font-size: 10px !important;
  }
  .timeline-clean .event-detail {
    font-size: 9px !important;
  }
  .moment-filters {
    gap: 7px !important;
  }
  .moment-filter {
    font-size: 10px !important;
  }
}

/* MOBILEFIX5: exact team-side timeline + readable scorer/details */
.timeline-clean .timeline-event.home {
  margin-left: 0 !important;
  margin-right: auto !important;
}
.timeline-clean .timeline-event.away {
  margin-left: auto !important;
  margin-right: 0 !important;
}
.timeline-clean .timeline-event.event-goal .event-player {
  font-weight: 950 !important;
}
.timeline-clean .timeline-event.is-own-goal .event-detail,
.timeline-clean .event-detail.is-own-goal {
  color: #ff4d5f !important;
  font-weight: 950 !important;
}
.timeline-clean .timeline-event.event-substitution .event-detail {
  color: #9fb0cd !important;
}
.timeline-clean .timeline-event.event-card .event-player,
.timeline-clean .timeline-event.event-substitution .event-player {
  font-weight: 900 !important;
}

@media (min-width: 621px) {
  .timeline-clean .timeline-event.home {
    width: min(47%, 430px) !important;
  }
  .timeline-clean .timeline-event.away {
    width: min(47%, 430px) !important;
  }
}

@media (max-width: 620px) {
  .key-moments-clean .panel-title-row {
    align-items: flex-start !important;
  }
  .timeline-clean {
    padding: 12px 0 16px !important;
    min-height: 0 !important;
  }
  .timeline-clean::before {
    display: none !important;
  }
  .timeline-clean .timeline-start,
  .timeline-clean .timeline-live-note,
  .timeline-clean .moment-empty-card {
    margin: 10px auto !important;
  }
  .timeline-clean .timeline-event,
  .timeline-clean .timeline-event.home,
  .timeline-clean .timeline-event.away,
  .timeline-clean .timeline-event.neutral {
    width: 100% !important;
    min-height: 50px !important;
    margin: 8px 0 !important;
    padding: 9px 10px !important;
  }
  .timeline-clean .timeline-event.home {
    grid-template-columns: 32px 22px minmax(42px,auto) minmax(0,1fr) !important;
    border-left-width: 3px !important;
    border-right-width: 1px !important;
  }
  .timeline-clean .timeline-event.away {
    grid-template-columns: minmax(0,1fr) minmax(42px,auto) 22px 32px !important;
    border-right-width: 3px !important;
    border-left-width: 1px !important;
  }
  .timeline-clean .timeline-event.home .event-minute {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    text-align: left !important;
  }
  .timeline-clean .timeline-event.home .event-icon {
    grid-column: 2 !important;
  }
  .timeline-clean .timeline-event.home .event-score {
    grid-column: 3 !important;
  }
  .timeline-clean .timeline-event.home .event-player,
  .timeline-clean .timeline-event.home .event-detail {
    grid-column: 4 !important;
    text-align: left !important;
  }
  .timeline-clean .timeline-event.home:not(.event-goal) .event-player,
  .timeline-clean .timeline-event.home:not(.event-goal) .event-detail {
    grid-column: 3 / 5 !important;
  }
  .timeline-clean .timeline-event.away .event-minute {
    grid-column: 4 !important;
    grid-row: 1 / 3 !important;
    text-align: right !important;
  }
  .timeline-clean .timeline-event.away .event-icon {
    grid-column: 3 !important;
  }
  .timeline-clean .timeline-event.away .event-score {
    grid-column: 2 !important;
  }
  .timeline-clean .timeline-event.away .event-player,
  .timeline-clean .timeline-event.away .event-detail {
    grid-column: 1 !important;
    text-align: right !important;
  }
  .timeline-clean .timeline-event.away:not(.event-goal) .event-player,
  .timeline-clean .timeline-event.away:not(.event-goal) .event-detail {
    grid-column: 1 / 3 !important;
  }
  .timeline-clean .event-minute {
    font-size: 11px !important;
    line-height: 20px !important;
  }
  .timeline-clean .event-icon {
    width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
  }
  .timeline-clean .event-score {
    min-width: 42px !important;
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 6px !important;
    font-size: 11px !important;
  }
  .timeline-clean .event-player {
    font-size: 12px !important;
    line-height: 1.18 !important;
  }
  .timeline-clean .event-detail {
    font-size: 11px !important;
    line-height: 1.18 !important;
  }
}

/* ============================================================
   MOBILE POLISH — добавено към съществуващия дизайн
   (build: 20260620-mobilepolish)
   ============================================================ */

/* Таб-овете на match страницата скролват хоризонтално; лек fade
   вдясно подсказва, че има още (Stats / Odds) встрани. */
@media (max-width: 760px) {
  html.is-match-page-route .match-primary-tabs,
  body.is-match-page .match-primary-tabs {
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 86%, transparent 100%);
  }
}

/* На много тесни телефони (<=360px) лентата с филтри
   (All / Upcoming / Live / Odds) да се пренася чисто, без да реже toggle-а. */
@media (max-width: 360px) {
  .filter-tabs {
    flex-wrap: wrap !important;
    row-gap: 8px;
    overflow: visible !important;
  }
  .odds-toggle { margin-left: 0; }
}

/* Горен промо банер (Betano…) — повече въздух, CTA-то остава видимо. */
@media (max-width: 620px) {
  .tr-top-promo { gap: 8px; padding: 0 10px; }
  .promo-copy   { font-size: 11px; line-height: 1.2; }
  .promo-cta    { white-space: nowrap; flex: 0 0 auto; }
}

/* ============================================================
   NEW23 — calendar redesign + mobile key-moments / match-stats
   + "Show more" stats toggle   (build: 20260620-new23)
   ============================================================ */

/* ---------- 1) КАЛЕНДАР (date strip) ---------- */
/* Десктоп: календарът сяда на собствен пълноширок ред под филтрите,
   вместо да виси вдясно с празнина. */
.toolbar-row { flex-wrap: wrap; }
.date-strip {
  flex: 1 1 100%;
  order: 9;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  overflow: visible;
}
.date-cal {
  flex: 0 0 auto;
  width: 40px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
}
.date-cal:hover { color: #fff; }
.date-cal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.date-nav {
  flex: 0 0 auto;
  width: 30px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 22px; font-weight: 800; line-height: 1;
  cursor: pointer;
}
.date-nav:hover { color: #fff; background: var(--card-2); }
.date-track {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.date-track::-webkit-scrollbar { display: none; }
.date-btn {
  flex: 0 0 auto;
  min-width: 48px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: transparent;
  color: var(--muted); font-weight: 900; line-height: 1;
}
.date-btn small { display: block; margin-top: 3px; color: var(--faint); font-size: 9px; font-weight: 800; }
.date-btn:hover { background: var(--card-2); }
/* активният ден — зелен, като в референтния дизайн */
.date-btn.is-active { background: rgba(40,223,159,.15); color: #2ee6a6; box-shadow: inset 0 0 0 1px rgba(40,223,159,.55); }
.date-btn.is-active small { color: #2ee6a6; }

/* Мобилно: пребиваме старите !important правила — иконата и стрелките
   са фиксирани, а самата лента с дати (.date-track) скролва. */
@media (max-width: 1023px) {
  .date-strip { overflow: visible !important; gap: 8px !important; padding: 0 !important; margin: 0 !important; border-top: 0 !important; }
  .date-strip > .date-cal,
  .date-strip > .date-nav { flex: 0 0 auto !important; }
  .date-track { flex: 1 1 auto !important; min-width: 0 !important; overflow-x: auto !important; }
}

/* ---------- 2) KEY MOMENTS — без рязане долу на мобилен ---------- */
@media (max-width: 760px) {
  .key-moments-panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .timeline-dark {
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
}

/* ---------- 3) MATCH STATISTICS — без рязане вдясно на мобилен ---------- */
@media (max-width: 760px) {
  .match-stats-panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    min-width: 0;
  }
  .stats-scroll-inner {
    max-height: none !important;
    overflow: visible !important;
    min-width: 0;
    padding-right: 0;
  }
  .stats-dark-group { padding: 12px; min-width: 0; }
  .stat-pill-row {
    grid-template-columns: 50px minmax(0, 1fr) 50px !important;
    gap: 8px !important;
    padding: 6px 8px !important;
  }
  .stat-pill-row b { min-width: 0; padding: 0 2px; font-size: 13px; }
  .possession-row { gap: 8px; }
  .possession-row strong { font-size: 18px; }
  .match-content-card { padding: 12px !important; }
  .match-detail-card.rich-match-detail { padding: 12px !important; }
}

/* ---------- 4) "Show more" в Match statistics ---------- */
.stats-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(124,92,255,.32);
  background: rgba(124,92,255,.12);
  color: #c7b8ff;
  font-weight: 850;
  font-size: 13px;
  cursor: pointer;
}
.stats-more-btn:hover { background: rgba(124,92,255,.2); color: #fff; }
.stats-more-btn i { font-style: normal; font-size: 18px; line-height: 1; transition: transform .18s ease; }
.match-stats-panel.is-expanded .stats-more-btn i { transform: rotate(180deg); }
.stats-extra-groups { display: none; }
.match-stats-panel.is-expanded .stats-extra-groups { display: grid; gap: 14px; }

/* ---------- Match statistics: без вътрешен scroll на нито един екран ----------
   Понеже вече има "Show more stats" бутон, панелът не се нуждае от scroll —
   разгъва се на пълна височина и страницата скролва. */
.match-stats-panel,
.match-split-events .match-stats-panel {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}
.stats-scroll-inner,
.match-split-events .stats-scroll-inner {
  max-height: none !important;
  overflow: visible !important;
}

/* ============================================================
   NEW25 — Latest results (cards + tournament / Home-Away-Overall
   filters) + cleaner Odds   (build: 20260620-new25)
   ============================================================ */

/* ---- филтри над списъка ---- */
.recent-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 6px; }
.recent-select { position: relative; display: inline-flex; min-width: 0; }
.recent-select select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  height: 36px;
  padding: 0 32px 0 14px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12.5px; font-weight: 800;
  cursor: pointer; max-width: 100%;
}
.recent-select i {
  position: absolute; right: 12px; top: 50%; transform: translateY(-55%);
  pointer-events: none; color: var(--muted); font-style: normal; font-size: 16px;
}

/* ---- карта на мач (еднаква за десктоп и мобилен) ---- */
.recent-pro-row {
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
  min-height: 0;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(29,39,58,.70);
}
.recent-row-top { display: flex; align-items: center; gap: 10px; }
.recent-row-top .recent-date { flex: 1 1 auto; min-width: 0; }
.recent-date b { display: block; color: #fff; font-size: 12.5px; line-height: 1.1; }
.recent-date span {
  display: block; margin-top: 2px; color: var(--faint); font-size: 10.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.recent-ht {
  flex: 0 0 auto; color: var(--muted); font-style: normal;
  font-size: 10.5px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.recent-row-top .result-pill {
  flex: 0 0 auto; justify-self: end;
  width: 26px; min-width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%;
}
.recent-row-teams {
  display: grid; gap: 6px;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 8px;
}
.recent-team-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.recent-team-line .rt-side { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); }
.recent-team-line .rt-side b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.recent-team-line .rt-score { flex: 0 0 auto; color: #dbe7ff; font-weight: 950; font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---- ODDS: по-чисти карти + многоколонно и на мобилен ---- */
.overview-odds-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.overview-odds-market.is-two .overview-odds-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.overview-odd-box {
  min-height: 0;
  gap: 5px;
  padding: 11px 8px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(26,36,55,.82);
}
.overview-odd-box span { color: var(--faint); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.overview-odd-box b { color: #fff; font-size: 17px; font-weight: 950; font-variant-numeric: tabular-nums; }
.overview-odd-box .trend-bookmaker { margin-top: 1px; }
.overview-odd-box .trend-bookmaker img { height: 13px; width: auto; }
.overview-odd-box .trend-bookmaker span { display: none; }   /* само логото, компактно */

/* мобилен: НЕ свиваме одите в 1 колона (по-добрия дизайн ги държи 2-3 в ред) */
@media (max-width: 760px) {
  .overview-odds-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .overview-odds-market.is-two .overview-odds-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .overview-odd-box b { font-size: 16px; }
}

/* ============================================================
   NEW26 — standings (цяла таблица на мобилен), latest results
   едно до друго на десктоп, stats разпънато на десктоп
   (build: 20260620-new26)
   ============================================================ */

/* ---- 1) STANDINGS: цялата таблица да се вижда на мобилен (без scroll) ---- */
@media (max-width: 760px) {
  .standings-pro-wrap,
  .table-wrap { overflow-x: visible !important; }
  .standings-table,
  .standings-pro-table,
  .compact-standings-table {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 12px;
    table-layout: fixed;
  }
  .standings-pro-table th,
  .standings-pro-table td,
  .compact-standings-table th,
  .compact-standings-table td { padding: 9px 3px !important; }
  /* колони: 1 точка · 2 # · 3 Team · 4 G · 5 W · 6 D · 7 L · 8 GD · 9 P · 10 Form
     скриваме GD и Form, за да се събере # Team G W D L P (като референцията) */
  .compact-standings-table th:nth-child(8),
  .compact-standings-table td:nth-child(8),
  .compact-standings-table th:nth-child(10),
  .compact-standings-table td:nth-child(10) { display: none !important; }
  .compact-standings-table td:nth-child(3) { white-space: normal; overflow: hidden; text-overflow: ellipsis; }
  .compact-standings-table th:first-child,
  .compact-standings-table td:first-child { width: 16px; padding-left: 6px !important; padding-right: 0 !important; }
  .compact-standings-table th:nth-child(2),
  .compact-standings-table td:nth-child(2) { width: 22px; }
  .compact-standings-table th:nth-child(n+4),
  .compact-standings-table td:nth-child(n+4) { width: 30px; }
}

/* ---- 2) LATEST RESULTS: двата отбора едно до друго на десктоп ---- */
@media (min-width: 761px) {
  .recent-pro-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .recent-pro-panel > h3 { grid-column: 1 / -1; }
}

/* ---- 3) MATCH STATISTICS: на десктоп разпънато по подразбиране, без бутон ---- */
@media (min-width: 761px) {
  .stats-extra-groups { display: grid !important; gap: 14px; }
  .stats-more-btn { display: none !important; }
}

/* ============================================================
   Homepage match list — UI промени (new33)
   1) league-head: целият хедър е кликаем (отваря/затваря лигата)
   2) odds на СЪЩИЯ ред като отбори + резултат (само десктоп)
   ============================================================ */
.league-head { cursor: pointer; user-select: none; }
.league-head:hover { background: var(--card-2); }
.league-head:focus-visible { outline: 2px solid rgba(125,102,255,.6); outline-offset: -2px; }

@media (min-width: 761px) {
  /* колони: звезда | статус | отбори | време | оди | резултат | BET */
  .match-row.has-odds {
    grid-template-columns: 24px 64px minmax(0, 1fr) 56px auto 52px 46px;
  }
  .match-row.has-odds .odds-stack {
    grid-column: 5;
    grid-row: 1;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    width: auto;
  }
  .match-row.has-odds .odds-row {
    grid-column: auto;
    grid-row: auto;
    padding: 0;
    width: auto;
    display: flex;
    gap: 6px;
    align-self: center;
  }
  .match-row.has-odds .score-cell { grid-column: 6; grid-row: 1; }
  .match-row.has-odds .bet-btn    { grid-column: 7; grid-row: 1; }
  .match-row.has-odds .market-odds-row .odd-box { width: 66px; min-height: 44px; }
}

/* ============================================================
   Favourites (new34)
   - звезда на мач (data-fav-match) и на лига (data-fav-league)
   - меню "само Favourites": горе дясно (fav-view-btn) + мобилно долу
   - BOD pick: клик отваря мача
   ============================================================ */
.star-btn { cursor: pointer; transition: color .15s ease, transform .1s ease; background: none; border: 0; }
.star-btn:hover { color: var(--text); }
.star-btn:active { transform: scale(.88); }
.star-btn.is-fav { color: #ffc83d; }

.league-head-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.league-fav-btn { font-size: 17px; line-height: 1; color: var(--muted); }
.league-fav-btn:hover { color: var(--text); }
.league-fav-btn.is-fav { color: #ffc83d; }

/* десктоп бутон "Favourites" горе дясно */
.fav-view-btn.is-active { color: #ffc83d; border-color: rgba(255,200,61,.4); }
.fav-view-btn.is-active svg { fill: #ffc83d; stroke: #ffc83d; }

/* BOD pick — кликаемият хедър отваря мача */
.acca-pick-head.is-openable { cursor: pointer; }
.acca-pick-head.is-openable:hover h3 { color: var(--primary-2); }
.acca-pick-head.is-openable .star-btn { cursor: pointer; }

/* ===== Акумулатори (Double/Triple Acca) + SEO/FAQ под BOD ===== */
.acca-card { padding: 0; overflow: hidden; }
.acca-card > .botd-board-head { padding: 14px 16px; margin: 0; display: flex; align-items: center; justify-content: space-between; }
.acca-card > .botd-board-head h2 { margin: 0; font-size: 17px; }
.acca-count { color: var(--muted); font-size: 12px; font-weight: 800; }
.acca-legs { display: grid; gap: 10px; padding: 0 14px 12px; }
.acca-leg { border: 1px solid var(--border, rgba(148,163,184,.18)); border-radius: 14px; background: var(--card-2); overflow: hidden; }
.acca-leg-head { display: flex; align-items: center; gap: 11px; padding: 11px 12px; cursor: pointer; }
.acca-leg-head .acca-team-pair { display: inline-flex; }
.acca-leg-info { min-width: 0; }
.acca-leg-info b { display: block; font-size: 13.5px; font-weight: 800; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.acca-leg-info span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.acca-leg .acca-bet-strip { margin: 0; border-top: 1px solid var(--border, rgba(148,163,184,.16)); }
.acca-leg-odd { font-weight: 900; font-size: 15px; padding: 4px 12px; border-radius: 999px; background: var(--card-3); }
.acca-foot { display: grid; gap: 8px; padding: 0 14px 14px; }
.acca-total-line { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--card-3); }
.acca-total-line span { color: var(--muted); font-weight: 700; }
.acca-total-line b { font-size: 20px; font-weight: 900; }
.acca-book-cta { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: var(--card-3); text-decoration: none; color: var(--text); }
.acca-book-logo { display: inline-flex; align-items: center; min-width: 56px; height: 24px; }
.acca-book-logo img { max-height: 24px; max-width: 72px; object-fit: contain; }
.acca-bonus { color: #22c55e; font-weight: 800; font-size: 13px; font-style: normal; }
.acca-odd { margin-left: auto; color: var(--muted); font-size: 13px; }
.acca-odd b { color: var(--text); font-size: 16px; font-weight: 900; margin-left: 4px; }
.acca-bet-pill { padding: 7px 16px; border-radius: 999px; background: var(--accent, #7c6cff); color: #fff; font-weight: 800; font-size: 13px; }

.botd-seo { padding: 18px 18px 22px; color: var(--text); }
.botd-seo h2 { margin: 0 0 10px; font-size: 19px; font-family: "Space Grotesk", Inter, sans-serif; }
.botd-seo > p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 10px; }
.botd-seo-list { margin: 4px 0 12px; padding-left: 20px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.botd-seo-list li { margin: 4px 0; }
.botd-faq-item h3 { margin: 14px 0 6px; font-size: 15px; color: var(--text); font-family: "Space Grotesk", Inter, sans-serif; }
.botd-faq-item p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 8px; }
/* Accordion FAQ (details/summary) — стрелка вляво до въпроса на един ред */
.botd-faq-accordion { display: grid; gap: 8px; margin-top: 4px; }
.botd-faq-accordion .botd-faq-acc {
  border: 1px solid #26314b; border-radius: 12px;
  background: #111a2b; overflow: hidden; transition: border-color .15s ease, background .15s ease;
}
.botd-faq-accordion .botd-faq-acc:hover { border-color: #33436e; }
.botd-faq-accordion .botd-faq-acc[open] { background: #0f1830; border-color: #33436e; }
.botd-faq-accordion .botd-faq-acc > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 11px;
  padding: 14px 16px; user-select: none;
}
.botd-faq-accordion .botd-faq-acc > summary::-webkit-details-marker { display: none; }
.botd-faq-accordion .botd-faq-acc > summary::before {
  content: "\25B8"; color: #8f88ff; font-size: 12px; line-height: 1; flex: 0 0 auto;
  transition: transform .2s ease;
}
.botd-faq-accordion .botd-faq-acc[open] > summary::before { transform: rotate(90deg); }
.botd-faq-accordion .botd-faq-acc > summary h3 {
  display: inline; margin: 0; font-size: 14.5px; font-weight: 700; color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
}
.botd-faq-accordion .botd-faq-acc[open] > summary { border-bottom: 1px solid #26314b; }
.botd-faq-accordion .botd-faq-acc > p {
  margin: 0; padding: 12px 16px 14px 39px; color: var(--muted); font-size: 13.5px; line-height: 1.65;
}
:root[data-theme="light"] .botd-faq-accordion .botd-faq-acc { background: #f6f8fc; border-color: #e2e8f4; }
:root[data-theme="light"] .botd-faq-accordion .botd-faq-acc[open] { background: #eef2fb; }
.botd-faq-item h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 800; }
.botd-faq-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.botd-faq-head { margin-top: 20px !important; font-size: 16px !important; }
.botd-seo-note { font-size: 12px !important; opacity: .85; }
/* ============ Odds widget (сравнение по букмейкър) ============ */
.odds-widget h3 { margin: 0 0 12px; }
.odds-widget .odds-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 6px;
  background: var(--card-2); border-radius: var(--radius-md); margin-bottom: 12px;
  scrollbar-width: none;
}
.odds-widget .odds-tabs::-webkit-scrollbar { display: none; }
.odds-tab {
  flex: 0 0 auto; border: 0; background: transparent; color: var(--muted);
  font: 600 13px/1 inherit; padding: 10px 15px; border-radius: 11px; cursor: pointer;
  white-space: nowrap; transition: .15s;
}
.odds-tab:hover { color: var(--text); }
.odds-tab.is-active { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.odds-widget .odds-half-tabs {
  display: flex; gap: 6px; padding: 5px; margin-bottom: 12px;
  background: var(--card-2); border-radius: var(--radius-md);
}
.odds-half-tab {
  flex: 1 1 0; border: 0; background: transparent; color: var(--muted);
  font: 800 13.5px/1 inherit; padding: 11px 10px; border-radius: 11px; cursor: pointer;
  white-space: nowrap; transition: .15s;
}
.odds-half-tab:hover { color: var(--text); }
.odds-half-tab.is-active { background: var(--green); color: #fff; box-shadow: var(--shadow); }

.odds-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.odds-mkt { border-bottom: 1px solid var(--line); }
.odds-mkt:last-child { border-bottom: 0; }
.odds-mkt-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px; }
.odds-mkt-name { flex: 1 1 auto; font: 600 14.5px/1.3 inherit; min-width: 0; }
.odds-mkt-outs { display: flex; gap: 8px; flex: 0 0 auto; }
.odds-chev {
  flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--card-2); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; transition: .15s;
}
.odds-chev:hover { background: var(--card-3); color: var(--text); }
.odds-chev svg { width: 16px; height: 16px; transition: transform .2s; }
.odds-mkt.is-open .odds-chev svg { transform: rotate(180deg); }

.odds-out {
  display: flex; align-items: center; gap: 8px; min-width: 92px; padding: 8px 11px;
  background: var(--card-2); border-radius: 11px; text-decoration: none; color: var(--text);
  transition: .15s;
}
.odds-out:hover { background: var(--card-3); }
.odds-out-lbl { color: var(--faint); font: 600 11px/1 inherit; letter-spacing: .2px; }
.odds-out-od { font: 700 14px/1 inherit; margin-left: auto; }

.odds-bk { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; }
.odds-bk img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.odds-bk-ini {
  width: 22px; height: 22px; border-radius: 50%; place-items: center; display: grid;
  background: var(--primary); color: #fff; font: 800 9px/1 inherit;
}

.odds-mkt-body { display: none; padding: 0 14px 14px; }
.odds-mkt.is-open .odds-mkt-body { display: block; }
.odds-table-scroll { overflow-x: auto; }
.odds-bm-table { width: 100%; border-collapse: collapse; }
.odds-bm-table th, .odds-bm-table td { text-align: center; padding: 11px 8px; font: 600 13px/1 inherit; }
.odds-bm-table thead th { color: var(--muted); font-weight: 600; font-size: 11.5px; border-bottom: 1px solid var(--line); }
.odds-bm-table thead th:first-child { text-align: left; }
.odds-bm-table tbody td { border-bottom: 1px solid var(--line); }
.odds-bm-table tbody tr:last-child td { border-bottom: 0; }
.odds-bm-name { text-align: left; }
.odds-bm-name a { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.odds-bm-best-row { background: rgba(23,185,120,.08); }
.odds-bm-best-row .odds-bm-label { font-weight: 800; }
.odds-best-tag { font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(135deg,#0f9d63,#17b978); padding: 2px 7px; border-radius: 999px; letter-spacing: .2px; white-space: nowrap; }
.odds-bm-table tbody tr:first-child td { border-top: 0; }
.odds-cell { border-radius: 9px; }
.odds-cell.is-best { color: var(--green); background: rgba(23,185,120,.14); font-weight: 800; }

/* кликаем целия хедър на пазара (не само стрелката) */
.odds-mkt-head[data-odds-toggle] { cursor: pointer; }
.odds-mkt-head[data-odds-toggle]:hover { background: rgba(127,127,127,.045); }

/* Correct Score: "Best" ред над букмейкърите, подравнен по колони */
.odds-best-row { background: rgba(23,185,120,.07); }
.odds-best-row .odds-cell { color: var(--green); font-weight: 800; }
.odds-best-label { color: var(--green); font-weight: 800; }

.odds-score-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.odds-score-pill { background: var(--card-2); border-radius: 11px; padding: 9px 6px; text-align: center; }
.odds-score-pill .sc { display: block; color: var(--faint); font: 700 12px/1 inherit; }
.odds-score-pill .od { display: block; font: 800 14px/1 inherit; margin-top: 6px; }
.odds-mkt.is-open .odds-score-grid { margin-bottom: 14px; }

.odds-empty { padding: 24px 14px; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 560px) {
  .odds-mkt-head { flex-wrap: wrap; }
  .odds-mkt-name { flex: 1 1 100%; margin-bottom: 2px; }
  .odds-mkt-outs { flex: 1 1 auto; }
  .odds-out { flex: 1 1 0; min-width: 0; justify-content: center; }
  .odds-out-od { margin-left: 6px; }
}

/* кликаеми odds числа → линк към букмейкър */
.odds-cell-link { color: inherit; text-decoration: none; display: inline-block; }
.odds-cell-link:hover { text-decoration: underline; }
a.odds-score-pill { text-decoration: none; color: inherit; display: block; transition: background .15s; }
a.odds-score-pill:hover { background: var(--card-3); }
a.odd-box, a.overview-odd-box { text-decoration: none; color: inherit; }

/* LIVE коефове в hero-а на мач-страницата (над pre-match) */
.hero-live-odds { margin-bottom: 10px; }
.hero-live-odds .hero-odds-tag { display: block; text-align: center; color: var(--live); font-weight: 900; font-size: 11px; letter-spacing: .08em; margin-bottom: 5px; }
.hero-live-odds .hero-odd-box { border-color: rgba(255,79,120,.5); }
.hero-live-odds .hero-odd-box b { color: var(--live); }

/* ============================================================
   LIVE коефове на началната = ЧЕРВЕНИ (за да личи че са live)  [new52]
   ============================================================ */
.market-odds-row.is-live-odds .odd-box { border-color: rgba(255,79,120,.5); color: var(--live); }
.market-odds-row.is-live-odds .odd-box span { color: rgba(255,79,120,.72); }

/* ============================================================
   МОБАЙЛ корекции (≤760): по-малки live кутийки + без рязане
   вдясно на Odds widget и Trends/Prediction.  [new52]
   ============================================================ */
@media (max-width: 760px) {
  /* Начална: live кутийките по-малки и компактни (не разтегнати) */
  .match-row .odds-row.market-odds-row {
    display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 6px;
  }
  .match-row .market-odds-row .odd-box {
    flex: 0 0 auto; width: auto; min-width: 52px; min-height: 34px;
    padding: 4px 9px; font-size: 12px;
  }
  .match-row .market-odds-row .odd-box span { font-size: 8px; }

  /* Odds widget: кутийките W1/X/W2 да се свиват и събират (без изрязване) */
  .odds-mkt-head { flex-wrap: wrap; row-gap: 8px; }
  .odds-mkt-name { flex: 1 1 100%; }
  .odds-mkt-outs { flex: 1 1 auto; min-width: 0; gap: 6px; }
  .odds-out { flex: 1 1 0; min-width: 0; justify-content: center; padding: 8px 6px; gap: 6px; }
  .odds-out-lbl { font-size: 10px; }
  .odds-out-od { margin-left: 6px; }

  /* Trends / Prediction: главата по-тясна + картите подреждат pick/букмейкър
     вертикално, за да не се реже вдясно */
  .trend-section-head { gap: 8px; padding: 0 10px 0 12px; }
  .trend-head-bookmaker { width: 54px; }
  .trend-section-side { gap: 6px; }
  .trend-section-side b { font-size: 12px; min-width: 0; }
  .trend-bet-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .trend-book-side { width: 100%; justify-content: flex-end; }
}

/* ============================================================
   Trends/Predictions — категорично спиране на рязането вдясно [new53]
   (важи до 900px: телефони и таблети)
   ============================================================ */
@media (max-width: 900px) {
  .trend-content-card, .prediction-old-card { overflow-x: hidden; }
  .trend-sections, .trend-section, .trend-grid, .trend-grid.is-oldstyle,
  .old-trend-card, .trend-reasons, .trend-reason-block { min-width: 0; max-width: 100%; }

  /* Главата на секцията: заглавие + (лого/коеф) се пренасят, без рязане */
  .trend-section-head { flex-wrap: wrap !important; gap: 6px 10px !important; padding: 8px 12px !important; }
  .trend-section-title { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; flex: 1 1 auto; }
  .trend-section-side { flex: 0 0 auto; margin-left: auto; }
  .trend-head-bookmaker { width: 52px !important; height: 18px !important; }
  .trend-section-side b { font-size: 12px !important; min-width: 0 !important; }

  /* Картата: избор НАД букмейкъра (вертикално) */
  .trend-bet-row { flex-direction: column !important; align-items: stretch !important; gap: 8px !important; }
  .trend-pick { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
  .trend-book-side { width: 100% !important; justify-content: flex-end !important; }
}

/* ============================================================
   [new54] Резултатът ЧЕРВЕН при live мач (начална)
   ============================================================ */
.match-row.is-live .score-cell,
.match-row.is-live .score-cell small { color: var(--live); }

/* ============================================================
   [new54] МОБАЙЛ: live odds МЕЖДУ имената и резултата (inline),
   компактни — вместо на отделен ред отдолу.
   ============================================================ */
@media (max-width: 760px) {
  .match-row.has-odds {
    grid-template-columns: 18px 40px minmax(0,1fr) auto 24px;
    column-gap: 6px;
  }
  .match-row.has-odds .star-btn   { grid-column: 1; grid-row: 1; align-self: center; }
  .match-row.has-odds .status-cell{ grid-column: 2; grid-row: 1; align-self: center; }
  .match-row.has-odds .teams      { grid-column: 3; grid-row: 1; }
  .match-row.has-odds .odds-stack {
    grid-column: 4; grid-row: 1; align-self: center;
    display: flex; flex-direction: column; gap: 3px; padding: 0; width: auto;
  }
  .match-row.has-odds .odds-row.market-odds-row {
    grid-column: auto; grid-row: auto; align-self: center;
    display: flex; flex-wrap: nowrap; gap: 4px; padding: 0; width: auto;
  }
  .match-row.has-odds .market-odds-row .odd-box {
    flex: 0 0 auto; width: auto; min-width: 34px; min-height: 30px;
    padding: 3px 5px; font-size: 11px; gap: 1px;
  }
  .match-row.has-odds .market-odds-row .odd-box span { font-size: 7px; }
  .match-row.has-odds .score-cell { grid-column: 5; grid-row: 1; align-self: center; }
  .match-row.has-odds .bet-btn    { display: none; }       /* няма място на телефон */
  .match-row.has-odds .form-dots  { display: none; }       /* повече място за имената */

  /* Мачове БЕЗ коефове: същото чисто подреждане, но BET бутонът стои вдясно
     (на мястото на коефите), компактен — за да не се разпада редът. */
  .match-row:not(.has-odds) {
    grid-template-columns: 18px 40px minmax(0,1fr) auto 24px;
    column-gap: 6px;
  }
  .match-row:not(.has-odds) .star-btn    { grid-column: 1; grid-row: 1; align-self: center; }
  .match-row:not(.has-odds) .status-cell { grid-column: 2; grid-row: 1; align-self: center; }
  .match-row:not(.has-odds) .teams       { grid-column: 3; grid-row: 1; }
  .match-row:not(.has-odds) .match-wx-center { display: none; }
  .match-row:not(.has-odds) .score-cell  { grid-column: 5; grid-row: 1; align-self: center; }
  .match-row:not(.has-odds) .form-dots   { display: none; }
  .match-row:not(.has-odds) .bet-btn {
    display: inline-flex; align-items: center; justify-content: center;
    grid-column: 4; grid-row: 1; align-self: center;
    height: 30px; min-width: 48px; padding: 0 12px; margin: 0;
    border-radius: 9px; font-size: 11px; line-height: 1; white-space: nowrap;
  }
}

/* ============================================================
   [new56] Odds widget на МОБАЙЛ: стрелката горе вдясно (до името),
   кутийките на цял ред отдолу, а отворената таблица на цял екран.
   Важи за всички пазари (1X2, Double Chance, O/U, BTTS).
   ============================================================ */
@media (max-width: 760px) {
  .odds-mkt-head { flex-wrap: wrap; align-items: center; row-gap: 10px; }
  .odds-mkt-name { order: 1; flex: 1 1 auto; }
  .odds-chev     { order: 2; }                   /* стрелка горе вдясно */
  .odds-mkt-outs { order: 3; flex: 1 1 100%; gap: 6px; }   /* кутийки на цял ред */
  .odds-out      { flex: 1 1 0; min-width: 0; justify-content: center; padding: 9px 6px; gap: 6px; }
  .odds-out-lbl  { font-size: 10px; }
  .odds-out-od   { margin-left: 6px; }
  /* отворената сравнителна таблица — на цялата видима ширина */
  .odds-mkt-body { padding-left: 0; padding-right: 0; }
  .odds-bm-table th, .odds-bm-table td { padding: 10px 6px; font-size: 12.5px; }
}

/* ============================================================
   [new57] Settings панел (часова зона + формат на коефове)
   ============================================================ */
.trx-settings-panel {
  position: fixed; top: 60px; right: 14px; z-index: 1200;
  width: 290px; max-width: calc(100vw - 24px);
  background: var(--panel, #0e1320); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 26px 64px rgba(0,0,0,.55); padding: 16px;
}
.trx-set-head { font-weight: 900; font-size: 15px; margin-bottom: 12px; color: var(--text); }
.trx-set-sec { margin-bottom: 16px; }
.trx-set-sec:last-child { margin-bottom: 0; }
.trx-set-sec h4 { margin: 0 0 8px; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.trx-tz-select {
  width: 100%; height: 42px; border-radius: 11px; background: var(--card-2);
  border: 1px solid var(--line); color: var(--text); font: inherit; font-weight: 700; padding: 0 12px; cursor: pointer;
}
.trx-set-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trx-set-opt {
  padding: 11px 6px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--text); font-weight: 800; font-size: 13px; cursor: pointer; transition: .15s;
}
.trx-set-opt:hover { border-color: rgba(125,102,255,.55); }
.trx-set-opt.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* [new57] Live BET бутон — червен + стрелка */
.match-row.is-live .bet-btn { background: var(--live); border-color: var(--live); color: #fff; }
.match-row.is-live .bet-btn::after { content: " ›"; font-weight: 900; }

/* [new60] Бутон за затваряне на settings панела */
.trx-set-head { position: relative; padding-right: 30px; }
.trx-set-close {
  position: absolute; top: -4px; right: -4px; width: 30px; height: 30px;
  border: 0; background: var(--card-2); color: var(--text); border-radius: 9px;
  font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.trx-set-close:hover { background: var(--card-3); color: #fff; }

/* ============================================================
   [new61] Червен картон — в Key Moments + бадж до отбора
   ============================================================ */
.timeline-event.event-card.is-red-card .event-icon { background: #e5342b; color: #fff; }
.red-card-badge {
  display: inline-block; width: 9px; height: 13px; border-radius: 2px;
  background: #e5342b; vertical-align: -2px; margin-left: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.red-card-count { color: #e5342b; font-weight: 900; font-size: 11px; margin-left: 2px; vertical-align: middle; }
/* ============================================================
   Homepage SEO copy + FAQ (server-rendered footer block)
   Показва се само на началната страница (matches). Скрит на
   match / bet-of-the-day, защото JS добавя is-match-page / is-botd-page.
   ============================================================ */
.home-seo {
  margin-top: 26px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card-2);
  display: grid;
  gap: 22px;
}
body.is-match-page .home-seo,
body.is-botd-page .home-seo { display: none; }

.home-seo-prose h2,
.home-faq > h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text);
}
.home-seo-prose p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}
.home-seo-prose p:last-child { margin-bottom: 0; }
.home-seo-prose a {
  color: var(--primary-2);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(125,102,255,.4);
}
.home-seo-prose a:hover { color: #fff; border-bottom-color: var(--primary-2); }
.home-seo-note {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px !important;
  color: var(--faint) !important;
}

/* FAQ accordion (native <details>, без нужда от JS) */
.home-faq { display: grid; gap: 10px; }
.home-faq-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  overflow: hidden;
}
.home-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 46px 14px 16px;
  position: relative;
  color: var(--text);
  font-weight: 750;
  font-size: 14.5px;
  line-height: 1.4;
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft, rgba(125,102,255,.16));
  color: var(--primary-2);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  transition: transform .2s ease;
}
.home-faq-item[open] summary::after { content: "\2212"; transform: translateY(-50%) rotate(180deg); }
.home-faq-item summary:hover { color: #fff; }
.home-faq-a {
  padding: 0 16px 15px;
}
.home-faq-a p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .home-seo { padding: 18px; margin-top: 20px; }
  .home-seo-prose h2, .home-faq > h2 { font-size: 18px; }
}

/* ============================================================
   Долен банер = огледало на горния (.tr-top-promo):
   лого ВЛЯВО (поле "Лого (път)" = logo), голям текст в центъра, бутон вдясно,
   условия+18+ долу вляво. Маха се старият grid с 🎁 колоната → flex като горния.
   ВАЖНО за изображението: полето "Изображение вместо градиент" е ФОН на банера,
   а лявото лого идва от полето "Лого (път)".
   ============================================================ */
.bottom-banner {
  display: flex !important;                 /* бие display:grid !important по-горе */
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bottom-banner .bottom-banner-link {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;           /* лого ляво · текст център · бутон дясно */
  gap: 16px;
}
.bottom-banner .bottom-banner-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: #ff3a25;                           /* като .promo-brand (за текстов fallback) */
}
.bottom-banner .bottom-banner-logo .bb-logo-d { display: inline-flex; align-items: center; }
.bottom-banner .bottom-banner-logo .bb-logo-m { display: none; }
.bottom-banner .bottom-banner-logo img { max-height: 32px; width: auto; display: block; }
.bottom-banner .bottom-banner-logo span.bb-logo-d {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 26px; font-weight: 950; font-style: italic; letter-spacing: -.04em;
}
.bottom-banner .bottom-banner-copy {
  flex: 1 1 auto;
  text-align: center;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: none;                     /* горният банер не е uppercase */
}
.bottom-banner .bottom-banner-cta { flex: 0 0 auto; }
.bottom-banner .bottom-banner-terms {
  position: absolute; left: clamp(14px, 3vw, 28px); bottom: 4px;
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.9);
  pointer-events: none;
}
.bottom-banner .bottom-banner-terms .promo-age { font-size: 10px; opacity: 1; }
.bottom-banner .bottom-banner-terms .bottom-banner-terms-txt:empty { display: none; }

/* DESKTOP (когато rail/менюто е видимо, т.е. ≥1024px): долният банер е edge-to-edge,
   със СЪЩАТА ширина (rail → десен ръб), височина (66px) и падинг като горния. */
@media (min-width: 1024px) {
  .bottom-banner {
    left: var(--rail) !important; right: 0 !important; bottom: 0 !important;
    transform: none !important; max-width: none !important; width: auto !important;
    min-height: 66px !important;
    padding: 8px clamp(14px, 3vw, 28px) 18px !important;
    border: 0 !important;
    border-top: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 0 !important;
    box-shadow: 0 -12px 34px rgba(0,0,0,.4) !important;
  }
  body.has-bottom-banner { padding-bottom: 84px; }
}

/* MOBILE (под 1024px, менюто е скрито): остава плаващ бар над долната навигация */
@media (max-width: 1023px) {
  .bottom-banner { left: 12px !important; right: 12px !important; bottom: 76px !important; width: auto !important; max-width: none !important; border-radius: 14px; }
}

/* MOBILE: остава плаващ бар над долната навигация (не променяме позицията) */
@media (max-width: 1023px) {
  .bottom-banner .bottom-banner-copy { font-size: 13px; }
}
@media (max-width: 620px) {
  .bottom-banner .bottom-banner-cta { display: none; }
  .bottom-banner .bottom-banner-link { justify-content: flex-start; gap: 10px; }
  .bottom-banner .bottom-banner-logo img { max-height: 26px; }
  .bottom-banner .bottom-banner-logo span.bb-logo-d { font-size: 20px; }
  .bottom-banner .bottom-banner-logo.has-mob .bb-logo-d { display: none; }
  .bottom-banner .bottom-banner-logo.has-mob .bb-logo-m { display: inline-flex; }
  .bottom-banner .bottom-banner-logo.has-mob .bb-logo-m img { max-height: 24px; }
}

/* ============================================================
   Избираеми цветове на ТЕКСТА и СУМАТА от админ панела.
   --bnr-text и --bnr-amount се подават inline от JS според полетата
   "Цвят на текста" и "Цвят на сумата". Ако са празни → старите цветове.
   ============================================================ */
/* ГОРЕН банер */
.tr-top-promo .promo-copy,
.tr-top-promo .promo-copy .bw { color: var(--bnr-text, inherit); }
/* ДОЛЕН банер */
.bottom-banner .bottom-banner-copy,
.bottom-banner .bottom-banner-copy .bw { color: var(--bnr-text, #fff); }
.bottom-banner .bottom-banner-copy b { color: var(--bnr-amount, #2affc4); }
/* GIFT банер (подаръчето) */
.gift-popover-main h3 { color: var(--bnr-text, #fff); }
.gift-popover-main h3 b { color: var(--bnr-amount, var(--gift-accent, #12c9a6)); }
.gift-popover-main h3 span { color: var(--bnr-text, #fff); }

/* Когато няма реални Betting offers → крием десния панел и оформяме на 1 колона */
.tr-layout.no-offers { grid-template-columns: minmax(0, 1fr); }
.tr-layout.no-offers .tr-offers { display: none !important; }

/* ============================================================
   ФИКС: сумата в текста ползва "Цвят на сумата"; мобилно — по-висок
   горен банер с по-голям текст; долен банер показва бутона.
   ============================================================ */
/* Сумата (число/валута) в текста на ГОРНИЯ/ДОЛНИЯ банер → "Цвят на сумата".
   inherit = ако не е зададен цвят, остава както текста (нищо не се чупи). */
.tr-top-promo .promo-copy .bw-amount,
.bottom-banner .bottom-banner-copy .bw-amount { color: var(--bnr-amount, inherit); }

@media (max-width: 1023px) {
  /* ГОРЕН банер на мобилно: по-висок + по-голям, четлив текст (с пренасяне). */
  .tr-top-promo {
    min-height: 66px !important; height: auto !important;
    padding: 9px 12px !important; gap: 10px !important; align-items: center !important;
  }
  .tr-top-promo .promo-copy {
    font-size: 16px !important; line-height: 1.2 !important; font-weight: 800 !important;
    white-space: normal !important; overflow: visible !important; text-overflow: clip !important;
  }
  .tr-top-promo .promo-brand { font-size: 24px !important; }

  /* ДОЛЕН банер на мобилно: ПОКАЗВАМЕ бутона (беше скрит). */
  .bottom-banner .bottom-banner-link { justify-content: space-between !important; gap: 10px !important; }
  .bottom-banner .bottom-banner-cta {
    display: inline-flex !important; align-items: center; flex: 0 0 auto !important;
    padding: 7px 12px !important; font-size: 12px !important; font-weight: 900 !important;
    white-space: nowrap !important; border-radius: 10px !important;
  }
  .bottom-banner .bottom-banner-copy { font-size: 13px !important; }
}

/* ============================================================
   Таймлайн (ключови събития): иконата + резултатът + минутата на ЕДИН ред (.te-head),
   а името на голмайстора отдолу ЦЯЛО (без отрязване). По-широки карти, за да се събира.
   ============================================================ */
.timeline-dark .timeline-event {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 5px !important;
  width: min(330px, 94%) !important;
}
.timeline-dark .timeline-event .te-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.timeline-dark .timeline-event .te-head .event-minute { margin-left: auto; color: #98a6bf; font-weight: 900; white-space: nowrap; }
.timeline-dark .timeline-event .event-player {
  display: block;
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
}
.timeline-dark .timeline-event .event-detail {
  display: block;
  color: #9fb0cd;
  grid-column: auto !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* ============================================================
   Под-таб лентата (Key events / Lineups / Standings / Info / H2H / …) да СКРОЛВА
   вътрешно, а не да разтяга страницата — иначе scrollWidth==clientWidth и стрелките
   ‹ › не се показват. Ограничаваме веригата от контейнери до 100% ширина.
   ============================================================ */
.rich-match-detail .match-content-card,
.rich-match-detail .overview-section,
.rich-match-detail .overview-anchor-tabs,
.match-sub-tabs-wrap { min-width: 0 !important; max-width: 100% !important; }
.match-sub-tabs-wrap .match-sub-tabs {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  flex-wrap: nowrap !important;
}

/* ===== Site footer (на всяка страница) ===== */
.tr-footer {
  margin-top: 28px;
  padding: 22px 16px 30px;
  border-top: 1px solid rgba(148, 163, 184, .18);
  text-align: center;
}
.tr-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}
.tr-footer-links a {
  color: var(--muted, #9aa6bd);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.tr-footer-links a:hover { color: #fff; text-decoration: underline; }
.tr-footer-copy {
  margin: 14px 0 0;
  color: var(--faint, #6b7689);
  font-size: 12px;
}
/* ===== Статични инфо страници (About/Contacts/Terms/Privacy/Cookies) ===== */
.info-page { max-width: 820px; line-height: 1.7; }
.info-page h2 { margin: 22px 0 8px; font-size: 17px; color: #fff; }
.info-page p, .info-page li { color: var(--muted, #c3ccdb); }
.info-page ul { margin: 8px 0 8px 18px; display: grid; gap: 6px; }
.info-page a { color: #7d9bff; }
.is-info-page #matchesToolbar { display: none !important; }

/* ===== Tournament & Country pages ===== */
.tour-page { display: grid; gap: 14px; }
.tour-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 2px; }
.tour-head-main { display: flex; align-items: center; gap: 12px; }
.tour-head-main .tour-logo img, .tour-head-main .tour-logo .team-fallback { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; }
.tour-head-main > div b { display: block; font-size: 18px; font-weight: 800; color: #fff; }
.tour-head-main > div span { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 13px; margin-top: 2px; }
.tour-flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; }
.tour-flag-ph { width: 34px; height: 24px; border-radius: 4px; background: rgba(148,163,184,.25); display: inline-block; }
.tour-tabs { display: flex; gap: 6px; background: rgba(29,39,58,.55); border: 1px solid rgba(148,163,184,.18); border-radius: 12px; padding: 6px; overflow-x: auto; }
.tour-tabs a { flex: 1; text-align: center; white-space: nowrap; padding: 10px 14px; border-radius: 9px; color: var(--muted,#9aa6bd); text-decoration: none; font-weight: 600; font-size: 14px; }
.tour-tabs a.is-active { background: rgba(125,102,255,.18); color: #fff; }
.tour-card { background: rgba(29,39,58,.55); border: 1px solid rgba(148,163,184,.18); border-radius: 14px; padding: 16px 16px 18px; }
.tour-card > h2 { margin: 0 0 12px; font-size: 18px; color: #fff; }
.tour-sub { margin: 14px 0 8px; font-size: 14px; color: var(--muted,#c3ccdb); }
/* status */
.tour-status-pct { text-align: center; font-weight: 800; color: #fff; margin-bottom: 6px; }
.tour-status-bar { height: 8px; border-radius: 999px; background: rgba(148,163,184,.18); overflow: hidden; }
.tour-status-bar i { display: block; height: 100%; background: #23d39a; border-radius: 999px; }
.tour-status-dates { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; margin-top: 8px; }
/* fixture rows */
.tour-rows { display: grid; gap: 6px; }
.tour-row-wrap.is-extra-hidden { display: none; }
.tour-row { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(148,163,184,.18); background: rgba(20,28,44,.5); text-decoration: none; }
.tour-row:hover { border-color: rgba(125,102,255,.5); }
.tr-when b { display: block; color: #fff; font-size: 13px; }
.tr-when span { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }
.tr-teams { display: grid; gap: 4px; min-width: 0; }
.tr-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tr-line img, .tr-line .team-fallback { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; flex: 0 0 auto; }
.tr-line b { color: #e7ecf5; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-line em { margin-left: auto; color: #fff; font-style: normal; font-weight: 700; }
.tour-odds { display: flex; gap: 6px; }
.to-odd { display: grid; gap: 2px; text-align: center; min-width: 42px; padding: 6px 4px; border-radius: 8px; background: rgba(148,163,184,.10); }
.to-odd i { font-style: normal; color: var(--faint); font-size: 10px; }
.to-odd b { color: #fff; font-size: 13px; }
/* country league list */
.tour-league-list { display: grid; }
.tour-league-row { display: flex; align-items: center; gap: 12px; padding: 13px 6px; border-bottom: 1px solid rgba(148,163,184,.12); text-decoration: none; }
.tour-league-row:hover { background: rgba(125,102,255,.07); }
.tlr-badge img, .tlr-badge .team-fallback { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; }
.tlr-name { flex: 1; color: #e7ecf5; font-weight: 600; }
.tlr-arrow { color: var(--faint); }
/* stats */
.tstat-wdl-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted,#c3ccdb); margin-bottom: 8px; }
.tstat-wdl-head b { color: #fff; }
.tstat-bar { display: flex; height: 26px; border-radius: 7px; overflow: hidden; gap: 2px; }
.tstat-bar i { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; min-width: 0; }
.tstat-bar i.w { background: #23a55a; } .tstat-bar i.d { background: #6b7689; } .tstat-bar i.l { background: #4f86e8; }
.tstat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 14px; }
.tstat-cell { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: rgba(148,163,184,.08); }
.tstat-cell span { color: var(--muted,#c3ccdb); font-size: 13px; }
.tstat-cell b { color: #fff; font-size: 16px; }
.tstat-split { margin-top: 14px; }
.tstat-split > span { color: var(--muted,#c3ccdb); font-size: 13px; }
.tstat-bar2 { display: flex; height: 6px; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.tstat-bar2 i.w { background: #23a55a; } .tstat-bar2 i.l { background: #4f86e8; }
.tstat-split-lbl { display: flex; justify-content: space-between; margin-top: 5px; }
.tstat-split-lbl b { color: #fff; font-size: 13px; }

/* Countries index + Teams tab groups */
.tour-flag-ph.small { width: 22px; height: 16px; }
.tlr-badge .tour-flag { width: 24px; height: 16px; border-radius: 3px; object-fit: cover; }
.tgrp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tgrp-head b { color: #fff; font-size: 15px; font-weight: 700; }
.tgrp-head span { color: var(--faint); font-size: 13px; }
.tour-team-row { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid rgba(148,163,184,.12); }
.tour-team-row:last-child { border-bottom: 0; }
.tour-team-row .tlr-badge img, .tour-team-row .tlr-badge .team-fallback { width: 22px; height: 22px; border-radius: 5px; object-fit: contain; }
.tour-team-row .tlr-name { color: #e7ecf5; font-weight: 600; }

/* sidebar league items are now links to tournament pages */
a.tr-league-link { text-decoration: none; color: inherit; }

/* tournament: disabled tab + season badge + completed line */
.tour-tabs .is-disabled { flex: 1; text-align: center; white-space: nowrap; padding: 10px 14px; border-radius: 9px; color: rgba(154,166,189,.45); font-weight: 600; font-size: 14px; cursor: not-allowed; }
.tstat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tstat-top h2 { margin: 0; }
.tstat-season { background: rgba(148,163,184,.14); color: var(--muted,#c3ccdb); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; }
.tstat-completed { color: var(--muted,#c3ccdb); font-size: 13px; margin-bottom: 12px; }
.tstat-completed b { color: #fff; }

/* tournament tab panels */
.tour-panel { display: none; }
.tour-panel.is-active { display: grid; gap: 14px; }
/* list search box (country leagues / countries index) */
.tour-search { width: 100%; margin: 4px 0 10px; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(148,163,184,.22); background: rgba(20,28,44,.6); color: #fff; font-size: 14px; outline: none; }
.tour-search::placeholder { color: var(--faint,#6b7689); }
.tour-search:focus { border-color: rgba(125,102,255,.55); }
.tour-no-hits { color: var(--faint,#6b7689); padding: 12px 4px; }

/* ===== Topbar back to native CSS sticky (smooth, compositor-driven; the
   overflow-x:clip fix above makes sticky reliable again). Offers stay JS-driven. ===== */
@media (min-width: 1024px) {
  .tr-topbar { position: sticky; top: 0; }
  .tr-offers { position: static; top: auto; align-self: start; }
}
.tr-offers-ph { display: none; }
.tr-offers.is-fixed { z-index: 40; }

/* ===== Bet Builder ===== */
.bb-page { display: grid; gap: 14px; }
.bb-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(29,39,58,.55); border: 1px solid rgba(148,163,184,.18); border-radius: 12px; padding: 6px; }
.bb-tab { text-align: center; padding: 12px 14px; border-radius: 9px; color: var(--muted,#9aa6bd); font-weight: 600; text-decoration: none; }
.bb-tab.is-active { background: #fff; color: #0f1521; }
:root[data-theme="light"] .bb-tab.is-active { background: var(--bg); color: var(--text); }
.bb-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(148,163,184,.25); background: rgba(29,39,58,.6); color: #e7ecf5; font-weight: 600; font-size: 13px; }
.bb-chip.is-fixed { color: #23d39a; border-color: rgba(35,211,154,.4); }
.bb-chip.is-active { border-color: rgba(125,102,255,.6); color: #fff; }
.bb-chip em { font-style: normal; color: var(--faint,#8b96ab); }
.bb-caret { font-style: normal; font-size: 10px; opacity: .7; }
.bb-actions { display: flex; gap: 10px; }
.bb-generate { background: #16a34a; color: #fff; font-weight: 700; padding: 9px 18px; border-radius: 999px; }
.bb-clear { background: rgba(148,163,184,.14); color: var(--muted,#c3ccdb); padding: 9px 16px; border-radius: 999px; }
.bb-panel { display: none; background: rgba(20,28,44,.7); border: 1px solid rgba(148,163,184,.2); border-radius: 12px; padding: 14px; }
.bb-panel.is-open { display: block; }
.bb-search { width: 100%; margin-bottom: 10px; padding: 10px 12px; border-radius: 9px; border: 1px solid rgba(148,163,184,.22); background: rgba(15,21,33,.6); color: #fff; }
.bb-check-list { display: grid; gap: 2px; max-height: 320px; overflow-y: auto; }
.bb-check { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 8px; color: #e7ecf5; cursor: pointer; }
.bb-check:hover { background: rgba(125,102,255,.08); }
.bb-check input { width: 17px; height: 17px; accent-color: #16a34a; flex: 0 0 auto; }
.bb-slider-lbl { color: var(--muted,#c3ccdb); display: block; margin-bottom: 8px; }
.bb-slider-lbl b { color: #fff; }
#bbEvents { width: 100%; accent-color: #16a34a; }
.bb-odds { display: flex; gap: 16px; }
.bb-odds label { color: var(--muted,#c3ccdb); display: flex; align-items: center; gap: 8px; }
.bb-odds input { width: 90px; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(148,163,184,.22); background: rgba(15,21,33,.6); color: #fff; }
.bb-hint { color: var(--muted,#c3ccdb); background: rgba(29,39,58,.45); border: 1px dashed rgba(148,163,184,.25); border-radius: 12px; padding: 18px; text-align: center; }
.bb-coupon-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 8px; }
.bb-coupon-head b { color: #fff; font-size: 16px; }
.bb-coupon-head span { color: var(--faint,#8b96ab); font-size: 13px; }
.bb-leg { border: 1px solid rgba(148,163,184,.18); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; background: rgba(29,39,58,.5); }
.bb-leg-top { display: flex; flex-direction: column; gap: 2px; }
.bb-leg-top b { color: #fff; font-size: 14px; }
.bb-leg-top span { color: var(--faint,#8b96ab); font-size: 12px; }
.bb-leg-bet { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.bb-bet { color: #e7ecf5; font-weight: 600; }
.bb-odd { background: rgba(35,211,154,.15); color: #2ae7b5; font-weight: 700; padding: 4px 12px; border-radius: 8px; }
.bb-leg-meta { color: var(--faint,#8b96ab); font-size: 12px; margin-top: 6px; }
.bb-total { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 12px; background: rgba(35,211,154,.1); border: 1px solid rgba(35,211,154,.3); margin-top: 6px; }
.bb-total span { color: var(--muted,#c3ccdb); font-weight: 600; }
.bb-total b { color: #2ae7b5; font-size: 20px; }

/* ===== Topbar back to native CSS sticky (replaces the JS scroll-fixing that
   lagged the actual scroll position and caused the start-of-scroll jump). ===== */
@media (min-width: 1024px) {
  .tr-topbar { position: sticky; top: 0; }
  .tr-topbar.is-fixed { z-index: 60; box-shadow: 0 8px 26px rgba(0,0,0,.38); }
}
.tr-topbar-ph { display: none; }

/* ===== Cookie consent ===== */
.ck-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8,12,20,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ck-overlay[hidden] { display: none; }
.ck-modal { width: min(520px, 100%); max-height: 90vh; overflow-y: auto; background: #fff; color: #1a2230; border-radius: 18px; padding: 26px 26px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.ck-title { font-size: 22px; font-weight: 800; margin: 0 0 14px; color: #0f1521; }
.ck-lead { font-weight: 700; margin: 0 0 12px; color: #1a2230; }
.ck-modal p { font-size: 14px; line-height: 1.5; color: #46505f; margin: 0 0 12px; }
.ck-modal a { color: #16a34a; font-weight: 600; text-decoration: underline; }
.ck-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ck-btn { flex: 1 1 auto; min-width: 120px; padding: 13px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; border: 0; }
.ck-ghost { background: #f2f4f7; color: #2b3441; }
.ck-ghost:hover { background: #e8ebf0; }
.ck-primary { background: #16a34a; color: #fff; flex-basis: 100%; }
.ck-primary:hover { background: #128a3e; }
.ck-row { padding: 14px 0; border-top: 1px solid #eef0f3; }
.ck-row:first-of-type { border-top: 0; }
.ck-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.ck-row-head b { font-size: 15px; color: #0f1521; }
.ck-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 auto; }
.ck-switch input { opacity: 0; width: 0; height: 0; }
.ck-slider { position: absolute; inset: 0; background: #cbd2db; border-radius: 999px; transition: .2s; cursor: pointer; }
.ck-slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.ck-switch input:checked + .ck-slider { background: #16a34a; }
.ck-switch input:checked + .ck-slider::before { transform: translateX(18px); }
.ck-switch.is-locked .ck-slider { background: #d2d7df; cursor: not-allowed; }
.ck-switch.is-locked .ck-slider::before { background: #eef0f3; }
body.ck-open { overflow: hidden; }
@media (max-width: 480px) { .ck-btn { flex-basis: 100%; } }

/* ===== Articles ===== */
.articles-page { display: grid; gap: 28px; }
.art-section { display: grid; gap: 14px; }
.art-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.art-section-head h2 { font-size: 20px; font-weight: 800; color: var(--text); margin: 0; }
.art-more { color: #7d66ff; font-weight: 600; font-size: 14px; white-space: nowrap; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.art-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); transition: transform .12s, border-color .12s; }
.art-card:hover { transform: translateY(-2px); border-color: rgba(125,102,255,.5); }
.art-card-cover { display: block; aspect-ratio: 16 / 9; background: #0e1421; overflow: hidden; }
.art-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-card-cover--ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1b2236, #2a2150); }
.art-card-cover--ph b { font-size: 40px; font-weight: 900; color: rgba(255,255,255,.5); }
.art-card-body { display: flex; flex-direction: column; gap: 6px; padding: 13px 14px 15px; }
.art-card-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; }
.art-card-ex { font-size: 13px; color: var(--muted,#9aa6bd); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-card-date { font-size: 12px; color: var(--faint,#6b7689); margin-top: 2px; }

/* single article */
.article-page { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; }
.article-meta-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--faint,#8b96ab); }
.art-cat-tag { background: rgba(125,102,255,.16); color: #b9aaff; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.article-date, .article-author { color: var(--faint,#8b96ab); }
.article-cover { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.article-cover img { width: 100%; display: block; }
.article-body { color: var(--text); font-size: 16px; line-height: 1.7; }
.article-body h2 { font-size: 22px; font-weight: 800; margin: 26px 0 10px; }
.article-body h3 { font-size: 18px; font-weight: 700; margin: 22px 0 8px; }
.article-body p { margin: 0 0 15px; color: var(--muted,#c3ccdb); }
.article-body ul, .article-body ol { margin: 0 0 15px; padding-left: 22px; color: var(--muted,#c3ccdb); }
.article-body li { margin: 4px 0; }
.article-body a { color: #7d66ff; text-decoration: underline; }
.article-body img { max-width: 100%; border-radius: 12px; margin: 12px 0; }
.article-body blockquote { border-left: 3px solid #7d66ff; margin: 16px 0; padding: 4px 16px; color: var(--muted,#c3ccdb); background: rgba(125,102,255,.06); border-radius: 0 8px 8px 0; }
.article-disclaimer { font-size: 12px; color: var(--faint,#6b7689); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.art-related { margin-top: 18px; }
@media (max-width: 560px) { .art-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .art-card-title { font-size: 14px; } }
/* ===== Lineups: icon, pitch graphic, popup (NEW lineups feature) ===== */
.lineup-icon-btn{
  display:inline-grid; place-items:center; width:34px; height:34px; margin-left:auto;
  border-radius:10px; border:1px solid var(--line); background:var(--card-2);
  color:var(--primary-2); cursor:pointer; transition:background .15s,border-color .15s,color .15s;
}
.lineup-icon-btn:hover{ border-color:var(--primary); color:var(--text); background:var(--primary-soft); }
.score-cell-lineup{ justify-items:end; }

.lineup-pitch{
  position:relative; width:100%; aspect-ratio:68/100; max-width:420px; margin:6px auto 2px;
  border-radius:14px; border:1px solid var(--line-2);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 9%, rgba(255,255,255,0) 9% 18%),
    linear-gradient(180deg,#1f7a4d,#176b43);
  overflow:hidden;
}
.lineup-pitch::before{ content:""; position:absolute; left:8%; right:8%; top:50%; border-top:2px solid rgba(255,255,255,.22); }
.lineup-pitch::after{ content:""; position:absolute; top:calc(50% - 34px); left:50%; transform:translateX(-50%);
  width:68px; height:68px; border:2px solid rgba(255,255,255,.22); border-radius:50%; }
.lineup-pitch-empty{ display:grid; place-items:center; aspect-ratio:auto; min-height:120px; color:#dff3e8; font-weight:700; }

.pitch-player{ position:absolute; transform:translate(-50%,-50%); width:56px; text-align:center; }
.pitch-player .pp-shirt{
  position:relative; display:inline-grid; place-items:center; width:38px; height:38px;
  border-radius:50%; background:#fff; border:2px solid rgba(0,0,0,.18); overflow:hidden; box-shadow:0 3px 8px rgba(0,0,0,.3);
}
.pitch-player .pp-shirt img{ width:100%; height:100%; object-fit:cover; }
.pitch-player .pp-num{ position:absolute; right:-4px; bottom:-4px; min-width:16px; height:16px; padding:0 3px;
  display:grid; place-items:center; font-size:9px; font-weight:900; font-style:normal; color:#fff;
  background:var(--primary); border-radius:8px; border:1px solid rgba(0,0,0,.25); }
.pitch-player .pp-name{ display:block; margin-top:3px; font-size:10px; font-weight:800; color:#fff;
  text-shadow:0 1px 3px rgba(0,0,0,.7); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.lineup-subs{ margin-top:10px; }
.lineup-subs>b{ display:block; font-size:12px; color:var(--muted); margin-bottom:6px; }
.subs-list{ display:flex; flex-wrap:wrap; gap:6px; }
.sub-item{ display:inline-flex; align-items:center; gap:6px; padding:4px 9px 4px 4px;
  background:var(--card-2); border:1px solid var(--line); border-radius:999px; font-size:12px; font-weight:700; color:var(--text); }
.sub-item img,.sub-item .sub-ph{ width:22px; height:22px; border-radius:50%; object-fit:cover; background:#fff; flex:0 0 auto; }
.sub-item .sub-num{ font-style:normal; font-size:10px; font-weight:900; color:var(--primary-2); min-width:14px; text-align:center; }
.lineup-coach{ margin-top:10px; font-size:12px; color:var(--muted); }
.lineup-coach b{ color:var(--text); }

.lineup-team-block{ margin-bottom:18px; }
.lineup-team-block .ltb-head{ display:flex; align-items:center; gap:8px; font-size:14px; font-weight:900; color:var(--text); margin-bottom:4px; }
.lineup-formation{ margin-left:auto; font-size:11px; font-weight:800; color:var(--primary-2); background:var(--primary-soft); padding:2px 8px; border-radius:999px; }

.lineup-overlay{ position:fixed; inset:0; z-index:240; background:rgba(5,8,15,.66); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  display:grid; place-items:center; padding:16px; }
.lineup-card{ position:relative; width:100%; max-width:460px; max-height:90vh; overflow:auto;
  background:var(--panel); border:1px solid var(--line-2); border-radius:18px; box-shadow:var(--shadow); padding:16px; }
.lineup-close{ position:absolute; top:10px; right:10px; width:30px; height:30px; border-radius:9px;
  border:1px solid var(--line); background:var(--card-2); color:var(--muted); font-size:18px; line-height:1; cursor:pointer; }
.lineup-close:hover{ color:var(--text); }
.lineup-head{ display:flex; align-items:center; justify-content:center; gap:12px; margin:2px 28px 12px; }
.lineup-head .lh-team{ display:flex; align-items:center; gap:7px; font-size:13px; font-weight:900; color:var(--text); min-width:0; }
.lineup-head .lh-team .team-logo{ width:24px; height:24px; }
.lineup-head .lh-vs{ font-size:11px; color:var(--faint); font-weight:800; }
.lineup-tabs{ display:flex; gap:8px; margin-bottom:10px; }
.lineup-tabs .ltab{ flex:1; padding:8px 6px; border-radius:10px; border:1px solid var(--line);
  background:var(--card-2); color:var(--muted); font-size:12px; font-weight:800; cursor:pointer; }
.lineup-tabs .ltab.is-active{ background:var(--primary-soft); border-color:var(--primary); color:var(--text); }
.lineup-loading,.lineup-empty{ padding:30px 10px; text-align:center; color:var(--muted); font-weight:700; }
body.lineup-open{ overflow:hidden; }

@media (max-width:560px){
  .pitch-player{ width:48px; }
  .pitch-player .pp-shirt{ width:32px; height:32px; }
  .pitch-player .pp-name{ font-size:9px; }
}

/* ===== Bet Builder: clickable legs + bookmaker CTAs (NEW) ===== */
.bb-leg.is-openable{ cursor:pointer; transition:border-color .15s, background .15s; }
.bb-leg.is-openable:hover{ border-color:rgba(125,102,255,.55); background:rgba(125,102,255,.08); }
.bb-leg.is-openable:hover .bb-leg-top b{ color:var(--primary-2); }
.bb-foot{ padding:0; margin-top:12px; }

/* ===== Telegram CTA in left rail (NEW) ===== */
.tr-telegram-section{ margin-top:14px; }
.tr-telegram{
  display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:14px;
  text-decoration:none; color:#fff; background:linear-gradient(135deg,#2aabee,#229ed9);
  box-shadow:0 8px 20px rgba(34,158,217,.28); transition:transform .12s, box-shadow .12s;
}
.tr-telegram:hover{ transform:translateY(-1px); box-shadow:0 12px 26px rgba(34,158,217,.4); }
.tr-telegram .tg-ico{ flex:0 0 auto; width:30px; height:30px; display:grid; place-items:center;
  background:rgba(255,255,255,.2); border-radius:50%; }
.tr-telegram .tg-ico svg{ width:20px; height:20px; fill:#fff; }
.tr-telegram .tg-txt{ display:flex; flex-direction:column; line-height:1.2; min-width:0; }
.tr-telegram .tg-txt b{ font-size:13px; font-weight:900; }
.tr-telegram .tg-txt small{ font-size:11px; opacity:.92; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Contact moved to the bottom of the left rail */
.tr-contact-bottom{ margin-top:10px; padding-top:10px; border-top:1px solid var(--line); }
.tr-contact-bottom .tr-nav{ width:100%; }

/* Footer: на мобилно долната fixed лента (64px) застъпваше последните линкове → отстъп */
@media (max-width: 1023px){
  .tr-footer{ padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tr-footer-links{ gap: 10px 16px; }
}

/* ===== Lineups v2 — two columns (Starting XI | Substitutes) ===== */
.lineup-cols{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.lineup-col{ min-width:0; }
.lc-head{ font-size:11px; font-weight:900; letter-spacing:.04em; text-transform:uppercase;
  color:var(--primary-2); margin:0 0 8px; padding-bottom:6px; border-bottom:1px solid var(--line); }
.lc-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.lp-row{ display:flex; align-items:center; gap:8px; padding:5px 8px; border-radius:9px;
  background:var(--card-2); border:1px solid transparent; }
.lp-row:hover{ border-color:var(--line); }
.lp-avatar{ flex:0 0 auto; width:26px; height:26px; border-radius:50%; overflow:hidden; background:#fff;
  display:grid; place-items:center; }
.lp-avatar img{ width:100%; height:100%; object-fit:cover; }
.lp-num{ flex:0 0 auto; width:20px; text-align:center; font-size:11px; font-weight:900; color:var(--muted); }
.lp-name{ flex:1 1 auto; min-width:0; font-size:13px; font-weight:700; color:var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lp-pos{ flex:0 0 auto; font-size:9px; font-weight:900; letter-spacing:.03em; color:var(--muted);
  background:var(--panel); border:1px solid var(--line); border-radius:6px; padding:1px 5px; }
.lp-empty{ color:var(--faint); font-size:12px; padding:6px 8px; }

.lineup-team-block{ margin-bottom:20px; }
.lineup-team-block .ltb-head{ display:flex; align-items:center; gap:8px; font-size:14px; font-weight:900;
  color:var(--text); margin-bottom:12px; }
.lineup-coach{ margin-top:12px; font-size:12px; color:var(--muted); }
.lineup-coach b{ color:var(--text); }

/* popup polish */
.lineup-card{ padding:18px 18px 20px; }
.lineup-head{ margin:0 30px 14px; }
.lineup-tabs{ margin-bottom:16px; }
.lineup-tabs .ltab{ padding:9px 6px; }

@media (max-width:560px){
  .lineup-cols{ gap:10px; }
  .lp-name{ font-size:12px; }
  .lp-avatar{ width:22px; height:22px; }
  .lp-pos{ display:none; }
}

/* ===== Lineups v3 — pitch (both teams) + HOME/AWAY compare lists ===== */
.lu-teams{ display:flex; align-items:center; justify-content:center; gap:14px; margin:4px 0 10px; flex-wrap:wrap; }
.lu-team{ display:flex; align-items:center; gap:8px; font-size:14px; font-weight:900; color:var(--text); }
.lu-team .team-badge,.lu-team img{ width:22px; height:22px; }
.lu-team i{ font-style:normal; font-size:11px; font-weight:800; color:var(--primary-2); background:var(--primary-soft); padding:2px 7px; border-radius:999px; }
.lu-vs{ font-size:11px; color:var(--faint); font-weight:800; }

/* pitch: mobile vertical (away top / home bottom) */
.pitch2{
  display:flex; flex-direction:column; margin:2px 0 16px; border-radius:16px; overflow:hidden;
  border:1px solid var(--line-2); background:linear-gradient(180deg,#1f7a4d 0%,#1a724691 50%,#176b43 100%);
  min-height:380px;
}
.pitch2-half{ display:flex; flex-direction:column; flex:1; justify-content:space-evenly; padding:10px 4px; }
.pitch2-mid{ flex:0 0 0; border-top:2px solid rgba(255,255,255,.22); position:relative; }
.pitch2-mid::after{ content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:58px; height:58px; border:2px solid rgba(255,255,255,.2); border-radius:50%; }
.pline{ display:flex; flex-direction:row; justify-content:space-evenly; align-items:center; flex:1; }
.pp{ width:58px; text-align:center; }
.pp-shirt{ position:relative; display:grid; place-items:center; width:36px; height:36px; margin:0 auto;
  border-radius:50%; background:#fff; border:2px solid rgba(0,0,0,.18); overflow:hidden; box-shadow:0 2px 7px rgba(0,0,0,.32); }
.pp-shirt img{ width:100%; height:100%; object-fit:cover; }
.pp-num{ position:absolute; right:-3px; bottom:-3px; min-width:15px; height:15px; padding:0 3px; display:grid;
  place-items:center; font-size:9px; font-weight:900; font-style:normal; color:#fff; background:var(--primary);
  border-radius:7px; border:1px solid rgba(0,0,0,.25); }
.pp-name{ display:block; margin-top:2px; font-size:9.5px; font-weight:800; color:#fff;
  text-shadow:0 1px 3px rgba(0,0,0,.75); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

@media (min-width:720px){
  .pitch2{ flex-direction:row; min-height:300px; }
  .pitch2-half{ flex-direction:row; padding:4px 10px; }
  .pitch2-mid{ border-top:0; border-left:2px solid rgba(255,255,255,.22); }
  .pline{ flex-direction:column; }
}

/* compare lists: HOME left, AWAY right; Starting XI then Substitutes */
.lu-compare{ margin-top:2px; }
.lu-sec{ margin-bottom:16px; }
.lu-sec-head{ text-align:center; font-size:11px; font-weight:900; letter-spacing:.05em; text-transform:uppercase;
  color:var(--primary-2); margin-bottom:8px; }
.lu-grid{ display:grid; grid-template-columns:1fr 1fr; gap:6px 16px; }
.lp-col{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.lp-row{ display:flex; align-items:center; gap:8px; padding:5px 8px; border-radius:9px; background:var(--card-2); }
.lp-row-away{ justify-content:flex-end; text-align:right; }
.lp-avatar{ flex:0 0 auto; width:24px; height:24px; border-radius:50%; overflow:hidden; background:#fff; display:grid; place-items:center; }
.lp-avatar img{ width:100%; height:100%; object-fit:cover; }
.lp-num{ flex:0 0 auto; width:20px; text-align:center; font-size:11px; font-weight:900; color:var(--muted); }
.lp-name{ flex:1 1 auto; min-width:0; font-size:12.5px; font-weight:700; color:var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lp-empty{ color:var(--faint); font-size:12px; padding:6px 8px; list-style:none; }
.lu-coaches{ display:grid; grid-template-columns:1fr 1fr; gap:16px; font-size:11px; color:var(--muted); margin-top:2px; }
.lu-coaches span:last-child{ text-align:right; }

/* popup wider to fit horizontal pitch + two columns */
.lineup-card{ max-width:720px; }
@media (max-width:560px){
  .lp-name{ font-size:11.5px; }
  .lp-avatar{ width:20px; height:20px; }
  .pp{ width:50px; }
  .pp-shirt{ width:32px; height:32px; }
}

/* ===== Lineups v3.1 — stacked header + bottom-banner clearance ===== */
.lu-teams{ display:flex; flex-direction:column; align-items:center; gap:5px; margin:4px 0 10px; }
.lu-names{ display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; }
.lu-forms{ display:flex; align-items:center; justify-content:center; gap:12px; }
.lu-forms span{ font-size:12px; font-weight:900; color:var(--primary-2); letter-spacing:.02em; }
.lu-forms .lu-vs{ color:var(--faint); font-weight:800; }

/* долният промо банер (mobile: bottom:76px + ~72px височина) режеше резервите → достатъчен отстъп */
@media (max-width:1023px){
  body.has-bottom-banner{ padding-bottom: calc(168px + env(safe-area-inset-bottom)) !important; }
}

/* ===== Lineups v3.2 — fix дълги имена да се отрязват с „…" ===== */
.lu-grid{ min-width:0; }
.lu-grid > .lp-col{ min-width:0; }
.lp-row{ min-width:0; max-width:100%; }
.lp-row .lp-name{ min-width:0; flex:1 1 auto; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lp-row-away{ overflow:hidden; }

/* ===== Lineups v3.3 — pitch sides: HOME left / AWAY right (desktop), GK at outer edges ===== */
.pitch2{ display:flex; flex-direction:column; }
.pitch2-half{ display:flex; flex:1; justify-content:space-evenly; }
.ph-away{ flex-direction:column; }          /* mobile: away top, GK горе */
.ph-home{ flex-direction:column-reverse; }  /* mobile: home долу, GK долу */
.pline{ display:flex; flex-direction:row; justify-content:space-evenly; align-items:center; flex:1; }
@media (min-width:720px){
  .pitch2{ flex-direction:row; }
  .ph-home{ order:0; flex-direction:row; }          /* HOME вляво, GK най-вляво */
  .pitch2-mid{ order:1; }
  .ph-away{ order:2; flex-direction:row-reverse; }  /* AWAY вдясно, GK най-вдясно */
  .pline{ flex-direction:column; }
}

/* ===== Mobile: W/D/L (Latest results) и H2H метрики едно до друго ===== */
@media (max-width:760px){
  /* H2H: Total games / Total Goals Avg / Both teams scored — 3 в ред */
  .h2h-metric-grid{ grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:6px; }
  .h2h-metric-grid .info-cell,
  .h2h-metric-grid > *{ min-width:0; }
  /* Latest results: Win / Draw / Lost — 3 в ред */
  .recent-wdl-stats{ grid-template-columns:repeat(3,1fr) !important; gap:6px; }
  .recent-wdl-stats .wdl-stat b{ font-size:12px; }
  .recent-wdl-stats .wdl-stat span{ font-size:11px; }
  .recent-wdl-stats .wdl-stat i{ width:100%; }
}

/* ===== Match Info — venue image ===== */
.match-info-row .venue-text{ display:block; }
.match-info-row .venue-img{ display:block; margin-top:8px; width:100%; max-width:260px; height:auto; border-radius:10px; border:1px solid #243349; }

/* ===== Weather (desktop център / mobile до часа) + hover tooltip ===== */
.match-wx-center{ position:relative; display:flex; align-items:center; justify-content:center; gap:4px; font-size:13px; font-weight:800; color:var(--text); white-space:nowrap; min-width:0; cursor:pointer; }
.match-wx-center:empty{ visibility:hidden; }
.match-wx-time{ cursor:pointer; }
.status-cell .match-wx-time{ display:none; }
.wx-tip-float{ position:fixed; z-index:400; display:flex; flex-direction:column; gap:3px; background:var(--card,#131c2e); border:1px solid var(--line,#243349); border-radius:10px; padding:8px 12px; box-shadow:0 12px 30px rgba(0,0,0,.45); white-space:nowrap; font-size:12px; font-weight:700; color:var(--text,#e7ecf5); text-align:center; pointer-events:none; }
@media (max-width:760px){
  .match-wx-center{ display:none; }
  .status-cell .match-wx-time{ display:block; margin-top:3px; font-size:11px; font-weight:800; color:var(--text); white-space:nowrap; }
}

/* ===== Weather popup ===== */
.wx-pop-backdrop{ position:fixed; inset:0; z-index:300; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; padding:20px; }
.wx-pop{ position:relative; background:var(--card, #131c2e); border:1px solid var(--line, #243349); border-radius:16px; padding:22px 26px; min-width:200px; max-width:300px; text-align:center; box-shadow:0 24px 60px rgba(0,0,0,.45); }
.wx-pop-x{ position:absolute; top:8px; right:10px; background:none; border:0; color:var(--muted,#8a97ac); font-size:22px; line-height:1; cursor:pointer; }
.wx-pop-emoji{ font-size:44px; line-height:1; margin-bottom:6px; }
.wx-pop h4{ margin:0 0 10px; font-size:14px; color:var(--muted,#8a97ac); font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.wx-pop-rows{ display:flex; flex-direction:column; gap:6px; }
.wx-pop-row{ font-size:15px; font-weight:700; color:var(--text,#e7ecf5); }

/* === Lineup голове/картони badges + пълни имена === */
.pp-shirt, .lp-avatar { position: relative; }
.lp-badges { position: absolute; top: -5px; right: -7px; display: flex; gap: 1px; align-items: center; z-index: 3; pointer-events: none; }
.lp-card { width: 7px; height: 10px; border-radius: 1.5px; display: inline-block; box-shadow: 0 1px 2px rgba(0,0,0,.45); }
.lp-yellow { background: #ffcc00; }
.lp-red { background: #e0162b; }
.lp-goal { font-size: 10px; font-style: normal; line-height: 1; }
.lp-row-away .lp-badges { right: auto; left: -7px; }
.pitch-player .pp-name, .pp .pp-name { white-space: normal; max-width: 66px; line-height: 1.06; overflow: hidden; }

/* === Live коефове ПОД pre-match на началната === */
.odds-row-live { margin-top: 0; position: relative; }
.odds-live-tag { position: absolute; left: 0; top: -9px; font-size: 8px; font-weight: 800; color: #fff; background: #ff4d6d; padding: 1px 5px; border-radius: 4px; letter-spacing: .5px; z-index: 4; line-height: 1.3; }

/* === Мигане на резултата при гол (live мачове, 3 match-минути) === */
@keyframes scoreGoalBlink { 0%,100% { color: var(--live); text-shadow: none; } 50% { color: #17b978; text-shadow: 0 0 8px rgba(23,185,120,.6); } }
.score-cell .score-blink { animation: scoreGoalBlink .6s ease-in-out infinite; }

/* AET / PEN резултат */
.pen-sub{font-size:.62em;font-weight:700;color:#9fb0c9;margin-left:1px;vertical-align:super}
.match-center-score .pen-line{display:block;font-size:.62rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#9fb0c9;margin-top:3px}
.adv-arrow{color:#37d27a;font-weight:900;margin-left:3px}
.score-cell .pen-sub{color:#8b97ad}

/* Other teams H2H statistics (stats таб) */
.other-h2h-panel{margin-top:16px}
.other-h2h-panel h3{font-size:1.4rem;margin:0 0 14px}
.oth-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.oth-card{display:block;background:#fff;border:1px solid rgba(0,0,0,.09);border-radius:14px;padding:14px 16px;text-decoration:none;color:#1b2130;transition:border-color .15s,box-shadow .15s}
.oth-card:hover{border-color:#c9ced8;box-shadow:0 6px 16px rgba(0,0,0,.07)}
.oth-league{font-size:.8rem;color:#8a93a6;margin-bottom:8px}
.oth-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:7px 0}
.oth-team{display:flex;align-items:center;gap:8px;min-width:0}
.oth-team b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oth-team img,.oth-team .mini-team-badge{width:20px;height:20px;flex:0 0 auto;object-fit:contain}
.oth-meta{color:#8a93a6;font-size:.85rem;white-space:nowrap}
.oth-cta{margin-top:11px;display:flex;align-items:center;justify-content:space-between;border:1px solid rgba(0,0,0,.09);border-radius:9px;padding:9px 12px;color:#6b7488;font-size:.85rem;font-weight:600}
.oth-cta i{font-style:normal;font-size:1.1rem}
@media(max-width:900px){.oth-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.oth-grid{grid-template-columns:1fr}}

/* ---- Other teams H2H: ТЪМЕН дизайн (override) ---- */
.other-h2h-panel h3{color:#fff}
.oth-card{background:#161d2e;border:1px solid rgba(255,255,255,.09);color:#e6ebf5}
.oth-card:hover{border-color:rgba(255,255,255,.22);box-shadow:0 6px 16px rgba(0,0,0,.35)}
.oth-league{color:#8b97ad}
.oth-team b{color:#fff}
.oth-meta{color:#93a0b8}
.oth-cta{border-color:rgba(255,255,255,.12);color:#aab4c8}

/* ---- Историческа статистика (Stats таб) ---- */
.fs-panel{background:#141a2b;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:18px 20px;margin:0 0 16px;color:#e6ebf5}
.fs-head h3{margin:0;font-size:1.4rem;color:#fff}
.fs-toggles{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 6px}
.fs-tgset{display:inline-flex;background:#1d2740;border-radius:10px;padding:3px}
.fs-tg{border:0;background:transparent;color:#9fb0c9;font-weight:700;font-size:.8rem;padding:6px 12px;border-radius:8px;cursor:pointer}
.fs-tg.on{background:#6c5ce7;color:#fff}
.fs-block{margin-top:16px;border-top:1px solid rgba(255,255,255,.06);padding-top:14px}
.fs-block h4{margin:0 0 10px;font-size:1rem;color:#fff}
.fs-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.fs-side{background:#0f1626;border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:12px}
.fs-team{display:flex;align-items:center;gap:7px;font-size:.9rem;color:#c7d0e2;margin-bottom:8px}
.fs-team b{color:#fff}
.fs-wdlrow{display:flex;justify-content:space-between;gap:6px;font-size:.78rem;color:#aab4c8;margin-bottom:6px}
.fs-wdlrow .dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;vertical-align:middle}
.dot.w{background:#37d27a}.dot.d{background:#8b97ad}.dot.l{background:#ff5c7a}
.fs-wdl{display:flex;height:10px;border-radius:6px;overflow:hidden;background:#0b1120}
.fs-wdl .w{background:#37d27a}.fs-wdl .d{background:#6b7488}.fs-wdl .l{background:#ff5c7a}
.fs-cmp-list{margin-top:4px}
.fs-cmp{display:grid;grid-template-columns:56px 1fr 56px;align-items:center;gap:8px;padding:7px 0}
.fs-cmp .fs-hv{background:#6c5ce7;color:#fff;font-weight:700;border-radius:7px;padding:4px 0;text-align:center;font-size:.85rem}
.fs-cmp .fs-av{background:#2f8fff;color:#fff;font-weight:700;border-radius:7px;padding:4px 0;text-align:center;font-size:.85rem}
.fs-cmp em{font-style:normal;text-align:center;color:#c7d0e2;font-size:.86rem;font-weight:600}
.fs-cbar{display:flex;gap:6px;margin:-2px 0 6px}
.fs-cbar i{height:6px;border-radius:4px;display:block}
.fs-cbar .h{background:#6c5ce7}.fs-cbar .a{background:#2f8fff;margin-left:auto}
.fs-freq{display:flex;justify-content:space-between;padding:6px 8px;border-radius:8px;background:#111a2c;margin-bottom:5px;font-size:.85rem}
.fs-freq .fs-fk{color:#fff;font-weight:700}
.fs-freq .fs-fc{color:#93a0b8}
@media(max-width:560px){.fs-two{grid-template-columns:1fr}}

/* ---- Историческа статистика: отделни модул-карти ---- */
.fs-panel{background:transparent;border:0;padding:0;margin:0}
.fs-modhead{background:#141a2b;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:16px 20px;margin:0 0 14px}
.fs-modhead h3{margin:0 0 12px;font-size:1.4rem;color:#fff}
.fs-block{background:#141a2b;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:16px 20px;margin:0 0 14px}
.fs-block h4{margin:0 0 12px;font-size:1.05rem;color:#fff}

/* Отделни филтри: домакин отляво, гост отдясно (две колони) */
.fs-toggles2{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:12px 0 2px}
.fs-tgteam{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.fs-tgname{display:flex;align-items:center;gap:7px;color:#c7d0e2;font-size:.95rem}
.fs-tgname b{color:#fff}
.fs-tgname img,.fs-tgname .mini-team-badge{width:22px;height:22px;object-fit:contain}
.fs-tgsets{display:flex;flex-direction:column;gap:8px;width:100%}
@media(max-width:560px){.fs-toggles2{grid-template-columns:1fr;gap:14px}}

/* Падащо меню за турнир (Stats филтри) */
.fs-selwrap{position:relative;display:inline-block}
.fs-sel{appearance:none;-webkit-appearance:none;background:#1d2740;color:#e6ebf5;border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:7px 30px 7px 12px;font-size:.82rem;font-weight:700;cursor:pointer;max-width:240px;text-overflow:ellipsis}
.fs-selwrap::after{content:'\25BE';position:absolute;right:11px;top:50%;transform:translateY(-50%);color:#9fb0c9;pointer-events:none;font-size:.7rem}
.fs-sel:focus{outline:none;border-color:#6c5ce7}
.fs-sel option{background:#1d2740;color:#e6ebf5}

/* Кръгови диаграми: Over/Under & BTTS */
.fs-ou{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.fs-ou:last-child{border-bottom:0}
.fs-ou-side{display:flex;flex-direction:column;align-items:center;gap:9px}
.fs-ou-cnt{display:flex;gap:18px;font-size:.82rem;color:#9fb0c9}
.fs-ou-cnt b{color:#fff;font-size:.98rem;margin-left:3px}
.fs-ou-cnt .g b{color:#37d27a}.fs-ou-cnt .r b{color:#ff5c7a}
.fs-pie{width:92px;height:92px}
.fs-pie-t{fill:#fff;font-size:18px;font-weight:800}
.fs-ou-mid{text-align:center;min-width:74px}
.fs-ou-mid b{display:block;font-size:1.6rem;color:#fff;line-height:1.1}
.fs-ou-mid span{font-size:.8rem;color:#9fb0c9}
@media(max-width:560px){.fs-pie{width:76px;height:76px}.fs-ou{gap:8px}.fs-ou-cnt{gap:10px}}

/* W/D/L кръгови по полувремена */
.fs-halfset{display:flex;justify-content:space-around;gap:14px;margin-top:6px}
.fs-halfcol{display:flex;flex-direction:column;align-items:center;gap:8px}
.fs-halflbl{font-size:.85rem;color:#c7d0e2;font-weight:600}
.fs-halfcol .fs-pie{width:82px;height:82px}
.fs-halfleg{display:flex;gap:11px;font-size:.8rem;color:#c7d0e2}
.fs-halfleg i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:4px;vertical-align:middle}
.fs-halfleg i.w{background:#37d27a}.fs-halfleg i.d{background:#6b7488}.fs-halfleg i.l{background:#ff5c7a}

/* Процент вътре в сегмент на pie */
.fs-pie-s{fill:#fff;font-size:13px;font-weight:700;paint-order:stroke;stroke:rgba(0,0,0,.32);stroke-width:2.4px;stroke-linejoin:round}

/* Goals stats — SCORED / CONCEDED колони */
.fs-goals2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.fs-gcol{background:#0f1626;border:1px solid rgba(255,255,255,.07);border-radius:12px;overflow:hidden}
.fs-ghead{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;background:#1c2740;border-bottom:1px solid rgba(255,255,255,.08)}
.fs-ghead .fs-gb{display:flex;align-items:center;gap:8px}
.fs-ghead .fs-gb b{padding:4px 12px;border-radius:8px;color:#fff;font-size:1rem;min-width:34px;text-align:center}
.fs-ghead .fs-gb b.h{background:#6c5ce7}
.fs-ghead .fs-gb b.a{background:#2f8fff}
.fs-ghead img,.fs-ghead .mini-team-badge{width:22px;height:22px;object-fit:contain}
.fs-gtitle{font-weight:800;letter-spacing:.07em;color:#fff;font-size:.92rem}
.fs-grow{display:grid;grid-template-columns:46px 1fr 46px;align-items:center;gap:8px;padding:11px 14px;border-top:1px solid rgba(255,255,255,.05)}
.fs-grow em{font-style:normal;text-align:center;color:#c7d0e2;font-size:.85rem}
.fs-grow .h,.fs-grow .a{text-align:center;font-weight:700;color:#fff;border-radius:7px;padding:4px 0;font-size:.85rem}
.fs-grow .h{background:rgba(108,92,231,.28)}
.fs-grow .a{background:rgba(47,143,255,.28)}
@media(max-width:640px){.fs-goals2{grid-template-columns:1fr}}

/* Заглавна лента с отборите (домакин=лилаво, гост=синьо) */
.fs-teamshead{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin:2px 0 14px;padding-bottom:11px;border-bottom:1px solid rgba(255,255,255,.06)}
.fs-th-side{display:flex;align-items:center;gap:7px;color:#c7d0e2;font-weight:600;font-size:.92rem}
.fs-th-side.a{justify-content:flex-end}
.fs-th-side b{color:#fff}
.fs-th-side img,.fs-th-side .mini-team-badge{width:20px;height:20px;object-fit:contain}
.fs-th-mid{color:#8b97ad;font-size:.85rem;font-weight:600;white-space:nowrap}
.dotc{width:10px;height:10px;border-radius:50%;display:inline-block;flex:0 0 auto}
.dotc.h{background:#6c5ce7}.dotc.a{background:#2f8fff}

/* Correct score / Exact goals — лента + процент */
.fs-freq2{display:grid;grid-template-columns:64px 1fr 40px 32px;align-items:center;gap:10px;padding:9px 2px;border-bottom:1px solid rgba(255,255,255,.05)}
.fs-freq2:last-child{border-bottom:0}
.fs-freq2 .fs-fk{color:#fff;font-weight:700;font-size:.9rem;white-space:nowrap}
.fs-fbar{height:8px;border-radius:5px;background:#0b1120;overflow:hidden}
.fs-fbar i{display:block;height:100%;border-radius:5px}
.fs-freq2.h .fs-fbar i{background:#6c5ce7}
.fs-freq2.a .fs-fbar i{background:#2f8fff}
.fs-fpct{text-align:right;color:#fff;font-weight:700;font-size:.82rem}
.fs-freq2 .fs-fc{text-align:right;color:#93a0b8;font-size:.82rem}

/* Trends страница (feed карти) */
.trends-feed{margin-top:6px}
.trf-h{font-size:1.5rem;margin:0 0 16px;color:#fff}
.trf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-width:0}
.trends-feed{min-width:0}
.trf-card{display:flex;flex-direction:column;background:#141a2b;border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:16px;color:#e6ebf5;transition:border-color .15s,box-shadow .15s}
.trf-card:hover{border-color:rgba(255,255,255,.2);box-shadow:0 6px 16px rgba(0,0,0,.35)}
.trf-cardlink{display:block;text-decoration:none;color:inherit;flex:1}
.trf-top{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.trf-crest{width:26px;height:26px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center}
.trf-crest img{width:26px;height:26px;object-fit:contain}
.trf-team{color:#fff;font-weight:700;font-size:1rem;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trf-badge{font-size:.72rem;font-weight:800;padding:4px 9px;border-radius:999px;white-space:nowrap;flex:0 0 auto}
.trf-badge.good{background:rgba(55,210,122,.18);color:#4be08c}
.trf-badge.bad{background:rgba(255,92,122,.18);color:#ff8098}
.trf-badge.info{background:rgba(47,143,255,.18);color:#5aa9ff}
.trf-headline{color:#fff;font-size:.98rem;line-height:1.35;margin-bottom:10px}
.trf-match{color:#c7d0e2;font-size:.85rem;margin-bottom:3px}
.trf-when{color:#8b97ad;font-size:.8rem}
.trf-pick{margin-top:11px}
.trf-pk-only{display:inline-block;background:#1d2740;border:1px solid rgba(255,255,255,.1);border-radius:9px;padding:7px 12px;color:#fff;font-weight:700;font-size:.85rem}
.trf-bet{display:flex;align-items:center;gap:9px;background:#1d2740;border:1px solid rgba(255,255,255,.1);border-radius:9px;padding:8px 12px;text-decoration:none}
.trf-bet:hover{border-color:#6c5ce7;box-shadow:0 4px 12px rgba(108,92,231,.25)}
.trf-pk{color:#fff;font-weight:700;font-size:.85rem;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trf-od{color:#4be08c;font-weight:800;font-size:.98rem;flex:0 0 auto}
.trf-bk{color:#8b97ad;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;flex:0 0 auto}
.trf-tabs{display:flex;gap:8px;margin:0 0 16px}
.trf-tab{background:#1d2740;border:1px solid rgba(255,255,255,.08);color:#9fb0c9;font-weight:700;padding:9px 16px;border-radius:10px;cursor:pointer;font-size:.9rem}
.trf-tab.on{background:#6c5ce7;color:#fff;border-color:transparent}
.trf-tab span{opacity:.85;font-size:.78rem;margin-left:5px}
.trf-cats{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.trf-cat{background:#141a2b;border:1px solid rgba(255,255,255,.08);color:#9fb0c9;font-weight:600;padding:7px 13px;border-radius:999px;cursor:pointer;font-size:.82rem}
.trf-cat:hover{border-color:rgba(255,255,255,.22)}
.trf-cat.on{background:rgba(108,92,231,.18);color:#c9bcff;border-color:#6c5ce7}
.trf-cat span{opacity:.7;font-size:.72rem;margin-left:4px}
@media(max-width:900px){.trf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.trf-grid{grid-template-columns:1fr}}

/* ---- Match SEO preview + FAQ (bottom of Overview/Stats) ---- */
.match-seo-block{background:#141a2b;border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:22px clamp(16px,2.4vw,28px);margin-top:16px;color:#c7d1e2}
.match-seo-h{font-size:1.12rem;font-weight:800;color:#fff;margin:0 0 12px}
.match-seo-block .match-seo-h + .match-seo-prose{margin-bottom:4px}
.match-seo-prose p{margin:0 0 12px;line-height:1.65;font-size:.94rem;color:#b7c2d6}
.match-seo-prose p:last-child{margin-bottom:0}
.match-seo-faq{display:flex;flex-direction:column;gap:9px;margin-top:4px}
.seo-faq-item{background:#0f1524;border:1px solid rgba(255,255,255,.06);border-radius:11px;overflow:hidden}
.seo-faq-item summary{list-style:none;cursor:pointer;padding:13px 15px;font-weight:700;color:#e6ebf5;font-size:.9rem;position:relative;padding-right:40px}
.seo-faq-item summary::-webkit-details-marker{display:none}
.seo-faq-item summary::after{content:"+";position:absolute;right:15px;top:50%;transform:translateY(-50%);font-size:1.2rem;font-weight:700;color:#6c5ce7;transition:transform .2s}
.seo-faq-item[open] summary::after{content:"–"}
.seo-faq-item summary:hover{color:#fff}
.seo-faq-item p{margin:0;padding:0 15px 14px;line-height:1.6;font-size:.9rem;color:#9fb0c9}
.match-seo-h + .match-seo-faq{margin-top:0}

/* ---- Editor's "OUR CHOICE" prediction card + come-true vote ---- */
.our-choice{position:relative;margin:22px auto 0;max-width:580px;background:linear-gradient(180deg,#1b2236,#141a2b);border:1.5px solid #2ecc71;border-radius:16px;padding:36px 22px 20px;text-align:center;box-shadow:0 10px 28px rgba(0,0,0,.35)}
.oc-ribbon{position:absolute;top:0;left:50%;transform:translateX(-50%);background:#2ecc71;color:#fff;font-weight:800;font-size:.78rem;letter-spacing:.1em;padding:7px 28px;border-radius:0 0 13px 13px}
.oc-pick{font-size:1.4rem;color:#fff;font-weight:500;line-height:1.35}
.oc-pick b{font-weight:800}
.oc-at{color:#9fb0c9;font-weight:500}
.oc-odds{color:#4be08c;font-weight:800}
.oc-star{color:#9fb0c9}
.oc-bet{display:inline-flex;align-items:center;gap:9px;background:#0f1524;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:9px 22px 9px 15px;margin:16px 0 6px;text-decoration:none;transition:transform .12s,border-color .12s}
.oc-bet:hover{transform:translateY(-1px);border-color:#2ecc71}
.oc-bet img{height:20px;width:auto;display:block}
.oc-bet span{color:#fff;font-weight:800;letter-spacing:.04em}
.oc-note{color:#8b97ad;font-size:.82rem;margin-top:8px}
.pred-choice-text{margin:14px auto 0;max-width:660px;color:#c7d1e2;line-height:1.6}

.ct-vote{margin:16px auto 0;max-width:580px;background:#141a2b;border:1px solid rgba(255,255,255,.09);border-radius:14px;padding:18px 18px 16px;text-align:left}
.ct-q{font-weight:800;color:#fff;font-size:1.06rem;margin-bottom:14px}
.ct-btns{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ct-btn{display:flex;align-items:center;justify-content:center;gap:7px;padding:13px;border-radius:10px;border:1.5px solid rgba(255,255,255,.12);background:#0f1524;font-weight:700;font-size:.95rem;cursor:pointer;transition:background .15s,border-color .15s,opacity .15s;color:#e6ebf5}
.ct-ico{font-size:1.05rem;line-height:1}
.ct-yes{color:#4be08c}
.ct-no{color:#ff6b88}
.ct-yes:hover:not(:disabled){background:rgba(75,224,140,.12);border-color:#2ecc71}
.ct-no:hover:not(:disabled){background:rgba(255,107,136,.12);border-color:#e0466a}
.ct-btn.is-voted.ct-yes{background:rgba(75,224,140,.15);border-color:#2ecc71}
.ct-btn.is-voted.ct-no{background:rgba(255,107,136,.15);border-color:#e0466a}
.ct-btn.is-dim{opacity:.5}
.ct-btn:disabled{cursor:default}
.ct-btn b{font-weight:800;margin-left:2px}
.ct-total{color:#8b97ad;font-size:.85rem;margin-top:12px}
/* come-true vote вътре в MOTD картата — по-компактно */
.motd-card .ct-vote{margin-top:12px;max-width:none}
/* come-true vote в Bet of the Day борда */
.botd-board .ct-vote{max-width:none;margin:14px 0 2px}

/* Tip бадж — кликаем (отваря Prediction таба) */
.pred-flag{cursor:pointer;transition:filter .15s}
.pred-flag:hover{filter:brightness(1.15)}
/* Вероятни състави на терен в Prediction таба */
.pred-pitch-forms{display:flex;justify-content:space-between;gap:12px;margin:2px 0 10px;color:#9fb0c9;font-size:.85rem}
.pred-pitch-forms b{color:#fff}
.pred-pitch-wrap{border-radius:14px;overflow:hidden}
.pred-pitch-note{margin-top:8px;color:#8b97ad;font-size:.78rem;text-align:center}

/* ═══════════ Team Comparison Tool ═══════════ */
.tc-wrap{min-width:0}
.tc-title{font-size:1.4rem;font-weight:800;color:#fff;margin:0 0 16px}
.tc-pickers{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.tc-picker{position:relative;flex:1;min-width:200px}
.tc-input{width:100%;background:#141a2b;border:1px solid rgba(255,255,255,.1);border-radius:11px;color:#e6ebf5;padding:12px 14px;font:inherit}
.tc-input:focus{outline:none;border-color:#6c5ce7}
.tc-vsmid{color:#8b97ad;font-weight:800;flex:0 0 auto}
.tc-compare-btn{flex:0 0 auto;background:#6c5ce7;color:#fff;border:0;border-radius:11px;padding:12px 22px;font-weight:800;cursor:pointer}
.tc-compare-btn:disabled{opacity:.45;cursor:default}
.tc-chosen{display:flex;align-items:center;gap:9px;background:#141a2b;border:1px solid #6c5ce7;border-radius:11px;padding:9px 12px}
.tc-chosen img{width:26px;height:26px;object-fit:contain}
.tc-chosen b{flex:1;min-width:0;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-clear{background:transparent;border:0;color:#8b97ad;cursor:pointer;font-size:1rem}
.tc-dd{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:30;background:#0f1524;border:1px solid rgba(255,255,255,.12);border-radius:11px;overflow:hidden;max-height:320px;overflow-y:auto;box-shadow:0 12px 30px rgba(0,0,0,.5)}
.tc-dd:empty{display:none}
.lt-country-leagues{margin-top:10px;border:1px solid rgba(255,255,255,.12);border-radius:11px;overflow:hidden;max-height:460px;overflow-y:auto;background:#0f1524}
.lt-country-leagues .tc-ddr{cursor:pointer}
.lt-country-leagues .tc-ddr:hover{background:rgba(255,255,255,.05)}
.tc-ddr{display:flex;align-items:center;gap:9px;padding:9px 12px;cursor:pointer;border-bottom:1px solid rgba(255,255,255,.05)}
.tc-ddr:hover{background:#1a2236}
.tc-ddr img{width:24px;height:24px;object-fit:contain;flex:0 0 auto}
.tc-ddn{color:#fff;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-ddm{color:#8b97ad;font-size:.78rem;margin-left:auto;flex:0 0 auto}
.tc-ddempty{padding:11px 12px;color:#8b97ad}
.tc-card{background:#141a2b;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:20px clamp(14px,2vw,24px)}
.tc-heads{display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:12px;padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.08)}
.tc-team{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px}
.tc-team-away{}
.tc-crest img{width:52px;height:52px;object-fit:contain}
.tc-tname{color:#fff;font-size:1.05rem}
.tc-tmeta{color:#8b97ad;font-size:.76rem}
.tc-form{display:flex;gap:3px;margin-top:3px}
.tc-fd{width:18px;height:18px;border-radius:5px;font-size:.66rem;font-weight:800;display:flex;align-items:center;justify-content:center;color:#fff}
.tc-fd-W{background:#2ecc71}.tc-fd-D{background:#7a869c}.tc-fd-L{background:#ff5c7a}
.tc-vs{align-self:center;color:#8b97ad;font-weight:800;font-size:.9rem}
.tc-sec-h{color:#c9bcff;font-weight:800;font-size:.82rem;text-transform:uppercase;letter-spacing:.05em;margin:18px 0 10px}
.tc-rows{display:flex;flex-direction:column;gap:9px}
.tc-row{display:grid;grid-template-columns:56px 1fr 56px;align-items:center;gap:10px}
.tc-v{font-weight:800;color:#c7d1e2;font-size:.9rem}
.tc-vh{text-align:right}.tc-va{text-align:left}
.tc-v.tc-win{color:#fff}
.tc-bars{min-width:0}
.tc-blabel{text-align:center;color:#9fb0c9;font-size:.76rem;margin-bottom:3px}
.tc-btrack{height:6px;background:rgba(255,255,255,.07);border-radius:4px;overflow:hidden}
.tc-btrack-a{margin-top:3px}
.tc-bar{display:block;height:100%;border-radius:4px}
.tc-bar-h{background:#6c5ce7;float:right}
.tc-bar-a{background:#2f8fff}
.tc-splits{display:flex;flex-direction:column;gap:7px}
.tc-srow{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;background:#0f1524;border-radius:9px;padding:9px 12px}
.tc-srow span{color:#c7d1e2;font-weight:700}
.tc-srow span:first-child{text-align:right}
.tc-srow b{color:#8b97ad;font-size:.8rem;font-weight:700}
.tc-h2h{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;background:#0f1524;border-radius:9px;padding:12px}
.tc-h2h span{color:#fff;font-weight:700}
.tc-h2h span:first-child{text-align:right}
.tc-h2h b{color:#9fb0c9;font-size:.82rem}
@media(max-width:560px){.tc-row{grid-template-columns:44px 1fr 44px}.tc-v{font-size:.82rem}}

/* Team Comparison — range toggle + notes */
.tc-range{display:flex;gap:8px;margin:14px 0 4px;justify-content:center}
.tc-rbtn{background:#0f1524;border:1px solid rgba(255,255,255,.1);color:#9fb0c9;font-weight:700;padding:7px 16px;border-radius:999px;cursor:pointer;font-size:.85rem}
.tc-rbtn:hover{border-color:rgba(255,255,255,.25)}
.tc-rbtn.on{background:#6c5ce7;color:#fff;border-color:transparent}
.tc-dim{color:#8b97ad;font-weight:600;font-size:.82em;text-transform:none;letter-spacing:0}
.tc-advnote{color:#8b97ad;font-size:.78rem;line-height:1.5;margin-top:8px;padding:9px 12px;background:#0f1524;border-radius:9px;border:1px solid rgba(255,255,255,.05)}

/* ═══════════ League Trend Explorer ═══════════ */
.lt-card{background:#141a2b;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:20px clamp(14px,2vw,24px)}
.lt-head{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.08)}
.lt-crest img{width:44px;height:44px;object-fit:contain}
.lt-name{color:#fff;font-size:1.15rem;display:block}
.lt-meta{color:#8b97ad;font-size:.8rem}
.lt-outcome{display:flex;height:34px;border-radius:9px;overflow:hidden;background:#0f1524}
.lt-oseg{display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:.8rem;min-width:0}
.lt-oseg.lt-home{background:#6c5ce7}.lt-oseg.lt-draw{background:#7a869c}.lt-oseg.lt-away{background:#2f8fff}
.lt-olegend{display:flex;gap:16px;justify-content:center;margin-top:9px;color:#9fb0c9;font-size:.8rem;flex-wrap:wrap}
.lt-olegend i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:5px;vertical-align:middle}
.lt-olegend i.lt-home{background:#6c5ce7}.lt-olegend i.lt-draw{background:#7a869c}.lt-olegend i.lt-away{background:#2f8fff}
.lt-bars{display:flex;flex-direction:column;gap:11px}
.lt-bar .lt-bl{display:flex;justify-content:space-between;margin-bottom:5px;color:#c7d1e2;font-size:.88rem}
.lt-bar .lt-bl b{color:#fff}
.lt-bt{height:8px;background:rgba(255,255,255,.07);border-radius:5px;overflow:hidden}
.lt-bf{display:block;height:100%;border-radius:5px;background:#6c5ce7}
.lt-bf.lt-g{background:#4be08c}.lt-bf.lt-b{background:#ffb43a}.lt-bf.lt-c{background:#2f8fff}
.lt-pills{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}
.lt-pill{background:#0f1524;border:1px solid rgba(255,255,255,.06);border-radius:11px;padding:12px;text-align:center}
.lt-pill b{display:block;color:#fff;font-size:1.35rem;font-weight:800}
.lt-pill span{color:#8b97ad;font-size:.76rem}
.lt-chips{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.lt-chip{display:flex;align-items:center;gap:7px;background:#141a2b;border:1px solid rgba(255,255,255,.1);border-radius:999px;padding:8px 14px;cursor:pointer;color:#e6ebf5;font-weight:600;font-size:.86rem}
.lt-chip:hover{border-color:#6c5ce7}
.lt-chip img{width:20px;height:20px;object-fit:contain}

/* League Trends — country filter layout */
.lt-pickers{align-items:flex-start}
.lt-cpicker{flex:0 0 240px;max-width:240px}
@media(max-width:560px){.lt-cpicker{flex:1 1 auto;max-width:none;width:100%}}
/* NEW / HOT — наклонен печат в горния ляв ъгъл на елемента */
.tr-nav{position:relative}
.tr-badge{position:absolute;top:-1px;left:2px;transform:rotate(-13deg);transform-origin:left center;font-size:.52rem;font-weight:900;letter-spacing:.08em;padding:2px 5px;border-radius:4px;text-transform:uppercase;z-index:3;pointer-events:none;box-shadow:0 2px 5px rgba(0,0,0,.45);line-height:1}
.tr-badge-new{background:#e5322b;color:#fff}
.tr-badge-hot{background:#ff6b3d;color:#fff}

/* Tool FAQ (Team Comparison / League Trends) */
.tool-faq{margin-top:18px}
.tool-faq-h{font-size:1.05rem;font-weight:800;color:#fff;margin:0 0 12px}
.tool-faq .seo-faq-item{margin-bottom:9px}

/* ═══════════ Smart Trend Filter ═══════════ */
.sf-builder{background:#141a2b;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:18px clamp(12px,2vw,20px);margin-bottom:18px}
.sf-conds{display:flex;flex-direction:column;gap:10px}
.sf-cond{display:grid;grid-template-columns:1fr 64px 92px 1.1fr auto;gap:8px;align-items:center}
.sf-cond .tc-input{padding:10px}
.sf-m,.sf-op,.sf-side{cursor:pointer}
.sf-vwrap{position:relative;display:flex;align-items:center}
.sf-vwrap .sf-v{width:100%;padding-right:26px}
.sf-vwrap span{position:absolute;right:10px;color:#8b97ad;font-size:.85rem;pointer-events:none}
.sf-del{background:transparent;border:1px solid rgba(255,255,255,.12);color:#ff6b8a;border-radius:9px;width:38px;height:38px;cursor:pointer;font-size:.9rem;flex:0 0 auto}
.sf-del:hover{background:rgba(255,107,138,.12);border-color:#e0466a}
.sf-add{margin-top:12px;background:#0f1524;border:1px dashed rgba(255,255,255,.2);color:#c9bcff;border-radius:10px;padding:10px 16px;cursor:pointer;font-weight:700;font-size:.88rem}
.sf-add:hover{border-color:#6c5ce7}
.sf-opts{display:flex;flex-wrap:wrap;gap:18px;margin:16px 0 4px}
.sf-optg{display:flex;flex-direction:column;gap:6px}
.sf-optg > span{color:#9fb0c9;font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.sf-optg .tc-range{margin:0;justify-content:flex-start}
.sf-run{width:100%;margin-top:14px}
.sf-resh{color:#c7d1e2;font-weight:700;margin:0 0 12px}
.sf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.sf-card{display:block;background:#141a2b;border:1px solid rgba(255,255,255,.08);border-radius:13px;padding:14px;text-decoration:none;transition:border-color .15s,transform .12s}
.sf-card:hover{border-color:#6c5ce7;transform:translateY(-1px)}
.sf-match{color:#fff;font-size:.98rem}
.sf-match b{font-weight:800}.sf-match span{color:#8b97ad;font-weight:600;margin:0 5px;font-size:.82rem}
.sf-when{color:#8b97ad;font-size:.78rem;margin-top:3px}
.sf-metrics{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.sf-mv{background:#0f1524;border:1px solid rgba(255,255,255,.06);border-radius:7px;padding:4px 8px;font-size:.75rem;color:#c7d1e2}
.sf-mv i{color:#9fb0c9;font-style:normal}
.sf-mv b{color:#4be08c;font-weight:800}
@media(max-width:600px){.sf-cond{grid-template-columns:1fr 1fr;grid-auto-rows:auto}.sf-cond .sf-m{grid-column:1/3}.sf-del{width:100%}}

/* Tool „How it works" SEO текст (видим за потребителя) */
.tool-seo{margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.07)}
.tool-seo-h{font-size:1.1rem;font-weight:800;color:#fff;margin:0 0 10px}
.tool-seo p{color:#aab6ca;line-height:1.65;margin:0 0 10px;max-width:760px}

/* ═══════════ Trend Strength Analyzer ═══════════ */
.ts-card{background:#141a2b;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:20px clamp(14px,2vw,24px)}
.ts-head{display:flex;align-items:center;justify-content:center;gap:10px;color:#fff;font-size:1.15rem;font-weight:800;text-align:center}
.ts-head span{color:#8b97ad;font-weight:600;font-size:.85rem}
.ts-sub{text-align:center;color:#8b97ad;font-size:.82rem;margin-top:4px}
.ts-top{display:flex;align-items:center;gap:18px;margin:18px 0 6px;flex-wrap:wrap;justify-content:center}
.ts-gauge{flex:0 0 auto;text-align:center}
.ts-gauge svg{width:140px;height:140px;transform:rotate(-90deg)}
.ts-gtrack{fill:none;stroke:rgba(255,255,255,.09);stroke-width:9}
.ts-gfill{fill:none;stroke-width:9;stroke-linecap:round;transition:stroke-dashoffset .6s ease}
.ts-gnum{fill:#fff;font-size:30px;font-weight:800;text-anchor:middle;transform:rotate(90deg);transform-origin:60px 60px}
.ts-gof{fill:#8b97ad;font-size:11px;text-anchor:middle;transform:rotate(90deg);transform-origin:60px 60px}
.ts-glabel{margin-top:6px;font-weight:800;font-size:.85rem}
.ts-toptext{flex:1;min-width:220px}
.ts-toptext h3{margin:0 0 6px;color:#fff;font-size:1.05rem}
.ts-toptext p{margin:0;color:#9fb0c9;font-size:.86rem;line-height:1.55}
.ts-rows{display:flex;flex-direction:column;gap:11px}
.ts-rl{display:flex;justify-content:space-between;margin-bottom:5px;color:#c7d1e2;font-size:.9rem}
.ts-rl b{color:#fff}
.ts-bt{height:9px;background:rgba(255,255,255,.07);border-radius:5px;overflow:hidden}
.ts-bf{display:block;height:100%;border-radius:5px;background:#6c5ce7}
.ts-bf.ts-hi{background:#4be08c}.ts-bf.ts-mid{background:#ffb43a}.ts-bf.ts-lo{background:#ff5c7a}.ts-bf.ts-neu{background:#7a869c}
.ts-open{display:inline-block;margin-top:16px;color:#8f7bff;font-weight:700;text-decoration:none}
.ts-open:hover{text-decoration:underline}

/* Tool cross-links (внутрешни линкове между инструментите) + контекст */
.tool-cross{margin-top:22px}
.tool-xgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.tool-xlink{display:block;background:#141a2b;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:13px 15px;text-decoration:none;transition:border-color .15s,transform .12s}
.tool-xlink:hover{border-color:#6c5ce7;transform:translateY(-1px)}
.tool-xlink b{display:block;color:#fff;font-weight:800;font-size:.95rem}
.tool-xlink span{color:#8b97ad;font-size:.8rem}
.tool-ctx{margin-top:16px}
.tool-ctx .tool-xlink{border-color:rgba(108,92,231,.5);background:linear-gradient(180deg,#1b2236,#141a2b)}

/* Trend Strength — табове + списък мачове */
.ts-tabs{display:flex;gap:8px;margin:14px 0 12px;flex-wrap:wrap}
.ts-tab{background:#0f1524;border:1px solid rgba(255,255,255,.1);color:#9fb0c9;font-weight:700;padding:9px 18px;border-radius:999px;cursor:pointer;font-size:.9rem}
.ts-tab:hover{border-color:rgba(255,255,255,.25)}
.ts-tab.on{background:#6c5ce7;color:#fff;border-color:transparent}
.ts-mlist{display:flex;flex-direction:column;gap:8px}
.ts-mcard{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;text-align:left;background:#141a2b;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:12px 15px;cursor:pointer;transition:border-color .15s,transform .12s}
.ts-mcard:hover{border-color:#6c5ce7;transform:translateY(-1px)}
.ts-mteams{color:#fff;font-size:.98rem}
.ts-mteams b{font-weight:800}.ts-mteams i{color:#8b97ad;font-style:normal;font-size:.82rem;margin:0 5px}
.ts-mmeta{color:#8b97ad;font-size:.78rem}
.ts-back{background:transparent;border:0;color:#8f7bff;font-weight:700;cursor:pointer;padding:0;margin:0 0 14px;font-size:.92rem}
.ts-back:hover{text-decoration:underline}

/* Резервиране на мястото на горния банер → без CLS при показване */
.tr-top-promo.tp-reserve{background:transparent!important;box-shadow:none!important;border:0!important;pointer-events:none}
.tr-top-promo.tp-reserve > *{visibility:hidden}
/* Touch targets ≥24px (accessibility) */
.league-fav-btn,.star-btn{min-width:24px;min-height:24px}

/* Втори (бонус) залог в Prediction таба */
.our-choice.oc-second{margin-top:14px;opacity:.97}
.oc-ribbon.oc-ribbon2{background:linear-gradient(135deg,#3a4670,#2b3352)}

/* 1xBet livestream (TV) иконка + livebet tooltip */
.tv-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;color:#7f8ca6;flex:0 0 auto;width:26px;height:26px;cursor:help;outline:none}
.tv-icon:hover,.tv-icon:focus{color:#4be08c}
.status-live-bet{position:relative;cursor:help;outline:none}
.tv-tip{position:absolute;left:calc(100% + 12px);top:50%;transform:translateY(-50%);bottom:auto;z-index:60;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;white-space:normal;width:170px;background:#0d1220;color:#eef2fb;border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:13px 15px;font-size:.8rem;line-height:1.4;box-shadow:0 14px 34px rgba(0,0,0,.55);opacity:0;visibility:hidden;transition:opacity .12s;pointer-events:none;font-weight:700;text-decoration:none;cursor:pointer}
.tv-tip-logo{height:auto;width:88px;max-width:100%;display:block}
.tv-tip-txt{color:#cfe3ff;font-weight:700;font-size:.82rem}
.tv-tip-live{color:#ffb43a;display:block;margin-top:3px;font-size:.76rem}
.tv-icon.tv-open .tv-tip,.tv-icon:hover .tv-tip{pointer-events:auto}
.tv-icon.tv-open .tv-tip{width:200px;padding:16px 18px;gap:10px}
.tv-icon.tv-open .tv-tip-logo{width:118px}
.tv-tip b{color:#4be08c}
.tv-tip::after{content:"";position:absolute;top:50%;left:-6px;transform:translateY(-50%);border:6px solid transparent;border-right-color:#0d1220}
.tv-icon:hover .tv-tip,.tv-icon:focus .tv-tip,.tv-icon.tv-open .tv-tip,.status-live-bet:hover .tv-tip,.status-live-bet:focus .tv-tip{opacity:1;visibility:visible}
.tv-tip-live{color:#ffb43a}
.lb-tip{left:calc(100% + 10px)}
.lb-tip::after{left:-6px}
/* Редуващ се BET ↔ LIVE бутон (при live залози) */
.bet-btn.bet-live{position:relative;overflow:hidden}
.bet-btn.bet-live .bl-a{animation:blSwapA 3s ease-in-out infinite}
.bet-btn.bet-live .bl-b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:10px;letter-spacing:.3px;opacity:0;animation:blSwapB 3s ease-in-out infinite}
.bet-btn.bet-live.is-live{background:linear-gradient(135deg,#e5322b,#b3231d);border-color:#e5322b}
.bet-btn.bet-live.is-soon{background:linear-gradient(135deg,#4a5169,#363c52);border-color:#565d78}
.bet-btn.bet-live.is-soon .bl-b{color:#cfd6e8}
@keyframes blSwapA{0%,40%{opacity:1}50%,92%{opacity:0}100%{opacity:1}}
@keyframes blSwapB{0%,40%{opacity:0}50%,92%{opacity:1}100%{opacity:0}}

/* Спорт-табове (Football / Tennis / Basketball) */
.sport-pill{cursor:pointer;border:1px solid transparent;white-space:nowrap;opacity:.72;transition:opacity .15s,background .15s}
.sport-pill:hover{opacity:1}
.sport-pill.is-active{opacity:1;background:var(--primary);color:#fff;box-shadow:0 6px 18px rgba(108,92,231,.35)}
.sport-emoji{font-size:15px;line-height:1}
.match-row.sport-row .teams{gap:6px}
.sport-odds{display:inline-flex;gap:6px}
/* TV иконка вътре в status-cell (лявата колона) — не чупи grid-а на реда */
.status-cell{position:relative}
.status-cell .tv-icon{width:22px;height:22px;margin:3px auto 0;display:flex}

/* Watch Online (livestream promo в match overview) */
.watch-online{margin:0 0 14px}
.wo-title{font-size:18px;font-weight:900;margin:0 0 10px;color:var(--text)}
.wo-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;background:var(--card-2);border:1px solid var(--line);border-radius:14px;padding:14px}
.wo-media{position:relative;display:flex;align-items:flex-end;min-height:200px;border-radius:12px;overflow:hidden;text-decoration:none;background:linear-gradient(180deg,#1a2233 0%,#0c1220 100%);box-shadow:inset 0 0 120px rgba(0,0,0,.55)}
.wo-media::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 40%,rgba(46,204,113,.18),transparent 60%)}
.wo-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:60px;height:60px;border-radius:50%;background:var(--brand-green,#16a34a);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px rgba(22,163,74,.5);transition:transform .15s}
.wo-media:hover .wo-play{transform:translate(-50%,-50%) scale(1.08)}
.wo-teams{position:relative;z-index:1;padding:12px 14px;color:#fff;font-weight:900;letter-spacing:.5px;font-size:14px}
.wo-body{display:flex;flex-direction:column;justify-content:center}
.wo-lead{margin:0 0 10px;color:var(--text);font-size:15px;line-height:1.5}
.wo-steps{margin:0 0 16px;padding-left:20px;color:var(--muted);font-size:14px;line-height:1.9}
.wo-btn{align-self:flex-start;display:inline-block;background:var(--brand-green,#16a34a);color:#fff;font-weight:800;padding:11px 26px;border-radius:10px;text-decoration:none;box-shadow:0 8px 22px rgba(22,163,74,.4)}
.wo-btn:hover{filter:brightness(1.08)}
@media (max-width:720px){.wo-card{grid-template-columns:1fr}.wo-media{min-height:150px}}

/* MOTD: етикет за пазара (Goals / Corners / Cards) */
.motd-market.has-mk{flex-wrap:wrap}
.mo-mk{flex:0 0 100%;width:100%;display:flex;align-items:center;gap:5px;font-size:11px;font-weight:800;color:var(--muted);margin:0 0 2px;text-transform:uppercase;letter-spacing:.4px}
.mo-mk-ic{font-size:13px}

/* Pinned league — подредба ▲▼ */
.pin-reorder{display:inline-flex;flex-direction:column;gap:1px;margin-right:4px;line-height:1}
.pin-move{background:none;border:0;color:var(--muted);cursor:pointer;font-size:9px;padding:0 3px;line-height:1;border-radius:3px;transition:color .12s,background .12s}
.pin-move:hover{color:var(--primary);background:var(--primary-soft)}
.league-fav-btn.is-fav{color:#ffcf3a}

/* STATS бутон (за завършени мачове — отваря stats таба) */
.bet-btn.stats-btn{background:var(--card-2);border:1px solid var(--line-2);color:var(--text);font-weight:800;letter-spacing:.3px}
.bet-btn.stats-btn:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-soft)}

/* Sidebar sport-nav (Tennis/Basketball emoji icons) */
.sport-nav .tr-ico{display:inline-flex;align-items:center;justify-content:center;font-size:17px;line-height:1}

/* Prediction — Additional info (corners/cards) */
.pred-addl{margin-top:14px;padding-top:12px;border-top:1px dashed var(--line-2)}
.pred-addl-h{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);margin-bottom:8px}
.pred-addl-item{margin:6px 0;color:var(--text);font-size:14px}
.pai-ic{margin-right:5px}
.pai-odd{color:#4be08c;font-weight:800}
.pai-txt{color:var(--muted);font-size:13px;margin-top:3px;line-height:1.5}

.motd-when .motd-countdown{ color:#8b7bff; font-variant-numeric:tabular-nums; letter-spacing:.02em; font-weight:800; }

/* ============================================================
   TipsRex match-stats — двоен бар + shot chart (нов дизайн)
   Цветова схема: home = зелено (--green), away = златисто
   ============================================================ */
.trx-stat-row { margin: 0 0 14px; }
.trx-stat-nums {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; margin: 0 0 5px;
}
.trx-stat-nums .trx-stat-v {
  font-weight: 800; color: var(--text); min-width: 40px;
  font-variant-numeric: tabular-nums;
}
.trx-stat-nums .trx-stat-v:last-child { text-align: right; }
.trx-stat-nums .trx-stat-v.is-high { color: #4fa3f0; }
.trx-stat-nums .trx-stat-v:last-child.is-high { color: #ef5563; }
.trx-stat-nums .trx-stat-label {
  flex: 1 1 auto; text-align: center; color: var(--muted);
  font-weight: 600; font-size: 12.5px; padding: 0 8px;
}
.trx-stat-bars { display: flex; gap: 6px; align-items: center; }
.trx-stat-bar {
  flex: 1 1 50%; height: 7px; border-radius: 5px;
  background: rgba(255,255,255,.06); overflow: hidden;
}
.trx-stat-bar i { display: block; height: 100%; border-radius: 5px; }
.trx-bar-home { transform: scaleX(-1); }              /* home расте отдясно наляво (към центъра) */
.trx-bar-home i { background: linear-gradient(90deg, #1c6fd4, #3f94ef); }
.trx-bar-away i { background: linear-gradient(90deg, #d02f3f, #ef5563); }

/* футболна врата с ударите — template фон + наслагани числа */
.trx-goalframe {
  position: relative; width: 100%; max-width: 100%; margin: 0 auto 18px;
  border-radius: 10px; overflow: hidden; line-height: 0;
}
.trx-gf-bg { width: 100%; height: auto; display: block; }
.trx-gf-num {
  position: absolute; transform: translate(-50%, -50%);
  font-weight: 900; color: #fff; line-height: 1;
  font-size: clamp(14px, 3.0vw, 26px);
  text-shadow: 0 2px 6px rgba(0,0,0,.55);
  font-variant-numeric: tabular-nums;
}
/* позиции спрямо квадратчетата в новия template (проценти) */
.trx-gf-h-shots { left: 40.7%; top: 17.5%; font-size: clamp(14px, 2.8vw, 25px); }
.trx-gf-a-shots { left: 60.1%; top: 17.5%; font-size: clamp(14px, 2.8vw, 25px); }
.trx-gf-h-off { left: 9.5%;  top: 31%; }
.trx-gf-h-blk { left: 9.6%;  top: 59.5%; }
.trx-gf-h-on  { left: 41.7%; top: 51.5%; }
.trx-gf-a-on  { left: 58%;   top: 51.5%; }
.trx-gf-a-off { left: 90.3%; top: 30%; }
.trx-gf-a-blk { left: 90.1%; top: 59.5%; }
.trx-gf-num-sm { font-size: clamp(10px, 1.9vw, 16px); }
.trx-gf-h-ylw { left: 36%;   top: 76.5%; color: #1a1200; text-shadow: 0 1px 2px rgba(255,255,255,.3); }
.trx-gf-h-red { left: 46%;   top: 76.5%; }
.trx-gf-a-ylw { left: 57%;   top: 76.5%; color: #1a1200; text-shadow: 0 1px 2px rgba(255,255,255,.3); }
.trx-gf-a-red { left: 66.8%; top: 76.5%; }
.trx-gf-h-cor { left: 42%;   top: 89.7%; font-size: clamp(13px, 2.6vw, 23px); }
.trx-gf-a-cor { left: 58.2%; top: 89.7%; font-size: clamp(13px, 2.6vw, 23px); }
.trx-gf-tot-cor { left: 52.5%; top: 93.5%; font-size: clamp(9px, 1.6vw, 13px); color: #b4d63e; }

/* Match statistics горе, Key moments отдолу (вертикално, вместо split) */
.match-stacked-events { display: flex; flex-direction: column; gap: 28px; }
.match-stacked-events .stats-side,
.match-stacked-events .moments-side { width: 100%; max-width: 100%; }
.match-stacked-events .stats-side { order: 1; }
.match-stacked-events .moments-side { order: 2; }

/* Звезда за favorite — горе вдясно в ъгъла на hero-то */
.match-hero-pro { position: relative; }
.match-hero-fav-corner {
  position: absolute; top: 10px; right: 12px; z-index: 3;
}
.match-hero-fav-corner .fav-star {
  background: none; border: 0; cursor: pointer; padding: 4px;
  font-size: 22px; color: #6b7896; line-height: 1;
  transition: color .15s, transform .15s;
}
.match-hero-fav-corner .fav-star:hover { transform: scale(1.15); color: #e0b341; }
.match-hero-fav-corner .fav-star.is-fav { color: #e0b341; }

/* Компактен Venue / Weather / Referee ред в hero-то */
.match-hero-info {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  margin: 12px auto 0; max-width: 620px; padding: 12px 8px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}
.match-hero-info .hero-info-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: #aeb8cc;
}
.match-hero-info .hero-info-item i { font-style: normal; font-size: 14px; opacity: .9; }

/* ============================================================
   Key moments — ВЕРТИКАЛНА ОС (Вариант A)
   home вляво / away вдясно. Всичко се вижда, без скрол.
   ============================================================ */
.trx-vtl { position: relative; padding: 4px 0; }
.trx-vtl::before {
  content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, #7d9bd4, #17b978, #e0b341);
  transform: translateX(-50%); border-radius: 2px;
}
/* заглавие на период */
.vtl-phead { position: relative; text-align: center; margin: 16px 0 10px; z-index: 2; }
.vtl-phead span {
  display: inline-block; background: #0b0f1a; padding: 3px 14px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.08);
}
/* HT / FT маркер */
.vtl-marker { position: relative; text-align: center; margin: 14px 0; z-index: 2; }
.vtl-marker-pill {
  display: inline-block; background: #0d1220; padding: 8px 20px;
  font-size: 15px; font-weight: 800; letter-spacing: .4px;
  border-radius: 22px; border: 2px solid;
}
.vtl-marker-pill b { font-size: 16px; }
/* ред със събитие */
.vtl-row { position: relative; display: grid; grid-template-columns: 1fr 4px 1fr; align-items: center; margin: 8px 0; min-height: 40px; }
.vtl-side { box-sizing: border-box; display: flex; align-items: center; min-width: 0; gap: 6px; }
/* home: всичко в лявата колона, подравнено вдясно (до линията) */
.vtl-row.is-home .vtl-side.vtl-left { grid-column: 1; justify-content: flex-end; padding-right: 10px; }
.vtl-row.is-home .vtl-side.vtl-right { grid-column: 3; }
/* away: всичко в дясната колона, подравнено вляво (до линията) */
.vtl-row.is-away .vtl-side.vtl-left { grid-column: 1; }
.vtl-row.is-away .vtl-side.vtl-right { grid-column: 3; justify-content: flex-start; padding-left: 10px; }
.vtl-row .vtl-cen { grid-column: 2; }
.vtl-row .vtl-dot { flex: 0 0 auto; z-index: 2; }
.vtl-row .vtl-min { flex: 0 0 auto; z-index: 2; }
.vtl-dot {
  width: 30px; height: 30px; background: #101623; border: 2px solid #888;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.vtl-card-icon {
  display: inline-block; width: 11px; height: 15px; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3);
}
.vtl-min { font-size: 14px; font-weight: 800; padding: 0 6px; white-space: nowrap; }
.vtl-card {
  display: inline-block; max-width: 100%; box-sizing: border-box;
  background: #141d2e; border: 1px solid #444; border-radius: 9px;
  padding: 7px 11px; word-break: break-word;
}
.vtl-row.is-home .vtl-card { border-right-width: 3px; text-align: right; }
.vtl-row.is-away .vtl-card { border-left-width: 3px; text-align: left; }
.vtl-score { font-size: 12px; font-weight: 800; display: block; margin-bottom: 2px; }
.vtl-name { color: #eef2fb; font-size: 14px; font-weight: 700; }
.vtl-detail { color: #7a8699; font-size: 12px; margin-top: 2px; }

/* mobile: по-тесни странични отстъпи */
@media (max-width: 560px) {
  .vtl-row { grid-template-columns: 1fr 4px 1fr; }
  .vtl-name { font-size: 12px; }
  .vtl-detail { font-size: 10px; }
}

/* Match Timeline — отделен блок (не залепен за stats) */
.trx-kmoments {
  background: var(--panel, #101623);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 16px 16px 22px;
  margin-top: 4px;
}
.trx-kmoments .panel-title-row h3 { font-size: 17px; }
.trx-kmoments .trx-vtl { overflow: visible; }

/* override на старите ограничения — timeline расте според събитията, без скрол/рязане */
.trx-kmoments.key-moments-panel {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  display: block !important;
}
.trx-kmoments .trx-vtl,
.trx-kmoments .trx-tl-periods { overflow: visible !important; max-height: none !important; }

/* Период селектор за статистиките (Overall / 1st Half / 2nd Half) */
.trx-stats-period { position: relative; cursor: pointer; user-select: none; }
.trx-period-menu {
  position: absolute; top: 100%; right: 0; margin-top: 6px; z-index: 20;
  background: #151c2b; border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 4px; min-width: 120px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.trx-period-menu span {
  display: block; padding: 7px 12px; font-size: 12px; color: #c3ccdb;
  border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.trx-period-menu span:hover { background: rgba(255,255,255,.06); }
.trx-period-menu span.is-active { color: #17b978; font-weight: 700; background: rgba(23,185,120,.1); }

/* Единичен централен бар за статистиките (Вариант 2) */
.trx-stat-single {
  display: flex; height: 8px; border-radius: 5px; overflow: hidden;
  background: #1a2233;
}
.trx-stat-single i { display: block; height: 100%; }
.trx-ss-home { background: linear-gradient(90deg, #1c6fd4, #3f94ef); }
.trx-ss-away { background: linear-gradient(90deg, #ef5563, #d02f3f); }

/* Икони на групите статистики */
.stats-dark-group h4 { display: flex; align-items: center; gap: 8px; }
.trx-grp-ico {
  width: 24px; height: 24px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; background: rgba(255,255,255,.06);
}

/* Lineups — под-табове (Formations / Starting lineups / Substitute players) */
.trx-lineups h3 { margin-bottom: 14px; }
.lu-subtabs {
  display: flex; gap: 4px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06); border-radius: 12px;
  padding: 4px; margin-bottom: 18px; overflow-x: auto;
}
.lu-subtab {
  flex: 1 1 auto; white-space: nowrap; padding: 9px 14px;
  background: transparent; border: 0; border-radius: 9px;
  color: #8b94a8; font-size: 12.5px; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: .3px; transition: all .15s;
}
.lu-subtab:hover:not(.is-disabled) { color: #c3ccdb; background: rgba(255,255,255,.04); }
.lu-subtab.is-active { background: var(--card-2, #1c2536); color: #eef2fb; }
.lu-subtab.is-disabled { opacity: .35; cursor: not-allowed; }
.lu-subbody { min-height: 40px; }

/* Miss the match — контузени/липсващи играчи */
.inj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inj-col {
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; padding: 10px;
}
.inj-col-head {
  font-size: 12px; font-weight: 800; color: #c3ccdb; text-transform: uppercase;
  letter-spacing: .3px; padding: 2px 4px 10px; border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 8px;
}
.inj-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.inj-photo {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  background: #1a2233; flex: 0 0 34px;
}
.inj-photo-ph { display: inline-block; }
.inj-info { display: flex; flex-direction: column; min-width: 0; }
.inj-name { color: #eef2fb; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inj-reason { color: #e0813f; font-size: 11px; }
.inj-empty { color: #6b7688; font-size: 12px; padding: 10px 4px; text-align: center; }

@media (max-width: 560px) {
  .inj-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   H2H v2 — донати + форма + метрики (нов дизайн)
   ============================================================ */
.h2h-v2 h3 { margin-bottom: 16px; }

/* три донатa */
.h2h-donuts { display: flex; gap: 12px; margin-bottom: 18px; }
.h2h-donut {
  flex: 1; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 12px 6px; text-align: center;
}
.h2h-donut svg { display: block; margin: 0 auto 6px; }
.h2h-donut-label {
  color: #c3ccdb; font-size: 11px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* форма (последни 5) */
.h2h-form-block {
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 14px; margin-bottom: 16px;
}
.h2h-form-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.h2h-form-head span { font-size: 12px; font-weight: 800; }
.h2h-form-title {
  color: #8b94a8 !important; font-size: 11px !important; font-weight: 700 !important;
  text-transform: uppercase; letter-spacing: .5px;
}
.h2h-form-rows { display: flex; flex-direction: column; gap: 8px; }
.h2h-form-line { display: flex; gap: 6px; }
.h2h-form-line.is-home { justify-content: flex-start; }
.h2h-form-line.is-away { justify-content: flex-end; }
.h2h-form-badge {
  width: 26px; height: 26px; border-radius: 6px; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}

/* метрики (2x2) */
.h2h-metrics2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.h2h-metric2 {
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 10px;
}
.h2h-metric2-ico { font-size: 20px; }
.h2h-metric2-val { color: #eef2fb; font-size: 17px; font-weight: 800; }
.h2h-metric2-lbl { color: #8b94a8; font-size: 10px; }

/* голове average бар */
.h2h-goals2 {
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 14px; margin-bottom: 16px;
}
.h2h-goals2-title {
  text-align: center; color: #8b94a8; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px; margin-bottom: 10px;
}
.h2h-goals2-row { display: flex; align-items: center; gap: 12px; }
.h2h-goals2-row > span { font-size: 20px; font-weight: 800; min-width: 40px; }
.h2h-goals2-row > span:first-child { text-align: right; }
.h2h-goals2-bar { flex: 1; display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: #1a2233; }

/* recent meetings v2 */
.h2h-meet2 {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 5px;
  background: #141d2e; border-radius: 9px; border-left: 3px solid #888;
}
.h2h-meet2-date { color: #6b7688; font-size: 11px; min-width: 74px; }
.h2h-meet2-home { flex: 1; text-align: right; color: #9aa4b6; font-size: 13px; }
.h2h-meet2-away { flex: 1; color: #9aa4b6; font-size: 13px; }
.h2h-meet2-home.is-win, .h2h-meet2-away.is-win { color: #eef2fb; font-weight: 700; }
.h2h-meet2-score {
  background: #0d1220; border-radius: 6px; padding: 4px 11px; font-size: 14px;
  font-weight: 800; color: #eef2fb; min-width: 46px; text-align: center;
}

@media (max-width: 560px) {
  .h2h-donut svg { width: 72px; height: 72px; }
  .h2h-donut-label { font-size: 10px; }
  .h2h-metrics2 { grid-template-columns: 1fr; }
}

/* Голови метрики в comparison (Over 2.5 / Over 1.5 / Under 2.5 / Clean sheets) */
.compare-goals-metrics {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07);
}
.cgm-title {
  color: #8b94a8; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; text-align: center; margin-bottom: 12px;
}
.cgm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cgm-item {
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; padding: 10px 12px;
}
.cgm-label { color: #c3ccdb; font-size: 12px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.cgm-vals { display: flex; justify-content: space-between; margin-bottom: 6px; }
.cgm-home, .cgm-away { display: flex; flex-direction: column; align-items: center; }
.cgm-home b { color: #7d66ff; font-size: 18px; font-weight: 800; line-height: 1; }
.cgm-away b { color: #17b978; font-size: 18px; font-weight: 800; line-height: 1; }
.cgm-vals i { color: #6b7688; font-size: 10px; font-style: normal; margin-top: 2px; }
.cgm-bars { display: flex; gap: 6px; }
.cgm-bar { flex: 1; height: 4px; border-radius: 3px; background: #1a2233; overflow: hidden; }
.cgm-h { display: block; height: 100%; background: #7d66ff; border-radius: 3px; }
.cgm-a { display: block; height: 100%; background: #17b978; border-radius: 3px; }

@media (max-width: 480px) { .cgm-grid { grid-template-columns: 1fr; } }

/* Модерни стат барове в comparison (pill за водещия + централен бар) */
.cmp-stat { margin-bottom: 12px; }
.cmp-stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; gap: 8px; }
.cmp-pill {
  min-width: 46px; text-align: center; font-weight: 800; font-size: 13px;
  padding: 3px 8px; border-radius: 7px; background: #1a2233; color: #9aa4b6;
}
.cmp-pill.is-home-win { background: #7d66ff; color: #fff; }
.cmp-pill.is-away-win { background: #17b978; color: #fff; }
.cmp-stat-lbl { flex: 1; text-align: center; color: #8b94a8; font-size: 12px; font-weight: 600; }
.cmp-stat-bar { display: flex; height: 6px; border-radius: 4px; overflow: hidden; background: #1a2233; }
.cmp-stat-bar i { display: block; height: 100%; }
.cmp-stat-bar i:first-child { background: #4a3d8f; }
.cmp-stat-bar i:last-child { background: #166148; }
.cmp-stat-bar i.hi-h { background: #7d66ff; }
.cmp-stat-bar i.hi-a { background: #17b978; }

/* Goal difference карти (модерни, като визуализацията) */
.cmp-gd-cards { display: flex; gap: 10px; margin: 16px 0; }
.cmp-gd-card {
  flex: 1; border-radius: 12px; padding: 14px 12px; text-align: center;
}
.cmp-gd-card.is-home { background: rgba(125,102,255,.08); border: 1px solid rgba(125,102,255,.25); }
.cmp-gd-card.is-away { background: rgba(23,185,120,.08); border: 1px solid rgba(23,185,120,.25); }
.cmp-gd-big { font-size: 26px; font-weight: 800; line-height: 1; }
.cmp-gd-card.is-home .cmp-gd-big { color: #7d66ff; }
.cmp-gd-card.is-away .cmp-gd-big { color: #17b978; }
.cmp-gd-sub { color: #8b94a8; font-size: 10px; margin-top: 3px; }
.cmp-gd-row { display: flex; justify-content: center; gap: 14px; margin-top: 9px; font-size: 12px; color: #c3ccdb; }
.cmp-gd-row b { color: #eef2fb; }

/* Venue dropdown (Home/Away/All) */
.cmp-venue-sel {
  background: #1a2233; border: 1px solid rgba(255,255,255,.1); color: #eef2fb;
  border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.cmp-venue-sel:focus { outline: none; border-color: #7d66ff; }

/* ============================================================
   Compact comparison layout (Image 1 стил)
   ============================================================ */
/* W/D/L ред: донат | числа | донат */
.cmpc-wdl {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 14px; margin-bottom: 16px;
}
.cmpc-donut { display: flex; justify-content: center; }
.cmpc-wdl-mid { display: flex; flex-direction: column; gap: 8px; }
.cmpc-wdl-row {
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center;
  font-size: 13px;
}
.cmpc-wdl-row .h { color: #7d66ff; font-weight: 800; text-align: left; }
.cmpc-wdl-row .a { color: #17b978; font-weight: 800; text-align: right; }
.cmpc-wdl-row span { color: #8b94a8; font-size: 12px; font-weight: 600; text-align: center; }

/* goal-diff ред: кръгче | scored/conceded | labels | scored/conceded | кръгче */
.cmpc-gd {
  display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center;
  gap: 10px; margin-bottom: 18px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cmpc-gd-circle {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 18px; font-weight: 800; flex: 0 0 58px;
}
.cmpc-gd-circle.is-home { border: 3px solid #7d66ff; color: #7d66ff; }
.cmpc-gd-circle.is-away { border: 3px solid #17b978; color: #17b978; }
.cmpc-gd-side { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #8b94a8; }
.cmpc-gd-side.is-home { text-align: left; }
.cmpc-gd-side.is-away { text-align: right; }
.cmpc-gd-side b { color: #eef2fb; font-size: 13px; }
.cmpc-gd-mid { text-align: center; }
.cmpc-gd-mid b { display: block; color: #c3ccdb; font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.cmpc-gd-mid span { display: block; color: #6b7688; font-size: 10px; line-height: 1.5; }

@media (max-width: 560px) {
  .cmpc-donut svg { width: 62px; height: 62px; }
  .cmpc-gd-circle { width: 48px; height: 48px; flex-basis: 48px; font-size: 15px; }
  .cmpc-gd-side { font-size: 10px; }
  .cmpc-gd { gap: 6px; }
}

/* Голови метрики — КОМПАКТНИ редове (по-плътно) */
.cgm-rows { display: flex; flex-direction: column; gap: 10px; }
.cgm-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 10px; row-gap: 5px;
}
.cgm-r-h, .cgm-r-a { display: flex; align-items: baseline; gap: 5px; }
.cgm-r-a { justify-content: flex-end; }
.cgm-r-h b { color: #7d66ff; font-size: 15px; font-weight: 800; }
.cgm-r-a b { color: #17b978; font-size: 15px; font-weight: 800; }
.cgm-r-h i, .cgm-r-a i { color: #6b7688; font-size: 10px; font-style: normal; }
.cgm-r-lbl { color: #8b94a8; font-size: 12px; font-weight: 600; text-align: center; }
.cgm-r-bar {
  grid-column: 1 / -1; display: flex; height: 5px; border-radius: 3px;
  overflow: hidden; background: #1a2233;
}
.cgm-r-bar i { display: block; height: 100%; }
.cgm-r-bar i.h { background: #7d66ff; }
.cgm-r-bar i.a { background: #17b978; }
