/* ===== Layout страницы матча: левая/правая колонка ===== */
.match-layout {
  display: grid;
  grid-template-columns: 7fr 3fr; /* 70 / 30 */
  gap: 16px;
  margin-top: 16px;
}

.match-layout__main {
  min-width: 0;
}

.match-layout__side {
  min-width: 0;
}

@media (max-width: 900px) {
  .match-layout {
    grid-template-columns: 1fr;
  }
  .match-layout__main {
    order: 1;
  }
  .match-layout__side {
    order: 2;
  }
}

/* ===== Блок "Последние матчи команд" ===== */
.match-last-matches {
  margin-top: 16px;
  background: #ffffff;
  padding: 0 35px;
}

.match-last-matches__title {
  margin: 0;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  background: #0e1c44;
  color: #fff;
}

.match-last-matches__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

@media (max-width: 700px) {
  .match-last-matches__grid {
    grid-template-columns: 1fr;
  }
}

.match-last-matches__column {
  border-top: 1px solid #e5e7eb;
}

.match-last-matches__column + .match-last-matches__column {
  border-left: 1px solid #e5e7eb;
}

@media (max-width: 700px) {
  .match-last-matches__column + .match-last-matches__column {
    border-left: none;
    border-top: 1px solid #e5e7eb;
  }
}

.match-last-matches__column-title {
  margin: 0;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  background: #f3f4f6;
  text-align: center;
}

.match-last-matches__empty {
  margin: 8px 10px;
  font-size: 13px;
  color: #6b7280;
}

.match-last-matches__list {
  display: grid;
  gap: 8px;
  padding: 8px 10px 10px;
  background: #f9fafb;
}

.match-last-matches__item {
  display: grid;
  grid-template-rows: auto auto;
  gap: 6px;
  padding: 8px 10px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  border-left-width: 3px;
  border-left-color: transparent;
}

.match-last-matches__item:hover {
  background: #f9fafb;
}

/* Победа — зелёный бордер слева */
.match-last-matches__item--w {
  border-left-color: #16a34a;
}

/* Ничья — жёлтый бордер слева */
.match-last-matches__item--d {
  border-left-color: #eab308;
}

/* Поражение — красный бордер слева */
.match-last-matches__item--l {
  border-left-color: #dc2626;
}

.match-last-matches__row-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 8px;
}

.match-last-matches__row-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
}

.match-last-matches__team {
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-last-matches__team--home {
  justify-self: flex-start;
}

.match-last-matches__team--away {
  justify-self: flex-end;
}

.match-last-matches__team-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.match-last-matches__team-name {
  max-width: 90px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-last-matches__score {
  min-width: 40px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.match-last-matches__meta {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

/* ===== Форма команды в hero (кружки W/D/L) ===== */
.match-hero__form {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.match-hero__form-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e5e7eb;
}

/* Победа — зелёный */
.match-hero__form-dot--w {
  background: #16a34a;
}

/* Ничья — жёлтый */
.match-hero__form-dot--d {
  background: #ffca24;
}

/* Поражение — красный */
.match-hero__form-dot--l {
  background: #dc2626;
}
