/* The shelf: books stand on a board, each with its title and author beneath. */
#add { margin: 0 0 1.5rem; max-width: 34rem; position: relative; }
#add label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.2rem; }
#add input { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 5px; padding: 0.6rem 0.7rem; font-size: 1rem; }
#add input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

#matches { list-style: none; margin: 0; padding: 0; }
#matches:empty { display: none; }
#matches li { margin: 0; }
#matches button { display: flex; gap: 0.7rem; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-top: 0; color: var(--text); padding: 0.4rem 0.6rem; font: inherit; font-size: 0.9rem; cursor: pointer; }
#matches button:hover, #matches button:focus-visible { border-color: var(--accent); outline: none; }
#matches img, #matches .nocover { width: 34px; height: 50px; object-fit: cover; flex: none; border-radius: 2px; background: var(--bg); }
#matches .match-author { color: var(--muted); font-size: 0.8rem; }

.shelf { display: flex; align-items: flex-end; gap: 14px; padding: 0 12px; min-height: 170px; }
.board { height: 14px; background: linear-gradient(#6b4a2f, #4a321e); border-radius: 2px; box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5); margin-bottom: 2.2rem; }
.book { width: 112px; flex: none; margin: 0; }
.book img.cover, .book .plain { display: block; height: 140px; width: auto; max-width: 112px; border-radius: 2px 4px 4px 2px; box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6); background: var(--surface); }
.book .plain { display: flex; align-items: center; justify-content: center; text-align: center; width: 95px; padding: 0.5rem; background: #2a2540; font-size: 0.8rem; }
.book figcaption { padding-top: 0.45rem; font-size: 0.78rem; line-height: 1.3; }
.book .title { display: block; }
.book .author { display: block; color: var(--muted); }
.book .just-added { display: block; color: var(--good); font-size: 0.72rem; margin-top: 0.15rem; }
.empty { color: var(--muted); }
