@media (max-width: 760px) {
  .match-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 18px;
    text-align: center;
  }
  .match-row__result {
    position: static;
    transform: none;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 10px;
    order: -1;
  }
  .match-row__result--empty {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero__stats {
    flex-direction: column;
    align-items: center;
  }
  .hero__stats .stat-card {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 980px) {
  .roster-grid {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .player-card {
    width: 100%;
    max-width: 340px;
  }
}

@media (max-width: 480px) {
  .roster-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .player-card {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  #upcomingList .match-row__line,
  #resultsList .match-row__line,
  .match-row__line {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    justify-items: center;
  }

  .match-row__when,
  .match-row__team,
  .match-row__team--opp,
  .match-row__comp,
  .match-row__format,
  .match-row__map,
  .match-row__date,
  .match-row__vs-upcoming,
  .match-row__wyniki {
    grid-column: 1 !important;
    justify-self: center;
    text-align: center;
  }

  .match-row__when {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .match-row__when,
  .match-row__team,
  .match-row__team--opp,
  .match-row__comp,
  .match-row__format,
  .match-row__map {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .match-row__team--opp {
    font-size: 13px;
  }

  .match-row__comp {
    font-size: 11px;
  }
}

/* Zabezpieczenie przed poziomym scrollem calej strony, gdyby cos
   jeszcze wystawalo poza viewport na waskich ekranach. */
@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
  }
}
@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding: 32px 0 24px;
  }
  .section {
    padding: 28px 0;
  }
  .hero__title {
    font-size: clamp(34px, 11vw, 52px);
  }
  .player-card {
    padding: 10px 12px;
    gap: 10px;
  }
  .player-card__top {
    width: 46px;
    height: 46px;
  }
  .match-row {
    padding: 16px 16px;
    border-radius: 18px;
  }
  .hero__stats .stat-card {
    padding: 12px 14px;
  }
  .hero__stats .stat-card__value {
    font-size: 22px;
  }
}

@media (max-width: 760px) {
  .hero__title {
    transform: none;
  }
}