@font-face {
    font-family: 'pixelated';
    src: url('../fonts/dogica.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.music-bar {
    font-family: 'pixelated';
    font-size: 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    height: 40px;
    background: rgba(10, 0, 20, 0.97);
    backdrop-filter: blur(4px);

    border-style: ridge;
    border-color: rgba(156, 39, 176, 0.5);
    border-top: none;
    border-left: none;
    border-right: none;

    display: flex;
    align-items: center;
    z-index: 99999;

    box-shadow: 0 0 15px rgba(156, 39, 176, 0.4);
}

.music-content {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    gap: 12px;
}

.controls {
    display: flex;
    gap: 6px;
}

.track-section {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.progress {
    -webkit-appearance: none;
    appearance: none;

    flex: 1;
    height: 4px;
    border-radius: 2px;
    outline: none;
    border: none;
    background: transparent;

    background: linear-gradient(
        to right,
        #c77dff 0%,
        #c77dff var(--val, 0%),
        rgba(156, 39, 176, 0.3) var(--val, 0%),
        rgba(156, 39, 176, 0.3) 100%
    );
}

.progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;

    background: #c77dff;
    border: none;

    box-shadow: 0 0 6px rgba(156, 39, 176, 0.6);
    opacity: 0.8;
    transition: 0.2s;
}

.progress:hover {
    cursor: pointer;
}

.progress:hover::-webkit-slider-thumb {
    opacity: 1;
    box-shadow: 0 0 10px rgba(156, 39, 176, 0.9);
}

.progress::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
}

/* progress thumb */
.progress::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c77dff;
    box-shadow: 0 0 8px rgba(156, 39, 176, 0.8);
    cursor: pointer;
}

.progress::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c77dff;
    border: none;
    box-shadow: 0 0 6px rgba(156, 39, 176, 0.6);
}

.progress::-moz-range-progress {
    background: #c77dff;
    height: 4px;
    border-radius: 2px;
}

.progress::-moz-range-track {
    background: rgba(156, 39, 176, 0.3);
    height: 4px;
    border-radius: 2px;
}

.time {
    font-size: 12px;
    min-width: 90px;
    text-align: center;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.music-content button {
    background: none;
    border: 1px solid rgba(156, 39, 176, 0.5);
    border-radius: 20%;
    color: #e0ccff;
    padding: 2px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    width: 25px;

}

.music-content button:hover {
    background: rgba(156, 39, 176, 0.2);
}

.eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
}

.eq span {
    width: 3px;
    height: 1px;
    background: #c77dff;
    opacity: 0.4;

    box-shadow: 0 0 4px rgba(156, 39, 176, 0.4);
}

.eq.playing span {
    animation: eqAnim 0.8s infinite ease-in-out;
    opacity: 1;
}

.eq span:nth-child(1) { animation-duration: 0.6s; }
.eq span:nth-child(2) { animation-duration: 0.5s; }
.eq span:nth-child(3) { animation-duration: 0.3s; }

.volume {
    -webkit-appearance: none;
    appearance: none;

    width: 60px;
    height: 4px;
    border-radius: 2px;
    outline: none;

    background: linear-gradient(
        to right,
        #c77dff 0%,
        #c77dff var(--val, 0%),
        rgba(156, 39, 176, 0.3) var(--val, 0%),
        rgba(156, 39, 176, 0.3) 100%
    );
    background-size: 100% 100%;
}

.volume:hover {
    cursor: pointer;
}

.volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;

    background: #c77dff;
    border: none;

    box-shadow: 0 0 6px rgba(156, 39, 176, 0.6);
    opacity: 0.8;

    transition: 0.2s;
}

.volume::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
}

.volume:hover::-webkit-slider-thumb {
    opacity: 1;
    box-shadow: 0 0 10px rgba(156, 39, 176, 0.9);
}

.volume::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;

    background: #c77dff;
    border: none;

    box-shadow: 0 0 6px rgba(156, 39, 176, 0.6);
    opacity: 0.8;
}

.volume::-moz-range-progress {
    background: #c77dff;
    height: 4px;
    border-radius: 2px;
}

.volume::-moz-range-track {
    background: rgba(156, 39, 176, 0.3);
    height: 4px;
    border-radius: 2px;
}

.volume::-moz-range-track {
    height: 4px;
    background: rgba(156, 39, 176, 0.3);
    border-radius: 2px;
}

.speaker {
    height: 14px;
    width: 14px;
}

.speaker:hover {
    cursor: pointer;
}

.track-name {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
}

.track-scroll-wrapper {
    overflow: hidden;
    flex: 1;
    padding: 3px;
    position: relative;
    background-color: #000000;
    border: 1px solid rgba(39, 0, 46, 0.5);
}

.track-scroll {
    text-shadow: 0 0 5px rgba(156, 39, 176, 0.7);
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scrollText 10s linear infinite;
    color: #d8b4ff;
    width: 25vw;
}

.track-scroll:hover {
    animation-play-state: paused;
}

.now-playing {
    width: 10vw;
    color: #e0ccff;
    margin-right: 10px;
    white-space: nowrap;
}

@media (max-width: 1000px) {
.now-playing {
    width: 12vw;
    color: #e0ccff;
    margin-right: 10px;
    white-space: nowrap;
}
}

@media (max-width: 750px) {

    .music-bar {
        height: auto;
        padding: 6px 0;
    }

    .music-content {
        flex-wrap: wrap;
        gap: 6px;
    }

    .controls {
        order: 1;
    }

    .progress {
        order: 2;
        flex: 1 1 100%;
    }

    .track-section {
        order: 3;
        flex: 1 1 100%;
    }

    .time {
        order: 4;
        font-size: 11px;
    }

    .volume-container {
        order: 5;
        margin-left: auto;
    }
    .eq {
        display: none;
    }

    .now-playing {
    width: 20vw;
    color: #e0ccff;
    margin-right: 10px;
    white-space: nowrap;
}
}