/* ========================================
   AETERNUM AUDIO PLAYER - STICKY UNTEN LINKS
   ======================================== */

.aeternum-audio {
    --seek-percent: 0%;
    --volume-percent: 45%;
    position: fixed;
    bottom: 24px;
    left: 12px;
    width: 320px;
    height: 80px;
    padding: 0.3rem 0.75rem 0.55rem 0.75rem;
    border-radius: 16px;
    border: 1.5px solid rgba(0, 224, 255, 0.4);
    background: linear-gradient(180deg,
            rgba(5, 10, 20, 0.98) 0%,
            rgba(11, 30, 47, 0.96) 30%,
            rgba(11, 30, 47, 0.95) 70%,
            rgba(5, 10, 20, 0.97) 100%);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 224, 255, 0.3),
        0 0 60px rgba(0, 224, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.35rem;
    font-family: "Inter", system-ui, sans-serif;
    color: #00E0FF;
    z-index: var(--z-sticky, 1000); /* Reduziert von 5000, damit Sidebar nicht überdeckt wird */
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    box-sizing: border-box;
}

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

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

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

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

#aeternum-play {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    border: 2.5px solid rgba(0, 224, 255, 0.9);
    cursor: pointer;
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 224, 255, 0.4) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 122, 153, 0.95) 0%, rgba(0, 77, 102, 0.98) 50%, rgba(0, 51, 68, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.6),
        inset 0 2px 6px rgba(0, 224, 255, 0.4),
        inset 0 -2px 6px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: -4px 0 0 -2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}

#aeternum-play:hover {
    transform: translateY(-2px) scale(1.08);
    border-color: rgba(0, 224, 255, 1);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.7),
        inset 0 2px 8px rgba(0, 224, 255, 0.5),
        inset 0 -2px 8px rgba(0, 0, 0, 0.6);
}

#aeternum-play:active {
    transform: translateY(0) scale(1.02);
}

#aeternum-play::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #FFFFFF;
    margin-left: 3px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

#aeternum-play.paused::before {
    content: "";
    width: 4px;
    height: 16px;
    border: none;
    background: #FFFFFF;
    margin-left: 0;
    border-radius: 2px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
    box-shadow: 7px 0 0 0 #FFFFFF;
}

.aeternum-timeline {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.aeternum-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    color: #00E0FF;
    padding: 1.5px 1.5px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.8);
    width: 60%;
    min-width: 60%;
    max-width: 60%;
    margin: -5px auto 0 auto;
}

.aeternum-time span:not(#aeternum-current):not(#aeternum-duration) {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #00E0FF;
    text-shadow:
        0 0 8px rgba(0, 224, 255, 0.9),
        0 0 12px rgba(0, 224, 255, 0.6);
}

#aeternum-seek {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.8) var(--seek-percent), rgba(255, 255, 255, 0.3) var(--seek-percent)),
        rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    cursor: pointer;
    margin: 0;
}

#aeternum-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

#aeternum-seek::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.aeternum-volume-group {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#aeternum-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 56px;
    height: 3px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.8) var(--volume-percent), rgba(255, 255, 255, 0.3) var(--volume-percent)),
        rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    cursor: pointer;
}

#aeternum-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

#aeternum-volume::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.aeternum-audio audio {
    display: none;
}