﻿/* Top 100 Manga Page Styles */

.top-100-manga-page {
  background: var(--head);
  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: var(--head);
  color: #fff;
  border-bottom: 3px solid #13667a;
  border-radius: 16px 16px 0 0;
}

.page-header h1 {
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.page-description {
  color: #bbb;
  font-size: 1rem;
  margin-top: 10px;
}

.top-100-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

@media (max-width: 1200px) {
  .top-100-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 992px) {
  .top-100-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .top-100-grid {
     grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
  }
}

.top-manga-card {
  position: relative;
  background: #252525;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
}

.top-manga-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  background: #2e2e2e;
}

.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: #fff;
  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;
}

.anime-title:hover,
.manga-title a:hover {
  color: #13667a;
}

.icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #aaa;
  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, #ffc107 20%, #ffa900 71%);
  color: #0f0f0f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  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: #ffc107 transparent #ffc107 #ffc107;
}

.top-num {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  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: #13667a;
  color: #0f0f0f;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.top-100-load-more-btn:hover {
  opacity: 0.9;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #bbb;
}

@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;
  }
}
