:root {
    --avatar-size: 130px;
    /*--cursor: url("media/cursor.png"), auto;*/
    --cursor: cursor;
    --pointer: url("media/pointer.png"), auto;
}

@font-face {
    font-family: "Cocogoose Pro";
    src: url('fonts/Cocogoose Pro.ttf') format('truetype');
}

@font-face {
    font-family: "WhatnotW00-Regular";
    src: url('fonts/WhatnotW00-Regular.ttf') format('truetype');
}

html {
    background-color: black;
    cursor: var(--cursor);
}

.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

.cursor-trail {
    position: fixed;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 104, 150, 0.25);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 99999;
    animation: trail-fade 0.4s linear forwards;
}

@keyframes trail-fade {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.2);
    }
}

.spark {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 100000;
    opacity: 0.85;
    will-change: transform, opacity;
    animation: spark-fall 0.4s linear forwards;
}

@keyframes spark-fall {
    to {
        transform: translateY(32px) scale(0.7) rotate(30deg);
        opacity: 0;
    }
}

#overlay-screen {
    position: fixed;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s cubic-bezier(0.7, 0.2, 0.2, 0.8), visibility 0.5s cubic-bezier(0.7, 0.2, 0.2, 0.8);
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(7px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.start-message {
    color: #fff;
    font-size: 2.5rem;
    text-align: center;
    font-family: "Cocogoose Pro", sans-serif;
    background: rgba(0, 104, 150, 0.25);
    padding: 2rem 4rem;
    border-radius: 2rem;
    box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.5);
    user-select: none;
    cursor: var(--pointer);
}

.background {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    background-color: black;
    z-index: -1;
}

.notice {
    font-family: "Cocogoose Pro", sans-serif;
    font-size: 1rem;
    color: white;
    right: 1rem;
    bottom: 0;
    position: fixed;
    transition: opacity 0.5s cubic-bezier(0.7, 0.2, 0.2, 0.8), visibility 0.5s cubic-bezier(0.7, 0.2, 0.2, 0.8);
    opacity: 1;
    visibility: visible;
}

.card {
    position: fixed;
    top: 50%;
    left: 50%;
    width: clamp(600px, 30vw, 90vw);
    height: clamp(300px, 40vh, 400px);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    will-change: transform;
    transition: transform 0.7s cubic-bezier(0.03, 0.98, 0.52, 0.99), opacity 1s ease, visibility 1s ease;
    transform: perspective(1000px) translate(-50%, -50%);
}

.song-title {
    font-family: "WhatnotW00-Regular", sans-serif;
    font-size: 1.5rem;
    justify-content: center;
    display: flex;
}

.content {
    padding: 40px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    color: white;
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s cubic-bezier(0.7, 0.2, 0.2, 0.8), visibility 0.5s cubic-bezier(0.7, 0.2, 0.2, 0.8);
}

.profile-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /*gap: 2rem;*/
}

.avatar {
    display: none;
    border-radius: 50%;
    width: var(--avatar-size);
    height: var(--avatar-size);
    min-width: var(--avatar-size);
    opacity: 0.7;
}

.info {
    width: 100%;
    margin: 0 auto;
    display: block;
    align-self: stretch;
    align-items: center;
    text-align: center;
    font-size: 2rem;
    font-family: "Cocogoose Pro", sans-serif;
    /*border: 2px solid red;*/
}

.socials {
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.socials-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    margin: 0.2rem 0;
    text-decoration: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.10) 0%, rgba(0, 0, 0, 0.15) 100%);
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 90px;
    max-width: 140px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s, font-size 0.2s, filter 0.3s;
}

.socials-btn.github:hover {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.22) 0%, rgba(51, 51, 51, 0.22) 100%);
    box-shadow: 0 0 16px 0 rgb(51, 51, 51), 0 4px 24px 0 rgba(0, 0, 0, 0.28);
    filter: drop-shadow(0 0 8px rgb(51, 51, 51));
    transform: translateY(-2px) scale(1.07);
    cursor: var(--pointer);
    color: #e0e0e0;
}

.socials-btn.website:hover {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.22) 0%, rgba(0, 104, 150, 0.22) 100%);
    box-shadow: 0 0 16px 0 #00bfff88, 0 4px 24px 0 rgba(0, 0, 0, 0.28);
    filter: drop-shadow(0 0 8px #00bfff);
    transform: translateY(-2px) scale(1.07);
    cursor: var(--pointer);
    color: #e0e0e0;
}

.socials-btn.discord:hover {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.22) 0%, rgba(114, 137, 218, 0.22) 100%);
    box-shadow: 0 0 16px 0 #7289da, 0 4px 24px 0 rgba(0, 0, 0, 0.28);
    filter: drop-shadow(0 0 8px #7289da);
    transform: translateY(-2px) scale(1.07);
    cursor: var(--pointer);
    color: #e0e0e0;
}

.socials-btn svg {
    width: 1.7em;
    height: 1.7em;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.12));
    transition: filter 0.2s;
}

.socials-btn:hover svg {
    filter: drop-shadow(0 0 8px #fff);
}

.socials-text {
    letter-spacing: 0.05em;
    font-family: "Cocogoose Pro", sans-serif;
}

.media {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.media-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.media img {
    width: 22%;
    height: auto;
    border-radius: 1rem;
}

.artist {
    display: none;
}

.progress-bar {
    margin-top: 1rem;
    width: 100%;
    height: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    cursor: var(--pointer);
    transition: box-shadow 0.2s;
}

.progress-bar:hover {
    box-shadow: 0 0 10px #ffffff;
}

.progress-bar__fill {
    height: 100%;
    width: 0;
    background: #ffffff;
    border-radius: 1rem;
    transition: width 0.3s;
}

.controls {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.volume-bar-wrapper {
    position: absolute;
    width: 220px;
    height: 48px;
    overflow: hidden;
    z-index: 2;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: transparent;
    border-radius: 1.2rem 0 0 1.2rem;
    right: 2rem;
    transition: opacity 0.4s;
}

.volume-bar-wrapper.active {
    opacity: 1;
}

.volume-bar {
    width: 0;
    height: 48px;
    display: flex;
    align-items: center;
    border-radius: 1.2rem 0 0 1.2rem;
    transition: width 0.42s cubic-bezier(.4, 2, .6, 1), opacity 0.4s;
    overflow: hidden;
    margin-left: auto;
}

.volume-bar-wrapper.active .volume-bar {
    width: 220px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: clamp(200px, 350px, 350px);
    height: 6px;
    background: transparent;
    border-radius: 3px;
    cursor: var(--pointer);
    accent-color: #ffffff;
    transition: opacity 0.4s, box-shadow 0.3s;
}

.volume-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #fff 0%, #fff 0%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    cursor: var(--pointer);
    margin-top: -6px;
}

.volume-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #ffffff;
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    cursor: var(--pointer);
}

.volume-slider::-ms-fill-lower,
.volume-slider::-ms-fill-upper {
    background: #ffffff;
    border-radius: 3px;
}

.volume-slider::-ms-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    cursor: var(--pointer);
}

.volume-slider:focus {
    outline: none;
}

.volume-slider::-ms-tooltip {
    display: none;
}

.controls-main {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    transition: opacity 0.2s;
    gap: 2rem;
}

.controls-main.hidden {
    opacity: 0;
}

.controls-volume {
    margin-left: auto;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: var(--pointer);
    transition: transform 0.22s cubic-bezier(.4, 2, .6, 1), filter 0.2s;
}

.icon-btn:hover {
    transform: scale(1.12);
    filter: drop-shadow(0 0 8px #ffffff);
}
