.aeternum-audio {
  --seek-percent: 0%;
  --volume-percent: 45%;
  position: fixed;
  bottom: 18px;
  left: 18px;
  width: 300px;
  height: 80px;
  padding: 0.55rem 0.75rem;
  border-radius: 16px;
  border: 2px solid #ffd700;
  background: radial-gradient(circle at top left, rgba(255, 215, 0, 0.2), transparent 65%),
    linear-gradient(135deg, rgba(12, 3, 3, 0.98), rgba(5, 1, 1, 0.96));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 215, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  font-family: "Inter", system-ui, sans-serif;
  color: #ffd700;
  z-index: 1100;
}

.aeternum-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.95;
}

.aeternum-icon {
  font-size: 11px;
  color: #ffd700;
}

.aeternum-title {
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffefb0;
  flex: 1;
}


.aeternum-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 0;
}

/* Play Button */

#aeternum-play {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#aeternum-play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #140b02;
}

/* Pause Icon bei .paused Klasse (von JS toggeln) */

#aeternum-play.paused::before {
  content: "";
  width: 9px;
  height: 11px;
  border: none;
  background: transparent;
  box-shadow:
    0 0 0 0 #140b02,
    5px 0 0 0 #140b02;
}

#aeternum-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.9);
  background: #ffeb7a;
}

/* Timeline Container */
.aeternum-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

/* Zeit mittig über der Timeline */
.aeternum-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #ffd700;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
  text-shadow:
    0 0 8px rgba(255, 215, 0, 0.8),
    0 0 16px rgba(255, 215, 0, 0.5),
    0 0 24px rgba(255, 215, 0, 0.3);
}

.aeternum-time span {
  min-width: 28px;
  text-align: center;
}

.aeternum-time #aeternum-current,
.aeternum-time #aeternum-duration {
  text-shadow:
    0 0 10px rgba(255, 215, 0, 0.9),
    0 0 20px rgba(255, 215, 0, 0.6),
    0 0 30px rgba(255, 215, 0, 0.4);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(255, 215, 0, 0.9),
      0 0 20px rgba(255, 215, 0, 0.6),
      0 0 30px rgba(255, 215, 0, 0.4);
  }
  50% {
    text-shadow:
      0 0 15px rgba(255, 215, 0, 1),
      0 0 25px rgba(255, 215, 0, 0.8),
      0 0 35px rgba(255, 215, 0, 0.6);
  }
}

/* Fortschrittsbalken als Range innerhalb des Mittelteils */

#aeternum-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background:
    linear-gradient(90deg, rgba(255, 215, 0, 0.9) var(--seek-percent), rgba(255, 215, 0, 0.1) var(--seek-percent)),
    #1b0c0c;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

#aeternum-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.9);
  cursor: pointer;
  margin-top: -3.5px;
  transition: transform 0.2s ease;
}

#aeternum-seek::-webkit-slider-thumb:active {
  transform: scale(1.15);
}

#aeternum-seek::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.9);
  border: none;
  cursor: pointer;
}

#aeternum-seek::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

/* Volume */

.aeternum-volume-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.aeternum-volume-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.aeternum-volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 56px;
  height: 3px;
  background:
    linear-gradient(90deg, rgba(255, 215, 0, 0.9) var(--volume-percent), rgba(255, 215, 0, 0.2) var(--volume-percent)),
    #1b0c0c;
  border-radius: 999px;
  cursor: pointer;
}

/* Webkit Volume Thumb */

.aeternum-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

/* Firefox Volume Thumb */

.aeternum-volume input[type="range"]::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
  border: none;
}

.aeternum-volume input[type="range"]::-moz-range-track {
  height: 3px;
  background: #2a1818;
  border-radius: 999px;
}

/* Mobile Anpassung */

@media (max-width: 768px) {
  .aeternum-audio {
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    padding: 0.65rem 0.9rem;
    gap: 0.5rem;
  }

  .aeternum-row {
    gap: 4px;
    align-items: center;
  }
  
  .aeternum-time {
    font-size: 9px;
    gap: 3px;
  }
  
  .aeternum-time span {
    min-width: 24px;
  }

  #aeternum-play {
    width: 26px;
    height: 26px;
  }

  .aeternum-title {
    font-size: 10px;
  }

  .aeternum-status {
    font-size: 0.6rem;
    letter-spacing: 0.24em;
  }

  .aeternum-time {
    font-size: 6.8px;
  }

  .aeternum-volume input[type="range"] {
    width: 70px;
  }
}
