.books-page {
  padding: 60px 20px;
  background: #f8f9fa;
}

.books-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.books-page__header {
  text-align: center;
  margin-bottom: 50px;
}

.books-page__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
}

.books-page__description {
  font-size: 1.125rem;
  color: #6c757d;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.books-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.book-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.book-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.book-card__cover {
  position: relative;
  width: 100%;
  padding-top: 140%;
  background: #e9ecef;
  overflow: hidden;
}

.book-card__cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card__age {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(44, 62, 80, 0.9);
  color: #fff;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  max-width: calc(100% - 20px);
  text-align: center;
}

.book-card__content {
  padding: 15px;
}

.book-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card__author {
  font-size: 0.875rem;
  color: #6c757d;
  font-style: italic;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.books-page__empty {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
  font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 768px) {
  .books-page {
    padding: 40px 15px;
  }

  .books-page .container {
    padding: 0 15px;
  }

  .books-page__title {
    font-size: 2rem;
  }

  .books-page__grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .books-page {
    padding: 30px 10px;
  }

  .books-page .container {
    padding: 0 10px;
  }

  .books-page__title {
    font-size: 1.75rem;
  }

  .books-page__grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }
}
