/* The camera/microphone preview inside Meetings Settings (Video tab), shared by the dashboard
   tabs and meeting-room.html. The stage keeps a fixed height whatever resolution the camera
   reports, and the camera-off state shows the member's own avatar — or their initials — in the
   same circle a meeting card gives its participants. */
.meeting-video-preview {
  width: 100%;
  margin-top: 4px;
}

/* A fixed height, not an aspect ratio: the stage is the same size whatever resolution the
   camera reports, so the settings panel never jumps when the preview starts or stops. */
.meeting-video-preview-stage {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #e4e7ec;
  background: #101828;
}

.meeting-video-preview-stage > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.meeting-preview-avatar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 55%, #3f64d8 0, #243c8d 40%, #111a35 100%);
}

.meeting-preview-avatar-orbit {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(173, 197, 255, .34);
  border-radius: 50%;
  box-shadow: 0 0 45px rgba(70, 112, 255, .35), inset 0 0 40px rgba(70, 112, 255, .2);
  animation: meeting-preview-drift 8s ease-in-out infinite alternate;
}

/* Camera off: the member's own avatar in a circle, the same treatment a meeting card gives
   its participants. Without a photo the initials sit in the same circle. */
.meeting-preview-avatar img,
.meeting-preview-avatar-initials {
  position: relative;
  z-index: 1;
  width: min(30%, 118px);
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.meeting-preview-avatar-initials {
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #2966f4;
  font-family: var(--gf-font);
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  letter-spacing: .04em;
  box-sizing: border-box;
}

.meeting-preview-status {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 24, 40, .72);
  color: #fff;
  font-size: var(--gf-text-control);
  line-height: 1.35;
}

@keyframes meeting-preview-drift {
  from { transform: translate(-7%, 4%) scale(.92); }
  to { transform: translate(7%, -4%) scale(1.08); }
}
