.matches-slider-wrapper {
  padding: 35px;
  position: relative;
  width: 100%;
  max-width: 962px;
  margin: 0 auto;
  font-family: "Fira Sans", sans-serif;
  box-sizing: border-box;
}

.matches-slider-wrapper *,
.matches-slider-wrappers *::before,
.matches-slider-wrapper *::after {
  box-sizing: inherit;
}

.matches-slider {
  line-height: 1.2;
}

.matches-slider__control {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background-image: radial-gradient(
    99% 134% at 16% -14%,
    #ff91c6 0%,
    #ff76b8 35%,
    #ff64ae 100%
  );
  box-shadow: 0px 10px 17px rgba(0, 0, 0, 0.09);
  top: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 200ms;
}

.matches-slider__control:hover {
  opacity: 0.9;
}

.matches-slider__control img {
  display: block;
  width: 6px;
  height: auto;
}

.matches-slider__control--prev {
  left: 5px;
  transform: translate(0, -50%);
}

.matches-slider__control--next {
  right: 5px;
  transform: translate(0, -50%) scale(-1);
}

.matches-item {
  padding: clamp(10px, 2.5vw, 18px);
  background-color: #231b4e;
  font-weight: 700;
  font-size: clamp(8px, 2vw, 12px);
  text-align: center;
  color: #fff;
  border-radius: 4px;
}

.matches-item p {
  margin: 0;
}

.matches-item__info {
  display: grid;
  grid-template-columns: calc(16% + 4px) 1fr;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #8f86ff;
  margin: 0 -2px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  font-size: clamp(9px, 2vw, 12px);
}

.matches-item__title span {
  display: block;
  text-align: left;
  font-weight: 400;
  color: wheat;
}

.matches-item__info img {
  display: inline-block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.matches-item__players {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(10px, 3.5vw, 16px);
}

.matches-item__player {
  display: grid;
  grid-template-columns: 16% 1fr 16%;
  gap: 10px;
  align-items: center;
}

.matches-item__player-name {
  display: block;
  text-decoration: underline;
  color: inherit;
  transition: color 200ms;
}

.matches-item__player-name:hover {
  color: #ff72b6;
}

.matches-item__player-logo,
.matches-item__player-score {
  outline-width: 2px;
  outline-style: solid;
  outline-color: #8f86ff;
  margin: 2px 0;
}

.matches-item__player--winner .matches-item__player-logo {
  outline: 2px solid rgb(36, 150, 255);
}

.matches-item__player--winner .matches-item__player-score {
  outline: 2px solid rgb(36, 150, 255);
}

.matches-item__player--loser .matches-item__player-logo {
  outline: 2px solid #ff66b0;
}

.matches-item__player--loser .matches-item__player-score {
  outline: 2px solid #ff66b0;
}

.matches-item__player-logo {
  display: block;
  object-fit: contain;
  background-color: #fff;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 2px;
}

.matches-item__player-score {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #372d82;
  color: #fff;
  line-height: 1;
  border-radius: 2px;
}

@media (min-width: 576px) {
  .matches-item__info {
    margin-bottom: 10px;
    padding-bottom: 10px;
    gap: 12px;
  }
}

@media (min-width: 768px) {
  .matches-slider-wrapper {
    padding: 35px 45px;
  }

  .matches-slider__control {
    width: 30px;
    height: 30px;
  }

  .matches-slider__control--prev {
    left: 7px;
  }

  .matches-slider__control--next {
    right: 7px;
  }

  .matches-slider__control img {
    width: 8px;
  }
}
