:root {
  --bg: #0c0f14; --panel: #141922; --panel2: #1b212c; --line: #273140;
  --text: #e8edf4; --muted: #93a1b5; --accent: #4ea1ff; --accent2: #7cf0c8;
  --radius: 14px; --maxw: 1180px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.site-head { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
  background: rgba(12,15,20,.86); backdrop-filter: blur(8px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 800; letter-spacing: .5px; font-size: 20px; }
.site-head nav a { color: var(--muted); margin-left: 20px; font-weight: 600; font-size: 14px; }
.site-head nav a[aria-current] { color: var(--text); }

.intro { padding: 34px 0 10px; }
.intro h1 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 8px; }
.intro p { color: var(--text); max-width: 760px; margin: 0; }
.muted { color: var(--muted); }

.controls { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
#q { width: 100%; padding: 13px 16px; font-size: 16px; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
#q:focus { outline: none; border-color: var(--accent); }
.tagbar { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip.on { color: #06121f; background: var(--accent2); border-color: var(--accent2); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .12s ease, border-color .12s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card .thumb { aspect-ratio: 16/9; background: var(--panel2) center/cover no-repeat; }
.card .thumb.empty { display: flex; align-items: center; justify-content: center; color: var(--line); font-size: 40px; }
.card .body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.card .src { font-weight: 700; color: var(--accent); }
.card h3 { margin: 0; font-size: 16.5px; line-height: 1.35; }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.card .tags span { font-size: 11px; color: var(--muted); background: var(--panel2);
  padding: 2px 8px; border-radius: 6px; }

.status { text-align: center; color: var(--muted); padding: 22px 0; }
.more { display: block; margin: 8px auto 50px; padding: 12px 26px; font-weight: 700;
  color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; }
.more:hover { border-color: var(--accent); }

.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0; }
.site-foot p { color: var(--muted); font-size: 13px; margin: 0; max-width: 760px; }
