.bb-player-avatar {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
  line-height: 0;
  overflow: visible;
}

.bb-player-avatar > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bb-player-avatar__training {
  position: absolute;
  left: auto;
  right: -14px;
  top: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: 11px;
  height: 100%;
  padding: 1px;
  border: 1px solid rgba(17, 138, 178, .28);
  border-radius: 7px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 6px rgba(7, 59, 76, .18);
}

.bb-player-avatar__training img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.bb-player-avatar__training img.is-filled {
  opacity: 1;
}

.bb-player-avatar__training img.is-empty {
  opacity: .18;
  filter: grayscale(1);
}

.bb-player-avatar__loyalty {
  position: absolute;
  right: -4px;
  bottom: -4px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff7d6;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .3);
  font-size: 10px;
  line-height: 1;
}

.bb-player-avatar--profile .bb-player-avatar__training,
.bb-player-avatar--cabinet .bb-player-avatar__training {
  right: -22px;
  width: 18px;
}

.bb-player-avatar--profile {
  width: 100%;
  height: 100%;
}

.bb-player-avatar--profile > img:first-child {
  border-radius: 10px;
}

.bb-player-avatar--cabinet {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
}

.bb-player-avatar--profile .bb-player-avatar__loyalty {
  right: 4px;
  bottom: 4px;
  width: 34px;
  height: 34px;
  font-size: 20px;
}

.bb-player-avatar--cabinet .bb-player-avatar__loyalty {
  width: 24px;
  height: 24px;
  font-size: 14px;
}

.live-events__players .bb-player-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

/* Карточки игр, тренировок и турниров всегда используют компактные аватарки. */
.game__list-user-photo .bb-player-avatar {
  width: 33px;
  height: 33px;
  min-width: 33px;
  min-height: 33px;
  max-width: 33px;
  max-height: 33px;
  flex: 0 0 33px;
}

.game__list-user-photo .bb-player-avatar > img:first-child {
  width: 33px;
  height: 33px;
  max-width: 33px;
  max-height: 33px;
}
