/* Popular Series Page */
.popular-series-page {
  padding: 4rem 1.5rem 5rem;
  background: linear-gradient(180deg, #FFF7E8 0%, #FDE8F3 100%);
}

.popular-series-page .container {
  max-width: 1200px;
  margin: 0 auto;
}

.popular-series-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.popular-series-header .page-title {
  font-family: 'Roboto Slab', serif;
  font-size: 36px;
  color: #2C3E50;
  margin: 0 0 0.5rem;
}

.popular-series-header .page-subtitle {
  font-family: 'Roboto Slab', serif;
  font-size: 16px;
  color: #5C6F7B;
  margin: 0;
}

.popular-series-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.series-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(38, 50, 56, 0.12);
  transition: transform 0.2s ease;
  width: 220px;
}

.series-card:hover {
  transform: translateY(-4px);
}

.series-cover-link {
  display: block;
  position: relative;
}

.series-cover {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #f7f7f7;
}

.series-cover.placeholder {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9BA6B2;
  font-family: 'Roboto Slab', serif;
  border-radius: 12px;
  background: #f3f5f7;
}

.series-age-badge {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  background: rgba(44, 62, 80, 0.9);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.2px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: 'Roboto Slab', serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  max-width: 90%;
  text-align: center;
  text-transform: none;
}

.series-card:hover .series-age-badge,
.series-card:focus-within .series-age-badge {
  opacity: 1;
}

@media (hover: none), (pointer: coarse), (max-width: 768px) {
  .series-age-badge {
    opacity: 1;
  }
}

.series-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.series-title {
  margin: 0;
  font-size: 18px;
  font-family: 'Roboto Slab', serif;
  color: #2C3E50;
}

.series-author {
  margin: 0;
  font-size: 14px;
  font-style: italic;
  color: #6b7c86;
  font-family: 'Roboto Slab', serif;
}

.series-title a {
  color: inherit;
  text-decoration: none;
}

.series-title a:hover {
  text-decoration: underline;
}

.series-description {
  margin: 0;
  color: #4F5B66;
  font-size: 14px;
  line-height: 1.5;
  font-family: 'Roboto Slab', serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.series-read-more {
  font-size: 13px;
  color: #3b6ea5;
  text-decoration: none;
  font-family: 'Roboto Slab', serif;
}

.series-read-more:hover {
  text-decoration: underline;
}

.popular-series-empty {
  text-align: center;
  color: #6B7C86;
  font-family: 'Roboto Slab', serif;
}

@media (max-width: 1024px) {
  .series-card {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .popular-series-page {
    padding: 3rem 1.25rem 4rem;
  }

  .popular-series-header .page-title {
    font-size: 30px;
  }

  .series-card {
    width: 100%;
    max-width: 260px;
  }

  .series-cover {
    height: 220px;
  }
}
