:root {
    --main: rgb(99, 70, 222);
    --main2: rgb(15, 209, 161);
    --para: rgb(195, 195, 195);

    --bg: #121212;
    --bgone: rgba(54, 38, 122, 0.3);
    --bgtwo: rgba(99, 70, 222, 0.3);

    --glassbg: rgba(255, 255, 255, 0.01);
    --glassbgh: rgba(99, 70, 222, 0.1);
    --glassborder: rgba(255, 255, 255, 0.1);
    --glassborderh: rgba(99, 70, 222, 0.8);
    --glassshadow: rgba(255, 255, 255, 0.05);
    --glassshadowh: rgba(99, 70, 222, 0.4);

    --btnbg: rgba(255, 255, 255, 0.03);
    --btnbgh: rgba(5, 70, 54, 0.3);
    --btnbr: rgba(255, 255, 255, 0.1);
    --btnbrh: rgba(15, 209, 161, 0.8);
    --btnshw: rgba(255, 255, 255, 0.04);
    --btnshwh: rgba(15, 209, 161, 0.4);

    /* Size between 960px - 2560px viewport width */
    --px12: clamp(9px, 0.625vw, 16px);
    --px16: clamp(10px, 0.833vw, 21px);
    --px18: clamp(12px, 0.9375vw, 24px);
    --px20: clamp(18px, 1.0417vw, 27px);
    --px25: clamp(17px, 1.30vw, 33px);
    --px34: clamp(23px, 1.77vw, 45px);
    --px42: clamp(28px, 2.1875vw, 56px);
    --px46: clamp(31px, 2.4vw, 61px);
    --px60: clamp(40px, 3.125vw, 80px);
    --px80: clamp(40px, 4.1667vw, 106px);
    --px120: clamp(60px, 6.25vw, 160px);
    --px240: clamp(120px, 12.5vw, 320px);
    --px300: clamp(150px, 15.625vw, 400px);

    #page {
        display: grid;
        grid-template-columns: 1fr 385px;

        >div:first-child {
            margin-top: 42px;

            >div:first-child {
                padding: 50px 15px 50px 15px;
            }
        }

        aside {
            position: sticky;
            max-height: calc(100vh - 70px);
            padding-left: 20px;
            padding-top: 20px;
        }
    }

    --sectionpad: 48px 40px;

    #header {
        padding: 130px;
    }

    #header2 {
        >.h-stack {
            align-items: normal;

            >.v-stack {
                margin-left: auto;
            }
        }
    }

    [data-barba-namespace="search_results"] {
        .h-stack:nth-of-type(2) {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 40px;

            h3 {
                margin-bottom: 10px;
            }

            .inner-scroll {
                max-height: 557px;
                overflow: hidden auto;
            }
        }
    }

    --spotbg: rgba(8, 149, 69, 0.5);
    --spotbgh: rgb(8, 149, 69);
    --spotbd: rgba(30, 215, 96, 0.6);
    --spotbdh: rgb(30, 215, 96);
    --spotshwh: rgba(30, 215, 96, 0.6);

    --cloudbg: rgba(255, 49, 2, 0.5);
    --cloudbgh: rgb(255, 49, 2);
    --cloudbd: rgba(255, 118, 1, 0.6);
    --cloudbdh: rgb(255, 118, 1);
    --cloudshwh: rgba(255, 118, 1, 0.6);

    --grambg: rgba(126, 72, 192, 0.5);
    --grambgh: rgb(126, 72, 192);
    --grambd: rgba(77, 98, 211, 0.6);
    --grambdh: rgb(77, 98, 211);
    --gramshwh: rgba(77, 98, 211, 0.6);

    --tokbg: black;
    --tokbgh: black;
    --tokbd: rgb(254, 44, 85);
    --tokbdh: rgb(37, 244, 238);
    --tokshwh: rgba(37, 244, 238, 0.6);
}

@media (max-width: 2000px) {
    :root {
        /* --main: violet; */

        --px12: 12px;
        --px16: 16px;
        --px18: 18px;
        --px20: 20px;
        --px25: 25px;
        --px34: 34px;
        --px42: 42px;
        --px46: 46px;
        --px60: 60px;
        --px80: 80px;
        --px120: 120px;
        --px240: 240px;
        --px300: 300px;
    }
}

@media (max-width: 1300px) {
    :root {
        /* --main: red; */

        --px12: 12px;
        --px16: 16px;
        --px18: 16px;
        --px20: 18px;
        --px25: 20px;
        --px34: 25px;
        --px42: 30px;
        --px46: 40px;
        --px60: 50px;
        --px80: 70px;
        --px120: 80px;
        --px240: 200px;
        --px300: 250px;

        .front-grid {
            display: flex;
            scroll-behavior: smooth;
            overflow: auto;
        }

        #header {
            padding: 100px;
        }

        [data-barba-namespace="search_results"] {
            .h-stack:nth-of-type(2) {
                grid-template-columns: repeat(3, 1fr);
            }
        }
    }
}

@media (max-width: 1000px) {
    :root {
        --sectionpad: 48px 20px;

        #page {
            grid-template-areas:
                "header"
                "meta";
            grid-template-columns: 1fr;

            >div:first-child {
                grid-area: meta;
                margin-top: 20px;

                >div:first-child {
                    padding: 20px 15px;
                }
            }

            >div:last-child {
                grid-area: header;

                aside {
                    display: flex;
                    position: static;
                    max-height: none;
                    padding: 20 15;

                    >div:first-child {
                        margin-right: 50px;

                        img {
                            width: 300px;
                        }
                    }

                    >div:last-child {
                        .custom-textbg {
                            margin-top: 20px;
                        }

                        .inner-scroll {
                            margin-top: 20px;
                        }
                    }
                }
            }
        }

        [data-barba-namespace="search_results"] {
            .h-stack:nth-of-type(2) {
                grid-template-columns: repeat(2, 1fr);

                .inner-scroll {
                    max-height: 445px;
                    overflow: hidden auto;
                }
            }
        }

        .section {
            margin-bottom: 65px;
        }

        .cover-image {
            width: 400px;
        }

        .mobileheader {
            display: flex;
        }

        .desktopheader {
            display: none;
        }

        header {
            pointer-events: none;
        }

        header>.top *,
        header>.bot * {
            pointer-events: all;
        }

        header>.top {
            filter: drop-shadow(0 0 0.2rem black);
            margin-top: 80px;
            margin-left: 10px;
            position: fixed;
            z-index: 100;
        }

        header img {
            height: 50px;
        }

        header>.bot {
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
            width: 100%;
            bottom: 0px;
            position: fixed;
            z-index: 100;
            justify-content: space-evenly;
            pointer-events: none;
        }

        header>.bot>.menu-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding-bottom: 5px;
            pointer-events: auto;
        }

        .site-header {
            padding-left: 0;
            padding-right: 0;
        }

        .glass.mobileheader {
            align-items: center;
        }
    }
}

/* 
@media (max-width: 850px) {
    :root {
        --main: green; 
    }
}
*/

@media (max-width: 700px) {
    :root {
        --sectionpad: 48px 5px;

        #page {
            aside {
                >div:first-child {
                    margin-right: 10px;

                    img {
                        width: 150px;
                    }
                }

                >div:last-child {
                    .custom-textbg {
                        margin-top: 0;
                    }

                    .inner-scroll {
                        margin-top: 20px;

                        .artist-name {
                            font-size: 1em;
                        }

                        img {
                            width: 50px;
                        }
                    }
                }
            }
        }

        #header {
            padding: 80px;
        }

        #header2 {
            >.h-stack {
                flex-direction: column;

                >.v-stack {
                    margin-left: 0;
                }
            }
        }

        #stats .h-stack {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10;
        }

        /* --main: blue; */

        --px12: 12px;
        --px16: 16px;
        --px18: 16px;
        --px20: 18px;
        --px25: 20px;
        --px34: 25px;
        --px42: 28px;
        --px46: 30px;
        --px60: 40px;
        --px80: 60px;
        --px120: 70px;

        .cover-image {
            width: 300px;
        }

        [data-barba-namespace="search_results"] {
            .h-stack:nth-of-type(2) {
                grid-template-columns: repeat(1, 1fr);
                gap: 50px;
            }
        }
    }
}

/* Mobile */
@media (max-width: 580px) {
    :root {
        /* --main: orange; */

        /* Font sizes */
        --px34: 25px;
        --px42: 21px;
        --px46: 23px;
        --px60: 30px;
        --px80: 40px;
        --px120: 40px;
        --px240: 120px;
        --px300: 150px;

        .custom-scrollbar {
            display: none !important;
        }

        #header {
            padding: 60px;
        }

        #page {
            >div:last-child {
                aside {
                    >div:first-child {
                        margin-right: 20px;

                        img {
                            width: 200px;
                        }
                    }
                }
            }
        }
    }
}



/* ========== Responsive ========== */
.mobileheader {
    display: none;
}


/* ========== Home ========== */
#stats * {
    user-select: none;
    transition: all .2s;
}

#stats .glass:hover {
    border: 2px solid var(--btnbrh);
    background: var(--btnbgh);
    box-shadow: 3px 3px 10px inset var(--btnshwh),
        3px 3px 5px var(--btnshwh);
}

.section {
    padding: var(--sectionpad);
    position: relative;
    z-index: 0;
}

.glass-top#header {
    margin-top: 32px;
}

.glass-bottom#header2 {
    margin-bottom: 32px;
}

.user-card,
.title-card {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: row;
    transition: all .2s;
    border-radius: 10px;
    padding: 5px;

    div {
        flex: 1;
        min-width: 0;
    }

    &:hover {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        transform: scale(0.95);
    }

    .artist-name,
    .title {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1.5em;
        margin: 0;
    }

    .title {
        font-size: 1em;
    }

    .item-stats {
        text-align: start;
    }

    .tag {
        width: fit-content;
        padding: 0;
    }
}

#header2 {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
    padding: 30;

    #alts {
        margin: 5 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
    }

    #bio {
        flex: 1;
        min-width: 0;

        h1.artist-name {
            font-size: 4em;
            max-width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }
}

#byn {
    margin-top: -90;
}

#cover-image.pfp-design {
    height: var(--px300);
}

section {
    padding-top: max(80px, 2.5%);
}

#wrapper>div {
    margin-top: 30vh;
    text-align: center;
}

#changelogs {
    height: 65%;
    padding: 1% 0;
}

#changelogs .welcome {
    margin-bottom: 0;
}

#changelogs .welcome div,
#changelogs .welcome div .glass-bottom>* {
    max-width: 80%;
}

#changelogs .glass-bottom * {
    margin-bottom: 0.5em;
}

#search-overlay {
    .user-card:hover,
    .title-card:hover {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ========== Scrollbar ========== */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

.custom-scrollbar {
    position: fixed;
    top: 0;
    right: 0px;
    width: 15px;
    height: 100%;
    background: transparent;
    z-index: 9999;
}

.custom-scrollbar-thumb {
    position: absolute;
    right: 0;
    width: 15px;
    background: rgba(255, 255, 255, 0.2);
}

.custom-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.custom-scrollbar-thumb.dragging {
    background: rgba(255, 255, 255, 0.6);
}

/* Styled native scrollbar for inner scrollable panels —
   matches the visual style of the global custom scrollbar
   -------------------------------------------------
   -------------------------------------------------
   -------------------------------------------------
   -------------------------------------------------
   -------------------------------------------------
   -------------------------------------------------
   */
.inner-scroll {
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.inner-scroll::-webkit-scrollbar {
    width: 6px;
}

.inner-scroll::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
}

.inner-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    transition: background 0.2s;
}

.inner-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.inner-scroll::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.6);
}

/* ========== Header ========== */
header img {
    height: 55px;
    width: 55px;
}

.site-header h5 {
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.site-header #headermenu {
    margin-top: 20px;
    padding-left: 5px;
    transition: all .2s;
    anchor-name: --menu;
}

.site-header #headermenu * {
    margin-bottom: 0px;
}

#user-modal {
    position-anchor: --menu;
    position: fixed;
    left: anchor(right);
    align-self: first baseline;
    margin-top: 80px;
    translate: -100%;
    animation: fadeIn 0.3s ease;
    transition: all .2s;
}

#home-icon {
    height: 55px;
    width: 55px;
    margin-top: -30px;
}

#search-input {
    position: relative;
    pointer-events: auto;
    padding: 10px;
    color: white;
    text-shadow: 1px 1px 2px black;
    font-size: var(--px25);
    font-family: 'Unifont Ex Mono', sans-serif;
    transition: all .2s;
}

#search-input::placeholder {
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.site-header {
    position: fixed;
    top: 0;
    justify-content: space-between;
    right: 0px;
    left: 0px;
    padding-top: 5px;
    padding-left: 30px;
    padding-right: 30px;
    background: transparent;
    z-index: 1001;
    pointer-events: none;
    user-select: none;
}

#search-overlay {
    position: absolute;
    top: 100%;
    width: 400px;
    max-height: 75vh;
    overflow-y: auto;
    right: 2%;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

#search-overlay h4 {
    margin: 20px 0px;
}

header * {
    user-select: auto;
    pointer-events: auto;
}

.glass-input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    margin: 10px 0px;
    color: white;
    text-shadow: 1px 1px 2px black;
    font-size: var(--px25);
    font-family: 'Unifont Ex Mono', sans-serif;
    transition: box-shadow .2s, background-color .2s, border .2s;
}

select:focus,
textarea:focus {
    outline: none;
}

/* ========== Text size ========== */
@keyframes float {
    from {
        translate: 0;
    }

    to {
        translate: 0 -20%;
    }
}

#wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
}

#wrapper a {
    position: absolute;
    top: 90vh;
}

#wrapper svg {
    opacity: 0.5;
    transition: all .2s;
    animation: float 2s ease-in-out infinite alternate;
}

#wrapper svg:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

#asharchives {
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: none;
    filter: drop-shadow(3px 3px 10px black);
    font-family: "Better VCR", sans-serif;
    background: linear-gradient(0deg, var(--glassbgh), var(--glassborderh), var(--main), var(--glassborderh), var(--main2) 110%),
        radial-gradient(circle, rgba(0, 0, 0, 0.1) 50%, transparent 1%) 0 0 / 3px 3px repeat;
    background-blend-mode: overlay;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

#asharchives {
    font-size: var(--px120);
}

h1 {
    font-size: var(--px60);
}

h2 {
    font-size: var(--px46);
}

h3 {
    font-size: var(--px42);
}

h4 {
    font-size: var(--px34);
}

h5 {
    font-size: var(--px18);
}

p {
    font-size: var(--px16);
}

h6 {
    font-size: var(--px12);
}


/* ========== Common assets ========== */
.glass,
.glass-bottom,
.glass-top,
.glass-btn,
.glass-input {
    padding: 10px;
    user-select: none;
}

.glass.b,
.glass-bottom b,
.glass-top b,
.glass-btn,
.glass-input {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.glass,
.glass-bottom,
.glass-input {
    background-color: var(--glassbg);
    border-radius: 10px;
    box-shadow: 3px 3px 10px inset var(--glassshadow),
        3px 3px 5px var(--glassshadow);
    border: 2px solid var(--glassborder);
}

.glass-top {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px 10px 0 0;
    box-shadow: 3px 3px 10px inset var(--glassshadow);
    border: 2px solid var(--glassborder);
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.26vw;
}

#toggle-cover,
.glass-btn {
    background-color: var(--btnbg);
    border-radius: 10px;
    box-shadow: 3px 3px 5px inset var(--btnshw),
        3px 3px 5px var(--btnshw);
    border: 2px solid var(--btnbr);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transition: all .2s;
}

.glass-btn {
    height: auto;
    width: auto;
}

/* ══════════════════════════════════════════════════════
   .glass-ray-btn  — Glassmorphism button with a gradient
   border that simulates a light ray hitting the glass
   edge (bright flash top-left → purple/teal bottom-right).

   Technique: the ::before pseudo-element fills the entire
   button with a gradient, then mask-composite: exclude
   "punches out" the interior, leaving only a 2px border
   ring that shows the gradient colours. This is the only
   CSS-native way to make a true gradient border.
   ══════════════════════════════════════════════════════ */
.glass-ray-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: auto;
    width: auto;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background-color: var(--btnbg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow:
        3px 3px 5px inset var(--btnshw),
        3px 3px 5px var(--btnshw);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
    isolation: isolate;
}

/* Gradient border — the "light ray" on the glass edge.
   Top-left corner = bright white flash (where light hits).
   Bottom-right = purple/teal refraction (shadow side). */
.glass-ray-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    /* = border thickness */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.80) 0%,
            rgba(255, 255, 255, 0.22) 22%,
            rgba(255, 255, 255, 0.04) 100%);
    /* Hollow the interior so only the 2px border ring is visible */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.2s;
}

/* Subtle inner sheen — frosted glass light wash from top */
.glass-ray-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(170deg,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 52%);
    pointer-events: none;
}

/* Hover — brighter ray + glow */
.glass-ray-btn:hover {
    background-color: var(--btnbgh);
    box-shadow:
        3px 3px 5px inset var(--btnshwh),
        3px 3px 5px var(--btnshwh);
}

.glass-ray-btn:hover::before {
    background: linear-gradient(135deg,
            var(--btnbrh) 0%,
            rgba(255, 255, 255, 0.22) 22%,
            rgba(255, 255, 255, 0.04) 100%);
}

.glass-ray-btn:active {
    transform: translateY(0);
    box-shadow:
        3px 3px 5px inset var(--btnshw),
        1px 1px 3px var(--btnshw);
}

.glass-bottom {
    border-radius: 0 0 10px 10px;
    border: 0 0 1px 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== Common hover/focus ========== */
.glass-btn:hover,
.glass-input:hover,
.glass-input:focus,
#search-input:hover,
#search-input:focus,
#headermenu:hover,
#user-modal:hover,
#toggle-cover:hover {
    border: 2px solid var(--btnbrh);
    background: var(--btnbgh);
    box-shadow: 3px 3px 5px inset var(--btnshwh),
        3px 3px 5px var(--btnshwh);
}

a.glass-btn:focus {
    outline: none;
}

.glass-custom:hover {
    box-shadow: none;
}

.item-stats {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-align: center;
}

.pfp-design,
.user-card img {
    border-radius: 1000px;
    box-shadow: 1px 1px 10px black;
    pointer-events: none;
}

.text-clip {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 350px;
}

.text-multiline-clip {
    max-width: var(--px240);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.2em;
}

.title {
    font-family: "Better VCR", sans-serif;
    font-weight: 600;
    color: white;
    overflow: hidden;
    margin: 0px;
    background: transparent;
    -webkit-text-stroke: 0px transparent;
}

.inner-error-message {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid red;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0px;
    display: none;

    p {
        color: #ff6b6b;
        margin: 0;
    }
}

/* ========== Tags ========== */
.tag {
    border-radius: 10px;
    box-shadow: 1px 1px 10px black;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    width: auto;

    h6 {
        margin: 3px;
        color: white;
    }

    h5 {
        margin: 0;
    }
}

.tag-Deleted {
    background: rgba(255, 0, 0, 0.7);
    border: 1px solid rgba(255, 0, 0, 0.8);
}

.tag-Unreleased {
    background: rgba(161, 0, 167, 0.7);
    border: 1px solid rgba(161, 0, 167, 0.8);
}

.tag-Snippet {
    background: rgba(10, 151, 113, 0.7);
    border: 1px solid rgba(10, 151, 113, 0.8);
}

.tag-Upcoming {
    background: rgba(255, 123, 0, 0.7);
    border: 1px solid rgba(255, 123, 0, 0.8);
}

.album-card .tag {
    border-radius: 10px 10px 0px 0px;
    right: 15px;
    left: 15px;
    z-index: 2;
    position: absolute;
}

.h-stack .tag {
    padding: 5px;
}

/* ========== Grid ========== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 10px;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, auto));
    gap: 0;
    margin: 20px 0;
    justify-content: start;

    &#artists-index {
        grid-template-columns: repeat(auto-fit, minmax(300px, max-content));
        gap: 10px;

        .album-card-noimg {
            max-width: none;
        }
    }
}

.front-grid {
    max-height: calc(2 * 280px);
    overflow: hidden;
    grid-auto-rows: 1fr;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, auto));
    gap: 0;
    margin: 24 0 64 0;
    justify-content: start;
}

.album-card,
.album-card-noimg {
    position: relative;
    background: rgba(255, 255, 255, 0);
    box-shadow: 2px 2px 6px transparent;
    transition: all .2s;
    border-radius: 10px;
    min-height: 250px;
    max-width: 170px;
    padding: 15px;
    user-select: none;

    .title {
        line-height: 1.3em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-width: 95%;
    }

    .item-stats {
        max-width: 95%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.album-card-artist {
    .artist-name {
        line-height: 1.3em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-width: 95%;
    }
}

.album-card-noimg {
    min-height: 75px;
}

.album-card:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    padding: 15px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transform: scale(0.95);
}

.album-card img {
    width: 170px;
    height: auto;
    border-radius: 8px;
    pointer-events: none;
    box-shadow: 0px 0px 10px black;
    margin-bottom: 5px;
    display: block;
}

.album-card-artist {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0);
    transition: all .2s;
    border-radius: 10px;
    min-height: 250px;
    max-width: 170px;
    padding: 15px;
    user-select: none;
}

.album-card-artist:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    padding: 15px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transform: scale(0.95);
}

.album-card-artist img {
    width: 170px;
    height: auto;
    pointer-events: none;
    border-radius: 1000px;
    box-shadow: 1px 1px 20px black;
}

.album-card-artist .artist-name,
.front-grid .item-stats,
#header h1,
.main-orientation .artist-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    overflow-wrap: anywhere;
}

#header h1,
.main-orientation .artist-name {
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.album-card-artist .item-stats {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, auto));
    gap: 20px;
    justify-content: center;
}

.list-card {
    width: 95% !important;
    user-select: none;
}

.list-card img {
    border-radius: 10px;
    pointer-events: none;
    box-shadow: 0px 0px 10px black;
    margin: 0px;
}

.list-card .artist-name {
    color: rgba(255, 255, 255, 0.6);
}

.list-card.h-stack {
    align-items: normal;
}

/* ========== Welcome Demi-Header ========== */
.welcome {
    align-items: center;
    gap: 0;
    margin-bottom: 60px;

    * {
        user-select: text;
        margin: 0;
    }

    .h-stack {

        .glass-btn,
        .glass {
            align-items: center;
            justify-content: center;
        }
    }
}

/* ========== Title page ========== */
.cover-image {
    width: 80%;
    /* min-height: 250px;
    min-width: 250px; */
    border-radius: 10px;
    box-shadow: 0px 0px 20px black;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.overlay-background {
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.5);
}

.overlay-image {
    height: 80%;
    border-radius: 10px;
    box-shadow: 0px 0px 30px black;
    z-index: 1000;
    animation: fadeIn 0.5s ease;
}

#toggle-cover {
    padding: 5px;

    p {
        font-size: var(--px25);
        text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.5);
        color: white;
    }
}

.artist-name {
    font-size: 2em;
}

#page {
    min-height: 650px;

    >div:first-child {
        >div:first-child {
            h1 {
                word-break: break-all;
            }
        }

        >.grid-container {
            gap: 20px;
        }
    }

    >div:last-child {
        position: relative;

        aside {
            top: 70px;
            overflow-y: auto;

            >div:last-child {
                margin-top: 10px;

                >div {
                    max-height: 400px;
                    overflow-y: auto;
                    margin-top: 10px;
                }
            }
        }
    }

    .grid-container {

        .glass,
        .glass-bottom {

            p,
            h5 {
                user-select: text;
            }

            h4 {
                margin-bottom: 10px;
            }
        }
    }

    .artist-name {
        font-size: 1.5em;
        margin: 0;
        color: white;
    }
}

#tracklist,
#alts {
    a {
        max-width: 150px;
    }

    .user-card {
        img {
            height: 30px;
        }

        p {
            font-size: 20px;
        }
    }
}

.glass-custom {
    transition: all .2s;

    :hover {
        transform: scale(1.05);
    }

    &.music-player:hover {
        transform: none;
    }
}

.lyrics {
    user-select: text;
}

.lyrics son,
.glass son {
    font-family: "Better VCR", sans-serif;
    font-weight: 600;
    color: white;
    font-size: var(--px16);
}

.custom-textbg {
    margin: 0px;
}

.music-player {
    pointer-events: all;
    grid-column: 1 / -1;
}

/* ========== Artist page ========== */
.spot,
.cloud,
.gram,
.tok {
    height: auto;
    width: auto;
    border-radius: 10px;
    box-shadow: 1px 1px 10px black;
    padding: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    user-select: none;
    transition: all .2s;
}

.spot {
    background: var(--spotbg);
    border: 2px solid var(--spotbd);
}

.spot:hover {
    background: var(--spotbgh);
    border: 2px solid var(--spotbdh);
    box-shadow: 1px 1px 10px var(--spotshwh);
}

.cloud {
    background: var(--cloudbg);
    border: 2px solid var(--cloudbd);
}

.cloud:hover {
    background: var(--cloudbgh);
    border: 2px solid var(--cloudbdh);
    box-shadow: 1px 1px 10px var(--cloudshwh);
}

.gram {
    background: var(--grambg);
    border: 2px solid var(--grambd);
}

.gram:hover {
    background: var(--grambgh);
    border: 2px solid var(--grambdh);
    box-shadow: 1px 1px 10px var(--gramshwh);
}

.tok {
    background: var(--tokbg);
    border: 2px solid var(--tokbd);
}

.tok:hover {
    background: var(--tokbgh);
    border: 2px solid var(--tokbdh);
    box-shadow: 1px 1px 10px var(--tokshwh);
}

/* ========== File manager - Overlay ========== */
.modal,
.modal-settings {
    left: 0;
    top: 0;
    width: 100%;
    transition: all .2s;
}

.modal-settings {
    display: block;
}

.modal {
    height: 100%;
    position: fixed;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    transition: all .2s;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: 30vh auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    position: relative;
    transition: all .2s;
    max-height: 50vh;
}

#lyrics-modal,
#bio-modal {
    overflow-y: scroll;

    .modal-content {
        margin: 10vh auto;
        max-width: 1000px;
        max-height: none;
    }
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ccc;
}

.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    margin: 20px 0;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.drop-zone.dragover {
    border-color: rgb(99, 70, 222);
    background-color: rgba(99, 70, 222, 0.1);
}

/* ========== File manager - Click droit ========== */
.context-menu {
    position: absolute;
    background: #1a1a1a;
    border: 2px solid #333;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 5px 0;
    display: none;
    z-index: 9999;
    width: 250px;
    transition: all .2s;
}

.context-menu .item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all .2s;
}

.context-menu .item img {
    height: 30px;
}

.context-menu .item p {
    margin: 0;
}

.context-menu .danger p {
    color: red;
}

.context-menu .item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========== File manager - File grid ========== */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(122px, max-content));
    gap: 12px;
    justify-content: start;
}

.file-icon {
    width: 120px;
    height: 120px;
    pointer-events: none;
    border-radius: 10px;
}

.files-grid .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0);
    text-align: center;
}

.files-grid .item p {
    margin-top: 5px;
    color: white;
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* ========== File manager - Selection ========== */
.selectable {
    position: relative;
    margin: 2px;
}

.selectable.selected {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin: 0px;
}

.item-checkbox {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: all .2s ease;
}

.selectable:hover .item-checkbox,
.selectable.selected .item-checkbox {
    opacity: 1;
    pointer-events: auto;
}

.action-btn {
    display: none;
}

.action-btn.visible {
    display: inline-block;
}

.item-link {
    display: block;
    color: inherit;
    padding: 1px;
}

/* ========== Profile page ========== */

.inner-step-div {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
}

form.inner-step-div {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.inner-step-div p {
    margin: 10px 0;
}