html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* NoiseGroove */

.ng-shell {
    display: flex;
    height: 100vh;
    background: #121212;
    color: #fff;
}

/* sidebar */

.ng-sidebar {
    width: 240px;
    background: #000;
    color: #b3b3b3;
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    box-sizing: border-box;
}

.ng-logo {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.ng-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1db954;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 8px;
}

.ng-logo-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}



/* main content */

.ng-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: linear-gradient(180deg, #1f1f1f 0, #121212 40%);
}

.ng-topbar {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-sizing: border-box;
}

.ng-topbar-title {
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8; /* subtle */
    line-height: 1.2;
    margin: 0;
}

.ng-server-label {
    font-weight: 400;
    opacity: 0.6; /* lighter, like a caption */
}

.ng-server-name {
    font-weight: 500; /* slightly stronger */
    opacity: 0.9;
}

.ng-topbar-link {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.ng-topbar-link:hover {
     color: #fff;
}

.ng-content {
    flex: 1;
    padding: 16px 24px 90px; /* bottom padding so content isn't hidden behind player */
    overflow: auto;
    box-sizing: border-box;
    background: transparent;
}

/* bottom player – 3-column grid: [left | center | right] */
.bottom-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #181818;
    color: #fff;
    /* KEY CHANGE: grid instead of flex */
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr) auto;
    column-gap: 24px;
    align-items: center;
    padding: 8px 16px;
    z-index: 1000;
    border-top: 1px solid #282828;
    box-sizing: border-box;
    font-size: 0.9rem;
}


/* LEFT AREA --------------------------------------------------------------- */

.bp-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    /* remove or change this line: it causes the hitbox issue */
    /* max-width: 260px; */
    flex: 0 0 320px; /* give the whole left block a bit more room */
}

/* clickable artwork + title block */
.bp-left-main {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1 1 auto; /* text area will shrink as needed */
    min-width: 0;
}

    .bp-left-main img.bp-artwork {
        width: 56px;
        height: 56px;
        border-radius: 4px;
        margin-right: 12px; /* this creates the missing gap */
    }

/* center column content: controls + progress */
.bp-center {
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontally center */
    justify-content: center; /* vertically center within the 80px bar */
}

/* small gap between buttons and progress bar */
.bp-controls {
    margin-bottom: 4px;
}

/* reuse existing .bp-artwork below for size/background */

/* META ------------------------------------------------------------------ */

.bp-meta {
    min-width: 0;
}

.bp-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bp-artist {
    font-size: 0.8rem;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* circled + button (default = outline only) */
/* circled + button in bottom player */
.bottom-player .bp-add-btn {
    /* fixed circle geometry */
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    /* circle look */
    border-radius: 50%;
    border: 1.5px solid #e5e5e5;
    background: transparent;
    /* reset button defaults */
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* icon */
    font-size: 18px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

    /* hover / focus = green filled circle */
    .bottom-player .bp-add-btn:hover,
    .bottom-player .bp-add-btn:focus-visible {
        outline: none;
        background-color: #1db954;
        border-color: #1db954;
        color: #000;
        transform: scale(1.02);
    }

/* main transport buttons */
.bp-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
}

    .bp-btn[disabled] {
        opacity: 0.3;
        cursor: default;
    }

.bp-seek {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    gap: 8px;
}

    .bp-seek input[type="range"] {
        flex: 1;
    }

.bp-time {
    font-size: 0.75rem;
    color: #b3b3b3;
}

/* RIGHT AREA ------------------------------------------------------------ */

.bp-right {
    width: 160px;
    display: flex;
    justify-content: flex-end;
}

    .bp-right input[type="range"] {
        width: 120px;
    }


.ng-topbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ng-search-input {
    width: 60%;
    max-width: 400px;
    padding: 6px 10px;
    border-radius: 16px;
    border: none;
    outline: none;
    background: #2a2a2a;
    color: #fff;
    font-size: 0.9rem;
}

.ng-search-input::placeholder {
    color: #888;
}

.ng-artwork-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    background: #333;
}

.ng-artwork-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: linear-gradient(145deg, #3a3a3a, #222);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 18px;
}

.bp-artwork {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    background: #333;
}

.bp-meta {
    min-width: 0;
}

.np-root {
    position: absolute;
    left: 0;
    right: 0;
    top: 56px; /* height of top bar */
    bottom: 80px; /* height of bottom player */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}

.np-main {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.np-artwork-wrap {
    width: min(60vh, 60vw);
    max-width: 480px;
}

.np-artwork {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.np-meta h2 {
    margin-bottom: 4px;
}

.np-artist {
    color: #b3b3b3;
    font-size: 1rem;
}

.np-album {
    color: #999;
    font-size: 0.9rem;
}

.np-controls {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.np-seek {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .np-seek input[type="range"] {
        flex: 1;
    }

.np-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.np-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 26px;
    border: none;
    background: #1db954;
    color: #000;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
}



.ng-link-cell {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ng-link-cell:hover {
    color: #ffffff;
    text-decoration: underline;
}

.table td, .table th {
    padding-top: 6px;
    padding-bottom: 6px;
    vertical-align: middle !important;
}

.table thead th {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    background-color: #181818;
    z-index: 10;
}

.table tbody tr:not(.ng-row-current):hover {
    background-color: #2a2a2a !important;
}

/*rows slightly brighten on hover.*/
.ng-track-row:hover:not(.ng-row-current) {
    background-color: rgba(255,255,255,0.06);
}


.table tbody tr {
    height: 56px;
}

.recent-table td:last-child,
.recent-table td:nth-last-child(2) {
    text-align: right;
}

.ng-play-btn {
    background: transparent;
    border: none;
    color: #b3b3b3;
    font-size: 1rem;
}

.ng-play-btn:hover {
    color: #1db954;
}

.table tbody tr:nth-of-type(odd) {
    background-color: #141414;
}

.table tbody tr:nth-of-type(even) {
    background-color: #1a1a1a;
}

.table tbody tr:hover {
    background-color: #2a2a2a !important;
}


tr:not(.ng-row-current):hover {
    background-color: #2a2a2a !important;
}




/* first column: index / play / pause */
.ng-col-index {
    width: 40px;
    text-align: right;
    padding-right: 12px;
    color: #b3b3b3;
}

.ng-index-number {
    font-size: 0.9rem;
    color: #b3b3b3;
}

.ng-index-icon {
    font-size: 0.9rem;
    color: #ffffff;
}

.ng-index-number, .ng-index-icon {
    transition: opacity 0.15s ease-in-out;
}

/*Optionally fade artwork slightly when hovered*/
tr:hover .ng-thumb {
    opacity: 0.8;
}

/* title cell with artwork + text */
.ng-title-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ng-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}
.ng-thumb.artist {
    border-radius: 50%;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

@keyframes soundAnimation {
    0% {
        transform: scaleY(0.3);
    }

    50% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(0.3);
    }
}

.sound-bar {
    display: inline-block;
    width: 3px;
    height: 12px;
    background: #1db954;
    margin-right: 2px;
    animation: soundAnimation 0.6s infinite ease-in-out;
}


.ng-sortable {
    cursor: pointer;
    opacity: 0.85;
}

.ng-sortable:hover {
    opacity: 1;
}


/* Play icon button – no underline, just an icon */
.ng-btn-icon {
    background: none;
    border: none;
    padding: 0 0.5rem;
    color: #e5e5e5;
    cursor: pointer;
    font-size: 0.9rem; /* adjust as you like */
}

    .ng-btn-icon:hover,
    .ng-btn-icon:focus {
        color: #ffffff;
        outline: none;
    }




/* Generic modern link style if you need it elsewhere */
.ng-link,
.ng-link:link,
.ng-link:visited {
    color: #e5e5e5;
    text-decoration: none;
}

    .ng-link:hover {
        color: #ffffff;
        text-decoration: none;
    }


/* Albums grid on artist page */
.ng-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
}

/* Artist details sidebar albums (max 2 columns) */
.ng-artist-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem 0.75rem;
    padding-right: 0.5rem;
}

/* On wide screens, force 2 columns in the sidebar */
@media (min-width: 992px) {
    .ng-artist-album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



/* Album card */
.ng-album-card {
    cursor: pointer;
    color: #e5e5e5;
    text-align: left;
    border-radius: 6px;
    padding: 0.25rem;
    transition: background 0.15s ease-in-out;
}

    .ng-album-card:hover {
        background: rgba(255, 255, 255, 0.06);
    }

/* Artwork image */
.ng-album-art {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.35rem;
    background-color: #111;
}

/* Title text */
.ng-album-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
    color: #ffffff;
}

/* Year */
.ng-album-year {
    font-size: 0.75rem;
    color: #9a9a9a;
}
.ng-album-meta {
    font-size: 0.75rem;
    color: #9a9a9a;
}

/* Album details header */
.ng-album-header {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}


/* Album list page — cover size */
.ng-album-art {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    background-color: #111;
}

/* The album card should not stretch wide */
.ng-album-card {
    width: 180px;
}
/*
.ng-album-card {
    cursor: pointer;
    border: none;
}
*/

    .ng-album-card:hover {
        background: #222;
    }


/* Folders page sidebar */
.ng-folder-sidebar {
    font-size: 0.9rem;
}

.ng-sidebar-title {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: #aaaaaa;
    margin-bottom: 0.4rem;
}

/* Folder lists */
.ng-folder-list {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

    .ng-folder-list li {
        margin-bottom: 0.15rem;
    }

/* Folder/library clickable item */
.ng-folder-link {
    display: inline-flex;
    align-items: center;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    color: #e5e5e5;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

    .ng-folder-link:hover,
    .ng-folder-link:focus {
        color: #ffffff;
        text-decoration: none;
        outline: none;
    }

/* Breadcrumb links reuse same style but a bit smaller */
.ng-folder-breadcrumb {
    font-size: 0.8rem;
}

/* Reuse ng-btn-icon from other pages for track play button
   (make sure you already have this; if not, include:) */
.ng-btn-icon {
    background: none;
    border: none;
    padding: 0 0.4rem;
    color: #e5e5e5;
    cursor: pointer;
    font-size: 0.9rem;
}

    .ng-btn-icon:hover,
    .ng-btn-icon:focus {
        color: #ffffff;
        outline: none;
    }


/* Dark theme muted text override */
.ng-muted {
    color: rgba(255, 255, 255, 0.45) !important;
}

/* Generic dark-card readability fixes */
.card.bg-dark,
.card.bg-secondary {
    color: #f8f9fa; /* near white text */
}

    /* Titles, labels, helper text inside dark cards */
    .card.bg-dark .card-title,
    .card.bg-dark .form-label,
    .card.bg-dark .form-text,
    .card.bg-dark .text-muted {
        color: #ced4da !important; /* light grey */
    }

    /* Inputs on dark cards – keep their default look but ensure text visible */
    .card.bg-dark .form-control {
        color: #212529;
        background-color: #fff;
    }

    /* Code snippets inside dark cards */
    .card.bg-dark code {
        color: #ff79c6; /* nice accent */
    }

    /* Buttons on dark cards – just a tiny tweak to outline buttons */
    .card.bg-dark .btn-outline-secondary {
        color: #f8f9fa;
        border-color: #6c757d;
    }


.ng-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ng-nav-section + .ng-nav-section {
    margin-top: 16px;
}

.ng-nav-item {
    margin-bottom: 4px;
}

.ng-nav-link {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    color: #b3b3b3;
    text-decoration: none;
    font-size: 0.95rem;
}

    .ng-nav-link:hover {
        background: #282828;
        color: #fff;
    }

    .ng-nav-link.active {
        background: #282828;
        color: #fff;
    }

.ng-nav-icon {
    width: 20px;
    margin-right: 10px;
    color: #ddd !important; /* default disabled/normal */
}


.scan-details-row {
    background: #f8f9fa;
}

.scan-details {
    padding: 12px;
    font-family: monospace;
    white-space: pre-wrap; /* VERY IMPORTANT */
    border-left: 3px solid #008cff;
    border-radius: 4px;
}

/* Radzor*/
/* Main popup box */
.rz-context-menu {
    background: #1e1e1e !important;
    border: 1px solid #333 !important;
    color: #eee !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4) !important;
    border-radius: 6px !important;
}

    /* Menu items */
    .rz-context-menu .rz-context-menu-item {
        color: #ddd !important;
        padding: 8px 14px !important;
        font-size: 0.9rem !important;
    }

        /* Hover item */
        .rz-context-menu .rz-context-menu-item:hover,
        .rz-context-menu .rz-state-hover {
            background: #2a2a2a !important;
            color: #fff !important;
        }

    /* Selected / active */
    .rz-context-menu .rz-state-highlight {
        background: #333 !important;
        color: #fff !important;
    }

    /* Separator line if used */
    .rz-context-menu .rz-separator {
        border-color: #444 !important;
    }

    .rz-context-menu .rz-context-menu-item .rz-icon {
        font-size: 18px;
        margin-right: 10px;
    }


/* Add-to-playlist dialog wrapper */
.ng-add-to-playlist-dialog {
    background: #121212;
    padding: 12px 12px 8px;
    border-radius: 8px;
}

/* Search + playlist name textboxes */
.ng-add-to-playlist-dialog .rz-textbox {
        background-color: #181818;
        border: 1px solid #3a3a3a;
        color: #eee;
        border-radius: 4px;
        padding: 8px 10px;
}

.ng-add-to-playlist-dialog .rz-textbox::placeholder {
            color: #777;
}

.ng-add-to-playlist-dialog .rz-textbox:focus {
            outline: none;
            border-color: #bb6bff; /* your purple accent */
            box-shadow: 0 0 0 1px #bb6bff;
}


/* Scrollable list of playlists */
.ng-playlist-list {
    max-height: 260px; /* adjust as you like */
    margin-top: 8px;
    overflow-y: auto;
}

/* Generic playlist row (incl. Liked songs) */
.ng-playlist-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #eee;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

    /* Hover state */
    .ng-playlist-item:hover {
        background: #2a2a2a;
    }

    /* Hover state for rows */
    .ng-playlist-item:hover {
        background: #2a2a2a;
    }

/* “New playlist” row spacing */
.ng-playlist-new {
    margin-top: 6px;
    margin-bottom: 4px;
}

/* Icon in “New playlist” row */
.ng-playlist-item-icon {
    font-size: 18px;
}

/* Block with Playlist name + Create button */
.ng-playlist-new-form {
    margin-top: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
}

    /* Make the Create button span full width */
    .ng-playlist-new-form .rz-button {
        width: 100%;
    }

/* Primary button colors (enabled) */
.ng-add-to-playlist-dialog .rz-button.rz-primary {
    width: 100%;
    text-transform: uppercase;
    font-weight: 600;
    background: #bb6bff;
    border-color: #bb6bff;
    color: #fff;
}

    /* Disabled state – still visible, but muted */
.ng-add-to-playlist-dialog .rz-button.rz-primary.rz-state-disabled {
        background: #181818;
        border-color: #444;
        color: #666;
        opacity: 1; /* override Radzen’s opacity */
}

.ng-add-to-playlist-dialog {
    position: relative;
    background: #121212;
    padding: 16px 12px 10px;
    border-radius: 8px;
}

/* X button in top-right */
.ng-dialog-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
    line-height: 24px;
    padding: 0;
}

    .ng-dialog-close:hover {
        background: #2a2a2a;
        color: #fff;
    }


/* Queue overlay */
.bp-queue-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: transparent; /* no dark dimming for now; add rgba if you want */
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0 16px 88px 16px; /* above bottom player */
}

/* Panel */
.bp-queue-panel {
    width: 320px;
    max-height: 60vh;
    background: #181818;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.bp-queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid #282828;
    background: #202020;
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bp-queue-title-main {
    font-weight: 600;
}

.bp-queue-header-actions {
    display: flex;
    gap: 4px;
}

.bp-queue-header-btn {
    border: none;
    background: transparent;
    color: #b3b3b3;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
}

    .bp-queue-header-btn:hover {
        background: #2a2a2a;
        color: #fff;
    }

.bp-queue-close {
    font-size: 0.9rem;
    padding-inline: 6px;
}

/* The word "Clear" as a subtle link-like button */
.bp-queue-clear {
    text-transform: none;
}

/* List */
.bp-queue-list {
    overflow-y: auto;
}

/* Items */
.bp-queue-item {
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #e0e0e0;
}

    .bp-queue-item:hover {
        background: #262626;
    }

.bp-queue-current {
    background: #323232;
    color: #ffffff;
}

    .bp-queue-current .bp-queue-index {
        color: #1db954; /* green index for current track */
    }

.bp-queue-index {
    width: 22px;
    text-align: right;
    color: #888;
}

.bp-queue-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bp-queue-artist {
    color: #b0b0b0;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
}

/*Album details*/
//* Header wrapper – same idea as artist */
/* On narrow screens: stack vertically, cover adapts */
/* optional if you want some tweaks on top of d-flex */
@media (max-width: 768px) {
    .ng-album-header {
        align-items: flex-start;
    }

    .ng-album-cover {
        width: min(70vw, 320px);
    }
}


/* Album cover (bigger than the track thumbnails) */
.ng-album-cover {
    flex-shrink: 0;
    width: min(260px, 40vw);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    background-color: #111;
}


/* Right-side text block */
.ng-album-info {
    min-width: 0;
}

/* Optional tweaks to match artist page exactly */
.ng-album-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.ng-meta {
    color: #ccc !important; /* readable dim-gray text */
    font-size: 0.9rem;
}

/* Track info dialog */
.bp-track-info-dialog h3 {
    margin-bottom: 0.75rem;
}

.bp-track-info-table {
    width: 100%;
    font-size: 0.9rem;
}


.bp-track-info-actions {
    margin-top: 1rem;
    text-align: right;
}

/* Ensure TrackInfo dialog uses normal readable text */
.bp-track-info-dialog,
.bp-track-info-dialog td,
.bp-track-info-dialog h3,
.bp-track-info-dialog table,
.bp-track-info-dialog tr {
    color: var(--rz-text-color); /* Radzen default text color */
}

/* Optional: make labels lighter and values normal */
.bp-track-info-table td:first-child {
    color: var(--rz-text-secondary);
}

.bp-track-info-table td:last-child {
    color: var(--rz-text-color);
}

/* Ensure the FilePath stays readable */
.bp-track-info-filepath {
    color: var(--rz-text-color);
    font-family: monospace;
    word-break: break-all;
}

/* User area on top */

/* Container on the right side */
.ng-user-area {
    margin-left: 1rem;
}

/* The chip in the top bar */
.ng-user-button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
    font-size: .85rem;
}

    .ng-user-button:hover {
        background: rgba(255, 255, 255, .14);
    }

/* Avatar circle */
.ng-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1db954; /* Spotify-ish green, tweak if you want */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .8rem;
}

/* Name text next to avatar */
.ng-user-name {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Small caret */
.ng-user-caret {
    font-size: .7rem;
    opacity: .8;
}

/* Override Bootstrap dropdown look for this menu */
.ng-user-menu.dropdown-menu {
    --bs-dropdown-bg: #181818;
    --bs-dropdown-border-color: #333;
    --bs-dropdown-link-color: #f1f1f1;
    --bs-dropdown-link-hover-bg: #282828;
    --bs-dropdown-link-hover-color: #fff;
    background-color: #181818;
    border-radius: 10px;
    padding: .25rem 0;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .6);
}

/* Menu items with icons */
/* Tighten spacing between icon and label a bit */
.ng-user-menu-item {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
    padding: .35rem .75rem;
}

/* Make the icons in the user menu the same style as nav icons, just a bit smaller */
.ng-user-menu-item .ng-user-icon {
        font-size: 1rem;
}


.ng-user-menu-item-danger {
    color: #ff6b6b;
}

    .ng-user-menu-item-danger .ng-user-icon {
        color: #ff6b6b;
    }

/* Divider tone */
.ng-user-divider {
    margin: .25rem 0;
    border-color: #303030;
}

.ng-user-version-line {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    padding: .3rem .75rem;
    color: #aaa;
}

/* Search Wrapper */

.ng-search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ng-search-toggle-group {
    display: inline-flex;
    padding: 2px;
    border-radius: 999px;
    background: #262626; /* matches dark bar */
}

.ng-search-toggle {
    border: none;
    background: transparent;
    padding: 4px 10px;
    font-size: 0.85rem;
    color: #aaa;
    border-radius: 999px;
    cursor: pointer;
}

    .ng-search-toggle:hover {
        color: #fff;
    }

.ng-search-toggle-active {
    background: #3a3a3a;
    color: #fff;
}

/* Search sections */

.ng-search-section {
    margin-bottom: 2rem;
}

/* Artist cards in search */

.ng-search-artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem;
}

.ng-search-artist-card {
    cursor: pointer;
    text-align: center;
}

.ng-search-artist-art {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.ng-search-artist-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.ng-search-artist-meta {
    font-size: 0.75rem;
    color: #a0a0a0;
}

/* Slightly denser grid when albums are shown inside search */

.ng-search-album-grid {
    /* optional override if you want them a tad smaller than the full Albums page */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* For Playlist*/

.ng-playlists-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ng-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ng-page-header-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ng-page-subtitle {
    font-size: 0.9rem;
    color: #b3b3b3;
}

.ng-page-header-actions {
    display: flex;
    gap: 8px;
}

.ng-playlists-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ng-playlists-filters {
    display: flex;
    gap: 8px;
}

.ng-playlists-search {
    max-width: 260px;
    flex: 0 0 auto;
}

.ng-playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.ng-playlist-card {
    position: relative; /* needed for edit button positioning */
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.ng-playlist-card-edit {
    position: absolute;
    top: 6px;
    right: 6px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 999px;
    padding: 0;
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8; /* visible by default */
    z-index: 2;
    transition: opacity 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.ng-playlist-card:hover .ng-playlist-card-edit {
    opacity: 1;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.ng-playlist-card-edit:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ng-playlist-thumb {
    width: 52px;
    height: 52px;
    border-radius: 4px;
    background: linear-gradient(135deg, #1db954, #3d91f4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.ng-playlist-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ng-playlist-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ng-playlist-meta-secondary {
    font-size: 0.8rem;
    color: #b3b3b3;
}

.ng-playlist-desc {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ng-playlists-empty-state {
    margin-top: 24px;
}

.ng-playlist-details-header {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

/* make the fake cover a bit larger in details view */

.ng-playlist-details-thumb {
    width: 96px;
    height: 96px;
    font-size: 2.1rem;
}


.ng-playlist-details-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ng-playlist-details-meta {
    font-size: 0.85rem;
    color: #b3b3b3;
}

.ng-playlist-details-desc {
    font-size: 0.9rem;
    color: #dddddd;
    max-width: 520px;
    white-space: pre-wrap;
}

/* edit button alignment */

.ng-playlist-details-edit {
    margin-left: auto;
}


/* header row inside playlists section */
.ng-nav-header-link {
    cursor: default;
    opacity: 0.85;
}

.ng-nav-header-link:hover {
        text-decoration: none;
    }

/* green-ish heart for liked playlist */
.ng-nav-icon-liked {
    color: #1db954; /* Spotify green vibe */
}


/* Base cover square used in nav / cards / details */
.ng-pl-cover {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Bigger variant for details page if needed */
.ng-pl-cover-lg {
    width: 96px;
    height: 96px;
    font-size: 2.1rem;
}


/* liked playlist – make heart pop a bit */
/* If you want liked songs to always have white heart on purple */
.ng-pl-cover-liked {
    background: linear-gradient(135deg, #4c1d95, #7c3aed);
}

/* Playlists section in nav */

.ng-nav-playlists {
    margin-top: 12px;
}

/* search row */
.ng-nav-playlists-search {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    margin-bottom: 4px;
}

.ng-nav-playlists-search-icon {
    margin-right: 6px;
    font-size: 0.9rem;
    color: #b3b3b3;
}

.ng-nav-playlists-search input {
    flex: 1;
    background: #121212;
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.85rem;
    color: #fff;
    outline: none;
}

    .ng-nav-playlists-search input::placeholder {
        color: #666;
    }

/* playlist rows in nav */

.ng-nav-playlist-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
}

.ng-nav-playlist-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ng-nav-playlist-title {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ng-nav-playlist-subtitle {
    font-size: 0.75rem;
    color: #a5a5a5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* make header non-clickable & slightly dimmer */
.ng-nav-header-link {
    cursor: default;
    opacity: 0.85;
}

/* === PLAYLIST COLOR PALETTE (6 rotating gradients) === */

/* Blue-teal */
.ng-pl-cover-0 {
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
}

/* Purple -> violet */
.ng-pl-cover-1 {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

/* Green -> emerald */
.ng-pl-cover-2 {
    background: linear-gradient(135deg, #34d399, #10b981);
}

/* Orange -> amber */
.ng-pl-cover-3 {
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

/* Pink -> rose */
.ng-pl-cover-4 {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

/* Cyan -> blue */
.ng-pl-cover-5 {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

/* Heart playlist override */
.ng-pl-cover-liked {
    background: linear-gradient(135deg, #4c1d95, #7c3aed) !important;
}

/* NoiseGroove override for muted text in dark shell */
.ng-shell .text-muted,
.ng-shell-mobile .text-muted {
    color: #ced4da !important; /* your desired light grey */
    opacity: 1 !important; /* undo Bootstrap 0.65 */
}

/* Dark-themed success alert for NoiseGroove */
.ng-shell .alert-success {
    background-color: #1f3d2b !important; /* deep green tint */
    border-color: #2b5a3b !important;
    color: #d1ffd6 !important;
}

    .ng-shell .alert-success .text-muted {
        color: #b8e6c0 !important;
 }

    .ng-shell .alert-success .btn-outline-light {
        border-color: #d1ffd6 !important;
        color: #d1ffd6 !important;
 }

 .ng-shell .alert-success .btn-outline-light:hover {
      background: #d1ffd6 !important;
     color: #000 !important;
 }

/* Home – playlist cards */

.ng-horizontal-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.ng-card {
    min-width: 180px;
    max-width: 200px;
    padding: 12px;
    border-radius: 8px;
    background: #000;
    flex-shrink: 0;
}

/* square artwork area */
.ng-square-art {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* perfect square */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

    /* large gradient cover inside square – center the text */
    .ng-square-art .ng-pl-cover-large {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-weight: 700;
        font-size: 2.4rem; /* nice big letters */
        text-transform: uppercase;
        color: #fff;
    }


/* ==== Home loading skeleton ================================================= */

.ng-home-skel {
    /* keep same padding / layout as normal home */
}

/* shared */
.ng-skel-animate {
    animation: ng-skel-pulse 1.6s ease-in-out infinite;
}

@keyframes ng-skel-pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.9;
    }

    100% {
        opacity: 0.4;
    }
}

.ng-skel-page-title {
    width: 180px;
    height: 32px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.ng-skel-section {
    margin-bottom: 2.5rem;
}

.ng-skel-section-title {
    width: 160px;
    height: 24px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

/* track list skeleton */

.ng-skel-track-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ng-skel-track-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.4rem 0;
}

.ng-skel-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.ng-skel-track-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ng-skel-line {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.ng-skel-line-primary {
    width: 60%;
}

.ng-skel-line-secondary {
    width: 40%;
    opacity: 0.8;
}

.ng-skel-duration {
    width: 40px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* playlist cards skeleton */

.ng-skel-playlist-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.ng-skel-playlist-card {
    width: 140px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ng-skel-playlist-cover {
    width: 100%;
    padding-top: 100%; /* square */
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.ng-skel-playlist-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

    .ng-skel-playlist-text .ng-skel-line-primary {
        width: 70%;
    }

    .ng-skel-playlist-text .ng-skel-line-secondary {
        width: 50%;
    }

.ng-card-sub .ng-link-button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
}
