/* === Scorers table === */
.stats-page {
  background: #f7f3ee;
}

.stats-page__container {
  padding: 20px;
}
.scorers-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  /* margin: 16px 0; */
}
.scorers-card__header {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.scorers-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.scorers-table__wrap {
  width: 100%;
  overflow: auto;
}
.scorers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.scorers-table thead th {
  /* position: sticky; */
  top: 0;
  background: #0e1c44;
  text-align: left;
  padding: 5px 12px;
  font-weight: 600;
  /* border-bottom: 1px solid #eee; */
  color: #fff;
}
.scorers-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}

.scorers-table .col-rank {
  width: 36px;
  color: #f8f8ed;
  font-weight: 600;
}
.scorers-table .col-player {
  min-width: 260px;
}
.scorers-table .col-club {
  min-width: 140px;
  /* color: #444; */
}
.scorers-table .col-mp,
.scorers-table .col-g,
.scorers-table .col-pen,
.scorers-table .col-a,
.scorers-table .col-ga {
  width: 60px;
  text-align: right;
}

.player-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.player-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.player-flag {
  width: 18px;
  height: 12px;
  border: 1px solid #ddd;
  object-fit: cover;
  flex: none;
}
.player-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  display: inline-block;
}

.club-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1f2937;
  text-decoration: none;
}
.club-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.club-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  display: inline-block;
}

@media (max-width: 640px) {
  .player-name {
    max-width: 140px;
  }
  .club-name {
    max-width: 120px;
  }
}

.stats-page .scorers-table .player-name {
  color: #111;
  font-weight: 500;
}

.scorers-table tbody {
  counter-reset: row-num;
}
.scorers-table tbody tr {
  counter-increment: row-num;
}
.scorers-table tbody tr .col-rank::before {
  content: counter(row-num);
  color: #888;
  font-weight: 600;
  display: inline-block;
  width: 24px;
  text-align: right;
}

.stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}
.stats-main {
  min-width: 0;
}
.stats-info {
  background: #fff;
  border: 1px solid #e8e8e8;
  min-height: 100px;
}

@media (max-width: 980px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stats-info {
    order: 2;
  }
  .stats-main {
    order: 1;
  }
}

.stats-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.stats-tabs__link {
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
  color: #676565;
  border: 1px solid transparent;
}
.stats-tabs__link:hover {
  border-bottom: 2px solid #0e1c44;
  color: #0e1c44;
}

.stats-tabs__link--active {
  border-bottom: 2px solid #0e1c44;
  color: #0e1c44;
  font-weight: 600;
}

.scorers-table .col-min,
.scorers-table .col-rating {
  width: 80px;
  text-align: right;
}
.scorers-table .col-rating strong {
  font-weight: 700;
}

.scorers-table .col-cs,
.scorers-table .col-gc,
.scorers-table .col-saves,
.scorers-table .col-yc,
.scorers-table .col-rc,
.scorers-table .col-tkl,
.scorers-table .col-int,
.scorers-table .col-blk,
.scorers-table .col-err,
.scorers-table .col-sh,
.scorers-table .col-sot {
  width: 80px;
  text-align: right;
}

.scorers-table .col-min,
.scorers-table .col-mp {
  text-align: right;
}

.pager {
  display: flex;
  justify-content: center;
  margin: 16px 0 6px;
}
.pager__list {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pager__item {
  line-height: 1;
}
.pager__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
  background: #fff;
}
.pager__link:hover {
  background: #f6f6f6;
}
.pager__link--active {
  background: #0e1c44;
  color: #fff;
  border-color: #111;
  pointer-events: none;
}

.scorers-table .col-conc {
  text-align: center;
}
