/*
 * Büchler Musikproduktion
 * Gemeinsame Karten und echte persönliche Warteschlange
 */

.bmp-library-shared-heading{
    grid-column:1 / -1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:3px 2px 2px;
    color:#fff;
    font-size:15px;
    font-weight:1000;
}

.bmp-library-heading-actions{
    display:flex;
    align-items:center;
    gap:7px;
}

.bmp-library-clear-button{
    min-height:31px;
    padding:6px 10px;
    border:1px solid rgba(30,215,96,.42);
    border-radius:10px;
    background:rgba(30,215,96,.08);
    color:#eaffef;
    font-size:10px;
    font-weight:900;
    cursor:pointer;
}

.bmp-library-clear-button:hover{
    border-color:#6dff9f;
    background:#1ed760;
    color:#021007;
}

.bmp-library-shared-grid{
    width:100%;
    max-width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    padding:9px 12px 18px;
    overflow-x:hidden;
}

#bmpQueueList.bmp-library-shared-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:start!important;
    max-height:430px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
}

.bmp-library-shared-card{
    position:relative;
    min-width:0;
    overflow:hidden;
    padding:9px;
    border:1px solid rgba(30,215,96,.17);
    border-radius:15px;
    background:linear-gradient(
        145deg,
        rgba(255,255,255,.045),
        rgba(30,215,96,.035)
    );
    color:#fff;
    cursor:pointer;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.bmp-library-shared-card:hover,
.bmp-library-shared-card:focus-visible{
    transform:translateY(-2px);
    border-color:rgba(78,255,138,.68);
    background:linear-gradient(
        145deg,
        rgba(30,215,96,.13),
        rgba(4,28,14,.82)
    );
    box-shadow:
        0 14px 30px rgba(0,0,0,.38),
        0 0 20px rgba(30,215,96,.1);
    outline:none;
}

.bmp-library-shared-card.active{
    border-color:#58ff92;
    background:linear-gradient(
        145deg,
        rgba(30,215,96,.2),
        rgba(4,35,17,.92)
    );
    box-shadow:
        inset 0 0 0 1px rgba(114,255,165,.18),
        0 0 25px rgba(30,215,96,.16);
}

.bmp-library-shared-cover{
    position:relative;
    width:100%;
    aspect-ratio:1;
    overflow:hidden;
    margin-bottom:8px;
    border:1px solid rgba(30,215,96,.2);
    border-radius:12px;
    background:
        radial-gradient(
            circle at 35% 25%,
            #67ff9e,
            #0a5728 45%,
            #031008 82%
        );
    background-position:center;
    background-repeat:no-repeat;
    background-size:cover;
}

.bmp-library-shared-number{
    position:absolute;
    top:7px;
    left:7px;
    z-index:3;
    min-width:27px;
    height:27px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 7px;
    border:1px solid rgba(113,255,162,.72);
    border-radius:9px;
    background:rgba(2,15,7,.9);
    color:#5eff95;
    font-size:10px;
    font-weight:1000;
}

.bmp-library-shared-overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.37);
    opacity:0;
    transition:opacity .18s ease;
}

.bmp-library-shared-card:hover .bmp-library-shared-overlay,
.bmp-library-shared-card:focus-visible .bmp-library-shared-overlay,
.bmp-library-shared-card.active .bmp-library-shared-overlay{
    opacity:1;
}

.bmp-library-shared-play{
    width:47px;
    height:47px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #8affb5;
    border-radius:15px;
    background:linear-gradient(
        145deg,
        #71ffa5,
        #1ed760 58%,
        #078637
    );
    color:#021007;
    box-shadow:
        0 0 0 5px rgba(30,215,96,.12),
        0 0 25px rgba(30,215,96,.42);
}

.bmp-library-shared-play svg,
.bmp-library-card-action svg{
    width:20px;
    height:20px;
    display:block;
    fill:currentColor;
    pointer-events:none;
}

.bmp-library-shared-running{
    position:absolute;
    right:7px;
    bottom:7px;
    z-index:3;
    display:none;
    padding:5px 7px;
    border-radius:8px;
    background:#1ed760;
    color:#021007;
    font-size:9px;
    font-weight:1000;
}

.bmp-library-shared-card.active .bmp-library-shared-running{
    display:block;
}

.bmp-library-shared-title{
    overflow:hidden;
    color:#fff;
    font-size:12px;
    font-weight:1000;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.bmp-library-shared-artist{
    overflow:hidden;
    margin-top:4px;
    color:#9fb3a6;
    font-size:10px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.bmp-library-shared-duration{
    margin-top:5px;
    color:#60ff96;
    font-size:9px;
    font-weight:900;
}

.bmp-library-card-actions{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:5px;
    margin-top:8px;
}

.bmp-library-card-action{
    min-width:0;
    min-height:31px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:5px;
    border:1px solid rgba(30,215,96,.3);
    border-radius:9px;
    background:rgba(30,215,96,.055);
    color:#effff4;
    cursor:pointer;
}

.bmp-library-card-action:hover{
    border-color:#70ffa2;
    background:#1ed760;
    color:#021007;
}

.bmp-library-card-action.remove:hover{
    border-color:#ff7878;
    background:#d93636;
    color:#fff;
}

.bmp-library-shared-empty{
    grid-column:1 / -1;
    width:100%;
    padding:30px 18px;
    color:#9fb3a6;
    font-size:13px;
    line-height:1.55;
    text-align:center;
}

.bmp-library-shared-empty strong{
    display:block;
    margin-bottom:7px;
    color:#fff;
    font-size:15px;
}

#bmpQueueList,
#bmpDiscoverContent{
    scrollbar-width:thin;
    scrollbar-color:#1ed760 rgba(255,255,255,.05);
}

#bmpQueueList::-webkit-scrollbar,
#bmpDiscoverContent::-webkit-scrollbar{
    width:7px;
}

#bmpQueueList::-webkit-scrollbar-track,
#bmpDiscoverContent::-webkit-scrollbar-track{
    background:rgba(255,255,255,.05);
}

#bmpQueueList::-webkit-scrollbar-thumb,
#bmpDiscoverContent::-webkit-scrollbar-thumb{
    border-radius:999px;
    background:#1ed760;
}

@media(max-width:420px){
    .bmp-library-shared-grid,
    #bmpQueueList.bmp-library-shared-grid{
        gap:8px!important;
        padding-left:9px!important;
        padding-right:9px!important;
    }

    .bmp-library-shared-card{
        padding:7px;
    }

    .bmp-library-card-actions{
        gap:4px;
    }
}
