.fengxinlou-inner-voice-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.fengxinlou-inner-voice-modal[hidden] {
  display: none !important;
}

.fengxinlou-inner-voice-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.fengxinlou-inner-voice-modal__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 540px);
  height: min(78vh, 680px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.fengxinlou-inner-voice-modal__header {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  pointer-events: none;
}

.fengxinlou-inner-voice-modal__title {
  display: none;
}

.fengxinlou-inner-voice-modal__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: rgba(45, 45, 50, 0.78);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.fengxinlou-inner-voice-modal__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.fengxinlou-inner-voice-modal__card-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform, opacity;
}

.fengxinlou-inner-voice-modal__card-shell.is-slide-left {
  animation: fengxinlou-inner-voice-slide-left 260ms ease both;
}

.fengxinlou-inner-voice-modal__card-shell.is-slide-right {
  animation: fengxinlou-inner-voice-slide-right 260ms ease both;
}

.fengxinlou-inner-voice-modal__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.fengxinlou-inner-voice-modal__gesture-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: clamp(28px, 9vw, 52px);
  border: 0;
  outline: 0;
  cursor: pointer;
  touch-action: pan-y;
  background: transparent;
}

.fengxinlou-inner-voice-modal__gesture-layer--prev {
  left: 0;
}

.fengxinlou-inner-voice-modal__gesture-layer--next {
  right: 0;
}

.fengxinlou-inner-voice-modal__gesture-layer::before {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 52px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(42, 35, 52, 0.18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  font-size: 22px;
  line-height: 52px;
  text-align: center;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 160ms ease, background 160ms ease;
  pointer-events: none;
}

.fengxinlou-inner-voice-modal__gesture-layer--prev::before {
  content: "‹";
  left: 4px;
}

.fengxinlou-inner-voice-modal__gesture-layer--next::before {
  content: "›";
  right: 4px;
}

.fengxinlou-inner-voice-modal__gesture-layer:hover::before,
.fengxinlou-inner-voice-modal__gesture-layer:focus-visible::before,
.fengxinlou-inner-voice-modal__gesture-layer:active::before {
  opacity: 1;
  background: rgba(42, 35, 52, 0.32);
}

.fengxinlou-inner-voice-modal__swipe-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  max-width: min(82%, 360px);
  box-sizing: border-box;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(42, 35, 52, 0.48);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.fengxinlou-inner-voice-modal__swipe-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes fengxinlou-inner-voice-slide-left {
  0% {
    opacity: 0.68;
    transform: translateX(28px) scale(0.985);
    filter: blur(1px);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes fengxinlou-inner-voice-slide-right {
  0% {
    opacity: 0.68;
    transform: translateX(-28px) scale(0.985);
    filter: blur(1px);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

.fengxinlou-inner-voice-settings__textarea {
  min-height: 168px;
  font-family: Consolas, Monaco, "Microsoft YaHei", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.fengxinlou-inner-voice-settings__state {
  max-height: 180px;
  overflow: auto;
  box-sizing: border-box;
  margin: 8px 0 0;
  padding: 12px;
  border-radius: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #624272;
  background: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.55;
}

.fengxinlou-inner-voice-settings__preview {
  display: block;
  width: 100%;
  min-height: 280px;
  margin-top: 14px;
  border: 1px solid rgba(174, 119, 181, 0.22);
  border-radius: 18px;
  background: #fff;
}

.fengxinlou-inner-voice-settings__preview[hidden] {
  display: none !important;
}

[data-fengxinlou-inner-voice-avatar] {
  cursor: pointer;
}

@media (max-width: 520px) {
  .fengxinlou-inner-voice-modal {
    padding: 12px;
  }

  .fengxinlou-inner-voice-modal__panel {
    width: 96vw;
    height: 78vh;
    border-radius: 0;
  }

  .fengxinlou-inner-voice-settings__textarea {
    min-height: 138px;
  }
}