/* ---------- feed: destaques, filtros e publicações em cartões com foto ---------- */
#feed { background: var(--screen); }
.feed-head .icon-btn.round { background: var(--surface); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); color: var(--brand); }
.feed-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 0 120px; }
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 10px 20px 20px; }
.story { flex: none; width: 64px; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: rise-in .45s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 50ms + 80ms); }
.story small { font-size: 12px; font-weight: 500; color: var(--sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.story-ring { position: relative; width: 64px; height: 64px; border-radius: 50%; padding: 2px; background: var(--brand); display: grid; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.story:active .story-ring { transform: scale(.92); }
.story-ring { overflow: hidden; }
.story-ring img, .story-av { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); border-radius: 50%; object-fit: cover; border: 2.5px solid var(--screen); }
.story-av { display: grid; place-items: center; background: var(--surface); color: var(--brand); font-size: 22px; font-weight: 800; }
.story.mine .story-ring { background: var(--line); }
.story.mine i { position: absolute; right: -1px; bottom: -1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; border: 2.5px solid var(--screen); }
/* publicação sem caixa: cabeçalho enxuto, foto grande arredondada e uma linha fina separando */
.posts { display: flex; flex-direction: column; padding: 0 20px; }
.post { padding: 16px 0 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; animation: rise-in .5s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.post:first-child { border-top: 0; padding-top: 4px; }
/* autor sobre a foto, em cima, com um degradê escuro só no topo */
.post-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); background: var(--fill); cursor: pointer; }
.post-photo::before { content: ""; position: absolute; inset: 0 0 auto; height: 96px; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,0)); pointer-events: none; }
.post-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.post:hover .post-photo img { transform: scale(1.04); }
.post-head { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; color: #fff; pointer-events: none; }
.post-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.post-av.me { background: var(--ink); color: #fff; box-shadow: 0 0 0 2px #fff; }
.post-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.post-who strong { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-who small { font-size: 12px; font-weight: 500; opacity: .85; font-variant-numeric: tabular-nums; }
.burst { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; pointer-events: none; filter: drop-shadow(0 6px 18px rgba(0,0,0,.3)); }
.burst svg { fill: #fff; }
.burst.go { animation: burst .8s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes burst { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: 1; transform: scale(1.1); } 60% { opacity: 1; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.2) translateY(-20px); } }
.post-acts { display: flex; align-items: center; gap: 2px; margin: -6px -8px -8px; }
.pa { min-width: 44px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 12px; background: none; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; transition: transform .15s; }
.pa:active { transform: scale(.88); }
/* pôr no roteiro: pílula fina na linha de ações (área de toque de 44px, desenho de 34px) */
.pa.go { margin-left: auto; position: relative; isolation: isolate; padding: 0 12px 0 9px; gap: 4px; font-size: 13px; transition: color .2s, transform .15s; }
.pa.go::before { content: ""; position: absolute; inset: 5px 0; z-index: -1; border: 1px solid #D4D4D9; border-radius: 999px; transition: background .2s, border-color .2s; }
.pa.go.done { color: #fff; }
.pa.go.done::before { background: var(--brand); border-color: var(--brand); }
.pa.go.pop { animation: pop-in .4s cubic-bezier(.34, 1.56, .64, 1); }
.pa.like[aria-pressed="true"] { color: var(--brand); }
.pa.like[aria-pressed="true"] svg, .pa.save[aria-pressed="true"] svg { fill: currentColor; }
.pa.save[aria-pressed="true"] { color: var(--brand); }
.pa.pop svg { animation: pop-ic .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pop-ic { 40% { transform: scale(1.35); } }
.post-text { font-size: 15px; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-text b { font-weight: 600; }
.feed-toast { position: absolute; z-index: 1600; left: 50%; bottom: 96px; transform: translateX(-50%); max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; pointer-events: none; box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.feed-toast.show { animation: toast-in 2.6s cubic-bezier(.2, .8, .2, 1); }
@keyframes toast-in { 0% { opacity: 0; transform: translate(-50%, 16px) scale(.96); } 12%, 85% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, 8px); } }
/* nova publicação */
.compose-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 20px 8px; overflow-y: auto; }
.compose-places { padding: 0; flex-wrap: wrap; }
.compose-photo { aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: var(--fill); }
.compose-photo img { width: 100%; height: 100%; object-fit: cover; animation: pop-in .35s cubic-bezier(.2, .8, .2, 1); }
.compose-text { width: 100%; border: 0; border-radius: 18px; background: var(--fill); padding: 14px 16px; font: inherit; font-size: 16px; resize: none; color: var(--ink); }
.compose-text:focus { outline: none; box-shadow: 0 0 0 2px var(--brand); }
.post-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.post-av { overflow: hidden; }
/* "Seu dia": o + fica por cima da foto, sem ser cortado */
.story.mine i { z-index: 2; }
.story-ring img { z-index: 1; }
/* publicação patrocinada de parceiro */
.post.sponsored { border: 1.5px solid var(--ink); }
.post.sponsored { border-radius: 28px; overflow: hidden; }

/* stories de parceiros: anel mais grosso, estrela e rótulo "Parceiro" */
.story.pt .story-ring { padding: 3px; background: #111; overflow: visible; }
.story.pt .story-ring img { inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); }
.story-pt { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: #111; color: #FFD34D; border: 2px solid var(--screen); display: grid; place-items: center; }
.story.pt small { color: var(--ink); font-weight: 700; }
.story.pt em { margin-top: -4px; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: #111; padding: 1px 7px; border-radius: 999px; }
