:root{
  --ff-bg0:#0b0d13;
  --ff-bg1:#0a1022;
  --ff-txt:#e9eefc;
  --ff-muted:rgba(233,238,252,.65);
  --ff-border:rgba(255,255,255,.10);
  --ff-glass:rgba(255,255,255,.08);
  --ff-glass2:rgba(255,255,255,.06);
  --ff-blur:14px;
  --ff-radius:18px;
  --ff-radius2:24px;
  --ff-shadow: 0 18px 50px rgba(0,0,0,.45);
  --ff-shadow2: 0 10px 22px rgba(0,0,0,.35);
  --ff-accent:#ff4fd8;
  --ff-accent2:#ff4fd8;
  --ff-yellow:#E9FF3F;
  --ff-link:#bcd2ff;
  --ff-max:1280px;
  --ff-gap:16px;
  --ff-vh:1vh;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font: 15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  color:var(--ff-txt);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255,79,216,.12), transparent 55%),
    radial-gradient(900px 500px at 85% 0%, rgba(255,79,216,.10), transparent 55%),
    radial-gradient(900px 700px at 20% 110%, rgba(120,168,255,.10), transparent 60%),
    linear-gradient(180deg, var(--ff-bg0), var(--ff-bg1));
  overflow-x:hidden;
}

/*
  Mobile/tablet: render background on a fixed layer.
  Some mobile browsers (especially iOS Safari) can visually "shift" gradient backgrounds
  during scroll because the viewport height is dynamic.
*/
@media (max-width: 980px){
  html{background: linear-gradient(180deg, var(--ff-bg0), var(--ff-bg1));}
  body{background: transparent; position:relative;}
  body::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background:
      radial-gradient(1200px 600px at 20% -10%, rgba(255,79,216,.12), transparent 55%),
      radial-gradient(900px 500px at 85% 0%, rgba(255,79,216,.10), transparent 55%),
      radial-gradient(900px 700px at 20% 110%, rgba(120,168,255,.10), transparent 60%),
      linear-gradient(180deg, var(--ff-bg0), var(--ff-bg1));
    transform: translateZ(0);
    will-change: transform;
  }
  /* Reduce overscroll bounce artifacts where supported */
  html, body{overscroll-behavior-y: none;}
}

a{color:var(--ff-link); text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%; height:auto; display:block}

.ff-wrap{max-width:var(--ff-max); margin:0 auto; padding:0 var(--ff-gap)}

.ff-h1{font-size:26px; margin:0 0 14px; letter-spacing:.2px}
.ff-h2{font-size:18px; margin:18px 0 10px}
.ff-h3{font-size:15px; margin:16px 0 8px; opacity:.95}
.ff-muted{color:var(--ff-muted)}

.ff-btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--ff-border);
  background:rgba(255,255,255,.04);
  color:var(--ff-txt);
  cursor:pointer;
  text-decoration:none;
}
.ff-btn:hover{filter:brightness(1.08)}
.ff-btn--primary{
  border-color: rgba(255,79,216,.35);
  background: linear-gradient(180deg, rgba(255,79,216,.22), rgba(255,79,216,.10));
  color:var(--ff-txt);
}
.ff-btn--glass{background:rgba(255,255,255,.06)}

.ff-iconbtn{
  width:36px; height:36px; border-radius:12px;
  border:1px solid var(--ff-border);
  background:rgba(255,255,255,.05);
  color:var(--ff-txt);
  cursor:pointer;
}

.ff-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(12px) saturate(140%);
  color:var(--ff-txt);
  text-decoration:none;
  font-weight:700;
  white-space:nowrap;
  max-width:100%;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.ff-chip--tag::before{content:'#'; margin-right:6px; opacity:.95;}
.ff-chip:hover{
  text-decoration:none;
  border-color: rgba(255,79,216,.75);
  background: rgba(255,79,216,.10);
  box-shadow: 0 0 0 2px rgba(255,79,216,.22), 0 12px 28px rgba(0,0,0,.35);
  transform: translateY(-1px);
}
.ff-chip:focus-visible{outline:none; box-shadow: 0 0 0 3px rgba(255,79,216,.30), 0 12px 28px rgba(0,0,0,.35);}
.ff-chips{display:flex; flex-wrap:wrap; gap:8px}

.ff-card{
  border:1px solid var(--ff-border);
  border-radius:var(--ff-radius);
  background:rgba(255,255,255,.04);
  box-shadow:var(--ff-shadow2);
}

.ff-list{margin:10px 0 0; padding-left:18px}
.ff-list li{margin:4px 0}

.ff-spinner{
  width:34px;height:34px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.18);
  border-top-color: rgba(255,79,216,.55);
  animation: ffspin 0.8s linear infinite;
  margin: 14px auto;
}
@keyframes ffspin{to{transform:rotate(360deg)}}

.ff-search{
  display:flex;
  align-items:stretch;
  height:52px;
  max-width:420px;
  width:100%;
  border-radius:999px;
  border:1px solid var(--ff-border);
  background:rgba(255,255,255,.06);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 14px 40px rgba(0,0,0,.30);
  overflow:hidden;
}
.ff-search__input{
  flex:1;
  min-width:0;
  padding:0 18px;
  border:0;
  background:transparent;
  color:var(--ff-txt);
  font-size:16px;
}
.ff-search__input::placeholder{color:rgba(233,238,252,.55)}
.ff-search__input:focus{outline:none}

.ff-search__btn{
  width:62px;
  border:0;
  background:rgba(0,0,0,.14);
  color:rgba(233,238,252,.92);
  border-left:1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.ff-search__btn:hover{
  background: rgba(255,79,216,.16);
  color: var(--ff-accent);
}
.ff-search__btn:active{transform:translateY(1px)}
.ff-search__btn svg{width:20px;height:20px;opacity:.95}


.ff-notice{padding:12px 14px; margin-bottom:12px}


.ff-avatarFallback{
  width:36px;height:36px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid var(--ff-border);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;
}

.ff-pagination{margin:18px 0 0}
.ff-pagination .page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 10px;
  margin:0 4px 6px 0;
  border-radius:10px;
  border:1px solid var(--ff-border);
  background:rgba(255,255,255,.04);
  color:var(--ff-txt);
}
.ff-pagination .current{background:rgba(255,79,216,.16); border-color:rgba(255,79,216,.35)}

/* Ads */
.ff-ad-slot{
  border-radius:var(--ff-radius);
  border:1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  overflow:hidden;
}
.ff-ad-placeholder{
  padding:16px;
  text-align:center;
  color:var(--ff-muted);
  font-size:13px;
}

/* Hide dashed ad-slot frame on mobile & tablets */
@media (max-width: 1024px){
  .ff-ad-slot{
    border: none;
  }
}

.screen-reader-text{position:absolute; left:-9999px; top:-9999px}
