/* Top 100 Manga Page Styles */
/*
 * ReaderX premium visual polish pass. Structure, grid columns,
 * breakpoints, ranking system, sizing, and markup are all unchanged --
 * only color/border/shadow/hover treatment was updated to match the
 * approved ReaderX visual language already used across the rest of
 * the site. .top-manga-card is intentionally NOT converted to
 * .readerx-card -- Top 100 keeps its own special ranking-card
 * identity, per the approved decision.
 */

.top-100-manga-page {
  background: #1e2025;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  margin: 30px auto;
  max-width: 1200px;
}

.page-header {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: #191b20;
  color: #f2f3f6;
  border-bottom: 3px solid #ec3d8f;
  border-radius: 16px 16px 0 0;
}

.page-header h1 {
  color: #f2f3f6;
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.page-description {
  color: #858994;
  font-size: 1rem;
  margin-top: 10px;
}

.top-100-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

@media (max-width: 1200px) {
  .top-100-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .top-100-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .top-100-grid {
     grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

.top-manga-card {
  position: relative;
  background: #181a1f;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.top-manga-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(236, 61, 143, 0.12);
  background: #1e2025;
  border-color: rgba(236, 61, 143, 0.55);
}

.top-manga-card .image-block,
.top-manga-card .manga-cover {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

.top-manga-card .image-block img,
.top-manga-card .manga-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.2s ease;
}

.top-manga-card:hover .image-block img,
.top-manga-card:hover .manga-cover img {
  transform: scale(1.05);
}

.manga-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.anime-title,
.manga-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #f2f3f6;
  margin: 0 0 10px;
  line-height: 1.3;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  padding-top: 10px;
  transition: color 0.15s ease;
}

.anime-title:hover,
.manga-title a:hover {
  color: #ec3d8f;
}

.icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #858994;
  margin-top: auto;
}

.views-count,
.votes-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rating-over {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 12;
  display: flex;
  align-items: center;
  height: auto;
  min-height: 26px;
}

.rating-over .rating-info {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(269deg, #ffce67 20%, #e6b355 71%);
  color: #0f0f0f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.20);
  white-space: nowrap;
}

.rating-over::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 13px 9px;
  border-style: solid;
  border-color: #ffce67 transparent #ffce67 #ffce67;
}

.top-num {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 16, 19, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #f2f3f6;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  z-index: 11;
}

.top-100-load-more-wrapper {
  text-align: center;
  margin: 25px 0;
}

.top-100-load-more-btn {
  background: #ec3d8f;
  color: #ffffff;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.top-100-load-more-btn:hover {
  opacity: 0.9;
  box-shadow: 0 4px 14px rgba(236, 61, 143, 0.30);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #858994;
}

@media (max-width: 768px) {
  .top-100-manga-page {
    padding: 15px;
  }

  .page-header h1 {
    font-size: 22px;
  }

  .top-manga-card .image-block,
  .top-manga-card .manga-cover {
    aspect-ratio: 4 / 5;
  }

  .manga-info {
    padding: 14px;
  }
}

@media (max-width: 576px) {
  .top-100-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .top-manga-card .image-block,
  .top-manga-card .manga-cover {
    aspect-ratio: 3 / 4;
  }

  .anime-title,
  .manga-title {
    font-size: 15px;
  }

  .position-badge {
    font-size: 12px;
    padding: 3px 6px;
  }
}
