:root {
  --bg: #14171c;
  --panel: #1d222a;
  --panel-2: #252b35;
  --text: #e7ebf0;
  --muted: #9aa5b1;
  --accent: #4da3ff;
  --line: #2f3742;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header, main, footer { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
header { padding-top: 36px; }
h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -0.02em; }
.lead { color: var(--muted); max-width: 780px; margin: 0 0 12px; }
.install {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; color: var(--muted); max-width: 900px;
}
.install a, footer a { color: var(--accent); }
code { background: var(--panel-2); padding: 1px 5px; border-radius: 6px; }

.toolbar {
  display: flex; align-items: center; gap: 14px;
  margin: 26px 0 14px; flex-wrap: wrap;
}
#search {
  flex: 1; min-width: 240px; max-width: 420px;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-size: 16px;
}
#search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
#count { color: var(--muted); font-size: 14px; }

.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  padding-bottom: 30px;
}
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
}
.shots { display: flex; background: #000; }
.shots img { width: 50%; height: auto; display: block; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.name { font-weight: 600; font-size: 18px; }
.byline { color: var(--muted); font-size: 14px; }
.licence { color: var(--muted); font-size: 13px; }
.links { margin-top: 8px; display: flex; gap: 12px; }
.links a {
  color: var(--accent); text-decoration: none; font-weight: 500; font-size: 14px;
}
.links a:hover { text-decoration: underline; }
.empty { color: var(--muted); padding: 30px 4px; }

footer {
  border-top: 1px solid var(--line); margin-top: 20px; padding: 18px 20px 40px;
  color: var(--muted); font-size: 14px;
}
