:root{
  --bg:#070a12;
  --panel:#0b0f19;
  --card:#0f1626;
  --text:#e9eefc;
  --muted:#9aa6c2;
  --line:rgba(255,255,255,.08);
  --accent:#7c5cff;
  --accent2:#2ee0a6;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --radius:18px;
  --radius2:26px;
  --max:1180px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(124,92,255,.25), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(46,224,166,.12), transparent 55%),
    linear-gradient(180deg, var(--bg), #04060b);
}
a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:22px}
.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(7,10,18,.62);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line);
}
.topbar__inner{display:flex; gap:16px; align-items:center; justify-content:space-between}
.brand{display:flex; gap:12px; align-items:center}
.brand__mark{
  width:42px; height:42px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(46,224,166,.65));
  box-shadow: var(--shadow);
  font-weight:800;
}
.brand__text{display:flex; flex-direction:column; line-height:1.05}
.brand__name{font-weight:800; letter-spacing:.2px}
.brand__tag{font-size:12px; color:var(--muted)}
.nav{display:flex; gap:12px; align-items:center}
.nav a{
  padding:10px 12px; border-radius:14px;
  color:var(--muted);
  border:1px solid transparent;
}
.nav a:hover{color:var(--text); border-color:var(--line)}
.nav a.is-active{color:var(--text); background:rgba(124,92,255,.12); border-color:rgba(124,92,255,.24)}
.search{display:flex; align-items:center; gap:10px}
.search input{
  width:220px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  color:var(--text);
  outline:none;
}
.search button{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
}
.hero{display:grid; grid-template-columns:1.4fr .6fr; gap:18px; align-items:stretch}
.hero h1{margin:0 0 8px 0; font-size:44px; letter-spacing:-.8px}
.muted{color:var(--muted)}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:var(--radius2);
  box-shadow: var(--shadow);
  padding:18px;
}
.card__title{font-weight:800; margin-bottom:12px}
.trend{margin:0; padding-left:18px}
.trend li{display:flex; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.06)}
.trend li:last-child{border-bottom:none}
.chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(124,92,255,.10);
  border:1px solid rgba(124,92,255,.20);
  color:var(--text);
}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin:22px 0 12px}
.section-head h1,.section-head h2{margin:0}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.post-card{
  grid-column: span 4;
  padding:0;
  overflow:hidden;
}
.post-card__media{display:block; height:210px; background:rgba(255,255,255,.04)}
.post-card__media img{width:100%; height:100%; object-fit:cover; display:block}
.placeholder{width:100%; height:100%;
  background: radial-gradient(500px 300px at 20% 30%, rgba(124,92,255,.25), transparent 60%),
              radial-gradient(400px 260px at 80% 60%, rgba(46,224,166,.14), transparent 55%),
              rgba(255,255,255,.03);
}
.post-card__body{padding:14px 16px 16px}
.post-card__title{display:block; font-weight:900; font-size:16px; letter-spacing:-.2px; line-height:1.22}
.post-card__lead{color:var(--muted); margin-top:8px; font-size:13px; line-height:1.45}
.meta{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; font-size:12px; color:var(--muted)}
.meta--big{font-size:13px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(124,92,255,.35);
  background: rgba(124,92,255,.18);
  color:var(--text);
  cursor:pointer;
}
.btn:hover{background: rgba(124,92,255,.26)}
.btn--ghost{background: rgba(255,255,255,.04); border-color: var(--line)}
.center{display:flex; justify-content:center; margin:18px 0}
.pager{display:flex; justify-content:space-between; margin:18px 0}
.footer{border-top:1px solid var(--line); margin-top:40px; background: rgba(7,10,18,.45)}
.footer__inner{display:flex; justify-content:space-between; gap:12px}
.post{max-width:860px}
.breadcrumbs{color:var(--muted); margin:6px 0 14px}
.post h1{margin:0 0 10px; font-size:40px; letter-spacing:-.8px}
.post__cover{margin:16px 0; border-radius:24px; overflow:hidden; border:1px solid var(--line)}
.post__cover img{width:100%; display:block}
.lead{font-size:16px; line-height:1.7; color:#d7def4}
.content{line-height:1.9; color:#e9eefc; white-space:normal}
.comments{max-width:860px; margin-top:18px}
.comment-form{display:grid; gap:10px}
.comment-form input, .comment-form textarea{
  width:100%; padding:12px 12px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  outline:none;
}
.comments__list{margin-top:14px; display:grid; gap:12px}
.comment{
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background: rgba(255,255,255,.03);
}
.comment__head{display:flex; justify-content:space-between; gap:10px}
.comment__name{font-weight:800}
@media (max-width: 980px){
  .hero{grid-template-columns:1fr}
  .search input{width:160px}
  .post-card{grid-column: span 6}
}
@media (max-width: 620px){
  .container{padding:16px}
  .topbar__inner{flex-wrap:wrap}
  .nav{order:3; width:100%}
  .search{order:2; width:100%}
  .search input{flex:1; width:auto}
  .post-card{grid-column: span 12}
  .hero h1{font-size:34px}
  .post h1{font-size:30px}
}
