.fengxinlou--call {
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #111726 0%, #090d18 100%);
  color: #f7f8fb;
}

.fengxinlou-call {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fengxinlou-call__background,
.fengxinlou-call__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fengxinlou-call__background {
  background:
    radial-gradient(circle at 18% 20%, rgba(131, 156, 255, 0.3), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(255, 138, 190, 0.2), transparent 22%),
    radial-gradient(circle at 50% 82%, rgba(107, 224, 255, 0.14), transparent 28%);
  filter: blur(6px);
}

.fengxinlou-call__overlay {
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.08), rgba(6, 10, 18, 0.4));
}

.fengxinlou-call__header,
.fengxinlou-call__content,
.fengxinlou-call__controls {
  position: relative;
  z-index: 1;
}

.fengxinlou-call__header {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 8px;
}

.fengxinlou-call__avatar-button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.fengxinlou-call__avatar-button--remote,
.fengxinlou-call__avatar-button--self {
  background: rgba(255, 255, 255, 0.18);
}

.fengxinlou-call__avatar-button-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fengxinlou-call__avatar-button-fallback {
  font-size: 18px;
  font-weight: 600;
}

.fengxinlou-call__header-main {
  text-align: center;
}

.fengxinlou-call__status {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.04em;
}

.fengxinlou-call__name {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.fengxinlou-call__timer {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
}

.fengxinlou-call__content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 18px 18px;
  gap: 14px;
  overflow: hidden;
}

.fengxinlou-call__voice-stage {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.fengxinlou-call__voice-stage-panel {
  width: min(100%, 372px);
  min-height: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  display: flex;
}

.fengxinlou-call__reply-panel {
  width: 100%;
  min-height: 100%;
  max-height: 100%;
  padding: 6px 4px;
  border-radius: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  text-align: left;
  overflow: hidden;
}

.fengxinlou-call__reply-panel--video {
  width: 100%;
  min-height: 136px;
  max-height: 196px;
  border-radius: 24px;
  background: rgba(9, 14, 24, 0.62);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.fengxinlou-call__reply-title {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.66);
  letter-spacing: 0.08em;
}

.fengxinlou-call__reply-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: #ffffff;
  white-space: pre-wrap;
  word-break: break-word;
}

.fengxinlou-call__transcript {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fengxinlou-call__transcript-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fengxinlou-call__transcript-item--self {
  align-items: flex-end;
}

.fengxinlou-call__transcript-role {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.66);
}

.fengxinlou-call__transcript-text {
  max-width: 100%;
  font-size: 16px;
  line-height: 1.8;
  color: #ffffff;
  white-space: pre-wrap;
  word-break: break-word;
}

.fengxinlou-call__composer {
  width: min(100%, 360px);
  margin: 0 auto;
}

.fengxinlou-call__composer-input {
  width: 100%;
  border: 0;
  outline: none;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 15px;
  color: #101522;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.fengxinlou-call__video-stage {
  position: relative;
  width: 100%;
  height: min(70dvh, 620px);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.fengxinlou-call__video-screen {
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  overflow: hidden;
}

.fengxinlou-call__video-screen--remote {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(49, 63, 101, 0.94), rgba(17, 25, 40, 0.98));
}

.fengxinlou-call__video-screen--self {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 112px;
  height: 160px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(195, 206, 255, 0.34), rgba(65, 72, 112, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.fengxinlou-call[data-fengxinlou-call-screen-mode="self-primary"] .fengxinlou-call__video-screen--remote {
  top: 16px;
  right: 16px;
  left: auto;
  bottom: auto;
  width: 112px;
  height: 160px;
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.fengxinlou-call[data-fengxinlou-call-screen-mode="self-primary"] .fengxinlou-call__video-screen--self {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  border: 0;
}

.fengxinlou-call__video-fill {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(180deg, rgba(144, 170, 255, 0.58), rgba(35, 45, 80, 0.92));
}

.fengxinlou-call__video-fill--self {
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(180deg, rgba(255, 205, 224, 0.46), rgba(79, 86, 130, 0.92));
}

.fengxinlou-call__local-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0d1320;
}

.fengxinlou-call__video-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fengxinlou-call__video-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.fengxinlou-call__video-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.fengxinlou-call__video-camera-mask {
  position: absolute;
  inset: auto 10px 10px 10px;
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
  font-size: 12px;
  color: #ffffff;
  background: rgba(8, 12, 22, 0.72);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fengxinlou-call[data-fengxinlou-call-camera-enabled="false"] .fengxinlou-call__video-camera-mask {
  opacity: 1;
  transform: translateY(0);
}

.fengxinlou-call__controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
  padding: 14px 24px 24px;
}

.fengxinlou-call__control {
  width: 88px;
  height: 88px;
  justify-self: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.fengxinlou-call__control--danger {
  width: 104px;
  height: 104px;
  grid-column: 2;
  min-height: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 110, 132, 0.98), rgba(232, 66, 91, 0.98));
}

.fengxinlou-call__control-icon {
  font-size: 22px;
  line-height: 1;
}

.fengxinlou-call__control-label {
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.fengxinlou-call[data-fengxinlou-call-request-pending="true"] .fengxinlou-call__reply-panel {
  box-shadow: 0 0 0 1px rgba(143, 169, 255, 0.22), 0 24px 60px rgba(0, 0, 0, 0.24);
}

.fengxinlou-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;
  text-align: left;
  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;
}

.fengxinlou-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);
}

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

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

.fengxinlou-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));
}

.fengxinlou-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);
}

.fengxinlou-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);
}

.fengxinlou-call-float__meta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

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

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

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

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

@media (max-width: 520px) {
  .fengxinlou-call__header {
    padding: 18px 14px 6px;
  }

  .fengxinlou-call__name {
    font-size: 22px;
  }

  .fengxinlou-call__timer {
    font-size: 16px;
  }

  .fengxinlou-call__content {
    padding: 10px 14px 16px;
  }

  .fengxinlou-call__voice-stage-panel {
    width: 100%;
    padding: 0;
    border-radius: 0;
  }

  .fengxinlou-call__reply-panel {
    min-height: 160px;
    padding: 4px 2px;
    border-radius: 0;
  }

  .fengxinlou-call__transcript-text {
    font-size: 15px;
  }

  .fengxinlou-call__reply-text {
    font-size: 16px;
  }

  .fengxinlou-call__video-stage {
    height: min(64dvh, 520px);
    border-radius: 24px;
  }

  .fengxinlou-call__video-screen--self,
  .fengxinlou-call[data-fengxinlou-call-screen-mode="self-primary"] .fengxinlou-call__video-screen--remote {
    width: 100px;
    height: 146px;
  }

  .fengxinlou-call__controls {
    padding: 12px 14px 20px;
    gap: 12px;
  }

  .fengxinlou-call__control {
    width: 78px;
    height: 78px;
  }

  .fengxinlou-call__control--danger {
    width: 94px;
    height: 94px;
  }

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

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