: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(15, 209, 161, 0.2);
    --btnbgh: rgba(15, 209, 161, 0.1);
    --btnbr: rgba(15, 209, 161, 0.1);
    --btnbrh: rgba(15, 209, 161, 0.8);
    --btnshw: rgba(15, 209, 161, 0.05);
    --btnshwh: rgba(15, 209, 161, 0.4);

    --px12: clamp(9px, 0.625vw, 16px);
    --px16: clamp(10px, 0.833vw, 21px);
    --px18: clamp(12px, 0.9375vw, 24px);
    --px20: clamp(13px, 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);
    --px120: clamp(80px, 6.25vw, 160px);
    --px240: clamp(160px, 12.5vw, 320px);
}

html {
    scroll-behavior: smooth;
}

html.scrollbar-dragging {
    scroll-behavior: auto;
}

* {
    scroll-margin-top: 5vh;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 5% 15%, var(--bgtwo) 0%, rgba(18, 18, 18, 0) 30%),
        radial-gradient(circle at 75% 75%, var(--bgone) 0%, rgba(18, 18, 18, 0) 40%),
        #121212;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 20%, transparent 1%) 0 0 / 5px 5px repeat;
    mix-blend-mode: overlay;
    z-index: -1;
}

/* ========== Font ========== */
@font-face {
    font-family: "Unifont Ex Mono";
    src:
        local("Unifont Ex Mono"),
        url("font/UnifontExMono.2a405b0c4a6c.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: "Better VCR";
    src:
        local("Better VCR"),
        url("font/Better VCR.b534438ee799.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: "Alkhemikal";
    src:
        local("Alkhemikal"),
        url("font/Alkhemikal.8cc34a03fa46.woff") format("woff");
    font-display: swap;
}

/* ========== Loading ========== */
.hidden {
    display: none !important;
}

#loader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    transition: opacity .5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.spinner {
    border: 12px solid #353535;
    border-top: 12px solid #6346de;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== Links ========== */
a {
    text-decoration: none;
    color: white;
    cursor: pointer;
    pointer-events: auto;
    transition: all .2s;
}

#headermenu a:hover,
#user-modal a:hover,
footer a:hover,
a:hover.ahover,
.ahover a:hover {
    text-decoration: underline solid currentColor 2px;
}

h2>a:hover {
    text-decoration: none;
    text-shadow: 0 0 10px var(--btnshwh);
    color: var(--main2);
}

p,
h6,
h5,
textarea {
    margin-top: 0px;
    font-family: "Unifont Ex Mono", sans-serif;
    font-weight: 400;
    margin-bottom: 3px;
    color: var(--para);
}

textarea {
    background: transparent;
    resize: vertical;
    width: 100%;
    height: 100%;
    border: none;
}

button,
select {
    pointer-events: auto;
    cursor: pointer;
}

button * {
    user-select: none !important;
    margin: 0 !important;
}

button p,
button h5,
button h6 {
    font-weight: bold;
}

.add-zone {
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    height: 76px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-zone:hover {
    border-color: rgb(21, 153, 21);
    background-color: rgba(21, 153, 21, 0.1);
}

h1,
h2,
h3,
h4 {
    font-family: "Unifont Ex Mono", sans-serif;
    margin: 0;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.glass art {
    font-size: var(--px25);
    font-family: "Alkhemikal", sans-serif;
    color: white;
}

.lyrics p,
#bio p,
.lyrics textarea {
    font-size: var(--px20);
    color: whitesmoke;
}

.lyrics art {
    font-size: var(--px25);
    font-family: "Alkhemikal", sans-serif;
    color: white;
}

.fixe .artist-name {
    font-size: var(--px25);
    margin: 0;
    color: white;
}

#userToggle .artist-name {
    font-size: 24px;
}

select {
    font-family: "Unifont Ex Mono", sans-serif;
    font-size: 18px;
}

.artist-name,
#bio h3 {
    margin-bottom: 5px;
    font-family: "Alkhemikal", sans-serif;
    color: white;
    -webkit-text-stroke: none;
    text-shadow: 1px 1px 10px black;
}

/* ========== Text format ========== */
option {
    color: black;
}

input {
    color: white;
}

input:focus {
    outline: none;
}

.glass-top p {
    margin: 0;
}

.album-card .title {
    text-align: center;
}

.highlight {
    color: var(--main2);
    text-shadow: 0.05em 0.05em 0.1em var(--btnshwh);
}

.max-width {
    max-width: 2560px;
    margin: auto;
}

.h-stack {
    display: flex;
    flex-direction: row;
    gap: 0.52vw;
    min-width: 0;
    align-items: center;
}

.v-stack,
.welcome .h-stack .glass-btn {
    display: flex;
    flex-direction: column;
    gap: 0.92vh;
    min-width: 0;
}

hr {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.12);
    border-width: 1px 0 0 0;
    margin-bottom: 10px;
    margin-top: 10px;
}

form {
    margin: 0px;
}

.new {
    background-color: red;
    color: white;
    font-family: "Better VCR", sans-serif;
    font-size: 0.5em;
}

/* ========== Extras ========== */
div[mx-name="view-image-info"] {
    display: none !important;
}

#transition-skeleton {
    position: fixed;
    inset: 0;
    z-index: 9998;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 12, 12, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
}

.transition-loader-inner {
    width: min(320px, 86vw);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.transition-progress-percent {
    font-family: "Better VCR", sans-serif;
    font-size: 34px;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(99, 70, 222, 0.6);
}

.transition-progress {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.transition-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(99, 70, 222, 0.2) 0%, var(--main) 50%, rgba(15, 209, 161, 0.2) 100%);
    transition: width 0.14s linear;
}

/* ===== Profile ===== */
#hidemdp {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
}