.match-events {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
}
.match-events__title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
}
.match-events__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.match-events__list::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1px;
  background: #E5E7EB;
  transform: translateX(-0.5px);
  z-index: 0;
}

.match-events__item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 12px;
  align-items: center;
  min-height: 36px;
  position: relative;
  z-index: 1;
}

.match-events__side {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.3;
}
.match-events__side--home {
  flex-direction: row-reverse;
  justify-content: flex-start;
  text-align: right;
}
.match-events__side--away {
  justify-content: flex-start;
}
.match-events__side--home .match-events__lines {
  align-items: flex-end;
}

.match-events__icon {
  display: inline-flex;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}
.match-events__icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.match-events__minute {
  display: flex;
  justify-content: center;
}
.match-events__minute-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 28px;
  padding: 0 14px;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}
.match-events__minute-pill--no-time {
  color: #9CA3AF;
}

.match-events__player {
  color: #111827;
  font-weight: 500;
}
.match-events__player--secondary {
  color: #6B7280;
  font-weight: 400;
}
.match-events__sublabel {
  color: #6B7280;
  font-size: 12px;
}
.match-events__lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-events__score {
  color: #111827;
  font-weight: 600;
}
.match-events__label--goal {
  color: var(--primary, #9345d8);
  font-weight: 600;
}

.match-events__item--period,
.match-events__item--injury-time {
  grid-template-columns: 1fr;
  justify-items: center;
  margin: 4px 0;
}
.match-events__period-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 14px;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: #111827;
}
.match-events__period-pill strong {
  font-weight: 700;
}
.match-events__period-pill--injury {
  color: #6B7280;
  background: #F9FAFB;
}

.match-events__item--card-yellow .match-events__sublabel,
.match-events__item--card-red .match-events__sublabel,
.match-events__item--card-yellowred .match-events__sublabel {
  color: #6B7280;
}
.match-events__item--var .match-events__sublabel {
  color: var(--primary, #9345d8);
  font-weight: 600;
}

@media (max-width: 480px) {
  .match-events__item { column-gap: 8px; min-height: 32px; }
  .match-events__minute-pill { min-width: 44px; padding: 0 10px; font-size: 12px; }
  .match-events__side { font-size: 13px; gap: 6px; }
  .match-events__icon { width: 14px; height: 14px; flex-basis: 14px; }
}
