/* CGN ads (cgn-ads.js) */
/* ---------- Home: Verse of the Day + ad slideshow ---------- */
.home-duo{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:16px 0}
.home-duo.wide{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
.home-duo>#homeVotd{margin:0;min-width:0}
#view-home>.home-duo.wide{grid-column:1/-1;margin:0}
.home-duo.wide #homeAds .ad-media{max-height:300px}
/* compact verse card */
.home-duo .votd-ml{padding:12px 10px 10px;gap:8px;justify-content:center}
.home-duo .vml-langs{gap:4px}
.home-duo .vml-langs button{padding:3px 8px 3px 5px;font-size:11.5px;gap:5px}
.home-duo .vml-flag{width:17px;height:12px}
.home-duo .vml-stage{gap:6px}
.home-duo .vml-arrow{width:30px;height:30px}.home-duo .vml-arrow svg{width:16px;height:16px}
.home-duo .votd-ml .votd-slide{padding:12px 10px}
.home-duo .votd-badge{font-size:10.5px;padding:4px 10px}
.home-duo .votd-ml .votd-text{font-size:clamp(15px,5.2cqi,20px);margin:8px 0 10px}
.home-duo .votd-ml .votd-text.long{font-size:clamp(13.5px,4.4cqi,17px)}
.home-duo .votd-ml .votd-ref b{padding:4px 12px;font-size:13px}
.home-duo .votd-ml .votd-acts button{padding:5px 9px;font-size:12px}
.home-duo .votd-ml .votd-acts .votd-b{width:30px;height:30px}
.home-duo .votd-ml .votd-lic{font-size:10.5px}
/* ---------- shared ad box ---------- */
.ad-box{background:var(--card,#fff);border:1px solid var(--line,#e5e9f0);border-radius:16px;box-shadow:var(--shadow,0 1px 3px rgba(15,23,42,.08));overflow:hidden;display:flex;flex-direction:column;min-width:0}
.ad-screen{display:grid;flex:1;min-height:0}
.ad-slide{grid-area:1/1;display:flex;flex-direction:column;min-width:0;opacity:0;visibility:hidden;transition:opacity .8s ease,visibility 0s linear .8s;color:inherit;text-decoration:none;position:relative}
.ad-slide.on{opacity:1;visibility:visible;transition:opacity .8s ease}
a.ad-slide:focus-visible{outline:3px solid #7c3aed;outline-offset:-3px}
.ad-media{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#0b1530}
.ad-scene{background-size:cover;background-position:center}
.ad-cap{display:flex;flex-direction:column;gap:4px;padding:10px 14px 12px;min-width:0}
.ad-tag{position:absolute;top:10px;left:10px;background:rgba(10,15,35,.72);color:#fff;font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:3px 8px;border-radius:6px;backdrop-filter:blur(3px)}
.ad-title{font-size:15px;font-weight:800;color:var(--text,#0f172a);line-height:1.25}
.ad-desc{font-size:13px;color:var(--muted,#64748b);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ad-cta{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;margin-top:4px;background:linear-gradient(135deg,#ffd25e,#f5b301);color:#1b1300;font-weight:800;font-size:13px;padding:7px 12px;border-radius:999px;max-width:100%}
.ad-cta small{font-weight:600;opacity:.75;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
a.ad-slide:hover .ad-cta{filter:brightness(1.06)}
.ad-bar{display:flex;align-items:center;justify-content:center;gap:6px;padding:4px 10px 10px}
.ad-dots{display:flex;align-items:center}
.ad-dot{width:20px;height:28px;border:0;background:none;padding:0;cursor:pointer;display:grid;place-items:center}
.ad-dot::before{content:"";width:8px;height:8px;border-radius:999px;background:#cbd5e1;transition:width .25s,background .25s}
.ad-dot.on{width:30px}.ad-dot.on::before{width:20px;background:#7c3aed}
.ad-nav{width:30px;height:30px;border-radius:50%;border:1px solid var(--line,#e5e9f0);background:#fff;color:#334155;font-size:17px;line-height:1;cursor:pointer;display:grid;place-items:center}
.ad-pause{font-size:10px}
.ad-nav:hover,.ad-nav:focus-visible,.ad-dot:focus-visible{border-color:#7c3aed;color:#7c3aed;outline:none}
.ad-dot:focus-visible::before{box-shadow:0 0 0 3px rgba(124,58,237,.35)}
@media (prefers-reduced-motion: reduce){.ad-slide,.ad-slide.on{transition:none}}
/* ---------- News Feed TV ---------- */
.feed-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;align-items:start}
.feed-col{min-width:0}
.feed-grid>.ad-tv-wrap{position:sticky;top:84px}
.ad-tv-wrap{margin:0 0 16px}
.ad-tv{background:linear-gradient(180deg,#0f1b3d,#0a1330);border-color:#1e2c55;color:#e6ecff}
.ad-head{display:flex;align-items:center;gap:8px;padding:12px 14px 10px}
.ad-head b{font-size:15px;color:#fff}
.ad-tv-ic{font-size:18px}
.ad-adv{margin-left:auto;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#e6ecff;font-size:11.5px;font-weight:700;padding:5px 9px;border-radius:999px;cursor:pointer;white-space:nowrap}
.ad-adv:hover,.ad-adv:focus-visible{background:rgba(255,255,255,.18);outline:none}
.ad-tv .ad-media{width:calc(100% - 24px);margin:0 12px;border:7px solid #05080f;border-radius:12px;box-shadow:0 10px 26px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,255,255,.06)}
.ad-tv .ad-tag{top:16px;left:22px}
.ad-tv .ad-slide::after{content:"";display:block;width:70px;height:6px;margin:6px auto 0;border-radius:0 0 8px 8px;background:#05080f;order:1}
.ad-tv .ad-cap{order:2;padding:10px 16px 12px}
.ad-tv .ad-title{color:#fff}.ad-tv .ad-desc{color:#b9c6e6}
.ad-tv .ad-nav{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2);color:#e6ecff}
.ad-tv .ad-dot::before{background:rgba(255,255,255,.35)}.ad-tv .ad-dot.on::before{background:#ffd25e}
