/* RUSH front sync patch v76 */
.match-timeline {
  display: flex !important;
  grid-auto-flow: initial !important;
  grid-auto-columns: initial !important;
  align-items: stretch;
}

.matchday-block {
  flex: 0 0 auto;
  width: auto;
}

.matchday-games {
  display: grid;
  grid-template-columns: repeat(var(--rush-match-count, 4), minmax(246px, 1fr)) !important;
  gap: 12px;
  width: max-content;
}

.match-card {
  width: 246px;
}

.schedule-arrow.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.team-name-abbr {
  display: none;
}

@media (max-width: 840px) {
  .match-timeline {
    display: flex !important;
    grid-auto-columns: initial !important;
  }

  .matchday-block {
    flex: 0 0 100%;
    width: 100%;
  }

  .matchday-games {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .match-card {
    width: auto;
  }
}

@media (max-width: 980px) {
  .schedule-team .team-name-full {
    display: none;
  }

  .schedule-team .team-name-abbr {
    display: inline-block;
    color: #fff;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
}

/* Patch v77 — Keep schedule date centered with reserved arrow space */
.schedule-datebar {
  display: grid !important;
  grid-template-columns: 74px minmax(0, 1fr) 74px !important;
  align-items: center !important;
}

.schedule-datebar .schedule-current-date {
  grid-column: 2 !important;
  text-align: center !important;
}

.schedule-datebar .schedule-arrow {
  display: inline-flex !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 auto !important;
}

.schedule-datebar .schedule-arrow.is-hidden {
  display: inline-flex !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
