.mud-toolbar .logo-container {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo {
    height: 50px;
    margin: 0 auto;
}

.mud-toolbar .logo-container .logo {
    height: 100%;
    margin: 0 -50%;
    display: block;
}

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    color: var(--mud-palette-drawer-text);
}

.lastfm-logo {
    height: 1rem;
    width: auto;
    fill: #bc000c;
}

.lastfm-red {
    color: #bc000c;
}

.spotify-logo {
    height: 1.45rem;
    width: auto;
    fill: #1db954;
}

.spotify-green {
    color: #1db954;
}

.image-grid {
    display: flex;
    gap: 12px 0;
    flex-wrap: wrap;
    justify-content: space-between;
}

.image-grid .image-grid-item {
    position: relative;
    display: block;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 24%;
}

.image-grid .image-grid-item .mud-image {
    width: 100%;
    aspect-ratio: 1/1;
}

.image-grid .ellipsis-text {
    /** Prevent weird layout issues with ellipsis text causing wider items **/
    max-width: 35ch;
}

.mud-image.artwork {
    border: 1px solid lightgray;
}

@media (max-width: 600px) {
    .image-grid .image-grid-item {
        width: 48%;
    }
}

.image-fill {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1/1;
}

.overlay-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: 100%;
}

.overlay-image-container .overlay-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    max-width: 100%;
    max-height: 100%;
    background-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .35) 70%, rgba(0, 0, 0, .7));
}

.overlay-image-container .overlay-image {
    min-width: 100%;
    min-height: 100%;
    flex-shrink: 0;
}

.overlay-image-container .overlay-image-text {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 0, 0, .7);
    padding: 15px;
}

.mud-typography .mud-icon-root {
    vertical-align: text-bottom;
}

.ellipsis-text {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mud-typography.color-subtle {
    color: var(--mud-palette-secondary-text);
}

.home-cover-image {
    height: 400px;
    box-shadow: rgba(149, 157, 165, 0.8) 0px 8px 24px;
}

.search-overlay-results {
    max-height: calc(100vh - 100px);
    overflow-y: scroll
}

.card-item-header-icon {
    vertical-align: text-bottom;
    font-size: 1.2em;
}

.page-header-icon {
    vertical-align: text-bottom;
}

.track-list-item {
    width: 100%;
    overflow: hidden;
}

.track-list-item .track-list-item-text {
    min-width: 0;
    width: 100%;
    display: table;
    table-layout: fixed;
}

html[data-theme="dark"] {
    color-scheme: dark;
    background-color: #2f2f2f;
}

/* Until the theme is set by ThemeState, follow the system preference when the user's preference is to follow the system */
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) {
        color-scheme: dark;
        background-color: #2f2f2f;
    }
}

html[data-theme="dark"] .mud-image.artwork {
    border-color: #3a3a3a;
}

html[data-theme="dark"] .home-cover-image {
    box-shadow: rgba(0, 0, 0, 0.6) 0px 8px 24px;
}

/* MudBlazor resets the padding of every element (`* { padding: 0 }`), which puts the bullets of a plain <ul> outside of
   its container. Put this class on a list that is not rendered by a MudBlazor component. */
ul.bullet-list,
ol.bullet-list {
    padding-inline-start: 1.5rem;
}

/* The footer sits at the bottom of the screen on short pages, and under the content on long ones: the main content is
   at least as high as the screen (its top padding for the app bar is part of that height) and the page content grows
   into the free room above the footer. */
.mz-main {
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
}
