.library-page {
  background: var(--steel-dark);
  min-height: 100vh;
  padding: 48px 0 64px;
}
.library-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.library-header {
  text-align: center;
  margin-bottom: 40px;
}
.library-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
}
.library-lead {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 16px;
}
.library-note {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Category headers */
.lib-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 16px;
}
.lib-category:first-of-type { margin-top: 0; }
.lib-cat-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lib-cat-dot--blue   { background: #2563eb; }
.lib-cat-dot--amber  { background: #d97706; }
.lib-cat-dot--green  { background: #16a34a; }
.lib-cat-dot--purple { background: #7c3aed; }
.lib-cat-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin: 0;
}

/* Book cards */
.lib-card {
  display: flex;
  gap: 20px;
  background: var(--steel);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 14px;
}
.lib-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}
.lib-body { flex: 1; }
.lib-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.3;
}
.lib-author {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0 0 10px;
}
.lib-desc {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0 0 12px;
}

/* Tags */
.lib-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.lib-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.lib-tag--blue   { background: #dbeafe; color: #1e40af; }
.lib-tag--amber  { background: #fef3c7; color: #92400e; }
.lib-tag--green  { background: #dcfce7; color: #166534; }
.lib-tag--purple { background: #ede9fe; color: #5b21b6; }

/* Buy button */
.lib-buy-btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.lib-buy-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* Affiliate disclosure */
.lib-affiliate-notice {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Mobile */
@media (max-width: 480px) {
  .library-header h1 { font-size: 1.6rem; }
  .lib-card { padding: 18px 16px; gap: 14px; }
  .lib-number { font-size: 1.2rem; min-width: 22px; }
  .lib-title { font-size: 0.95rem; }
  .lib-desc { font-size: 0.84rem; }
}
