/**
 * דף כדורגל ראשי – כותרת (מדינה · ליגה · עונה), בחירת תאריך, טבלת משחקים
 */

.football-choose-league {
  padding: var(--space-y, 32px) var(--space-x, 24px);
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin: var(--space-y-sm, 24px) 0;
}

/* ========== בלוק משחק בודד (football.php?fixture=X) ========== */
.football-single-match {
  width: 100%;
  max-width: 100%;
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: visible;
  padding: 0;
  box-sizing: border-box;
}

/* ================================================================
 *  משחק בודד — כותרת דביקה + כיווץ רציף מקושר לגלילה
 *  --dock-progress (0 = פתוח מלא · 1 = מכווץ) מוזרק מ-JS לפי הגלילה.
 *  הכל אינטרפולציה רציפה ב-calc(), בלי transition על מאפיינים
 *  מקושרי-גלילה — כדי למנוע lag / קפיצות. מעבר חלק לחלוטין.
 * ================================================================ */

/* כותרת עליונה (ליגה + תאריך) — נגללת ונעלמת מעל הכותרת הדביקה */
.football-single-match-lead {
  background: #1a1a1e;
}

.football-single-match-sticky-head {
  position: sticky;
  top: var(--header-sticky-top, var(--header-sidebar-top));
  z-index: 38;
  display: flex;
  flex-direction: column;
  background: #1a1a1e;
  --dock-p: var(--dock-progress, 0);
  box-sizing: border-box;
}

/* שורת טאבי המשחק + שורת הכל/שערים — נשארות בגודל מלא ודבוקות */
.football-single-match-sticky-head .football-single-match-tablist,
.football-odds-market-tabs--sticky-anchor,
#football-odds-market-tabs-sticky {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

#football-odds-market-tabs-sticky[hidden] {
  display: none !important;
}

/* לפטופ+: כרטיס מרחף — פינות + צל מופיעים בהדרגה עם הכיווץ (רציף, בלי קפיצה) */
@media (min-width: 769px) {
  .football-single-match-sticky-head {
    overflow: clip;
    border-radius: calc(14px * var(--dock-p));
    box-shadow:
      0 calc(18px * var(--dock-p)) calc(44px * var(--dock-p)) rgba(0, 0, 0, calc(0.5 * var(--dock-p)));
  }
}

.football-single-match-hero {
  position: relative;
  background: #1a1a1e;
}

/* דף משחק בודד: לא לחתוך position:sticky/fixed של הכותרת */
body.football-site-page:has(#football-single-match) .main,
body.football-site-page:has(#football-single-match) .page-middle {
  overflow: visible;
}

/* מובייל: overflow-x:hidden על html/body הופך אותם ל-scroll-container ושובר position:sticky.
   clip מונע גלילה אופקית בלי ליצור scroll-container — כך הכותרת נדבקת כראוי. */
@media (max-width: 768px) {
  html:has(#football-single-match),
  body.football-site-page:has(#football-single-match) {
    overflow-x: clip;
    overflow-y: visible;
  }
}

.football-single-match-meta {
  padding: 14px 18px;
  padding-inline-end: 104px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.football-favorite-toggle,
.football-share-toggle {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .16s ease, transform .16s ease, filter .16s ease;
  padding: 0;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}

.football-favorite-toggle:hover,
.football-favorite-toggle:focus-visible,
.football-share-toggle:hover,
.football-share-toggle:focus-visible {
  color: #facc15;
  outline: none;
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.28));
}

.football-favorite-toggle.is-favorite {
  color: #facc15;
  filter: drop-shadow(0 4px 10px rgba(250, 204, 21, 0.22));
}

.football-favorite-toggle.is-loading {
  pointer-events: none;
  opacity: .7;
}

.football-favorite-star,
.football-share-icon {
  display: block;
  width: 1.28rem;
  height: 1.28rem;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linejoin: round;
  pointer-events: none;
}

.football-favorite-toggle--row {
  width: 26px;
  height: 26px;
}

.football-single-match-favorite {
  position: absolute;
  inset-inline-end: 14px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.football-favorite-toggle--single,
.football-share-toggle--single {
  width: 34px;
  height: 34px;
}

.football-favorite-toggle--single .football-favorite-star,
.football-share-toggle--single .football-share-icon {
  width: 1.55rem;
  height: 1.55rem;
}

.football-share-toggle {
  color: rgba(255, 255, 255, 0.6);
}
.football-share-toggle:hover,
.football-share-toggle:focus-visible {
  color: #fde68a;
}
.football-share-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-menu-favorite-star {
  color: #facc15;
  display: block;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.football-single-match-league {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.875rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.6);
}

.football-single-match-league-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.football-favorites-shell {
  display: grid;
  gap: 18px;
}

/* כרטיסה אחת עם כותרת־על כמו בלוק לייב (דף מועדפים) */
body.football-favorites-page .football-favorites-shell--unified,
body.site-favorites-page .football-favorites-shell--unified {
  --fav-lb-shell: linear-gradient(180deg, rgba(22, 26, 40, 0.98) 0%, rgba(14, 16, 26, 0.99) 52%, rgba(10, 12, 20, 1) 100%);
  --fav-lb-dock: linear-gradient(180deg, rgba(20, 24, 38, 0.96) 0%, rgba(8, 10, 18, 0.98) 100%);
  --fav-lb-border: rgba(255, 255, 255, 0.1);
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--fav-lb-border);
  background: var(--fav-lb-shell);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

body.football-favorites-page .football-favorites-shell--unified > .football-favorites-section + .football-favorites-section,
body.site-favorites-page .football-favorites-shell--unified > .football-favorites-section + .football-favorites-section {
  border-top: 0;
}

body.football-favorites-page .football-favorites-shell--unified > .football-favorites-section .football-live-all-section,
body.site-favorites-page .football-favorites-shell--unified > .football-favorites-section .football-live-all-section,
body.site-favorites-page .football-favorites-shell--unified > .football-favorites-section .basketball-live-all-section {
  margin: 0;
  border-radius: 0;
  border: 0;
}

body.football-favorites-page .football-favorites-shell--unified .football-favorites-section--live,
body.site-favorites-page .football-favorites-shell--unified .football-favorites-section--live {
  gap: 0;
}

/* סרגל הכותרת כבר עם border-bottom — בלי קו כפול מעל תוכן הלייב */
body.football-favorites-page .football-favorites-shell--unified .football-favorites-live-block--no-section-title #football-favorites-live-all-content,
body.site-favorites-page .football-favorites-shell--unified .football-favorites-live-block--no-section-title #football-favorites-live-all-content,
body.site-favorites-page .football-favorites-shell--unified .basketball-favorites-live-block--no-section-title #basketball-favorites-live-all-content {
  border-top: none;
}

.football-favorites-header {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(250, 204, 21, 0.22);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(255, 255, 255, 0.045));
}

body.football-favorites-page .football-favorites-header--dock,
body.site-favorites-page .football-favorites-header--dock {
  margin: 0;
  padding: 14px 18px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--fav-lb-dock, linear-gradient(180deg, rgba(20, 24, 38, 0.96) 0%, rgba(8, 10, 18, 0.98) 100%));
  box-shadow: none;
}

.football-favorites-header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  direction: rtl;
  text-align: start;
}

.football-favorites-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.football-favorites-title {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  color: #fff;
  font-size: clamp(1.12rem, 2.2vw, 1.45rem);
  font-weight: 800;
  text-align: start;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.football-favorites-header-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: #facc15;
  border: 0;
  filter: drop-shadow(0 4px 12px rgba(250, 204, 21, 0.2));
}

.football-favorites-header-icon .football-favorite-star {
  width: 2rem;
  height: 2rem;
}

.football-favorites-sport-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.football-favorites-sport-badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

.football-favorites-section {
  display: grid;
  gap: 10px;
}

body.football-favorites-page .football-favorites-section[hidden],
body.site-favorites-page .football-favorites-section[hidden] {
  display: none !important;
}

.football-favorites-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.football-favorites-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  padding: 6px 10px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.football-favorites-tab strong {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.football-favorites-tab:hover,
.football-favorites-tab:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.football-favorites-tab.is-active {
  color: #fff;
  background: rgba(250, 204, 21, 0.1);
}

.football-favorites-tab.is-active strong {
  background: rgba(250, 204, 21, 0.2);
  color: #facc15;
}

.football-empty-state--compact {
  margin: 0;
  border-radius: 0;
  border-inline: 0;
}

.unified-favorites-sport-heading {
  margin: 1.1rem 14px 6px;
  padding: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.site-favorites-page .football-favorites-shell--unified > .football-favorites-section > .unified-favorites-sport-heading:first-child {
  margin-top: 12px;
}

.site-favorites-page .unified-favorites-empty-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.football-favorites-section-title {
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: 1rem;
  font-weight: 800;
}

.football-favorites-list {
  margin: 0;
}

.football-favorites-row .football-live-book-meta {
  gap: 4px;
}

@media (max-width: 640px) {
  /* דף מועדפים: כותרת + טאבים — שתי שורות נפרדות, בלי שבירות אקראיות בשורה אחת */
  body.football-favorites-page .football-favorites-header-inner,
  body.site-favorites-page .football-favorites-header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  body.football-favorites-page .football-favorites-heading,
  body.site-favorites-page .football-favorites-heading {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
  }

  body.football-favorites-page .football-favorites-title,
  body.site-favorites-page .football-favorites-title {
    font-size: clamp(0.9rem, 4vw, 1.05rem);
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
  }

  body.football-favorites-page .football-favorites-header-icon,
  body.site-favorites-page .football-favorites-header-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  body.football-favorites-page .football-favorites-header-icon .football-favorite-star,
  body.site-favorites-page .football-favorites-header-icon .football-favorite-star {
    width: 1.45rem;
    height: 1.45rem;
  }

  body.football-favorites-page .football-favorites-sport-badge,
  body.site-favorites-page .football-favorites-sport-badge {
    padding: 3px 6px;
    font-size: 0.61rem;
    gap: 3px;
    flex-shrink: 1;
    min-width: 0;
    margin-inline-start: auto;
  }

  body.football-favorites-page .football-favorites-sport-badge > span,
  body.site-favorites-page .football-favorites-sport-badge > span {
    min-width: 0;
    max-width: 28vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.football-favorites-page .football-favorites-sport-badge img,
  body.site-favorites-page .football-favorites-sport-badge img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  body.football-favorites-page .football-favorites-tabs,
  body.site-favorites-page .football-favorites-tabs {
    margin-inline-start: 0;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
    padding: 2px;
    gap: 2px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.football-favorites-page .football-favorites-tabs::-webkit-scrollbar,
  body.site-favorites-page .football-favorites-tabs::-webkit-scrollbar {
    height: 0;
    width: 0;
  }

  body.football-favorites-page .football-favorites-tab,
  body.site-favorites-page .football-favorites-tab {
    flex: 0 0 auto;
    padding: 5px 7px;
    font-size: 0.62rem;
    gap: 3px;
  }

  body.football-favorites-page .football-favorites-tab strong,
  body.site-favorites-page .football-favorites-tab strong {
    min-width: 14px;
    height: 14px;
    font-size: 0.54rem;
    padding: 0 3px;
  }

  .football-favorite-toggle {
    width: 30px;
    height: 30px;
  }

  .football-favorite-star,
  .football-share-icon {
    width: 1.18rem;
    height: 1.18rem;
  }

  .football-favorite-toggle--row {
    width: 24px;
    height: 24px;
  }

  .football-favorite-toggle--single,
  .football-share-toggle--single {
    width: 32px;
    height: 32px;
  }

  .football-single-match-favorite {
    inset-inline-end: 10px;
    top: 10px;
  }

  .football-single-match-meta {
    padding: 12px 14px;
    padding-inline-end: 84px;
  }

  .football-single-match-league {
    gap: 11px;
  }

  .football-single-match-league-name {
    font-size: 0.88rem;
  }

  .football-single-match-league-logo {
    width: 44px;
    height: 44px;
    padding: 5px;
    border-radius: 10px;
  }

  .football-single-match-country {
    font-size: 0.8rem;
  }

  .football-single-match-datetime {
    margin-top: 9px;
    padding: 4px 9px;
    font-size: 0.72rem;
  }

  body.football-favorites-page .football-favorites-header--dock,
  body.site-favorites-page .football-favorites-header--dock {
    padding: 10px 12px;
  }

  .football-favorites-header {
    padding: 14px;
  }
}

@media (max-width: 380px) {
  body.football-favorites-page .football-favorites-title,
  body.site-favorites-page .football-favorites-title {
    font-size: 0.86rem;
  }

  body.football-favorites-page .football-favorites-sport-badge > span,
  body.site-favorites-page .football-favorites-sport-badge > span {
    max-width: 22vw;
  }

  body.football-favorites-page .football-favorites-tab,
  body.site-favorites-page .football-favorites-tab {
    padding: 5px 5px;
    font-size: 0.58rem;
  }

  body.football-favorites-page .football-favorites-tab strong,
  body.site-favorites-page .football-favorites-tab strong {
    min-width: 13px;
    height: 13px;
    font-size: 0.52rem;
  }
}

.football-single-match-league-logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  padding: 6px;
  background: #f3f5f9;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
  flex: 0 0 auto;
}

.football-single-match-league-name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
}

.football-single-match-country {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.58);
}

.football-single-match-season {
  font-weight: 500;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.4px;
}

.football-single-match-league-sep {
  color: rgba(255, 255, 255, 0.26);
  font-weight: 400;
}

.football-single-match-country-flag {
  display: inline-block;
  vertical-align: middle;
  width: 15px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.football-single-match-datetime-row {
  display: block;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.football-single-match-datetime {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  background: none;
  border: 0;
}

.football-single-match-datetime-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.football-single-match-datetime-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.45);
}

.football-single-match-datetime-value {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.football-single-match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  min-height: 120px;
}

.football-single-match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.football-single-match-team--away {
  direction: rtl;
}

.football-single-match-team-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.football-single-match-team-logo--placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.football-single-match-team-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  word-break: break-word;
}

.football-single-match-team-side {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -4px;
  padding: 2px 8px;
  border: 1px solid rgba(245, 197, 24, 0.18);
  border-radius: 999px;
  background: rgba(245, 197, 24, 0.08);
  color: rgba(245, 197, 24, 0.88);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.football-single-match-team-score {
  display: block;
  margin-top: 6px;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.football-single-match-team-penalty {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
}

.football-single-match-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  min-width: 100px;
  direction: rtl;
}

.football-single-match-vs {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}

.football-single-match-vs--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.football-single-match-live-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 0.05em;
}

.football-single-match-minute {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.football-single-match-score {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.football-single-match-score--split {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.football-single-match-score-sep {
  opacity: 0.85;
}

.football-single-match-penalty-score {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fbbf24;
  direction: ltr;
  unicode-bidi: isolate;
}

.football-single-match-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.football-single-match-status--live-1h,
.football-single-match-status--live-2h,
.football-single-match-status--live-ht,
.football-single-match-status--live-et,
.football-single-match-status--live-bt,
.football-single-match-status--live-p {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.football-single-match-status--ft,
.football-single-match-status--aet,
.football-single-match-status--pen {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

/* טאבים — שורת הטאבים בתוך המעטפת הדביקה; התוכן למטה */
.football-single-match-tabs {
  background: rgba(0, 0, 0, 0.15);
}

.football-single-match-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a1a1e;
  position: relative;
  z-index: 2;
}

.football-single-match-tab {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.football-single-match-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 16px;
  padding: 0 5px;
  border-radius: 0;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .88);
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: none;
  white-space: nowrap;
}

.football-single-match-tab.is-active .football-single-match-tab-count {
  background: rgba(0, 0, 0, .36);
  border-color: rgba(255, 255, 255, .12);
  filter: none;
}

.football-single-match-tab:hover {
  color: rgba(255, 255, 255, 0.9);
}

.football-single-match-tab.is-active {
  color: #fff;
  border-bottom-color: var(--accent-sport, #f5c518);
  background: rgba(255, 255, 255, 0.04);
}

.football-single-match-panels {
  padding: 0;
}

.football-single-match-panel {
  padding-inline: 18px;
  padding-block: 20px;
  min-height: 80px;
  overflow: visible;
}

/* הימורים זמינים — שווקים מקצה לקצה בתוך הטאב */
#football-tab-bets.football-single-match-panel {
  padding-inline: 0;
  padding-block: 0;
}
#football-tab-bets .football-single-fixture-slip-root {
  padding: 0;
  margin: 0;
}
#football-tab-bets .football-single-match-placeholder {
  padding: 16px 18px;
}

.football-single-match-panel:not(.is-active) {
  display: none;
}

.football-single-match-panel[hidden] {
  display: none !important;
}

.football-single-match-panel.is-active {
  display: block;
}

.football-single-match-placeholder {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ========== סטטיסטיקות משחק – בחירת מחצית + מקטעים, שני צדדים + פס מילויים ========== */
.football-stats-half-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.football-stats-half-btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.football-stats-half-btn:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}
.football-stats-half-btn.is-active {
  color: #1a1a1a;
  background: var(--accent-sport, #f5c518);
  border-color: rgba(245, 197, 24, 0.8);
}
.football-stats-section {
  display: none;
  margin-bottom: 0;
}
.football-stats-section.is-active {
  display: block;
}
.football-stats-no-data {
  margin: 0;
  padding: 20px 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.football-stats-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 14px 0;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  border-inline-start: 4px solid var(--accent-sport, #f5c518);
}

.football-stats-with-sides {
  width: 100%;
  padding: 0 4px;
}

.football-stats-headers {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 18px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.football-stats-side {
  min-width: 0;
}
.football-stats-side--home {
  text-align: right;
}
.football-stats-side--away {
  text-align: left;
  direction: ltr;
}

.football-stats-side-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  min-height: 48px;
  border-radius: 8px;
  border-bottom: 2px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.football-stats-side--home .football-stats-side-header {
  flex-direction: row;
  justify-content: flex-start;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.18) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(245, 197, 24, 0.1) 100%);
  border-bottom-color: rgba(245, 197, 24, 0.35);
}
.football-stats-side--away .football-stats-side-header {
  flex-direction: row;
  justify-content: flex-start;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(148, 163, 184, 0.1) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.football-stats-side-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}
.football-stats-side-logo--placeholder {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-block;
}

.football-stats-side-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.football-stats-side-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.football-stats-side-badge--home {
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.95) 0%, rgba(210, 160, 15, 0.95) 100%);
  color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.football-stats-side-badge--away {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(203, 213, 225, 0.9) 100%);
  color: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.football-stats-spine {
  width: 3px;
  min-width: 3px;
  min-height: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
  margin-inline: 2px;
  align-self: stretch;
  border-radius: 2px;
}

.football-stats-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.football-stats-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 12px;
  align-items: center;
  min-height: 52px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}
.football-stats-row:last-child {
  border-bottom: none;
}
.football-stats-row:hover {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin: 0 -6px;
  padding-inline: 6px;
}

.football-stats-cell {
  min-width: 0;
  display: flex;
  align-items: center;
}
.football-stats-cell--home {
  justify-content: flex-end;
}
.football-stats-cell--away {
  justify-content: flex-start;
}
.football-stats-cell--center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 140px;
}

.football-stats-value {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  min-width: 2ch;
  text-align: center;
}
.football-stats-value--home {
  color: var(--accent-sport, #f5c518);
  text-shadow: 0 0 12px rgba(245, 197, 24, 0.35);
}
.football-stats-value--away {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.football-stats-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  white-space: nowrap;
}

.football-stats-bar-wrap {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-width: 120px;
  max-width: 200px;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
.football-stats-bar {
  height: 100%;
  transition: width 0.4s ease-out;
  flex-shrink: 0;
}
.football-stats-bar--home {
  background: linear-gradient(90deg, rgba(245, 197, 24, 0.5) 0%, var(--accent-sport, #f5c518) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 4px 0 0 4px;
}
.football-stats-bar--away {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65) 0%, rgba(203, 213, 225, 0.85) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-radius: 0 4px 4px 0;
}
.football-stats-row--pct .football-stats-bar-wrap {
  direction: ltr;
}
.football-stats-row--pct .football-stats-bar--home {
  order: 2;
  border-radius: 0 4px 4px 0;
}
.football-stats-row--pct .football-stats-bar--away {
  order: 1;
  border-radius: 4px 0 0 4px;
}

/* הרכבים – שני צדדים (HOME | AWAY) */
.football-lineups-with-sides {
  width: 100%;
  padding: 0 4px;
}
.football-lineups-headers {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.football-lineups-side {
  min-width: 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
}
.football-lineups-side--home {
  text-align: right;
}
.football-lineups-side--away {
  text-align: left;
  direction: ltr;
}
.football-lineups-side-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.football-lineups-side--home .football-lineups-side-header {
  flex-direction: row;
  justify-content: flex-start;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.15) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(245, 197, 24, 0.08) 100%);
  margin: -12px -14px 10px -14px;
  padding: 10px 14px 8px 14px;
  border-radius: 8px 0 0 0;
  border-bottom-color: rgba(245, 197, 24, 0.3);
}
.football-lineups-side--away .football-lineups-side-header {
  flex-direction: row;
  justify-content: flex-start;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(148, 163, 184, 0.08) 100%);
  margin: -12px -14px 10px -14px;
  padding: 10px 14px 8px 14px;
  border-radius: 0 8px 0 0;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.football-lineups-side-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}
.football-lineups-side-logo--placeholder {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-block;
}
.football-lineups-side-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.football-lineups-side-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.football-lineups-side-badge--home {
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.95) 0%, rgba(210, 160, 15, 0.95) 100%);
  color: #1a1a1a;
}
.football-lineups-side-badge--away {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(203, 213, 225, 0.9) 100%);
  color: #1e293b;
}
.football-lineups-spine {
  width: 3px;
  min-width: 3px;
  min-height: 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
  margin-inline: 2px;
  align-self: stretch;
  border-radius: 2px;
}
.football-lineups-formation {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 8px 0;
  letter-spacing: 0.02em;
}
.football-lineups-block-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.football-lineups-startxi,
.football-lineups-subs {
  margin-bottom: 12px;
}
.football-lineups-player-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.football-lineups-player-list li {
  padding: 4px 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.football-lineups-player-list li:last-child {
  border-bottom: none;
}
.football-lineups-player {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.football-lineups-player-photo {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
}
.football-lineups-player-photo--placeholder {
  display: none;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
}
.football-lineups-player-photo--placeholder.football-lineups-player-photo--show {
  display: inline-block;
}
.football-lineups-player-list .football-lineups-player-photo--placeholder.football-lineups-player-photo--show {
  width: 32px;
  height: 32px;
}
.football-lineups-player-num {
  min-width: 1.8em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}
.football-lineups-player-name {
  font-weight: 500;
  min-width: 0;
}
.football-lineups-player-pos {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-inline-start: 4px;
  flex-shrink: 0;
}
.football-lineups-player-list--subs .football-lineups-player {
  padding: 3px 0;
  font-size: 0.82rem;
}
.football-lineups-player-list--subs .football-lineups-player-photo {
  width: 28px;
  height: 28px;
}
.football-lineups-player-list--subs .football-lineups-player-photo--placeholder.football-lineups-player-photo--show {
  width: 28px;
  height: 28px;
}
.football-lineups-coach {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}
.football-lineups-coach-photo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.football-lineups-coach-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}
.football-lineups-coach-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* ציר זמן אירועי משחק 0–90 */
.football-events-timeline {
  width: 100%;
  /* ה-padding האנכי הוא מקור ה"אוויר" של הציר: האירועים והסמן ממוקמים absolute
     ומתרחפים מעל/מתחת ל-track ולכן אינם מגדילים את הגובה בעצמם. */
  padding: 48px 10px;
  overflow: visible;
}

.football-events-timeline-labels {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  min-height: 1.2em;
}

/* 0' – ימין הציר (תחילת משחק) */
.football-events-timeline-label:first-child {
  position: absolute;
  right: 0;
  left: auto;
}

/* 0' – ימין הציר (תחילת משחק) */
.football-events-timeline-label--start {
  position: absolute;
  right: 0;
  left: auto;
  transform: none;
}

/* תחנות אמצע – ממוקמות לפי right דינמי (inline), ממורכזות על הנקודה */
.football-events-timeline-label--mid {
  position: absolute;
  transform: translateX(50%);
}

/* 45+ – תוספת זמן מחצית ראשונה – מסגרת/צבע כתום כהה */
.football-events-timeline-label--ht-overtime {
  position: absolute;
  left: 51%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: #e8a84a;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(184, 92, 0, 0.7);
  background: rgba(184, 92, 0, 0.25);
}

/* תחנת הקצה השמאלי (סוף הציר) */
.football-events-timeline-label--end {
  position: absolute;
  left: 0;
  right: auto;
  transform: none;
  margin-inline-start: 0;
}

/* תחנות מעבר ל-90 (תוספת/הארכה) – צבע כתום כהה, ללא שינוי מיקום */
.football-events-timeline-label--overtime {
  font-size: 0.72rem;
  font-weight: 700;
  color: #e8a84a;
}

.football-events-timeline-track {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: visible;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* קווים אנכיים ב־0, 45, 90 – בגובה מעט מעל הציר */
.football-events-timeline-track-tick {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 28px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1px;
  pointer-events: none;
  z-index: 0;
}

.football-events-timeline-track-tick--0 {
  right: 0;
  left: auto;
}

.football-events-timeline-track-tick--45 {
  right: 50%;
  left: auto;
  transform: translate(50%, -50%);
}

.football-events-timeline-track-tick--90 {
  right: 100%;
  left: auto;
  transform: translate(50%, -50%);
}

/* אזור תוספת זמן מחצית ראשונה 45+ – כתום כהה */
.football-events-timeline-track-ht-overtime {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4%;
  height: 100%;
  background: rgba(184, 92, 0, 0.35);
  border-radius: 0 2px 2px 0;
  border-inline-start: 1px solid rgba(232, 168, 74, 0.5);
  pointer-events: none;
  z-index: 0;
}

/* אזור תוספת זמן מחצית שנייה 90+ – כתום כהה */
.football-events-timeline-track-overtime {
  position: absolute;
  top: 0;
  left: 0;
  width: 16%;
  height: 100%;
  background: rgba(184, 92, 0, 0.45);
  border-radius: 0 2px 2px 0;
  border-inline-start: 2px solid rgba(232, 168, 74, 0.55);
  pointer-events: none;
  z-index: 0;
}

.football-events-timeline-progress {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-sport, #f5c518), rgba(245, 197, 24, 0.7));
  border-radius: 2px;
  transition: width 0.5s ease-out, background 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.football-events-timeline-progress--overtime {
  background: linear-gradient(90deg, #e67e22, rgba(230, 126, 34, 0.75));
}

/* הפסקה (HT) – ציר ובאדג' באפור */
.football-events-timeline-progress--halftime {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.85), rgba(100, 116, 139, 0.7));
}

/* אירועים על הציר – קו שיוצא + אייקון לפי סוג */
.football-events-timeline-events {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.football-events-timeline-events .football-events-timeline-event {
  pointer-events: auto;
  cursor: pointer;
}

/* ציר RTL: מיקום אופקי ב-right; צד בית למעלה מהציר, צד חוץ למטה */
.football-events-timeline-event {
  position: absolute;
  right: 0;
  left: auto;
  transform: translate(50%, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

/* בית – קו עולה למעלה מהציר, האייקון מעל */
.football-events-timeline-event--home {
  bottom: 50%;
  top: auto;
  flex-direction: column-reverse;
}

.football-events-timeline-event--home .football-events-timeline-event-line {
  margin-bottom: 2px;
}

/* חוץ – קו יורד למטה מהציר, האייקון מתחת */
.football-events-timeline-event--away {
  top: 50%;
  bottom: auto;
  flex-direction: column;
}

.football-events-timeline-event--away .football-events-timeline-event-line {
  margin-top: 2px;
}

.football-events-timeline-event-content {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  direction: ltr;
}

.football-events-timeline-event-minute {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.football-events-timeline-event-line {
  width: 2px;
  height: 14px;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

/* אירועים צמודים (בטווח דקות) – מדורגים בגובה כדי למנוע חפיפה (tier 0–5) */
.football-events-timeline-event--tier-0 .football-events-timeline-event-line { height: 14px; }
.football-events-timeline-event--tier-1 .football-events-timeline-event-line { height: 28px; }
.football-events-timeline-event--tier-2 .football-events-timeline-event-line { height: 42px; }
.football-events-timeline-event--tier-3 .football-events-timeline-event-line { height: 56px; }
.football-events-timeline-event--tier-4 .football-events-timeline-event-line { height: 70px; }
.football-events-timeline-event--tier-5 .football-events-timeline-event-line { height: 84px; }

.football-events-timeline-event--home .football-events-timeline-event-line {
  background: var(--accent-sport, #f5c518);
}

.football-events-timeline-event--away .football-events-timeline-event-line {
  background: rgba(255, 255, 255, 0.75);
}

.football-events-timeline-event-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.football-events-timeline-icon-inner {
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.football-events-timeline-icon-inner img {
  width: 16px;
  height: 16px;
  display: block;
}

.football-events-timeline-icon-inner:not([class*="football-events-timeline-icon--"]) {
  font-size: 1.1rem;
}

.football-events-timeline-icon--yellow {
  width: 10px;
  height: 14px;
  background: #f5c518;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.football-events-timeline-icon--red {
  width: 10px;
  height: 14px;
  background: #c62828;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.football-events-timeline-icon--subst {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.football-events-timeline-icon--var {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  padding: 1px 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

/* עטיפה לקו הרץ + הזמן לידו (יוצא מפס המילוי) */
.football-events-timeline-marker-wrap {
  position: absolute;
  top: 50%;
  right: 0%;
  left: auto;
  transform: translate(50%, -50%);
  display: flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
  transition: right 0.5s ease-out;
  pointer-events: none;
  z-index: 3;
}

/* הקו עצמו – נראה כמו המשך של פס המילוי (יוצא ממנו) */
.football-events-timeline-marker {
  width: 2px;
  height: 14px;
  background: var(--accent-sport, #f5c518);
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.football-events-timeline-marker-wrap--live .football-events-timeline-marker {
  box-shadow: 0 0 6px 1px rgba(245, 197, 24, 0.5);
}

/* הפסקה – קו ובאדג' באפור */
.football-events-timeline-marker-wrap--halftime .football-events-timeline-marker {
  background: #64748b;
  box-shadow: 0 0 4px 1px rgba(100, 116, 139, 0.4);
}

.football-events-timeline-marker-wrap--halftime .football-events-timeline-marker-time {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.5);
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 8px rgba(100, 116, 139, 0.2), inset 0 1px 0 rgba(148, 163, 184, 0.1);
}

/* בהפסקה (HT) דורס צבע חי/תוספת – אפור */
.football-events-timeline-marker-wrap--live.football-events-timeline-marker-wrap--halftime .football-events-timeline-marker {
  background: #64748b;
  box-shadow: 0 0 4px 1px rgba(100, 116, 139, 0.4);
}

.football-events-timeline-marker-wrap--live.football-events-timeline-marker-wrap--halftime .football-events-timeline-marker-time {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.5);
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 8px rgba(100, 116, 139, 0.2), inset 0 1px 0 rgba(148, 163, 184, 0.1);
}

/* סיום משחק – הסמן יושב בקצה השמאלי בלי לחרוג מהציר */
.football-events-timeline-marker-wrap--finished {
  transform: translateY(-50%);
  flex-direction: row-reverse;
}

.football-events-timeline-marker-wrap--finished .football-events-timeline-marker {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.football-events-timeline-marker-wrap--finished .football-events-timeline-marker-time {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(30, 30, 36, 0.96) 0%, rgba(20, 20, 24, 0.98) 100%);
  animation: none;
}

/* תוספת זמן – קו ובאדג' בכתום כהה */
.football-events-timeline-marker-wrap--overtime .football-events-timeline-marker {
  background: #b85c00;
  box-shadow: 0 0 6px 1px rgba(184, 92, 0, 0.5);
}

.football-events-timeline-marker-wrap--overtime .football-events-timeline-marker-time {
  color: #e8a84a;
  border-color: rgba(184, 92, 0, 0.7);
  background: linear-gradient(180deg, rgba(50, 28, 8, 0.95) 0%, rgba(35, 20, 5, 0.98) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 12px rgba(184, 92, 0, 0.25), inset 0 1px 0 rgba(232, 168, 74, 0.12);
}

@keyframes football-timeline-time-blink-overtime {
  0%, 100% { opacity: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 12px rgba(184, 92, 0, 0.25), inset 0 1px 0 rgba(232, 168, 74, 0.12); }
  50% { opacity: 0.9; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 18px rgba(184, 92, 0, 0.4), inset 0 1px 0 rgba(232, 168, 74, 0.12); }
}

/* הזמן ליד הקו – באדג' מיוחד */
.football-events-timeline-marker-time {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  direction: ltr;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(30, 30, 36, 0.95) 0%, rgba(20, 20, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  letter-spacing: 0.02em;
}

/* חי – צבע רגיל (זהב) */
.football-events-timeline-marker-wrap--live .football-events-timeline-marker-time {
  border-color: rgba(245, 197, 24, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 12px rgba(245, 197, 24, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: football-timeline-time-blink 1.2s ease-in-out infinite;
}

/* חי + תוספת זמן – כתום כהה (דורס את הרגיל) */
.football-events-timeline-marker-wrap--live.football-events-timeline-marker-wrap--overtime .football-events-timeline-marker-time {
  color: #e8a84a;
  border-color: rgba(184, 92, 0, 0.7);
  background: linear-gradient(180deg, rgba(50, 28, 8, 0.95) 0%, rgba(35, 20, 5, 0.98) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 12px rgba(184, 92, 0, 0.25), inset 0 1px 0 rgba(232, 168, 74, 0.12);
  animation: football-timeline-time-blink-overtime 1.2s ease-in-out infinite;
}

@keyframes football-timeline-time-blink {
  0%, 100% { opacity: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 12px rgba(245, 197, 24, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
  50% { opacity: 0.88; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 18px rgba(245, 197, 24, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
}


/* שני צדדים – אירועים לכל קבוצה */
.football-events-with-sides {
  width: 100%;
  overflow: visible;
}

/* בהפסקה – כל אזור האירועים בגוון אפור */
.football-events-with-sides--halftime {
  filter: grayscale(0.9);
  opacity: 0.92;
}

.football-events-with-sides--halftime .football-events-timeline-label,
.football-events-with-sides--halftime .football-events-timeline-track-tick {
  opacity: 0.85;
}

.football-events-with-sides--halftime .football-events-side-badge--home {
  background: rgba(100, 116, 139, 0.5);
  color: #e2e8f0;
}

.football-events-with-sides--halftime .football-events-item-minute {
  color: #94a3b8;
}

.football-events-with-sides--halftime .football-events-timeline-event--home .football-events-timeline-event-line {
  background: rgba(148, 163, 184, 0.7);
}

.football-events-sides {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin-top: 20px;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.football-events-spine {
  width: 3px;
  min-width: 3px;
  min-height: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
  margin-inline: 2px;
  align-self: stretch;
  border-radius: 2px;
}

.football-events-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  padding-inline: 14px;
  padding-bottom: 14px;
}

.football-events-side--home {
  text-align: right;
}

.football-events-side--away {
  text-align: left;
  direction: ltr;
}

/* כותרות קבוצות באירועים – תואם לסטטיסטיקות */
.football-events-side-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  min-height: 48px;
  margin-inline: -14px;
  padding-inline: 14px;
  border-radius: 8px;
  border-bottom: 2px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.football-events-side--home .football-events-side-header {
  flex-direction: row;
  justify-content: flex-start;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.18) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(245, 197, 24, 0.1) 100%);
  border-bottom-color: rgba(245, 197, 24, 0.35);
}

.football-events-side--away .football-events-side-header {
  flex-direction: row;
  justify-content: flex-start;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(148, 163, 184, 0.1) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.football-events-side-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.football-events-side-logo--placeholder {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-block;
}

.football-events-side-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.football-events-side-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.football-events-side-badge--home {
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.95) 0%, rgba(210, 160, 15, 0.95) 100%);
  color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.football-events-side-badge--away {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(203, 213, 225, 0.9) 100%);
  color: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.football-events-list {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-inline: 0;
}

.football-events-list-empty {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  padding: 8px 0;
}

.football-events-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 36px;
  box-sizing: border-box;
}

.football-events-item:last-child {
  border-bottom: none;
}

/* HOME: סדר ריבוע אייקון ← דקה ← אירוע (צמוד לימין, RTL) */
.football-events-side--home .football-events-item {
  flex-direction: row;
  justify-content: flex-start;
}

/* AWAY: מראה – ריבוע אייקון ← דקה ← אירוע (צמוד לשמאל) */
.football-events-side--away .football-events-item {
  flex-direction: row;
  justify-content: flex-start;
}

.football-events-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.football-events-item-icon .football-events-timeline-icon-inner {
  font-size: 1rem;
}

.football-events-item-icon .football-events-timeline-icon--yellow,
.football-events-item-icon .football-events-timeline-icon--red {
  width: 10px;
  height: 14px;
}

.football-events-item-minute {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--accent-sport, #f5c518);
  font-variant-numeric: tabular-nums;
}

.football-events-item-text {
  color: rgba(255, 255, 255, 0.85);
  min-width: 0;
}

.football-events-item.js-events-list-item {
  cursor: pointer;
}

.football-events-item.is-event-highlighted,
.football-events-timeline-event.is-event-highlighted {
  outline: 2px solid var(--accent-sport, #f5c518);
  outline-offset: 2px;
  border-radius: 4px;
}

.football-events-item.is-event-highlighted {
  background: rgba(245, 197, 24, 0.12);
}

.football-events-timeline-event.is-event-highlighted .football-events-timeline-event-content {
  filter: brightness(1.15);
}

@media (max-width: 540px) {
  .football-events-sides {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 16px;
  }

  .football-events-spine {
    width: 100%;
    height: 2px;
    min-height: 2px;
    margin: 0;
  }

  .football-events-side {
    padding-inline: 10px;
    padding-bottom: 12px;
  }

  .football-events-side--away {
    text-align: right;
  }

  .football-events-side--away .football-events-side-header {
    flex-direction: row;
  }

  .football-events-side-header {
    margin-inline: -10px;
    padding: 10px 10px;
  }
  .football-events-side-name {
    font-size: 0.85rem;
  }

  .football-lineups-headers {
    grid-template-columns: 1fr;
  }
  .football-lineups-spine {
    width: 100%;
    min-height: 2px;
    height: 2px;
  }
  .football-lineups-side-header {
    margin: -12px -14px 10px -14px;
    padding: 10px 14px 8px 14px;
  }

  .football-single-match-teams {
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    padding: 20px 16px;
  }
  .football-single-match-team-logo,
  .football-single-match-team-logo--placeholder {
    width: 40px;
    height: 40px;
  }
  .football-single-match-team-name {
    font-size: 0.85rem;
  }
  .football-single-match-team-side {
    padding: 2px 7px;
    font-size: 0.58rem;
  }
  .football-single-match-team-score {
    font-size: 1.45rem;
  }
  .football-single-match-vs {
    font-size: 1rem;
  }
  .football-single-match-score-wrap {
    min-width: 80px;
    padding: 10px 14px;
  }
  .football-single-match-tablist {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .football-single-match-tab {
    flex: 1 1 0;
    min-width: 0;
    gap: 4px;
    padding: 8px 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .football-single-match-tab-count {
    height: 14px;
    padding: 0 4px;
    font-size: .58rem;
  }
  .football-single-match-panel {
    padding: 16px 14px;
  }
  .football-stats-headers {
    grid-template-columns: 1fr auto 1fr;
    margin-bottom: 14px;
  }
  .football-stats-side-header {
    padding: 10px 10px;
  }
  .football-stats-side-name {
    font-size: 0.85rem;
  }
  .football-stats-row {
    gap: 0 8px;
    min-height: 46px;
    padding: 8px 0;
  }
  .football-stats-cell--center {
    min-width: 110px;
  }
  .football-stats-value {
    font-size: 1rem;
  }
  .football-stats-label {
    font-size: 0.75rem;
  }
  .football-stats-bar-wrap {
    min-width: 90px;
    max-width: 160px;
    height: 6px;
  }
  .football-stats-half-selector {
    gap: 6px;
    margin-bottom: 14px;
  }
  .football-stats-half-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

.football-live-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

.football-page {
  margin: var(--space-y-sm, 24px) 0;
}

.football-page-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 24px);
  padding: clamp(16px, 2.2vw, 24px);
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 197, 24, 0.3), transparent 34%),
    radial-gradient(circle at 95% 100%, rgba(255, 255, 255, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(24, 22, 8, 0.96), rgba(76, 62, 0, 0.74) 45%, rgba(14, 14, 14, 0.96));
  border: 1px solid rgba(245, 197, 24, 0.38);
  border-radius: 18px;
  margin-bottom: var(--space-y-sm, 24px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
}

.football-page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 22%, rgba(245, 197, 24, 0.08) 72%, transparent);
  opacity: 0.62;
  pointer-events: none;
  z-index: -1;
}

.football-page-header-title {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.15rem);
  flex: 1;
  min-width: 0;
}

.football-page-league-logo-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 8px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.football-page-league-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.football-page-league-logo-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  background: rgba(255, 255, 255, 0.08);
}

.football-page-header-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
}

.football-page-meta-line {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.football-page-meta-league {
  font-weight: 700;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.football-page-meta-country {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffe58a;
  font-weight: 800;
  background: rgba(245, 197, 24, 0.11);
  border: 1px solid rgba(245, 197, 24, 0.18);
}

.football-page-country-flag {
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: cover;
  display: block;
}

.football-page-meta-season {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.football-page-header-date {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.football-page-date-label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
}

.football-page-date-input {
  height: 36px;
  padding: 0 0.9rem;
  font-size: 0.94rem;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(245, 197, 24, 0.22);
  border-radius: 999px;
  min-width: 150px;
  direction: ltr;
  text-align: center;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.football-page-date-input:focus {
  outline: none;
  border-color: var(--accent-sport, #f5c518);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.football-page-date-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(245, 197, 24, 0.2), rgba(255, 255, 255, 0.055));
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  border: 1px solid rgba(245, 197, 24, 0.2);
}
.football-page-date-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.football-page-date-arrow:hover {
  background: linear-gradient(145deg, rgba(245, 197, 24, 0.38), rgba(245, 197, 24, 0.12));
  color: #ffe58a;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(245, 197, 24, 0.16);
}
.football-page-date-arrow:active {
  transform: translateY(0);
}

.football-page-date-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.football-page-date-clear:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.football-date-group-separator {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.football-date-group-separator:first-child {
  border-top: none;
}
.football-date-group-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

.football-fixtures-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.football-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

.football-empty-state-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 1.25rem;
  color: var(--accent-sport, #f5c518);
  opacity: 0.85;
}

.football-empty-state-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.football-empty-state-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
}

.football-empty-state-desc {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  max-width: 280px;
}

.football-fixtures-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.football-fixtures-th {
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 2px solid rgba(245, 197, 24, 0.35);
  white-space: nowrap;
}

.football-fixtures-th--fav,
.football-fixtures-td--fav {
  width: 2.75rem;
  min-width: 2.75rem;
  padding: 0.4rem;
  text-align: center;
  vertical-align: middle;
}

.football-fav-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s, background 0.15s;
}

.football-fav-star:hover {
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.football-fav-star:focus-visible {
  outline: 2px solid var(--accent-sport, #f5c518);
  outline-offset: 2px;
}

.football-fav-star--selected,
.football-fav-star[aria-pressed="true"] {
  color: var(--accent-sport, #f5c518);
}

.football-fav-star .football-fav-star-icon {
  display: inline-block;
  width: 26px;
  height: 26px;
}

.football-fav-star .football-fav-star-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.football-fixtures-th--expand,
.football-fixtures-td--expand {
  width: 2.75rem;
  min-width: 2.75rem;
  padding: 0.4rem;
  text-align: center;
  vertical-align: middle;
}

.football-fixtures-expand-th-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

.football-fixtures-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(245, 197, 24, 0.22), rgba(245, 197, 24, 0.08));
  border: 1px solid rgba(245, 197, 24, 0.4);
  color: #fde047;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
}

.football-fixtures-row:hover .football-fixtures-expand-btn {
  background: linear-gradient(145deg, rgba(245, 197, 24, 0.32), rgba(245, 197, 24, 0.14));
  border-color: rgba(245, 197, 24, 0.55);
}

.football-fixtures-row--expanded .football-fixtures-expand-btn {
  background: linear-gradient(145deg, rgba(245, 197, 24, 0.35), rgba(245, 197, 24, 0.15));
  border-color: rgba(245, 197, 24, 0.6);
  color: #fff;
}

.football-fixtures-expand-chevron {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s;
  opacity: 0.95;
}

.football-fixtures-row--expanded .football-fixtures-expand-chevron {
  transform: rotate(-135deg) translateY(1px);
}

.football-fixtures-th--time {
  width: 6rem;
}

.football-fixtures-th--score {
  width: 5rem;
}

.football-fixtures-th--status {
  width: 6rem;
  font-size: 0.85rem;
}

.football-fixtures-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
  cursor: pointer;
}

.football-fixtures-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.football-fixture-details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.football-fixture-details-td {
  padding: 0;
  vertical-align: top;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.2) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-inline-start: 3px solid rgba(245, 197, 24, 0.5);
}

.football-fixture-details-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  padding-inline-end: 2rem;
  text-align: right;
}

.football-fixture-detail-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  min-width: 0;
  transition: background 0.2s, border-color 0.2s;
}

.football-fixture-detail-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 197, 24, 0.2);
}

.football-fixture-detail-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(245, 197, 24, 0.12);
  color: var(--accent-sport, #f5c518);
}

.football-fixture-detail-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.football-fixture-detail-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  text-align: right;
}

.football-fixture-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
}

.football-fixture-detail-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.3;
  word-break: break-word;
  text-align: right;
}

.football-fixture-detail-empty {
  margin: 0;
  padding: 0.6rem 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
}

.football-fixtures-td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  text-align: center;
}

.football-fixtures-td--time {
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.football-fixtures-td--time .football-fixtures-date {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2px;
}

.football-fixtures-td--time .football-fixtures-time {
  display: block;
  font-weight: 600;
  font-size: 1rem;
}

.football-fixtures-td--home,
.football-fixtures-td--away {
  text-align: center;
  vertical-align: middle;
}

.football-fixtures-team {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 120px;
}

.football-fixtures-team-logo {
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.football-fixtures-team-logo-placeholder {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.football-fixtures-team-name {
  font-size: 0.85rem;
  line-height: 1.25;
  word-break: break-word;
  color: rgba(255, 255, 255, 0.95);
}

.football-fixtures-td--score {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.football-score-card {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.football-score-card--result {
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.25), rgba(245, 197, 24, 0.1));
  color: #fde047;
  border: 1px solid rgba(245, 197, 24, 0.45);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.football-score-card--vs {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  font-size: 0.8rem;
}

.football-fixtures-td--status {
  font-size: 0.85rem;
}

.football-status-badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  border-radius: 6px;
  text-align: center;
}

.football-status-badge.football-status--finished {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.football-status-badge.football-status--upcoming {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.football-status-badge.football-status--live,
.football-status-badge.football-status--live-1h,
.football-status-badge.football-status--live-2h,
.football-status-badge.football-status--live-ht,
.football-status-badge.football-status--live-et,
.football-status-badge.football-status--live-bt,
.football-status-badge.football-status--live-p {
  background: rgba(245, 197, 24, 0.2);
  color: #fde047;
  border: 1px solid rgba(245, 197, 24, 0.4);
}

.football-status-badge.football-status--cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.football-status-badge.football-status--other {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.football-fixtures-row--live {
  background: rgba(220, 38, 38, 0.08);
  border-inline-start: none;
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.15);
  animation: football-live-breathe 2s ease-in-out infinite;
}

.football-fixtures-row--live .football-score-card {
  font-weight: 700;
  color: #fff;
  background: rgba(220, 38, 38, 0.25);
  border-color: rgba(220, 38, 38, 0.5);
}

@keyframes football-live-breathe {
  0%, 100% { background-color: rgba(220, 38, 38, 0.08); }
  50% { background-color: rgba(220, 38, 38, 0.14); }
}

.football-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.football-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fecaca;
  background: rgba(220, 38, 38, 0.35);
  border: 1px solid rgba(220, 38, 38, 0.6);
  border-radius: 6px;
  text-transform: uppercase;
}

.football-live-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: football-live-dot 1s ease-in-out infinite;
}

.football-live-pill-text {
  font-variant-numeric: tabular-nums;
}

.football-fixtures-live-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #fde047;
}

.football-fixtures-team-name-wrap {
  display: inline;
  text-align: center;
}

.football-fixtures-team-name-wrap.football-goal-flash {
  animation: football-goal-name-flash 5s ease-out forwards;
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 6px;
  padding: 3px 8px;
  box-sizing: border-box;
}

.football-fixtures-team-name-wrap.football-goal-flash .football-fixtures-team-name {
  color: #93c5fd;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
  animation: football-goal-name-glow 5s ease-out forwards;
}

.football-fixtures-team-name-wrap.football-goal-flash .football-goal-flash-ball {
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.6));
  animation: football-goal-ball-in 0.35s ease-out 0.15s forwards;
}

/* ברירת מחדל: גלוי (בלוק חי מצמיד את הכדור ל־.football-fixtures-team בלי עטיפת football-goal-flash) */
.football-goal-flash-ball {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 0.3rem;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
  opacity: 1;
  width: 16px;
  height: 16px;
}

.football-goal-flash-ball img {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes football-goal-name-flash {
  0% { background-color: rgba(59, 130, 246, 0.28); border-color: rgba(59, 130, 246, 0.55); }
  25% { background-color: rgba(59, 130, 246, 0.14); border-color: rgba(59, 130, 246, 0.35); }
  50% { background-color: rgba(59, 130, 246, 0.16); border-color: rgba(59, 130, 246, 0.28); }
  75% { background-color: rgba(59, 130, 246, 0.07); border-color: rgba(59, 130, 246, 0.12); }
  100% { background-color: transparent; border-color: transparent; }
}

@keyframes football-goal-name-glow {
  0% { color: #93c5fd; text-shadow: 0 0 12px rgba(59, 130, 246, 0.5); }
  100% { color: rgba(255, 255, 255, 0.95); text-shadow: none; }
}

@keyframes football-goal-ball-in {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.football-red-card-icon {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: 0.25rem;
  vertical-align: middle;
}

.football-red-card-icon-inner {
  display: block;
  width: 10px;
  height: 14px;
  background: #dc2626;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  flex-shrink: 0;
}

.football-red-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  color: #fecaca;
  min-width: 1.2em;
}

.football-fixtures-team-name-wrap.football-redcard-flash {
  animation: football-redcard-flash 5s ease-out forwards;
  border: 1px solid rgba(220, 38, 38, 0.5);
  border-radius: 6px;
  padding: 3px 8px;
  box-sizing: border-box;
}

.football-fixtures-team-name-wrap.football-redcard-flash .football-fixtures-team-name {
  color: #fecaca;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
  animation: football-redcard-name-glow 5s ease-out forwards;
}

@keyframes football-redcard-flash {
  0% { background-color: rgba(220, 38, 38, 0.25); border-color: rgba(220, 38, 38, 0.55); }
  25% { background-color: rgba(220, 38, 38, 0.12); border-color: rgba(220, 38, 38, 0.35); }
  50% { background-color: rgba(220, 38, 38, 0.14); border-color: rgba(220, 38, 38, 0.25); }
  75% { background-color: rgba(220, 38, 38, 0.06); border-color: rgba(220, 38, 38, 0.12); }
  100% { background-color: transparent; border-color: transparent; }
}

@keyframes football-redcard-name-glow {
  0% { color: #fecaca; text-shadow: 0 0 10px rgba(220, 38, 38, 0.4); }
  100% { color: rgba(255, 255, 255, 0.95); text-shadow: none; }
}

.football-yellow-card-icon {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 0.25rem;
  vertical-align: middle;
}

.football-yellow-card-icon-inner {
  display: block;
  width: 10px;
  height: 14px;
  background: #eab308;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.football-fixtures-team-name-wrap.football-yellowcard-flash {
  animation: football-yellowcard-flash 5s ease-out forwards;
  border: 1px solid rgba(234, 179, 8, 0.5);
  border-radius: 6px;
  padding: 3px 8px;
  box-sizing: border-box;
}

.football-fixtures-team-name-wrap.football-yellowcard-flash .football-fixtures-team-name {
  color: #fef08a;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(234, 179, 8, 0.4);
  animation: football-yellowcard-name-glow 5s ease-out forwards;
}

@keyframes football-yellowcard-flash {
  0% { background-color: rgba(234, 179, 8, 0.22); border-color: rgba(234, 179, 8, 0.55); }
  25% { background-color: rgba(234, 179, 8, 0.12); border-color: rgba(234, 179, 8, 0.35); }
  50% { background-color: rgba(234, 179, 8, 0.14); border-color: rgba(234, 179, 8, 0.25); }
  75% { background-color: rgba(234, 179, 8, 0.06); border-color: rgba(234, 179, 8, 0.12); }
  100% { background-color: transparent; border-color: transparent; }
}

@keyframes football-yellowcard-name-glow {
  0% { color: #fef08a; text-shadow: 0 0 10px rgba(234, 179, 8, 0.4); }
  100% { color: rgba(255, 255, 255, 0.95); text-shadow: none; }
}

/* Hub live card adjustments → moved to css/live-blocks.css */

/* ==========================================================================
   MOBILE RESPONSIVENESS – appended rules (320px–768px)
   These do NOT duplicate existing media queries above.
   ========================================================================== */

/* ---- Tablet & large mobile (max-width: 768px) ---- */
@media (max-width: 768px) {
  /* Fixtures table: tighter fav & expand columns */
  .football-fixtures-th--fav,
  .football-fixtures-td--fav {
    width: 2.25rem;
    min-width: 2.25rem;
    padding: 0.3rem;
  }
  .football-fav-star {
    width: 28px;
    height: 28px;
  }
  .football-fav-star .football-fav-star-icon {
    width: 22px;
    height: 22px;
  }
  .football-fixtures-th--expand,
  .football-fixtures-td--expand {
    width: 2.25rem;
    min-width: 2.25rem;
    padding: 0.3rem;
  }
  .football-fixtures-expand-btn {
    width: 24px;
    height: 24px;
  }
  .football-fixtures-expand-chevron {
    width: 8px;
    height: 8px;
  }

  /* Fixtures table: narrower fixed columns */
  .football-fixtures-th--time {
    width: 4.5rem;
  }
  .football-fixtures-th--score {
    width: 4rem;
  }
  .football-fixtures-th--status {
    width: 5rem;
    font-size: 0.78rem;
  }

  /* Team name containers: narrower on mobile */
  .football-fixtures-team {
    max-width: 100px;
  }
  .football-fixtures-team-logo-placeholder {
    width: 28px;
    height: 28px;
  }

  /* Fixtures wrap: smaller border radius */
  .football-fixtures-wrap {
    border-radius: 8px;
  }

}

/* ---- Small mobile (max-width: 480px) ---- */
@media (max-width: 480px) {
  /* Page header: stack everything vertically */
  .football-page-header {
    padding: 13px;
    gap: 12px;
    border-radius: 14px;
    margin-bottom: 16px;
  }
  .football-page-header-title {
    gap: 0.65rem;
    width: 100%;
  }
  .football-page-league-logo-wrap {
    width: 52px;
    height: 52px;
    padding: 6px;
    border-radius: 14px;
  }
  .football-page-meta-league {
    font-size: 1rem;
  }
  .football-page-meta-line {
    font-size: 0.82rem;
  }
  .football-page-meta-season {
    font-size: 0.78rem;
  }
  /* Date picker: full width below header */
  .football-page-header-date {
    width: 100%;
    justify-content: space-between;
    gap: 0.3rem;
    padding: 5px;
  }
  .football-page-date-label {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .football-page-date-input {
    min-width: 0;
    flex: 1;
    height: 32px;
    font-size: 0.82rem;
    padding: 0 0.55rem;
  }
  .football-page-date-arrow {
    width: 32px;
    height: 32px;
  }
  .football-page-date-arrow svg {
    width: 16px;
    height: 16px;
  }

  /* Fixtures table: compact padding */
  .football-fixtures-th,
  .football-fixtures-td {
    padding: 0.45rem 0.35rem;
    font-size: 0.82rem;
  }

  /* Fav & expand columns: even narrower */
  .football-fixtures-th--fav,
  .football-fixtures-td--fav {
    width: 2rem;
    min-width: 2rem;
    padding: 0.2rem;
  }
  .football-fav-star {
    width: 24px;
    height: 24px;
  }
  .football-fav-star .football-fav-star-icon {
    width: 18px;
    height: 18px;
  }
  .football-fixtures-th--expand,
  .football-fixtures-td--expand {
    width: 2rem;
    min-width: 2rem;
    padding: 0.2rem;
  }
  .football-fixtures-expand-btn {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }
  .football-fixtures-expand-chevron {
    width: 7px;
    height: 7px;
  }

  /* Fixed column widths: tighter */
  .football-fixtures-th--time {
    width: 3.75rem;
  }
  .football-fixtures-th--score {
    width: 3.5rem;
  }
  .football-fixtures-th--status {
    width: 4rem;
    font-size: 0.72rem;
  }

  /* Teams: narrower containers, smaller logos */
  .football-fixtures-team {
    max-width: 80px;
    gap: 0.2rem;
  }
  .football-fixtures-team-name {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  .football-fixtures-team-logo-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 4px;
  }

  /* Score card */
  .football-score-card {
    padding: 0.15rem 0.3rem;
    font-size: 0.78rem;
  }
  .football-score-card--vs {
    font-size: 0.7rem;
  }

  /* Time column */
  .football-fixtures-td--time .football-fixtures-date {
    font-size: 0.65rem;
  }
  .football-fixtures-td--time .football-fixtures-time {
    font-size: 0.82rem;
  }

  /* Status badge */
  .football-status-badge {
    font-size: 0.65rem;
    padding: 2px 5px;
  }

  /* Fixture details panel: compact */
  .football-fixture-details-inner {
    padding: 0.65rem 0.75rem;
    padding-inline-end: 0.85rem;
    gap: 0.5rem 0.6rem;
  }
  .football-fixture-detail-item {
    padding: 0.35rem 0.6rem;
    gap: 0.45rem;
    border-radius: 8px;
  }
  .football-fixture-detail-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }
  .football-fixture-detail-icon svg {
    width: 14px;
    height: 14px;
  }
  .football-fixture-detail-label {
    font-size: 0.68rem;
  }
  .football-fixture-detail-value {
    font-size: 0.82rem;
  }

  /* Live indicator: compact */
  .football-live-indicator {
    gap: 0.35rem;
  }
  .football-live-pill {
    padding: 0.15rem 0.4rem;
    font-size: 0.62rem;
    gap: 0.25rem;
  }
  .football-live-pill-dot {
    width: 5px;
    height: 5px;
  }

  /* Empty state */
  .football-empty-state {
    padding: 2rem 1rem;
  }
  .football-empty-state-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 0.75rem;
  }
  .football-empty-state-title {
    font-size: 1rem;
  }
  .football-empty-state-desc {
    font-size: 0.85rem;
    max-width: 240px;
  }

  /* Choose league block */
  .football-choose-league {
    padding: 20px 16px;
    border-radius: 8px;
  }
  .football-choose-league-msg {
    font-size: 0.95rem;
  }

}

/* ---- Extra small mobile (max-width: 360px) ---- */
@media (max-width: 360px) {
  /* Page header: ultra compact */
  .football-page-header {
    padding: 10px 10px;
    gap: 8px;
  }
  .football-page-header-title {
    gap: 0.4rem;
  }
  .football-page-league-logo-wrap {
    width: 40px;
    height: 40px;
    border-radius: 6px;
  }
  .football-page-meta-league {
    font-size: 0.85rem;
  }
  .football-page-meta-line {
    font-size: 0.78rem;
  }
  .football-page-meta-season {
    font-size: 0.72rem;
  }
  .football-page-date-label {
    font-size: 0.75rem;
  }
  .football-page-date-input {
    font-size: 0.82rem;
    padding: 0 0.45rem;
  }

  /* Fixtures table: hide status column, show status under score */
  .football-fixtures-th--status,
  .football-fixtures-td--status {
    display: none;
  }
  .football-status-under-score-mobile {
    display: block !important;
    margin-top: 2px;
  }

  /* Fav column: icon only, minimal width */
  .football-fixtures-th--fav,
  .football-fixtures-td--fav {
    width: 1.6rem;
    min-width: 1.6rem;
    padding: 0.15rem;
  }
  .football-fav-star {
    width: 20px;
    height: 20px;
    border-radius: 4px;
  }
  .football-fav-star .football-fav-star-icon {
    width: 16px;
    height: 16px;
  }

  /* Expand column: minimal */
  .football-fixtures-th--expand,
  .football-fixtures-td--expand {
    width: 1.6rem;
    min-width: 1.6rem;
    padding: 0.15rem;
  }
  .football-fixtures-expand-btn {
    width: 20px;
    height: 20px;
    border-radius: 4px;
  }
  .football-fixtures-expand-chevron {
    width: 6px;
    height: 6px;
    border-right-width: 1.5px;
    border-bottom-width: 1.5px;
  }

  /* Fixtures: ultra compact cells */
  .football-fixtures-th,
  .football-fixtures-td {
    padding: 0.35rem 0.25rem;
    font-size: 0.75rem;
  }
  .football-fixtures-th--time {
    width: 3.25rem;
  }
  .football-fixtures-th--score {
    width: 3rem;
  }

  /* Teams: smallest viable size */
  .football-fixtures-team {
    max-width: 65px;
    gap: 0.15rem;
  }
  .football-fixtures-team-name {
    font-size: 0.68rem;
    line-height: 1.15;
  }
  .football-fixtures-team-logo-placeholder {
    width: 20px;
    height: 20px;
  }

  /* Score */
  .football-score-card {
    padding: 0.1rem 0.25rem;
    font-size: 0.72rem;
    border-radius: 4px;
  }
  .football-score-card--vs {
    font-size: 0.65rem;
  }

  /* Time */
  .football-fixtures-td--time .football-fixtures-date {
    font-size: 0.6rem;
  }
  .football-fixtures-td--time .football-fixtures-time {
    font-size: 0.75rem;
  }

  /* Status badge (for inline display) */
  .football-status-badge {
    font-size: 0.58rem;
    padding: 2px 4px;
    border-radius: 4px;
  }

  /* Fixture details: tight for 320px */
  .football-fixture-details-inner {
    padding: 0.5rem 0.6rem;
    padding-inline-end: 0.6rem;
    gap: 0.4rem;
    flex-direction: column;
  }
  .football-fixture-detail-item {
    padding: 0.3rem 0.5rem;
    gap: 0.35rem;
    border-radius: 6px;
  }
  .football-fixture-detail-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
  }
  .football-fixture-detail-icon svg {
    width: 12px;
    height: 12px;
  }
  .football-fixture-detail-label {
    font-size: 0.62rem;
  }
  .football-fixture-detail-value {
    font-size: 0.75rem;
  }

  /* Live indicator */
  .football-live-pill {
    padding: 0.1rem 0.3rem;
    font-size: 0.58rem;
    border-radius: 4px;
  }
  .football-live-pill-dot {
    width: 4px;
    height: 4px;
  }

  /* Empty state */
  .football-empty-state {
    padding: 1.5rem 0.75rem;
  }
  .football-empty-state-icon {
    width: 52px;
    height: 52px;
  }
  .football-empty-state-title {
    font-size: 0.92rem;
  }
  .football-empty-state-desc {
    font-size: 0.78rem;
    max-width: 220px;
  }

  /* Choose league */
  .football-choose-league {
    padding: 16px 12px;
    margin: 16px 0;
  }
  .football-choose-league-msg {
    font-size: 0.88rem;
  }
  .football-choose-league-link {
    padding: 0.4rem 1rem;
    font-size: 0.88rem;
    border-radius: 6px;
  }

  /* Red/yellow card icons: slightly smaller */
  .football-red-card-icon-inner,
  .football-yellow-card-icon-inner {
    width: 8px;
    height: 12px;
  }
  .football-red-card-badge {
    font-size: 0.58rem;
  }
  .football-goal-flash-ball {
    width: 13px;
    height: 13px;
  }
}

/* ========== Live blocks: main styles → css/live-blocks.css ========== */
/* Football-specific: league page live styles only */

/* League-page live rows */
.football-page-league-live-style .football-fixtures-row--live {
  background: rgba(220, 38, 38, 0.12);
  box-shadow: inset 3px 0 0 0 #dc2626;
  animation: football-live-breathe 2.5s ease-in-out infinite;
}
.football-page-league-live-style .football-fixtures-row--live .football-live-book-meta {
  color: #ff6b6b;
}

/* דף ליגה (football.php): מניע חפיפה שם קבוצה ↔ יחסים/תוצאה — כמו בדף הבית */
.football-page-league-live-style.football-live-all-section .football-live-book-match {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.football-page-league-live-style.football-live-all-section .football-live-book-team-line {
  min-width: 0;
  overflow: hidden;
}

.football-page-league-live-style.football-live-all-section .football-live-book-team-line .football-fixtures-team {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.football-page-league-live-style.football-live-all-section .football-live-book-team-line .football-fixtures-team-name-wrap {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.football-page-league-live-style.football-live-all-section .football-live-book-team-line .football-fixtures-team-name {
  width: 100%;
  min-width: 0;
}

@media (max-width: 768px) {
  .football-page-league-live-style.football-live-all-section .football-live-book {
    --live-fav-w: 30px;
    --live-meta-w: 44px;
    --live-score-w: 30px;
    --live-market-w: 46px;
    --live-more-w: 30px;
  }
  .football-page-league-live-style .football-live-book--no-score .football-live-book-head {
    grid-template-columns: var(--live-fav-w) var(--live-meta-w) minmax(0, 1fr) var(--live-market-w) var(--live-market-w) var(--live-market-w) var(--live-more-w);
    min-height: 32px;
  }
  .football-page-league-live-style .football-live-book--no-score .football-live-book-title {
    grid-column: 1 / 4;
  }
  .football-page-league-live-style .football-live-book--no-score .football-live-book-markets-head {
    grid-column: 4 / 7;
  }
  .football-page-league-live-style .football-live-book--no-score .football-live-book-row {
    grid-template-columns: var(--live-fav-w) var(--live-meta-w) minmax(0, 1fr) var(--live-market-w) var(--live-market-w) var(--live-market-w) var(--live-more-w);
    grid-template-areas: "fav meta match home draw away more";
    min-height: 46px;
  }
  .football-page-league-live-style.football-live-all-section .football-live-book-meta {
    gap: 0;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 100%;
    padding: 3px 2px;
  }
  .football-page-league-live-style .football-page-league-schedule-meta .football-fixtures-date {
    font-size: 0.58rem;
    margin-bottom: 3px;
  }
  .football-page-league-live-style .football-page-league-schedule-meta .football-fixtures-time {
    font-size: 0.66rem;
  }
  .football-page-league-live-style .football-finished-status-badge {
    font-size: 0.48rem;
  }
  .football-page-league-live-style .football-finished-meta-cell {
    gap: 0;
  }
}

/* ── League page live-book: ≤480px ── */
@media (max-width: 480px) {
  .football-page-league-live-style.football-live-all-section .football-live-book {
    --live-fav-w: 28px;
    --live-meta-w: 40px;
    --live-score-w: 28px;
    --live-market-w: 40px;
    --live-more-w: 28px;
  }
  .football-page-league-live-style .football-live-book-team-line .football-fixtures-team {
    padding: 3px 5px;
    gap: 5px;
  }
  .football-page-league-live-style .football-live-book-team-line .football-fixtures-team-name {
    font-size: 0.62rem;
  }
  .football-page-league-live-style .football-live-book-team-line .football-fixtures-team-logo,
  .football-page-league-live-style .football-live-book-team-line .football-fixtures-team-logo-placeholder {
    width: 16px;
    height: 16px;
  }
  .football-page-league-live-style .football-live-book-market .football-live-tab-odds {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .football-page-league-live-style .football-page-league-schedule-meta .football-fixtures-date {
    font-size: 0.54rem;
    margin-bottom: 3px;
  }
  .football-page-league-live-style .football-page-league-schedule-meta .football-fixtures-time {
    font-size: 0.6rem;
  }
  .football-page-league-live-style .football-live-book-score-home,
  .football-page-league-live-style .football-live-book-score-away {
    font-size: 0.68rem;
    min-height: 18px;
  }
  .football-page-league-live-style .football-live-book-more .football-live-all-bets-icon {
    width: 26px;
    height: 26px;
  }
  .football-page-league-live-style .football-live-book-more .football-live-all-bets-inner {
    padding: 2px;
  }
  .football-page-league-live-style .football-live-book-row {
    min-height: 44px;
  }
  .football-page-league-live-style .football-live-book-row > * {
    min-height: 44px;
  }
  .football-page-league-live-style .football-live-book-title-text {
    font-size: 0.58rem;
  }
  .football-page-league-live-style .football-live-book-markets-head {
    font-size: 0.54rem;
  }
  .football-page-league-live-style .football-finished-status-badge {
    font-size: 0.44rem;
  }
  .football-date-group-separator {
    padding: 5px 8px;
  }
  .football-date-group-label {
    font-size: 0.68rem;
  }
}

/* ── League page live-book: ≤420px (מסכים צרים, כמו דף הבית) ── */
@media (max-width: 420px) {
  .football-page-league-live-style.football-live-all-section .football-live-book {
    --live-fav-w: 28px;
    --live-meta-w: 38px;
    --live-score-w: 28px;
    --live-market-w: 38px;
    --live-more-w: 30px;
  }

  .football-page-league-live-style .football-live-book-market .football-live-tab-odds {
    font-size: 0.63rem;
    font-weight: 800;
  }

  .football-page-league-live-style .football-live-book-team-line .football-fixtures-team-name {
    font-size: 0.6rem;
  }

  .football-page-league-live-style .football-live-book-team-line .football-fixtures-team {
    padding: 2px 4px;
    gap: 4px;
  }

  .football-page-league-live-style .football-live-book-team-line .football-fixtures-team-logo,
  .football-page-league-live-style .football-live-book-team-line .football-fixtures-team-logo-placeholder {
    width: 16px;
    height: 16px;
  }
}

/* ── League page live-book: ≤360px (ultra-compact) ── */
@media (max-width: 360px) {
  .football-page-league-live-style.football-live-all-section .football-live-book {
    --live-fav-w: 26px;
    --live-meta-w: 36px;
    --live-score-w: 26px;
    --live-market-w: 34px;
    --live-more-w: 26px;
  }
  .football-page-league-live-style .football-favorite-toggle--row {
    width: 24px;
    height: 24px;
  }
  .football-page-league-live-style .football-favorite-toggle--row .football-favorite-star {
    width: 0.95rem;
    height: 0.95rem;
  }
  .football-page-league-live-style .football-live-book-team-line .football-fixtures-team-name {
    font-size: 0.56rem;
  }
  .football-page-league-live-style .football-live-book-team-line .football-fixtures-team-logo,
  .football-page-league-live-style .football-live-book-team-line .football-fixtures-team-logo-placeholder {
    width: 14px;
    height: 14px;
  }
  .football-page-league-live-style .football-live-book-team-line .football-fixtures-team {
    padding: 2px 4px;
    gap: 4px;
  }
  .football-page-league-live-style .football-live-book-market .football-live-tab-odds {
    font-size: 0.64rem;
  }
  .football-page-league-live-style .football-page-league-schedule-meta .football-fixtures-date {
    font-size: 0.5rem;
    margin-bottom: 2px;
  }
  .football-page-league-live-style .football-page-league-schedule-meta .football-fixtures-time {
    font-size: 0.54rem;
  }
  .football-page-league-live-style .football-live-book-score-home,
  .football-page-league-live-style .football-live-book-score-away {
    font-size: 0.62rem;
    min-height: 16px;
  }
  .football-page-league-live-style .football-live-book-more .football-live-all-bets-icon {
    width: 24px;
    height: 24px;
  }
  .football-page-league-live-style .football-live-book-row {
    min-height: 40px;
  }
  .football-page-league-live-style .football-live-book-row > * {
    min-height: 40px;
  }
  .football-page-league-live-style .football-live-book-title-text {
    font-size: 0.52rem;
  }
  .football-page-league-live-style .football-live-book-title-logo,
  .football-page-league-live-style .football-live-book-title-logo--placeholder {
    width: 14px;
    height: 14px;
  }
  .football-page-league-live-style .football-live-book-head {
    min-height: 28px;
  }
  .football-page-league-live-style .football-live-book-markets-head {
    font-size: 0.48rem;
  }
  .football-page-league-live-style .football-finished-status-badge {
    font-size: 0.4rem;
  }
}

/* ═══════════════════════════════════════════════════════════
 *  Odds panel – single fixture page (football.php)
 * ═══════════════════════════════════════════════════════════ */
.football-odds-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0;
}

/* טאבי קטגוריות שווקים — רוחב מלא + הפרדה בין טאבים */
.football-odds-market-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  gap: 2px;
  padding: 4px 2px 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}
.football-odds-market-tabs::-webkit-scrollbar {
  height: 4px;
}
.football-odds-market-tab {
  flex: 1 1 0;
  min-width: 3.5rem;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 4px 4px 0 0;
  margin: 0;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #9ca3af;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.football-odds-market-tab:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.07);
}
.football-odds-market-tab.is-active {
  color: #fff;
  border-bottom-color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}
.football-odds-bet-group--tab-filtered {
  display: none !important;
}

/* טאבי שווקים + פאנל הימורים b365 — מובייל */
@media (max-width: 640px) {
  .football-odds-market-tabs {
    justify-content: flex-start;
    gap: 4px;
    padding: 4px 10px 0;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 10px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .football-odds-market-tab {
    flex: 0 0 auto;
    min-width: auto;
    padding: 8px 12px;
    font-size: 0.72rem;
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
  }
  .football-odds-panel--b365 .football-odds-bet-header--group {
    padding: 9px 10px;
    gap: 6px;
  }
  .football-odds-panel--b365 .football-odds-bet-title-end {
    max-width: calc(100% - 92px);
  }
  .football-odds-panel--b365 .football-odds-bet-name {
    font-size: 0.78rem;
  }
  .football-odds-panel--b365 .football-odds-bet-period-badge {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 6px;
    font-size: 0.64rem;
  }
  .football-odds-panel--b365 .football-odds-bet-desc {
    padding: 6px 10px 8px;
    font-size: 0.7rem;
  }
  .football-odds-panel--b365 .football-odds-table--b365-picks .football-odds-table-cell {
    padding: 8px 6px;
    min-height: 40px;
  }
  .football-odds-panel--b365 .football-odds-pick-inline {
    font-size: 0.72rem;
  }
  .football-odds-panel--b365 .football-odds-value-odd {
    font-size: 0.86rem;
  }
  .football-odds-score-toolbar {
    padding: 6px 10px 0;
  }
  .football-odds-score-modes {
    min-width: 116px;
  }
  .football-odds-score-mode {
    font-size: 0.68rem;
    padding: 5px 10px;
  }
  .football-odds-score-picker-body {
    padding: 8px 10px 10px;
  }
  .football-odds-score-b365[data-score-mode="picker"] .football-odds-score-pick {
    flex: 0 0 92px;
    padding: 5px 8px;
    margin-inline-start: 8px;
  }
  .football-odds-score-b365[data-score-mode="picker"] .football-odds-score-pick-cell .football-odds-value-odd {
    font-size: 0.95rem;
  }
  .football-odds-score-stepper {
    padding: 4px 6px;
  }
  .football-odds-score-stepper-name {
    font-size: 0.7rem;
  }
  .football-odds-score-stepper-controls {
    max-width: 100%;
  }
  .football-odds-score-step {
    flex: 0 0 32px;
    min-height: 34px;
    font-size: 1rem;
  }
  .football-odds-score-stepper-val {
    font-size: 0.88rem;
  }
}

@media (max-width: 400px) {
  .football-odds-market-tabs {
    gap: 3px;
    padding: 3px 8px 0;
    scroll-padding-inline: 8px;
  }
  .football-odds-market-tab {
    padding: 7px 10px;
    font-size: 0.66rem;
    border-bottom-width: 2px;
    border-radius: 3px 3px 0 0;
  }
  .football-odds-panel--b365 .football-odds-bet-title-end {
    max-width: calc(100% - 76px);
    gap: 4px;
  }
  .football-odds-panel--b365 .football-odds-bet-chevron {
    width: 10px;
    height: 10px;
  }
  .football-odds-panel--b365 .football-odds-bet-chevron-svg {
    width: 10px;
    height: 10px;
  }
  .football-odds-panel--b365 .football-odds-bet-name {
    font-size: 0.74rem;
  }
  .football-odds-panel--b365 .football-odds-bet-period-badge {
    max-width: 5.5rem;
    font-size: 0.58rem;
    padding: 2px 5px;
  }
}

/* bet365-style: מקצה לקצה, RTL, חץ ליד יחס, סליידר תוצאה מדויקת */
.football-odds-panel--b365 {
  gap: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  background: #1a1a1a;
  border-radius: 0;
}
.football-odds-panel--b365 .football-odds-bet-group--b365 {
  background: #1e1e1e;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  margin: 0;
  width: 100%;
}
.football-odds-panel--b365 .football-odds-bet-group--b365 + .football-odds-bet-group--b365 {
  border-top: 1px solid #333;
}
.football-odds-panel--b365 .football-odds-bet-toggle {
  width: 100%;
  border: none;
  margin: 0;
  cursor: pointer;
  text-align: inherit;
  font: inherit;
  color: inherit;
}
.football-odds-panel--b365 .football-odds-bet-header--group {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #2a2a2a;
  border-bottom: 1px solid #333;
  padding: 10px 12px;
}
.football-odds-panel--b365 .football-odds-bet-header--group:hover {
  background: #323232;
}
/* RTL: ימין — שם + חץ | שמאל — תגית (90 דקות וכו') */
.football-odds-panel--b365 .football-odds-bet-title-end {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-shrink: 1;
  min-width: 0;
  max-width: calc(100% - 120px);
}
.football-odds-panel--b365 .football-odds-bet-name {
  min-width: 0;
  color: #f3f4f6;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* חץ SVG סימטרי — viewBox 12×12, קודקס במרכז (6,6) */
.football-odds-panel--b365 .football-odds-bet-chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  color: #9ca3af;
  line-height: 0;
}
.football-odds-panel--b365 .football-odds-bet-chevron-svg {
  display: block;
  width: 12px;
  height: 12px;
  transform-origin: 50% 50%;
  transition: transform 0.2s ease;
}
.football-odds-panel--b365 .football-odds-bet-period-badge {
  flex-shrink: 0;
}
.football-odds-panel--b365 .football-odds-bet-header-spacer {
  display: none;
}
.football-odds-panel--b365 .football-odds-bet-toggle[aria-expanded="false"] .football-odds-bet-chevron-svg {
  transform: rotate(180deg);
}
.football-odds-panel--b365 .football-odds-bet-group--b365.is-collapsed .football-odds-bet-body {
  display: none;
}
.football-odds-panel--b365 .football-odds-bet-desc {
  background: #222;
  border-bottom: 1px solid #333;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  padding: 6px 12px 8px;
  margin: 0;
}
.football-odds-panel--b365 .football-odds-bet-header--bookmaker {
  display: none;
}
.football-odds-panel--b365 .football-odds-table-head {
  background: #2a2a2a;
  border-bottom: 1px solid #333;
  padding: 6px 8px;
}
.football-odds-panel--b365 .football-odds-table-col-head {
  background: transparent;
  border-radius: 0;
  color: #9ca3af;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 4px 2px;
}
.football-odds-panel--b365 .football-odds-table--b365-picks .football-odds-table-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-bottom: none;
}
.football-odds-panel--b365 .football-odds-table--b365-picks.football-odds-table--cols-2 .football-odds-table-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.football-odds-panel--b365 .football-odds-table--b365-picks .football-odds-table-cell {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 10px 6px;
  border-radius: 0;
  border: none;
  border-inline-start: 1px solid #333;
  background: #262626;
}
.football-odds-panel--b365 .football-odds-table--b365-picks .football-odds-table-cell:first-child {
  border-inline-start: none;
}
.football-odds-panel--b365 .football-odds-pick-inline {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52%;
  text-align: right;
  margin: 0;
}
.football-odds-panel--b365 .football-odds-table-cell--b365-pick .football-odds-pick-inline + .football-odds-value-line {
  margin: 0;
}
.football-odds-panel--b365 .football-odds-table--matrix .football-odds-table-row {
  padding: 0;
  border-bottom: 1px solid #333;
  gap: 0;
}
.football-odds-panel--b365 .football-odds-table--matrix .football-odds-table-row:last-child {
  border-bottom: none;
}
/* תאים צמודים עם מפריד דק אחיד — מבטל את הרווח הכהה הפתאומי בין הבחירות */
.football-odds-panel--b365 .football-odds-table--matrix .football-odds-table-cell {
  border-inline-start: 1px solid #333;
}
.football-odds-panel--b365 .football-odds-table--matrix .football-odds-table-cell:first-child,
.football-odds-panel--b365 .football-odds-table--matrix .football-odds-table-hcap {
  border-inline-start: none;
}
/* ראש הטבלה צמוד לתאים שמתחתיו (יישור עמודות מלא) */
.football-odds-panel--b365 .football-odds-table--matrix .football-odds-table-head {
  padding: 0;
}
.football-odds-panel--b365 .football-odds-table--matrix .football-odds-table-col-head {
  padding: 6px 4px;
  border-inline-start: 1px solid #333;
}
.football-odds-panel--b365 .football-odds-table--matrix .football-odds-table-col-head:first-child {
  border-inline-start: none;
}
.football-odds-panel--b365 .football-odds-table-hcap {
  background: #242424;
  border: none;
  border-radius: 0;
  color: #d1d5db;
  font-size: 0.7rem;
}
.football-odds-panel--b365 .football-odds-table-hcap-col {
  padding: 6px 4px;
}
.football-odds-panel--b365 .football-odds-table-cell,
.football-odds-panel--b365 .football-odds-value-cell {
  background: #2d2d2d;
  border: none;
  border-radius: 0;
  min-height: 40px;
  position: relative;
  overflow: visible;
}
.football-odds-panel--b365 .football-odds-table-cell:hover,
.football-odds-panel--b365 .football-odds-value-cell:hover {
  background: #383838;
  border-color: #4a4a4a;
}
.football-odds-panel--b365 .football-odds-values {
  padding: 0;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}
.football-odds-panel--b365 .football-odds-values--cards .football-odds-value-cell {
  border-radius: 0;
  border-inline-start: 1px solid #333;
  border-block-end: 1px solid #333;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding-inline: 6px;
}
.football-odds-panel--b365 .football-odds-values--cards .football-odds-value-cell:first-child {
  border-inline-start: none;
}
.football-odds-panel--b365 .football-odds-value-label {
  color: #e5e7eb;
  font-size: 0.76rem;
  font-weight: 600;
  margin: 0;
}
.football-odds-panel--b365 .football-odds-table-cell .football-odds-value-label,
.football-odds-panel--b365 .football-odds-value-cell .football-odds-value-label {
  margin-bottom: 0;
}
.football-odds-panel--b365 .football-odds-value-odd {
  color: #ffdf1b;
  font-size: 0.92rem;
  font-weight: 700;
}
/* תוצאה מדויקת — בורר +/- + תצוגת "הכל" */
.football-odds-score-b365 {
  width: 100%;
  background: #262626;
}

/* סרגל עליון — מתג בורר/הכל בפינה (כמו bet365 Slider | All) */
.football-odds-score-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 12px 0;
}

.football-odds-score-modes {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 2px;
  background: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 999px;
  isolation: isolate;
  min-width: 128px;
}

.football-odds-score-modes-thumb {
  position: absolute;
  top: 2px;
  bottom: 2px;
  inline-size: calc(50% - 2px);
  inset-inline-start: 2px;
  border-radius: 999px;
  background: #3a3a3a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  z-index: 0;
  transition: inset-inline-start 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.football-odds-score-b365[data-score-mode="all"] .football-odds-score-modes-thumb {
  inset-inline-start: 50%;
}

.football-odds-score-mode {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  color: #8b929a;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.football-odds-score-mode:hover {
  color: #cbd5e1;
}

.football-odds-score-mode.is-active {
  color: #fff;
}

/* ====== מצב "בורר" — שורה אופקית: בית | חוץ | יחס ====== */
.football-odds-score-picker-body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 10px 12px 12px;
  border-bottom: 1px solid #333;
}

.football-odds-score-b365[data-score-mode="all"] .football-odds-score-picker-body {
  flex-direction: column;
  padding: 0;
  border-bottom: none;
}

.football-odds-score-steppers {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  border-bottom: none;
}

.football-odds-score-b365[data-score-mode="all"] .football-odds-score-steppers {
  display: none;
}

.football-odds-score-stepper {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 10px;
}

.football-odds-score-stepper--home {
  border-inline-end: 1px solid #383838;
}

.football-odds-score-stepper-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: #e5e7eb;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.football-odds-score-stepper-controls {
  display: inline-flex;
  align-items: stretch;
  width: 100%;
  max-width: 140px;
  background: transparent;
  border: 1px solid #525252;
  border-radius: 4px;
  overflow: hidden;
}

.football-odds-score-step {
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: none;
  background: #2a2a2a;
  color: #22c55e;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.football-odds-score-step span {
  display: block;
  transform: translateY(-1px);
}

.football-odds-score-step:hover {
  background: #353535;
  color: #4ade80;
}

.football-odds-score-step:active {
  background: #404040;
}

.football-odds-score-step--minus {
  border-inline-end: 1px solid #525252;
}

.football-odds-score-step--plus {
  border-inline-start: 1px solid #525252;
}

.football-odds-score-stepper-val {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 0 4px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f3f4f6;
  font-variant-numeric: tabular-nums;
  background: #222;
  direction: ltr;
  unicode-bidi: isolate;
}

/* תיבת תוצאה + יחס — צד שמאל ב-RTL */
.football-odds-score-pick {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  margin: 0;
}

.football-odds-score-b365[data-score-mode="picker"] .football-odds-score-pick {
  flex: 0 0 108px;
  gap: 2px;
  padding: 6px 10px;
  margin-inline-start: 10px;
  border-inline-start: 1px solid #383838;
  background: #1e1e1e;
  border: 1px solid #525252;
  border-radius: 4px;
  box-sizing: border-box;
}

.football-odds-score-result-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
}

.football-odds-score-b365[data-score-mode="all"] .football-odds-score-result-box {
  display: none;
}

.football-odds-score-pick-display {
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: 0;
}

.football-odds-score-pick-odd {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}

.football-odds-score-b365[data-score-mode="picker"] .football-odds-score-pick-odd {
  min-height: 28px;
}

.football-odds-score-pick-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.football-odds-score-b365[data-score-mode="picker"] .football-odds-score-pick-cell {
  width: 100%;
}

.football-odds-score-b365[data-score-mode="picker"] .football-odds-score-pick-cell .football-odds-value-odd {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffdf1b;
}

.football-odds-score-pick-cell[hidden] {
  display: none !important;
}

.football-odds-score-pick-empty {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.2;
}

.football-odds-score-b365[data-score-mode="picker"] .football-odds-score-pick-empty {
  font-size: 0.68rem;
  padding: 2px 0 0;
  margin-top: 2px;
}

.football-odds-score-b365[data-score-mode="all"] .football-odds-score-pick-empty {
  padding: 8px 10px 0;
}
/* תווית התוצאה בתוך תא — מוצגת רק במצב "הכל" */
.football-odds-score-cell-label {
  display: none;
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
/* ====== מצב "בורר" — העמודות משתטחות, מוצג תא בודד ממורכז ====== */
.football-odds-score-b365[data-score-mode="picker"] .football-odds-score-col,
.football-odds-score-b365[data-score-mode="picker"] .football-odds-score-col-body {
  display: contents;
}
.football-odds-score-b365[data-score-mode="picker"] .football-odds-score-col-head {
  display: none;
}
/* ====== מצב "הכל" — 3 עמודות: בית (ימין) · תיקו · חוץ (שמאל) ====== */
.football-odds-score-b365[data-score-mode="all"] .football-odds-score-pick {
  flex: 1 1 100%;
  width: 100%;
  padding: 10px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  align-items: stretch;
}

.football-odds-score-b365[data-score-mode="all"] .football-odds-score-pick-odd {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  align-items: start;
}

.football-odds-score-b365[data-score-mode="all"] .football-odds-score-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #181818;
}

.football-odds-score-b365[data-score-mode="all"] .football-odds-score-col--home {
  border-color: rgba(34, 197, 94, 0.22);
}

.football-odds-score-b365[data-score-mode="all"] .football-odds-score-col--draw {
  border-color: rgba(245, 197, 24, 0.22);
}

.football-odds-score-b365[data-score-mode="all"] .football-odds-score-col--away {
  border-color: rgba(59, 130, 246, 0.22);
}

/* כותרות — פס צבעוני מודגש */
.football-odds-score-b365[data-score-mode="all"] .football-odds-score-col-head {
  display: block;
  padding: 9px 7px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: #2e2e2e;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.football-odds-score-b365[data-score-mode="all"] .football-odds-score-col--home .football-odds-score-col-head {
  background: #1e4d36;
  border-bottom-color: #22c55e;
  color: #bbf7d0;
}

.football-odds-score-b365[data-score-mode="all"] .football-odds-score-col--draw .football-odds-score-col-head {
  background: #4a3f14;
  border-bottom-color: #f5c518;
  color: #fef3c7;
}

.football-odds-score-b365[data-score-mode="all"] .football-odds-score-col--away .football-odds-score-col-head {
  background: #1e3a5f;
  border-bottom-color: #3b82f6;
  color: #dbeafe;
}

/* גוף העמודה — רקע ניטרלי כהה, ללא גוון צבע */
.football-odds-score-b365[data-score-mode="all"] .football-odds-score-col-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  background: #141414;
}

/* תאי בחירה — אפורים ניטרליים, נפרדים מהכותרת */
.football-odds-score-b365[data-score-mode="all"] .football-odds-score-pick-cell {
  min-width: 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 6px;
  background: #262626;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.football-odds-score-b365[data-score-mode="all"] .football-odds-score-pick-cell:hover {
  background: #303030;
  border-color: rgba(255, 223, 27, 0.4);
}

.football-odds-score-b365[data-score-mode="all"] .football-odds-score-cell-label {
  display: block;
  color: #d1d5db;
  font-weight: 700;
  font-size: 0.76rem;
}

.football-odds-score-b365[data-score-mode="all"] .football-odds-score-pick-cell .football-odds-value-odd {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffdf1b;
}
/* עמודה ריקה (ללא בחירות) — שומרת מבנה אך מציגה מציין ריק */
.football-odds-score-b365[data-score-mode="all"] .football-odds-score-col-body:empty::after {
  content: "—";
  display: block;
  text-align: center;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}
.football-odds-panel--b365 .football-single-fixture-slip-root .football-odds-table-cell.football-odds-cell--slip,
.football-odds-panel--b365 .football-single-fixture-slip-root .football-odds-value-cell.football-odds-cell--slip {
  background: rgba(0, 168, 84, 0.18) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 200, 100, 0.45);
}

.football-odds-panel--b365 .football-odds-value-line {
  gap: 3px;
}
.football-odds-value-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  flex-shrink: 0;
}
.football-odds-trend {
  display: none;
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-style: solid;
  pointer-events: none;
  vertical-align: middle;
}
.football-odds-trend.is-visible {
  display: inline-block;
}
.football-odds-trend--up.is-visible {
  border-width: 0 4px 5px 4px;
  border-color: transparent transparent #22c55e transparent;
}
.football-odds-trend--down.is-visible {
  border-width: 5px 4px 0 4px;
  border-color: #ef4444 transparent transparent transparent;
}
.football-odds-panel--b365 .football-odds-table-cell:has(.football-odds-value-odd--flash-up),
.football-odds-panel--b365 .football-odds-value-cell:has(.football-odds-value-odd--flash-up) {
  background: rgba(34, 197, 94, 0.12);
}
.football-odds-panel--b365 .football-odds-table-cell:has(.football-odds-value-odd--flash-down),
.football-odds-panel--b365 .football-odds-value-cell:has(.football-odds-value-odd--flash-down) {
  background: rgba(239, 68, 68, 0.1);
}
.football-odds-panel--b365 .football-odds-value-odd--flash-up {
  animation: oddsFlashUp 2.2s ease-out;
}
.football-odds-panel--b365 .football-odds-value-odd--flash-down {
  animation: oddsFlashDown 2.2s ease-out;
}

.football-odds-bet-group {
  background:
    radial-gradient(circle at 0 0, rgba(245, 197, 24, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(24, 27, 36, 0.96), rgba(12, 14, 21, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}
.football-odds-bet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.football-odds-bet-header--group {
  background:
    linear-gradient(135deg, rgba(245, 197, 24, 0.18), rgba(255, 255, 255, 0.055)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  border-bottom-color: rgba(245, 197, 24, 0.22);
}
.football-odds-bet-header--bookmaker {
  justify-content: flex-start;
  padding: 8px 16px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
.football-odds-bet-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: #f5c518;
  letter-spacing: -0.01em;
}
.football-odds-bet-period-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a1a1a;
  background: rgba(245, 197, 24, 0.92);
  white-space: nowrap;
}
.football-odds-bet-desc {
  margin: 0;
  padding: 8px 16px 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.football-odds-bk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.football-odds-bookmaker {
  overflow: hidden;
}
.football-odds-bookmaker + .football-odds-bookmaker {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.football-odds-bookmaker-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
}
.football-odds-bookmaker-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.64);
}

/* ── Structured odds matrix ── */
.football-odds-table {
  width: 100%;
}
.football-odds-table-head {
  display: grid;
  padding: 7px 12px;
  gap: 8px;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}
.football-odds-table--matrix .football-odds-table-row {
  display: grid;
  align-items: stretch;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  transition: background 0.15s;
}
.football-odds-table--cols-3:not(.football-odds-table--with-row-label) .football-odds-table-head,
.football-odds-table--cols-3:not(.football-odds-table--with-row-label) .football-odds-table-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.football-odds-table--cols-2:not(.football-odds-table--with-row-label) .football-odds-table-head,
.football-odds-table--cols-2:not(.football-odds-table--with-row-label) .football-odds-table-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.football-odds-table--cols-3.football-odds-table--with-row-label .football-odds-table-head,
.football-odds-table--cols-3.football-odds-table--with-row-label .football-odds-table-row {
  grid-template-columns: minmax(54px, 0.52fr) repeat(3, minmax(0, 1fr));
}
.football-odds-table--cols-2.football-odds-table--with-row-label .football-odds-table-head,
.football-odds-table--cols-2.football-odds-table--with-row-label .football-odds-table-row {
  grid-template-columns: minmax(54px, 0.52fr) repeat(2, minmax(0, 1fr));
}
.football-odds-table-col-head {
  min-width: 0;
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.66);
  text-align: center;
  letter-spacing: 0.01em;
  padding: 5px 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.football-odds-table-col-head--home,
.football-odds-table-col-head--over,
.football-odds-table-col-head--yes {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.13), rgba(255, 255, 255, 0.04));
}
.football-odds-table-col-head--draw,
.football-odds-table-col-head--exactly {
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.14), rgba(255, 255, 255, 0.04));
}
.football-odds-table-col-head--away,
.football-odds-table-col-head--under,
.football-odds-table-col-head--no {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(255, 255, 255, 0.04));
}
.football-odds-table-hcap-col {
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  align-self: center;
}
.football-odds-table-row:last-child {
  border-bottom: none;
}
.football-odds-table-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.football-odds-table-hcap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 9px;
  padding: 7px 4px;
  min-height: 38px;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}
.football-odds-table-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 38px;
  padding: 7px 8px;
  text-align: center;
  cursor: default;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.football-odds-table-cell:hover {
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.12), rgba(245, 197, 24, 0.045));
  border-color: rgba(245, 197, 24, 0.25);
}
.football-odds-cell--locked,
.football-odds-table-cell--suspended {
  cursor: not-allowed !important;
  opacity: 0.52;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.48);
}
.football-odds-cell--locked:hover,
.football-odds-table-cell--suspended:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
}
.football-odds-cell--locked .football-odds-value-odd,
.football-odds-table-cell--suspended .football-odds-value-odd {
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* דף משחק בודד – בחירת יחס לטופס */
.football-single-fixture-slip-root .football-odds-table-cell:not(.football-odds-cell--locked):not(.football-odds-table-cell--suspended),
.football-single-fixture-slip-root .football-odds-value-cell:not(.football-odds-cell--locked) {
  cursor: pointer;
}
.football-single-fixture-slip-root .football-odds-table-cell.football-odds-cell--slip,
.football-single-fixture-slip-root .football-odds-value-cell.football-odds-cell--slip {
  background: rgba(245, 197, 24, 0.16) !important;
  box-shadow: inset 0 0 0 1px rgba(245, 197, 24, 0.42);
}

/* ── Flex layout (fallback for many values) ── */
.football-odds-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  padding: 12px;
}
.football-odds-value-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.football-odds-value-cell:hover {
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.12), rgba(245, 197, 24, 0.045));
  border-color: rgba(245, 197, 24, 0.25);
}
.football-odds-value-label {
  max-width: 100%;
  font-size: 0.69rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 2px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.football-odds-value-odd {
  font-size: 0.95rem;
  font-weight: 850;
  color: #f5d74f;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}
.football-odds-score-label {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.72);
}

.football-odds-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}
.football-odds-score-col {
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(0, 0, 0, 0.12);
}
.football-odds-score-col--home {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.1), rgba(255, 255, 255, 0.022));
}
.football-odds-score-col--draw {
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.1), rgba(255, 255, 255, 0.022));
}
.football-odds-score-col--away {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), rgba(255, 255, 255, 0.022));
}
.football-odds-score-col-head {
  padding: 8px 7px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.football-odds-score-col-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 7px;
  padding: 8px;
}
.football-odds-value-cell--score {
  min-height: 44px;
  padding: 7px 6px;
}
.football-odds-value-odd--flash-up {
  animation: oddsFlashUp 2s ease-out;
}
.football-odds-value-odd--flash-down {
  animation: oddsFlashDown 2s ease-out;
}

@media (max-width: 600px) {
  .football-odds-panel {
    gap: 12px;
  }
  .football-odds-values {
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    gap: 6px;
    padding: 8px;
  }
  .football-odds-value-cell {
    min-height: 38px;
    padding: 6px 7px;
  }
  .football-odds-value-odd {
    font-size: 0.85rem;
  }
  .football-odds-bet-header {
    padding: 8px 12px;
    flex-wrap: wrap;
  }
  .football-odds-table-head,
  .football-odds-table-row {
    gap: 5px;
  }
  .football-odds-table-head {
    padding: 5px 7px;
  }
  .football-odds-table--matrix .football-odds-table-row {
    padding: 6px 7px;
    gap: 5px;
  }
  .football-odds-table-cell {
    min-height: 36px;
    padding: 6px 4px;
  }
  .football-odds-table-hcap {
    min-height: 36px;
    font-size: 0.64rem;
  }
  .football-odds-table--cols-3.football-odds-table--with-row-label .football-odds-table-head,
  .football-odds-table--cols-3.football-odds-table--with-row-label .football-odds-table-row {
    grid-template-columns: 42px repeat(3, minmax(0, 1fr));
  }
  .football-odds-table--cols-2.football-odds-table--with-row-label .football-odds-table-head,
  .football-odds-table--cols-2.football-odds-table--with-row-label .football-odds-table-row {
    grid-template-columns: 42px repeat(2, minmax(0, 1fr));
  }
  .football-odds-table-col-head {
    font-size: 0.62rem;
    padding: 4px 3px;
  }
  .football-odds-value-label {
    font-size: 0.62rem;
  }
  .football-odds-score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px;
    gap: 6px;
  }
  .football-odds-score-col-head {
    padding: 6px 4px;
    font-size: 0.58rem;
  }
  .football-odds-score-col-body {
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
    gap: 5px;
    padding: 5px;
  }
  .football-odds-value-cell--score {
    min-height: 38px;
    padding: 5px 4px;
  }
}

/* League + season: live-book layout (matches homepage live block) */
.football-page .football-page-league-live-style.football-live-all-section {
  margin-top: 0.75rem;
  width: 100%;
  max-width: 100%;
}
/* דף ליגה: מטא – ממורכז גם אופקית וגם אנכית בתוך תא הגריד */
.football-page-league-live-style.football-live-all-section .football-live-book-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-content: center;
  text-align: center;
  gap: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
  box-sizing: border-box;
  padding: 4px 3px;
  overflow: hidden;
}
.football-page-league-schedule-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-variant-numeric: tabular-nums;
}
.football-page-league-schedule-meta .football-fixtures-date {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  margin-bottom: 3px;
  white-space: nowrap;
}
.football-page-league-schedule-meta .football-fixtures-time {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}
.football-page-league-live-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.2;
  text-align: center;
  align-self: center;
}
.football-page-league-live-style .football-live-book-odds-head {
  font-size: 0.7rem;
}

/* דף ליגה: ללא עמודת תוצאה (1–2 / תוצאה) */
.football-page-league-live-style .football-live-book--no-score .football-live-book-head {
  grid-template-columns: var(--live-fav-w) var(--live-meta-w) minmax(0, 1fr) var(--live-market-w) var(--live-market-w) var(--live-market-w) var(--live-more-w);
}
.football-page-league-live-style .football-live-book--no-score .football-live-book-title {
  grid-column: 1 / 4;
}
.football-page-league-live-style .football-live-book--no-score .football-live-book-markets-head {
  grid-column: 4 / 7;
}
.football-page-league-live-style .football-live-book--no-score .football-live-book-row {
  grid-template-columns: var(--live-fav-w) var(--live-meta-w) minmax(0, 1fr) var(--live-market-w) var(--live-market-w) var(--live-market-w) var(--live-more-w);
  grid-template-areas: "fav meta match home draw away more";
}

/* ===== finished row — same grid as live, without odds columns ===== */
.football-page-league-live-style .football-live-book--no-score .football-live-book-row.football-fixtures-row--finished {
  grid-template-columns: var(--live-fav-w) var(--live-meta-w) minmax(0, 1fr) var(--live-score-w) var(--live-more-w) !important;
  grid-template-areas: "fav meta match score more" !important;
}
.football-page-league-live-style .football-live-book--favorites-finished .football-live-book-head {
  grid-template-columns: 1fr;
}
.football-page-league-live-style .football-live-book--favorites-finished .football-live-book-title {
  grid-column: 1 / -1;
}
.football-fixtures-row--finished .football-finished-meta-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.football-finished-status-badge {
  font-size: 0.56rem;
  font-weight: 600;
  color: rgba(130, 200, 255, 0.75);
  white-space: nowrap;
  line-height: 1.2;
  margin-top: 1px;
}
.football-finished-score-cell {
  grid-area: score;
}

/* live score in league page */
.football-league-live-score {
  grid-area: score;
  display: flex;
  align-items: center;
  justify-content: center;
}
.football-page-league-live-style .football-live-book--no-score .football-live-book-row.football-fixtures-row--live {
  grid-template-columns: var(--live-fav-w) var(--live-meta-w) minmax(0, 1fr) var(--live-score-w) var(--live-market-w) var(--live-market-w) var(--live-market-w) var(--live-more-w);
  grid-template-areas: "fav meta match score home draw away more";
}

@media (max-width: 480px) {
  .football-page-league-live-style .football-favorite-toggle--row {
    width: 24px;
    height: 24px;
  }

  .football-finished-status-badge {
    font-size: 0.5rem;
  }
}

/* דף ליגה: בלי "קופסה כפולה" – רק כרטיס הספר */
.football-fixtures-wrap--league-hub {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.football-page--league-hub .football-page-header {
  margin-bottom: 0.5rem;
}
.football-league-hub-cols {
  align-items: stretch;
}
.football-league-hub-side .index-my-form-block {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .football-league-hub-cols.index-home-hub {
    margin-inline: calc(-1 * var(--space-x-sm, 16px));
    width: calc(100% + 2 * var(--space-x-sm, 16px));
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .football-live-pill-dot,
  .football-events-timeline-marker-time,
  .football-fixtures-row--live,
  .football-fixtures-team-name-wrap.football-goal-flash,
  .football-fixtures-team-name-wrap.football-redcard-flash,
  .football-fixtures-team-name-wrap.football-yellowcard-flash,
  .football-live-tab-odds--flash-up,
  .football-live-tab-odds--flash-down {
    animation: none;
    transition: none;
  }
}

/* ========== משחק בודד — כיווץ רציף מקושר לגלילה (--dock-p 0→1) ==========
 * רק אזור הקבוצות מתכווץ; טאבי המשחק ושורת הכל/שערים נשארים מלאים.
 * הפריסה (grid + עמודה לכל קבוצה) נשמרת לכל אורך הכיווץ — רק הגדלים
 * משתנים בהדרגה, ללא החלפת פריסה ובלי transition, כדי למנוע קפיצות. */
.football-single-match-sticky-head .football-single-match-teams {
  padding: calc(8px + 18px * (1 - var(--dock-p))) calc(10px + 12px * (1 - var(--dock-p)));
  min-height: calc(46px + 76px * (1 - var(--dock-p)));
  gap: calc(8px + 12px * (1 - var(--dock-p)));
}

.football-single-match-sticky-head .football-single-match-team {
  gap: calc(3px + 7px * (1 - var(--dock-p)));
}

.football-single-match-sticky-head .football-single-match-team-logo,
.football-single-match-sticky-head .football-single-match-team-logo--placeholder {
  width: calc(26px + 22px * (1 - var(--dock-p))) !important;
  height: calc(26px + 22px * (1 - var(--dock-p))) !important;
}

.football-single-match-sticky-head .football-single-match-team-name {
  font-size: calc(0.74rem + 0.21rem * (1 - var(--dock-p))) !important;
}

.football-single-match-sticky-head .football-single-match-team-score {
  font-size: calc(1.05rem + 0.7rem * (1 - var(--dock-p))) !important;
  margin-top: calc(6px * (1 - var(--dock-p)));
}

/* תג בית/חוץ — נעלם בהדרגה בכיווץ */
.football-single-match-sticky-head .football-single-match-team-side {
  opacity: calc(1 - var(--dock-p));
  max-height: calc(1.4em * (1 - var(--dock-p)));
  margin-top: calc(-4px * (1 - var(--dock-p)));
  overflow: hidden;
}

/* בלוק התוצאה האמצעי */
.football-single-match-sticky-head .football-single-match-score-wrap {
  padding: calc(4px + 8px * (1 - var(--dock-p))) calc(8px + 12px * (1 - var(--dock-p)));
  min-width: calc(48px + 52px * (1 - var(--dock-p)));
  gap: calc(2px + 4px * (1 - var(--dock-p)));
}

.football-single-match-sticky-head .football-single-match-vs {
  font-size: calc(0.78rem + 0.32rem * (1 - var(--dock-p)));
}

.football-single-match-sticky-head .football-single-match-status {
  font-size: calc(0.6rem + 0.15rem * (1 - var(--dock-p)));
  padding: calc(1px + 1px * (1 - var(--dock-p))) calc(5px + 3px * (1 - var(--dock-p)));
}

/* מצב חי — תג LIVE + דקה מתכווצים יחד עם הכותרת */
.football-single-match-sticky-head .football-single-match-live-badge {
  font-size: calc(0.55rem + 0.15rem * (1 - var(--dock-p)));
}

.football-single-match-sticky-head .football-single-match-minute {
  font-size: calc(0.62rem + 0.18rem * (1 - var(--dock-p)));
}
