  :root {
    --bg: #0f1115; --panel: #171a21; --line: #262b36;
    --text: #e8eaf0; --muted: #9aa3b5; --accent: #f97316;
  }
  @media (prefers-color-scheme: light) {
    :root { --bg: #f5f6f8; --panel: #ffffff; --line: #e2e5ea; --text: #15181e; --muted: #5b6474; }
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; background: var(--bg); color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
  main { max-width: 1200px; margin: 0 auto; padding: 48px 24px 64px; }
  header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
  h1 { margin: 0; font-size: 2rem; letter-spacing: -0.02em; }
  h1 span { color: var(--accent); }
  header p { margin: 0; color: var(--muted); }
  h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 40px 0 14px; }
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
  .card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden; text-decoration: none; color: inherit;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
  .card:hover, .card:focus-visible { transform: translateY(-3px); border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0,0,0,.35); outline: none; }
  .thumb { aspect-ratio: 16 / 10; background: #000 center / cover no-repeat; display: block; }
  .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
  .body { display: block; padding: 20px 22px 24px; }
  .title { display: block; font-weight: 700; font-size: 1.05rem; line-height: 1.35; margin: 0 0 6px; }
  .host { display: block; overflow-wrap: anywhere; font-size: 0.82rem; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
  .desc { margin: 12px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
  .err { color: var(--muted); }
  .noshot { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    background: linear-gradient(135deg, #1d2230, #2b3346); color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.1rem; letter-spacing: .06em; }
  footer { margin-top: 56px; color: var(--muted); font-size: 0.85rem; }
  footer a { color: inherit; }

  .folder-link { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; padding: 12px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
  .folder-link:hover, .folder-link:focus-visible { border-color: var(--accent); }
  nav { margin-bottom: 24px; }
  .folder-nav { margin: 40px 0 0; }
