.pesis-paivan-pelit {
  --pp-primary: #f58220;
  --pp-panel: #111216;
  --pp-panel2: #18191d;
  --pp-text: #ffffff;
  --pp-muted: #b9b9bd;
  --pp-line: rgba(255,255,255,.18);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--pp-text);
  width: 100%;
}

.pp-games-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 10px;
}

.pp-games-title {
  margin: 0;
  border-left: 5px solid var(--pp-primary);
  padding-left: 10px;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1;
  font-weight: 850;
}

.pp-games-date {
  color: var(--pp-muted);
  font-size: 12px;
}

.pp-games-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.pp-games-list::-webkit-scrollbar {
  height: 7px;
}

.pp-games-list::-webkit-scrollbar-thumb {
  background: var(--pp-primary);
  border-radius: 999px;
}

.pp-games-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,.08);
  border-radius: 999px;
}

.pp-game-card {
  scroll-snap-align: start;
  background: linear-gradient(180deg, var(--pp-panel2), var(--pp-panel));
  border: 1px solid var(--pp-line);
  border-radius: 7px;
  padding: 10px;
  min-height: 118px;
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto auto;
  gap: 8px 10px;
  align-items: start;
}

.pp-game-time {
  color: var(--pp-primary);
  font-size: 19px;
  font-weight: 850;
  line-height: 1;
  padding-top: 4px;
}

.pp-game-main {
  min-width: 0;
}

.pp-team-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 7px;
  align-items: center;
  margin-bottom: 4px;
}

.pp-team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  padding: 2px;
}

.pp-team-name {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-game-meta {
  margin-top: 5px;
  color: var(--pp-muted);
  font-size: 11px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pp-game-status {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pp-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(255,255,255,.08);
  color: var(--pp-text);
}

.pp-status-live {
  background: #d71920;
  color: #fff;
}

.pp-status-finished {
  background: var(--pp-primary);
  color: #fff;
}

.pp-result {
  font-size: 16px;
  font-weight: 900;
  color: var(--pp-primary);
  white-space: nowrap;
}

.pp-games-empty,
.pp-games-error,
.pp-games-loading {
  background: var(--pp-panel);
  border: 1px solid var(--pp-line);
  border-radius: 7px;
  padding: 14px;
  color: var(--pp-muted);
}

@media (max-width: 900px) {
  .pp-games-list {
    grid-template-columns: none;
    grid-auto-columns: minmax(240px, 78vw);
  }
}

@media (max-width: 560px) {
  .pp-games-head {
    display: block;
  }

  .pp-games-date {
    margin-top: 6px;
  }

  .pp-games-list {
    grid-auto-columns: minmax(235px, 86vw);
  }
}
