/* RemixDesign | woaichidapi@163.com | Redesigned by JimmyCheung */

.audio-item > .audioplayer {
    position: relative;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    /*margin: 1em 0;*/
    padding: 0 24px;
    width: 100%;
    height: 100px;
    align-items: center;
    /*border: 1px solid #DDE2E6;*/
    border-radius: 4px;
    background: #FEF3F3;
    padding-left: 100px;
}

.audioplayer .audioplayer,
.audioplayer .audioplayer .audioplayer {
    display: none;
}

.audio-item > .audioplayer:before {
    position: absolute;
    content: '';
    width: 100px;
    height: 100px;
    border-radius: 4px;
    top: 0;
    left: 0;
    background-color: #B21C37;
}

.audioplayer-playpause {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all .2s ease-in-out;
    order: 4;
    background: #B21C37 !important;
    box-shadow: 4px 4px 8px rgb(178 28 55 / 12%);
    border: none !important;
}

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause {
    background: rgba(91, 130, 255, 0);
    border: 1px solid #5B82FF;
}

    .audioplayer:not(.audioplayer-playing) .audioplayer-playpause:hover {
        background: rgba(91, 130, 255, 0.1);
    }

.audioplayer-playing .audioplayer-playpause {
    background: rgba(253, 79, 26, 0);
    border: 1px solid #FD4F1A;
}

    .audioplayer-playing .audioplayer-playpause:hover {
        background: rgba(235, 79, 26, 0.1);
    }

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause a {
    content: '';
    justify-content: center;
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 7px solid transparent;
    border-right: none;
    border-bottom: 7px solid transparent;
    border-left: 12px solid #fff;
}

.audioplayer-playing .audioplayer-playpause a {
    content: '';
    display: flex;
    justify-content: space-between;
    width: 12px;
    height: 14px;
}

    .audioplayer-playing .audioplayer-playpause a::before, .audioplayer-playing .audioplayer-playpause a::after {
        content: '';
        width: 4px;
        height: 14px;
        background-color: #fff;
    }

.audioplayer-time {
    display: flex;
    width: 40px;
    justify-content: center;
    font-size: 12px;
    color: rgba(51, 51,51, .6);
    align-self: end;
    margin-bottom: 15px;
}

.audioplayer-time-current {
    margin-left: 16px;
}

.audioplayer-time-duration {
    margin-right: 24px;
}

.audioplayer-bar {
    position: relative;
    display: flex;
    margin: 0 12px;
    height: 12px;
    flex-basis: 0;
    flex-grow: 1;
    cursor: pointer;
    align-self: end;
    margin-bottom: 19px;
}

    .audioplayer-bar::before {
        content: '';
        position: absolute;
        top: 5px;
        width: 100%;
        height: 2px;
        background-color: #DDE2E6;
    }

    .audioplayer-bar > div {
        position: absolute;
        left: 0;
        top: 5px;
    }

.audioplayer-bar-loaded {
    z-index: 1;
    height: 2px;
    background: #BEC8D2;
}

.audioplayer-bar-played {
    flex-direction: row-reverse;
    z-index: 2;
    height: 2px;
    /*background: -webkit-linear-gradient(left,#0059FF,#09B1FA);*/
    background-color: #B21C37;
}

    .audioplayer-bar-played::after {
        display: flex;
        position: absolute;
        content: '';
        box-sizing: border-box;
        top: -5px;
        right: -1px;
        margin-right: -5px;
        width: 12px;
        height: 12px;
        background-color: #fff;
        border-radius: 6px;
    }

.audioplayer:not(.audioplayer-playing) .audioplayer-bar-played::after {
    border: 2px solid #BEC8D2;
}

.audioplayer-playing .audioplayer-bar-played::after {
    border: 2px solid #B21C37;
}

.audioplayer-volume {
    display: flex;
    align-items: center;
}

.audioplayer-volume-button {
    display: flex;
    align-items: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

    .audioplayer-volume-button a {
        display: flex;
        width: 6px;
        height: 8px;
        background-color: #9A9FB0;
        position: relative;
    }

        .audioplayer-volume-button a:before, .audioplayer-volume-button a:after {
            content: '';
            position: absolute;
        }

        .audioplayer-volume-button a:before {
            width: 0;
            height: 0;
            border-top: 8px solid transparent;
            border-right: 9px solid #9A9FB0;
            border-bottom: 8px solid transparent;
            border-left: none;
            top: -4px;
        }

.audioplayer:not(.audioplayer-mute) .audioplayer-volume-button a:after {
    left: 10px;
    top: -2px;
    width: 6px;
    height: 6px;
    border: 6px double #9A9FB0;
    border-width: 6px 6px 0 0;
    border-radius: 0 12px 0 0;
    transform: rotate(45deg);
}

.audioplayer-mute .audioplayer-volume-button a {
    background-color: #FD4F1A;
}

    .audioplayer-mute .audioplayer-volume-button a:before {
        border-right: 9px solid #FD4F1A;
    }

.audioplayer-volume-adjust {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

    .audioplayer-volume-adjust > div {
        position: relative;
        display: flex;
        width: 60px;
        height: 2px;
        cursor: pointer;
        background-color: #BEC8D2;
    }

    .audioplayer-volume-adjust div div {
        position: absolute;
        top: 0;
        left: 0;
        height: 2px;
        background-color: #0059FF;
    }

/* responsive | you can change the max-width value to match your theme */

@media screen and (max-width: 679px) {
    .audioplayer-volume-adjust {
        display: none;
    }
}

/* AUDIO MEDIA */
#amazingaudioplayer-1 {
    --spacing: 24px;
    --columns: 2;
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(-1 * var(--spacing));
}

    #amazingaudioplayer-1 .audio-item {
        overflow: hidden;
        /*flex: auto;*/
        width: calc(calc(100% / var(--columns)) - var(--spacing));
        margin-left: var(--spacing);
        margin-bottom: var(--spacing);
        flex-shrink: 0;
        border-radius: 8px;
        position: relative;
    }

@media screen and (max-width: 991px) {
    #amazingaudioplayer-1 .audio-item {
        --columns: 1;
    }
}

.audioplayer-volume {
    display: none;
}

.audio-title {
    display: -webkit-box;
    font-family: 'Mulish Bold', sans-serif;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    font-size: 16px;
    line-height: 1.4;
    position: absolute;
    z-index: 1;
    top: 10px;
    margin: 0 85px 0 120px;
}

.audioplayer:after {
    position: absolute;
    content: '';
    width: 50px;
    height: 48.44px;
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
    left: 25px;
    background-repeat: no-repeat;
    background-size: 50px auto;
    background-image: url(/Portals/_default/Skins/BaotanghcmPortal/assets/images/audio-ico.svg);
}

.notitle-noviewmore .section-title {
    display: none;
}

#amazingaudioplayer-1 .audio-item {
    background-color: #FEF3F3;
}

.audio-title {
    color: #6B000A;
}
