/* RareWatch community: friends hub, feed, compare, reviews, shared lists. Tokens only. Page chrome (.sp-*) is in social.css. */
.cm-pane { min-height: 240px; padding-bottom: var(--s-7); }
.cm-tabs { scrollbar-width: none; margin-top: 0; margin-bottom: var(--s-5); }
.cm-tabs::-webkit-scrollbar { display: none; }
.cm-tabs .tab { white-space: nowrap; min-height: var(--ctl); }
.cm-tabs .tab span { margin-left: var(--s-2); }
.cm-tabs .tab span.hot { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: var(--t-xs); font-weight: 700; line-height: 18px; text-align: center; }
.cm-fail { text-align: center; padding: var(--s-5) var(--s-3); display: grid; gap: var(--s-3); justify-items: center; }
.cm-linkbtn { background: none; border: 0; cursor: pointer; font: inherit; }
.cm-link { background: none; border: 0; padding: var(--s-1) 0; color: var(--mute); font-size: var(--t-xs); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cm-link:hover { color: var(--text-strong); }
.cm-sk { height: 120px; border-radius: var(--r-lg); background: var(--skeleton); margin-bottom: var(--s-3); }
.cm-sk.sm { height: 56px; } .cm-sk.lg { height: 160px; } .cm-sk.xl { height: 240px; }
.cm-h { margin: 0 0 var(--s-3); font: 650 var(--t-lg)/var(--lh-snug) var(--font-display); color: var(--text-strong); }
.cm-intro { margin: 0 0 var(--s-3); color: var(--mute); font-size: var(--t-sm); line-height: var(--lh-body); max-width: 62ch; }
.cm-fine { margin: var(--s-4) auto 0; color: var(--mute); font-size: var(--t-sm); max-width: 56ch; text-align: center; }
.cm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.cm-bar .cm-h, .cm-bar .cm-intro { margin: 0; }
.cm-pane > .cm-h:not(:first-child) { margin-top: var(--section-gap); }
.cm-pane > .sp-find, .cm-pane > .cm-bar + .cm-grid { margin-bottom: var(--s-4); }
.cm-pane > .cm-intro + .cm-grid { margin-top: 0; }
.cm-pane > .sp-find + .cm-intro { margin-top: var(--s-3); }

/* filter chips: feed scope, pick modes, invitees */
.cm-chips { display: flex; gap: var(--s-2); flex-wrap: wrap; margin: 0 0 var(--s-4); }
.cm-chip { display: inline-flex; align-items: center; gap: var(--s-2); height: var(--ctl-sm); padding: 0 var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 600 var(--t-sm) var(--font-body); cursor: pointer; transition: background var(--fast), border-color var(--fast); }
.cm-chip:hover:not(:disabled) { background: var(--hover); }
.cm-chip.on { color: var(--text-strong); border-color: var(--accent-line); background: var(--accent-soft); }
.cm-chip:disabled { opacity: .45; cursor: not-allowed; }
.cm-chip .avimg, .cm-chip svg { flex: none; }
.cm-chip:focus-visible, .cm-rb:focus-visible, .cm-link:focus-visible, .cm-spoil:focus-visible, .cm-linkbtn:focus-visible, .cm-input:focus-visible, .cm-fp:focus-visible, .cm-lcard:focus-visible, .cm-ptop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* people */
.cm-av { --s: 24px; width: var(--s); height: var(--s); display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; line-height: 0; color: var(--text-strong);
  background: color-mix(in srgb, var(--pc, var(--profile-accent)) 26%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--pc, var(--profile-accent)) 60%, transparent); }
.cm-av.md { --s: 32px; } .cm-av.lg { --s: 44px; } .cm-av.big { --s: 56px; }
.cm-av .avimg { border-radius: 50%; }
.cm-who { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--text-strong); text-decoration: none; min-width: 0; }
.cm-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.cm-acts { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.cm-acts.top { margin-top: var(--s-3); }
.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-4); align-items: start; }
.cm-person { display: grid; gap: var(--s-3); align-content: start; padding: var(--card-pad); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; text-decoration: none; min-width: 0; }
.cm-ptop { display: flex; gap: var(--s-3); align-items: center; min-width: 0; color: inherit; text-decoration: none; border-radius: var(--r-md); }
.cm-pname { display: grid; min-width: 0; }
.cm-pname b { font: 650 var(--t-md)/var(--lh-snug) var(--font-display); color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-pname small { color: var(--mute); font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-pfoot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.cm-badges { margin: 0; display: flex; gap: var(--s-4); font-size: var(--t-sm); color: var(--mute); }
.cm-badges b { color: var(--text-strong); font-weight: 650; }
.cm-now { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--t-sm); color: var(--text); }
.cm-now > .ic, .cm-now > svg { flex: none; margin-top: 3px; color: var(--accent); }
.cm-now small { color: var(--mute); }
.cm-now a { color: var(--text-strong); font-weight: 600; }
.cm-mem { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.cm-lcard { cursor: pointer; transition: border-color var(--fast), background var(--fast); }
.cm-lcard:hover { border-color: var(--line-strong); background: var(--surface-2); }
.cm-lname { font: 650 var(--t-md)/var(--lh-snug) var(--font-display); color: var(--text-strong); }

/* feed: quiet rows, avatar / what happened / poster thumb */
.cm-feed { display: grid; }
.cm-more { margin: var(--s-5) 0 0; text-align: center; }
.cm-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) 52px; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: 0 112px; }
.cm-item:first-child { padding-top: 0; }
.cm-main { min-width: 0; display: grid; gap: var(--s-2); align-content: start; }
.cm-line { margin: 0; font-size: var(--t-base); line-height: var(--lh-snug); color: var(--text); overflow-wrap: anywhere; }
.cm-name { color: var(--text-strong); font-weight: 650; text-decoration: none; }
.cm-name:hover, a.cm-title:hover { text-decoration: underline; }
.cm-title { color: var(--text-strong); font-weight: 650; text-decoration: none; }
.cm-time { color: var(--mute); font-size: var(--t-sm); }
.cm-meta { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; color: var(--mute); font-size: var(--t-sm); }
.cm-rate { display: inline-flex; align-items: center; gap: var(--s-1); padding: 1px 6px; border-radius: var(--r-xs); font-size: var(--t-xs); font-weight: 700; color: color-mix(in srgb, var(--star) 65%, var(--text-strong)); background: color-mix(in srgb, var(--star) 15%, transparent); }
.cm-lock { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--t-xs); color: var(--mute); }
.cm-snip { margin: 0; max-width: 70ch; color: var(--text); font-size: var(--t-base); line-height: var(--lh-body); overflow-wrap: anywhere; }
.cm-spoil { display: inline-flex; align-items: center; gap: var(--s-2); width: fit-content; max-width: 100%; min-height: var(--ctl-sm); padding: 0 var(--s-3); border-radius: var(--r-md); border: 1px dashed var(--line-strong); background: transparent; color: var(--mute); cursor: pointer; font: 500 var(--t-sm) var(--font-body); text-align: left; }
.cm-spoil:hover { color: var(--text-strong); background: var(--hover); }
.cm-poster { display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: var(--r-xs); overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }
.cm-poster .poster { width: 100%; height: 100%; font-size: 9px; border-radius: 0; }
.scrim .cm-item { content-visibility: visible; padding-top: 0; }

/* reactions: small toggles with counts */
.cm-react { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.cm-rb { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--ctl-sm); padding: 0 var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; color: var(--text); font: 600 var(--t-sm) var(--font-body); cursor: pointer; transition: background var(--fast), border-color var(--fast); }
.cm-rb i { font-style: normal; font-size: var(--t-xs); color: var(--mute); }
.cm-rb:hover { background: var(--hover); border-color: var(--line-strong); }
.cm-rb.on, .cm-rb[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); }
.cm-rb.on i { color: var(--text-strong); }
.cm-add, .cm-cbtn { color: var(--mute); }
.cm-pickwrap { position: relative; display: inline-block; }
.cm-pop { position: absolute; left: 0; bottom: calc(100% + var(--s-2)); display: none; gap: var(--s-1); padding: var(--s-2); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); z-index: var(--z-pop); }
.cm-pickwrap.open .cm-pop { display: flex; }
.cm-pop .cm-rb { border: 0; padding: 0 var(--s-2); font-size: var(--t-lg); }

/* thread and composer */
.cm-thread { display: grid; gap: var(--s-4); margin: var(--s-4) 0; max-height: 46vh; overflow-y: auto; }
.cm-comment { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-3); }
.cm-comment p { margin: var(--s-1) 0 0; overflow-wrap: anywhere; font-size: var(--t-base); line-height: var(--lh-body); max-width: 70ch; }
.cm-comment small { color: var(--mute); }
.cm-comment a { color: var(--text-strong); text-decoration: none; font-weight: 650; }
.cm-cact { display: flex; gap: var(--s-4); }
.cm-compose { display: flex; gap: var(--s-2) var(--s-3); align-items: center; flex-wrap: wrap; }
.cm-input { flex: 1 1 200px; min-width: 0; height: var(--ctl); padding: 0 var(--s-3); border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--field); color: var(--text); font: 400 var(--t-base) var(--font-body); margin: 0; }
.cm-count { color: var(--mute); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.cm-none { text-align: center; }

/* compare */
.cm-hero { display: grid; gap: var(--s-5); padding: var(--card-pad); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-xl); margin-bottom: var(--s-4); }
.cm-versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s-4); }
.cm-side { display: grid; justify-items: center; gap: var(--s-1); text-align: center; min-width: 0; }
.cm-side b { font: 650 var(--t-md)/var(--lh-snug) var(--font-display); color: var(--text-strong); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-side small { color: var(--mute); font-size: var(--t-sm); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-ring { --p: 50; width: 104px; height: 104px; border-radius: 50%; display: grid; place-content: center; text-align: center; position: relative; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0); }
.cm-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface-1); }
.cm-ring b, .cm-ring small { position: relative; }
.cm-ring b { font: 800 var(--t-xl)/1 var(--font-display); color: var(--text-strong); }
.cm-ring small { color: var(--mute); font-size: var(--t-xs); }
.cm-herot { display: grid; gap: var(--s-2); justify-items: center; text-align: center; min-width: 0; }
.cm-herot .cm-acts { justify-content: center; margin-top: var(--s-2); }
.cm-herot p { margin: 0; }
.cm-label { font: 650 var(--t-lg)/var(--lh-snug) var(--font-display); color: var(--text-strong); }
.cm-listtitle { margin: 0; font-family: var(--font-display); font-stretch: 80%; font-weight: 750; letter-spacing: -.02em; line-height: var(--lh-tight); font-size: clamp(26px, 4vw, 36px); color: var(--text-strong); }
.cm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-3); margin-bottom: var(--s-4); }
.cm-stat { padding: var(--s-4); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-1); text-align: center; }
.cm-stat b { display: block; font: 800 var(--t-xl)/1.1 var(--font-display); color: var(--text-strong); }
.cm-stat span { font-size: var(--t-sm); color: var(--mute); }
.cm-sec { margin-top: var(--section-gap); }
.cm-picker { margin-top: var(--section-gap); padding: var(--card-pad); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-1); }
.cm-rows { display: grid; gap: var(--s-2); }
.cm-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-1); }
.cm-row.lead { border-color: var(--accent-line); background: var(--accent-soft); }
.cm-rowt { min-width: 0; display: grid; justify-items: start; }
.cm-rowt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; color: var(--text-strong); }
.cm-rowt small { color: var(--mute); }
.cm-lead { margin-top: var(--s-1); padding: 0 var(--s-2); border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: var(--t-xs); font-weight: 700; }
.cm-vs { display: flex; gap: var(--s-3); align-items: center; font-size: var(--t-sm); color: var(--mute); flex-wrap: wrap; justify-content: flex-end; }
.cm-sc { display: grid; justify-items: center; line-height: 1.2; }
.cm-sc small { font-size: var(--t-xs); color: var(--mute); }
.cm-sc b { font: 700 var(--t-md) var(--font-display); color: var(--text-strong); }
.cm-vs.hot .cm-sc b { color: var(--warn); }
.cm-votes { font-size: var(--t-sm); color: var(--text); font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }
.cm-stage { min-height: 150px; display: grid; align-items: center; margin: var(--s-3) 0; }
.cm-pick { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-4); align-items: center; animation: cm-in var(--med) var(--ease); }
.cm-pick .cm-poster { width: 96px; }
.cm-pick h3 { margin: var(--s-1) 0 0; font: 750 var(--t-xl)/var(--lh-tight) var(--font-display); font-stretch: 80%; color: var(--text-strong); }
.cm-pick small { color: var(--mute); }
.cm-both { color: var(--accent-hi); font-weight: 600; }
.cm-spin { font: 750 clamp(20px, 5vw, 30px) var(--font-display); color: var(--text-strong); text-align: center; opacity: .6; }
.cm-spin.b { opacity: 1; }
@keyframes cm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cm-win { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); margin: var(--s-4) 0; color: var(--text); flex-wrap: wrap; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.cm-win svg { color: var(--accent-hi); flex: none; }
.cm-win b { color: var(--text-strong); }
.cm-win small { color: var(--mute); }
.cm-add-title { display: grid; gap: var(--s-2); margin: var(--s-4) 0; }
.crumb.cm-linkbtn { margin-bottom: var(--s-4); }
.cm-compare > .crumb { margin-bottom: var(--s-3); }

/* discord */
.cm-dc { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-7) var(--s-4); text-align: center; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-1); }
.cm-dc h2 { margin: 0; font: 650 var(--t-lg)/var(--lh-snug) var(--font-display); color: var(--text-strong); }
.cm-dc p { margin: 0; max-width: 50ch; color: var(--mute); line-height: var(--lh-body); }
.cm-dc-i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #5865f2; color: #fff; } /* Discord blurple, brand mark */

/* reviews: a readable line length */
.cm-reviews { margin: var(--section-gap) 0; }
.cm-write { display: grid; gap: var(--s-3); padding: var(--card-pad); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-1); margin: 0 0 var(--s-4); }
.cm-wlab { display: grid; gap: var(--s-2); color: var(--text-strong); font-weight: 650; font-size: var(--t-sm); }
.cm-write textarea { width: 100%; resize: vertical; min-height: 88px; max-width: 70ch; padding: var(--s-3); border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--field); color: var(--text); font: 400 var(--t-base)/var(--lh-body) var(--font-body); font-weight: 400; }
.cm-write textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cm-wfoot { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.cm-grow { flex: 1; }
.cm-rlist { display: grid; gap: var(--s-3); margin-bottom: var(--s-4); }
.cm-review { padding: var(--card-pad); border-radius: var(--r-lg); display: grid; gap: var(--s-3); border: 1px solid var(--line); background: var(--surface-1); }
.cm-head { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; font-size: var(--t-sm); }
.cm-head small { color: var(--mute); }
.cm-rbody { margin: 0; max-width: 70ch; white-space: pre-wrap; overflow-wrap: anywhere; line-height: var(--lh-body); color: var(--text); }
.cm-ract { display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cm-urev { margin-bottom: var(--s-4); }
.cm-uhead { display: flex; gap: var(--s-3); align-items: center; margin-bottom: var(--s-2); }
.cm-uhead .cm-poster { width: 40px; flex: none; }
.cm-uhead small { color: var(--mute); }

/* friends who watched this (title pages) */
.cm-ft { display: grid; gap: var(--s-2); }
.cm-ftop { display: flex; gap: var(--s-3); align-items: baseline; flex-wrap: wrap; }
.cm-ftop b { color: var(--text-strong); }
.cm-ftop small { color: var(--mute); }
.cm-fl { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.cm-fp { position: relative; display: inline-block; border-radius: 50%; }
.cm-fp i { position: absolute; right: -4px; bottom: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font: 700 var(--t-xs)/18px var(--font-body); text-align: center; font-style: normal; }
.cm-fp i.s { background: var(--surface-3); color: var(--text-strong); box-shadow: 0 0 0 1px var(--line-strong); }

@media (max-width: 560px) {
  .cm-item { grid-template-columns: 40px minmax(0, 1fr) 44px; gap: var(--s-3); }
  .cm-av.lg { --s: 40px; }
  .cm-grid { grid-template-columns: minmax(0, 1fr); }
  .cm-row { grid-template-columns: 40px minmax(0, 1fr); }
  .cm-row .cm-vs { grid-column: 1 / -1; justify-content: flex-start; }
  .cm-pick { grid-template-columns: 72px minmax(0, 1fr); }
  .cm-pick .cm-poster { width: 72px; }
  .cm-versus { gap: var(--s-2); }
  .cm-ring { width: 84px; height: 84px; }
  .cm-ring::before { inset: 6px; }
  .cm-rb { min-height: var(--ctl-sm); }
  .cm-pop { left: auto; right: 0; }
  .cm-bar .cm-acts, .cm-bar .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-pick { animation: none; }
  .cm-rb, .cm-chip, .cm-lcard { transition: none; }
}
