: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);

    --cbackground: rgba(255, 255, 255, .05);
    --cblur: blur(4px);
    --cscale: scale(.95);

    /* --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);

    --cloudbackground: rgba(255, 49, 2, 0.2);
    --cloudtext: rgb(255, 118, 1);

    --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;

            >.top {
                filter: drop-shadow(0 0 0.2rem black);
                margin-top: 80px;
                margin-left: 10px;
                position: fixed;
                z-index: 100;
            }

            >.top *,
            >.bot * {
                pointer-events: all;
            }

            img {
                height: 50px;
            }

            >.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;

                >.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 ========== */
[data-barba-namespace="home"] {
    .max-width>.h-stack {
        align-items: end;

        >a {
            margin-left: auto;
        }
    }
}

#stats * {
    transition: all .2s;
}

#stats .glass:hover {
    border: 2px solid var(--btnbrh);
    background: var(--btnbgh);
}

.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: var(--cbackground);
        backdrop-filter: var(--cblur);
        -webkit-backdrop-filter: var(--cblur);
        transform: var(--cscale);
    }

    .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;
    }
}

.title-card img {
    border-radius: 10px;
}

#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 {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;

    display: grid;
    grid-template-columns: 1fr 0.7fr 1fr;
    align-items: center;

    padding: 8px 30px;
    background: transparent;
    z-index: 1001;
    pointer-events: none;

    h5 {
        font-weight: bold;
        color: white;
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    }

    .left {
        justify-self: start;

        img {
            height: 55px;
            width: 55px;
            margin-top: -30px;
            transition: all .1s;
            &:active {
                transform: scale(0.85);
            }
        }
    }

    .center {
        justify-self: center;
    }

    .right {
        justify-self: end;

        img {
            height: 30px;
            width: 30px;
            border-radius: 999px;
        }
    }

    #headermenu {
        padding-left: 5px;
        transition: all .2s;
        anchor-name: --menu;

        * {
            margin-bottom: 0px;
        }
    }

    * {
        pointer-events: auto;
    }
}

#user-modal {
    position: fixed;
    position-anchor: --menu;
    top: anchor(bottom);
    right: anchor(right);

    margin-top: 5px;
    max-width: anchor-size(width);
    animation: fadeIn 0.3s ease;
    transition: all .2s;
}

#search-input {
    anchor-name: --search-bar;
    width: 100%;
}

#search-overlay {
    position: fixed;
    position-anchor: --search-bar;
    top: anchor(bottom);
    left: anchor(left);
    width: anchor-size(width);

    margin-top: 5px;
    animation: fadeIn 0.3s ease;
    max-height: 75vh;
    overflow-y: auto;
    padding: 5px;
    background-color: rgba(0, 0, 0, .3);

    h4 {
        margin: 20px 0px;
    }

    .grid-container {
        grid-template-columns: 100%;
        .text-clip {
            max-width: 100%;
        }
    }
}

.cr {
    color: var(--main);
    text-shadow: 0 0 10px var(--main);
    span {
        font-size: .9em;
        font-weight: 400;
    }
}

input,
select {
    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,
button,
a[type="button"],
.file-button,
input,
select {
    padding: 10px;
}

.glass.b,
.glass-bottom b,
.glass-top b,
button,
a[type="button"],
.file-button,
input,
select {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    button,
    a[type="button"],
    .file-button {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.glass,
.glass-bottom,
input,
select {
    background-color: var(--glassbg);
    border-radius: 10px;
    border: 2px solid var(--glassborder);
}

.glass-top {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px 10px 0 0;
    border: 2px solid var(--glassborder);
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.26vw;
}

button,
a[type="button"],
.file-button {
    background-color: rgba(255, 255, 255, .02);
    border-radius: 10px;
    border: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .2);
    height: auto;
    width: auto;
    user-select: none;
    transition: all .2s;

    *:not(.cr, .cr span),
    p:not(.cr, .cr span) {
        color: white;
        transition: all .2s;
        margin: 0;
        text-align: center;
    }

    &.add *:not(.cr, .cr span),
    &.stats h3 {
        color: var(--main2);
        text-shadow: 0.05em 0.05em 0.1em var(--btnshwh);
    }

    &.cloud *:not(.cr, .cr span) {
        color: var(--cloudtext);
    }

    &.red {
        background-color: rgba(255, 0, 0, 0.1);

        *:not(.cr, .cr span) {
            color: red;
        }
    }

    &:hover {
        transform: var(--cscale);
        background-color: var(--cbackground);

        &.cloud {
            background-color: var(--cloudbackground);
        }

        &.add {
            background-color: var(--btnbgh);
        }

        &.red {
            background-color: rgba(255, 0, 0, 0.2);
        }
    }
}

.glass-bottom {
    border-radius: 0 0 10px 10px;
    border: 0 0 1px 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== Common hover/focus ========== */
input:hover,
input:focus,
select:hover,
#search-input:hover,
#search-input:focus,
.site-header>div:hover,
#user-modal:hover {
    border: 2px solid var(--btnbrh);
    background: var(--btnbgh);
}

.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;
    }

    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 {
    .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,
.album-card-artist {
    &:hover {
        background: var(--cbackground);
        box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
        padding: 15px;
        backdrop-filter: var(--cblur);
        -webkit-backdrop-filter: var(--cblur);
        transform: var(--cscale);
    }
}

.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;

    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;

    * {
        margin: 0;
    }

    .h-stack {

        button,
        .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;
}

.overlay.closing {
    animation: fadeOut 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.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;
}

.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,
.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);
    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);
}

.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;

    button,
    a[type="button"] {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.modal.closing {
    animation: fadeOut 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,
#edit-modal,
#file-picker-modal {
    overflow-y: auto;

    .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;
}