
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-borda);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.card-img {
  height: 190px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 12px;
  min-height: 62px;
  color: var(--titulo);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.card-content p {
  min-height: 66px;
  color: var(--texto);
  font-size: 0.9rem;
  line-height: 1.6;
}

.episode-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* aperta o play neymar */
.play-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

/* paginacao  */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 45px;
}

.page-btn {
  padding: 10px 18px;
  background: #eee;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: 0.3s;
}

.page-btn:hover {
  background: #ddd;
}

.page-btn.primary {
  background: #004aad;
  color: #fff;
}

.page-numbers {
  display: flex;
  gap: 10px;
}

.page-number {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #eee;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.page-number:hover {
  background: #ddd;
}

.page-number.active {
  background: #004aad;
  color: #fff;
}

/* responsivo */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .card-content h3,
  .card-content p {
    min-height: auto;
  }

  .pagination {
    flex-wrap: wrap;
  }
}
