.nvl-archive-page-container {
  max-width: 1300px;
  margin: 0.5rem auto 2rem;
  padding: 0 20px;
}

.nvl-archive-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.nvl-archive-header h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--nvl-text-color);
  margin-bottom: 0.2rem;
  letter-spacing: -1px;
}

.nvl-archive-header p {
  color: #6b7280;
  font-size: 1rem;
}

.nvl-archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  align-items: center;
  border: 1px solid #f3f4f6;
}

.filter-item {
  flex: 1;
  min-width: 150px;
  position: relative;
}

.search-box {
  flex: 2;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: 0 50px 0 20px;
  height: 45px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #f3f4f6;
  color: var(--nvl-text-color);
  transition: all 0.3s ease;
}

.search-box input:focus {
  background: #fff;
  border-color: var(--nvl-primary-color);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
  outline: none;
}

.search-box input::placeholder {
  color: #9ca3af;
}

.search-box i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.3s;
}

.search-box input:focus + i {
  color: var(--nvl-primary-color);
}

.filter-item select {
  width: 100%;
  height: 45px;
  padding: 0 15px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background-color: #f3f4f6;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236b7280%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: left 15px center;
  background-size: 10px;
}

.filter-item select:focus {
  background-color: #fff;
  border-color: var(--nvl-primary-color);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
  outline: none;
}

.filter-item select:hover {
  background-color: #e5e7eb;
}

.nvl-reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: #fee2e2;
  color: #ef4444;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: 2px solid transparent;
}

.nvl-reset-btn:hover {
  background: #fecaca;
  transform: rotate(90deg);
  color: #b91c1c;
}

.nvl-no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: #9ca3af;
  background: #f9fafb;
  border-radius: 20px;
  border: 2px dashed #e5e7eb;
}

.nvl-no-results i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: block;
}

.nvl-no-results p {
  font-size: 1rem;
}

.nvl-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.nvl-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 8px;
  background: #fff;
  color: var(--nvl-text-color);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  font-size: 0.9rem;
}

.nvl-pagination .page-numbers.current,
.nvl-pagination .page-numbers:hover {
  background: var(--nvl-primary-color);
  color: #fff;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
  transform: translateY(-2px);
}

.nvl-pagination .page-numbers.dots {
  background: transparent;
  box-shadow: none;
}

.nvl-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.nvl-horizontal-scroll-grid {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1rem 0.5rem 2.5rem 0.5rem;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}

.nvl-horizontal-scroll-grid::-webkit-scrollbar {
  height: 6px;
}

.nvl-horizontal-scroll-grid::-webkit-scrollbar-track {
  background: var(--nvl-light-bg-color);
  border-radius: 10px;
}

.nvl-horizontal-scroll-grid::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 10px;
}

.nvl-horizontal-scroll-grid .nvl-novel-card {
  flex: 0 0 220px;
  width: 220px;
  scroll-snap-align: start;
}

.nvl-novel-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  text-decoration: none;
}

.nvl-novel-card a {
  text-decoration: none !important;
  color: inherit;
}

.nvl-novel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: transparent;
}

.nvl-card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  margin: 10px 10px 0 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.nvl-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.nvl-novel-card:hover .nvl-card-cover img {
  transform: scale(1.08);
}

.nvl-card-cover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  opacity: 0.5;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nvl-novel-card:hover .nvl-card-cover::after {
  opacity: 1;
}

.nvl-hover-summary {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 15px 15px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 10%,
    rgba(0, 0, 0, 0.7) 80%,
    transparent 100%
  );
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 3;
  text-align: justify;
  pointer-events: none;
  border-radius: 0 0 12px 12px;
}

.nvl-novel-card:hover .nvl-hover-summary {
  opacity: 1;
  transform: translateY(0);
}

.nvl-hover-summary p {
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.nvl-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  z-index: 2;
  letter-spacing: 0.5px;
}

.nvl-status-badge[data-status="ongoing"] {
  background: rgba(34, 197, 94, 0.9);
}
.nvl-status-badge[data-status="completed"] {
  background: rgba(168, 85, 247, 0.9);
}
.nvl-status-badge[data-status="cancelled"] {
  background: rgba(239, 68, 68, 0.9);
}

.nvl-chapter-count-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

.nvl-novel-card:hover .nvl-chapter-count-badge {
  opacity: 0;
}

.nvl-chapter-count-badge i {
  color: var(--nvl-primary-color);
  font-size: 0.8rem;
}

.nvl-card-info {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.nvl-title-fa {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.3rem;
  line-height: 1.5;
  color: var(--nvl-text-color);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.nvl-title-fa a {
  color: var(--nvl-text-color);
  transition: color 0.3s ease;
}

.nvl-novel-card:hover .nvl-title-fa a {
  color: var(--nvl-primary-color);
}

.nvl-title-en {
  font-size: 0.85rem;
  color: #9ca3af;
  margin: 0 0 1rem;
  font-weight: 500;
  font-family: sans-serif;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  opacity: 0.8;
}

.nvl-card-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px dashed #e5e7eb;
  font-size: 0.75rem;
  color: #6b7280;
}

.nvl-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f9fafb;
  padding: 4px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.nvl-card-meta i {
  color: var(--nvl-primary-color);
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .nvl-archive-filters {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }

  .filter-item,
  .search-box {
    width: 100%;
    flex: auto;
  }

  .nvl-reset-btn {
    width: 100%;
    border-radius: 8px;
    margin-top: 0;
  }

  .nvl-archive-header h1 {
    font-size: 1.8rem;
  }

  .nvl-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .nvl-novel-card {
    border-radius: 12px;
  }

  .nvl-card-meta {
    gap: 5px;
    justify-content: center;
  }
}
