/* Square media, shared controls. Scoped to the music homepage and its discovery views. */
.mh-refresh-status{font-size:14px;line-height:1.5;color:var(--text-secondary,#92909e);margin:0 0 16px}.mh-refresh-status:empty{display:none}.mh-refresh-status button{font:inherit;color:inherit;background:transparent;border:0;padding:8px;cursor:pointer}.mh-refresh-status button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
body.mp-home #feedGrid.mh-home[data-home-preparing],[data-music-home][data-home-preparing]{display:none!important}
.mh-personalizing{width:100%;min-width:0;overflow:hidden}.mh-skeleton-section{margin-bottom:36px}.mh-skeleton-heading,.mh-skeleton-art,.mh-skeleton-title,.mh-skeleton-artist{background:var(--border-color,#8883);animation:mh-skeleton-pulse 1.3s ease-in-out infinite alternate}.mh-skeleton-heading{width:32%;max-width:260px;height:25px;margin-bottom:16px}.mh-skeleton-rail{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(210px,22vw,300px);gap:16px;overflow:hidden}.mh-skeleton-card{min-width:0}.mh-skeleton-art{aspect-ratio:1}.mh-skeleton-title{width:76%;height:14px;margin-top:10px}.mh-skeleton-artist{width:50%;height:11px;margin-top:8px}.mh-personalized-ready{animation:mh-home-ready 220ms ease-out}
@keyframes mh-skeleton-pulse{from{opacity:.4}to{opacity:.8}}@keyframes mh-home-ready{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:640px){.mh-skeleton-rail{grid-auto-columns:calc((100% - 12px)/2);gap:12px}.mh-skeleton-heading{width:56%}}
@media(prefers-reduced-motion:reduce){.mh-skeleton-heading,.mh-skeleton-art,.mh-skeleton-title,.mh-skeleton-artist,.mh-personalized-ready{animation:none}}
body.mp-home #feedGrid.mh-home{display:block!important;width:100%;min-width:0;grid-template:none!important}
.mh-home .mh-section{margin:0 0 36px;min-width:0;scroll-margin-top:110px}.mh-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}.mh-heading h2{font:750 clamp(24px,3vw,36px)/1.12 var(--font-family,Arial);letter-spacing:-.045em;margin:0}.mh-heading p{font-size:13px;color:var(--text-secondary,#92909e);margin:8px 0 0}.mh-more{color:inherit;display:grid;place-items:center;width:44px;height:44px;flex:none}.mh-more svg{width:20px;height:20px}.mh-more:focus-visible,.mh-rail:focus-visible{outline:2px solid #9d87e6;outline-offset:3px}.mh-more:hover{background:#8882}
.mh-home .mh-rail{display:flex;align-items:flex-start;gap:16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:thin;padding:1px 1px 12px;min-width:0}
.mh-home .mh-rail>article{flex:0 0 clamp(210px,21vw,290px);width:clamp(210px,21vw,290px);min-width:0!important;max-width:none!important;scroll-snap-align:start;margin:0!important;border-radius:0!important;box-shadow:none!important;align-self:start}
.mh-home .mh-rail :is(.ecosystem-home-media,.mp-vinyl-stage,.mp-beat-stage,.mp-cinema-stage,.mp-post-carousel,.mh-portrait){aspect-ratio:1!important;height:auto!important;min-height:0!important;width:100%!important;max-height:none!important;position:relative;overflow:hidden;border-radius:0!important;padding:0!important}
.mh-home .mh-rail .mp-paper-card>.post-card-open{aspect-ratio:1!important;width:100%;height:auto!important;min-height:0!important;max-height:none!important;display:block;padding:0;overflow:hidden}
.mh-home .mh-rail .mp-paper-card>.post-card-open:has(.post-card-placeholder){aspect-ratio:auto!important;min-height:100px!important;padding:18px}
.mh-home .mh-rail .mp-post-slides{height:100%;aspect-ratio:1}.mh-home .mh-rail .mp-post-slide{aspect-ratio:1;height:100%;min-height:0}.mh-home .mh-rail .post-grid-image{width:100%;height:100%!important;aspect-ratio:1;object-fit:contain!important;background:#111}
.mh-home .mh-rail .video-thumbnail-link{height:100%!important;aspect-ratio:1!important;display:block}.mh-home .mh-rail :is(.ecosystem-video-thumb,.video-thumbnail-placeholder){height:100%!important;width:100%;object-fit:contain!important;aspect-ratio:1!important;background:#101014}.mh-home .mh-rail .mp-card-body{position:static!important;padding:12px 10px!important;background:transparent!important;color:inherit!important}.mh-home .mh-rail .mp-card-creator{position:static!important;display:flex!important;align-items:center;gap:7px;margin-bottom:10px}.mh-home .mh-rail .mp-card-avatar{width:27px;height:27px;flex:0 0 27px}.mh-home .mh-rail .mp-card-creator-copy{min-width:0;flex:1}.mh-home .mh-rail .mp-card-creator-copy strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.mh-home .mh-rail .mp-card-creator-copy small{font-size:10px}.mh-home .mh-rail .mp-card-follow{position:static!important;font-size:10px;padding:5px 7px;border-radius:2px;min-height:32px;flex:none}.mh-home .mh-rail .mp-card-title{font-size:15px!important;line-height:1.3}.mh-home .mh-rail .mp-card-description{font-size:12px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.mh-home .mh-rail .scene-actions{padding:8px;gap:5px;flex-wrap:wrap}.mh-home .mh-rail .scene-collab span{font-size:10px}
.mh-home .mh-rail .mh-creator-card{background:var(--mp-surface,#17151e);color:var(--mp-text,inherit)}.mh-portrait{display:grid;place-items:center;text-decoration:none;background:#6b5488;color:#fff}.mh-portrait img{width:100%;height:100%;object-fit:cover}.mh-portrait span{font:italic 700 clamp(60px,8vw,115px)/1 Georgia,serif}.mh-creator-card>.mp-card-creator{padding:12px 10px 0}.mh-creator-card h3,.mh-creator-card>p{margin:8px 10px;font-size:13px}.mh-creator-card a{color:inherit;text-decoration:none}.mh-empty{padding:22px 0;color:var(--text-secondary,#999);font-size:13px;max-width:500px}.mh-home .mh-video-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#111;pointer-events:none}.mh-video-control{position:absolute;bottom:8px;right:8px;z-index:5;background:#17141ee8;color:white;border:1px solid #fff7;border-radius:2px;padding:8px;min-height:40px;font-size:11px}.mh-video-pause{right:auto;left:8px}.mh-home .mh-loading{align-self:center;flex:none;font-size:12px;padding:18px;color:var(--text-secondary,#999)}.mh-preferences{display:inline-block;font-size:12px;color:inherit;background:none;border:0;padding:12px 0;margin-bottom:12px;text-decoration:none}
@media(max-width:700px){.mh-home .mh-rail{gap:10px}.mh-home .mh-rail>article{flex-basis:calc((100% - 10px)/2.03);width:calc((100% - 10px)/2.03)}.mh-home .mh-section{margin-bottom:26px}.mh-heading h2{font-size:23px}.mh-heading p{font-size:12px}.mh-home .mh-rail .mp-card-creator{flex-wrap:wrap}.mh-home .mh-rail .mp-card-follow{margin-left:34px}.mh-home .mh-rail .mp-card-title{font-size:13px!important}.mh-home .mh-rail .scene-actions{padding:5px}.mh-home .mh-rail .scene-actions button{min-width:30px}.mh-home .mh-rail .mp-card-creator-copy small{max-width:100%;overflow:hidden;text-overflow:ellipsis;display:block;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.mh-home *{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
/* Older beat cards used overlapping grid areas; the shared card content now flows below its artwork. */
body.mp-home #feedGrid.mh-home .mh-rail>article{display:flex!important;flex-direction:column!important;grid-template:none!important}
body.mp-home #feedGrid.mh-home .mh-rail>article>.mp-card-body{width:100%;flex:none;grid-area:auto!important;transform:none!important;inset:auto!important}
body.mp-home #feedGrid.mh-home .mh-rail .scene-actions{display:flex!important;position:static!important;grid-area:auto!important;width:100%;box-sizing:border-box}
body.mp-home #feedGrid.mh-home .mh-rail .mp-card-follow{margin:0!important;width:auto!important;min-width:0!important;min-height:32px!important;padding:5px 7px!important;font-size:10px!important}
/* Artist portraits stay square; the only caption is the compact profile row. */
.mh-home .mh-creator-card .mh-portrait{display:grid;flex:none;aspect-ratio:1!important;border-radius:0!important}
.mh-home .mh-creator-card .mh-portrait img{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-width:none;max-height:none;object-fit:cover;border-radius:0!important}
.mh-home .mh-creator-card>.mp-card-creator{padding:12px 10px;margin:0!important;width:100%;box-sizing:border-box;flex-wrap:nowrap!important}
.mh-discovery-shortcuts{display:flex;align-items:center;flex-wrap:wrap;gap:0 20px;margin-bottom:12px}
.mh-discovery-shortcuts .mh-preferences{margin:0!important;text-decoration:none}
@media(max-width:380px){.mh-discovery-shortcuts{column-gap:8px}.mh-discovery-shortcuts .mh-preferences{padding-inline:8px!important;font-size:12px!important}}
