/* Manga list */
.manga-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.manga-item {
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.manga-item:hover {
  background-color: var(--accent);
  transform: scale(1.03);
}

.manga-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  transition: filter 0.3s ease;
}

.manga-info {
  padding: 8px 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.manga-title {
  font-weight: bold;
  font-size: 1rem;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.manga-chapter {
  font-size: 0.85rem;
  color: var(--text);
  margin-top: 4px;
  transition: color 0.3s ease;
}

/* Horizontal scroll container */
.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 15px;
  scrollbar-width: thin;
  scrollbar-color: var(--card)88 transparent;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: var(--card)88;
  border-radius: 4px;
}
