/* FANSFLEX v10.1 — AJAX discovery and profile-stream error/RTL resilience.
   Scoped to search/profile pages; reuses the premium steel/gold Light/Night palette. */
.ff-discover-page,.ff-route-profile {
  --ff101-surface: #132e42;
  --ff101-border: rgba(143,178,205,.34);
  --ff101-copy: #ecf4fa;
  --ff101-muted: #b3c5d5;
}
html:is([data-theme="light"],[data-bs-theme="light"]) :is(.ff-discover-page,.ff-route-profile) {
  --ff101-surface:#f5f8fb;
  --ff101-border:#cbd9e4;
  --ff101-copy:#1b3349;
  --ff101-muted:#516879;
}
:is(.ff-discover-page,.ff-route-profile) .ff101-pagination-feedback {
  display:flex;align-items:center;flex-wrap:wrap;gap:12px;
  max-width:100%;min-width:0;margin:14px 16px 22px;padding:17px 18px;
  border:1px solid var(--ff101-border);border-inline-start:3px solid #cba160;
  border-radius:15px;background:linear-gradient(135deg,var(--ff101-surface),rgba(118,148,173,.09));
  color:var(--ff101-copy);box-shadow:0 9px 24px rgba(0,0,0,.09);
}
:is(.ff-discover-page,.ff-route-profile) .ff101-pagination-feedback.d-none {display:none!important}
:is(.ff-discover-page,.ff-route-profile) .ff101-pagination-feedback-icon {
  display:grid;place-items:center;flex:0 0 34px;font-size:24px;color:#d7ad6a;
}
:is(.ff-discover-page,.ff-route-profile) .ff101-pagination-feedback-copy {
  flex:1 1 175px;min-width:0;overflow-wrap:anywhere;
  font-size:13px;font-weight:600;line-height:1.5;color:var(--ff101-muted);
}
:is(.ff-discover-page,.ff-route-profile) .ff101-pagination-retry {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:42px;padding:9px 17px;max-width:100%;border-radius:11px;
  border:1px solid #c29450;background:linear-gradient(155deg,#ffe6b3,#d9ad66);
  color:#192b3b;font-size:12px;font-weight:800;cursor:pointer;
  overflow-wrap:anywhere;text-align:center;
}
:is(.ff-discover-page,.ff-route-profile) .ff101-pagination-retry:hover {filter:brightness(1.06)}
:is(.ff-discover-page,.ff-route-profile) .ff101-pagination-retry:focus-visible {
  outline:3px solid #f2c26e;outline-offset:3px;
}
:is(.ff-discover-page,.ff-route-profile) :is(.users-wrapper,.streams-wrapper) {min-width:0;overflow-wrap:anywhere}
:is(.ff-discover-page,.ff-route-profile) .streams-wrapper .list-item,
.ff-discover-page .users-wrapper .list-item {min-width:0;max-width:100%}
:is(.ff-discover-page,.ff-route-profile) .streams-wrapper img.stream-cover-public {
  object-fit:cover;max-width:100%;height:auto;
}
[dir="rtl"] :is(.ff-discover-page,.ff-route-profile) :is(.streams-wrapper,.users-wrapper) :is(.text-truncate,.list-item) {
  min-width:0;
}
@media (max-width:480px) {
  :is(.ff-discover-page,.ff-route-profile) .ff101-pagination-feedback {margin:12px 8px 18px;padding:13px;gap:8px}
  :is(.ff-discover-page,.ff-route-profile) .ff101-pagination-retry {width:100%}
}
@media (prefers-reduced-motion: reduce) {
  :is(.ff-discover-page,.ff-route-profile) .ff101-pagination-retry {transition:none!important}
}

/* List/member pagination shares the same retry surface and mobile focus model. */
:is(.ff20-lists,.ff20-list-detail) {
 --ff101-surface:#132e42;--ff101-border:rgba(143,178,205,.34);
 --ff101-copy:#ecf4fa;--ff101-muted:#b3c5d5;
}
html:is([data-theme="light"],[data-bs-theme="light"]) :is(.ff20-lists,.ff20-list-detail) {
 --ff101-surface:#f5f8fb;--ff101-border:#cbd9e4;
 --ff101-copy:#1b3349;--ff101-muted:#516879;
}
:is(.ff20-lists,.ff20-list-detail) .ff101-pagination-feedback {
 display:flex;align-items:center;flex-wrap:wrap;gap:12px;max-width:100%;min-width:0;
 margin:14px 16px 22px;padding:17px 18px;border:1px solid var(--ff101-border);
 border-inline-start:3px solid #cba160;border-radius:15px;
 background:linear-gradient(135deg,var(--ff101-surface),rgba(118,148,173,.09));
 color:var(--ff101-copy);box-shadow:0 9px 24px rgba(0,0,0,.09);
}
:is(.ff20-lists,.ff20-list-detail) .ff101-pagination-feedback.d-none{display:none!important}
:is(.ff20-lists,.ff20-list-detail) .ff101-pagination-feedback-icon{display:grid;place-items:center;flex:0 0 34px;font-size:24px;color:#d7ad6a}
:is(.ff20-lists,.ff20-list-detail) .ff101-pagination-feedback-copy{
 flex:1 1 175px;min-width:0;overflow-wrap:anywhere;font-size:13px;
 font-weight:600;line-height:1.5;color:var(--ff101-muted);
}
:is(.ff20-lists,.ff20-list-detail) .ff101-pagination-retry{
 display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;
 padding:9px 17px;max-width:100%;border-radius:11px;
 border:1px solid #c29450;background:linear-gradient(155deg,#ffe6b3,#d9ad66);
 color:#192b3b;font-size:12px;font-weight:800;cursor:pointer;overflow-wrap:anywhere;text-align:center;
}
:is(.ff20-lists,.ff20-list-detail) .ff101-pagination-retry:focus-visible{outline:3px solid #f2c26e;outline-offset:3px}
@media(max-width:480px){:is(.ff20-lists,.ff20-list-detail) .ff101-pagination-feedback{margin:12px 8px 18px;padding:13px;gap:8px}
:is(.ff20-lists,.ff20-list-detail) .ff101-pagination-retry{width:100%}}
