.audio-player-widget {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.audio-player-widget audio,.audio-player-widget img{
    width:100%;
}

.audio-player-widget audio::-webkit-media-controls-enclosure {
    border-radius: 0;
}

.audio-timeline {
    width: 100%;
    height: 20px;
    background-color: var(--e-global-color-secondary);
}

.audio-timeline .bar{
    background-color:var(--e-global-color-accent);
    height: 100%;
    width:0%;
}

.play-pause-button {
    position: absolute;
    appearance: none;
    width: 200px;
    height:200px;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    border: 4px solid var(--e-global-color-accent);
}

.play-pause-button:hover, .play-pause-button:focus, .play-pause-button:active{
    background-color: #FFFFFF;
}

.play-pause-button::before {
    content: "";
    position: absolute;
    width: 93%;
    height: 93%;
    background-color: transparent;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.play-pause-button.isPlaying {
    animation: borderAnimate 700ms ease-in-out 1;
    animation-fill-mode: forwards;
}

@keyframes borderAnimate {
    0% {
        transform: rotate(0);
        background: conic-gradient(var(--e-global-color-accent), transparent 20%);
    }

    80% {
        background: conic-gradient(var(--e-global-color-accent), transparent 90%);
    }

    100% {
        transform: rotate(360deg);
        background: conic-gradient(var(--e-global-color-accent), var(--e-global-color-accent));
    }
}

.play-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 58%;
    top: 50%;
    background-color: var(--e-global-color-accent);
    transform: translate(-60%, -50%) rotate(90deg);
    clip-path: polygon(50% 15%, 0% 100%, 100% 100%);
    transition: all 400ms ease-in-out;
    cursor: pointer;
}

.play-pause-button.isPlaying + .play-icon {
    clip-path: polygon(0 100%, 0% 100%, 100% 100%);
}

.pause-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.pause-icon::before {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    background-color: white;
    left: 0;
}

.pause-icon::after {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    background-color: white;
    right: 0;
}

.play-pause-button.isPlaying .pause-icon::before {
    animation: reveal 300ms ease-in-out 350ms 1;
    animation-fill-mode: forwards;
}

.play-pause-button.isPlaying .pause-icon::after {
    animation: reveal 300ms ease-in-out 600ms 1;
    animation-fill-mode: forwards;
}

@keyframes reveal {
    0% {
        width: 0;
    }

    100% {
        width: 35%;
    }
}