/* MMP STEP 2 — isolated layout/navigation overrides; existing production CSS untouched. */
html,html body{min-width:0!important;overflow-x:clip!important;}
html body{min-height:100svh!important;overflow-y:auto!important;}
body .app{width:min(100%,1100px)!important;max-width:1100px!important;min-width:0!important;margin:0 auto!important;height:auto!important;min-height:100svh!important;overflow:visible!important;display:flex!important;flex-direction:column!important;grid-template-columns:none!important;grid-template-rows:none!important;box-shadow:none!important;}
body .app>.topbar{width:100%!important;min-height:60px!important;height:auto!important;max-height:none!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:9px 15px!important;overflow:visible!important;gap:12px!important;flex-wrap:wrap!important;}
body .topbar>.brand{display:flex!important;visibility:visible!important;min-width:0!important;align-items:center!important;flex:0 1 auto!important;}
body .topbar>.brand .logo{width:40px!important;height:40px!important;flex:0 0 40px!important;}
body .topbar>.brand h1{font-size:calc(17px * var(--font-scale, 1))!important;letter-spacing:.3px!important;white-space:nowrap!important;}
body .topbar>.top-actions{width:auto!important;max-width:100%!important;flex:1 1 520px!important;justify-content:flex-end!important;height:auto!important;min-height:40px!important;overflow-x:auto!important;overflow-y:hidden!important;}
body .topbar>.top-actions>.community-top-btn{display:none!important;}
body .topbar>.mmp-top-home-icon{display:none!important;}
/* Reset the obsolete full-screen minimum and sidebar layout at every breakpoint. */
@media(max-width:1365px),(max-height:799px){html body{min-width:0!important;min-height:100svh!important;}body .app{min-width:0!important;height:auto!important;min-height:100svh!important;width:min(100%,1100px)!important;}}
#mmpSideNav,#mmpSideNavHost{display:none!important;}
#communityChatWorkspace{display:none!important;}
/* Native floating friend/DND/1:1 chat windows remain outside the homepage. */
body .app #mmpPrimaryNav{width:100%!important;min-height:60px!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;gap:5px!important;padding:9px 12px!important;background:var(--editorial-card,#fff)!important;border-bottom:1px solid var(--editorial-line,#e5e2ec)!important;position:relative!important;z-index:1050!important;}
body .app #mmpPrimaryNav .mmp-primary-link{min-width:0!important;width:auto!important;height:41px!important;min-height:41px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;padding:0 12px!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:var(--editorial-text,var(--text))!important;font-size:calc(13px * var(--font-scale, 1))!important;font-weight:700!important;line-height:1.1!important;white-space:nowrap!important;cursor:pointer!important;box-shadow:none!important;transform:none!important;}
body .app #mmpPrimaryNav .mmp-primary-link strong{font-size:calc(13px * var(--font-scale, 1))!important;font-weight:700!important;color:inherit!important;white-space:nowrap!important;}
body .app #mmpPrimaryNav .mmp-primary-link>span:first-child{font-size:calc(17px * var(--font-scale, 1))!important;}
body .app #mmpPrimaryNav .mmp-primary-link:is(:hover,:focus-visible,.mmp-active,[data-page="home"].active,.mmp-menu-trigger.active){background:var(--editorial-soft,#eeeaf7)!important;border-color:var(--editorial-line,#d5c8ec)!important;color:var(--editorial-accent,#6746ca)!important;}
body .app #mmpPrimaryNav .mmp-menu-chevron{font-size:calc(12px * var(--font-scale, 1))!important;opacity:.65;}
body .app #mmpPrimaryNav .mmp-primary-community{gap:7px!important;padding:0 12px!important;}
body .app #mmpPrimaryNav .mmp-primary-community span{display:inline!important;width:auto!important;height:auto!important;margin:0!important;border:0!important;box-shadow:none!important;background:none!important;}
body .app #mmpPrimaryNav .settings-mode-switch{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;width:auto!important;min-width:0!important;max-width:100%!important;gap:5px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;overflow:visible!important;box-shadow:none!important;grid-template-columns:none!important;}
body .app #mmpPrimaryNav .mmp-menu-group{position:relative!important;display:flex!important;align-items:center!important;}
body .app #mmpPrimaryNav .mmp-menu-group[hidden]{display:none!important;}
body .app #mmpPrimaryNav .mmp-menu-submenu{display:none!important;position:absolute!important;top:calc(100% + 7px)!important;left:0!important;z-index:1100!important;min-width:224px!important;max-width:min(300px,calc(100vw - 24px))!important;padding:8px!important;flex-direction:column!important;gap:5px!important;border:1px solid var(--editorial-line,#c8bbdd)!important;border-radius:13px!important;background:var(--editorial-card,#fff)!important;box-shadow:0 14px 36px rgba(16,13,24,.22)!important;}
body .app #mmpPrimaryNav .mmp-menu-group.is-open>.mmp-menu-submenu{display:flex!important;}
body .app #mmpPrimaryNav .mmp-menu-submenu .settings-mode-btn{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;width:100%!important;min-width:0!important;max-width:none!important;height:52px!important;min-height:52px!important;max-height:none!important;gap:10px!important;margin:0!important;padding:6px 10px!important;text-align:left!important;white-space:normal!important;border-radius:9px!important;color:var(--editorial-text,var(--text))!important;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;transform:none!important;}
body .app #mmpPrimaryNav .mmp-menu-submenu .settings-mode-btn:is(:hover,:focus-visible,.active){background:var(--editorial-soft,#efeaf9)!important;border-color:var(--editorial-line,#e1d7eb)!important;color:var(--editorial-accent,#6746ca)!important;}
body .app #mmpPrimaryNav .mmp-menu-submenu .settings-mode-icon{flex:0 0 33px!important;width:33px!important;height:33px!important;min-width:33px!important;display:grid!important;place-items:center!important;border-radius:9px!important;background:var(--editorial-soft,#eee9fa)!important;font-size:calc(17px * var(--font-scale, 1))!important;color:inherit!important;}
body .app #mmpPrimaryNav .mmp-menu-submenu .settings-mode-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-width:0!important;color:inherit!important;}
body .app #mmpPrimaryNav .mmp-menu-submenu .settings-mode-copy strong{display:block!important;color:inherit!important;font-size:calc(13px * var(--font-scale, 1))!important;white-space:nowrap!important;}
body .app #mmpPrimaryNav .mmp-menu-submenu .settings-mode-copy small{display:block!important;color:var(--editorial-muted,var(--muted))!important;font-size:calc(10px * var(--font-scale, 1))!important;margin-top:4px!important;white-space:normal!important;line-height:1.2!important;}
body .app #mmpPrimaryNav .mmp-menu-submenu .settings-mode-btn[hidden]{display:none!important;}
body .app #mmpPrimaryNav .mmp-menu-group:last-child .mmp-menu-submenu{right:0!important;left:auto!important;}
/* Legacy landing no longer occupies the viewport or blocks the persistent navigation. */
body.mmp-landing-active{overflow-y:auto!important;overflow-x:clip!important;}
body .app #mmpLanding.mmp-community-home{position:relative!important;inset:auto!important;z-index:1!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:24px 18px 36px!important;overflow:visible!important;box-sizing:border-box!important;background:transparent!important;color:var(--editorial-text,var(--text))!important;}
body .app #mmpLanding[hidden]{display:none!important;}
body.mmp-landing-active .app> :is(.workspace,.bgm-workspace,.cutscene-workspace,.video-workspace,.mastering-workspace,.stem-mastering-workspace,.playlist-album-workspace,#communityBoardWorkspace){display:none!important;}
body .app>.workspace,body .app>.bgm-workspace,body .app>.cutscene-workspace,body .app>.video-workspace,body .app>.mastering-workspace,body .app>.stem-mastering-workspace,body .app>.playlist-album-workspace{width:100%!important;max-width:100%!important;min-width:0!important;flex:1 1 auto!important;}
body.settings-mode-community:not(.mmp-landing-active) .app>#communityBoardWorkspace{position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:65vh!important;max-height:none!important;overflow:visible!important;flex:1 1 auto!important;display:block!important;}
body.settings-mode-community:not(.mmp-landing-active) .community-board-workspace{min-width:0!important;}
body .app .mmp-home-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px 29px!important;background:linear-gradient(115deg,rgba(119,84,195,.17),rgba(181,134,93,.075))!important;border:1px solid var(--editorial-line,#d4c8e0)!important;border-radius:18px!important;}
body .app .mmp-home-hero h1{font-size:calc(clamp(23px,3.6vw,35px) * var(--font-scale, 1))!important;line-height:1.25!important;letter-spacing:-.04em!important;font-weight:750!important;margin:9px 0 10px!important;color:var(--editorial-text,var(--text))!important;}
body .app .mmp-home-hero p{font-size:calc(13px * var(--font-scale, 1))!important;line-height:1.7!important;margin:0!important;color:var(--editorial-muted,var(--muted))!important;}
body .app .mmp-home-kicker{font-size:calc(10px * var(--font-scale, 1))!important;font-weight:800!important;letter-spacing:.16em!important;color:var(--editorial-accent,#7250da)!important;}
body .app .mmp-home-hero-action{flex:0 0 auto;padding:13px 17px!important;font-size:calc(12px * var(--font-scale, 1))!important;font-weight:800!important;border:1px solid var(--editorial-line,#d1c6dd)!important;border-radius:11px!important;background:var(--editorial-card,#fff)!important;color:var(--editorial-accent,#6c4fc1)!important;cursor:pointer;white-space:nowrap;}
body .app .mmp-home-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;margin-top:18px!important;min-width:0!important;}
body .app .mmp-home-card{min-width:0!important;padding:20px!important;background:var(--editorial-card,#fff)!important;border:1px solid var(--editorial-line,#e3dce8)!important;border-radius:15px!important;box-shadow:0 3px 12px rgba(39,25,59,.045)!important;}
body .app .mmp-home-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-bottom:12px!important;}
body .app .mmp-home-heading h2{margin:5px 0 0!important;font-size:calc(18px * var(--font-scale, 1))!important;font-weight:770!important;letter-spacing:-.03em!important;color:var(--editorial-text,var(--text))!important;}
body .app .mmp-home-eyebrow{font-size:calc(9px * var(--font-scale, 1))!important;font-weight:750!important;color:var(--editorial-accent,#7250da)!important;letter-spacing:.12em!important;}
body .app .mmp-home-heading button{border:0!important;box-shadow:none!important;background:transparent!important;color:var(--editorial-accent,#7250da)!important;font-size:calc(11px * var(--font-scale, 1))!important;font-weight:650!important;cursor:pointer;white-space:nowrap;}
body .app .mmp-home-feed{display:flex;flex-direction:column;min-width:0!important;}
body .app .mmp-home-post{width:100%!important;min-width:0!important;display:flex!important;flex-direction:column!important;gap:6px!important;align-items:stretch!important;min-height:57px!important;padding:10px 4px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--editorial-line,#e5e1e9)!important;background:transparent!important;color:var(--editorial-text,var(--text))!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important;}
body .app .mmp-home-post:last-child{border-bottom:none!important;}
body .app .mmp-home-post:hover .mmp-home-post-title{color:var(--editorial-accent,#7250da)!important;text-decoration:underline;}
body .app .mmp-home-post-title{font-size:calc(13px * var(--font-scale, 1))!important;line-height:1.45!important;font-weight:700!important;color:inherit!important;overflow-wrap:anywhere;}
body .app .mmp-home-post-meta{display:flex;flex-wrap:wrap;gap:9px;font-size:calc(10px * var(--font-scale, 1))!important;color:var(--editorial-muted,var(--muted))!important;}
body .app .mmp-home-post-meta>*{font-size:calc(10px * var(--font-scale, 1))!important;color:inherit!important;}
body .app .mmp-home-empty{margin:14px 0 10px!important;font-size:calc(12px * var(--font-scale, 1))!important;line-height:1.7!important;color:var(--editorial-muted,var(--muted))!important;}
body .app .mmp-home-card-subtitle{font-size:calc(11px * var(--font-scale, 1))!important;color:var(--editorial-muted,var(--muted))!important;margin:-5px 0 7px!important;}
body .app .mmp-home-weekly{grid-column:1/-1!important;}
body .app .mmp-home-weekly>p{font-size:calc(12px * var(--font-scale, 1))!important;color:var(--editorial-text,var(--text))!important;}
body .app .mmp-home-status{border-radius:99px;padding:6px 9px;color:var(--editorial-muted,var(--muted));font-size:calc(11px * var(--font-scale, 1));font-weight:700;background:var(--editorial-soft,#eeeaf5);}
body .app .mmp-home-weekly-detail{padding:12px 14px;border-radius:9px;background:var(--editorial-soft,#efeaf9);color:var(--editorial-muted,var(--muted));font-size:calc(12px * var(--font-scale, 1));line-height:1.6;}
body .app .mmp-home-upcoming{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:18px;padding:14px 4px!important;}
body .app .mmp-home-upcoming-heading{font-size:calc(10px * var(--font-scale, 1));font-weight:800;letter-spacing:.09em;color:var(--editorial-muted,var(--muted));margin-right:10px;}
body .app .mmp-home-upcoming-heading span{font-size:calc(10px * var(--font-scale, 1));letter-spacing:normal;font-weight:400;display:block;margin-top:2px;}
body .app .mmp-home-upcoming button{display:inline-flex;gap:8px;align-items:center;padding:9px 12px!important;border:1px solid var(--editorial-line,#e6e1ea)!important;border-radius:10px!important;background:var(--editorial-card,#fff)!important;color:var(--editorial-muted,var(--muted))!important;opacity:.6!important;cursor:not-allowed!important;}
body .app .mmp-home-upcoming button small{font-size:calc(10px * var(--font-scale, 1))!important;}
@media(max-width:760px){
 body .app>.topbar{justify-content:center!important;}
 body .app>.topbar>.brand{flex:1 1 auto!important;}
 body .app>.topbar>.top-actions{flex:1 1 100%!important;justify-content:flex-start!important;}
 body .app #mmpPrimaryNav{justify-content:flex-start!important;}
 body .app #mmpPrimaryNav .settings-mode-switch{justify-content:flex-start!important;}
 body .app #mmpLanding.mmp-community-home{padding:14px 11px 22px!important;}
 body .app .mmp-home-hero{padding:20px!important;flex-direction:column!important;align-items:flex-start!important;}
 body .app .mmp-home-grid{grid-template-columns:1fr!important;gap:12px!important;}
 body .app .mmp-home-weekly{grid-column:1!important;}
 body .app .mmp-home-card{padding:16px!important;}
 body .app #mmpPrimaryNav .mmp-primary-link{padding:0 9px!important;font-size:calc(12px * var(--font-scale, 1))!important;}
 body .app #mmpPrimaryNav .mmp-primary-link strong{font-size:calc(12px * var(--font-scale, 1))!important;}
}

body .app #mmpPrimaryNav #mmpMusicModeBtn{display:none!important;}
/* Prevent legacy 100vh clipping of the fluid community page. */
html{overflow-x:clip!important;overflow-y:auto!important;}
html body .app{max-height:none!important;}
html body .app>.topbar,html body .app>#mmpPrimaryNav{flex-shrink:0!important;}
html body .app>#mmpLanding.mmp-community-home{flex:0 0 auto!important;}
/* STEP 4: the board is a body child, not a direct child of .app. */
html body.mmp-landing-active #communityBoardWorkspace{display:none!important;}
html body.settings-mode-community:not(.mmp-landing-active) .app{min-height:0!important;}
html body.settings-mode-community:not(.mmp-landing-active) #communityBoardWorkspace{position:relative!important;inset:auto!important;width:100%!important;max-width:1100px!important;margin:0 auto!important;height:auto!important;min-height:65vh!important;max-height:none!important;overflow:visible!important;box-sizing:border-box!important;}
@media(max-width:760px){
 html body #communityBoardWorkspace .board-category-tabs{width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

/* STEP 7 legacy ownership recovery controls; no changes to ordinary board buttons. */
.board-legacy-action,.board-comment-legacy-recover,.board-comment-legacy-approve{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:3px 9px;border:1px solid currentColor;border-radius:7px;background:transparent;color:inherit;font:inherit;font-size:calc(12px * var(--font-scale, 1));cursor:pointer;white-space:nowrap}
.board-legacy-action:hover,.board-comment-legacy-recover:hover,.board-comment-legacy-approve:hover{opacity:.78}


/* 2026-10-18: home slogan luxury flash animation */
body .app .mmp-home-hero{position:relative;overflow:hidden;isolation:isolate;}
body .app .mmp-home-hero > *{position:relative;z-index:2;}
body .app .mmp-home-hero::before{
  content:"";
  position:absolute;
  inset:-35% auto -35% -18%;
  width:36%;
  background:linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 24%, rgba(255,255,255,0.36) 50%, rgba(255,255,255,0.1) 72%, rgba(255,255,255,0) 100%);
  transform:translateX(-160%) skewX(-24deg);
  animation:mmpHeroSweep 7.2s ease-in-out infinite;
  pointer-events:none;
  z-index:1;
}
body .app .mmp-home-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 18% 30%, rgba(255,255,255,0.3), transparent 30%),
    radial-gradient(circle at 74% 46%, rgba(148,120,232,0.14), transparent 28%),
    linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
  opacity:.9;
  pointer-events:none;
  z-index:0;
}
body .app .mmp-home-hero h1{
  position:relative;
  display:inline-block;
  background:linear-gradient(100deg,
    var(--editorial-text,var(--text)) 0%,
    var(--editorial-text,var(--text)) 32%,
    rgba(255,255,255,.98) 50%,
    var(--editorial-text,var(--text)) 68%,
    var(--editorial-text,var(--text)) 100%);
  background-size:220% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent !important;
  animation:mmpHeroTitleShine 7.2s ease-in-out infinite;
  text-shadow:0 0 0 rgba(0,0,0,0);
}
body .app .mmp-home-hero p{
  animation:mmpHeroSoftGlow 7.2s ease-in-out infinite;
}
body .app .mmp-home-kicker{
  position:relative;
  display:inline-block;
  text-shadow:0 0 10px rgba(114,80,218,.10);
  animation:mmpHeroKickerPulse 7.2s ease-in-out infinite;
}
body .app .mmp-home-hero-action{
  position:relative;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(114,80,218,.08);
  animation:mmpHeroButtonFloat 4.6s ease-in-out infinite;
}
body .app .mmp-home-hero-action::after{
  content:"";
  position:absolute;
  inset:-2px auto -2px -30%;
  width:34%;
  background:linear-gradient(110deg, rgba(255,255,255,0), rgba(255,255,255,.78), rgba(255,255,255,0));
  transform:translateX(-210%) skewX(-22deg);
  animation:mmpHeroButtonSweep 7.2s ease-in-out infinite;
  pointer-events:none;
}
@keyframes mmpHeroSweep{
  0%, 14%{transform:translateX(-180%) skewX(-24deg); opacity:0;}
  20%{opacity:.95;}
  38%{transform:translateX(390%) skewX(-24deg); opacity:.8;}
  39%, 100%{transform:translateX(390%) skewX(-24deg); opacity:0;}
}
@keyframes mmpHeroTitleShine{
  0%, 14%{background-position:120% 50%;}
  36%{background-position:-20% 50%;}
  100%{background-position:-20% 50%;}
}
@keyframes mmpHeroSoftGlow{
  0%, 100%{opacity:.88; transform:translateY(0);}
  22%{opacity:1; transform:translateY(-1px);}
  34%{opacity:.96; transform:translateY(0);}
}
@keyframes mmpHeroKickerPulse{
  0%, 100%{opacity:.92; letter-spacing:.16em;}
  24%{opacity:1; letter-spacing:.18em;}
  34%{opacity:.96; letter-spacing:.17em;}
}
@keyframes mmpHeroButtonFloat{
  0%,100%{transform:translateY(0); box-shadow:0 10px 24px rgba(114,80,218,.08);}
  50%{transform:translateY(-2px); box-shadow:0 14px 30px rgba(114,80,218,.12);}
}
@keyframes mmpHeroButtonSweep{
  0%, 18%{transform:translateX(-220%) skewX(-22deg); opacity:0;}
  22%{opacity:.95;}
  32%{transform:translateX(430%) skewX(-22deg); opacity:.85;}
  33%, 100%{transform:translateX(430%) skewX(-22deg); opacity:0;}
}
@media (prefers-reduced-motion: reduce){
  body .app .mmp-home-hero::before,
  body .app .mmp-home-hero::after,
  body .app .mmp-home-hero h1,
  body .app .mmp-home-hero p,
  body .app .mmp-home-kicker,
  body .app .mmp-home-hero-action,
  body .app .mmp-home-hero-action::after{
    animation:none !important;
    transform:none !important;
  }
}

/* 2026-10-20: share-only music preview, no player on homepage. */
body .app #mmpHomeShare .mmp-home-share-track{
 width:100%!important;min-width:0;display:flex!important;flex-direction:row!important;
 align-items:center!important;gap:11px!important;min-height:66px!important;
 margin:0!important;padding:9px 4px!important;border:0!important;
 border-bottom:1px solid var(--editorial-line,#e5e1e9)!important;
 background:transparent!important;box-shadow:none!important;text-align:left!important;
 color:var(--editorial-text,var(--text))!important;cursor:pointer!important;
}
body .app #mmpHomeShare .mmp-home-share-track:last-child{border-bottom:0!important;}
body .app #mmpHomeShare .mmp-home-share-track:hover .mmp-home-share-title{text-decoration:underline;color:var(--editorial-accent,#7250da);}
body .app #mmpHomeShare .mmp-home-share-cover{
 display:flex;align-items:center;justify-content:center;flex:0 0 52px;width:52px;height:52px;
 border-radius:10px;overflow:hidden;color:var(--editorial-accent,#7250da);
 font-size:24px;background:var(--editorial-soft,#f2edfb);
}
body .app #mmpHomeShare .mmp-home-share-cover img{width:100%;height:100%;display:block;object-fit:cover;}
body .app #mmpHomeShare .mmp-home-share-info{display:flex;flex:1;flex-direction:column;gap:6px;min-width:0;}
body .app #mmpHomeShare .mmp-home-share-title{display:block;font-size:calc(13px * var(--font-scale, 1));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:750;}
body .app #mmpHomeShare .mmp-home-share-author{font-size:calc(11px * var(--font-scale, 1));color:var(--editorial-muted,#787087);}
/* Statistics live outside the central content column only when desktop space permits. */
body #mmpGenreInsights{
 box-sizing:border-box;padding:15px 14px;margin:12px 0 0;
 border:1px solid var(--editorial-line,#ded7ec);border-radius:14px;
 background:var(--editorial-card,#fff);box-shadow:0 3px 14px rgba(30,21,53,.06);
 min-width:0;color:var(--editorial-text,#282333);
}
body .app .mmp-genre-insights-caption{margin:0 0 6px;font-size:calc(10px * var(--font-scale, 1));color:var(--editorial-muted,#6e6880);}
body .app .mmp-genre-insights h2{font-size:calc(15px * var(--font-scale, 1));margin:0 0 16px;font-weight:800;}
body .app .mmp-genre-insights-columns,.mmp-genre-insights-item{display:flex;align-items:center;justify-content:space-between;gap:8px;}
body .app .mmp-genre-insights-columns{font-size:calc(10px * var(--font-scale, 1));color:var(--editorial-muted,#6e6880);padding-bottom:8px;border-bottom:1px solid var(--editorial-line,#eee);}
body .app .mmp-genre-insights-item{font-size:calc(12px * var(--font-scale, 1));padding:9px 0 4px;}
body .app .mmp-genre-insights-item>span:first-child{font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
body .app .mmp-genre-insights-values{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:calc(11px * var(--font-scale, 1));}
body .app .mmp-genre-insights-bar{height:4px;border-radius:4px;background:var(--editorial-soft,#eeeafa);overflow:hidden;}
body .app .mmp-genre-insights-fill{height:100%;border-radius:4px;background:var(--editorial-accent,#7557cf);}
body .app .mmp-genre-insights-empty{color:var(--editorial-muted,#777);font-size:calc(11px * var(--font-scale, 1));line-height:1.6;}
@media(min-width:1660px){
 body #mmpGenreInsights{
  position:absolute;top:182px;right:calc(100% + 12px);width:min(245px,calc((100vw - 1120px) / 2 - 18px));margin:0;
 }
}
@media(min-width:760px) and (max-width:1659px){body #mmpGenreInsights{max-width:360px;}}

/* 2026-10-20: Keep the left genre insights visible like the fixed profile panel.
   No server polling, DOM hooks, or extra API traffic is involved. */
@media(min-width:1660px){
 body #mmpGenreInsights{
  position:fixed!important;
  top:126px!important;
  left:calc(50vw - 819px)!important;
  right:auto!important;
  width:min(245px,calc((100vw - 1120px) / 2 - 18px))!important;
  max-height:calc(100dvh - 142px);
  overflow-y:auto;overscroll-behavior:contain;
  z-index:8!important;
 }
}
/* Genre statistics: understated music-chart colors instead of a flat white box. */
body #mmpGenreInsights{
  position:relative;
  isolation:isolate;
  padding:17px 14px 15px;
  border-color:color-mix(in srgb,var(--editorial-accent,#7557cf) 29%,var(--editorial-line,#ded7ec));
  background:linear-gradient(150deg,var(--editorial-card,#fff) 38%,var(--editorial-soft,#f0ebff));
  box-shadow:0 10px 25px rgba(78,53,137,.10),inset 0 1px rgba(255,255,255,.09);
}
body #mmpGenreInsights::before{
  content:'';position:absolute;top:0;left:17px;right:17px;height:3px;
  background:linear-gradient(90deg,#7152d8,#a18cf5 55%,#e8b866);
  border-radius:0 0 8px 8px;pointer-events:none;
}
body .app .mmp-genre-insights-caption{
  color:var(--editorial-accent,#6d50d5)!important;
  font-weight:800;letter-spacing:.025em;
  font-size:calc(10px * var(--font-scale,1));
}
body .app .mmp-genre-insights h2{
  display:flex;align-items:center;gap:6px;
  font-size:calc(16px * var(--font-scale,1));margin-bottom:15px;
}
body .app .mmp-genre-insights h2::before{content:'♫';color:#8663e2;font-size:1.1em;}
body .app .mmp-genre-insights-columns{font-weight:700;}
body .app .mmp-genre-insights-item{
  padding:8px 5px 4px;gap:5px;border-radius:8px;
}
body .app .mmp-genre-insights-item>span:first-child{
  padding:3px 5px;border-radius:6px;
  color:var(--editorial-text,#282333);
  font-weight:750;
}
body .app .mmp-genre-insights-item:nth-of-type(1){background:color-mix(in srgb,#d4a240 12%,transparent);}
body .app .mmp-genre-insights-item:nth-of-type(1)>span:first-child{color:color-mix(in srgb,#b47a12 85%,var(--editorial-text,#292233));}
body .app .mmp-genre-insights-item:nth-of-type(3)>span:first-child{color:var(--editorial-accent,#6746ca);}
body .app .mmp-genre-insights-item:nth-of-type(5)>span:first-child{color:color-mix(in srgb,#267aa9 80%,var(--editorial-text,#292233));}
body .app .mmp-genre-insights-values{color:var(--editorial-text,#292233);font-weight:800;}
body .app .mmp-genre-insights-bar{height:6px;margin:2px 5px 5px;border-radius:99px;background:color-mix(in srgb,var(--editorial-accent,#7557cf) 11%,transparent);}
body .app .mmp-genre-insights-bar .mmp-genre-insights-fill{background:linear-gradient(90deg,#6e50c9,#aa90ee);}
body .app .mmp-genre-insights-bar:nth-of-type(2) .mmp-genre-insights-fill{background:linear-gradient(90deg,#bf8c2d,#e9c16b);}
body .app .mmp-genre-insights-bar:nth-of-type(6) .mmp-genre-insights-fill{background:linear-gradient(90deg,#3476b2,#7cbde5);}
body .app .mmp-genre-insights-bar:nth-of-type(8) .mmp-genre-insights-fill{background:linear-gradient(90deg,#328c88,#79c5b6);}
body .app .mmp-genre-insights-bar:nth-of-type(10) .mmp-genre-insights-fill{background:linear-gradient(90deg,#8c5ac4,#b996ed);}

/* 2026-10-20: Genre card is anchored to the SAME outer shell edge as
   the central .app. Never anchor it to the viewport's leftmost pixel.
   The existing profile sidebar uses --mmp-shell-edge for its alignment.
   Reserve a 12px gap to avoid covering the weekly TOP 3 content. */
@media (min-width:1900px){
  html body #mmpGenreInsights{
    --mmp-genre-side-width:min(245px,calc(var(--mmp-shell-edge) - 28px));
    position:fixed!important;
    top:126px!important;
    bottom:auto!important;
    left:calc(var(--mmp-shell-edge) - var(--mmp-genre-side-width) - 12px)!important;
    right:auto!important;
    width:var(--mmp-genre-side-width)!important;
    max-width:245px!important;
    margin:0!important;
    box-sizing:border-box!important;
    max-height:calc(100dvh - 142px)!important;
    overflow-y:auto!important;
    z-index:8!important;
  }
}
/* There is not enough room beside the app on narrow viewports.
   Place the card in the document, keeping chart and profile unobstructed. */
@media (max-width:1899px){
  html body #mmpGenreInsights{
    position:relative!important;
    inset:auto!important;
    width:min(100%,360px)!important;
    max-width:100%!important;
    max-height:none!important;
    overflow:visible!important;
    margin:12px 0 16px!important;
    z-index:auto!important;
  }
}

/* 2026-10-20: balance the three visible home columns as ONE group.
   Keep the center/profile widths and side gaps unchanged; move the app and
   profile by equal amounts in the SAME direction, without moving other views. */
@media (min-width:1900px){
  html body{
    --mmp-home-rail-width:min(245px,calc(var(--mmp-shell-edge) - 28px));
    --mmp-home-shift:calc((var(--mmp-home-rail-width) + 12px)/2);
  }
  html body .app{
    margin-left:calc(var(--mmp-shell-edge) + var(--mmp-home-shift))!important;
  }
  html body .mmp-personal-sidebar{
    right:calc(var(--mmp-shell-edge) - var(--mmp-home-shift))!important;
  }
  html body .mmp-profile-live-controls .realtime-users-popover{
    right:calc(var(--mmp-shell-edge) - var(--mmp-home-shift) + var(--mmp-profile-width) + 12px)!important;
  }
  html body #mmpGenreInsights{
    --mmp-genre-side-width:var(--mmp-home-rail-width);
    left:calc(var(--mmp-shell-edge) + var(--mmp-home-shift) - var(--mmp-home-rail-width) - 12px)!important;
  }
}

/* Keep genre statistics available on every workspace, including compact screens. */
@media(max-width:1899px){html body #mmpGenreInsights{margin:12px auto 16px!important;position:relative!important;inset:auto!important;}}

/* Keep the existing lavender Home button, with a consistent 26px house icon. */
body .app #mmpPrimaryNav .mmp-primary-link[data-page="home"] .mmp-home-house-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex:0 0 26px;}
body .app #mmpPrimaryNav .mmp-primary-link[data-page="home"] .mmp-home-house-icon svg{display:block;width:26px;height:26px;stroke:currentColor;fill:none;}

/* Hide informational green board counts; preserve loading and error states. */
#communityBoardWorkspace .board-status.is-connected{display:none!important;}

/* Board successful count/status: hide UI only; preserve loading and errors. */
body #communityBoardWorkspace #boardStatus.board-status.is-connected{display:none!important;}
