/* ── Hero ── */
.hero { display: flex; gap: 28px; margin-bottom: 8px; align-items: flex-start; }
.hero-cover {
  flex-shrink: 0; width: 200px; height: 280px;
  border-radius: 6px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border);
}
.hero-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .25s ease;
}
.hero-cover img.img-loaded { opacity: 1; }
.cover-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 2rem;
}
.hero-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hero-info h1 { font-size: 1.5rem; line-height: 1.25; }
.hero-meta { display: flex; align-items: center; gap: 10px; }
.meta-year { color: var(--text-muted); font-size: .9rem; }

/* ── Meta rows ── */
.meta-row { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; }
.meta-label { color: var(--text-muted); min-width: 58px; flex-shrink: 0; padding-top: 3px; }
.meta-value { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; line-height: 1.6; }
.role { color: var(--text-muted); font-size: .8rem; }

/* ── Tags / Genres ── */
.tag-pill {
  background: rgba(187,154,247,.12); color: var(--purple);
  padding: 2px 10px; border-radius: 20px; font-size: .78rem; font-weight: 500;
}
.tag-pill:hover { background: rgba(187,154,247,.25); color: var(--purple); text-decoration: none; }
.tag-genre { background: rgba(122,162,247,.12); color: var(--accent); }
.tag-genre:hover { background: rgba(122,162,247,.25); color: var(--accent-hover); }

/* ── About ── */
.about { display: flex; flex-direction: column; gap: 6px; }
.about-text { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }
.about-collapsed { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.about-btn { background: none; border: none; color: var(--accent); cursor: pointer; font-size: .8rem; padding: 0; }
.about-btn:hover { color: var(--accent-hover); text-decoration: underline; }

/* ── Chapter list ── */
.chapters-heading { font-size: 1.1rem; margin: 32px 0 12px; display: flex; align-items: baseline; gap: 8px; }
.chapters-count { color: var(--text-muted); font-weight: 400; font-size: .9rem; }
.chapter-list { display: flex; flex-direction: column; gap: 2px; }
.chapter-row {
  display: grid; grid-template-columns: 150px 1fr auto auto;
  align-items: center; gap: 16px; padding: 10px 14px;
  border-radius: 6px; background: var(--bg-card); border: 1px solid transparent;
  transition: background .12s, border-color .12s;
}
.chapter-row:hover { background: var(--bg-hover); border-color: var(--border); }
.chapter-draft { opacity: .6; }
.ch-num { font-size: .9rem; font-weight: 500; }
.ch-title { font-size: .85rem; color: var(--text-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-pages { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }

@media (max-width: 640px) {
  .hero { flex-direction: column; }
  .hero-cover { width: 140px; height: 196px; }
  .chapter-row { grid-template-columns: 1fr auto; }
  .ch-title, .ch-pages { display: none; }
}
