.audioplayer-playpause {
    display: block;
    width: 2em;
    height: 2em;
    background: url(../img/btn-play.png) no-repeat;
    background-size: cover;
    top: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.audioplayer-playing .audioplayer-playpause {
    background: url(../img/btn-pause.png) no-repeat;
    background-size: cover;
}

.audioplayer-playing .audioplayer-paused {
    background: url(../img/btn-play.png) no-repeat;
    background-size: cover;
}


.audioplayer-playing .audioplayer-volume {
    background: url(../img/btn-playing.gif) no-repeat;
    background-size: cover;
}

/* STRUCTURE */


.audioplayer {
    height: 2em;
    color: #fff;
    /*background: #333;*/
    position: relative;
    z-index: 1;
    border-radius: 4px;
    margin: 5vh 0px;
    width: 100%;
    font-size: 12px;
    /*max-width: 500px; */
}

#resultats_ens .audioplayer {
    margin: 0;
    }

.audioplayer._grand {
    height: 2.5em;
    width: 100%;
    font-size: 20px;
}

.audioplayer._grand .audioplayer-playpause {
    height: 2.5em;
    width: 2.5em;
}


.audioplayer._minimal {
    width: 5em; /* 40 */
    height: 5em; /* 40 */
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.audioplayer._minimal .audioplayer-time, .audioplayer._minimal .audioplayer-bar, .audioplayer._minimal .audioplayer-volume {
    display: none;
}

.audioplayer._minimal .audioplayer-playpause {
    width: 4.8em; /* 40 */
    height: 4.8em; /* 40 */
    margin: 0;
}

.audioplayer._minimal._init .audioplayer-playpause {
    background: url(../img/btn-ecouter.png) no-repeat;
    background-size: cover;
}

.audioplayer._minimal._grand {
    width: 7em; /* 40 */
    height: 7em; /* 40 */
}

.audioplayer._minimal._grand .audioplayer-playpause {
    width: 6.8em; /* 40 */
    height: 6.8em; /* 40 */
}


.audioplayer._minimal.audioplayer-playing:not(.abs) {
    -webkit-animation: jiggle 0.2s infinite;
    -moz-animation-duration: 0.2s;
    -moz-animation-name: jiggle;
    -moz-animation-iteration-count: infinite;
    -webkit-transform: rotate(-3deg);
    -moz-transform: rotate(-3deg);
}


@-moz-keyframes jiggle {
    0% {
        -moz-transform: rotate(-1deg);
    }
    50% {
        -moz-transform: rotate(1deg);
    }
}

@-webkit-keyframes jiggle {
    0% {
        -webkit-transform: rotate(-1deg);
    }
    50% {
        -webkit-transform: rotate(1deg);
    }
}

/* inner elements positioning (helps to achieve responsiveness) */
.audioplayer > div {
    position: absolute;
}

/* TIMER */
.audioplayer-time {
    width: 4.375em; /* 70 */
    height: 100%;
    line-height: 2em; /* 40 */
    text-align: center;
    z-index: 2;
    top: 0;
}

.audioplayer-time-current {
    border-left: 1px solid #111;
    left: 2em; /* 40 */

}

.audioplayer._grand .audioplayer-time {
    line-height: 2.5em; /* 40 */
}

.audioplayer._grand .audioplayer-time-current {
    left: 2.5em
}

.audioplayer-time-duration {
    right: 2.5em; /* 40 */
}

.audioplayer-novolume .audioplayer-time-duration {
    border-right: 0;
    right: 0;
}

/* PROGRESSION */
.audioplayer-bar {
    height: 0.875em; /* 14 */
    background-color: rgba(0, 0, 0, .2);
    cursor: pointer;
    z-index: 1;
    top: 50%;
    right: 6.875em; /* 110 */
    left: 6.875em; /* 110 */
    margin-top: -0.438em; /* 7 */
}

.audioplayer-novolume .audioplayer-bar {
    right: 4.375em; /* 70 */
}

.audioplayer-bar div {
    width: 0;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.audioplayer-bar-loaded {
    background-color: rgba(0, 0, 0, .4);
    z-index: 1;
}

.audioplayer-bar-played {
    background-color: white;
    z-index: 2;
}


/* VOLUME */
.audioplayer-volume {
    width: 2em; /* 40 */
    height: 100%;
    border-left: 1px solid #111;
    text-align: left;
    text-indent: -9999px;
    cursor: pointer;
    z-index: 2;
    top: 0;
    right: 0;
    background: url(../img/btn-ecouter.png) no-repeat;
    background-size: cover;
}

.audioplayer._grand .audioplayer-volume {
    width: 2.5em; /* 40 */
    height: 100%;
}

.audioplayer-volume:hover,
.audioplayer-volume:focus {
    background-color: #222;
    border-bottom-right-radius: 4px;
}

.audioplayer-volume-button {
    width: 100%;
    height: 100%;
}


/* "volume" icon */
.audioplayer-volume-button a {
    width: 0.313em; /* 5 */
    height: 0.375em; /* 6 */
    background-color: #fff;
    display: block;
    position: relative;
    z-index: 1;
    top: 40%;
    left: 35%;
}

.audioplayer-volume-button a:before,
.audioplayer-volume-button a:after {
    content: '';
    position: absolute;
}


.audioplayer-volume-adjust {
    width: 100%;
    height: 6.25em; /* 100 */
    cursor: default;
    position: absolute;
    left: 0;
    top: -9999px;
    background: #222;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
}

.audioplayer-volume:not(:hover) .audioplayer-volume-adjust {
    opacity: 0;
}

.audioplayer-volume:hover .audioplayer-volume-adjust {
    top: auto;
    bottom: 100%;
}

.audioplayer-volume-adjust > div {
    width: 40%;
    height: 80%;
    background-color: #555;
    cursor: pointer;
    position: relative;
    z-index: 1;
    margin: 30% auto 0;
}

.audioplayer-volume-adjust div div {
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: white;
}

.audioplayer-novolume .audioplayer-volume {
    display: none;
}