.tag-term-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.tag-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.tag-section-title {
  font-family: 'Roboto Slab', serif;
  font-size: 24px;
  font-weight: 700;
  color: #1F2937;
  margin: 2rem 0 1rem;
}

.tag-title {
  font-family: 'Roboto Slab', serif;
  font-size: 34px;
  font-weight: 800;
  color: #1F2937;
  margin: 0 0 0.5rem;
}

.tag-description {
  max-width: 720px;
  margin: 0 auto;
  color: #4B5563;
  font-size: 16px;
  line-height: 1.6;
}

.tagged-books-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.tagged-book-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
}

.tagged-book-cover {
  position: relative;
  display: block;
  background: #F3F4F6;
}

.tagged-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tagged-book-rating {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #FFD700;
  color: #1F2937;
  font-weight: 700;
  font-size: 13px;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.tagged-book-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tagged-book-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.tagged-book-title a {
  color: #1F2937;
  text-decoration: none;
}

.tagged-book-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 13px;
  color: #4B5563;
}

.tagged-book-desc {
  margin: 0;
  color: #4B5563;
  font-size: 14px;
  line-height: 1.6;
}

.tagged-meta-line {
  margin: 0;
  font-size: 13px;
  color: #4B5563;
}

.tag-empty {
  text-align: center;
  color: #6B7280;
  font-size: 16px;
  margin: 2rem 0 0;
}

@media (max-width: 960px) {
  .tagged-books-grid {
    grid-template-columns: 1fr;
  }

  .tagged-book-card {
    grid-template-columns: 1fr;
  }

  .tagged-book-cover img {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .tag-title {
    font-size: 26px;
  }

  .tagged-grid {
    grid-template-columns: 1fr;
  }

  .tagged-image img {
    height: 200px;
  }
}
