body {
    background-color: #000;
    color: #fff;
    font-family: Lato;
    padding: 0;
    margin: auto;
}

.amp-mini {
    height: 53px;
    background-color: #272727;
    padding: 10px 15px;
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    z-index: 1111;
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    align-content: stretch;
}

.controls,
.playback,
.volume {
    float: left;
    background-color: #1d1d1d;
    display: block;
    height: 100%;
}

.controls {
    padding-left: 3px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    align-self: flex-start;
    flex-shrink: 1;
    flex-grow: 0;
}

.playback {
    padding: 0 20px;
    align-self: flex-start;
    flex-shrink: 1;
    flex-grow: 1;
}

.volume {
    line-height: 2em;
    padding-left: 10px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    text-indent: 15px;
    align-self: flex-end;
    flex-shrink: 1;
    flex-grow: 0;
    padding-right: 20px;
    padding-top: 3px;
}

.time {
    float: right;
    font-size: 85%;
}

.control-btn {
    cursor: pointer;
    padding: 5px;
    width: 30px;
    display: inline-block;
    text-align: center;
    border-radius: 3px;
    background: #525252;
    background: -moz-linear-gradient(top, #525252 0%, #1d1d1d 98%);
    background: -webkit-linear-gradient(top, #525252 0%, #1d1d1d 98%);
    background: linear-gradient(to bottom, #525252 0%, #1d1d1d 98%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#525252", endColorstr="#1d1d1d", GradientType=0);
    margin-top: 2px;
    height: 30px;
}

.song-artist-album {
    display: inline;
}

.song-info {
    font-size: 13px;
    line-height: 1em;
    padding-top: 3px;
}

div#progress-container {
    width: 100%;
    float: left;
    position: relative;
    height: 20px;
    cursor: pointer;
}

div#progress-container input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    margin: 7.5px 0;
    position: absolute;
    z-index: 61;
    top: -7px;
    height: 20px;
    cursor: pointer;
    background-color: inherit;
}

input[type="range"]:focus {
    outline: none;
}

div#progress-container input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 0;
    cursor: pointer;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(13, 13, 13, 0);
    background: #0075a9;
    border-radius: 0;
    border: 0 solid #010101;
}

div#progress-container input[type="range"]::-webkit-slider-thumb {
    box-shadow: 0 0 0 #000000, 0 0 0 #0d0d0d;
    border: 1px solid #00a0ff;
    height: 10px;
    width: 10px;
    border-radius: 16px;
    background: #00a0ff;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -5.5px;
}

div#progress-container progress#song-played-progress {
    width: 100%;
    position: absolute;
    left: 0;
    top: 8px;
    right: 0;
    z-index: 60;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 5px;
    background: #0000;
    border: none;
}

div#progress-container progress#song-played-progress[value]::-webkit-progress-bar {
    background: none;
    border-radius: 5px;
}

div#progress-container progress#song-played-progress[value]::-webkit-progress-value {
    background-color: #00a0ff;
    border-radius: 5px;
}

div#progress-container progress#song-buffered-progress {
    position: absolute;
    left: 0;
    top: 8px;
    right: 0;
    width: 100%;
    z-index: 10;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 5px;
    border: none;
    background-color: #d7dee3;
}

div#progress-container progress#song-buffered-progress[value]::-webkit-progress-bar {
    background-color: #cfd8dc;
    border-radius: 5px;
}

div#progress-container progress#song-buffered-progress[value]::-webkit-progress-value {
    background-color: #78909c;
    border-radius: 5px;
    transition: width 0.1s ease;
}

input[type="range"].amplitude-volume-slider {
    -webkit-appearance: none;
    margin-top: 0;
    margin-left: 5px;
    top: -5px;
    position: relative;
}

input[type="range"].amplitude-volume-slider::-webkit-slider-runnable-track {
    width: 75%;
    height: 2px;
    cursor: pointer;
    animate: 0.2s;
    background: #cfd8dc;
}

input[type="range"].amplitude-volume-slider::-webkit-slider-thumb {
    height: 10px;
    width: 10px;
    border-radius: 10px;
    background: #00a0ff;
    cursor: pointer;
    margin-top: -4px;
    -webkit-appearance: none;
}

#soundCloud > img {
    visibility: hidden;
}

.showsc > img {
    visibility: visible !important;
}

span.download {
    float: right;
    padding-right: 10px;
}

/* Small only */
@media screen and (max-width: 39.9375em) {
    .amp-mini {
        padding: 10px 5px;
    }

    .volume, .time, .song-artist-album {
        display: none;
    }

    .control-btn {
        margin-top: 0;
    }

    .playback {
        padding-left: 10px;
        padding-right: 5px;
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
        width: fit-content;
        align-self: stretch;
        min-width: auto;
        flex-grow: 1;
        flex-shrink: 1;
        float: none;
    }

    .controls, .playback, .volume {
        padding-top: 2px;
    }


    span.song-name {
        /* text-overflow: ellipsis; */

        /* Needed to make it work */
        /* overflow: hidden; */
        white-space: nowrap;
        display: inline-block;
        width: 100%;
    }

    .song-info {
        height: 1.1em;
        overflow: hidden;
        position: relative;
    }

    .song-info div#meta-container {
        position: absolute;
        width: 100%;
        height: 100%;
        margin: 0; /* line-height: 50px; */
        text-align: left;
    }

    .song-info .run-animation {
        /* Starting position */
        -moz-transform: translateX(100%);
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        /* Apply animation to this element */
        -moz-animation: scroll-left 10s linear infinite;
        -webkit-animation: scroll-left 10s linear infinite;
        animation: scroll-left 10s linear infinite;
    }

    /* Move it (define the animation) */
    @-moz-keyframes scroll-left {
        0% {
            -moz-transform: translateX(100%);
        }
        100% {
            -moz-transform: translateX(-100%);
        }
    }
    @-webkit-keyframes scroll-left {
        0% {
            -webkit-transform: translateX(100%);
        }
        100% {
            -webkit-transform: translateX(-100%);
        }
    }
    @keyframes scroll-left {
        0% {
            -moz-transform: translateX(100%); /* Browser bug fix */
            -webkit-transform: translateX(100%); /* Browser bug fix */
            transform: translateX(100%);
        }
        100% {
            -moz-transform: translateX(-100%); /* Browser bug fix */
            -webkit-transform: translateX(-100%); /* Browser bug fix */
            transform: translateX(-100%);
        }
    }

}

@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: landscape) {
    span.artist, div#soundCloud {
        display: none;
    }

    .playback {
        padding-left: 10px;
    }
}

@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: portrait) {
    span.artist, div#soundCloud {
        display: none;
    }

    .playback {
        min-width: 54%;
        width: 54%;
        padding-left: 10px;
    }

    .volume {
        padding: 0 10px;
    }
}

@media only screen
and (device-width: 375px)
and (device-height: 812px)
and (-webkit-device-pixel-ratio: 3) {

    .playback {
        width: 63%;
    }
}


/* Medium only */
@media screen and (min-width: 40em) and (max-width: 63.9375em) {

}

/* Large and up */
@media screen and (min-width: 64em) {

}