.session-title {
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: nowrap;
}

.frontpage-icon {
    max-width: 50vw;
    max-height: 40vh;
}

.frontpage-title {
    font-size: 5em;
}

.grayed {
    filter: grayscale(1) contrast(0.25) brightness(0.5);
}

.h100 {
    height: 100dvh;
}

.mw100 {
    max-width: 100dvw;
}

.table-wrapper {
    overflow-y: auto;
    min-height: 0;
}

.flex-start {
    justify-content: flex-start;
}

.flex-end {
    justify-content: flex-end;
}

.track-meta {
    flex-shrink: 1;
    overflow: hidden;
    min-width: 0px;
    white-space: nowrap;
}

.track-meta div {
    max-width: 100%;
}

.progress-bar {
    width: 100%;
    height: .25em;
}

.progress-bar-bg {
    fill: var(--bulma-border);
    border: none;
}

.progress-bar-fg {
    fill: var(--bulma-link);
    border: none;
}

.nominsize {
    line-height: 0px;
    ;
}

.track-title {
    display: inline-block;
}

.cover {
    object-fit: cover;
    aspect-ratio: 1;
}

[data-type=title],
[data-type=artist],
[data-type=album],
[data-type=albumInline] {
    color: inherit !important;
}

[data-type=artist] {
    opacity: 60%;
}

/* Album (or track count) can't fit in its own column on small screens, so it moves under the track */
.row-inline {
    display: none;
}

.album-count {
    margin-left: .5em;
    font-size: .75rem;
    opacity: 60%;
    white-space: nowrap;
}

.album-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: .35em;
    padding: 0;
    width: 1.5em;
    height: 1.5em;
    font-size: .75rem;
    vertical-align: middle;
    color: inherit;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: .55;
}

.album-download:hover {
    opacity: 1;
    color: var(--bulma-link);
    background-color: var(--bulma-background);
}

.album-download.is-success {
    color: var(--bulma-success);
    opacity: 1;
}

.album-download.is-danger {
    color: var(--bulma-danger);
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .row-inline {
        display: block;
        font-size: .75rem;
        line-height: 1.35;
        opacity: 60%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .row-inline > a {
        display: inline;
    }

    .row-inline .album-meta {
        display: inline-block;
        white-space: nowrap;
    }

    .row-inline .album-count {
        margin-left: .4em;
    }
}

#addTrackButton {
    position: fixed;
    right: 1em;
    bottom: 6.5em;
}

#downloadsButton {
    position: fixed;
    right: 1em;
    bottom: 10.5em;
}

.download-item:last-child {
    margin-bottom: 0 !important;
}

/* #queue, #queue tr {
    max-width: 100dvw;
    display: block;
    white-space: nowrap;
} */


.table.has-sticky-header {
    border-collapse: separate;
}

.table.has-sticky-header thead th {
    background-color: var(--bulma-scheme-main);
    position: sticky;
    top: 0;
    z-index: 5;
}

[popover] {
    position: inherit;
    inset: inherit;
    width: inherit;
    height: inherit;
    margin: inherit;
    border: inherit;
    padding: inherit;
    overflow: inherit;
    color: inherit;
    background-color: inherit;
}

.no-scrollbar {
    scrollbar-width: none;
}

/* Chrome and WebKit have massive ugly scrollbars */
/* .chrome-scrollbar-thin::-webkit-scrollbar {
    width: 0px;
} */

@media screen and (min-width: 768px) {
    .search-modal {
        width: calc(100dvw - 6em);
        height: calc(100dvh - 6em);
    }
}

@media screen and (max-width: 768px) {
    .search-modal {
        width: 100dvw;
        height: 100dvh;
    }
}

.fix-background-color {
    background-color: var(--bulma-scheme-main);
}

.is-valign-center {
    vertical-align: center;
}

.result-cover {
    vertical-align: middle;
    position: relative;
}

.result-cover button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.result-cover button span i {
    filter: drop-shadow(0px 0px 1em black);
    color: white;
}

.result-cover button:not(:hover) span i {
    visibility: hidden;
}
