*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --border: rgba(255,255,255,0.07);
  --text: #f0f0f0;
  --muted: #888;
  --green: #4ade80;
  --orange: #f97316;
}

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

.page { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

.site-header { padding: 48px 0 32px; border-bottom: 1px solid var(--border); }
.site-title { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.dot { color: var(--green); }
.site-tagline { font-size: 0.95rem; color: var(--green); margin-top: 6px; font-weight: 600; }
.site-mission { color: var(--muted); margin-top: 8px; max-width: 560px; font-size: 0.85rem; }

.pitch {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  max-width: 720px;
}
.pitch-main {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
.pitch-privacy {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--green);
}

.ai-prompt-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 24px 0;
}
.ai-prompt-summary {
  padding: 14px 18px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.ai-prompt-summary::-webkit-details-marker { display: none; }
.ai-prompt-box[open] .ai-prompt-summary { border-bottom: 1px solid var(--border); }
.ai-prompt-inner {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-prompt-hint { font-size: 0.8rem; color: var(--muted); }
.ai-prompt-body {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
}
.copy-btn {
  align-self: flex-start;
  background: var(--orange);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.copy-btn:hover { background: #fb923c; }

.stats-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: var(--muted);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sep { color: var(--border); }
.source-link { color: var(--orange); text-decoration: none; }
.source-link:hover { text-decoration: underline; }

.book-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 56px;
}
@media (max-width: 1200px) { .book-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .book-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .book-grid { grid-template-columns: repeat(2, 1fr); } }

.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: border-color 0.15s, transform 0.15s;
}
.book-card:hover { border-color: var(--orange); transform: translateY(-2px); }

.rank-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(0,0,0,0.75);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.cover-wrap {
  aspect-ratio: 2/3;
  background: #222;
  border-radius: 4px;
  overflow: hidden;
}
.cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.book-title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author { color: var(--muted); font-size: 0.72rem; margin-top: -4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-ratings { color: #facc15; font-size: 0.7rem; }

.book-price { display: flex; align-items: center; gap: 6px; }
.free-badge {
  background: var(--green);
  color: #000;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.07em;
}
.price { color: var(--green); font-size: 0.78rem; font-weight: 700; }
.editors-pick-badge {
  background: #f59e0b;
  color: #000;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.07em;
}
.editors-pick-price { color: var(--text); font-size: 0.78rem; font-weight: 700; }

.get-btn {
  margin-top: auto;
  background: var(--orange);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 4px;
  text-align: center;
  letter-spacing: 0.04em;
  display: block;
}
.book-card:hover .get-btn { background: #fb923c; }

.site-footer { border-top: 1px solid var(--border); padding: 20px 0 40px; }
.disclosure { color: var(--muted); font-size: 0.75rem; max-width: 660px; line-height: 1.6; }
.disclosure code { background: #2a2a2a; padding: 1px 5px; border-radius: 3px; }
