.music-button {
    border: 1px solid rgb(108, 193, 230);
    background-color: #151E2D;
    color: rgb(108, 193, 230);
    width:22px;
    height:24px;
    padding: 0;
    float:left;
    margin:1px;
}
.music-button:hover {
    color: white !important;
}
.music_btn {
    right: 6px;
    margin-top: 6px;
    display: inline-block;
}
.btn_music {
    position: fixed;
    top: 33px;
    background-color: #151E2D;
    padding-left: 6px;
    padding-right: 6px;
    border-radius: 6px 6px 6px 6px;
    border: 1px solid rgb(108, 193, 230);
    text-align: center;
    font-size: 15px;
}
.loader {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite;
}
.loader::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 5px solid #FFF;
    animation: prixClipFix 2s linear infinite;
}
@keyframes rotate {
    100% {
        transform: rotate(360deg)
    }
}
@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
    }
    25% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
    }
    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
    }
    75% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%)
    }
    100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0)
    }
}

/***************************************************************/
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.music_player {
    --c1: rgb(108,193,230);
    --c2: rgb(182, 224, 243);
    --bg: #0b0f14;

    position: relative;
    isolation: isolate;
    border-radius: 6px;

    background: var(--bg);      /* only the fill */
    border: 0;                  /* remove the old border system */
    animation: spin-angle 3s linear infinite;

    --angle: 0deg;
}

.music_player::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;

    /* this is the border thickness */
    padding: 1px;

    background: conic-gradient(
        from var(--angle),
        var(--c1) 0deg,
        var(--c2) 180deg,
        var(--c1) 360deg
    );

    /* punch out the middle so only the ring remains */
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;

    transform: translateZ(0);
    will-change: transform;
}

@keyframes spin-angle {
    to { --angle: 360deg; }
}

/*****************************/

/* Container for the whole bar */
.track-progress {
    width: 100%;
    display: flex;
    gap: 1px;
    margin-top:4px;
    margin-bottom:6px;
    padding-left:3px;
    padding-right:3px;
}

/* Each block represents a track */
.track-block {
    flex: 1 1 0;
    height: 4px;
    border-radius: 3px;

    /* lighter inactive colour for black backgrounds */
    background-color: #27394d;
    border: 1px solid #5d93ad;

    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Active / completed tracks */
.track-block.active {
    background-color: #9ee7ff;  /* brighter cyan */
    border-color: #9ee7ff;
}


/******fix bottom border disappearing***********/

.track-progress.pinned {
    position: fixed !important;
    box-sizing: border-box !important;
    z-index: 2147483647 !important;
    left: 0 !important;    /* set by JS */
    top: 0 !important;     /* set by JS */
    width: auto !important;/* set by JS */
    transition: none !important; /* avoid transition-caused jumps */
    transform: translateZ(0) !important;
    pointer-events: auto !important;
    background-clip: padding-box !important;
}
.track-progress__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    visibility: hidden;
    pointer-events: none;
    box-sizing: border-box;
}
