a.anchor.playing + article {
    opacity: 1;
    animation: focusFadeIn .8s ease-out;
}
@keyframes focusFadeIn {
    0% { opacity: .3; }
    100% { opacity: 1; }
}

footer {
    width: 100vw;
    overflow: hidden;
    background-color: #2C2C2C;
    position: fixed;
    bottom: 0;
    z-index: 1; 
    box-shadow: 0 -10px 3.8em rgba( 40, 40, 40, .9 );
}
footer button, footer #controls a, #collapse-playlist {
    background-color: transparent;
    cursor: pointer;
    display: block;
    width: 2em;
    height: 2em;
    overflow: hidden;
    text-indent: -5000px;
    border: none;
    border-radius: 50%;
    margin: .5em;
    position: relative;
    box-sizing: border-box;
    outline: none;
}
footer button:focus, footer #controls a:focus, #collapse-playlist:focus {
    box-shadow: 0 0 5px #9a1d0d;
    border: 1px solid #aa2d1d;
}
footer button[disabled], footer #controls a.disabled, footer #progress[disabled] {
    cursor: not-allowed;
}
footer button:before, footer #controls a:before, #collapse-playlist:before {
    content: '';
    display: block;
    position: absolute;
    font-size: 1.4em;
    line-height: 1.5em;
    box-sizing: border-box;
    top: 0;
    left: 0;
    color: #dcc08e;
    text-indent: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background-repeat: no-repeat;
    background-size: contain;
}
footer button[disabled]:before, footer #controls a.disabled:before, footer #progress[disabled] {
    opacity: .4;
}
#previous:before { background-image: url(/img/ic_skip_previous_black_24px.svg); }
#next:before { background-image: url(/img/ic_skip_next_black_24px.svg); }
#play:before { background-image: url(/img/ic_play_arrow_black_24px.svg); }
#play.pause:before { background-image: url(/img/ic_pause_black_24px.svg); }
#backward:before { background-image: url(/img/ic_replay_10_black_24px.svg); }
#forward:before { background-image: url(/img/ic_forward_10_black_24px.svg); }
#details:before { background-image: url(/img/ic_new_releases_black_24px.svg); }
#expand-playlist:before { background-image: url(/img/ic_queue_music_black_24px.svg); }
.remove:before { background-image: url(/img/ic_cancel_black_24px.svg); }
.move-up:before { background-image: url(/img/ic_vertical_align_top_black_24px.svg); }
.move-down:before { background-image: url(/img/ic_vertical_align_bottom_black_24px.svg); }
footer #controls {
    margin: 0 auto;
    max-width: 1024px;
}
footer #controls h3 {
    display: none;
}
footer #controls ul, footer #controls li {
    display: inline-block;
    margin: 0;
    padding: 0;
    list-style-type: none;
}
footer #controls ul {
    display: grid;
    max-width: 98vw;
    /*grid-template-columns: repeat( 5, 3em ) auto 1fr 3em 3em;*/
    grid-template-columns: repeat( 3, 3em ) auto 1fr 3em;
    overflow: hidden;
    line-height: 3em;
}
@media ( max-width: 400px ) {
    footer #controls ul {
        grid-template-columns: repeat( 3, 3em ) 1fr 3em;
    }
    footer #controls li#time-container {
        grid-column-start: 4;
        grid-column-end: 6;
        text-align: right;
        padding-right: 1em;
    }
    footer #controls li#progress-container {
        grid-column-start: 1;
        grid-column-end: 5;
    }
}
footer #time.loading {
    opacity: .1;
    animation: loopFade 1.5s ease-out;
    animation-iteration-count: infinite;
}
@keyframes loopFade {
    0% { opacity: .1; }
    50% { opacity: .5; }
    100% { opacity: .1; }
}
footer #progress {
    display: block;
    width: calc( 100% - 2em );
    margin: 1em 1em 0;
    height: 1em;
    outline: none;
}
footer #playlist {
    display: none;
    margin: 0 auto;
    width: 95vw;
    max-width: 1024px;
    position: fixed;
    top: 2.5vh;
    left: 0;
    right: 0;
    height: 95vh;
    background-color: #2C2C2C;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    border: 2px solid #555;
    box-shadow: 2px 2px 2px rgba( 110, 110, 110, .8 );
}
footer #playlist:target {
    display: block;
}
footer #playlist h3 {
    margin: 0 0 1em;
    padding: 1em;
    box-sizing: border-box;
    font-size: .9em;
    text-transform: uppercase;
    border-bottom: 2px solid #555;
    background-color: #000;
    position: sticky;
    top: 0;
    z-index: 2;
}
footer #playlist #collapse-playlist {
    position: sticky;
    float: right;
    z-index: 3;
    top: .3em;
    margin-top: -3.6em;
}
footer #playlist #collapse-playlist:before {
    content: '';
    color: #DDD;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(/img/ic_close_black_24px.svg);
}
footer #playlist ul {
    list-style-type: none;
    padding: 0 1em;
    margin: 0;
    max-width: 96vw;
}
footer #playlist li {
    margin: 0;
    display: grid;
    grid-template-columns: auto repeat( 3, 3em );
    vertical-align: middle;
    line-height: 3.2em;
    border-bottom: 1px solid #444;
}
footer #playlist li:last-child {
    border: none;
}
