.match-periods {
  margin: 0 0 20px;
}
.match-periods__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.match-periods__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  background: var(--grey-light, #f4f4f4);
}
.match-periods__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 12px;
  border-radius: 100px;
  background: #fff;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  color: var(--text, #232323);
}
.match-periods__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text, #232323);
  font-variant-numeric: tabular-nums;
}
.match-periods__score-value {
  display: inline-flex;
  align-items: flex-start;
}
.match-periods__score-dash {
  color: var(--text, #232323);
}
.match-periods__tiebreak {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--grey, #7d7d7d);
}
.match-periods__events {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.match-periods__more {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.match-periods__more-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  min-height: 24px;
  padding: 4px 12px;
  border-radius: 100px;
  background: #fff;
  font-size: 12px;
  line-height: 1.25;
  color: var(--text, #232323);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.match-periods__more-toggle::-webkit-details-marker {
  display: none;
}
.match-periods__more-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--grey, #7d7d7d);
  border-bottom: 1.5px solid var(--grey, #7d7d7d);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.match-periods__more[open] .match-periods__more-toggle::after {
  transform: translateY(1px) rotate(225deg);
}
.match-periods__more-hide,
.match-periods__more[open] .match-periods__more-show {
  display: none;
}
.match-periods__more[open] .match-periods__more-hide {
  display: inline;
}
.match-periods__more[open] .match-periods__events {
  margin-top: 12px;
  width: 100%;
}
.match-periods__event {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 20px;
  min-height: 24px;
}
.match-periods__event-side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
}
.match-periods__event-side--home {
  justify-content: flex-end;
  text-align: right;
}
.match-periods__event-side--away {
  justify-content: flex-start;
}
.match-periods__event-player {
  min-width: 0;
  color: var(--text, #232323);
}
.match-periods__event-player--link {
  text-decoration: none;
  transition: color 0.2s ease;
}
.match-periods__event-player--link:hover {
  color: var(--primary, #6828ba);
}
.match-periods__event-minute {
  flex-shrink: 0;
  color: var(--grey, #7d7d7d);
  font-variant-numeric: tabular-nums;
}
.match-periods__event-score {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--text, #232323);
  font-variant-numeric: tabular-nums;
}
.match-periods__event-score-num--active {
  color: var(--primary, #6828ba);
}
.match-periods__block--shootout .match-periods__events {
  gap: 8px;
}
.match-periods__block--shootout .match-periods__event-side {
  gap: 7px;
}

@media (max-width: 768px) {
  .match-periods__list {
    gap: 12px;
  }
  .match-periods__block {
    gap: 8px;
    padding: 8px;
  }
  .match-periods__event {
    column-gap: 10px;
  }
  .match-periods__event-side {
    font-size: 13px;
    gap: 7px;
  }
  .match-periods__event-side--home .match-periods__event-player,
  .match-periods__event-side--away .match-periods__event-player {
    flex: 1 1 auto;
  }
  .match-periods__event-score {
    font-size: 15px;
  }
}
