/*------------------------------------------------------------------------
# AA Responsive Radio Player
# ------------------------------------------------------------------------
# author    AA Extensions https://aaextensions.com
# Copyright (C) 2018 AA Extensions. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: https://aaextensions.com
-------------------------------------------------------------------------*/


/*
=============================================== Default Radio Player ===============================================
*/

.aaradio-player,
.aaradio-player div,
.aaradio-player h1,
.aaradio-player a,
.aaradio-player img,
.aaradio-player span,
.aaradio-player button {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

div.aaradio-player {
    position: relative;
    width: 400px;
    height: 120px;

    background: #4c4e5a;
    background: -webkit-linear-gradient(top, #4c4e5a 0%, #2c2d33 100%);
    background: -moz-linear-gradient(top, #4c4e5a 0%, #2c2d33 100%);
    background: -o-linear-gradient(top, #4c4e5a 0%, #2c2d33 100%);
    background: -ms-linear-gradient(top, #4c4e5a 0%, #2c2d33 100%);
    background: linear-gradient(top, #4c4e5a 0%, #2c2d33 100%);

    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;

    margin: 0 auto;
}

/* Title */
.aaradio-player h1 {
    position: absolute;
    top: 31px;
    left: 165px;

    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: #ececec;
    text-shadow: 1px 1px 1px rgba(0,0,0, .5);
}

/* Cover */
.aaradio-player .cover {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 120px;
    height:100%;
}

/* Buttons */
.mejs-controls .mejs-button button {
    cursor: pointer;
    display: block;
    position: absolute;
    text-indent: -9999px;
    text-shadow: none;
    box-shadow: none;
}

/* Play & Pause */
.mejs-controls .mejs-play button,
.mejs-controls .mejs-pause button {
    width: 21px;
    height: 21px;
    top: 35px;
    left: 135px;
    background: transparent url('../../assets/img/play-pause.png') 0 0;
}

.mejs-controls .mejs-pause button { background-position:0 -21px; }

/* Mute & Unmute */
.mejs-controls .mejs-mute button,
.mejs-controls .mejs-unmute button {
    width: 14px;
    height: 12px;
    top: 70px;
    left: 140px;
    background: transparent url('../../assets/img/mute-unmute.png') 0 0;
}

.mejs-controls .mejs-unmute button { background-position: 0 -12px; }

/* Volume Slider */
.mejs-controls div.mejs-horizontal-volume-slider {
    position: absolute;
    top: 71px;
    left: 165px;
    cursor: pointer;
}

.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total {
    width: 200px;
    height: 8px;
    background: #212227;

    -webkit-box-shadow: inset 0px 1px 0px rgba(0,0,0, .3), 0px 1px 0px rgba(255,255,255, .25);
    -moz-box-shadow: inset 0px 1px 0px rgba(0,0,0, .3), 0px 1px 0px rgba(255,255,255, .25);
    box-shadow: inset 0px 1px 0px rgba(0,0,0, .3), 0px 1px 0px rgba(255,255,255, .25);

    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
    position: absolute;
    width: 0;
    height: 6px;
    top: 1px;
    left: 1px;
    background: url('../../assets/img/volume-bar.png') repeat-x;

    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

/* Progress Slider */
.mejs-controls div.mejs-time-rail { width: 400px; }

.mejs-controls .mejs-time-rail span {
    position: absolute;
    display: block;
    width: 400px;
    height: 5px;
    left: 0;
    bottom: 0;
    cursor: pointer;

    -webkit-border-radius: 0px 0px 2px 2px;
    -moz-border-radius: 0px 0px 2px 2px;
    border-radius: 0px 0px 2px 2px;
}

.mejs-controls .mejs-time-rail .mejs-time-total { background: #999999; }

.mejs-controls .mejs-time-rail .mejs-time-loaded {
    width: 0;
    background: #cccccc;
}

.mejs-controls .mejs-time-rail .mejs-time-current {
    width: 0;
    background: #64b44c;
}

/* Volume Slider & Progress Bar Handle */
.mejs-controls .mejs-time-rail .mejs-time-handle,
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-handle {
    position: absolute;
    display: block;
    width: 12px;
    height: 14px;
    top: -4px;
    background: url('../../assets/img/handle.png') no-repeat;
}

.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-handle { top: -2px; }

/* Time Float Box */
.mejs-controls .mejs-time-rail .mejs-time-float {
    position: absolute;
    display: none;
    width: 33px;
    height: 23px;
    top: -26px;
    margin-left: -17px;
    background: url(https://designmodo.com/demo/audioplayer/img/time-box.png);
}

.mejs-controls .mejs-time-rail .mejs-time-float-current {
    width: 33px;
    display: block;
    left: 0;
    top: 4px;

    font-family: Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    color: #666666;
    text-align: center;
}

@media only screen and (max-width: 600px) {
    div.aaradio-player {
        position: relative;
        width: 300px;
        height: 98px;
        margin: 0 auto;
    }

    .aaradio-player h1 {
        top: 37px;
        left: 139px;
        line-height: 28px;
    }

    .mejs-controls .mejs-play button, .mejs-controls .mejs-pause button {
        top: 41px;
        left: 110px;
    }
}

/*
=============================================== Sticky Full Width Radio Player ===============================================
*/

#aaradioplayer-stickyradio {
    width: 100%;
    position: fixed;
    display: flex;
    bottom: 0;
    left: 0;
    z-index: 9999;
}

.aaradioplayer-center {
    align-items: center;
}

#aastickyradio-btn {
    width: 50px;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 12px;
    border-right: 1px solid #ccc;
    font-size: 17px;
    cursor: pointer;
}

.aastickyradio-live {
    padding-left: 16px;
    text-align: left;
    letter-spacing: .5px;
    font-family: sans-serif;
    font-size: 16px;
}

/*
=============================================== Floating Radio Player ===============================================
*/

#aaradioplayer-floating{
    position: fixed;
    bottom: 15px;
    right: 15px;
    font-size: 50px;
    display: flex;
    border-radius: 50%;
    width: 1.3em;
    height: 1.3em;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}


#aaradio-btn{
    font-size: 30px;
}