/* components.css — UI primitives matching FanPulse mockups */

/* ─────────────────────────── Logo ─────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.02em; }
.logo-text { font-size: 22px; color: var(--c-text); }
.logo-text .pulse { color: var(--c-lime); }
.logo-glyph { display: inline-block; width: 22px; height: 14px; }
.logo-glyph svg { width: 100%; height: 100%; }
.logo--sm .logo-text { font-size: 18px; }
.logo--lg .logo-text { font-size: 36px; }

/* ─────────────────────────── Buttons ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  transition: transform 0.06s ease, filter 0.12s ease;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary  { background: var(--c-lime); color: #0A0F1A; }
.btn-primary:hover { filter: brightness(1.07); color: #0A0F1A; }

.btn-secondary { background: var(--c-violet); color: var(--c-text); }
.btn-secondary:hover { filter: brightness(1.1); color: var(--c-text); }

.btn-outline  { background: transparent; color: var(--c-lime); border: 1.5px solid var(--c-lime); }
.btn-outline:hover { background: var(--c-lime-glow); color: var(--c-lime); }

.btn-outline-purple { background: transparent; color: var(--c-violet); border: 1.5px solid var(--c-violet); }
.btn-outline-purple:hover { background: var(--c-purple-glow); color: var(--c-violet); }

.btn-ghost   { background: transparent; color: var(--c-text-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.04); color: var(--c-text); }

.btn-danger  { background: var(--c-red); color: var(--c-text); }
.btn-danger:hover { filter: brightness(1.1); color: var(--c-text); }

.btn-block   { width: 100%; }
.btn-sm      { padding: 6px 12px; font-size: var(--fs-xs); }
.btn-lg      { padding: 14px 24px; font-size: var(--fs-md); }

.btn-icon    { width: 36px; height: 36px; padding: 0; border-radius: var(--r-md); }

/* ─────────────────────────── Cards ─────────────────────────── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-card);
}
.card-flat { background: var(--c-surface); border: 1px solid var(--c-border-2); border-radius: var(--r-lg); }
.card-tight { padding: var(--sp-3); }
.card-loose { padding: var(--sp-6); }
.card-bordered { border-color: var(--c-border); }

.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.card-title  { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: var(--fs-md); text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-text); }
.card-subtitle { font-size: var(--fs-sm); color: var(--c-muted); }

/* Hero gradient card (signups, premium upsells) */
.card-hero {
  position: relative;
  background:
    radial-gradient(circle at 90% 10%, rgba(160, 32, 240, 0.35) 0%, transparent 60%),
    linear-gradient(135deg, #1A0B2E 0%, #0B1220 60%);
  border: 1px solid rgba(160, 32, 240, 0.35);
  border-radius: var(--r-xl);
  overflow: hidden;
}

/* ─────────────────────────── Badges & chips ─────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-lime    { background: var(--c-lime); color: #0A0F1A; }
.badge-purple  { background: var(--c-violet); color: var(--c-text); }
.badge-red     { background: var(--c-red); color: var(--c-text); }
.badge-gold    { background: var(--c-gold); color: #2A1E00; }
.badge-outline { background: transparent; color: var(--c-text-2); border: 1px solid var(--c-border); }

.pill-pro {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border: 1.5px solid var(--c-violet); color: var(--c-violet);
  border-radius: var(--r-sm); font-family: var(--font-display); font-style: italic;
  font-weight: 800; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase;
}

.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-red); color: var(--c-text);
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.live-pill::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c-text);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: live-pulse 1.6s infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.confidence-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-lime); color: #0A0F1A;
  padding: 4px 10px; border-radius: var(--r-md);
  font-weight: 800; font-size: var(--fs-sm);
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--c-bg-2);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  color: var(--c-text-2);
  cursor: pointer;
}
.chip:hover { border-color: var(--c-lime); color: var(--c-lime); }
.chip-active { background: var(--c-lime); color: #0A0F1A; border-color: var(--c-lime); }

/* ─────────────────────────── Avatars ─────────────────────────── */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-violet), var(--c-purple));
  color: var(--c-text); font-weight: 700; font-size: var(--fs-sm);
  overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--c-border-2);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 28px; height: 28px; font-size: var(--fs-xs); border-width: 1px; }
.avatar-lg { width: 64px; height: 64px; font-size: var(--fs-lg); border-width: 3px; }
.avatar-xl { width: 96px; height: 96px; font-size: var(--fs-xl); border-width: 3px; }

/* overflow:visible so the status dot isn't clipped by the circular crop —
   the img/initials keep their own rounding instead. */
.avatar-online { position: relative; overflow: visible; }
.avatar-online img { border-radius: 50%; }
.avatar-online::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 12px; height: 12px; border-radius: 50%; background: var(--c-lime);
  border: 2px solid var(--c-surface); z-index: 2;
}

/* ─────────────────────────── Form ─────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-4); }
.field-label { font-size: var(--fs-sm); color: var(--c-muted); font-weight: 600; }
.field-hint { font-size: var(--fs-xs); color: var(--c-muted); }

.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-size: var(--fs-base);
  transition: border-color 0.15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--c-lime);
  background: var(--c-bg);
}
.input::placeholder, .textarea::placeholder { color: var(--c-dim); }
.input-search { background-image: none; padding-left: 40px; }

.field-icon { position: relative; }
.field-icon .input { padding-left: 40px; }
.field-icon .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--c-muted); }

.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--c-lime); }

.toggle { position: relative; width: 44px; height: 24px; background: var(--c-border); border-radius: var(--r-pill); cursor: pointer; transition: background 0.15s ease; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: var(--c-text); border-radius: 50%; transition: transform 0.15s ease; }
.toggle.on { background: var(--c-lime); }
.toggle.on::after { transform: translateX(20px); background: #0A0F1A; }

/* ─────────────────────────── Lists & nav items ─────────────────────────── */
.nav-list { list-style: none; padding: 0; margin: 0; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  color: var(--c-text-2);
  font-weight: 500; font-size: var(--fs-sm);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--c-text); }
.nav-item-active { background: var(--c-lime-glow); color: var(--c-lime); }
.nav-item-active:hover { background: var(--c-lime-glow); color: var(--c-lime); }
.nav-item .icon { color: inherit; }
.nav-item .badge { margin-left: auto; }

/* ─────────────────────────── Tabs ─────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--c-border); margin-bottom: var(--sp-5); overflow-x: auto; }
.tab { padding: 10px 16px; color: var(--c-muted); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.12s ease; white-space: nowrap; }
.tab:hover { color: var(--c-text); }
.tab-active { color: var(--c-lime); border-bottom-color: var(--c-lime); }

/* ─────────────────────────── Post card (feed) ─────────────────────────── */
.post {
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.post-header { display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-3); }
.post-author { display: flex; flex-direction: column; gap: 2px; }
.post-name { font-weight: 700; font-size: var(--fs-sm); color: var(--c-text); }
.post-meta { font-size: var(--fs-xs); color: var(--c-muted); }
.post-body { font-size: var(--fs-base); color: var(--c-text); margin-bottom: var(--sp-4); line-height: var(--lh-base); }
.post-media { border-radius: var(--r-md); overflow: hidden; margin-bottom: var(--sp-4); background: var(--c-bg-2); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; color: var(--c-muted); font-size: var(--fs-sm); }
.post-actions { display: flex; gap: var(--sp-2); }
.post-action { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-md); color: var(--c-muted); font-size: var(--fs-xs); cursor: pointer; transition: background 0.12s ease, color 0.12s ease; }
.post-action:hover { background: rgba(255, 255, 255, 0.04); color: var(--c-text); }
.post-action-active { color: var(--c-lime); }

/* ─────────────────────────── Stat block ─────────────────────────── */
.stat { display: flex; flex-direction: column; gap: 4px; padding: var(--sp-3) var(--sp-4); background: var(--c-bg-2); border: 1px solid var(--c-border-2); border-radius: var(--r-md); }
.stat-label { font-size: var(--fs-xs); color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-value { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: var(--fs-2xl); color: var(--c-text); line-height: 1; }
.stat-delta { font-size: var(--fs-xs); font-weight: 700; }
.stat-up    { color: var(--c-lime); }
.stat-down  { color: var(--c-red); }

/* ─────────────────────────── Game / Pick card ─────────────────────────── */
.game-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.game-card-header { display: flex; align-items: center; justify-content: space-between; }
.game-teams { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.game-team { display: flex; align-items: center; gap: var(--sp-3); flex: 1; }
.team-logo {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-bg-2); border: 1px solid var(--c-border);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: var(--fs-xs);
}
.team-score { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: var(--fs-2xl); }
.team-score-win { color: var(--c-lime); }

.pick-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.pick-line { display: flex; align-items: center; justify-content: space-between; }
.pick-side { font-weight: 700; font-size: var(--fs-md); }
.pick-odds { font-family: var(--font-mono); color: var(--c-lime); font-weight: 700; }
.pick-meta { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--c-muted); }

/* ─────────────────────────── Sport tile (onboarding) ─────────────────────────── */
.tile {
  position: relative;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border-2);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-3);
  text-align: center;
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
  min-height: 110px;
  font-weight: 600;
}
.tile:hover { border-color: var(--c-lime); }
.tile-active { border-color: var(--c-lime); background: var(--c-lime-glow); color: var(--c-lime); }
.tile-icon { font-size: 28px; }

/* ─────────────────────────── Divider ─────────────────────────── */
.hr { border: 0; height: 1px; background: var(--c-border-2); margin: var(--sp-5) 0; }
.dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--c-muted); margin: 0 6px; vertical-align: middle; }

/* ─────────────────────────── Skeleton placeholders ─────────────────────────── */
.sk { background: linear-gradient(90deg, var(--c-surface) 0%, var(--c-surface-2) 50%, var(--c-surface) 100%); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: var(--r-md); }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─────────────────────────── Tables ─────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; text-align: left; font-size: var(--fs-sm); border-bottom: 1px solid var(--c-border-2); }
.table th { color: var(--c-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-xs); }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover { background: rgba(255, 255, 255, 0.02); }

/* ─────────────────────────── Sticky CTA card (sidebar "Go Premium") ─────────────────────────── */
.premium-card {
  background: linear-gradient(160deg, rgba(160, 32, 240, 0.18) 0%, rgba(160, 32, 240, 0.04) 100%);
  border: 1px solid rgba(160, 32, 240, 0.35);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  position: relative;
  overflow: hidden;
}
.premium-card::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--c-purple); filter: blur(30px); opacity: 0.4;
}
.premium-card h5 { color: var(--c-text); margin-bottom: 4px; }
.premium-card p  { color: var(--c-text-2); font-size: var(--fs-xs); margin-bottom: var(--sp-3); }

/* ═══════════════════════════════════════════════════════════════════════════
   Groups directory (fp-groups.php) — WS5 rebuild.
   Page-scoped under .fpd / .fpd-side so nothing here reaches other pages.
   Colours come from tokens.css custom properties only; no existing rule is
   modified.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── page header ─────────────────────────────────────────────────────────── */
.fpd-head { margin-bottom: var(--sp-4); }
.fpd-h1 {
  display: flex; align-items: center; gap: 10px;
  margin: 0; font-size: 26px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-text);
}
.fpd-h1-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--c-lime-glow); color: var(--c-lime);
}
.fpd-sub { margin: 6px 0 0; font-size: var(--fs-sm); color: var(--c-text-2); max-width: 62ch; }

/* ── tabs ────────────────────────────────────────────────────────────────── */
.fpd-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--c-border-2);
  margin-bottom: var(--sp-4);
}
.fpd-tab {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; text-decoration: none;
  font-size: var(--fs-sm); font-weight: 700; color: var(--c-text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .12s, border-color .12s;
}
.fpd-tab:hover { color: var(--c-text); }
.fpd-tab.is-on { color: var(--c-lime); border-bottom-color: var(--c-lime); }
.fpd-tab-badge {
  min-width: 18px; padding: 1px 6px; border-radius: 999px;
  background: var(--c-lime); color: var(--c-bg);
  font-size: 11px; font-weight: 800; line-height: 1.5; text-align: center;
}

/* ── layout: results column + (below 1180px) stacked sidebar ─────────────── */
.fpd-layout { display: block; }
.fpd-main { min-width: 0; }
.fpd-side-stack { display: none; margin-top: var(--sp-5); }
@media (max-width: 1180px) {
  .fpd-side-stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-4); }
}
@media (max-width: 640px) {
  .fpd-side-stack { grid-template-columns: minmax(0, 1fr); }
}

/* ── search panel ────────────────────────────────────────────────────────── */
.fpd-search {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.fpd-search-row { display: flex; gap: 10px; align-items: stretch; }
.fpd-search-field {
  position: relative; flex: 1; min-width: 0;
  display: flex; align-items: center;
  background: var(--c-bg-2); border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.fpd-search-field:focus-within { border-color: var(--c-lime); box-shadow: 0 0 0 3px var(--c-lime-glow); }
.fpd-search-ic { display: flex; align-items: center; padding: 0 4px 0 14px; color: var(--c-muted); }
.fpd-search-input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--c-text); font-size: var(--fs-md); padding: 13px 10px;
}
.fpd-search-input::placeholder { color: var(--c-dim); }
.fpd-search-input::-webkit-search-cancel-button { display: none; }
.fpd-search-x {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-right: 8px; border-radius: 50%;
  color: var(--c-muted); text-decoration: none; font-size: 19px; line-height: 1;
}
.fpd-search-x:hover { background: rgba(255,255,255,.07); color: var(--c-text); }
.fpd-search-btn { padding-inline: 26px; font-weight: 800; }

/* ── filter pills ────────────────────────────────────────────────────────── */
.fpd-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-3); align-items: center; }
.fpd-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-bg-2); border: 1px solid var(--c-border);
  border-radius: 999px; padding: 0 6px 0 14px; height: 36px;
  color: var(--c-text-2); font-size: var(--fs-sm); font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: border-color .12s, color .12s;
}
.fpd-pill:hover { border-color: var(--c-border-2); color: var(--c-text); }
.fpd-pill select {
  background: transparent; border: 0; outline: none; cursor: pointer;
  color: inherit; font: inherit; padding: 0 8px 0 0; max-width: 200px;
}
.fpd-pill select option { color: #111; }
.fpd-pill-more { margin-left: auto; padding-right: 14px; background: none; }
.fpd-pill-more.is-on { border-color: var(--c-lime); color: var(--c-lime); }
.fpd-pill-reset { padding-right: 14px; }
.fpd-more {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-3);
  padding-top: var(--sp-3); border-top: 1px solid var(--c-border-2);
}
/* Same trap as .fpc-panel below: a class selector beats the UA stylesheet's
   [hidden] { display: none }, so without this the collapsed panel renders open. */
.fpd-more[hidden] { display: none; }

/* ── fp-combo — type-ahead dropdown (wireframe/assets/js/fp-combo.js) ─────────
   Progressive enhancement over a long <select>. The native control stays in the
   DOM as the form field and is visually hidden; everything below is chrome. */
.fpc { position: relative; display: inline-flex; }
.fpc-host { display: contents; }              /* the old .fpd-pill label wrapper */
.fpc-native {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.fpc-btn { padding-right: 12px; max-width: 260px; }
.fpc-btn-t {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px;
}
.fpc-btn.is-set { color: var(--c-text); border-color: var(--c-border-2); }
.fpc-caret { flex: none; opacity: .7; transition: transform .12s; }
.fpc.is-open .fpc-caret { transform: rotate(180deg); }
.fpc.is-open .fpc-btn { border-color: var(--c-lime); color: var(--c-text); }
.fpc.is-disabled .fpc-btn { opacity: .45; cursor: not-allowed; }

.fpc-panel {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0;
  min-width: 100%; width: max-content; max-width: 320px;
  background: var(--c-bg-2); border: 1px solid var(--c-border-2);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  padding: 8px; display: flex; flex-direction: column; gap: 6px;
}
/* A class selector beats the UA stylesheet's [hidden] { display: none }, so the
   closed panel needs this or every combo renders permanently open. */
.fpc-panel[hidden] { display: none; }
.fpc.is-up .fpc-panel { top: auto; bottom: calc(100% + 6px); }

.fpc-search {
  width: 100%; box-sizing: border-box; height: 34px; padding: 0 10px;
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: 8px; color: var(--c-text); font: inherit; font-weight: 500;
}
.fpc-search:focus { outline: none; border-color: var(--c-lime); }
.fpc-search::placeholder { color: var(--c-text-2); opacity: .8; }

.fpc-list { max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.fpc-opt {
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  color: var(--c-text-2); font-size: var(--fs-sm); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fpc-opt.is-active { background: var(--c-bg-3, rgba(255, 255, 255, .06)); color: var(--c-text); }
.fpc-opt.is-sel { color: var(--c-lime); font-weight: 700; }
.fpc-empty { padding: 10px; color: var(--c-text-2); font-size: var(--fs-sm); }

@media (max-width: 640px) {
  .fpc-btn { max-width: 160px; }
  .fpc-btn-t { max-width: 110px; }
  .fpc-panel { max-width: 76vw; }
}
@media (max-width: 640px) {
  .fpd-search-row { flex-direction: column; }
  .fpd-pill-more { margin-left: 0; }
  .fpd-pill select { max-width: 130px; }
}

/* ── results header ──────────────────────────────────────────────────────── */
.fpd-rhead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3);
}
.fpd-rtitle { font-size: var(--fs-lg); font-weight: 800; color: var(--c-text); }
.fpd-rcount { font-size: var(--fs-xs); color: var(--c-muted); margin-top: 2px; }
.fpd-rhead-r { display: flex; align-items: center; gap: 10px; }
.fpd-sort { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--c-muted); }
.fpd-sort select {
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  border-radius: var(--r-sm); color: var(--c-text-2);
  font-size: var(--fs-xs); font-weight: 700; padding: 6px 8px; cursor: pointer; outline: none;
}
.fpd-sort select option { color: #111; }
.fpd-view {
  display: inline-flex; gap: 2px; background: var(--c-surface-2);
  border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: 2px;
}
.fpd-view-b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 26px; border: 0; border-radius: 5px;
  background: transparent; color: var(--c-muted); cursor: pointer;
}
.fpd-view-b:hover { color: var(--c-text); }
.fpd-view-b.is-on { background: var(--c-lime); color: var(--c-bg); }

/* ── result cards ────────────────────────────────────────────────────────── */
.fpd-results.is-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.fpd-results.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-4); }
.fpd-card { display: flex; gap: var(--sp-4); padding: var(--sp-4); align-items: flex-start; }
.fpd-card-av { flex: 0 0 auto; text-decoration: none; }
.fpd-av { border-radius: 14px; object-fit: cover; display: block; }
.fpd-av-i { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.fpd-card-bd { flex: 1; min-width: 0; }
.fpd-card-t { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fpd-card-name {
  font-size: var(--fs-md); font-weight: 800; color: var(--c-text); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fpd-card-name:hover { color: var(--c-lime); }
.fpd-verified { display: inline-flex; color: var(--c-blue); flex: 0 0 auto; }
.fpd-card-handle {
  font-size: var(--fs-xs); color: var(--c-muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fpd-dot { opacity: .6; }
.fpd-card-desc {
  margin: 8px 0 0; font-size: var(--fs-sm); color: var(--c-text-2); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fpd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fpd-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--c-surface-2); border: 1px solid var(--c-border-2);
  color: var(--c-text-2); font-size: 11px; font-weight: 700; text-decoration: none;
}
a.fpd-chip:hover { border-color: var(--c-lime); color: var(--c-lime); }
.fpd-chip-lv { background: var(--c-violet-soft); border-color: rgba(108, 59, 255, .45); color: #C7B3FF; }
.fpd-chip-youth { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-bg); }
.fpd-chip-mem { background: transparent; }

.fpd-card-act { flex: 0 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.fpd-cta { min-width: 108px; text-align: center; font-weight: 800; }
.fpd-privacy {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; color: var(--c-muted);
}
.fpd-appstat {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: var(--c-surface-2); color: var(--c-text-2); border: 1px solid var(--c-border-2);
}
.fpd-appstat-pending  { color: var(--c-gold); border-color: rgba(255, 200, 61, .45); }
.fpd-appstat-approved { color: var(--c-lime); border-color: rgba(198, 255, 0, .45); }
.fpd-appstat-denied   { color: var(--c-red);  border-color: rgba(255, 45, 85, .45); }

/* Grid mode stacks each card vertically. */
.fpd-results.is-grid .fpd-card { flex-direction: column; align-items: stretch; gap: var(--sp-3); }
.fpd-results.is-grid .fpd-card-act { flex-direction: row; align-items: center; justify-content: space-between; }
.fpd-results.is-grid .fpd-cta { min-width: 0; flex: 1; }
.fpd-results.is-grid .fpd-privacy { justify-content: flex-end; }

@media (max-width: 640px) {
  .fpd-card { flex-wrap: wrap; }
  .fpd-card-act { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .fpd-cta { flex: 1; min-width: 0; }
}

/* ── empty state, info strip, toast ──────────────────────────────────────── */
.fpd-empty { padding: 30px var(--sp-4); text-align: center; }
.fpd-empty-t { color: var(--c-text-2); font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.fpd-info {
  display: flex; gap: 12px; align-items: flex-start; margin-top: var(--sp-5);
  padding: var(--sp-4); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .02); border: 1px solid var(--c-border-2);
  color: var(--c-muted);
}
.fpd-info-t { font-size: var(--fs-sm); font-weight: 700; color: var(--c-text-2); }
.fpd-info-b { font-size: var(--fs-xs); margin-top: 3px; line-height: 1.5; max-width: 76ch; }
.fpd-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1300;
  padding: 10px 18px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700;
  background: var(--c-surface); border: 1px solid var(--c-border-2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}
.fpd-toast.is-good { color: var(--c-lime); border-color: rgba(198, 255, 0, .5); }
.fpd-toast.is-bad  { color: var(--c-red);  border-color: rgba(255, 45, 85, .5); }

/* ── sidebar cards (shell right rail + the stacked copy under 1180px) ────── */
.fpd-side { padding: var(--sp-4); }
.fpd-side + .fpd-side { margin-top: var(--sp-4); }
.fpd-side-stack .fpd-side + .fpd-side { margin-top: 0; }
.fpd-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: var(--sp-3); }
.fpd-side-all { font-size: var(--fs-xs); font-weight: 700; color: var(--c-lime); text-decoration: none; }
.fpd-side-all:hover { text-decoration: underline; }
.fpd-side-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 0; text-decoration: none;
  border-top: 1px solid var(--c-border-2);
}
.fpd-side-row:first-of-type { border-top: 0; }
.fpd-side-bd { flex: 1; min-width: 0; display: block; }
.fpd-side-name {
  display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--c-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fpd-side-row:hover .fpd-side-name { color: var(--c-lime); }
.fpd-side-meta { display: block; font-size: 11px; color: var(--c-muted); margin-top: 1px; }
.fpd-side-join {
  flex: 0 0 auto; padding: 4px 12px; border-radius: 999px;
  background: var(--c-lime); color: var(--c-bg); font-size: 11px; font-weight: 800;
}
.fpd-trend { flex: 0 0 auto; font-size: 12px; font-weight: 800; color: var(--c-lime); }
.fpd-create-copy { font-size: var(--fs-xs); color: var(--c-text-2); line-height: 1.5; margin: 8px 0 var(--sp-3); }
.fpd-create-btn { display: block; width: 100%; text-align: center; font-weight: 800; }

/* ── ModGuard · profanity blur (chatrooms only) ──────────────────────────────
   Applied by ModGuard::blurText() to tier-2 spans in live game, event, and cast
   chat, for viewers with fp_user_prefs.blur_profanity = 1.

   The word stays in the DOM: this is a courtesy for people who would rather not
   read it, not censorship, and the reader decides. Which is also why the reveal
   is per-word and sticky rather than a page-level toggle.

   filter:blur is used rather than a solid block because it preserves word shape
   and length, so the sentence still scans and nothing looks deleted. */
.fp-blur {
  filter: blur(4.5px);
  cursor: pointer;
  border-radius: 3px;
  padding: 0 2px;
  background: var(--c-bg-2, rgba(255,255,255,.06));
  transition: filter .12s ease;
  /* Stop the blurred text being trivially selected and copied out, which would
     defeat the point for someone scrolling past it. */
  user-select: none;
}
.fp-blur:hover { filter: blur(3px); }
.fp-blur.revealed {
  filter: none;
  background: transparent;
  user-select: text;
  cursor: default;
}
.fp-blur:focus-visible {
  outline: 2px solid var(--c-lime, #C6FF00);
  outline-offset: 1px;
}
/* Respect a reader who has asked for no motion: drop the transition, keep the blur. */
@media (prefers-reduced-motion: reduce) { .fp-blur { transition: none; } }

/* Report / block control (includes/lib/ReportControl.php + fp-report.js) */
.fp-report-btn{background:none;border:0;color:var(--c-muted);cursor:pointer;font-size:12px;padding:2px 6px;border-radius:6px;display:inline-flex;gap:4px;align-items:center;}
.fp-report-btn:hover,.fp-report-btn:focus-visible{color:var(--c-text);background:var(--c-surface-2);outline:none;}
.fp-report-btn--compact span{display:none;}
.fp-card-report{margin-left:auto;}
.fp-report-dlg{background:var(--c-surface);color:var(--c-text);border:1px solid var(--c-border);border-radius:16px;padding:0;max-width:440px;width:calc(100% - 32px);}
.fp-report-dlg::backdrop{background:var(--c-scrim);opacity:.6;}
.fp-report-form{padding:20px 22px;}
.fp-report-form h3{margin:0 0 12px;font-size:18px;}
.fp-report-lbl{font-size:12px;color:var(--c-muted);margin:10px 0 6px;display:block;}
.fp-report-opt{display:flex;gap:10px;align-items:flex-start;padding:6px 8px;border-radius:8px;cursor:pointer;color:var(--c-text);text-decoration:none;}
.fp-report-opt:hover{background:var(--c-surface-2);}
.fp-report-dmca{color:var(--c-violet);border-top:1px solid var(--c-border-2);margin-top:6px;padding-top:10px;}
.fp-report-form textarea{width:100%;background:var(--c-bg);border:1px solid var(--c-border);color:var(--c-text);border-radius:10px;padding:8px 10px;}
.fp-report-blockrow{margin-top:8px;font-weight:600;}
.fp-report-msg{margin-top:10px;padding:8px 10px;border-radius:8px;border:1px solid var(--c-border);font-size:13px;}
.fp-report-msg.is-bad{border-color:var(--c-red);color:var(--c-red);}
.fp-report-msg.is-ok{border-color:var(--c-lime);}
.fp-report-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px;}
.fp-report-cancel{background:none;border:1px solid var(--c-border);color:var(--c-text-2);border-radius:999px;padding:8px 14px;cursor:pointer;}
.fp-report-submit{background:var(--c-red);color:var(--c-text);border:0;border-radius:999px;padding:8px 16px;font-weight:800;cursor:pointer;}
.fp-report-fine{font-size:11px;color:var(--c-muted);margin:12px 0 0;}
/* Attestation row in the take composer (revealed by fp-takes.js on 451 attestation_required) */
.fp-take-attest{display:flex;gap:10px;align-items:flex-start;margin:8px 0;padding:10px 12px;border:1px solid var(--c-violet);border-radius:10px;font-size:13px;line-height:1.5;color:var(--c-text);}
.fp-take-attest input{margin-top:3px;}
.fp-take-legal{font-size:12px;color:var(--c-muted);margin:6px 0 0;}
.fp-take-legal a{color:var(--c-muted);text-decoration:underline;}
