.custom-audio-wrapper {
  margin: 10px 0;
}

.custom-audio-wrapper.align-left {
  text-align: left;
}

.custom-audio-wrapper.align-center {
  text-align: center;
}

.custom-audio-wrapper.align-right {
  text-align: right;
}

.custom-audio-player {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--player-bg, #e6f7ff);
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: var(--player-width, 400px);
}

.custom-audio-player button {
  background: var(--player-color, #0073e6);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s, transform 0.2s;
}

.custom-audio-player button:hover {
  filter: brightness(0.85);
  transform: scale(1.05);
}

/* Play-Symbol (weißes Dreieck) */
.custom-audio-player button.play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent white;
}

/* Pause-Symbol (zwei weiße Balken, mittig) */
.custom-audio-player button.pause::before,
.custom-audio-player button.pause::after {
  content: "";
  position: absolute;
  top: 30%;
  width: 3px;
  height: 40%;
  background: white;
  border-radius: 1px;
}

.custom-audio-player button.pause::before {
  left: 42%;
}

.custom-audio-player button.pause::after {
  left: 55%;
}

.custom-audio-player span {
  font-family: monospace;
  color: var(--player-color, #0073e6);
  min-width: 45px;
  text-align: center;
}

.custom-audio-player input[type="range"] {
  flex: 1;
  appearance: none;
  height: 4px;
  background: #ccc;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.custom-audio-player input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--player-color, #0073e6);
  border-radius: 50%;
}

