.voice-note-shell {
  --voice-progress: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 410px);
  min-width: 0;
  margin: 9px 0 4px;
  padding: 12px 13px;
  border: 1px solid #ffffff12;
  border-radius: 20px 20px 20px 7px;
  background: linear-gradient(135deg, #22262b, #1b1e23);
  color: #f1f3f5;
  box-shadow: inset 0 1px #ffffff0a, 0 7px 18px #0003;
}
.voice-note-mine {
  margin-left: auto;
  border-color: #37c89833;
  border-radius: 20px 20px 7px 20px;
  background: linear-gradient(135deg, #12634e, #104a3e);
}
.voice-audio { display: none; }
.voice-play {
  display: grid;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d7d9dc;
  cursor: pointer;
  transition: color .18s ease, transform .18s ease, background .18s ease;
}
.voice-play:hover, .voice-play:focus-visible { color: #72baff; background: #72baff16; }
.voice-play:active { transform: scale(.92); }
.voice-play svg { width: 27px; height: 27px; fill: currentColor; }
.voice-track { flex: 1; min-width: 0; }
.voice-wave { display: flex; align-items: center; justify-content: space-between; gap: 2px; height: 38px; overflow: hidden; }
.voice-wave i {
  display: block;
  flex: 1 1 2px;
  min-width: 2px;
  max-width: 5px;
  height: var(--bar-height);
  max-height: 34px;
  border-radius: 5px;
  background: #858b91;
  opacity: .8;
  transition: background .12s ease, opacity .12s ease, height .18s ease;
}
.voice-wave i.played { background: #66b5ff; opacity: 1; }
.voice-note-mine .voice-wave i { background: #77aa99; }
.voice-note-mine .voice-wave i.played { background: #72c9ff; }
.voice-note-shell.is-playing .voice-wave i { animation: voiceWave .7s ease-in-out infinite alternate; animation-delay: calc(var(--bar-index) * -24ms); }
@keyframes voiceWave { from { transform: scaleY(.72); } to { transform: scaleY(1.08); } }
.voice-meta { display: flex; align-items: center; gap: 9px; min-width: 0; color: #c7ccd1; font-size: 10px; line-height: 1.2; }
.voice-duration, .voice-sent-time { flex: none; font-variant-numeric: tabular-nums; }
.voice-note-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d7ddd9; }
.voice-read-state { flex: none; color: #bdc6c9; font-size: 14px; font-weight: 800; letter-spacing: -4px; padding-right: 3px; }
.voice-read-state.is-read { color: #62b7ff; }
.dm-message:has(.voice-note-shell) { max-width: min(94%, 470px); padding: 0; border: 0; background: transparent; box-shadow: none; }
.dm-message:has(.voice-note-shell) .voice-note-shell { margin-top: 0; }
.post .voice-note-shell { margin-top: 12px; }
@media (max-width: 560px) {
  .voice-note-shell { gap: 8px; padding: 10px; border-radius: 17px 17px 17px 6px; }
  .voice-note-mine { border-radius: 17px 17px 6px 17px; }
  .voice-play { flex-basis: 34px; width: 34px; height: 34px; }
  .voice-play svg { width: 24px; height: 24px; }
  .voice-wave { height: 32px; gap: 1px; }
  .voice-wave i { max-height: 29px; }
  .voice-meta { gap: 6px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .voice-note-shell.is-playing .voice-wave i { animation: none; } }
