.audio-player {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: var(--audio-background-color);
    color: var(--audio-foreground-color);
    /* width: calc(100% - 36px); */
    /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); */
    font-family: system-ui, -apple-system, sans-serif;
    user-select: none;
    /* margin: 30px auto; */
}

.audio-equalizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 70px;
    background: color-mix(in srgb, var(--audio-foreground-color) 12%, transparent);
    border-radius: 10px;
    padding: 8px 12px;
}

.audio-equalizer .audio-bar {
    flex: 1;
    max-width: 8px;
    background: var(--audio-foreground-color);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-play-btn,
.audio-download-btn {
    background: var(--audio-foreground-color);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, opacity 0.2s;
    text-decoration: none;
}

.audio-play-btn:hover,
.audio-download-btn:hover {
    transform: scale(1.07);
    opacity: 0.9;
}

.audio-play-btn svg,
.audio-download-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--audio-background-color);
}

.audio-progress-area {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-time {
    font-size: 13px;
    opacity: 0.85;
    min-width: 38px;
    text-align: center;
    color: var(--audio-foreground-color);
}

.audio-progress-bar {
    position: relative;
    flex: 1;
    height: 6px;
    background: color-mix(in srgb, var(--audio-foreground-color) 15%, transparent);
    border-radius: 99px;
    cursor: pointer;
    overflow: hidden;
}

.audio-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: color-mix(in srgb, var(--audio-foreground-color) 35%, transparent);
    border-radius: 99px;
    pointer-events: none;
}

.audio-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--audio-foreground-color);
    border-radius: 99px;
    pointer-events: none;
    z-index: 1;
}

.audio-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 14px;
    height: 14px;
    background: var(--audio-foreground-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
    pointer-events: none;
}

.audio-progress-bar:hover .audio-thumb {
    opacity: 1;
}