/* The compact bar's max-width:220px must not constrain expanded metadata. */
@media (max-width: 767.98px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) {
        display: block;
        box-sizing: border-box;
        width: calc(100% - max(10px, env(safe-area-inset-left)) - max(10px, env(safe-area-inset-right)));
        min-height: 68px;
        height: 68px;
        padding: 0;
        bottom: max(10px, env(safe-area-inset-bottom));
        border-radius: 20px;
        border: 1px solid rgba(255,255,255,.18);
        box-shadow: 0 8px 28px rgba(17,30,75,.25);
        background: var(--vibe-player-gradient);
    }
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) .vibe-player-artwork-wrap {
        position: absolute;
        top: 50%;
        left: 10px;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        transform: translateY(-50%);
        overflow: hidden;
    }
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) .vibe-player-artwork {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) .vibe-player-copy {
        position: absolute;
        top: 50%;
        left: 56px;
        width: calc(50% - 88px);
        max-width: none;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
        padding: 0;
        margin: 0;
        text-align: left;
        transform: translateY(-50%);
    }
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) :is(.vibe-player-live,.vibe-player-brand-logo,.vibe-player-equalizer) {
        display: none !important;
    }
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) :is(.vibe-player-title,.vibe-player-artist) {
        display: block;
        width: 100%;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.25;
        letter-spacing: -.01em;
    }
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) .vibe-player-artist {
        order: 0;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
    }
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) .vibe-player-title {
        order: 1;
        color: rgba(255,255,255,.8);
        font-size: 12px;
        font-weight: 450;
    }
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) .vibe-player-play {
        position: absolute;
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #fff;
        color: #a32b65;
        box-shadow: 0 3px 10px rgba(24,32,91,.12);
        transform: translate(-50%,-50%);
    }
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) .vibe-player-play:active {
        transform: translate(-50%,-50%) scale(.94);
    }
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) .vibe-player-play svg {
        width: 21px;
        height: 21px;
    }
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) .vibe-player-actions {
        position: absolute;
        top: 50%;
        right: 6px;
        left: auto;
        bottom: auto;
        display: flex;
        width: 40px;
        height: 44px;
        gap: 0;
        margin: 0;
        padding: 0;
        transform: translateY(-50%);
    }
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) .vibe-player-actions > :not(.vibe-player-collapse) {
        display: none !important;
    }
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) .vibe-player-collapse,
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) > .vibe-player-expand {
        display: grid;
        place-items: center;
        width: 40px;
        height: 44px;
        min-width: 40px;
        min-height: 44px;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: rgba(255,255,255,.94);
        box-shadow: none;
    }
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) > .vibe-player-expand {
        position: absolute;
        top: 50%;
        right: 48px;
        bottom: auto;
        left: auto;
        transform: translateY(-50%);
    }
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) :is(.vibe-player-collapse,.vibe-player-expand) svg {
        width: 20px;
        height: 20px;
    }
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) .vibe-player-icon::after {
        display: none;
    }
}
body.vibe-site #vibe-floating-player.is-mobile-expanded { overflow: clip !important; }
/* Mobile expanded menu: five evenly spaced actions, without the sound control. */
body.vibe-site #vibe-floating-player.is-mobile-expanded .vibe-player-actions .vibe-player-volume {
    display: none !important;
}
body.vibe-site #vibe-floating-player.is-mobile-expanded .vibe-player-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.vibe-site #vibe-floating-player.is-mobile-expanded .vibe-player-copy {
    width: auto;
    max-width: none;
    min-width: 0;
    padding-inline: 0;
    margin-inline: 0;
    text-align: center;
}
body.vibe-site #vibe-floating-player.is-mobile-expanded :is(.vibe-player-title,.vibe-player-artist) {
    display: -webkit-box;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-align: center;
    text-wrap: balance;
}
body.vibe-site #vibe-floating-player.is-mobile-expanded .vibe-player-live { justify-content: center; }
@media (max-width: 767.98px) {
    body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) { max-width: calc(100% - max(10px,env(safe-area-inset-left)) - max(10px,env(safe-area-inset-right))); min-width: 0; }
}
@media (orientation: portrait), (min-height: 501px) {
    body.vibe-site #vibe-floating-player.is-mobile-expanded .vibe-player-copy {
        left: max(24px,env(safe-area-inset-left));
        right: max(24px,env(safe-area-inset-right));
        transform: none;
    }
}
@media (max-height: 600px) {
    body.vibe-site #vibe-floating-player.is-mobile-expanded .vibe-player-title { font-size: 16px; line-height: 1.2; }
    body.vibe-site #vibe-floating-player.is-mobile-expanded .vibe-player-artist { font-size: 20px; line-height: 1.2; }
}

/* Scoped SunHit corrections, layered after existing client overrides. */
body.vibe-site .sunhit-live-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;gap:12px!important}
body.vibe-site .sunhit-live-actions .sunhit-live-action{position:static!important;transform:none!important;margin:0!important;min-width:0!important;width:auto!important;max-width:100%!important;white-space:normal!important;line-height:1.35!important;min-height:44px;display:flex!important;gap:7px!important}
body.vibe-site .sunhit-live-action svg{flex:0 0 16px}
body.vibe-site .sunhit-live-artist-link{justify-self:start!important}
body.vibe-site .sunhit-live-vote{justify-self:center!important}
body.vibe-site .sunhit-live-share{justify-self:end!important}
body.vibe-site .sunhit-live-program-label{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.4!important}
@media(max-width:767.98px),(orientation:landscape) and (max-height:500px) and (pointer:coarse){
 body.vibe-site #vibe-floating-player:not(.is-mobile-expanded){height:68px!important;min-height:68px!important;padding:0!important;background:var(--vibe-player-gradient)!important}
 body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) .vibe-player-copy{max-width:none!important;left:56px!important;right:auto!important;width:calc(50% - 88px)!important}
 body.vibe-site #vibe-floating-player:not(.is-mobile-expanded) .vibe-player-play{background:#fff!important;color:#a32b65!important;left:50%!important;right:auto!important;top:50%!important;width:48px!important;height:48px!important;transform:translate(-50%,-50%)!important}
 body.vibe-site #vibe-floating-player.is-mobile-expanded .vibe-player-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 body.vibe-site .sunhit-live-actions .sunhit-live-vote{display:none!important}
 body.vibe-site .sunhit-live-actions{display:flex!important;justify-content:space-between!important;gap:12px!important}
 body.vibe-site .sunhit-live-action{min-width:0;min-height:44px;white-space:normal}
 body.vibe-site .sunhit-live-programs{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 body.vibe-site .sunhit-live-program{min-width:0!important}
 body.vibe-site .sunhit-live-program-label{display:block!important;white-space:normal!important;line-height:1.4!important;margin-bottom:3px!important}
 body.vibe-site .sunhit-live-program-title{display:block!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.35!important}
}
.sunhit-resume-row{display:flex;gap:8px;align-items:center;margin:12px 0}
.sunhit-resume-play{display:flex;gap:12px;align-items:center;min-width:0;flex:1;border:0;background:transparent;color:inherit;text-align:left;padding:8px;min-height:44px;border-radius:10px}
.sunhit-resume-play img{width:44px;height:44px;object-fit:cover;border-radius:8px}
.sunhit-resume-play span{min-width:0}.sunhit-resume-play strong,.sunhit-resume-play small{display:block;overflow-wrap:anywhere}.sunhit-resume-play small{opacity:.7;margin-top:4px}
.sunhit-resume-remove{min-width:44px;min-height:44px;border:0;background:transparent;color:inherit;font-size:24px}
#sunhit-library .vibe-library-tabs{display:flex;overflow-x:auto}#sunhit-library .vibe-library-tabs button{flex:1;min-width:0}
