/* 2026-10-25: PC-only share board gallery; all other categories retain their list view. */
#communityBoardWorkspace .community-board-view.is-share-gallery .board-list-head {display:none!important;}
#communityBoardWorkspace .community-board-view.is-share-gallery #boardPostList {
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;
 padding:22px;align-items:start;min-width:0;
}
#communityBoardWorkspace .community-board-view.is-share-gallery #boardPostList>.board-empty {grid-column:1/-1;}
#communityBoardWorkspace .board-gallery-card {
 appearance:none;display:flex;flex-direction:column;text-align:left;min-width:0;width:100%;padding:0;
 border:1px solid rgba(128,103,201,.2);border-radius:15px;overflow:hidden;
 background:var(--card,#fff);color:var(--text,#282434);cursor:pointer;
 box-shadow:0 4px 20px rgba(30,24,48,.075);transition:transform .16s,border-color .16s,box-shadow .16s;
}
#communityBoardWorkspace .board-gallery-card:hover,
#communityBoardWorkspace .board-gallery-card:focus-visible {
 transform:translateY(-3px);border-color:rgba(128,103,201,.55);
 box-shadow:0 12px 28px rgba(54,32,96,.15);outline-offset:2px;
}
#communityBoardWorkspace .board-gallery-art {
 display:grid;place-items:center;position:relative;isolation:isolate;overflow:hidden;width:100%;aspect-ratio:1/1;
 background:linear-gradient(140deg,#ddd8f1,#bcb0df 50%,#8f83bb);color:#fff;
}
#communityBoardWorkspace .board-gallery-placeholder {
 display:grid;place-items:center;width:100%;height:100%;font-size:74px;
 color:rgba(255,255,255,.7);
}
#communityBoardWorkspace .board-gallery-placeholder img {
 display:block;width:100%;height:100%;object-fit:cover;
}
#communityBoardWorkspace .board-gallery-play {
 position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-40%);
 opacity:0;white-space:nowrap;background:rgba(16,12,28,.82);color:#fff;
 padding:11px 18px;border-radius:50px;font-size:calc(13px * var(--font-scale,1));font-weight:750;
 pointer-events:none;transition:opacity .15s,transform .15s;
}
#communityBoardWorkspace .board-gallery-card:hover .board-gallery-play,
#communityBoardWorkspace .board-gallery-card:focus-visible .board-gallery-play {opacity:1;transform:translate(-50%,-50%);}
#communityBoardWorkspace .board-gallery-info {display:flex;flex-direction:column;gap:6px;min-width:0;width:100%;padding:13px 14px 15px;}
#communityBoardWorkspace .board-gallery-kicker {
 align-self:flex-start;font-size:calc(10px * var(--font-scale,1));font-weight:800;letter-spacing:.055em;
 color:#7653b8;
}
#communityBoardWorkspace .board-gallery-title {
 display:block;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
 font-size:calc(16px * var(--font-scale,1));line-height:1.4;color:var(--text,#282434);
}
#communityBoardWorkspace .board-gallery-author {
 color:var(--muted,#666);font-size:calc(12px * var(--font-scale,1));
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#communityBoardWorkspace .board-gallery-meta {
 display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:4px;
 color:var(--muted,#666);font-size:calc(12px * var(--font-scale,1));font-weight:650;
}
#communityBoardWorkspace .board-gallery-meta span:first-child {color:#c24e77;}
#communityBoardWorkspace .board-gallery-card.is-global-notice{border-color:rgba(218,169,53,.8);}
#communityBoardWorkspace .board-gallery-card.is-board-notice{border-color:rgba(59,165,219,.6);}
body:not(.light-theme) #communityBoardWorkspace .board-gallery-card {background:#221d2b;color:#e9e5f1;border-color:#4c405f;}
body:not(.light-theme) #communityBoardWorkspace .board-gallery-kicker {color:#cbb5ff;}
body:not(.light-theme) #communityBoardWorkspace .board-gallery-title {color:#f1edf8;}
body:not(.light-theme) #communityBoardWorkspace .board-gallery-meta,
body:not(.light-theme) #communityBoardWorkspace .board-gallery-author {color:#b9b0c8;}
#communityBoardWorkspace .board-gallery-pagination[hidden] {display:none!important;}
#communityBoardWorkspace .board-gallery-pagination {
 padding:4px 22px 24px;display:flex;flex-direction:column;align-items:center;gap:13px;
}
#communityBoardWorkspace .board-gallery-page-summary{font-size:calc(12px * var(--font-scale,1));color:var(--muted,#666);}
#communityBoardWorkspace .board-gallery-pages{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;}
#communityBoardWorkspace .board-gallery-page {
 width:37px;height:37px;min-width:37px;min-height:37px;padding:0;display:grid;place-items:center;
 border:1px solid rgba(128,103,201,.25);border-radius:9px;background:transparent;
 color:var(--text,#282434);font-weight:750;cursor:pointer;
}
#communityBoardWorkspace .board-gallery-page.is-current {background:#7753b8;color:#fff;border-color:#7753b8;}
#communityBoardWorkspace .board-gallery-page:disabled {opacity:.32;cursor:default;}
#communityBoardWorkspace .board-gallery-page:not(:disabled):hover{border-color:#7753b8;}
#communityBoardWorkspace .board-gallery-ellipsis{color:var(--muted,#666);padding:0 3px;}
body:not(.light-theme) #communityBoardWorkspace .board-gallery-page{color:#e9e5f1;}
body:not(.light-theme) #communityBoardWorkspace .board-gallery-page.is-current{color:#fff;}

/* Share-only category choices above the desktop gallery. Other boards are untouched. */
#communityBoardWorkspace .board-share-category-filter {display:none;}
#communityBoardWorkspace .community-board-view.is-share-gallery .board-share-category-filter {
 display:flex;align-items:center;flex-wrap:wrap;gap:9px;
 padding:16px 22px 0;
}
#communityBoardWorkspace .board-share-filter-label {
 color:var(--muted,#666);font-size:calc(13px * var(--font-scale,1));font-weight:750;margin-right:6px;
}
#communityBoardWorkspace .board-share-filter-button {
 appearance:none;border:1px solid rgba(128,103,201,.28);border-radius:9px;
 background:transparent;color:var(--text,#282434);cursor:pointer;
 padding:8px 17px;font-size:calc(13px * var(--font-scale,1));font-weight:700;
 transition:background .15s,border-color .15s,color .15s;
}
#communityBoardWorkspace .board-share-filter-button:hover {border-color:#7653b8;}
#communityBoardWorkspace .board-share-filter-button.is-active {
 background:#7050d9;border-color:#7050d9;color:#fff;
}
#communityBoardWorkspace .board-gallery-kicker {
 padding:4px 8px;border-radius:6px;background:rgba(111,80,217,.10);
 font-size:calc(11px * var(--font-scale,1));letter-spacing:0;
}
#communityBoardWorkspace .board-gallery-kicker.is-comparison {
 background:rgba(39,145,172,.12);color:#217c9c;
}
body:not(.light-theme) #communityBoardWorkspace .board-share-filter-button {color:#e9e5f1;}
body:not(.light-theme) #communityBoardWorkspace .board-share-filter-button.is-active {color:#fff;}
body:not(.light-theme) #communityBoardWorkspace .board-gallery-kicker.is-comparison {color:#80d6ed;}

/* Share-gallery card metadata: category left, source platform right. */
#communityBoardWorkspace .board-gallery-kicker-row {
 display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;width:100%;
}
#communityBoardWorkspace .board-gallery-source {
 display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;
 border-radius:6px;padding:4px 8px;font-size:calc(11px * var(--font-scale,1));
 line-height:normal;font-weight:800;
}
#communityBoardWorkspace .board-gallery-source.is-suno {background:rgba(137,76,195,.12);color:#8544b6;}
#communityBoardWorkspace .board-gallery-source.is-youtube {background:rgba(208,47,63,.10);color:#bf3042;}
body:not(.light-theme) #communityBoardWorkspace .board-gallery-source.is-suno {color:#e0b5ff;}
body:not(.light-theme) #communityBoardWorkspace .board-gallery-source.is-youtube {color:#ffabb4;}

/* YouTube HQ thumbnails can contain baked-in black letterbox bands.
   Crop only gallery YouTube covers; Suno images and card dimensions stay unchanged. */
#communityBoardWorkspace .board-gallery-card.is-youtube-thumbnail .board-gallery-placeholder img {
 transform:scale(1.34);
 transform-origin:center center;
}

/* Unified free board: keep category filters visible in both text and music layouts. */
#communityBoardWorkspace .community-board-view[data-view="list"] .board-share-category-filter {display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:16px 22px 12px;}
#communityBoardWorkspace #boardUnifiedPostCategoryField select {width:100%;min-height:40px;border-radius:8px;border:1px solid #c8c3d5;padding:8px;background:#fff;color:#282434;}
#communityBoardWorkspace #boardUnifiedPostCategoryField[hidden]{display:none!important;}

#communityBoardWorkspace .board-category-tab[hidden] {display:none!important;}

#communityBoardWorkspace #boardShareCategoryFilters[hidden]{display:none!important;}
