body {
  font-family: Arial, Helvetica, sans-serif;
}

/* Narrow column for forms and short pages */
.narrow {
  max-width: 32rem;
}

/* Honeypot field: off-screen for people, still present for bots. */
#div_id_leave_blank {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----- Search ----- */
.search-form {
  position: relative;
  width: 100%;
  max-width: 28rem;
}

#search-results {
  width: 100%;
  max-height: 20rem;
  overflow-y: auto;
  top: 100%;
  left: 0;
}

.search-res {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.result-type {
  font-size: 0.85em;
  font-style: italic;
  opacity: 0.6;
}

/* ----- Images ----- */
.book-cover {
  width: 100%;
  max-width: 16rem;
  height: auto;
  border-radius: 4px;
}

.author-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.cover-col {
  width: 64px;
}

.small-img {
  width: 48px;
  height: 72px;
  object-fit: cover;
  border-radius: 2px;
}

.cover-thumbnail {
  width: 80px;
  height: 120px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
}

.book-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.cover-placeholder {
  width: 80px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-tertiary-bg);
  border-radius: 3px;
}

/* ----- Videos ----- */
.video-list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.video-thumb {
  border: 0;
  padding: 0;
  background: none;
  flex-shrink: 0;
}

.youtube-thumbnail {
  height: 100px;
  width: auto;
  border-radius: 4px;
}

/* ----- Rating ----- */
.rating__value {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.btn-rate {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.25rem;
}

.yellow-star {
  color: #ffc107;
}

.favorite-btn {
  text-decoration: none;
}
