/* feed.css — creatives shown inside the placement they ran in.
   Shared by /case-study/ and /creative-library/. Tokens come from the page. */

.feed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; justify-items: center; }
@media (max-width: 760px) { .feed-grid { grid-template-columns: 1fr; } }
.feed-cap { color: var(--muted); font-size: 13px; line-height: 19px; margin: 12px 0 0; max-width: 360px; }
.feed-cap b { color: var(--text-mute); font-weight: 600; }
.feed-cap span { display: block; opacity: .72; margin-top: 3px; }

/* --- Facebook / Instagram feed post frame --- */
.fbpost { width: 100%; max-width: 360px; background: #fff; color: #050505; border-radius: 10px; overflow: hidden; font-family: Inter, system-ui, sans-serif; }
.fb-hd { display: flex; align-items: center; gap: 9px; padding: 11px 13px 7px; }
.fb-hd > span:last-child { display: grid; line-height: 1.2; }
.fb-hd b { font-weight: 600; font-size: 13.5px; }
.fb-hd small { font-size: 11.5px; color: #65676B; }
.fb-av { width: 34px; height: 34px; border-radius: 50%; background: #2A0F4A; display: grid; place-items: center; flex: none; }
.fb-av img { width: 22px; }
.fb-tx { margin: 0; padding: 0 13px 9px; font-size: 13.5px; line-height: 18px; }
.fb-ft { display: flex; justify-content: space-between; align-items: center; background: #F0F2F5; padding: 10px 13px; gap: 10px; }
.fb-ft > span:first-child { display: grid; line-height: 1.25; min-width: 0; }
.fb-ft b { font-size: 14px; font-weight: 600; }
.fb-ft small { font-size: 11.5px; color: #65676B; }
.fb-cta { background: #E4E6EB; font-weight: 600; font-size: 13px; padding: 7px 12px; border-radius: 6px; white-space: nowrap; }

/* --- TikTok / Reels frame, 9:16 --- */
.ttpost { width: 100%; max-width: 250px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; position: relative; background: #000; border: 6px solid #111; }
.ttpost > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tt-ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.75)); }
.tt-ui { position: absolute; left: 14px; right: 60px; bottom: 18px; color: #fff; }
.tt-ui b { display: block; font-weight: 700; font-size: 13px; }
.tt-ui span { display: block; font-size: 12.5px; line-height: 16px; margin-top: 4px; }
.tt-rail { position: absolute; right: 10px; bottom: 26px; display: grid; gap: 14px; }
.tt-rail i { display: block; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.18); }
.tt-play { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.7); }
.tt-play::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.tt-mid { position: absolute; top: 50%; left: 0; right: 0; margin-top: 44px; text-align: center; color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.tt-mid small { display: block; font-size: 13px; font-weight: 600; color: #F4B8D0; }

/* --- Creative canvas, 4:5, built from the game's own parts --- */
.cv { width: 100%; aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: #0F0B2E; }
.cv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cv-dim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,11,46,.15), rgba(15,11,46,.85) 70%); }
.cv-logo { position: absolute; top: 16px; left: 16px; width: 74px; }
.cv-tag { position: absolute; top: 16px; right: 16px; font-size: 10.5px; letter-spacing: .1em; padding: 5px 9px; border-radius: 999px; background: rgba(6,10,45,.75); border: 1px solid var(--line, #262C63); color: var(--pink, #FF0099); }
.cv-tag.dim { color: var(--muted, #8A8ABF); }
.cv-big { position: absolute; left: 18px; right: 18px; bottom: 58px; font-weight: 800; letter-spacing: -0.03em; line-height: .95; color: #fff; }
.cv-big .n { font-size: 84px; color: #F3C56B; display: block; }
.cv-big .s { font-size: 20px; font-weight: 600; letter-spacing: 0; color: #F4B8D0; display: block; margin-top: 8px; }
.cv-strip { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; display: block; }

.cv-styles .cv-four { position: absolute; left: 16px; right: 16px; top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cv-styles .cv-four img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); display: block; }
.cv-styles .lk { position: relative; display: block; }
.cv-styles .lk img { filter: grayscale(1) brightness(.45); }
.cv-styles .lk::after { content: "🔒"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; }
.cv-styles .cv-big { bottom: 40px; }
.cv-styles .cv-big .n { font-size: 64px; }

/* Type-only variant (scenario B) */
.cv-type { background: #2A0F4A; }
.cv-type .cv-mult { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.cv-type .cv-mult .x { font-size: 150px; font-weight: 800; letter-spacing: -0.05em; color: #F3C56B; line-height: 1; }
.cv-type .cv-mult .x small { font-size: 60px; color: #fff; vertical-align: top; margin-right: 4px; }
.cv-type .cv-mult .q { font-size: 20px; color: #F4B8D0; margin-top: 10px; font-weight: 600; }
.cv-type .cv-ladder { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 14px 10px 18px; background: rgba(6,10,45,.55); }
.cv-type .cv-ladder span { font-size: 14px; color: #fff; opacity: .5; font-weight: 600; }
.cv-type .cv-ladder span.on { opacity: 1; color: #F3C56B; }

/* Real (client) creative, no canvas — just the image at 4:5 or 1:1 */
.cv-real { width: 100%; display: block; object-fit: cover; }
.cv-real.r45 { aspect-ratio: 4 / 5; }
.cv-real.r11 { aspect-ratio: 1; }

/* --- LinkedIn frame --- */
.lipost { width: 100%; max-width: 360px; background: #fff; color: rgba(0,0,0,.9); border-radius: 8px; overflow: hidden; font-family: Inter, system-ui, sans-serif; }
.li-hd { display: flex; gap: 9px; padding: 12px 14px 8px; align-items: center; }
.li-av { width: 40px; height: 40px; border-radius: 4px; background: #0A103D; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.li-hd > span:last-child { display: grid; line-height: 1.25; }
.li-hd b { font-size: 13.5px; font-weight: 600; }
.li-hd small { font-size: 11.5px; color: rgba(0,0,0,.6); }
.li-tx { margin: 0; padding: 0 14px 10px; font-size: 13.5px; line-height: 18px; }
.li-ft { border-top: 1px solid rgba(0,0,0,.08); padding: 10px 14px; font-size: 12px; color: rgba(0,0,0,.6); display: flex; justify-content: space-between; }
.li-ft b { color: rgba(0,0,0,.9); }

/* --- Library rows: header left, creatives scroll right --- */
.feed-scroll { display: flex; gap: 20px; overflow-x: auto; padding: 4px 0 12px; scroll-snap-type: x mandatory; margin-top: clamp(24px, 3vw, 32px); }
.feed-scroll::-webkit-scrollbar { height: 6px; } .feed-scroll::-webkit-scrollbar-thumb { background: var(--line, #262C63); border-radius: 3px; }
.feed-slot { flex: none; width: 300px; scroll-snap-align: start; }
.feed-slot .ttpost { max-width: 250px; }
.bd-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 32px 0 8px; border-top: 1px solid var(--line, #262C63); align-items: start; margin-top: 32px; }
.bd-row .feed-scroll { margin-top: 0; }
.bd-head .k { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pink, #FF0099); margin-bottom: 8px; }
.bd-head h3 { font-size: 21px; margin: 0 0 10px; letter-spacing: -0.01em; }
.bd-head p { color: var(--text-mute, #B9B9E4); font-size: 14.5px; line-height: 1.5; margin: 0; }
@media (max-width: 860px) { .bd-row { grid-template-columns: 1fr; gap: 16px; } }
