.huimengyu--call {
  min-height: 100%;
  background: #000000;
}

.huimengyu-call {
  min-height: 100%;
  height: 100%;
  padding: 10px 14px 20px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 30%),
    linear-gradient(180deg, #1a1b1f 0%, #0f1013 55%, #08090b 100%);
}

.huimengyu-call__topbar {
  z-index: 10;
  grid-template-columns: 40px 1fr 40px;
  gap: 8px;
  margin-bottom: 0;
}

.huimengyu-call__back,
.huimengyu-call__top-action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.huimengyu-call__top-action--hidden {
  opacity: 0;
  pointer-events: none;
}

.huimengyu-call__timer--top {
  min-width: 72px;
  font-size: 17px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.huimengyu-call__body {
  gap: 0;
}

.huimengyu-call__main {
  justify-content: flex-start;
}

.huimengyu-call__remote-stage--video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.huimengyu-call__video-fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 46%),
    linear-gradient(180deg, #25272d 0%, #16181c 55%, #08090b 100%);
}

.huimengyu-call__video-remote-photo,
.huimengyu-call__video-remote-avatar-wrap-inner {
  width: 100%;
  height: 100%;
}

.huimengyu-call__video-remote-photo {
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: none;
}

.huimengyu-call__video-remote-avatar-wrap-inner--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(70, 78, 89, 0.96), rgba(18, 21, 28, 0.98));
}

.huimengyu-call__video-dim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.08) 18%, rgba(0, 0, 0, 0.02) 44%, rgba(0, 0, 0, 0.18) 72%, rgba(0, 0, 0, 0.38) 100%);
  pointer-events: none;
}

.huimengyu-call__video-overlay {
  position: absolute;
  left: 18px;
  right: 128px;
  top: 56px;
  z-index: 8;
  pointer-events: none;
}

.huimengyu-call__video-name {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.huimengyu-call__video-status {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.huimengyu-call__self-video {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 9;
  width: 108px;
  height: 146px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(226, 232, 241, 0.98), rgba(208, 216, 228, 0.98));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.huimengyu-call__self-video--off {
  background:
    linear-gradient(180deg, rgba(234, 238, 244, 0.98), rgba(214, 221, 231, 0.98));
}

.huimengyu-call__self-video-live,
.huimengyu-call__self-video-avatar,
.huimengyu-call__self-video-placeholder {
  width: 100%;
  height: 100%;
}

.huimengyu-call__self-video-live {
  display: none;
  object-fit: cover;
  object-position: center center;
  background: #101115;
}

.huimengyu-call__self-video-live--active {
  display: block;
}

.huimengyu-call__self-video-live--mirrored {
  transform: scaleX(-1);
}

.huimengyu-call__self-video-avatar {
  display: block;
  object-fit: cover;
}

.huimengyu-call__self-video-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: rgba(80, 100, 128, 0.92);
}

.huimengyu-call__self-video-label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  max-width: calc(100% - 16px);
  padding: 4px 8px;
  overflow: hidden;
  border-radius: 999px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1;
  color: #ffffff;
  background: rgba(78, 84, 94, 0.84);
}

.huimengyu-call__actions--video {
  position: relative;
  z-index: 8;
  margin-top: auto;
  gap: 14px;
  padding-bottom: 12px;
}

.huimengyu-call__actions-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.huimengyu-call__action--stacked {
  width: 76px;
  min-width: 76px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.huimengyu-call__action--stacked .huimengyu-call__action-button {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 236, 236, 0.92) 100%);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.huimengyu-call__action--stacked.is-active .huimengyu-call__action-button {
  background: linear-gradient(180deg, rgba(248, 248, 248, 0.96) 0%, rgba(222, 222, 222, 0.92) 100%);
}

.huimengyu-call__action--stacked .huimengyu-call__action-icon {
  font-size: 24px;
  color: #18191c;
  filter: none;
}

.huimengyu-call__action--stacked .huimengyu-call__action-label {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.35;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.36);
}

.huimengyu-call__footer {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.huimengyu-call__hangup {
  width: 62px;
  min-width: 62px;
  background: linear-gradient(180deg, #ff6f73 0%, #ff4d59 100%);
  box-shadow:
    0 16px 32px rgba(255, 79, 90, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.huimengyu-call__hangup::before {
  font-size: 22px;
}

.huimengyu-call__remote-stage--voice {
  min-height: 320px;
  margin-top: 12px;
  margin-bottom: 18px;
}

.huimengyu-call__info {
  gap: 8px;
}

.huimengyu-call__name {
  font-size: 24px;
}

.huimengyu-call__status {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.huimengyu-call__meta {
  gap: 16px;
}

.huimengyu-call__actions--voice {
  padding-top: 10px;
  padding-bottom: 40px;
}

.huimengyu-call__actions--voice .huimengyu-call__actions-row {
  gap: 20px;
}

.huimengyu-call__actions--voice .huimengyu-call__action {
  width: 64px;
  background: rgba(0, 0, 0, 0.74);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.huimengyu-call__actions--voice .huimengyu-call__action-icon {
  font-size: 28px;
  color: #ffffff;
  filter: none;
}

.huimengyu-call__actions--voice .huimengyu-call__hangup {
  width: 84px;
  min-width: 84px;
}

.huimengyu-call[data-huimengyu-call-mode="video"],
.huimengyu-call--video {
  padding: 0;
  background: #000000;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__topbar,
.huimengyu-call--video .huimengyu-call__topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  padding: 10px 10px 0;
  grid-template-columns: 28px 1fr 28px;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__back,
.huimengyu-call--video .huimengyu-call__back,
.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__top-action,
.huimengyu-call--video .huimengyu-call__top-action {
  width: 28px;
  height: 28px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__timer--top,
.huimengyu-call--video .huimengyu-call__timer--top {
  min-width: 64px;
  font-size: 16px;
  font-weight: 500;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__body,
.huimengyu-call--video .huimengyu-call__body,
.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__main,
.huimengyu-call--video .huimengyu-call__main {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__remote-stage--video,
.huimengyu-call--video .huimengyu-call__remote-stage--video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__video-fill,
.huimengyu-call--video .huimengyu-call__video-fill {
  position: absolute;
  inset: 0;
  background: #d9d9d9;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__video-remote-photo,
.huimengyu-call--video .huimengyu-call__video-remote-photo,
.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__video-remote-avatar-wrap-inner,
.huimengyu-call--video .huimengyu-call__video-remote-avatar-wrap-inner {
  width: 100%;
  height: 100%;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__video-remote-photo,
.huimengyu-call--video .huimengyu-call__video-remote-photo {
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: none;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__video-dim,
.huimengyu-call--video .huimengyu-call__video-dim {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.03) 18%, rgba(0, 0, 0, 0.02) 52%, rgba(0, 0, 0, 0.10) 100%);
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__video-overlay,
.huimengyu-call--video .huimengyu-call__video-overlay {
  left: 16px;
  right: 140px;
  top: 86px;
}

.huimengyu-call[data-huimengyu-call-screen-mode="self-primary"] .huimengyu-call__video-overlay,
.huimengyu-call--video[data-huimengyu-call-screen-mode="self-primary"] .huimengyu-call__video-overlay {
  right: 126px;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__video-name,
.huimengyu-call--video .huimengyu-call__video-name {
  font-size: 18px;
  font-weight: 600;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__video-status,
.huimengyu-call--video .huimengyu-call__video-status {
  font-size: 12px;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__self-video,
.huimengyu-call--video .huimengyu-call__self-video {
  top: 14px;
  right: 16px;
  z-index: 13;
  width: 108px;
  height: 144px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(232, 239, 248, 0.98), rgba(217, 226, 238, 0.98));
  box-shadow: none;
}

.huimengyu-call[data-huimengyu-call-screen-mode="self-primary"] .huimengyu-call__self-video,
.huimengyu-call--video[data-huimengyu-call-screen-mode="self-primary"] .huimengyu-call__self-video {
  background: rgba(255, 255, 255, 0.92);
}

.huimengyu-call[data-huimengyu-call-self-video-layout="expanded"] .huimengyu-call__self-video,
.huimengyu-call__self-video[data-huimengyu-call-self-video-layout="expanded"] {
  top: 14px;
  right: 16px;
  width: 132px;
  height: 176px;
  border-radius: 0;
  box-shadow: none;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__self-video-label,
.huimengyu-call--video .huimengyu-call__self-video-label {
  left: 50%;
  right: auto;
  bottom: 10px;
  transform: translateX(-50%);
  max-width: calc(100% - 12px);
  padding: 3px 7px;
  font-size: 10px;
  background: rgba(122, 128, 138, 0.92);
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__actions,
.huimengyu-call--video .huimengyu-call__actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 12;
  gap: 16px;
  padding-bottom: 0;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__actions-grid,
.huimengyu-call--video .huimengyu-call__actions-grid,
.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__footer,
.huimengyu-call--video .huimengyu-call__footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  justify-items: center;
  width: 100%;
  max-width: 310px;
  margin: 0 auto;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__action--stacked,
.huimengyu-call--video .huimengyu-call__action--stacked {
  width: 78px;
  min-width: 78px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__action-button,
.huimengyu-call--video .huimengyu-call__action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__action-label,
.huimengyu-call--video .huimengyu-call__action-label {
  display: block;
  margin-top: 0;
  white-space: normal;
  word-break: break-all;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__hangup,
.huimengyu-call--video .huimengyu-call__hangup {
  width: 78px;
  min-width: 78px;
  height: auto;
  aspect-ratio: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  background: transparent;
  box-shadow: none;
}

.huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__hangup::before,
.huimengyu-call--video .huimengyu-call__hangup::before {
  content: none;
}

.huimengyu-call__hangup-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #111214;
  background: linear-gradient(180deg, #ff6f73 0%, #ff4f5a 100%);
  box-shadow:
    0 16px 30px rgba(255, 79, 90, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.huimengyu-call__hangup-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  color: #ffffff;
}

.huimengyu-call__action-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.huimengyu-call__top-action--video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0;
}

.huimengyu-call__top-action--video::before {
  content: "▣";
  font-size: 14px;
  line-height: 1;
}

.huimengyu-call-float {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 170px;
  min-height: 66px;
  padding: 9px 10px;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background: rgba(18, 20, 25, 0.9);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.huimengyu-call-float:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.huimengyu-call-float.is-dragging {
  cursor: grabbing;
  transform: none;
  transition: box-shadow 120ms ease, opacity 120ms ease;
}

.huimengyu-call-float__preview {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
}

.huimengyu-call-float__avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(180deg, rgba(235, 239, 246, 0.98), rgba(213, 220, 231, 0.98));
}

.huimengyu-call-float__avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: rgba(86, 98, 122, 0.92);
}

.huimengyu-call-float__mode-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  color: #ffffff;
  background: linear-gradient(135deg, #36c66b 0%, #29a85a 100%);
  box-shadow: 0 6px 14px rgba(41, 168, 90, 0.26);
}

.huimengyu-call-float__meta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.huimengyu-call-float__app-label,
.huimengyu-call-float__name,
.huimengyu-call-float__status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.huimengyu-call-float__app-label {
  font-size: 10px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.54);
}

.huimengyu-call-float__name {
  font-size: 14px;
  font-weight: 700;
}

.huimengyu-call-float__status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 420px) {
  .huimengyu-call {
    padding: 10px 12px 16px;
  }

  .huimengyu-call[data-huimengyu-call-mode="video"],
  .huimengyu-call--video {
    padding: 0;
  }

  .huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__topbar,
  .huimengyu-call--video .huimengyu-call__topbar {
    padding: 8px 8px 0;
  }

  .huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__video-overlay,
  .huimengyu-call--video .huimengyu-call__video-overlay {
    left: 14px;
    right: 126px;
    top: 78px;
  }

  .huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__video-name,
  .huimengyu-call--video .huimengyu-call__video-name {
    font-size: 16px;
  }

  .huimengyu-call[data-huimengyu-call-mode="video"] .huimengyu-call__self-video,
  .huimengyu-call--video .huimengyu-call__self-video {
    top: 14px;
    right: 14px;
    width: 108px;
    height: 144px;
  }

  .huimengyu-call[data-huimengyu-call-self-video-layout="expanded"] .huimengyu-call__self-video,
  .huimengyu-call__self-video[data-huimengyu-call-self-video-layout="expanded"] {
    top: 14px;
    right: 14px;
    width: 124px;
    height: 168px;
  }

  .huimengyu-call__actions-grid {
    gap: 8px;
    max-width: 250px;
  }

  .huimengyu-call__action--stacked {
    width: 72px;
    min-width: 72px;
  }

  .huimengyu-call__action--stacked .huimengyu-call__action-button {
    width: 50px;
    height: 50px;
  }

  .huimengyu-call__hangup {
    width: 72px;
    min-width: 72px;
  }

  .huimengyu-call__hangup-icon {
    width: 58px;
    height: 58px;
  }

  .huimengyu-call__hangup-icon svg,
  .huimengyu-call__action-icon svg {
    width: 24px;
    height: 24px;
  }

  .huimengyu-call-float {
    top: 10px;
    right: 10px;
    width: 158px;
    min-height: 60px;
    padding: 8px 9px;
  }

  .huimengyu-call-float__preview {
    width: 42px;
    height: 42px;
  }
}
