* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

body {
    font-family: Arial, sans-serif;

    background: #050506;
    color: white;
}


/* ==================================================
   APP
================================================== */

.visualizer-app {
    position: relative;

    width: 100vw;
    height: 100vh;

    overflow: hidden;

    background: #050506;
}


/* ==================================================
   CANVAS
================================================== */

#visualizer {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;
}


/* ==================================================
   TOP BAR
================================================== */

.top-bar {
    position: absolute;

    left: 0;
    right: 0;
    top: 0;

    height: 80px;

    padding: 0 35px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;

    z-index: 10;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.55),
            transparent
        );
}


/* ==================================================
   LOGO
================================================== */

.logo {
    flex-shrink: 0;

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 3px;

    color: rgba(255,255,255,0.75);
}


/* ==================================================
   FILNAVN
================================================== */

.track-name {
    max-width: 50vw;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-size: 12px;

    color: rgba(255,255,255,0.55);
}


/* ==================================================
   STARTSKÆRM
================================================== */

.start-screen {
    position: absolute;

    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 20;

    background:
        radial-gradient(
            circle at center,
            #17171c 0%,
            #08080a 50%,
            #030304 100%
        );

    transition:
        opacity 0.6s,
        visibility 0.6s;
}

.start-screen.hidden {
    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


/* ==================================================
   START CONTENT
================================================== */

.start-content {
    width: min(600px, 90%);

    text-align: center;
}

.start-label {
    margin-bottom: 15px;

    font-size: 10px;
    font-weight: bold;

    letter-spacing: 5px;

    color: #66666f;
}

.start-content h1 {
    margin: 0;

    font-size: clamp(70px, 10vw, 130px);

    line-height: 0.75;

    letter-spacing: -8px;

    text-transform: uppercase;
}

.start-content p {
    max-width: 420px;

    margin:
        35px
        auto
        30px;

    font-size: 14px;
    line-height: 1.7;

    color: #777780;
}


/* ==================================================
   UPLOAD
================================================== */

.upload-button {
    min-width: 220px;

    padding: 17px 25px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    gap: 13px;

    border: 1px solid #55555e;

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 2px;

    cursor: pointer;

    background: rgba(255,255,255,0.03);

    transition:
        background 0.2s,
        border-color 0.2s;
}

.upload-button:hover {
    background: rgba(255,255,255,0.08);

    border-color: #9999a2;
}

.upload-plus {
    font-size: 20px;

    font-weight: normal;
}

.drop-text {
    margin-top: 13px;

    font-size: 9px;

    letter-spacing: 1px;

    color: #48484f;
}


/* ==================================================
   CONTROLS
================================================== */

.controls {
    position: absolute;

    left: 50%;
    bottom: 25px;

    transform: translateX(-50%);

    width: min(1100px, calc(100% - 50px));

    min-height: 72px;

    padding: 12px 16px;

    display: flex;
    align-items: center;

    gap: 16px;

    z-index: 15;

    background: rgba(12,12,15,0.78);

    border: 1px solid rgba(255,255,255,0.12);

    backdrop-filter: blur(18px);

    box-shadow:
        0 15px 50px rgba(0,0,0,0.4);

    transition:
        opacity 0.3s,
        transform 0.3s;
}


/* ==================================================
   PLAY
================================================== */

.play-button {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    padding-left: 3px;

    border: none;
    border-radius: 50%;

    background: white;

    color: #111;

    font-size: 16px;

    cursor: pointer;
}

.play-button:hover:not(:disabled) {
    transform: scale(1.05);
}

.play-button:disabled {
    opacity: 0.25;

    cursor: default;
}


/* ==================================================
   TID
================================================== */

.time {
    min-width: 92px;

    flex-shrink: 0;

    font-family: "Courier New", monospace;

    font-size: 10px;

    color: rgba(255,255,255,0.8);
}

.time-divider {
    margin: 0 3px;

    color: rgba(255,255,255,0.25);
}

#duration {
    color: rgba(255,255,255,0.4);
}


/* ==================================================
   PROGRESS
================================================== */

.progress {
    position: relative;

    flex: 1;

    height: 20px;

    display: flex;
    align-items: center;

    cursor: pointer;
}

.progress::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    height: 3px;

    background: rgba(255,255,255,0.15);
}

.progress-fill {
    position: relative;

    width: 0%;
    height: 3px;

    background: white;

    z-index: 2;

    pointer-events: none;
}

.progress-fill::after {
    content: "";

    position: absolute;

    right: 0;
    top: 50%;

    width: 9px;
    height: 9px;

    transform:
        translate(50%, -50%);

    border-radius: 50%;

    background: white;
}


/* ==================================================
   TEMA
================================================== */

.theme-control {
    height: 48px;

    flex-shrink: 0;

    padding: 0 12px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-left: 1px solid rgba(255,255,255,0.1);
}

.theme-control label {
    font-size: 8px;
    font-weight: bold;

    letter-spacing: 2px;

    color: rgba(255,255,255,0.35);
}

.theme-control select {
    width: 145px;

    padding: 9px 30px 9px 10px;

    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0;

    outline: none;

    appearance: auto;

    background: #17171b;

    color: white;

    font-size: 11px;

    cursor: pointer;
}

.theme-control select:hover {
    border-color: rgba(255,255,255,0.35);
}


/* ==================================================
   KONTROLKNAPPER
================================================== */

.control-button {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0;

    border: 1px solid rgba(255,255,255,0.12);

    background: rgba(255,255,255,0.04);

    color: rgba(255,255,255,0.75);

    font-size: 18px;

    cursor: pointer;
}

.control-button:hover {
    background: rgba(255,255,255,0.1);

    color: white;
}


/* ==================================================
   FILKNAP
================================================== */

.file-button {
    font-size: 23px;

    font-weight: 200;
}


/* ==================================================
   DROP OVERLAY
================================================== */

.drop-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 100;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    background: rgba(3,3,5,0.88);

    backdrop-filter: blur(10px);

    transition:
        opacity 0.2s,
        visibility 0.2s;
}

.drop-overlay.visible {
    opacity: 1;

    visibility: visible;
}

.drop-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 20px;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 4px;

    color: rgba(255,255,255,0.8);
}

.drop-icon {
    width: 80px;
    height: 80px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50%;

    font-size: 35px;
}


/* ==================================================
   FULLSCREEN
================================================== */

.visualizer-app:fullscreen {
    width: 100vw;
    height: 100vh;
}


/* ==================================================
   MOBIL
================================================== */

@media (max-width: 750px) {

    .top-bar {
        height: 65px;

        padding: 0 18px;
    }

    .track-name {
        max-width: 45vw;
    }

    .start-content h1 {
        font-size: 65px;

        letter-spacing: -5px;
    }

    .controls {
        bottom: 12px;

        width: calc(100% - 24px);

        padding: 10px;

        gap: 10px;

        flex-wrap: wrap;
    }

    .play-button {
        width: 44px;
        height: 44px;
    }

    .time {
        min-width: 80px;
    }

    .progress {
        min-width: 100px;
    }

    .theme-control {
        order: 5;

        width: 100%;

        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);

        justify-content: center;
    }

    .theme-control select {
        width: 180px;
    }

}