/* ISOLDE RADIO — Community navigation, official light theme.
   Scoped to Community: does not alter ARTISTS or MUSIC LIBRARY.
   Dark mode can later override these colors with theme variables. */
#social-content {
  --community-nav-bg: #fff;
  --community-nav-fg: #111;
  --community-nav-muted: #424242;
  --community-nav-accent: var(--blue, #00aeef);
}
#social-content .community-sidebar {
  background: var(--community-nav-bg);
  color: var(--community-nav-fg);
  border: 1px solid #222;
  border-radius: 2px;
  box-shadow: 5px 5px 0 var(--community-nav-accent);
}
#social-content .community-sidebar::before { background: transparent; }
#social-content .community-sidebar-heading {
  color: #171717;
  border-bottom: 1px solid #b9b9b9;
  padding-bottom: 7px;
}
#social-content .community-nav-item {
  color: var(--community-nav-fg);
  background: transparent;
  border-color: transparent;
  border-left-color: transparent;
}
#social-content .community-nav-item:hover,
#social-content .community-nav-item:focus-visible {
  color: #111;
  background: #eaf8fe;
  border-color: #9adff6;
  border-left-color: var(--community-nav-accent);
}
#social-content .community-nav-item.is-active {
  color: #111;
  background: var(--community-nav-accent);
  border-color: #111;
  border-left-color: #111;
  box-shadow: 3px 3px 0 #111;
}
#social-content .community-fullscreen-toggle {
  background: var(--community-nav-accent);
  color: #111;
  border: 2px solid #111;
  box-shadow: 3px 3px 0 #111;
}
#social-content .community-fullscreen-toggle:hover,
#social-content .community-fullscreen-toggle:focus-visible {
  background: #eaf8fe;
  color: #111;
}

/* PATCH 03 — angled lime editorial section labels */
#social-content .community-sidebar-heading {
  display:table;
  width:max-content;
  max-width:calc(100% - 16px);
  box-sizing:border-box;
  background:#d9ff00;
  color:#111;
  padding:6px 10px 5px;
  margin:18px 0 14px 5px;
  border:0;
  border-radius:0;
  box-shadow:none;
  transform:rotate(-3deg);
  transform-origin:left center;
  font-size:11px;
  font-weight:900;
  letter-spacing:.11em;
  line-height:1.2;
  text-transform:uppercase;
}

/* PATCH 04: match the tilted lime ISOLDE COMMUNITY sticker. */
#social-content .community-sidebar .community-sidebar-heading {
 display:table!important;width:max-content!important;max-width:calc(100% - 16px)!important;
 background:#d9ff00!important;color:#111!important;border:1px solid #111!important;
 border-radius:0!important;box-shadow:2px 3px 0 #111!important;
 padding:6px 10px!important;margin:19px 0 16px 5px!important;
 transform:rotate(-3deg)!important;transform-origin:left center!important;
 font-size:11px!important;font-weight:900!important;letter-spacing:.11em!important;
 line-height:1.2!important;text-transform:uppercase!important;
}
#social-content .community-main .mm-community-discovery{min-width:0;max-width:100%}
#social-content .community-main .mm-community-discovery>h2{margin:0 0 10px}
#social-content .community-main .mm-community-results{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}
#social-content .community-main .mm-community-results .mm-playlist-art{width:100%;max-width:100%;aspect-ratio:1;overflow:hidden}
#social-content .community-main .mm-community-results .mm-playlist-art img{width:100%;height:100%;object-fit:cover}

/* PATCH 05 — align search/sort with other Community headers */
#social-content .community-main .mm-community-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
#social-content .community-main .mm-community-topbar>div:first-child{flex:1;min-width:180px}
#social-content .community-main .mm-community-topbar h2{margin:0 0 8px}
#social-content .community-main .mm-community-topbar p{margin:0 0 14px}
#social-content .community-main .mm-community-topbar .mm-discover-controls{margin:0 0 16px;justify-content:flex-end;align-items:flex-end}
#social-content .community-main .mm-community-topbar .mm-discover-controls input{min-width:200px}
#social-content .community-main .mm-community-topbar .mm-discover-controls select{min-width:150px}
@media(max-width:750px){#social-content .community-main .mm-community-topbar{flex-direction:column}#social-content .community-main .mm-community-topbar .mm-discover-controls{justify-content:flex-start;width:100%}}

/* PATCH 06 — align playlist discovery with the top of the Community menu */
@media(min-width:761px){
 #social-content .community-layout:has(.mm-community-discovery) > .community-sidebar{margin-top:35px!important}
 #social-content .community-main:has(.mm-community-discovery){padding-top:0!important}
 #social-content .mm-community-discovery .mm-community-topbar{margin-top:-10px!important}
 #social-content .mm-community-discovery .mm-community-results{margin-top:0!important}
}

/* PATCH 07 — lift discovery title and cards together, align first card to sidebar top */
@media(min-width:761px){
 #social-content .community-main:has(.mm-community-discovery){position:relative;top:-35px}
 #social-content .community-main .mm-community-discovery .mm-community-results{margin-top:0!important}
}

/* PATCH 09 — compact masonry only in Community feeds.
   Do not affect public artist profiles, standalone posts or playlist cards. */
#community-body > .social-grid {
  display:block!important;
  column-count:3;
  column-gap:18px;
  width:100%;
}
#community-body > .social-grid > .social-post {
  display:flex;
  flex-direction:column;
  box-sizing:border-box;
  width:100%;
  max-width:none;
  min-width:0;
  min-height:0!important;
  height:auto!important;
  margin:0 0 18px;
  break-inside:avoid;
  -webkit-column-break-inside:avoid;
  page-break-inside:avoid;
}
#community-body > .social-grid .social-comments-preview {
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin-top:0;
  overflow:visible!important;
}
#community-body > .social-grid .social-post form { margin-top:0; }
@media(max-width:1150px){#community-body > .social-grid{column-count:2}}
@media(max-width:650px){#community-body > .social-grid{column-count:1}}
