/* ========================================================================
   7. EVENTS
   ======================================================================== */

.match-events{
  display:grid;
  gap:30px;
  width:min(100%, 960px);
  max-width:960px;
  margin-top:18px;
  margin-left:auto;
  margin-right:auto;
}

.match-events__period{
  display:grid;
  gap:14px;
  min-width:0;
}

.match-events__period-title{
  display:flex;
  align-items:center;
  justify-content:center;
  height:34px;
  color:var(--color-content-heading);
  font-family:var(--h1-font-family);
  font-size:16px;
  line-height:1;
  font-weight:700;
  text-transform:uppercase;
}

.match-events__list{
  display:grid;
  gap:14px;
  min-width:0;
}

.match-events__item{
  display:grid;
  grid-template-columns:52px 38px 58px minmax(0,1fr);
  align-items:center;
  gap:16px;
  min-width:0;
  min-height:70px;
  padding:12px 22px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.03);
}

.no-touch .match-events__item:hover{
  background:rgba(255,255,255,.055);
}

.match-events__time{
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:44px;
  background:rgba(0,0,0,.28);
  color:var(--color-content-heading);
  font-family:var(--h1-font-family);
  font-size:17px;
  line-height:1;
  font-weight:800;
}

.match-score-breakdown{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  min-width:0;
  max-width:100%;
  margin:0 0 14px;
}

.match-score-breakdown__item{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:auto;
  min-width:0;
  min-height:44px;
  padding:0 14px;
  background:rgba(0,0,0,.28);
  color:var(--color-content-heading);
  font-family:var(--h1-font-family);
  font-size:17px;
  line-height:1;
  font-weight:800;
}

.match-score-breakdown__label,
.match-score-breakdown__value{
  color:inherit;
  font:inherit;
}

.match-events__item--penalties{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  min-height:92px;
  text-align:center;
}

.match-events__item--penalties .match-events__text{
  display:grid;
  gap:6px;
  flex:0 1 auto;
  min-width:0;
}

.match-events__time--penalties{
  width:auto;
  min-width:116px;
  padding:0 16px;
  white-space:nowrap;
}

.match-events__penalty-score{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  min-width:0;
  color:var(--color-content-heading);
  font-family:var(--h1-font-family);
  font-size:18px;
  line-height:1.2;
  font-weight:800;
}

.match-events__penalty-team{
  max-width:260px;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.match-events__penalty-value{
  color:var(--color-content-heading);
  white-space:nowrap;
}

.match-events__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:32px;
  min-width:0;
}

.match-events__ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  color:rgba(255,255,255,.85);
}

.match-events__ico--goal{
  font-size:20px;
  color:rgba(255,255,255,.92);
}

.match-events__ico--yellow{
  font-size:17px;
  color:#f2c94c;
}

.match-events__ico--red{
  font-size:17px;
  color:#eb5757;
}

.match-events__ico--sub{
  position:relative;
  flex-direction:column;
  gap:1px;
  font-size:16px;
}

.match-events__sub-arrow--in{
  color:#00965f;
}

.match-events__sub-arrow--out{
  color:#b72220;
}

.match-events__ico--dot{
  font-size:9px;
  color:rgba(255,255,255,.45);
}

.match-events__ico--badge{
  min-width:28px;
  height:22px;
  padding:0 5px;
  border-radius:3px;
  background:rgba(255,255,255,.08);
  color:var(--color-content-heading);
  font-family:var(--h1-font-family);
  font-size:10px;
  line-height:22px;
  font-weight:800;
}

.match-events__ico--penalty{
  background:rgba(255,255,255,.12);
}

.match-events__ico--own-goal,
.match-events__ico--missed{
  background:rgba(255,75,63,.16);
  color:#ff4b3f;
}

.match-events__ico--var{
  min-width:34px;
  background:rgba(89,168,255,.16);
  color:#6ab0ff;
}

.match-events__avatar{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  min-width:0;
  overflow:hidden;
  border-radius:999px;
  box-sizing:border-box;
  border:2px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
}

.match-events__avatar-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.match-events__avatars{
  display:inline-flex;
  align-items:center;
  width:58px;
  min-width:0;
}

.match-events__avatars--sub .match-events__avatar + .match-events__avatar{
  margin-left:-12px;
}

.match-events__avatar--in{
  z-index:2;
  border-color:#25bf68;
}

.match-events__avatar--out{
  z-index:1;
  border-color:#e53935;
  filter:grayscale(.08);
}

.match-events__text{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.match-events__names{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-width:0;
}

.match-events__main{
  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.1;
  font-weight:700;
}

.match-events__sub{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(255,255,255,.40);
  font-size:12px;
  line-height:1.1;
  font-weight:500;
}

.match-events__item--sub .match-events__main{
  color:#25bf68;
}

.match-events__item--sub .match-events__sub{
  color:#ff4b3f;
}

.match-events__meta{
  flex:0 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(255,255,255,.46);
  font-size:11px;
  line-height:1.1;
  font-weight:700;
  text-transform:uppercase;
}

.match-events__item--away{
  grid-template-columns:minmax(0,1fr) 58px 38px 52px;
  text-align:right;
}

.match-events__item--away .match-events__time{
  order:4;
}

.match-events__item--away .match-events__icon{
  order:3;
}

.match-events__item--away .match-events__avatar,
.match-events__item--away .match-events__avatars{
  order:2;
}

.match-events__item--away .match-events__text{
  order:1;
  justify-content:flex-end;
  flex-direction:row;
}

.match-events__item--away .match-events__names{
  justify-content:flex-end;
  flex-direction:row;
}

.match-events__item--away.match-events__item--sub .match-events__names{
  flex-direction:row-reverse;
}
