/* ========================================================================
   11. PLAYER STATS
   ======================================================================== */

.match-player-stats{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin-top:6px;
}

.match-player-stats__table{
  width:100%;
  min-width:960px;
  border-collapse:separate;
  border-spacing:0;
}

.match-player-stats-note{
  margin:0 0 14px;
  color:rgba(255,255,255,.62);
  font-size:12px;
  line-height:1.35;
  font-weight:700;
  text-align:center;
}

.match-player-stats__table thead th{
  padding:0 8px 10px;
  border-bottom:1px solid rgba(255,255,255,.12);
  text-align:center;
  white-space:nowrap;
  color:rgba(255,255,255,.65);
  font-family:var(--h1-font-family);
  font-size:11px;
  line-height:1.1;
  font-weight:700;
  text-transform:uppercase;
}

.match-player-stats__table thead th.match-player-stats__player{
  min-width:190px;
  padding-left:0;
  text-align:left;
}

.match-player-stats__table tbody td{
  padding:12px 8px;
  border-bottom:1px solid rgba(255,255,255,.12);
  text-align:center;
  vertical-align:middle;
  white-space:nowrap;
  color:var(--color-content-heading);
  font-family:var(--h1-font-family);
  font-size:14px;
  line-height:1.2;
  font-weight:600;
}

.match-player-stats__table tbody td:first-child{
  padding-left:0;
  white-space:normal;
}

.match-player-stats__table tbody tr:last-child td{
  border-bottom:0;
}

.match-player-stats__table tbody tr{
  background:transparent;
  transition:background .2s ease;
}

.no-touch .match-player-stats__table tbody tr:hover{
  background:rgba(255,255,255,.04);
}

.match-player-stats__player{
  width:220px;
  min-width:220px;
}

.match-player-stats__player-box{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-width:0;
}

.match-player-stats__avatar{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(0,0,0,.22);
}

.match-player-stats__avatar img{
  display:block;
  width:34px;
  height:34px;
  object-fit:cover;
}

.match-player-stats__name{
  display:block;
  min-width:0;
  overflow:visible;
  text-overflow:unset;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:left;
  color:var(--color-content-heading);
  font-family:var(--h1-font-family);
  font-size:14px;
  line-height:1.3;
  font-weight:600;
}

.match-player-stats__table th:not(.match-player-stats__player),
.match-player-stats__table td:not(.match-player-stats__player){
  min-width:38px;
}

/* ========================================================================
   11.1 TEAM HEADER ABOVE PLAYER STATS
   ======================================================================== */

.match-player-stats-team{
  margin-top:12px;
}

.match-player-stats-team + .match-player-stats-team{
  margin-top:0;
}

.match-player-stats-team__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  overflow:hidden;
  padding:8px 12px;
  margin-bottom:8px;
  background:rgba(255,255,255,.08);
  color:inherit;
}

.no-touch .match-player-stats-team__header:hover{
  background:rgba(255,255,255,.10);
}

.match-player-stats-team__left{
  min-width:0;
  width:100%;
}

.match-player-stats-team__title{
  min-width:0;
  width:100%;
}

.match-player-stats-team__name{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--color-content-heading);
  font-family:var(--h1-font-family);
  font-size:14px;
  line-height:1.15;
  font-weight:700;
}

.match-player-stats-team__name img{
  display:block;
  width:20px;
  height:20px;
  flex:0 0 20px;
  object-fit:contain;
}

.match-player-stats-panel{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
  align-items:start;
}

.match-player-stats-panel .match-player-stats-team{
  min-width:0;
}

.match-player-stats-panel.is-refreshed .match-player-stat-card__rating{
  animation:afw-player-rating-refresh 1.2s ease;
}

.match-player-stats-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  min-width:0;
}

.match-player-stats-panel .match-player-stats-grid{
  grid-template-columns:1fr;
}

.match-player-stat-card{
  display:grid;
  gap:12px;
  min-width:0;
  padding:12px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(0,0,0,.18);
}

.match-player-stat-card__head{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-width:0;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.match-player-stat-card__avatar,
.match-player-stat-card__avatar img{
  display:block;
  width:42px;
  height:42px;
  border-radius:999px;
}

.match-player-stat-card__avatar{
  overflow:hidden;
  background:#fff;
}

.match-player-stat-card__avatar img{
  object-fit:cover;
}

.match-player-stat-card__identity{
  display:grid;
  gap:3px;
  min-width:0;
}

.match-player-stat-card__name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#fff;
  font-family:var(--h1-font-family);
  font-size:14px;
  line-height:1.15;
  font-weight:800;
}

.match-player-stat-card__position{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(255,255,255,.54);
  font-size:10px;
  line-height:1.15;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.match-player-stat-card__rating{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:30px;
  padding:0 8px;
  background:#050707;
  color:#a7e84b;
  font-family:var(--h1-font-family);
  font-size:13px;
  line-height:1;
  font-weight:900;
  white-space:nowrap;
}

.match-player-stat-card__rating--live{
  animation:afw-player-rating-live 1.8s ease-in-out infinite;
}

.match-player-stat-card__groups{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  min-width:0;
}

.match-player-stat-card__group{
  display:grid;
  gap:7px;
  min-width:0;
  padding:9px;
  background:rgba(255,255,255,.045);
}

.match-player-stat-card__group-title{
  color:rgba(255,255,255,.64);
  font-size:10px;
  line-height:1.1;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.match-player-stat-card__metrics{
  display:grid;
  gap:5px;
  min-width:0;
}

.match-player-stat-card__metric{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  min-width:0;
}

.match-player-stat-card__metric-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(255,255,255,.58);
  font-size:11px;
  line-height:1.15;
  font-weight:700;
}

.match-player-stat-card__metric-value{
  color:#fff;
  font-family:var(--h1-font-family);
  font-size:12px;
  line-height:1.1;
  font-weight:900;
  white-space:nowrap;
}

@keyframes afw-player-rating-live{
  0%,100%{
    color:#a7e84b;
    box-shadow:none;
  }
  50%{
    color:#d8ff78;
    box-shadow:0 0 0 2px rgba(167,232,75,.18);
  }
}

@keyframes afw-player-rating-refresh{
  0%{
    transform:scale(1);
  }
  35%{
    transform:scale(1.08);
    box-shadow:0 0 0 3px rgba(167,232,75,.20);
  }
  100%{
    transform:scale(1);
  }
}

@media (max-width:980px){
  .match-player-stats-panel{
    grid-template-columns:1fr;
  }

  .match-player-stats-team + .match-player-stats-team{
    margin-top:18px;
  }

  .match-player-stats-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .match-player-stat-card{
    padding:10px;
  }

  .match-player-stat-card__head{
    grid-template-columns:36px minmax(0,1fr) auto;
    gap:8px;
  }

  .match-player-stat-card__avatar,
  .match-player-stat-card__avatar img{
    width:36px;
    height:36px;
  }

  .match-player-stat-card__name{
    font-size:13px;
  }

  .match-player-stat-card__rating{
    min-width:31px;
    height:28px;
    padding:0 7px;
    font-size:12px;
  }

  .match-player-stat-card__groups{
    grid-template-columns:1fr;
  }

  .match-player-stat-card__metric-label{
    white-space:normal;
  }
}

