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

.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: hidden;
  padding: 0;
  box-sizing: border-box;
}

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

.football-single-match-league {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.football-single-match-league-logo {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.football-single-match-league-name {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

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

.football-single-match-country-flag {
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
}

.football-single-match-datetime {
  margin: 6px 0 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.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-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;
}

.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;
}

.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 {
  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 {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  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-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.football-single-match-tab {
  flex: 1 1 0;
  min-width: 0;
  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: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-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: 52px 20px;
  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;
}

/* 45' – סוף מחצית ראשונה / תחילת מחצית שנייה */
.football-events-timeline-label--mid {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
}

/* 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);
}

/* 90' – סוף הציר (קצה שמאל). כשיש 90+ מוצג על גבול האזור */
.football-events-timeline-label--end {
  position: absolute;
  left: 0;
  transform: translateX(0);
  margin-inline-start: 0;
  right: auto;
}

.football-events-timeline-labels.has-90-plus .football-events-timeline-label--end {
  left: 16%;
  transform: translateX(-50%);
}

/* 90+ – תוספת זמן מחצית שנייה – מסגרת/צבע כתום כהה */
.football-events-timeline-label--overtime {
  position: absolute;
  left: 8%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  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-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--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-score {
    font-size: 1.25rem;
  }
  .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;
    padding: 8px 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .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 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-x-sm, 16px);
  padding: var(--space-x-sm, 16px) var(--space-x, 24px);
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.12), rgba(245, 197, 24, 0.04));
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: 12px;
  margin-bottom: var(--space-y-sm, 24px);
}

.football-page-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.football-page-league-logo-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.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: 1.05rem;
  color: #fff;
}

.football-page-meta-country {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-sport, #f5c518);
  font-weight: 500;
}

.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.7);
  font-weight: 500;
}

.football-page-header-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.football-page-date-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.football-page-date-input {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  min-width: 150px;
  direction: ltr;
}

.football-page-date-input:focus {
  outline: none;
  border-color: var(--accent-sport, #f5c518);
  box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.2);
}

.football-page-date-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}
.football-page-date-arrow:hover {
  background: rgba(245, 197, 24, 0.25);
  color: #f5c518;
  transform: scale(1.1);
}
.football-page-date-arrow:active {
  transform: scale(0.95);
}

.football-page-date-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  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 {
  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-goal-flash-ball {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 0.3rem;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
  opacity: 0;
  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; }
}

/* ===== Home hub live card adjustments ===== */
.index-home-hub .football-live-all-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-inline-start: 3px solid rgba(245, 197, 24, 0.45);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
body.page-hub-sport .index-home-hub .football-live-all-section {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--hub-accent) 10%, rgba(255, 255, 255, 0.06)),
    color-mix(in srgb, var(--hub-accent) 4%, rgba(255, 255, 255, 0.03))
  );
  border: 1px solid color-mix(in srgb, var(--hub-accent) 22%, rgba(255, 255, 255, 0.1));
  border-inline-start: 3px solid color-mix(in srgb, var(--hub-accent) 55%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}
.index-home-hub .football-live-all-title {
  padding: 11px 14px;
  text-align: right;
  font-size: 0.95rem;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.14));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
body.page-hub-sport .index-home-hub .football-live-all-title {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--hub-accent) 18%, rgba(0, 0, 0, 0.35)),
    color-mix(in srgb, var(--hub-accent) 8%, rgba(0, 0, 0, 0.14))
  );
  border-bottom: 1px solid color-mix(in srgb, var(--hub-accent) 14%, rgba(255, 255, 255, 0.1));
}
.index-home-hub .football-live-all-groups {
  padding: 0;
}
.index-home-hub .football-live-all-country {
  margin-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.index-home-hub .football-live-all-country:first-child {
  border-top: 0;
}
.index-home-hub .football-live-all-country-head {
  border: 0;
  border-radius: 0;
  padding: 9px 12px;
  margin: 0;
  background: rgba(255, 255, 255, 0.02);
}
.index-home-hub .football-live-all-country-name {
  font-size: 0.8rem;
}
@media (max-width: 768px) {
  .index-home-hub .football-live-all-section {
    border-radius: 0;
    border-inline-start: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  }
  body.page-hub-sport .index-home-hub .football-live-all-section {
    border-top: 3px solid color-mix(in srgb, var(--hub-accent) 55%, transparent);
  }
  .index-home-hub .football-live-all-title {
    padding: 8px 10px;
    font-size: 0.84rem;
  }
  .index-home-hub .football-live-all-groups {
    padding: 0;
  }
  .index-home-hub .football-live-all-country-head {
    padding: 8px 10px;
  }
  .index-home-hub .football-live-all-country-name {
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   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: 12px 14px;
    gap: 10px;
    border-radius: 8px;
    margin-bottom: 16px;
  }
  .football-page-header-title {
    gap: 0.5rem;
  }
  .football-page-league-logo-wrap {
    width: 48px;
    height: 48px;
    border-radius: 8px;
  }
  .football-page-meta-league {
    font-size: 0.92rem;
  }
  .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: center;
    gap: 0.35rem;
  }
  .football-page-date-label {
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .football-page-date-input {
    min-width: 0;
    flex: 1;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
  .football-page-date-arrow {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }

  /* 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.35rem 0.5rem;
  }

  /* 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;
  }
}

/* ========== משחקים חיים - sportsbook row final ========== */

@keyframes football-live-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes football-live-team-flash-goal {
  0%, 100% { background: rgba(59, 130, 246, 0); box-shadow: none; }
  20%, 60% { background: rgba(59, 130, 246, 0.2); box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35); }
}

@keyframes football-live-team-flash-red {
  0%, 100% { background: rgba(255, 86, 86, 0); box-shadow: none; }
  20%, 60% { background: rgba(255, 86, 86, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 86, 86, 0.28); }
}

@keyframes football-live-team-flash-yellow {
  0%, 100% { background: rgba(245, 197, 24, 0); box-shadow: none; }
  20%, 60% { background: rgba(245, 197, 24, 0.16); box-shadow: inset 0 0 0 1px rgba(245, 197, 24, 0.24); }
}

.football-live-all-section {
  width: 100%;
  max-width: 100%;
  margin: 0 0 var(--space-y, 32px);
  padding: 0;
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-sizing: border-box;
  overflow: hidden;
}
.football-live-all-title {
  margin: 0;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0.08) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.football-live-all-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 6px;
  vertical-align: 0.2em;
  border-radius: 50%;
  background: #ef4444;
  animation: football-live-dot 1.2s ease-in-out infinite;
}
.football-live-all-empty {
  margin: 0;
  padding: 24px 18px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}
.football-live-all-empty--no-odds {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
}
.football-live-all-empty-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  animation: football-live-waiting-pulse 1.8s ease-out infinite;
}
@keyframes football-live-waiting-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}
.football-live-all-groups {
  padding: 0;
}
.football-live-all-country {
  margin-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.football-live-all-country:first-child {
  border-top: 0;
}
.football-live-all-country-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  padding: 12px 18px;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
  text-align: right;
}
.football-live-all-country-head:hover {
  background: rgba(255, 255, 255, 0.06);
}
.football-live-all-country-head:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}
.football-live-all-country-head-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  justify-content: flex-start;
}
.football-live-all-country-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.7);
  margin-left: 4px;
  transition: transform 0.2s ease;
  transform: rotate(0deg);
  flex-shrink: 0;
}
[dir="rtl"] .football-live-all-country-chevron {
  margin-left: 0;
  margin-right: 4px;
}
.football-live-all-country--collapsed .football-live-all-country-chevron {
  transform: rotate(-90deg);
}
.football-live-all-country-flag {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
}
.football-live-all-country-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.football-live-all-country-head-live-wrap {
  display: flex;
  align-items: stretch;
  gap: 8px;
  align-self: stretch;
  flex-shrink: 0;
  margin-block: -12px;
}
.football-live-all-country-count {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fecaca;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.92) 0%, rgba(185, 28, 28, 0.95) 100%);
  border: 1px solid rgba(220, 38, 38, 0.6);
  padding: 0 8px;
  border-radius: 0 0 8px 8px;
  line-height: 1.2;
  flex-shrink: 0;
  min-width: 28px;
  box-sizing: border-box;
}
.football-live-all-country--collapsed .football-live-all-country-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.football-live-all-country--collapsed .football-live-all-country-body {
  display: none;
}

/* Reset: neutralize old home-hub table-based rules that no longer apply */
.football-live-all-section .football-live-book {
  --live-meta-w: 92px;
  --live-score-w: 46px;
  --live-market-w: 78px;
  --live-more-w: 42px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  overflow: hidden;
  background: #3d3d3d;
}

.football-live-all-section .football-live-book:last-child {
  margin-bottom: 0;
}

.football-live-all-section .football-live-book-head {
  display: grid;
  grid-template-columns: 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);
  align-items: stretch;
  padding: 0;
  background: #4a4a4a;
  color: #fff;
  direction: rtl;
  min-height: 40px;
}

.football-live-all-section .football-live-book-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: right;
  grid-column: 1 / 4;
  justify-self: stretch;
  padding: 8px 12px;
  box-sizing: border-box;
}

.football-live-all-section .football-live-book-title-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex-shrink: 0;
  margin-top: -8px;
  margin-bottom: -8px;
  padding: 0 6px;
  min-width: 30px;
  box-sizing: border-box;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.92) 0%, rgba(100, 116, 139, 0.95) 100%);
  border: 1px solid rgba(203, 213, 225, 0.24);
}

.football-live-all-section .football-live-book-title-logo {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.football-live-all-section .football-live-book-title-logo--placeholder {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(241, 245, 249, 0.34);
}

.football-live-all-section .football-live-book-title-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.football-live-all-section .football-live-book-markets-head {
  display: grid;
  grid-template-columns: repeat(3, var(--live-market-w));
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  direction: rtl;
  grid-column: 4 / 7;
  width: 100%;
  box-sizing: border-box;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08);
  align-items: stretch;
}

.football-live-all-section .football-live-book-markets-head > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08);
}

.football-live-all-section .football-live-book-markets-head > span:last-child {
  box-shadow: none;
}

.football-live-all-section .football-live-book-body {
  background: #363636;
}

.football-live-all-section .football-live-book-row {
  display: grid;
  grid-template-columns: 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: "meta match score home draw away more";
  align-items: stretch;
  background: #363636;
  min-height: 58px;
}

.football-live-all-section .football-fixtures-row--live {
  background: #363636;
  box-shadow: none;
  animation: none;
}
.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-live-all-section .football-live-book-row + .football-live-book-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.football-live-all-section .football-live-book-row > * {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 58px;
  min-width: 0;
  box-sizing: border-box;
}

.football-live-all-section .football-live-book-row > :last-child {
  border-left: none;
}

.football-live-all-section .football-live-book-more {
  grid-area: more;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.football-live-all-section .football-live-book-market--away {
  grid-area: away;
}

.football-live-all-section .football-live-book-market--draw {
  grid-area: draw;
}

.football-live-all-section .football-live-book-market--home {
  grid-area: home;
}

.football-live-all-section .football-live-book-score {
  grid-area: score;
  display: flex;
  align-items: center;
  justify-content: center;
}

.football-live-all-section .football-live-book-match {
  grid-area: match;
  direction: rtl;
  display: grid !important;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-content: center;
  justify-items: end;
  min-width: 0;
}

.football-live-all-section .football-live-book-meta {
  grid-area: meta;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  gap: 0;
}

@keyframes football-live-dot-tick {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

.football-live-all-section .football-live-book-meta .football-score-cell-live {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 100%;
  gap: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(34, 197, 94, 0.18));
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #4ade80;
  line-height: 1;
  white-space: normal;
  box-sizing: border-box;
  text-align: center;
}

.football-live-all-section .football-live-book-meta .football-score-cell-live-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  width: 100%;
  max-width: 100%;
}

.football-live-all-section .football-live-book-meta .football-score-cell-live-dot {
  width: 4px;
  height: 4px;
  border-radius: 0;
  background: #ef4444;
  flex-shrink: 0;
  animation: football-live-dot-tick 1.2s ease-in-out infinite;
}

.football-live-all-section .football-live-book-meta .football-score-cell-live-text {
  text-transform: uppercase;
  line-height: 1;
  font-size: 0.5rem;
}

.football-live-all-section .football-live-book-meta .football-fixtures-live-time {
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1;
  max-width: 100%;
  width: auto;
  text-align: center;
}

.football-live-all-section .football-live-book-meta .football-score-cell-live-sub {
  font-size: 0.7rem;
  line-height: 1.1;
  color: inherit;
  text-align: center;
  max-width: 100%;
  width: 100%;
  overflow-wrap: anywhere;
}

.football-live-all-section .football-live-book-meta .football-score-cell-live--break-ht .football-score-cell-live-text,
.football-live-all-section .football-live-book-meta .football-score-cell-live--break-ht .football-score-cell-live-dot,
.football-live-all-section .football-live-book-meta .football-score-cell-live--break-bt .football-score-cell-live-text,
.football-live-all-section .football-live-book-meta .football-score-cell-live--break-bt .football-score-cell-live-dot {
  display: none;
}

.football-live-all-section .football-live-book-meta .football-score-cell-live--break-ht {
  background: rgba(148, 163, 184, 0.25);
  border-color: rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}
.football-live-all-section .football-live-book-meta .football-score-cell-live--break-ht .football-fixtures-live-time {
  color: #cbd5e1;
}
.football-live-all-section .football-live-book-meta .football-score-cell-live--break-bt {
  background: rgba(100, 116, 139, 0.25);
  border-color: rgba(100, 116, 139, 0.35);
  color: #94a3b8;
}
.football-live-all-section .football-live-book-meta .football-score-cell-live--break-bt .football-fixtures-live-time {
  color: #94a3b8;
}

.football-live-all-section .football-live-book-meta .football-status-badge {
  font-size: 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 50%;
  padding: 0 4px;
  border-radius: 0;
  line-height: 1;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  box-sizing: border-box;
}

.football-live-all-section .football-live-book-meta .football-status--live-1h {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}
.football-live-all-section .football-live-book-meta .football-status--live-2h {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}
.football-live-all-section .football-live-book-meta .football-status--live-ht {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}
.football-live-all-section .football-live-book-meta .football-status--live-et {
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.35);
  color: #fdba74;
}
.football-live-all-section .football-live-book-meta .football-status--live-bt {
  background: rgba(100, 116, 139, 0.2);
  border-color: rgba(100, 116, 139, 0.35);
  color: #94a3b8;
}
.football-live-all-section .football-live-book-meta .football-status--live {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.football-live-all-section .football-live-book-match {
  color: inherit;
  text-decoration: none;
}

.football-live-all-section .football-live-book-team-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 0;
}

.football-live-all-section .football-live-book-team-line .football-fixtures-team {
  min-height: 0;
  height: 100%;
  width: 100%;
  padding: 4px 10px;
  display: flex;
  direction: rtl;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  max-width: none;
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.football-live-all-section .football-live-book-team-line--away .football-fixtures-team {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.football-live-all-section .football-live-book-team-line .football-fixtures-team-logo,
.football-live-all-section .football-live-book-team-line .football-fixtures-team-logo-placeholder {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.football-live-all-section .football-live-book-team-line .football-fixtures-team-name-wrap {
  width: auto;
  flex: 0 1 auto;
  border-top: none;
  padding-top: 0;
  display: inline-flex;
  direction: rtl;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
  max-width: calc(100% - 24px);
  white-space: nowrap;
}

.football-live-all-section .football-live-book-team-line .football-fixtures-team-name {
  font-size: 0.88rem;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  text-align: right;
}

.football-live-all-section .football-live-book-team-line .football-red-card-icon,
.football-live-all-section .football-live-book-team-line .football-yellow-card-icon,
.football-live-all-section .football-live-book-team-line .football-goal-flash-ball {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.football-live-all-section .football-live-book-team-line .football-red-card-icon,
.football-live-all-section .football-live-book-team-line .football-yellow-card-icon {
  position: relative;
}

.football-live-all-section .football-live-book-team-line .football-red-card-icon-inner,
.football-live-all-section .football-live-book-team-line .football-yellow-card-icon-inner {
  width: 8px;
  height: 12px;
  border-radius: 1px;
}

.football-live-all-section .football-live-book-team-line .football-red-card-icon-inner {
  background: #ff5d5d;
}

.football-live-all-section .football-live-book-team-line .football-yellow-card-icon-inner {
  background: #f5c518;
}

.football-live-all-section .football-live-book-team-line .football-red-card-badge {
  font-size: 0.58rem;
  line-height: 1;
  color: #fff;
  margin-inline-start: 2px;
}

.football-live-all-section .football-live-book-team-line .football-goal-flash-ball {
  width: 14px;
  height: 14px;
}

.football-live-all-section .football-live-book-team-line .football-fixtures-team.football-live-team-flash--goal {
  animation: football-live-team-flash-goal 1.1s ease-in-out 3;
}

.football-live-all-section .football-live-book-team-line .football-fixtures-team.football-live-team-flash--redcard {
  animation: football-live-team-flash-red 1.1s ease-in-out 3;
}

.football-live-all-section .football-live-book-team-line .football-fixtures-team.football-live-team-flash--yellowcard {
  animation: football-live-team-flash-yellow 1.1s ease-in-out 3;
}

.football-live-all-section .football-live-book-score {
  padding: 0;
  align-self: stretch;
  height: 100%;
}

.football-live-all-section .football-live-book-score-box {
  display: grid;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.football-live-all-section .football-live-book-score-home,
.football-live-all-section .football-live-book-score-away {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
}

.football-live-all-section .football-live-book-score-away {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.football-live-all-section .football-live-book-market {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  align-self: stretch;
}

.football-live-all-section .football-live-book-market .football-single-match-tab {
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  position: relative;
  overflow: hidden;
  transition: color 0.2s ease, background 0.2s ease;
}

.football-live-all-section .football-live-book-market .football-single-match-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(245, 197, 24, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
  transform: scaleX(0);
  transform-origin: center;
}

.football-live-all-section .football-live-book-market .football-live-tab-label,
.football-live-all-section .football-live-book-market .football-live-tab-team-name {
  display: none;
}

.football-live-all-section .football-live-book-market .football-live-tab-odds {
  font-size: 0.88rem;
  font-weight: 700;
  color: #d9d14c;
  transition: color 0.2s ease;
}

.football-live-all-section .football-live-book-market .football-single-match-tab:hover .football-live-tab-odds {
  color: #fff2a8;
}

.football-live-all-section .football-live-book-market .football-single-match-tab:hover,
.football-live-all-section .football-live-book-market .football-single-match-tab.is-active,
.football-live-all-section .football-live-book-market .football-single-match-tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.06);
}

.football-live-all-section .football-live-book-market .football-single-match-tab:hover::after {
  transform: scaleX(1);
}

.football-live-all-section .football-live-book-market .football-single-match-tab.is-active,
.football-live-all-section .football-live-book-market .football-single-match-tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.04);
}

.football-live-all-section .football-live-book-market .football-single-match-tab.is-active::after,
.football-live-all-section .football-live-book-market .football-single-match-tab[aria-selected="true"]::after {
  transform: scaleX(1);
  background: var(--accent-sport, #f5c518);
}

.football-live-all-section .football-live-book-market .football-single-match-tab.is-active .football-live-tab-odds,
.football-live-all-section .football-live-book-market .football-single-match-tab[aria-selected="true"] .football-live-tab-odds {
  color: #fff;
}

.football-live-all-section .football-live-book-more {
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  align-self: stretch;
}

.football-live-all-section .football-live-book-more .football-live-all-bets-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
}

.football-live-all-section .football-live-book-more .football-live-all-bets-icon {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0.82;
  transition: color 0.22s ease, opacity 0.22s ease;
}

.football-live-all-section .football-live-book-more:hover .football-live-all-bets-icon,
.football-live-all-section .football-live-book-more:focus-visible .football-live-all-bets-icon {
  color: var(--accent-sport, #f5c518);
  opacity: 1;
}

.football-live-all-section .football-live-book-more .football-live-all-bets-text {
  display: none;
}

@media (max-width: 768px) {
  .football-live-all-section {
    border-radius: 0;
  }
  .football-live-all-title {
    padding: 8px 10px;
    font-size: 0.875rem;
  }
  .football-live-all-title::before {
    width: 4px;
    height: 4px;
    margin-inline-end: 4px;
  }
  .football-live-all-empty {
    padding: 16px 10px;
    font-size: 0.8125rem;
  }
  .football-live-all-groups {
    padding: 0;
  }
  .football-live-all-country-head {
    padding: 8px 10px;
    gap: 6px;
  }
  .football-live-all-country-flag {
    width: 16px;
    height: 16px;
  }
  .football-live-all-country-name {
    font-size: 0.75rem;
  }
  .football-live-all-country-count {
    font-size: 0.65rem;
    padding: 0 6px;
    min-width: 24px;
  }
  .football-live-all-section .football-live-all-country-head-live-wrap {
    margin-block: -8px;
  }
  .football-live-all-section .football-live-book {
    --live-meta-w: 48px;
    --live-score-w: 36px;
    --live-market-w: 54px;
    --live-more-w: 34px;
    margin-bottom: 6px;
    border-radius: 0;
  }
  .football-live-all-section .football-live-book-head {
    grid-template-columns: 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);
    min-height: 32px;
  }

  .football-live-all-section .football-live-book-title {
    padding: 6px 8px;
  }

  .football-live-all-section .football-live-book-title-logo-badge {
    margin-top: -6px;
    margin-bottom: -6px;
    min-width: 26px;
    padding: 0 5px;
    border-radius: 0 0 7px 7px;
  }

  .football-live-all-section .football-live-book-title-logo,
  .football-live-all-section .football-live-book-title-logo--placeholder {
    width: 16px;
    height: 16px;
  }

  .football-live-all-section .football-live-book-title-text {
    font-size: 0.62rem;
  }

  .football-live-all-section .football-live-book-markets-head {
    grid-template-columns: repeat(3, var(--live-market-w));
    font-size: 0.58rem;
    width: 100%;
  }

  .football-live-all-section .football-live-book-row {
    grid-template-columns: 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: "meta match score home draw away more";
    min-height: 46px;
  }

  .football-page-league-live-style.football-live-all-section .football-live-book {
    --live-meta-w: 62px;
    --live-score-w: 34px;
    --live-market-w: 50px;
    --live-more-w: 32px;
  }
  .football-page-league-live-style .football-live-book--no-score .football-live-book-head {
    grid-template-columns: 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 / 3;
  }
  .football-page-league-live-style .football-live-book--no-score .football-live-book-markets-head {
    grid-column: 3 / 6;
  }
  .football-page-league-live-style .football-live-book--no-score .football-live-book-row {
    grid-template-columns: 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: "meta match home draw away more";
    min-height: 46px;
  }

  .football-live-all-section .football-live-book-team-line .football-fixtures-team {
    padding: 3px 6px;
    gap: 5px;
  }

  .football-live-all-section .football-live-book-team-line .football-fixtures-team-name {
    font-size: 0.68rem;
  }

  .football-live-all-section .football-live-book-score-box {
    width: 100%;
    height: 100%;
  }

  .football-live-all-section .football-live-book-score-home,
  .football-live-all-section .football-live-book-score-away {
    min-height: 18px;
    font-size: 0.72rem;
  }

  .football-live-all-section .football-live-book-market .football-live-tab-odds {
    font-size: 0.76rem;
  }

  .football-live-all-section .football-live-book-more .football-live-all-bets-icon {
    width: 18px;
    height: 18px;
  }

  .football-live-all-section .football-live-book-more .football-live-all-bets-inner {
    padding: 2px;
  }
  .football-live-all-section .football-live-book-meta {
    padding: 0;
    gap: 0;
  }
  .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-live-all-section .football-live-book-meta .football-score-cell-live {
    font-size: 0.44rem;
    padding: 0 2px;
    gap: 2px;
  }
  .football-live-all-section .football-live-book-meta .football-fixtures-live-time {
    font-size: 0.44rem;
  }
  .football-live-all-section .football-live-book-meta .football-score-cell-live-sub {
    font-size: 0.36rem;
    line-height: 1.05;
  }
  .football-live-all-section .football-live-book-meta .football-score-cell-live-dot {
    width: 3px;
    height: 3px;
  }
  .football-live-all-section .football-live-book-meta .football-score-cell-live-text {
    font-size: 0.38rem;
  }
  .football-live-all-section .football-live-book-meta .football-status-badge {
    font-size: 0.4rem;
    padding: 0 2px;
  }
  .football-live-all-section .football-live-book-team-line .football-fixtures-team-logo,
  .football-live-all-section .football-live-book-team-line .football-fixtures-team-logo-placeholder {
    width: 18px;
    height: 18px;
  }

  /* League page meta: date/time fits in narrow column */
  .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-meta-w: 60px;
    --live-score-w: 30px;
    --live-market-w: 42px;
    --live-more-w: 26px;
  }
  .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.72rem;
  }
  .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: 16px;
    height: 16px;
  }
  .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: ≤360px (ultra-compact) ── */
@media (max-width: 360px) {
  .football-page-league-live-style.football-live-all-section .football-live-book {
    --live-meta-w: 56px;
    --live-score-w: 26px;
    --live-market-w: 36px;
    --live-more-w: 22px;
  }
  .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: 14px;
    height: 14px;
  }
  .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 lock state (live block) – race condition protection
 * ═══════════════════════════════════════════════════════════ */
.football-live-tab--locked {
  pointer-events: none;
  cursor: not-allowed;
  position: relative;
}
.football-live-tab--locked .football-live-tab-odds:not(.football-live-tab-odds--state-locked) {
  color: #888 !important;
  animation: oddsLockedPulse 1.2s ease-in-out infinite;
}
.football-live-tab-odds--state-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1em;
  min-height: 1em;
  line-height: 1;
}
.football-live-odds-lock-svg {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  display: block;
  color: rgba(255, 255, 255, 0.88);
}
.football-live-tab--locked .football-live-tab-odds--state-locked .football-live-odds-lock-svg {
  animation: oddsLockIconPulse 1.2s ease-in-out infinite;
}
.football-live-tab--market-off .football-live-tab-odds--state-locked .football-live-odds-lock-svg {
  color: rgba(255, 255, 255, 0.72);
}
.football-live-tab--market-off {
  opacity: 0.78;
}
.football-live-tab--market-off .football-live-tab-odds:not(.football-live-tab-odds--state-locked) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
}
.football-odds-locked .football-live-book-market {
  opacity: 0.65;
}
@keyframes oddsLockedPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes oddsLockIconPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}

/* ═══════════════════════════════════════════════════════════
 *  Odds flash animations (live block)
 * ═══════════════════════════════════════════════════════════ */
.football-live-tab-odds--flash-up {
  animation: oddsFlashUp 2s ease-out;
}
.football-live-tab-odds--flash-down {
  animation: oddsFlashDown 2s ease-out;
}
@keyframes oddsFlashUp {
  0%   { color: #4caf50; transform: scale(1.18); }
  40%  { color: #81c784; transform: scale(1.06); }
  100% { color: #d9d14c; transform: scale(1); }
}
@keyframes oddsFlashDown {
  0%   { color: #f44336; transform: scale(1.18); }
  40%  { color: #e57373; transform: scale(1.06); }
  100% { color: #d9d14c; transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════
 *  Odds panel – single fixture page (football.php)
 * ═══════════════════════════════════════════════════════════ */
.football-odds-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0;
}
.football-odds-bet-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}
.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-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f5c518;
}
.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.75rem;
  font-weight: 500;
  color: #6b7280;
}

/* ── Table layout (col2 / col3) ── */
.football-odds-table {
  width: 100%;
}
.football-odds-table-head {
  display: grid;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.football-odds-table--col3 .football-odds-table-head,
.football-odds-table--col3 .football-odds-table-row {
  grid-template-columns: 1fr 1fr 1fr;
}
.football-odds-table--col2 .football-odds-table-head,
.football-odds-table--col2 .football-odds-table-row {
  grid-template-columns: 1fr 1fr;
}
.football-odds-table--col3-hcap .football-odds-table-head,
.football-odds-table--col3-hcap .football-odds-table-row {
  grid-template-columns: 52px 1fr 1fr 1fr;
}
.football-odds-table--col2-hcap .football-odds-table-head,
.football-odds-table--col2-hcap .football-odds-table-row {
  grid-template-columns: 52px 1fr 1fr;
}
.football-odds-table-col-head {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8b92a0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 0;
}
.football-odds-table-hcap-col {
  font-size: 0.7rem;
  color: #4b5563;
}
.football-odds-table-row {
  display: grid;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}
.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;
  font-size: 0.7rem;
  font-weight: 700;
  color: #a5b4c8;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  margin: 4px 0 4px 4px;
  padding: 4px 2px;
  min-height: 28px;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.football-odds-table-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  text-align: center;
  cursor: default;
  transition: background 0.15s;
  position: relative;
}
.football-odds-table-cell + .football-odds-table-cell::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
}
.football-odds-table-cell:hover {
  background: rgba(245, 197, 24, 0.06);
}
.football-odds-table-cell--suspended {
  opacity: 0.35;
}

/* דף משחק בודד – בחירת יחס לטופס */
.football-single-fixture-slip-root .football-odds-table-cell:not(.football-odds-table-cell--suspended),
.football-single-fixture-slip-root .football-odds-value-cell {
  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: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
}
.football-odds-value-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 72px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}
.football-odds-value-cell:hover {
  background: rgba(245, 197, 24, 0.08);
  border-color: rgba(245, 197, 24, 0.25);
}
.football-odds-value-label {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-bottom: 3px;
  white-space: nowrap;
}
.football-odds-value-odd {
  font-size: 0.95rem;
  font-weight: 700;
  color: #d9d14c;
  font-variant-numeric: tabular-nums;
}
.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-values {
    gap: 6px;
    padding: 8px 12px;
  }
  .football-odds-value-cell {
    min-width: 56px;
    padding: 6px 8px;
  }
  .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 {
    padding-inline: 6px;
  }
  .football-odds-table-head {
    padding: 4px 6px;
  }
  .football-odds-table-cell {
    padding: 8px 4px;
  }
  .football-odds-table-hcap {
    font-size: 0.65rem;
  }
  .football-odds-table--col3-hcap .football-odds-table-head,
  .football-odds-table--col3-hcap .football-odds-table-row {
    grid-template-columns: 44px 1fr 1fr 1fr;
  }
  .football-odds-table--col2-hcap .football-odds-table-head,
  .football-odds-table--col2-hcap .football-odds-table-row {
    grid-template-columns: 44px 1fr 1fr;
  }
}

/* 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-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 / 3;
}
.football-page-league-live-style .football-live-book--no-score .football-live-book-markets-head {
  grid-column: 3 / 6;
}
.football-page-league-live-style .football-live-book--no-score .football-live-book-row {
  grid-template-columns: 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: "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-meta-w) minmax(0, 1fr) var(--live-score-w) var(--live-more-w) !important;
  grid-template-areas: "meta match score more" !important;
}
.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-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: "meta match score home draw away more";
}

@media (max-width: 480px) {
  .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;
  }
}
