:root{
  --bg0:#070910;
  --bg1:#05060b;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --line: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);

  --accent: #7c3aed;      /* neon purple */
  --accent2:#22d3ee;      /* cyan */
  --hot:#fb7185;          /* pink */
  --good:#34d399;         /* green */

  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --max: 1080px;
}

/* Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: radial-gradient(1200px 900px at 20% 10%, rgba(124,58,237,.20), transparent 55%),
              radial-gradient(1200px 900px at 90% 20%, rgba(34,211,238,.16), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  font: 16px/1.7 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x:hidden;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }
.wrap{ width:min(var(--max), calc(100% - 32px)); margin:0 auto; }

/* Background FX */
.bg{ position: fixed; inset:0; z-index:-1; }
.bg-grid{
  position:absolute; inset:-40px;
  background:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(closest-side at 40% 20%, rgba(0,0,0,1), rgba(0,0,0,0));
  opacity:.35;
}
.bg-orb{
  position:absolute; width: 520px; height: 520px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: .55;
}
.orb-1{ left:-120px; top: 160px; background: rgba(124,58,237,.55); }
.orb-2{ right:-140px; top: 90px; background: rgba(34,211,238,.40); }
.bg-noise{
  position:absolute; inset:0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity: .14;
  mix-blend-mode: overlay;
  pointer-events:none;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(4,6,10,.55);
  backdrop-filter: blur(10px);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand{
  display:flex; align-items: baseline; gap: 6px;
  font-weight: 900;
  letter-spacing: .2px;
}
.brand-mark{
  font-size: 26px;
  background: linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,255,255,.75));
  -webkit-background-clip: text;
  background-clip:text;
  color: transparent;
}
.brand-dot{
  font-size: 26px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  -webkit-background-clip: text;
  background-clip:text;
  color: transparent;
}
.brand-mark.small,.brand-dot.small{ font-size: 16px; }

.topbar-right{ display:flex; gap:10px; align-items:center; }
.pill{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}
.pill:hover{ background: rgba(255,255,255,.07); }

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  padding: 26px 0 18px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.82);
  font-weight: 700;
  font-size: 13px;
}
.chip-dot{
  width:10px;height:10px;border-radius:999px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  box-shadow: 0 0 20px rgba(34,211,238,.45);
}
.h1{
  margin: 14px 0 10px;
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: -0.6px;
}
.h1-glow{
  background: linear-gradient(90deg, var(--accent2), var(--accent), var(--hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(124,58,237,.18);
}
.sub{
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 58ch;
}
.cta-row{ display:flex; gap: 10px; flex-wrap: wrap; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor:pointer;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.30);
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }
.btn.primary{
  border-color: rgba(34,211,238,.22);
  background: linear-gradient(90deg, rgba(34,211,238,.22), rgba(124,58,237,.22));
  box-shadow: 0 20px 50px rgba(124,58,237,.20);
}
.btn.ghost{
  background: rgba(255,255,255,.03);
}
.btn:disabled{ opacity:.6; cursor:not-allowed; transform:none; }

.hero-right{ display:flex; align-items: stretch; }
.scanner{
  width:100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.scanner-top{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.scanner-title{
  font-weight: 1000;
  letter-spacing: 2px;
  font-size: 12px;
  color: rgba(255,255,255,.85);
}
.scanner-badge{
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(52,211,153,.16);
  border: 1px solid rgba(52,211,153,.22);
  color: rgba(52,211,153,.92);
}
.scanner-screen{
  position: relative;
  padding: 14px 12px 16px;
  min-height: 180px;
}
.scan-line{
  position:absolute;
  left:0; right:0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent);
  box-shadow: 0 0 22px rgba(34,211,238,.35);
  animation: scan 2.2s linear infinite;
  opacity:.85;
}
@keyframes scan{
  0%{ transform: translateY(0); }
  100%{ transform: translateY(180px); }
}
.scan-text{
  color: rgba(255,255,255,.76);
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.scanner-foot{
  display:flex;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.mono{
  font: 11px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: rgba(255,255,255,.55);
  letter-spacing: 1px;
}

/* Section head */
.section-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 12px;
}
.section-left{ display:flex; align-items:center; gap: 10px; }
.badge{
  display:inline-flex;
  align-items:center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(124,58,237,.12);
  color: rgba(255,255,255,.86);
  border: 1px solid rgba(124,58,237,.26);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.rule{
  height: 2px;
  width: 150px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 999px;
  opacity: .95;
}
.hint{
  color: rgba(255,255,255,.55);
  font-size: 13px;
}
.kbd{
  display:inline-block;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight: 900;
  font-size: 12px;
}

/* Posts / cards (ListMode vibe) */
.posts{ padding-bottom: 28px; }

.post{
  display:grid;
  grid-template-columns: 230px 1fr;
  gap: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
  margin-bottom: 14px;
  position: relative;
  isolation: isolate;
}
.post::before{
  content:"";
  position:absolute;
  left:0; top: 16px;
  width: 4px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  opacity:.95;
}
.post:hover{
  border-color: rgba(34,211,238,.22);
  transform: translateY(-1px);
}
.thumb{
  position: relative;
  min-height: 158px;
  border-right: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.24);
}
.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  filter: saturate(1.08) contrast(1.03);
}
.thumb.is-video::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.08));
  opacity: .95;
  pointer-events:none;
}

.play-btn{
  position:absolute;
  left: 12px;
  bottom: 12px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.16);
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(124,58,237,.10);
}
.play-btn::before{
  content:"";
  width:0;height:0;
  border-left: 13px solid rgba(255,255,255,.92);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transform: translateX(1px);
}
.play-btn:hover{
  box-shadow: 0 0 0 6px rgba(34,211,238,.12), 0 0 26px rgba(34,211,238,.15);
}

.body{
  padding: 14px 16px 14px 0;
  display:flex;
  flex-direction: column;
  gap: 9px;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
}
.kicker span + span::before{
  content:"•";
  margin-right: 6px;
  color: rgba(255,255,255,.35);
}
/* =========================
   FUN TAGS (neon jelly pills)
   ========================= */

.tagbar{
  margin: 12px 0 18px;
}

.tagbar-inner{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  align-items:center;
}

.tagpill{
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120% 160% at 30% 30%, rgba(255,255,255,.14), transparent 50%),
    linear-gradient(90deg, rgba(34,211,238,.16), rgba(124,58,237,.16), rgba(251,113,133,.12));
  color: rgba(255,255,255,.92);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .45px;
  cursor:pointer;
  text-transform: none;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease, border-color .14s ease;
  box-shadow:
    0 10px 24px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.05) inset;
  overflow:hidden;
}

/* glossy highlight */
.tagpill::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(60% 70% at 20% 20%, rgba(255,255,255,.30), transparent 55%);
  opacity: .65;
  pointer-events:none;
}

/* tiny sparkles */
.tagpill::after{
  content:"";
  position:absolute;
  inset:-40% -10%;
  background:
    radial-gradient(2px 2px at 22% 38%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(2px 2px at 55% 30%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(2px 2px at 78% 62%, rgba(255,255,255,.6), transparent 60%);
  opacity: .35;
  transform: rotate(-12deg);
  pointer-events:none;
}

.tagpill:hover{
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(34,211,238,.24);
  box-shadow:
    0 16px 36px rgba(0,0,0,.35),
    0 0 26px rgba(34,211,238,.14),
    0 0 32px rgba(124,58,237,.12);
  filter: saturate(1.15);
}

.tagpill:active{
  transform: translateY(0px) scale(.99);
  filter: saturate(1.0);
}

/* Active state = stronger neon */
.tagpill.is-active{
  border-color: rgba(34,211,238,.34);
  background:
    radial-gradient(120% 160% at 30% 30%, rgba(255,255,255,.18), transparent 48%),
    linear-gradient(90deg, rgba(34,211,238,.26), rgba(124,58,237,.26), rgba(251,113,133,.20));
  box-shadow:
    0 18px 40px rgba(0,0,0,.40),
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 34px rgba(34,211,238,.20),
    0 0 44px rgba(124,58,237,.18);
}

/* Optional: "All" tag special */
.tagpill[data-tag="All"]{
  background:
    radial-gradient(120% 160% at 30% 30%, rgba(255,255,255,.14), transparent 50%),
    linear-gradient(90deg, rgba(52,211,153,.18), rgba(34,211,238,.16), rgba(124,58,237,.14));
}

/* keyboard focus */
.tagpill:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(34,211,238,.28),
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 16px 36px rgba(0,0,0,.35);
}

.post h2{
  margin:0;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 950;
  letter-spacing: -0.2px;
}
.excerpt{
  margin:0;
  color: rgba(255,255,255,.70);
  font-size: 14px;
  max-width: 80ch;
}
.article-actions{
  display:flex;
  align-items:center;
  margin-top: 2px;
}
.report-link{
  margin-left:auto;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.report-link:hover{
  border-color: rgba(251,113,133,.30);
  box-shadow: 0 0 24px rgba(251,113,133,.08);
}

/* Load more + status */
.load-wrap{
  display:flex;
  justify-content:center;
  padding: 12px 0 0;
}
.status{
  text-align:center;
  padding: 10px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 13px;
  min-height: 18px;
}

/* Footer */
.footer{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 18px 0 34px;
  display:flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255,255,255,.62);
}
.footer-note{ font-size: 13px; color: rgba(255,255,255,.55); max-width: 60ch; }
.footer-right{ text-align:right; display:flex; flex-direction: column; gap: 8px; }
.link{ color: rgba(255,255,255,.82); font-weight: 900; }
.muted{ color: rgba(255,255,255,.45); font-size: 13px; }

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
.modal.is-open{ display:flex; }
.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}
.modal-panel{
  position: relative;
  width: min(980px, 100%);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.75);
  box-shadow: 0 40px 120px rgba(0,0,0,.60);
  z-index: 1;
}
.modal-video{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.modal-video video{
  width: 100%;
  height: 100%;
  display:block;
  background:#000;
  object-fit: contain;
}
.modal-close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  display:grid;
  place-items:center;
  font-weight: 1000;
}
.modal-close:hover{
  border-color: rgba(34,211,238,.24);
  box-shadow: 0 0 30px rgba(34,211,238,.10);
}

/* Mobile */
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .scanner{ display:none; }
  .h1{ font-size: 38px; }
}
@media (max-width: 720px){
  .post{ grid-template-columns: 1fr; }
  .thumb{ border-right: 0; border-bottom: 1px solid rgba(255,255,255,.10); min-height: 210px; }
  .body{ padding: 14px; }
  .rule{ display:none; }
  .footer{ flex-direction: column; }
  .footer-right{ text-align:left; }
}
