/* Instagram and TikTok placement frames from the Nopex Ad Studio editor (PlacementFrame.tsx and frames.css). */
.pf { position: relative; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; text-align: left; }
.pf svg { width: 1em; height: 1em; flex: none; }
.pf__avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; box-shadow: 0 0 0 1px #0000001a; }

/* ---- Feed posts ---- */
.pf--feed { background: #fff; color: #111; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px -18px #0007, 0 0 0 1px #0000001a; font-size: 13.5px; line-height: 1.35; }
.pf__hd { display: flex; align-items: center; gap: 9px; padding: 9px 12px; }
.pf__hd > div { display: grid; min-width: 0; flex: 1; }
.pf__hd b { font-weight: 600; font-size: 13.5px; }
.pf__hd span { color: #65676b; font-size: 12px; display: inline-flex; align-items: center; gap: 2px; }
.pf__hd em { color: #555; font-size: 18px; }
.pf__text { padding: 8px 12px 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf__ctabar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-weight: 600; border-bottom: 1px solid #efefef; color: #0095f6; }
.pf__actions { display: flex; gap: 14px; padding: 10px 12px 0; font-size: 22px; }
.pf__actions > span:empty { flex: 1; }

/* ---- Full screen (Stories, Reels, TikTok, Shorts) ---- */
.pf--fullscreen { container-type: inline-size; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 40px -18px #000a, 0 0 0 6px #111, 0 0 0 7px #333; color: #fff; }
.pf__ov { position: absolute; inset: 0; pointer-events: none; font-size: 3.6cqw; line-height: 1.3; text-shadow: 0 1px 3px #0008; }
/* The apps darken top and bottom so their own text stays readable; so do we. */
.pf--fullscreen .pf__ov { background: linear-gradient(#0000004d, transparent 14%, transparent 62%, #000000a6); }
.pf--fullscreen .pf__avatar { width: 8.5cqw; height: 8.5cqw; }
.pf__progress { position: absolute; left: 3cqw; right: 3cqw; top: 2.5cqw; height: .7cqw; border-radius: 1cqw; background: #ffffff55; overflow: hidden; }
.pf__progress i { display: block; width: 40%; height: 100%; background: #fff; }
.pf__storyhd { position: absolute; left: 3cqw; right: 3cqw; top: 5cqw; display: flex; align-items: center; gap: 2.4cqw; }
.pf__storyhd span { opacity: .85; flex: 1; }
.pf__storyhd em { font-size: 5.5cqw; }
.pf__storycta { position: absolute; left: 0; right: 0; bottom: 6cqw; display: grid; justify-items: center; gap: 1cqw; font-weight: 600; }
.pf__storycta span { background: #fff; color: #111; text-shadow: none; padding: 2.4cqw 6cqw; border-radius: 99px; }
.pf__storycta svg { font-size: 6cqw; }
.pf__tabs { position: absolute; top: 4cqw; left: 0; right: 0; display: flex; justify-content: center; gap: 5cqw; font-size: 4.2cqw; opacity: .9; }
.pf__tabs b { border-bottom: .6cqw solid #fff; padding-bottom: 1cqw; }
.pf__rail { position: absolute; right: 2.5cqw; bottom: 30cqw; display: grid; justify-items: center; gap: 4.5cqw; }
.pf__rail span { display: grid; justify-items: center; gap: .6cqw; }
.pf__rail svg { font-size: 8cqw; }
.pf__rail small { font-size: 3cqw; font-weight: 600; }
.pf__disc { width: 9cqw; height: 9cqw; border-radius: 50%; background: #222; display: grid; place-items: center; border: 1.6cqw solid #444; }
.pf__disc svg { font-size: 4cqw; }
.pf__caption { position: absolute; left: 4cqw; right: 17cqw; bottom: 4.5cqw; display: grid; gap: 2cqw; }
.pf__who { display: flex; align-items: center; gap: 2.4cqw; }
.pf__who span { opacity: .85; }
.pf__caption p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf__caption > small { opacity: .8; font-size: 3.2cqw; }
.pf__cta { display: flex; align-items: center; justify-content: space-between; padding: 2.6cqw 3.5cqw; border-radius: 1.6cqw; background: #ffffff2b; backdrop-filter: blur(6px); font-weight: 600; text-shadow: none; }
.pf--tiktok .pf__cta { background: #fe2c55; }

.pf svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf svg[fill="currentColor"] { fill: currentColor; }
.pf__avatar { color: var(--primary); font: normal 700 .72em/1 var(--body-font); }
.pf__ov { z-index: 2; }
.pf--tiktok .pf__rail { top: 44%; bottom: auto; gap: 2.6cqw; }
