.community-empty[hidden]{display:none!important}
#community .showcase-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
#community .showcase-toolbar>span{color:var(--muted,#777168);font-size:12px}
#community .showcase-navigation{display:flex;gap:8px;margin-left:auto}
#community .showcase-navigation button{width:40px;height:40px;border:1px solid currentColor;border-radius:50%}
#community .community-previous svg{transform:rotate(180deg)}
#community .showcase-navigation button:disabled{opacity:.35;cursor:default}
#community .showcase-viewport{width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:2px;scrollbar-width:thin;padding:4px 0 16px}
#community .showcase-track{display:flex;width:max-content;gap:16px}
#community .showcase-track .world-card{flex:0 0 auto;width:clamp(320px,34vw,520px);min-width:0;scroll-snap-align:start}
#community .world-visual{aspect-ratio:20/11;position:relative;container-type:inline-size}
#community .world-visual video,#community .world-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#community .world-card-caption>div{min-width:0}#community .world-category{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
#community .world-card-caption small{display:block;font-size:11px;opacity:.65;margin-top:5px}
#community .card-play.preview-playing{opacity:0}#community .world-visual:hover .card-play.preview-playing,#community .world-visual:focus-visible .card-play.preview-playing{opacity:1}
.community-preview-overlay{position:absolute;left:5%;right:5%;bottom:8%;z-index:2;color:white;text-align:left;text-shadow:0 1px 4px #000;pointer-events:none;font-family:system-ui,sans-serif}
.community-preview-overlay span{font-size:2cqw;font-weight:600}.community-preview-overlay p{font-size:2.5cqw;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:3px 0 7px}.community-preview-overlay i{display:block;height:2px;background:#fff;max-width:100%}
.community-pick-dialog{position:fixed;width:min(1360px,96vw);height:min(780px,92dvh);max-width:none;max-height:none;padding:0;border:1px solid #63727c;border-radius:16px;background:#0b1016;overflow:hidden}
.community-pick-dialog::backdrop{background:#04111dd9;backdrop-filter:blur(7px)}.community-pick-dialog iframe{width:100%;height:100%;border:0}
.community-pick-close{position:absolute;right:12px;top:10px;z-index:5;background:#17232ee6;border:1px solid #657584;color:#fff;border-radius:50%;font-size:25px;width:38px;height:38px;cursor:pointer}
@media(max-width:600px){#community .showcase-track .world-card{width:min(320px,78vw)}.community-pick-dialog{height:92dvh;width:96vw}}

/* Match the shared gallery playback state; keep the poster until playback starts. */
#community .community-pick-frame > video { opacity: 0; transition: opacity 160ms ease; }
#community .community-pick-frame.preview-active > video { opacity: 1; }
#community .community-preview-overlay { bottom: 0; left: 0; right: 0; padding: 12% 5% 5%; background: linear-gradient(transparent, rgb(0 0 0 / 65%)); }
#community .community-preview-overlay span { font-size: clamp(9px, 2cqw, 12px); }
#community .community-preview-overlay p { font-size: clamp(11px, 2.5cqw, 14px); }
.community-pick-dialog { border-color: #dce4df; border-radius: 20px; box-shadow: 0 24px 80px rgb(10 30 20 / 24%); }
.community-pick-dialog::backdrop { background: rgb(10 25 17 / 48%); }
.community-pick-close { width: 42px; height: 42px; }
.community-pick-close:focus-visible { outline: 2px solid #c9f26a; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { #community .community-pick-frame > video { transition: none; } }
