/* Kompaktna mreža objava u zajednici; privatne poruke i ostale stranice ostaju nepromijenjene. */
[data-ebc-app][data-view="feed"] [data-stream]{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start;
}
[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post{
 min-width:0;margin:0!important;padding:10px!important;overflow:hidden;
}
[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post .ebc-post-head{gap:6px;margin-bottom:7px;align-items:start;}
[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post .ebc-author{gap:6px;min-width:0;}
[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post .ebc-author strong{font-size:11px;line-height:1.2;}
[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post .ebc-author small{font-size:9px;}
[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post .ebc-avatar{width:28px!important;height:28px!important;}
[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post .ebc-post-text{font-size:12px;line-height:1.5;max-height:4.5em;overflow:hidden;overflow-wrap:anywhere;margin:5px 0;}
[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post .ebc-post-image,
[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post .ebc-post-video{
 display:block;width:100%!important;height:145px!important;max-height:145px!important;object-fit:cover;
 border-radius:8px;margin:8px 0;background:#09060f;
}
[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post .ebc-photo-link{cursor:zoom-in;}
[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post .ebc-post-video{object-fit:contain!important;cursor:pointer;background:#000;}
@media(max-width:600px){.eb-community-viewer{padding:54px 6px 8px;}.eb-community-viewer video{max-height:calc(100dvh - 76px);max-width:100%;}}
[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post .ebc-post-actions{gap:2px 5px;padding-top:5px;margin-top:6px;}
[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post .ebc-post-actions button{font-size:10px;padding:4px 2px;}
[data-ebc-app][data-view="feed"] [data-stream]>.ebc-empty{grid-column:1/-1;}
@media(max-width:1100px){[data-ebc-app][data-view="feed"] [data-stream]{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:480px){[data-ebc-app][data-view="feed"] [data-stream]{gap:8px;}[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post{padding:8px!important;}[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post .ebc-post-image,[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post .ebc-post-video{height:125px!important;max-height:125px!important;}}
.eb-community-viewer{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:44px 16px 16px;background:rgba(0,0,0,.93);}
.eb-community-viewer.is-open{display:flex;}
.eb-community-viewer img,.eb-community-viewer video{display:block;max-width:100%;max-height:calc(100dvh - 65px);width:auto;height:auto;object-fit:contain;}.eb-community-viewer video{width:auto;max-width:min(100%,100vw);height:auto;max-height:calc(100dvh - 70px);background:#000;aspect-ratio:auto;}
.eb-community-viewer button{position:absolute;right:12px;top:10px;background:#2d1933;color:white;border:1px solid #a35d89;border-radius:50%;width:40px;height:40px;font-size:27px;cursor:pointer;}

.eb-premium-video-shortcut{display:none!important;}
/* Vrste objava */
.eb-community-filter{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 16px;}
.eb-community-filter button{background:#25132a;color:#f7e7f2;border:1px solid #6a3862;border-radius:10px;padding:10px 15px;font-size:13px;cursor:pointer;min-height:42px;}
.eb-community-filter button[aria-pressed="true"]{background:linear-gradient(115deg,#b52083,#7026a4);border-color:#ed60ba;color:white;}
[data-ebc-app][data-view="feed"] [data-stream]>.ebc-post[hidden]{display:none!important;}

/* Sklopljeni obrazac za novu objavu */
.eb-community-compose-panel{margin:8px 0 18px;}
.eb-community-compose-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;background:linear-gradient(110deg,#df238e,#962ec4);color:#fff;border:0;border-radius:12px;font-size:14px;font-weight:700;cursor:pointer;}
.eb-community-compose-panel>.ebc-composer{margin:12px 0 0!important;}
.eb-community-compose-panel>.ebc-composer[hidden]{display:none!important;}
/* Hide only the feed post composer before initialization; story composer remains in its own details. */
[data-ebc-app][data-view="feed"] form.ebc-composer:has(input[name="kind"][value="post"]):not(.ebc-compose-open){display:none!important;}
[data-ebc-app][data-view="feed"] .eb-community-compose-panel form.ebc-composer:not([hidden]){display:grid!important;}

