/* Books */
.book-grid { display: grid; gap: 16px 14px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.book-card { cursor: pointer; min-width: 0; }
.book-cover { position: relative; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--panel-3); box-shadow: 0 6px 16px rgba(0,0,0,.22); transition: transform .15s; }
.book-card:hover .book-cover { transform: translateY(-3px); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shelf-badge { position: absolute; left: 6px; top: 6px; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 99px; color: #fff; background: rgba(0,0,0,.65); }
.shelf-badge.reading { background: var(--accent); } .shelf-badge.read { background: var(--win); } .shelf-badge.want { background: #a855f7; }
.bk-title { font-weight: 700; font-size: 13px; margin-top: 8px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bk-author { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stars-sm { color: var(--star); font-size: 12px; letter-spacing: 1px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.book-head { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; }
.book-head .book-cover { box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.book-head h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; }
.bk-by { font-weight: 600; margin-bottom: 4px; }
.shelf-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.my-stars { display: flex; align-items: center; gap: 2px; margin-top: 8px; }
.my-stars button { background: none; border: 0; font-size: 24px; line-height: 1; color: var(--line); cursor: pointer; padding: 0 2px; }
.my-stars button.on { color: var(--star); }
.my-stars .meta { margin-left: 8px; }
.rating-box { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.rating-big { font-size: 28px; font-weight: 800; color: var(--star); }
.dist { display: grid; gap: 4px; }
.dist-row { display: grid; grid-template-columns: 26px 1fr 52px; gap: 8px; align-items: center; font-size: 12px; }
.dist-row .meta { text-align: right; }
.desc { white-space: pre-line; line-height: 1.6; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.goal-input { display: inline-flex; align-items: center; gap: 6px; }
.goal-input input { width: 74px; padding: 6px 8px; }
.kv div.progress { margin-top: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--panel-3); }
.sg-cover { width: 30px; height: 44px; flex: none; border-radius: 4px; overflow: hidden; background: var(--panel-3); }
.sg-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
