/* Audio  */
.sent-card .audio-player-container {
  width: 320px;
  background-color: var(--secondary);
  color: var(--onSecondary);
  border-top-right-radius: 0;
  margin: 28px 0 0 auto;
  box-shadow: rgba(0, 0, 0, 0.15) -2.4px 2.4px 3.2px;
  padding: 12px 12px;
  border-radius: 8px;
}
.receive-card .audio-player-container {
  width: 320px;
  background-color: var(--tertiary);
  color: var(--onTertiary);
  border-top-left-radius: 0;
  margin: 28px auto 0 0;
  box-shadow: rgba(0, 0, 0, 0.15) 2.6px 2.4px 3.2px;
  padding: 12px 12px;
  border-radius: 8px;
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* sent  */
.sent-card .audio-player-container .play-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #ffffff4d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(140deg, var(--tertiary), transparent);
}

.sent-card .audio-player-container .play-button svg {
  fill: var(--onSecondary);
  stroke: var(--onSecondary);
}

.sent-card .audio-player-container .play-button:hover {
  background: linear-gradient(140deg, var(--tertiaryHover), transparent);
}

/* receive  */
.receive-card .audio-player-container .play-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #ffffff4d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(140deg, var(--secondary), transparent);
}

.receive-card .audio-player-container .play-button svg {
  fill: var(--onTertiary);
  stroke: var(--onTertiary);
}

.receive-card .audio-player-container .play-button:hover {
  background: linear-gradient(140deg, var(--secondaryHover), transparent);
}

.audio-content {
  flex: 1;
  min-width: 0;
}

.audio-content .time-info {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #8b949e;
  font-weight: 500;
}

.audio-content .time-info .duration {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-right: 6px;
}

.audio-content .time-info .time {
  white-space: nowrap;
}

/* sent  */
.sent-card .audio-player-container .current-time {
  color: var(--onSecondary);
}

.sent-card .audio-player-container .total-time {
  color: var(--onSecondary);
}

.sent-card .audio-player-container .time {
  white-space: nowrap;
  color: color-mix(in srgb, var(--onSecondary) 70%, transparent);
  font-size: 11px;
}

/* receive */
.receive-card .audio-player-container .current-time {
  color: var(--onTertiary);
}

.receive-card .audio-player-container .total-time {
  color: var(--onTertiary);
}

.receive-card .audio-player-container .time {
  color: color-mix(in srgb, var(--onTertiary) 70%, transparent);
  font-size: 11px;
}

.play-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: auto;
}

.speed-adjust {
  margin: auto;
}

/* sent */
.sent-card .audio-player-container .speed-adjust .speed-button {
  border: none;
  padding: 4px 3px;
  cursor: pointer;
  font-size: 0.8rem;
  background: linear-gradient(140deg, var(--tertiary), transparent);
  font-weight: bold;
  min-width: 50px;
  color: var(--onSecondary);
  border-radius: 40px;
}

/* receive */
.receive-card .audio-player-container .speed-adjust .speed-button {
  border: none;
  padding: 4px 3px;
  cursor: pointer;
  font-size: 0.8rem;
  background: linear-gradient(140deg, var(--secondary), transparent);
  font-weight: bold;
  min-width: 50px;
  color: var(--onTertiary);
  border-radius: 40px;
}

.progress-speed-adjust {
  display: flex;
  display: flex;
  gap: 6px;
}

.progress-container {
  margin: 10px 0;
  padding: 10px 0;
  width: 100%;
}

/* sent  */
.sent-card .audio-player-container .progress-bar-container {
  position: relative;
  height: 6px;
  background: color-mix(in srgb, var(--onSecondary) 35%, transparent);
  border-radius: 3px;
  overflow: hidden;
}

.sent-card .audio-player-container .progress-fill {
  height: 100%;
  background: var(--onSecondary);
  transition: width 0.1s ease;
}

.sent-card .audio-player-container .progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--onSecondary);
  border-radius: 50%;
  cursor: pointer;
}

/* receive */
.receive-card .audio-player-container .progress-bar-container {
  position: relative;
  height: 6px;
  background: color-mix(in srgb, var(--onTertiary) 35%, transparent);
  border-radius: 3px;
  overflow: hidden;
}

.receive-card .audio-player-container .progress-fill {
  height: 100%;
  background: var(--onTertiary);
  /* transition: width 0.1s ease; */
}

.receive-card .audio-player-container .progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--onTertiary);
  border-radius: 50%;
  cursor: pointer;
}

/* .waveform-bar {
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.waveform-bar:hover {
  opacity: 0.8;
} 
  
.waveform-container {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  margin-bottom: 8px;
  cursor: pointer;
}

.waveform-bar {
  width: 3px;
  background: #e1e5e9;
  border-radius: 1.5px;
  transition: all 0.3s ease;
}

.waveform-bar.active {
  background: #00d857;
}

.waveform-bar:hover {
  background: #00d857;
  opacity: 0.7;
}
  */
