body {
    font-family: monospace;
    font-size: 16px;
    overflow-y: scroll;
    max-width: 900px;
    min-height: 100vh;
    padding: 0 10px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

a {
    color: darkblue;
    text-decoration: none;
}

main {
    display: flex;
    flex: 1;
}

main div:first-child {
    margin-right: 10px;
}

main div:last-child {
    flex: 1;
}

ul.boxes {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.boxes li {
    position: relative;
    border: 1px solid #aaa;
    border-radius: 2px;
    padding: 5px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

ul.boxes li span:last-child {
    margin-left: auto;
}

ul.boxes.boxes-pointer li {
    cursor: pointer;
}

ul.boxes li:hover:not(.box-playing), ul.boxes li.box-active {
    background-color: #eee;
}

ul.boxes li.box-playing::before {
    position: absolute;
    display: block;
    content: '';
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--progress-width);
    background-color: #ddd;
    z-index: -1;
}

@media screen and (max-width: 600px) {
    main {
        flex-direction: column-reverse;
    }

    main div:first-child {
        margin-right: 0;
        flex: 1;
    }

    main div:last-child {
        flex: 0;
    }

    .sm-hide {
        display: none !important;
    }
}

@media screen and (min-width: 601px) {
    .sm-show {
        display: none !important;
    }
}
