/* ── COMPETITORS / OUTLIER FINDER ──────────────────────
   Tokens only. Accent appears in exactly one place: the multiplier badge on a
   video that genuinely beat its channel's normal. That badge is the whole
   point of the screen, so it is the one thing allowed to shout. */

.comp-wrap { padding: var(--s-6) max(var(--s-6), calc((100% - 1180px) / 2)) var(--s-9); overflow-y: auto; height: 100%; }
.comp-grid { display: block; }

/* ── scan bar ─────────────────────────────────────── */
.co-add { display: flex; gap: var(--s-2); margin-bottom: var(--s-6); }
.co-input {
  flex: 1; min-width: 0; height: 42px; padding: 0 var(--s-4);
  border: 1px solid var(--b2); border-radius: var(--r-3);
  background: var(--bg2); color: var(--tx);
  font-family: inherit; font-size: var(--fs-14);
  transition: border-color var(--t-base) var(--ease);
}
.co-input::placeholder { color: var(--t4); }
.co-input:focus { outline: none; border-color: var(--accent); }
.co-scan {
  flex: 0 0 auto; height: 42px; padding: 0 var(--s-5);
  border: none; border-radius: var(--r-3);
  background: var(--fill, var(--tx)); color: var(--fill-ink);
  font-family: inherit; font-size: var(--fs-13); font-weight: 500;
  transition: background var(--t-base) var(--ease);
}
.co-scan:hover:not(:disabled) { background: var(--t2); }
.co-scan:disabled { opacity: .5; cursor: default; }

/* ── channel list ─────────────────────────────────── */
.co-chans { display: flex; flex-direction: column; gap: var(--s-1); }
.co-chan {
  display: flex; align-items: center; gap: var(--s-3); width: 100%;
  padding: var(--s-3); border: 1px solid transparent; border-radius: var(--r-4);
  background: none; text-align: left;
  transition: background var(--t-base) var(--ease);
}
.co-chan:hover { background: var(--bg3); }
.co-chan-av  { width: 38px; height: 38px; border-radius: var(--r-pill); flex: 0 0 auto; background: var(--bg3); }
.co-chan-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-chan-t   { font-size: var(--fs-14); font-weight: 500; color: var(--tx); }
.co-chan-d   { font-size: var(--fs-12); color: var(--t3); }
.co-chan-med {
  flex: 0 0 auto; text-align: right;
  font-family: var(--ff-mono); font-size: var(--fs-14); color: var(--tx);
  display: flex; flex-direction: column; align-items: flex-end;
}
.co-chan-med span { font-family: var(--ff-sans); font-size: var(--fs-10); color: var(--t4); text-transform: uppercase; letter-spacing: .06em; }

/* ── one channel ──────────────────────────────────── */
.co-head { display: flex; flex-direction: column; gap: var(--s-4); margin-bottom: var(--s-6); }
.co-back {
  align-self: flex-start; background: none; border: none; padding: 0;
  font-family: inherit; font-size: var(--fs-13); font-weight: 500; color: var(--t3);
}
.co-back:hover { color: var(--tx); }
.co-head-main { display: flex; align-items: center; gap: var(--s-3); }
.co-head-av { width: 48px; height: 48px; border-radius: var(--r-pill); background: var(--bg3); }
.co-head-t  { font-size: var(--fs-18); font-weight: 600; color: var(--tx); letter-spacing: -.01em; }
.co-head-d  { font-size: var(--fs-13); color: var(--t3); margin-top: 2px; }

.co-head-stats { display: flex; gap: var(--s-6); }
.co-stat { font-size: var(--fs-11); color: var(--t4); text-transform: uppercase; letter-spacing: .06em; }
.co-stat span {
  display: block; font-family: var(--ff-mono); font-size: var(--fs-18);
  color: var(--tx); text-transform: none; letter-spacing: -.01em; margin-bottom: 2px;
}

.co-head-actions { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.co-seg { display: flex; gap: 2px; padding: 2px; background: var(--bg3); border-radius: var(--r-2); }
.co-seg-b {
  padding: 6px 12px; border: none; border-radius: var(--r-1); background: none;
  font-family: inherit; font-size: var(--fs-12); font-weight: 500; color: var(--t3);
}
.co-seg-b:hover { color: var(--tx); }
.co-seg-b.on { background: var(--bg2); color: var(--tx); box-shadow: var(--shadow-sm); }
.co-ghost {
  height: 32px; padding: 0 var(--s-3); margin-left: auto;
  border: 1px solid var(--b2); border-radius: var(--r-2); background: none;
  font-family: inherit; font-size: var(--fs-12); font-weight: 500; color: var(--t2);
}
.co-ghost + .co-ghost { margin-left: 0; }
.co-ghost:hover { background: var(--bg3); color: var(--tx); }
.co-danger:hover { background: var(--danger-bg); color: var(--danger); border-color: transparent; }

/* ── video grid ───────────────────────────────────── */
.co-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: var(--s-5); }
.co-vid { display: flex; flex-direction: column; }
.co-vid-thumb {
  position: relative; display: block; aspect-ratio: 16/9;
  border-radius: var(--r-3); overflow: hidden; background: var(--bg3);
}
.co-vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The one accent on the page — and only once it means something. */
.co-mult {
  position: absolute; top: 6px; left: 6px;
  padding: 3px 8px; border-radius: var(--r-2);
  font-family: var(--ff-mono); font-size: var(--fs-12); font-weight: 600;
  background: var(--bg2); color: var(--t3);
}
.co-t1 { color: var(--tx); }
.co-t2 { background: var(--accent-bg-2); color: var(--accent); }
.co-t3 { background: var(--accent); color: var(--accent-ink); }

.co-len, .co-short {
  position: absolute; right: 6px; bottom: 6px;
  padding: 2px 6px; border-radius: var(--r-1);
  background: rgba(0,0,0,.72); color: #fff;
  font-family: var(--ff-mono); font-size: var(--fs-10);
}
.co-vid-body { padding-top: var(--s-2); display: flex; flex-direction: column; gap: 4px; }
.co-vid-t {
  font-size: var(--fs-13); font-weight: 500; color: var(--tx); line-height: 1.4;
  text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.co-vid-t:hover { text-decoration: underline; text-underline-offset: 2px; }
.co-vid-m { font-size: var(--fs-11); color: var(--t4); font-variant-numeric: tabular-nums; }
.co-import {
  align-self: flex-start; margin-top: var(--s-1); padding: 0;
  background: none; border: none;
  font-family: inherit; font-size: var(--fs-12); font-weight: 500; color: var(--t3);
  opacity: 0; transition: opacity var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.co-vid:hover .co-import, .co-import:focus-visible { opacity: 1; }
.co-import:hover { color: var(--accent); }

/* ── empty ────────────────────────────────────────── */






@media (max-width: 620px) {
  .comp-wrap { padding: var(--s-4); }
  .co-add { flex-direction: column; }
  .co-vids { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
}

/* ── Tabs, filters, patterns ────────────────────────── */
.co-tabs { display: flex; gap: var(--s-1); margin-bottom: var(--s-5); border-bottom: 1px solid var(--b1); }
.co-tab {
  padding: 0 var(--s-3) 10px; background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-family: inherit; font-size: var(--fs-13); font-weight: 500; color: var(--t3);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.co-tab:hover { color: var(--tx); }
.co-tab.on { color: var(--tx); border-bottom-color: var(--tx); }
.co-tab-n { font-family: var(--ff-mono); font-size: var(--fs-10); color: var(--t4); }

.co-filters { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-5); }
.co-ai {
  margin-left: auto; height: 34px; padding: 0 var(--s-4);
  border: 1px solid var(--b2); border-radius: var(--r-2); background: var(--bg2);
  font-family: inherit; font-size: var(--fs-12); font-weight: 500; color: var(--tx);
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.co-ai:hover { background: var(--bg3); border-color: var(--b3); }

/* The read across the top of the feed. Neutral surface — it is a summary to
   scan, and the accent belongs to the multipliers below it. */
.co-pat {
  padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5);
  background: var(--bg2); border: 1px solid var(--b1); border-radius: var(--r-4);
}
.co-pat-h {
  font-size: var(--fs-12); font-weight: 600; color: var(--t2);
  margin-bottom: var(--s-4);
}
.co-pat-niche { font-weight: 400; color: var(--t4); }
.co-pat-row { display: flex; flex-wrap: wrap; gap: var(--s-7); }
.co-pat-stat {
  font-size: var(--fs-11); color: var(--t4);
  text-transform: uppercase; letter-spacing: .06em;
}
.co-pat-stat span {
  display: block; margin-bottom: 2px;
  font-family: var(--ff-mono); font-size: var(--fs-18); color: var(--tx);
  text-transform: none; letter-spacing: -.01em;
}
.co-words { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--b1); }
.co-word {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--bg3); color: var(--t2); font-size: var(--fs-12);
}
.co-word i { font-style: normal; font-family: var(--ff-mono); font-size: var(--fs-10); color: var(--t4); }

/* Which competitor a feed item came from. */
.co-vid-ch {
  display: flex; align-items: center; gap: 5px;
  font-size: var(--fs-11); color: var(--t4);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.co-vid-ch img { width: 14px; height: 14px; border-radius: var(--r-pill); flex: 0 0 auto; }

@media (max-width: 620px) {
  .co-filters { gap: var(--s-2); }
  .co-ai { margin-left: 0; width: 100%; }
  .co-pat-row { gap: var(--s-5); }
}
