:root {
  --bg: #14161a;
  --panel: #1d2026;
  --panel-2: #262a32;
  --text: #e8eaed;
  --muted: #9aa0aa;
  --accent: #5b8cff;
  --green: #34c759;
  --amber: #ff9f0a;
  --red: #ff453a;
  --border: #2e333d;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 18px; }
.who { color: var(--muted); font-size: 0.9rem; }

.container { max-width: 820px; margin: 0 auto; padding: 28px 22px 60px; }
.container.center { display: flex; align-items: center; justify-content: center; min-height: 70vh; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.login-card { max-width: 420px; text-align: center; }

h1 { margin-top: 0; font-size: 1.5rem; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.add { background: var(--green); }
.btn.google { background: #fff; color: #1a1a1a; margin-top: 16px; }
.link-btn { background: none; border: none; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.inline { display: inline; }

.search-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.search-bar input[type="search"] {
  flex: 1;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 1rem;
}
.quota { margin: 4px 0 22px; }

.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.result {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.cover img, .cover-placeholder { width: 56px; height: 84px; object-fit: cover; border-radius: 5px; }
.cover-placeholder { background: var(--panel-2); }
.meta .title { font-size: 1.02rem; margin: 0 0 2px; }
.meta .author { margin: 0 0 4px; color: var(--muted); }
.facets { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 0.84rem; }
.facets span::before { content: ""; }

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}
.badge.available, .badge.status-imported { background: rgba(52,199,89,0.15); color: var(--green); }
.badge.requested, .badge.status-requested, .badge.status-grabbed { background: rgba(255,159,10,0.15); color: var(--amber); }
.badge.status-failed { background: rgba(255,69,58,0.15); color: var(--red); }

.footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 24px; border-top: 1px solid var(--border); }
