.voice-player {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 620px;
  margin-top: 24px;
  padding: 17px;
  border: 1px solid rgba(42, 212, 188, 0.22);
  border-radius: 20px;
  background: #171b1b;
  box-sizing: border-box;
}

.voice-player audio {
  display: none;
}

.voice-play {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #2ad4bc;
  color: #081110;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.voice-play:hover {
  background: #62e8d5;
  transform: scale(1.05);
}

.voice-play:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.voice-main {
  flex: 1;
  min-width: 0;
}

.voice-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #eeeeee;
}

.voice-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.voice-heading i {
  color: #2ad4bc;
  font-size: 17px;
}

.voice-seek {
  display: block;
  width: 100%;
  height: 5px;
  margin: 0;
  border: none;
  border-radius: 20px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    #2ad4bc 0%,
    #2ad4bc var(--progress, 0%),
    #454b4b var(--progress, 0%),
    #454b4b 100%
  );
}

.voice-seek::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: #2ad4bc;
  appearance: none;
  -webkit-appearance: none;
}

.voice-seek::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: #2ad4bc;
}

.voice-times {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: #a5adad;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.voice-speed {
  flex: 0 0 auto;
  max-width: 76px;
  padding: 7px 5px;
  border: 1px solid #3c4947;
  border-radius: 10px;
  background: #252d2c;
  color: #eeeeee;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.voice-speed:focus-visible,
.voice-play:focus-visible,
.voice-seek:focus-visible {
  outline: 2px solid #2ad4bc;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .voice-player {
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .voice-play {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .voice-speed {
    max-width: 62px;
    font-size: 11px;
  }

  .voice-title {
    font-size: 11px;
  }
}