:root{
  --bg:#05050a;
  --panel:#0b0b18;
  --panel2:#111122;
  --text:#f4f6ff;
  --muted:#b7bfe6;
  --accent:#7cf6ff;
  --accent2:#ff7cf3;
  --card:#0f1020;
  --border:rgba(255,255,255,.10);
  --shadow: 0 12px 40px rgba(0,0,0,.45);
  --radius:18px;
  --max:1100px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: radial-gradient(1200px 700px at 70% 30%, rgba(124,246,255,.12), transparent 60%),
              radial-gradient(900px 600px at 20% 70%, rgba(255,124,243,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}
a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:28px 18px}
.topbar{
  display:flex; gap:14px; align-items:center; justify-content:space-between;
  padding:14px 16px; border:1px solid var(--border); border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(17,17,34,.75), rgba(11,11,24,.55));
  box-shadow: var(--shadow);
  position:sticky; top:10px; z-index:20; backdrop-filter: blur(10px);
}
.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:44px; height:44px; border-radius:14px;
  background: linear-gradient(135deg, rgba(124,246,255,.25), rgba(255,124,243,.18));
  border:1px solid var(--border);
  display:grid; place-items:center;
}
.logo svg{opacity:.9}
.title{font-weight:900; letter-spacing:.08em; text-transform:uppercase; font-size:14px}
.subtitle{color:var(--muted); font-size:12px; margin-top:2px}
.controls{display:flex; gap:10px; align-items:center}
.input{
  display:flex; gap:10px; align-items:center;
  border:1px solid var(--border); background:rgba(8,8,16,.55);
  padding:10px 12px; border-radius:14px; min-width:260px;
}
.input input{
  border:none; outline:none; background:transparent; color:var(--text);
  width:100%; font-size:14px;
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 12px; border-radius:999px; border:1px solid var(--border);
  background: rgba(10,10,20,.55);
  color: var(--muted); font-size:13px; cursor:pointer;
}
.pill.active{color:var(--text); border-color: rgba(124,246,255,.35); box-shadow: 0 0 0 3px rgba(124,246,255,.08)}
.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  margin-top:18px;
}
@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
  .input{min-width:0; width:100%}
  .controls{width:100%}
  .topbar{flex-wrap:wrap}
}
.card{
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(15,16,32,.8), rgba(10,10,20,.6));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .hd{
  padding:16px 16px 10px;
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
}
.card .hd h2{margin:0; font-size:18px; letter-spacing:.02em}
.card .hd .meta{color:var(--muted); font-size:12px; margin-top:6px}
.card .body{padding:0 16px 16px}
.tags{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.tag{
  font-size:12px; color: var(--muted);
  padding:6px 10px; border-radius:999px;
  border:1px solid var(--border); background: rgba(0,0,0,.25);
}
.story{
  display:grid; grid-template-columns: 140px 1fr; gap:14px;
  padding:14px 16px; border-top:1px solid var(--border);
  transition: transform .12s ease, border-color .12s ease;
}
.story:hover{transform: translateY(-1px); border-top-color: rgba(124,246,255,.25)}
.thumb{
  width:140px; height:92px; border-radius:14px; overflow:hidden;
  border:1px solid var(--border);
  background: rgba(0,0,0,.3);
  display:grid; place-items:center;
}
.thumb img{width:100%; height:100%; object-fit:cover}
.story h3{margin:0; font-size:16px}
.story p{margin:8px 0 0; color:var(--muted); font-size:13px; line-height:1.35}
.story .small{margin-top:10px; color:rgba(183,191,230,.85); font-size:12px; display:flex; gap:10px; flex-wrap:wrap}
.badge{padding:4px 8px; border-radius:999px; border:1px solid var(--border); background: rgba(0,0,0,.18)}
.side{padding:16px}
.side h3{margin:0 0 10px; font-size:14px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted)}
.kicker{
  padding:14px; border:1px dashed rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: rgba(0,0,0,.22);
  color: var(--muted);
  line-height:1.4;
  font-size:13px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px; border-radius:14px; border:1px solid rgba(124,246,255,.35);
  background: rgba(124,246,255,.10);
  margin-top:12px;
  font-weight:700;
}
.btn:hover{background: rgba(124,246,255,.14)}
.footer{margin:22px 0 0; color:rgba(183,191,230,.75); font-size:12px; text-align:center}
hr.sep{border:none;border-top:1px solid var(--border); margin:12px 0}
.smallnote{color:rgba(183,191,230,.75); font-size:12px; line-height:1.4}