#casts {
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
}

.casts .cast-card {
  display: flex;
  justify-content: center;
}

.casted-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  cursor: pointer;
}

.card-img-top-pf {
  width: 100%;
  height: 620px; /* Your base height */
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cast-details {
  padding: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.card-text {
  font-size: 1rem;
  color: #ccc;
}

.casted-card:hover {
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6), 
              0 0 45px rgba(255, 0, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}


/* --- RESPONSIVE MEDIA QUERIES --- */

/* For tablets and large phones */
@media (max-width: 575.98px) {
  .casted-card {
    max-width: 300px;
  }
  .card-img-top-pf {
    /* Proportional height: (300px / 400px) * 620px = 465px */
    height: 465px;
  }
}

/* For small phones */
@media (max-width: 400px) {
  .casted-card {
    max-width: 250px;
  }
  .card-img-top-pf {
    /* Proportional height: (250px / 400px) * 620px = 387.5px (rounded to 385px) */
    height: 385px;
  }
}

/* For very large screens (4K and up) */
@media (min-width: 2560px) {
  .casted-card {
    max-width: 420px;
  }
  .card-img-top-pf {
    /* Proportional height: (420px / 400px) * 620px = 651px (rounded to 650px) */
    height: 650px;
  }
}