
/* ============================================================
   DBVYRO PROFILE MUSIC FINAL V2
   ============================================================ */

#dbProfileMusicCatalogV2 {
    width: 100%;
    margin: 10px 0 0;
    padding: 0;
    box-sizing: border-box;
}

#dbProfileMusicCatalogV2 * {
    box-sizing: border-box;
}

.dbpm2-card {
    width: 100%;
    overflow: hidden;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            rgba(16,18,26,.94),
            rgba(7,9,14,.96)
        );

    box-shadow:
        0 7px 20px rgba(0,0,0,.20);
}

.dbpm2-header {
    height: 32px;

    display: flex;
    align-items: center;

    padding: 0 11px;

    border-bottom:
        1px solid rgba(255,255,255,.06);

    color: rgba(255,255,255,.80);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.dbpm2-header span {
    margin-right: 6px;
    font-size: 14px;
}

.dbpm2-list {
    width: 100%;
}

.dbpm2-track {
    min-height: 56px;

    display: grid;

    grid-template-columns:
        42px
        minmax(0,1fr)
        34px
        48px;

    gap: 9px;
    align-items: center;

    padding: 7px 9px;

    border-bottom:
        1px solid rgba(255,255,255,.05);
}

.dbpm2-track:last-child {
    border-bottom: 0;
}

.dbpm2-cover {
    width: 42px;
    height: 42px;

    display: block;

    object-fit: cover;

    border-radius: 8px;

    background:
        rgba(255,255,255,.06);

    box-shadow:
        0 3px 9px rgba(0,0,0,.28);
}

.dbpm2-cover-empty {
    display: grid;
    place-items: center;

    font-size: 18px;

    color:
        rgba(255,255,255,.82);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.11),
            rgba(255,255,255,.025)
        );
}

.dbpm2-info {
    min-width: 0;
}

.dbpm2-title {
    overflow: hidden;

    color: #fff;

    font-size: 13px;
    font-weight: 800;
    line-height: 1.18;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.dbpm2-artist {
    margin-top: 3px;

    overflow: hidden;

    color:
        rgba(255,255,255,.55);

    font-size: 11px;
    line-height: 1.1;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.dbpm2-play {
    appearance: none;

    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    margin: 0;
    padding: 0;

    border:
        1px solid rgba(255,255,255,.15);

    border-radius: 50%;

    background:
        rgba(255,255,255,.07);

    color: #fff;

    font-family: inherit;
    font-size: 12px;
    line-height: 1;

    cursor: pointer;
}

.dbpm2-play:hover {
    background:
        rgba(255,255,255,.14);
}

.dbpm2-play.playing {
    background:
        rgba(255,255,255,.16);

    border-color:
        rgba(255,255,255,.30);
}

.dbpm2-rights {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 46px;

    padding: 5px 6px;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 7px;

    color:
        rgba(255,255,255,.68);

    background:
        rgba(255,255,255,.025);

    text-decoration: none;

    font-size: 10px;
    font-weight: 700;
}

.dbpm2-rights:hover {
    color: #fff;

    background:
        rgba(255,255,255,.07);
}


/*
  Kill old profile music renderers.
  Catalog V2 becomes the only public profile music UI.
*/
#dbProfileMusic,
#dbvyroProfileMusic,
#dbvyro-profile-music,
#dbvyroProfileMusicV2 {
    display: none !important;
}


@media (max-width: 620px) {

    .dbpm2-track {
        grid-template-columns:
            40px
            minmax(0,1fr)
            32px
            43px;

        gap: 7px;

        min-height: 53px;

        padding: 6px 7px;
    }

    .dbpm2-cover {
        width: 40px;
        height: 40px;
    }

    .dbpm2-play {
        width: 30px;
        height: 30px;
    }

    .dbpm2-rights {
        min-width: 41px;
        padding: 5px 4px;
        font-size: 9px;
    }
}


/* ============================================================
   DBVYRO PROFILE MUSIC COMPACT V3
   ============================================================ */

#dbProfileMusicCatalogV2 {
    width: min(
        720px,
        calc(100% - 32px)
    ) !important;

    margin:
        10px auto 0 !important;
}


/* smaller overall card */
.dbpm2-header {
    height: 28px !important;

    padding:
        0 10px !important;

    font-size:
        10px !important;
}


.dbpm2-track {
    min-height:
        50px !important;

    grid-template-columns:
        38px
        minmax(0,1fr)
        32px
        46px !important;

    gap:
        8px !important;

    padding:
        6px 8px !important;
}


.dbpm2-cover {
    width:
        38px !important;

    height:
        38px !important;

    border-radius:
        7px !important;
}


.dbpm2-title {
    font-size:
        13px !important;
}


.dbpm2-artist {
    margin-top:
        2px !important;

    font-size:
        10px !important;
}


.dbpm2-play {
    width:
        30px !important;

    height:
        30px !important;

    font-size:
        11px !important;
}


.dbpm2-rights {
    min-width:
        44px !important;

    padding:
        5px !important;

    font-size:
        9px !important;
}


@media (max-width: 760px) {

    #dbProfileMusicCatalogV2 {
        width:
            calc(100% - 16px) !important;

        margin:
            8px auto 0 !important;
    }

}


/* ============================================================
   DBVYRO PROFILE MUSIC COMPACT V3
   ============================================================ */

#dbProfileMusicCatalogV2 {
    width: min(
        720px,
        calc(100% - 32px)
    ) !important;

    margin:
        10px auto 0 !important;
}


/* smaller overall card */
.dbpm2-header {
    height: 28px !important;

    padding:
        0 10px !important;

    font-size:
        10px !important;
}


.dbpm2-track {
    min-height:
        50px !important;

    grid-template-columns:
        38px
        minmax(0,1fr)
        32px
        46px !important;

    gap:
        8px !important;

    padding:
        6px 8px !important;
}


.dbpm2-cover {
    width:
        38px !important;

    height:
        38px !important;

    border-radius:
        7px !important;
}


.dbpm2-title {
    font-size:
        13px !important;
}


.dbpm2-artist {
    margin-top:
        2px !important;

    font-size:
        10px !important;
}


.dbpm2-play {
    width:
        30px !important;

    height:
        30px !important;

    font-size:
        11px !important;
}


.dbpm2-rights {
    min-width:
        44px !important;

    padding:
        5px !important;

    font-size:
        9px !important;
}


@media (max-width: 760px) {

    #dbProfileMusicCatalogV2 {
        width:
            calc(100% - 16px) !important;

        margin:
            8px auto 0 !important;
    }

}
