.participant {
  width: 100%;
  height: 100%;
  position: relative;
}

.participant__name {
  color: #fff;
  font-size: 14px;
  font-weight: 350;
  left: 16px;
  position: absolute;
  text-transform: uppercase;
  top: 24px;
  z-index: 2;
}

.participant__video-container {
  width: 100%;
  height: 100%;
  background-color: var(--zocks-grey-3);
  border: 2px solid transparent;
  box-sizing: border-box;

  > video {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 16/9;
    max-width: 100%;
    max-height: 100%;
  }
}

.participant__video-container--speaking {
  border: solid 2px var(--zocks-purple-5);
}

.participant__video-container--local video {
  transform: rotateY(180deg);
}

.participant__avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-weight: 500;
  font-size: 56px;
  color: #fff;
}

.participant__status-icons {
  display: flex;
  justify-items: center;
  align-content: center;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  gap: 1rem;
}

@mixin participant__icon {
  display: flex;
  backdrop-filter: blur(12px);
  border-radius: 50%;
  background: var(--zocks-transparent-3);
  font-size: 24px;
  align-items: center;
  justify-content: center;
  color: #fff;
  width: 40px;
  height: 40px;
}

.participant__no-video-icon {
  @include participant__icon;

  &:before {
    font-size: inherit;
    font-family: zocksiconfont, serif;
    content: '\e807';
  }
}

.participant__no-audio-icon {
  @include participant__icon;

  &:before {
    font-size: inherit;
    font-family: zocksiconfont, serif;
    content: '\e819';
  }
}


.participant__unknown-quality-icon {
  @include participant__icon;

  &:before {
    font-size: inherit;
    font-family: zocksiconfont, serif;
    content: '\e828';
  }
}

.participant__poor-quality-icon {
  @include participant__icon;
  color: var(--zocks-error-medium);

  &:before {
    font-size: inherit;
    font-family: zocksiconfont, serif;
    content: '\e828';
  }
}

.participant__good-quality-icon {
  @include participant__icon;
  color: var(--zocks-warning-medium);

  &:before {
    font-size: inherit;
    font-family: zocksiconfont, serif;
    content: '\e828';
  }
}

.participant__excellent-quality-icon {
  @include participant__icon;
  color: var(--zocks-success-medium);

  &:before {
    font-size: inherit;
    font-family: zocksiconfont, serif;
    content: '\e828';
  }
}
