/* ---------------------------------------------------------------------
jPlayer styles
------------------------------------------------------------------------ */
/* ---------------------------------------------------------------------
jPlayer layout
------------------------------------------------------------------------ */
/* Container for audio player */
.jp-wrapper {
    color: #636567;
}

    .jp-wrapper button {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border: 0;
        outline: none;
        font-size: 0;
    }

    .jp-wrapper .btn-primary {
        color: #FFFFFF;
        background: #2A5488;
        border: 0;
        font-size: 14px;
        border-bottom: 2px solid #003e7d;
    }

        .jp-wrapper .btn-primary:hover,
        .jp-wrapper .btn-primary:focus {
            color: #FFFFFF;
            background: #4e84c4;
            border-color: #4e84c4;
            text-decoration: none;
            outline: 0;
        }

    .jp-wrapper .btn-primary-search {
        border-top: 2px solid #2A5488;
    }

/* Container for title and number of tracks */
.jp-header {
    border: 1px solid #636567;
    padding: 10px 5px;
    font-size: 15px;
}

/* Title of subject area */
.jp-topic {
    font-size: 18px;
    font-weight: bold;
}

/* Container for playlist */
.jp-list {
    border: 1px solid #eeeeee;
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

    .jp-list li {
        padding: 8px;
    }

@media (min-width: 768px) {
    .jp-list li {
        padding: 0 20px;
    }
}

/* Alternate row color for quicker track identification */
.jp-list li:nth-child(odd) {
    background: #eeeeee;
}

/* Vertically center content inside list items */
.jp-list li > * {
    height: 40px;
}

/* Link/target for individual track */
.jp-playlist-item {
    color: #636567;
}

    .jp-playlist-item:hover,
    .jp-playlist-item:active {
        color: #3463a8;
        text-decoration: none;
    }

/* Indicator for currently playing track */
/* Disable ability to click on it */
.jp-playlist-current.jp-playlist-item {
    pointer-events: none;
    cursor: default;
    font-weight: bold;
}

.jp-transcript {
    visibility: hidden;
}


/* ---------------------------------------------------------------------
jPlayer controls
------------------------------------------------------------------------ */
/* Container for all controls */
.jp-interface {
    margin: 30px 0;
}

.js-book-detail .jp-interface {
    margin: 0;
    padding-top: 20px;
}

@media (min-width: 768px) {
    .jp-interface {
        margin: 20px 0;
    }
}

/* Center control buttons */
.jp-controls {
    text-align: center;
}

/* Play button - circle shape */
.jp-play,
.jp-pause {
    position: relative;
    border: 0;
    margin-left: 8px;
    margin-right: 8px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #2A5488;
}

    /* Play button - CSS triangle */
    .jp-play::before {
        top: 11px;
        left: 17px;
        width: 0;
        height: 0;
        content: '';
        position: absolute;
        z-index: 2;
        border-top: 14px solid transparent;
        border-bottom: 14px solid transparent;
        border-left: 23px solid #ffffff;
    }

    /* Play button - drop shadow effect */
    .jp-play::after,
    .jp-pause::after {
        content: '';
        position: absolute;
        z-index: -1;
        top: 2px;
        left: 0;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #3463a8;
    }

    /* Pause button - made using CSS gradient stops */
    .jp-pause::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 13px;
        height: 50%;
        width: 48%;
        background-image: -webkit-linear-gradient(left, #ffffff, #ffffff 37.5%, #4e84c4 37.5%, #4e84c4 62.5%, #ffffff 62.5%, #ffffff);
        background-image: linear-gradient(to right, #ffffff, #ffffff 37.5%, #4e84c4 37.5%, #4e84c4 62.5%, #ffffff 62.5%, #ffffff);
        /* fallback for IE 9 */
        background-image: url(../media/images/global/jp-pause.png);
    }

/* Previous and Next buttons - circle shapes */
.jp-previous,
.jp-next {
    position: relative;
    border: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #2A5488;
}

/* Previous button - CSS triangles #1 */
.jp-previous-icon::before {
    top: 6px;
    left: 4px;
    width: 0;
    height: 0;
    content: '';
    position: absolute;
    z-index: 2;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 7px solid #ffffff;
}

/* Previous button - CSS triangle #2 */
.jp-previous-icon::after {
    top: 6px;
    left: 11px;
    width: 0;
    height: 0;
    content: '';
    position: absolute;
    z-index: 2;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 7px solid #ffffff;
}

/* Next button - CSS triangle #1 */
.jp-next-icon::before {
    top: 6px;
    left: 7px;
    width: 0;
    height: 0;
    content: '';
    position: absolute;
    z-index: 2;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 7px solid #ffffff;
}

/* Next button - CSS triangle #2 */
.jp-next-icon::after {
    top: 6px;
    left: 14px;
    width: 0;
    height: 0;
    content: '';
    position: absolute;
    z-index: 2;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 7px solid #ffffff;
}

/* Previous and Next buttons - drop shadow effect */
.jp-previous::after,
.jp-next::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 2px;
    left: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #3463a8;
}

/* Progress bar */
.jp-progress {
    width: 100%;
    margin: 20px 0;
    border: 1px solid #3463a8;
    border-radius: 5px;
}

@media (min-width: 768px) {
    .jp-progress {
        width: 60%;
    }
}

.jp-play-bar {
    width: 0;
    height: 8px;
    border-radius: 5px;
    background-color: #3463a8;
}

.jp-now-playing {
    font-size: 14px;
}

/* Time progress */
.jp-time-elapsed {
    width: 30%;
    font-size: 12px;
    text-align: center;
}

/* Playback rate */
.jp-playback-rate {
    width: 10%;
    font-size: 12px;
    text-align: center;
}

@media(max-width: 767px) {
    .jp-time-elapsed {
        width: 100%;
    }

    .jp-playback-rate {
        width: 100%;
    }

    .jp-now-playing {
        width: 100%;
        text-align: center;
    }
}

/* Volume bar */
.jp-volume-controls {
    display: block;
}

.jp-volume-bar {
    width: 100%;
    border: 1px solid #3463a8;
    border-radius: 5px;
}

.jp-volume-bar-value {
    width: 80%;
    height: 8px;
    border-radius: 5px;
    background-color: #3463a8;
}

.jp-play:hover,
.jp-play:focus,
.jp-pause:hover,
.jp-pause:focus,
.jp-previous:hover,
.jp-previous:focus,
.jp-next:hover,
.jp-next:focus {
    background-color: #81b0e8;
}
