#player-container.tv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: min-content 1fr min-content 1fr 10vh;
    /*gap: 10px;*/
    column-gap: 5px;
    width: 100vw;
    height: 100vh;
    padding: 10vh 10vw;
    grid-template-areas:
        "logo album-art"
        "above-media-details album-art"
        "media-details album-art"
        "below-media-details album-art"
        "next-song-details media-controls";
}

#player-container.touch {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: min-content 1fr min-content 1fr 23vh;
    /*gap: 10px;*/
    column-gap: 5px;
    width: 100vw;
    height: 100vh;
    /* deliberately using vw units to make the layout responsive */
    padding: 6vw 6vw;
    grid-template-areas:
        "logo album-art"
        "above-media-details album-art"
        "media-details album-art"
        "below-media-details album-art"
        "next-song-details media-controls";
}

#bg-image {

    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100%;
    background: center / cover no-repeat;
    background-image: url(//www.gstatic.com/cast/sdk/assets/touch_no_image_1024_600.jpg);
}

#bg-image.touch {
    transform: scale(1.25);
    transform-origin: center;
    filter: blur(37px);
}

#bg-image.tv {
    filter: brightness(0.1);
}
#album-art {
    background-color: #ccc;
max-width: 100%;
max-height: 100%;
place-self: start center;
grid-area: album-art;
border-radius: 10px;
}
.touch #album-art {
    min-height: 339px;
    min-width: 339px;
}


#album-name {
    grid-area: above-media-details;
    align-self: end;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.touch #album-name {
    font-size: 2em;
}

#artist-name {
    grid-area: below-media-details;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.touch #artist-name {
    font-size: 2em;
}
#mode-icons {
    grid-area: logo;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#player-logo {
    max-height: 5vh;
    grid-area: logo;
}

.touch #player-logo {
    max-height: 10vh;
}

#next-album-art {
    width: 5vw;
    height: 5vh;
}

#next-song-details {
    grid-area: next-song-details;
}


#media-control-container {
    grid-area: media-controls;
}

#title {
    font-size: 2em;
    font-weight: bold;
    grid-area: media-details;
    height: 100%;
    overflow: hidden;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
}

.touch #title {
    font-size: 3em;
}

#subtitle {
    font-size: 1.5em;
}

.touch #media-controls {
    display: none;
}

#progress-bar {
    width: 100%;
    -webkit-appearance: none;
    height: 0.5em;
    border-radius: 0.25em;
    background: #444;
    outline: none;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1em;
    height: 1em;
    background: #1e88e5;
    border-radius: 50%;
    cursor: pointer;
}

#media-time-container {
    display: flex;
    justify-content: space-between;
    font-size: 1em;
    color: #aaa;
    margin-top: 1em;
}

@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-Regular.otf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-SemiBold.otf') format('truetype');
    font-weight: bold;
}

body {
    font-family: 'Metropolis', sans-serif;
    background: #191414;
    color: white;
}

#debug-info {
    display: none;
}

.material-icons {
    animation: fade 2s ease infinite alternate;
}

.touch .material-icons {
    font-size: 40pt;
}
@keyframes fade {

    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}