/* Story discovery matches the supplied masonry reference. Playback stays on detail. */
.reference-stories .stories-reference-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.reference-stories .stories-reference-toolbar>[data-liked]{margin-left:auto;border:1px solid #e8d9ef;background:#fff;color:#992bc7}
.reference-stories .stories-reference-toolbar>[data-create]{margin-left:0;background:#9828cf;color:white}
.reference-stories .stories-reference-toolbar>[data-popular],.reference-stories .stories-reference-toolbar>[data-refresh]{font-size:12px;min-height:36px;padding:7px 10px}
.reference-stories .stories-gallery>.live-grid{display:block;columns:4;column-gap:20px;margin:0;max-width:none}
.story-preview{display:inline-block;vertical-align:top;width:100%;break-inside:avoid;margin:0 0 22px;background:transparent;border:0;box-shadow:none}
.story-preview-open{position:relative;display:block;width:100%;border-radius:18px;overflow:hidden;background:#f0e8f6;text-decoration:none;color:#876496;isolation:isolate}
.story-preview-open:has(video),.story-preview-open:has(.story-preview-placeholder){aspect-ratio:9/16}
.story-preview-open img{display:block;width:100%;height:auto;min-height:120px;max-height:560px;object-fit:cover}
.story-preview-open video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.story-preview-placeholder{display:grid;place-items:center;height:100%;padding:16px;box-sizing:border-box;font-size:14px;text-align:center}
.story-preview-badge{position:absolute;top:10px;left:10px;color:#fff;text-shadow:0 1px 4px #0009;font:600 11px/18px Manrope,Arial,sans-serif;background:#0002;padding:0 4px;border-radius:4px;pointer-events:none}
.story-preview-footer{display:flex;align-items:center;gap:8px;min-height:44px;padding:2px 4px}
.story-preview-author{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#292630;text-decoration:none;font:600 13px/20px Manrope,Arial,sans-serif}
.story-preview-like{flex:none;margin-left:auto;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:10px;background:transparent;color:#b936d3;cursor:pointer}
.story-preview-like svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.story-preview-like[aria-pressed=true] svg{fill:#cc3dda;filter:drop-shadow(0 2px 2px #9e28b323)}
.story-preview-like:hover{background:#f2e5f9}.story-preview-like:disabled{opacity:.5;cursor:default}
.reference-stories .stories-gallery>.live-grid>.live-empty{column-span:all}
.reference-stories.reference-story-detail .story-detail-feed{display:grid;grid-template-columns:minmax(0,480px);justify-content:center;max-width:none;margin:20px auto}
@media(max-width:1100px){.reference-stories .stories-gallery>.live-grid{columns:3;column-gap:16px}}
@media(max-width:800px){
 .reference-stories.app-feed .browse-head{display:flex}
 .reference-stories.app-feed main>.stories-reference-toolbar{border:0;gap:6px;margin-bottom:20px}
 .reference-stories.app-feed main>.stories-reference-toolbar button{border-radius:11px;padding:9px 11px;font-size:12px;min-height:40px}
 .reference-stories.app-feed main>.stories-reference-toolbar [data-create]{display:inline-flex;background:#9828cf;color:white}
 .reference-stories.app-feed main>.stories-reference-toolbar [data-liked]{margin-left:0}
 .reference-stories.app-feed main>.stories-reference-toolbar [data-refresh]{margin-left:0}
 .reference-stories .stories-gallery>.live-grid{columns:2;column-gap:14px}
 .story-preview{margin-bottom:16px}.story-preview-open{border-radius:15px}
}
@media(max-width:360px){.reference-stories .stories-gallery>.live-grid{column-gap:10px}.story-preview-author{font-size:12px}.story-preview-like{width:34px}}
