/* ===== Song page artist follow — 5.6.32 / zero-prefetch compact surface ===== */
.msb-song-artists-follow {
    position: relative;
    margin: 12px 0 14px;
    padding: 10px 11px;
    border: 1px solid rgba(30,215,96,.12);
    border-radius: 17px;
    background:
        radial-gradient(300px 100px at 92% -35%, rgba(30,215,96,.12), transparent 70%),
        linear-gradient(145deg, rgba(14,18,15,.96), rgba(8,10,9,.985));
    box-shadow: 0 10px 28px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.02);
    overflow: hidden;
}
.msb-song-artists-follow__head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: rgba(255,255,255,.78);
    font-size: 10.5px;
    font-weight: 900;
}
.msb-song-artists-follow__head-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #43e77e;
    background: rgba(30,215,96,.09);
    border: 1px solid rgba(30,215,96,.15);
}
.msb-song-artists-follow__head-icon i { font-size: 9px; }
.msb-song-artists-follow__rail {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.msb-song-artist-chip {
    flex: 1 1 210px;
    min-width: 0;
    max-width: 310px;
    height: 58px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.msb-song-artist-chip:hover {
    border-color: rgba(30,215,96,.20);
    background: rgba(30,215,96,.035);
    transform: translateY(-1px);
}
.msb-song-artist-chip__identity {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none !important;
}
.msb-song-artist-chip__avatar {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 12px;
    background: #121713;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.msb-song-artist-chip__avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(30,215,96,.10);
    pointer-events: none;
}
.msb-song-artist-chip__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.035);
}
.msb-song-artist-chip__name {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.msb-song-artist-follow {
    flex: 0 0 auto;
    min-width: 84px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid rgba(30,215,96,.24);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(30,215,96,.14), rgba(30,215,96,.07));
    color: #54ec89;
    font-family: inherit;
    font-size: 9.5px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
    transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.msb-song-artist-follow:hover,
.msb-song-artist-follow:focus-visible {
    color: #77f3a1;
    border-color: rgba(30,215,96,.40);
    background: rgba(30,215,96,.15);
    outline: none;
}
.msb-song-artist-follow.following {
    color: #dfffea;
    border-color: rgba(30,215,96,.38);
    background: rgba(30,215,96,.18);
}
.msb-song-artist-follow:disabled { opacity: .68; cursor: wait; }
.msb-song-artist-follow i { font-size: 8.5px; }

html[data-theme="light"] .msb-song-artists-follow {
    border-color: rgba(22,163,74,.11);
    background: linear-gradient(145deg, #fff, #f7faf8);
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
html[data-theme="light"] .msb-song-artists-follow__head { color: #4b5563; }
html[data-theme="light"] .msb-song-artist-chip {
    border-color: rgba(15,23,42,.08);
    background: rgba(15,23,42,.025);
}
html[data-theme="light"] .msb-song-artist-chip__name { color: #111827; }

@media (max-width: 640px) {
    .msb-song-artists-follow {
        margin: 10px 0 12px;
        padding: 8px 0 9px;
        border-radius: 15px;
    }
    .msb-song-artists-follow__head {
        margin-bottom: 7px;
        padding: 0 9px;
        font-size: 9.5px;
    }
    .msb-song-artists-follow__head-icon {
        width: 23px;
        height: 23px;
        border-radius: 8px;
    }
    .msb-song-artists-follow__rail {
        flex-wrap: nowrap;
        gap: 7px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 0 9px 1px;
        -webkit-overflow-scrolling: touch;
    }
    .msb-song-artists-follow__rail::-webkit-scrollbar { display: none; }
    .msb-song-artist-chip {
        flex: 0 0 min(74vw, 244px);
        max-width: none;
        height: 54px;
        padding: 5px;
        border-radius: 13px;
        scroll-snap-align: start;
        transform: none !important;
    }
    .msb-song-artists-follow__rail > .msb-song-artist-chip:only-child {
        flex-basis: min(88vw, 300px);
    }
    .msb-song-artist-chip__avatar {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }
    .msb-song-artist-chip__name { font-size: 11.5px; }
    .msb-song-artist-follow {
        min-width: 76px;
        height: 32px;
        padding: 0 8px;
        border-radius: 10px;
        font-size: 8.8px;
    }
}


/* ===== Song hero inline Follow — 5.6.34 / icon-only + verified state ===== */
.msb-song-hero .app-artist-wrapper.has-inline-follow {
    overflow: visible;
}
.msb-song-hero .msb-artist-names--inline-follow {
    gap: 5px 7px;
}
.msb-song-artist-inline-unit {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.msb-song-inline-follow-shell {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}
html[dir="ltr"] .msb-song-artist-inline-unit > .msb-song-inline-follow-shell {
    order: 2;
}
.msb-song-inline-follow-button {
    width: 29px;
    min-width: 29px;
    height: 29px;
    padding: 0;
    border: 1px solid rgba(30,215,96,.30);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(30,215,96,.16), rgba(30,215,96,.07));
    color: #55ee8b;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 5px 16px rgba(0,0,0,.10);
    font-family: inherit;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.msb-song-inline-follow-button > span {
    display: none !important;
}
.msb-song-inline-follow-button {
    overflow: hidden;
}
.msb-song-inline-follow-button > i {
    width: auto !important;
    height: auto !important;
    flex: 0 0 auto !important;
    display: inline !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: currentColor !important;
    font-size: 9px !important;
    opacity: 1 !important;
}
.msb-song-inline-follow-button:hover,
.msb-song-inline-follow-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(30,215,96,.52);
    background: linear-gradient(135deg, rgba(30,215,96,.24), rgba(30,215,96,.11));
    color: #86f6ac;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 7px 18px rgba(0,0,0,.13);
    outline: none;
}
.msb-song-inline-follow-button.following {
    color: #e7ffef;
    border-color: rgba(30,215,96,.42);
    background: rgba(30,215,96,.19);
}
.msb-song-inline-follow-button.is-multi {
    width: 27px;
    min-width: 27px;
    height: 27px;
    padding: 0;
    font-size: 9px;
}
.msb-song-inline-follow-button:disabled {
    opacity: .66;
    cursor: wait;
    transform: none;
}
html[data-theme="light"] .msb-song-inline-follow-button {
    border-color: rgba(22,163,74,.24);
    background: linear-gradient(135deg, rgba(22,163,74,.10), rgba(22,163,74,.045));
    color: #16823d;
    box-shadow: none;
}
html[data-theme="light"] .msb-song-inline-follow-button.following {
    border-color: rgba(22,163,74,.34);
    background: rgba(22,163,74,.12);
    color: #116c33;
}


/* Related header Follow — 5.6.35 / same state as Hero, no extra surface */
.msb-song-related-follow-shell {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}
.msb-song-related-follow-button {
    min-width: 82px;
    width: auto;
    height: 29px;
    padding: 0 10px;
    border-radius: 999px;
    gap: 5px;
    font-size: 10px;
    line-height: 1;
    box-shadow: none;
}
.msb-song-related-follow-button > i {
    font-size: 8.5px;
}
.msb-song-related-follow-button.following {
    color: #dfffea;
    border-color: rgba(30,215,96,.34);
    background: rgba(30,215,96,.14);
}
html[data-theme="light"] .msb-song-related-follow-button.following {
    color: #116c33;
    border-color: rgba(22,163,74,.30);
    background: rgba(22,163,74,.10);
}

@media (max-width: 640px) {
    .msb-song-hero .app-artist-wrapper.has-inline-follow {
        width: 100%;
        max-width: 100%;
        min-height: 34px;
        padding: 4px 6px;
        overflow: hidden;
        justify-content: center;
        text-align: center;
    }
    .msb-song-hero .msb-artist-names--inline-follow {
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
        justify-content: center;
        justify-content: safe center;
        gap: 5px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 0 1px;
    }
    .msb-song-hero .msb-artist-names--inline-follow::-webkit-scrollbar { display: none; }
    .msb-song-artist-inline-unit,
    .msb-song-hero .msb-artist-names--inline-follow .artist-sep {
        flex: 0 0 auto;
    }
    .msb-song-hero .msb-artist-names--inline-follow .artist-name-item {
        max-width: min(44vw, 156px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .msb-song-inline-follow-button {
        width: 28px;
        min-width: 28px;
        height: 28px;
        padding: 0;
        font-size: 9px;
    }
    .msb-song-inline-follow-button.is-multi {
        width: 26px;
        min-width: 26px;
        height: 26px;
        padding: 0;
        font-size: 8.7px;
    }
    .msb-song-related-follow-button {
        min-width: 76px;
        height: 27px;
        padding: 0 9px;
        font-size: 9.2px;
    }
}


/* 5.6.53 — English search direction: the server-rendered surface language wins. */
.msb-artists-directory[data-language="en"] .msb-artists-search{direction:ltr!important;}
.msb-artists-directory[data-language="en"] .msb-artists-search input{direction:ltr!important;text-align:left!important;}
.msb-artists-directory[data-language="en"] .msb-artists-search input::placeholder{direction:ltr!important;text-align:left!important;}
html[lang^="en"] .msb-artists-directory .msb-artists-search input::placeholder{direction:ltr!important;text-align:left!important;}


/* 5.6.54 — Shared recommended artists surface (artist + song pages). */
.msb-song-recommended-artists {
    margin: 22px 0;
    padding: 18px;
    border: 1px solid rgba(30,215,96,.12);
    border-radius: 20px;
    background: linear-gradient(145deg,rgba(30,215,96,.055),rgba(255,255,255,.018));
    overflow: hidden;
    font-family: inherit;
}
.msb-song-recommended-artists__head {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}
.msb-song-recommended-artists__head h3 { margin:3px 0 0; font-size:18px; line-height:1.35; }
.msb-song-recommended-artists__eyebrow { display:inline-flex;align-items:center;gap:6px;color:#1ed760;font-size:10px;font-weight:800; }
.msb-song-recommended-artists__all { display:inline-flex;align-items:center;gap:6px;color:#1ed760;text-decoration:none;font-size:11px;font-weight:800;white-space:nowrap; }
.msb-song-recommended-artists__rail { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px; }
.msb-song-recommended-artist { min-width:0;padding:10px;border:1px solid rgba(255,255,255,.06);border-radius:15px;background:rgba(255,255,255,.025); }
.msb-song-recommended-artist__identity { display:flex;align-items:center;gap:9px;min-width:0;color:inherit;text-decoration:none; }
.msb-song-recommended-artist__avatar { width:46px;height:46px;flex:0 0 46px;border-radius:13px;overflow:hidden;background:rgba(255,255,255,.05); }
.msb-song-recommended-artist__avatar img { width:100%;height:100%;object-fit:cover;display:block; }
.msb-song-recommended-artist__identity strong { min-width:0;font-size:11px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.msb-song-recommended-artist__follow { width:100%;min-height:29px;margin-top:8px;padding:5px 7px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid rgba(30,215,96,.23);border-radius:9px;background:rgba(30,215,96,.08);color:#1ed760;font:inherit;font-size:9.5px;font-weight:800;cursor:pointer; }
.msb-song-recommended-artist__follow.following { background:rgba(30,215,96,.18);border-color:rgba(30,215,96,.38); }
.msb-song-recommended-artist__follow:disabled { opacity:.65;cursor:wait; }
html[dir="ltr"] .msb-song-recommended-artists__all i { transform:scaleX(-1); }
@media (max-width:991px) {
    .msb-song-recommended-artists { margin:16px 0;padding:14px 12px;border-radius:17px; }
    .msb-song-recommended-artists__head { align-items:center;margin-bottom:11px; }
    .msb-song-recommended-artists__head h3 { font-size:15px; }
    .msb-song-recommended-artists__rail { display:flex;gap:9px;overflow-x:auto;overflow-y:hidden;padding:1px 1px 6px;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch; }
    .msb-song-recommended-artists__rail::-webkit-scrollbar { display:none; }
    .msb-song-recommended-artist { flex:0 0 132px;width:132px;scroll-snap-align:start;padding:9px; }
    .msb-song-recommended-artist__identity { flex-direction:column;gap:7px;text-align:center; }
    .msb-song-recommended-artist__avatar { width:62px;height:62px;flex-basis:62px;border-radius:16px; }
    .msb-song-recommended-artist__identity strong { width:100%;font-size:10.5px; }
    .msb-song-recommended-artist__follow { min-height:28px;margin-top:7px;font-size:9px; }
}
html[data-theme="light"] .msb-song-recommended-artists {
    background: linear-gradient(145deg,rgba(30,215,96,.07),rgba(255,255,255,.96));
    border-color: rgba(18,123,59,.14);
}
html[data-theme="light"] .msb-song-recommended-artist {
    background: rgba(255,255,255,.82);
    border-color: rgba(15,23,42,.08);
}
html[data-theme="light"] .msb-song-recommended-artist__identity strong { color:#111827; }
html[data-theme="light"] .msb-song-recommended-artist__follow {
    background: rgba(22,163,74,.08);
    border-color: rgba(22,163,74,.2);
    color:#15803d;
}
html[data-theme="light"] .msb-song-recommended-artist__follow.following {
    background: rgba(22,163,74,.14);
    border-color: rgba(22,163,74,.32);
}

/* 5.6.55 — reserve recommendation cards stay in DOM for the existing follow-state batch,
   but only the discovery-first visible set is painted. */
[data-msb-artist-recommendations] [data-recommendation-card].is-reco-hidden { display:none!important; }

/* 5.6.70 — recommendation visibility has a single owner.
 * Follow state is recorded in DOM/runtime, but only the JS rebalance pass toggles
 * .is-reco-hidden. Do not add :has(.following) display rules here: they can hide
 * a card after a completed rebalance without promoting a reserve candidate. */


/* =============================================================
 * 5.6.60 — Gapless discovery + polished song-page artist cards
 * Pure layout/presentation. Reserve candidates remain display:none until
 * the existing follow-state batch promotes them. No request/query is added.
 * =========================================================== */
@media (min-width:992px){
    .msb-song-recommended-artists__rail{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        align-items:stretch;
        gap:11px;
    }
    .msb-song-recommended-artist{
        box-sizing:border-box;
        flex:0 1 calc((100% - 44px)/5);
        width:calc((100% - 44px)/5);
        max-width:calc((100% - 44px)/5);
        min-width:0;
        min-height:158px;
        padding:13px 11px 11px;
        display:flex;
        flex-direction:column;
        align-items:stretch;
        position:relative;
        overflow:hidden;
        border-color:rgba(30,215,96,.09);
        background:
            radial-gradient(circle at 50% -25%,rgba(30,215,96,.11),transparent 54%),
            rgba(255,255,255,.025);
        transition:border-color .18s ease,background .18s ease,transform .18s ease;
    }
    .msb-song-recommended-artist:hover{
        transform:translateY(-2px);
        border-color:rgba(30,215,96,.26);
        background:
            radial-gradient(circle at 50% -25%,rgba(30,215,96,.17),transparent 54%),
            rgba(255,255,255,.035);
    }
    .msb-song-recommended-artist__identity{
        flex:1 1 auto;
        flex-direction:column;
        justify-content:flex-start;
        gap:8px;
        text-align:center;
    }
    .msb-song-recommended-artist__avatar{
        width:66px;
        height:66px;
        flex:0 0 66px;
        border-radius:50%;
        border:2px solid rgba(30,215,96,.28);
        box-shadow:0 7px 18px rgba(0,0,0,.2);
    }
    .msb-song-recommended-artist__copy{
        width:100%;
        min-width:0;
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:3px;
    }
    .msb-song-recommended-artist__identity strong{
        width:100%;
        font-size:11.5px;
        font-weight:800;
        text-align:center;
    }
    .msb-song-recommended-artist__meta{
        display:inline-flex;
        align-items:center;
        gap:4px;
        min-height:19px;
        padding:2px 6px;
        border-radius:999px;
        background:rgba(0,0,0,.22);
        color:#aeb7b1;
        font-size:8.5px;
        font-weight:700;
        line-height:1;
    }
    .msb-song-recommended-artist__meta i{color:#1ed760;font-size:8px}
    .msb-song-recommended-artist__follow{
        margin-top:9px;
        min-height:31px;
        border-radius:10px;
    }
}
@media (max-width:991px){
    .msb-song-recommended-artist__copy{
        width:100%;
        min-width:0;
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:2px;
    }
    .msb-song-recommended-artist__meta{
        display:inline-flex;
        align-items:center;
        gap:3px;
        color:#9ca6a0;
        font-size:8px;
        font-weight:700;
    }
    .msb-song-recommended-artist__meta i{color:#1ed760;font-size:7px}
}
html[data-theme="light"] .msb-song-recommended-artist__meta{
    background:rgba(15,23,42,.055);
    color:#64748b;
}


