.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.manga-item {
  background-color: rgba(28, 35, 51, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.manga-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(94, 138, 191, 0.2);
  border-color: var(--accent-blue);
}

.manga-item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text-primary);
  text-decoration: none;
}

.manga-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease;
}

.manga-item:hover img {
  filter: brightness(1.1);
}

.manga-title {
  padding: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--light-accent);
  background-color: rgba(20, 25, 40, 0.7);
  margin-top: auto;
  transition: background-color 0.3s ease;
}

.manga-item:hover .manga-title {
  background-color: rgba(61, 98, 153, 0.3);
}

@media (max-width: 1200px) {
  .manga-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .manga-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .manga-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
  }
  
  .manga-title {
    font-size: 0.8rem;
    padding: 8px;
  }
}