/* Shared homepage curvature and pinned-card sizing. Keep media controls outside clipping containers. */
body.mp-home #home{--home-card-radius:18px}
body.mp-home #home :is(.mh-rail,.mc-home-rail,.home-pinned-grid)>article,
body.mp-home #home :is(.mx-card,.mc-home-card,.mp-reference-card,.mh-creator-card){border-radius:var(--home-card-radius)!important}
body.mp-home #home :is(.mp-vinyl-stage,.mp-beat-stage,.mp-cinema-stage,.ecosystem-home-media,.mp-post-carousel,.mh-portrait,.mpv-thumbnail,.mc-home-art,.mx-art),
body.mp-home #home .mp-paper-card>.post-card-open{border-radius:var(--home-card-radius)!important;overflow:hidden}
body.mp-home #home .mh-portrait img{border-radius:inherit!important}
body.mp-home #home .home-pinned-grid{display:grid!important;grid-template-columns:repeat(auto-fill,clamp(210px,21vw,290px))!important;gap:16px;align-items:start;justify-content:start;overflow:visible;padding:1px 1px 12px}
body.mp-home #home .home-pinned-grid>article{width:100%!important;min-width:0!important;max-width:100%!important;grid-column:auto!important;grid-row:auto!important;align-self:start;margin:0!important;box-sizing:border-box}
body.mp-home #home .home-pinned-grid .mpv-card .mp-cinema-stage{aspect-ratio:16/9!important}
body.mp-home #home .home-pinned-grid .mpv-thumbnail{height:100%;aspect-ratio:16/9!important}
@media(max-width:700px){
 body.mp-home #home .home-pinned-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 body.mp-home #home .mh-rail:not(.home-pinned-grid)>article{flex:0 0 calc((100% - 10px)/2)!important;width:calc((100% - 10px)/2)!important}
 body.mp-home #home .mh-rail:not(.home-pinned-grid){gap:10px}
 body.mp-home #home .home-pinned-grid .mp-card-title{font-size:13px!important}
 body.mp-home #home .mp-home-pin-trigger-label{display:none}
 body.mp-home #home .mp-home-pin-trigger{min-width:34px;min-height:34px;padding:0 5px}
}

/* Clip the painted footer to the rounded audio-card edge. */
body.mp-home #home article:is(.mp-vinyl-card,.mp-beat-card){overflow:hidden!important;border-radius:var(--home-card-radius,18px)!important}
body.mp-home #home .home-pinned-grid .scene-card--lead{grid-column:auto!important}
