:root{
  --bg:#0f1115;
  --panel:rgba(255,255,255,.04);
  --line:rgba(255,255,255,.08);
  --text:#e9eef7;
  --muted:rgba(233,238,247,.72);
}

*{ box-sizing:border-box; }
body{ margin:0; font-family:system-ui, -apple-system, Segoe UI, Arial, sans-serif; background:var(--bg); color:var(--text); }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; }

.wrap{ max-width:1280px; margin:0 auto; padding:0 14px; }

.topbar{
  position:sticky; top:0; z-index:99;
  background: rgba(20,22,28,.90);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{ height:60px; display:flex; align-items:center; gap:16px; justify-content:space-between; }
.logo{ font-weight:900; letter-spacing:.3px; white-space:nowrap; }

.nav ul{ list-style:none; margin:0; padding:0; display:flex; gap:14px; flex-wrap:wrap; }
.nav a{ color:var(--muted); font-weight:600; }
.nav a:hover{ color:var(--text); }

.topbar-actions{ display:flex; align-items:center; gap:10px; }
.search input{
  width:260px; max-width:46vw;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
}

.main{ padding:18px 0 40px; }

.layout{
  max-width:1280px;
  margin:0 auto;
  padding:0 14px;
  display:grid;
  grid-template-columns: 1fr 340px;
  gap:14px;
}
@media (max-width: 1020px){
  .layout{ grid-template-columns: 1fr; }
  .search input{ width:200px; }
}

.content{ min-width:0; }

.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  margin:6px 0 12px;
}
.section-head h2{ margin:0; font-size:20px; }
.section-sub{ color:var(--muted); font-size:13px; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 1200px){ .grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .grid{ grid-template-columns: 1fr; } }

.card{
  background: var(--panel);
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.thumb{ display:block; aspect-ratio:16/9; background:rgba(255,255,255,.06); }
.thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.thumb-placeholder{ width:100%; height:100%; }

.meta{ padding:12px; display:flex; flex-direction:column; gap:8px; }
.meta-top{ display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; }
.cat{ color:rgba(233,238,247,.86); font-weight:700; }
.dot{ opacity:.65; }
.title{ margin:0; font-size:15px; line-height:1.25; }
.title a:hover{ text-decoration:underline; }
.excerpt{ margin:0; color:var(--muted); font-size:13px; line-height:1.35; }

.sidebar{ position:relative; }
.widget{
  background: var(--panel);
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:12px;
  margin-bottom:14px;
}
.widget-title{ margin:0 0 10px 0; font-size:14px; }
.mini-list{ margin:0; padding-left:18px; color:var(--muted); }
.mini-list li{ margin:8px 0; }
.mini-list a{ color:var(--text); }
.mini-list a:hover{ text-decoration:underline; }
.placeholder-box{
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
  padding:10px;
  border:1px dashed rgba(255,255,255,.16);
  border-radius:12px;
}

.single .grid{ grid-template-columns: repeat(2, 1fr); }
.single-article{
  background: var(--panel);
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:16px;
}
.single-title{ margin:0 0 8px; font-size:26px; line-height:1.15; }
.single-meta{ color:var(--muted); font-size:13px; display:flex; gap:10px; align-items:center; margin-bottom:12px; }
.single-thumb{ border-radius:16px; overflow:hidden; margin: 12px 0 14px; }
.single-content{ color:rgba(233,238,247,.90); line-height:1.75; }
.single-content a{ text-decoration:underline; }

.related{ margin-top:14px; }
.related h3{ margin: 0 0 10px; }
.related-grid{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px){ .related-grid{ grid-template-columns: 1fr; } }

.sentinel{ height:1px; }

.pager-fallback{ margin-top:14px; }
.pager-fallback .page-numbers{
  display:inline-block;
  padding:8px 10px;
  margin:4px 4px 0 0;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  color:var(--muted);
}
.pager-fallback .current{ color:var(--text); border-color: rgba(255,255,255,.22); }

.footer{ border-top:1px solid var(--line); padding:18px 0; color:var(--muted); }
.footer-inner{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.footer-links{ display:flex; gap:12px; }
.footer-links a:hover{ color:var(--text); }
.empty{ color:var(--muted); padding:14px; }
