/* Pagination Controls */
.pagination-controls {
  margin: 2rem 0;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
}

.pagination-controls label {
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0;
}

#episode-range {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid #ced4da;
  background-color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;

}

#episode-range:hover,
#episode-range:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
  outline: none;
}
/* Episode Grid */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* smaller min width */
  gap: 1rem; /* tighter spacing */
  padding: 1.5rem 0;
  border-top: 2px solid #dee2e6;
  border-bottom: 2px solid #dee2e6;
  align-items: stretch;
}

/* Episode Card Container */
.episode-item {
  display: flex;
  margin:10px;

}

/* Episode Card */
.episode-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 0.75rem; /* smaller padding */
  text-align: center;
  width: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 80px;
}

/* Hover effect */
.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: #b6d4fe;
}

/* Active state */
.episode-card.active-episode {
  border: 2px solid #0d6efd;
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.12);
}

/* Episode Number */
.episode-number {
  font-size: 1rem;
  font-weight: bold;
  color: #6f42c1;
}

/* Episode Title */
.episode-title {
  font-size: 0.8rem;
  color: #495057;
  margin-top: 0.3rem;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.1em;
}

/* Episode Link */
.episode-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* Responsive Improvements */
@media (max-width: 992px) {
  .episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 576px) {
  .pagination-controls {
    justify-content: center;
  }

  .episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }

  .episode-card {
    padding: 0.5rem;
  }

  .episode-number {
    font-size: 0.9rem;
  }

  .episode-title {
    font-size: 0.75rem;
    min-height: 2em;
  }
}




.characters-section {
  margin-top: 3rem;
}

.characters-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #343a40;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
}

.character-card {
  text-align: center;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
}


.character-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem auto;
  border: 2px solid #dee2e6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.character-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #212529;
}

.character-role {
  font-size: 0.85rem;
  color: #6c757d;
}


.next-airing-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.next-airing-circle {
  background: #0d6efd;
  color: white;
  border-radius: 50%;
  width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding: 1rem;
}

.next-airing-label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  opacity: 0.8;
}

.next-airing-episode {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
}

.next-airing-timer {
  font-size: 0.9rem;
  opacity: 0.9;
}


