/* --- Channel previews ---------------------------------------------------- */

.cp-section { margin: var(--s6) 0 var(--s3); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--on-surface-muted); }
.cp-hint { font-size: 13px; color: var(--on-surface-muted); margin: var(--s2) 0 var(--s4); }

/* A post as it sits in a feed. */
.cp-post {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-raised); padding: var(--s4); max-width: 560px;
}
.cp-post-head { display: flex; gap: var(--s3); align-items: center; margin-bottom: var(--s3); }
.cp-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
}
.cp-post-name { font-weight: 600; }
.cp-post-meta { font-size: 13px; color: var(--on-surface-muted); }
.cp-post-body { white-space: pre-wrap; font-size: 15px; line-height: 1.55; }
.cp-post-body p { margin: 0; }

/* Everything past the fold is only seen by someone who tapped "more". */
.cp-fold-marker { color: var(--primary); font-weight: 600; }
.cp-folded { opacity: .45; }

.cp-thread { display: flex; flex-direction: column; gap: var(--s3); }
.cp-tweet { max-width: 520px; }
.cp-tweet p { margin: 0 0 var(--s2); font-size: 15px; line-height: 1.5; white-space: pre-wrap; }

.cp-budget { margin-top: var(--s3); }
.cp-budget-bar { height: 4px; border-radius: 2px; background: var(--surface-sunken); overflow: hidden; }
.cp-budget-bar span { display: block; height: 100%; background: var(--primary); }
.cp-budget-bar span.over { background: var(--error); }
.cp-budget-text { font-size: 12px; color: var(--on-surface-muted); margin-top: var(--s1); }

/* Slides and frames share the branded card look of the real render. */
.cp-deck, .cp-storyboard {
  display: flex; gap: var(--s3); overflow-x: auto; padding-bottom: var(--s3);
  scroll-snap-type: x mandatory;
}
.cp-slide, .cp-frame {
  flex: 0 0 auto; scroll-snap-align: start; position: relative; margin: 0;
  border-radius: var(--radius); overflow: hidden; color: #fff;
  background: var(--slide-bg, #0B1F3A);
  display: flex; flex-direction: column; justify-content: center;
}
.cp-slide { width: 216px; padding: var(--s4); }
.cp-frame { width: 150px; }

.cp-slide::after, .cp-frame::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.14), rgba(0,0,0,.30));
}
.cp-slide > *, .cp-frame > * { position: relative; z-index: 1; }

.cp-slide-n, .cp-frame-n {
  position: absolute; top: var(--s2); right: var(--s3); z-index: 2;
  font-size: 11px; font-weight: 700; opacity: .8;
}
.cp-slide-body h4 { font-size: 17px; line-height: 1.2; margin: 0 0 var(--s2); font-weight: 800; }
.cp-slide-body p { font-size: 12px; line-height: 1.4; margin: 0; opacity: .92; }
.cp-slide-foot { position: absolute; left: var(--s3); bottom: var(--s2); font-size: 10px; opacity: .7; letter-spacing: .04em; }

/* The rectangle every platform leaves visible — roughly 900×1400 of 1080×1920. */
.cp-safe {
  margin: auto; width: 83%; height: 73%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  outline: 1px dashed rgba(255, 255, 255, .28); outline-offset: 4px;
}
.cp-safe p { font-size: 13px; font-weight: 800; line-height: 1.2; margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.cp-frame figcaption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; padding: var(--s2) var(--s3);
  font-size: 11px; background: rgba(0, 0, 0, .35);
}

.cp-narration { padding-left: var(--s6); font-size: 15px; line-height: 1.55; }
.cp-narration li { margin-bottom: var(--s2); }

.cp-video-rendered video { width: 100%; max-width: 260px; border-radius: var(--radius); display: block; }

/* A result listing, so meta title and description are judged where they land. */
.cp-serp {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s4); background: var(--surface-raised); max-width: 600px;
}
.cp-serp-url { font-size: 13px; color: var(--on-surface-muted); margin-bottom: var(--s1); }
.cp-serp-title { font-size: 19px; color: var(--primary); line-height: 1.3; }
.cp-serp-desc { font-size: 14px; color: var(--on-surface-muted); line-height: 1.5; margin-top: var(--s1); }
.cp-markdown { max-height: 420px; }

.cp-email { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; max-width: 620px; }
.cp-email-head { padding: var(--s4); border-bottom: 1px solid var(--border); background: var(--surface-sunken); }
.cp-email-subject { font-size: 17px; font-weight: 700; margin-top: var(--s2); }
.cp-email-preheader { font-size: 13px; color: var(--on-surface-muted); }
.cp-email-body { padding: var(--s4); background: var(--surface-raised); font-size: 15px; line-height: 1.6; }
.cp-email-body h2 { font-size: 18px; margin: var(--s4) 0 var(--s2); }

.cp-script { max-width: 62ch; font-size: 16px; line-height: 1.7; }
.cp-page { max-height: 70vh; overflow-y: auto; }
