:root{
  --mu-red:#c70101;
  --mu-red-2:#e31b23;
  --ink:#171717;
  --muted:#737373;
  --line:#e9e9e9;
  --panel:#fff;
  --soft:#f7f7f7;
  --soft-red:#fff3f3;
  --radius:18px;
  --shadow:0 10px 30px rgba(0,0,0,.06);
}


.player-stats-page{
  /*width:min(780px,100%);*/
  margin:0;
  /*background:#fff;*/
  padding:0;
}

.ps-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom:24px;
}

.ps-kicker{
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  color:var(--mu-red);
  text-transform:uppercase;
  margin-bottom:7px;
}

.ps-title{
  margin:0;
  font-size:30px;
  line-height:1.08;
  letter-spacing:-.02em;
}

.ps-subtitle{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.ps-selects{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.ps-select{
  border:1px solid #ddd;
  background:#fff;
  border-radius:0px;
  padding:10px 34px 10px 12px;
  font:inherit;
  font-size:13px;
  font-weight:700;
  color:#262626;
  cursor:pointer;
}

.ps-section-title{
  font-size:15px;
  margin:0 0 12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.leaders{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-bottom:22px;
}

.leader-card{
  min-height:152px;
  background:linear-gradient(145deg,#171717,#252525);
  color:white;
  border-radius:0px;
  overflow:hidden;
  position:relative;
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-shadow:var(--shadow);
}

.leader-card:after{
  content:"";
  position:absolute;
  width:110px;
  height:110px;
  border-radius:50%;
  right:-35px;
  bottom:-38px;
  background:rgba(227,27,35,.12);
}

.leader-label{
  position:relative;
  z-index:1;
  color:#bcbcbc;
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.leader-value{
  font-size:31px;
  line-height:1;
  color:#ff3940;
  font-weight:900;
  margin:9px 0 5px;
}

.leader-name{
  position:relative;
  z-index:1;
  font-size:16px;
  font-weight:800;
  line-height:1.18;
}

.leader-note{
  color:#adadad;
  font-size:12px;
  margin-top:4px;
}

.controls{
  border:1px solid var(--line);
  border-radius:0;
  background:#fafafa;
  padding:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.filter-btn{
  border:1px solid #dedede;
  background:#fff;
  color:#505050;
  padding:8px 12px;
  border-radius:0px;
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:.18s ease;
}

.filter-btn:hover{
  border-color:#bbb;
  color:#111;
}

.filter-btn.active{
  background:var(--mu-red);
  border-color:var(--mu-red);
  color:#fff;
}

.table-wrap{
  border:1px solid var(--line);
  border-top:0;
  border-radius:0;
  overflow:auto;
  box-shadow:var(--shadow);
}

.player-stats-table{
  width:100%;
  /*min-width:680px;*/
  border-collapse:collapse;
  background:#fff;
}

.player-stats-page thead th{
  background:#f5f5f5;
  color:#777;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-weight:800;
  padding:13px 9px;
  border-bottom:1px solid var(--line);
  text-align:center;
  white-space:nowrap;
  user-select:none;
}

.player-stats-page thead th.sortable{cursor:pointer}
.player-stats-page thead th.sortable:hover{color:#111}
.player-stats-page thead th.sortable.active{color:var(--mu-red)}

.player-stats-page thead th.player-col{text-align:left}

.player-stats-page tbody td{
  padding:12px 9px;
  border-bottom:1px solid #ededed;
  text-align:center;
  font-size:13px;
  vertical-align:middle;
}

.player-stats-page tbody tr:last-child td{border-bottom:0}
.player-stats-page tbody tr:hover{background:#fafafa}

.player-stats-page .rank{
  width:32px;
  color:#a0a0a0;
  font-size:12px;
  font-weight:700;
}

.player-stats-page .player-cell{
  display:flex;
  align-items:center;
  min-width:215px;
  gap:10px;
  text-align:left;
}

.player-stats-page .player-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  background:linear-gradient(135deg,#ddd,#f7f7f7);
  display:grid;
  place-items:center;
  color:#666;
  font-size:11px;
  font-weight:900;
  flex:0 0 auto;
  overflow:hidden;
}

.player-stats-page .player-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.player-stats-page .player-info{min-width:0}

.player-stats-page .player-name{
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:165px;
}

.player-stats-page .player-meta{
  font-size:11px;
  line-height: 14px;
  color:#929292;
  margin-top:0px;
  white-space:nowrap;
}

.player-stats-page .player-number{
  color:var(--mu-red);
  font-weight:900;
  margin-right:4px;
}

/*.stat-goal{font-weight:800;}*/

.player-stats-page td.highlight-col{
  color:var(--mu-red);
  font-weight:900;
  background:var(--soft-red);
}

/*.stat-ga{font-weight:800}*/

.player-stats-page .position-tag{
  display:inline-flex;
  align-items:center;
  min-width:20px;
  justify-content:center;
}

.player-stats-page .empty-row{
  padding:28px!important;
  color:#777;
  text-align:center!important;
}

.player-stats-page .stats-note{
  display:flex;
  justify-content:space-between;
  gap:15px;
  color:#898989;
  font-size:11px;
  margin-top:12px;
  line-height:1.45;
}

.player-stats-page th.sortable,
.player-stats-page tbody td:nth-child(n+3) {
  width: 62px;
  min-width: 62px;
  max-width: 62px;
}

@media(max-width:700px){
  .player-stats-page{
    margin:0;
    padding:28px 0;
    border-radius:0;
    box-shadow:none;
  }
  .ps-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .ps-title{font-size:26px}
  .ps-selects{justify-content:flex-start}
  .leaders{
    grid-template-columns:1fr;
  }
  .leader-card{
    min-height:120px;
  }
  .player-stats-page .stats-note{
    flex-direction:column;
    gap:4px;
  }
  .table-wrap {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .player-stats-page .player-avatar {
    display: none;
  }

  .player-stats-page .player-cell {
    min-width: 0;
    width: 100%;
    gap: 0;
  }

  .player-stats-page .player-name {
    max-width: 145px;
  }

  .player-stats-page thead .player-col,
  .player-stats-page tbody .player-sticky-cell {
    position: sticky;
    left: 0;
    z-index: 4;
    background: #fff;
    box-shadow: 8px 0 10px -10px rgba(0,0,0,.35);
  }

  .player-stats-page thead .player-col {
    z-index: 6;
    background: #f5f5f5;
    min-width: 150px;
    width: 150px;
  }

  .player-stats-page tbody .player-sticky-cell {
    min-width: 150px;
    width: 150px;
  }

  .player-stats-page tbody tr:hover .player-sticky-cell {
    background: #fafafa;
  }
  .player-stats-page .rank-col,
  .player-stats-page .rank {
    display: none;
  }
  .player-stats-page .player-name {
    font-size: 12px;
    font-weight: unset;
  }
}