/* ═══ Member card: cover, big photo, name, headline, mutual line, Link ═══ */
.mc {
  --mc-bg: var(--card, #1b1b1f); --mc-line: rgba(255,255,255,.1); --mc-text: var(--text-1, #fff); --mc-sub: var(--text-2, #c9c9d2); --mc-mute: var(--muted, #9a9aa5);
  position: relative; flex: 0 0 184px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 12px 14px; border-radius: 16px; overflow: hidden;
  background: var(--mc-bg); border: 1px solid var(--mc-line);
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  transition: transform 200ms, opacity 200ms, border-color 150ms, box-shadow 150ms;
}
.mc:hover { border-color: rgba(255,255,255,.18); box-shadow: 0 10px 26px rgba(0,0,0,.28); }
[data-theme="light"] .mc { --mc-bg: #fff; --mc-line: rgba(20,20,30,.12); --mc-text: #111; --mc-sub: #3d3d46; --mc-mute: #6b6b76; box-shadow: 0 1px 3px rgba(20,20,30,.06); }
[data-theme="light"] .mc:hover { border-color: rgba(20,20,30,.2); box-shadow: 0 10px 26px rgba(20,20,30,.1); }
.mc.mc-out { opacity: 0; transform: scale(.94); }

/* cover: the member's own photo, blurred, or their colour */
.mc-cover {
  align-self: stretch; height: 72px; margin: 0 -12px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--mc), color-mix(in srgb, var(--mc) 35%, #000));
  background-size: cover; background-position: center 30%;
  filter: saturate(1.1);
}
.mc-cover-ph::before { content: ""; position: absolute; inset: -20px; background: var(--mc-img) center 30% / cover no-repeat; filter: blur(14px) saturate(1.25) brightness(.8); }

.mc-x {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background 150ms, transform 120ms;
}
.mc-x:hover { background: rgba(0,0,0,.7); }
.mc-x:active { transform: scale(.9); }

.mc-av {
  position: relative; z-index: 2; margin-top: -46px; padding: 0; border: 0; cursor: pointer;
  width: 104px; height: 104px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--mc); box-shadow: 0 0 0 4px var(--mc-bg);
  display: grid; place-items: center;
}
.mc-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-av span { color: #fff; font-weight: 800; font-size: 2rem; letter-spacing: .02em; }

.mc-name {
  margin: 10px 0 0; padding: 0; border: 0; background: none; cursor: pointer;
  max-width: 100%; display: inline-flex; align-items: center; gap: 5px;
  color: var(--mc-text); font: inherit; font-size: 1.02rem; font-weight: 750; line-height: 1.25;
}
.mc-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-name:hover span { text-decoration: underline; }
.mc-tick { flex: none; width: 16px; height: 16px; border-radius: 50%; background: #1d9bf0; color: #fff; display: inline-grid; place-items: center; }

.mc-head {
  margin: 3px 0 0; max-width: 100%; min-height: 2.7em;
  font-size: .84rem; line-height: 1.35; color: var(--mc-sub);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.mc-head.mc-soft { color: var(--mc-mute); }

.mc-why {
  margin: 10px 0 12px; max-width: 100%; min-height: 2.6em;
  display: flex; align-items: center; gap: 8px; text-align: left;
  font-size: .78rem; line-height: 1.3; color: var(--mc-mute);
}
.mc-why:empty { visibility: hidden; }
.mc-why > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-mut { flex: none; display: inline-flex; }
.mc-mut img, .mc-mut b { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; color: #fff; font-size: .62rem; font-weight: 800; }
.mc-why-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--mc-sub); }
[data-theme="light"] .mc-why-ic { background: rgba(20,20,30,.06); }

.mc-btn, .mc .plist-btn {
  margin-top: auto; width: 100%; min-height: 40px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 999px; border: 1.5px solid var(--red-bright, #ff4d6a); background: transparent;
  color: var(--red-bright, #ff4d6a); font: inherit; font-size: .92rem; font-weight: 750; cursor: pointer;
  transition: background 150ms, color 150ms, transform 120ms;
}
.mc-btn:hover, .mc .plist-btn:hover { background: rgba(255,77,106,.12); }
.mc-btn:active { transform: scale(.97); }
.mc-btn:disabled, .mc .plist-btn:disabled, .mc .plist-btn-pending { border-color: var(--mc-line); color: var(--mc-mute); background: transparent; cursor: default; }
[data-theme="light"] .mc-btn, [data-theme="light"] .mc .plist-btn { border-color: var(--red, #C8102E); color: var(--red, #C8102E); }
[data-theme="light"] .mc-btn:hover { background: rgba(200,16,46,.07); }

/* rows of cards scroll sideways and snap */
.mc-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.mc-row::-webkit-scrollbar { display: none; }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.mc-grid .mc { flex: none; }

/* phones: two cards across, whatever the width */
@media (max-width: 600px) {
  .mc { flex-basis: calc(50% - 6px); padding: 0 10px 12px; }
  .mc-cover { margin: 0 -10px; height: 60px; }
  .mc-av { width: 84px; height: 84px; margin-top: -36px; }
  .mc-x { width: 28px; height: 28px; top: 6px; right: 6px; }
  .mc-av span { font-size: 1.7rem; }
  .mc-name { font-size: .95rem; }
  .mc-head { font-size: .8rem; }
  .mc-why { font-size: .74rem; gap: 6px; }
  .mc-mut img, .mc-mut b, .mc-why-ic { width: 22px; height: 22px; }
  .mc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 340px) {
  .mc { flex-basis: 78%; }
  .mc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .mc, .mc-x, .mc-btn { transition: none; } }
.mc.ppl-out { opacity: 0; transform: scale(.94); }
.cmp-disc-grid .mc { flex: none; width: auto; }
.mc-self .mc-av .ppl-av { width: 100%; height: 100%; border: 0; font-size: 2rem; }
.mc-cam { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--red, #C8102E); color: #fff; box-shadow: 0 0 0 3px var(--mc-bg); }
.mc-self .mc-av { overflow: visible; }
.mc-self .mc-av > .ppl-av { border-radius: 50%; overflow: hidden; }
