html {
  scroll-behavior: smooth;
}
#booking-section {
  scroll-margin-top: 100px;
}
#date-section {
  scroll-margin-top: 100px;
}
body {
  background: #09090b;
  position: relative;
}
/* start movieDetails */
body::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  top: 100px;
  left: 300px;
  background: radial-gradient(
    circle,
    rgba(248, 69, 101, 0.25),
    transparent 75%
  );
}
.movie-details {
  padding: 100px 0;
  background: radial-gradient(
    circle at 20% 30%,
    rgba(248, 69, 101, 0.1),
    transparent 50%
  );
}
.detail-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.poster-side img {
  width: 278px;
  height: 417px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.lang-label {
  color: #f84565;
  font-weight: 600;
  letter-spacing: 1px;
}
.info-side {
  margin-left: 60px;
}
.info-side h1 {
  font-size: 36px;
  margin: 10px 0;
  font-weight: 700;
  color: #fff;
  max-width: 220px;
}
.rating-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
  color: #ccc;
}
.movie-plot {
  font-size: 14px;
  color: #99a1af;
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 25px;
}
.meta-specs {
  margin-bottom: 40px;
  color: #eee;
  font-weight: 500;
}
.action-btns {
  display: flex;
  gap: 20px;
  align-items: center;
}
.btn-watch {
  background: #1a222d;
  color: white;
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  gap: 10px;
}
.btn-buy {
  background: #f84565;
  color: white;
  padding: 15px 45px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}
.btn-fav {
  background: #1a222d;
  border: none;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
}
@media (max-width: 767px) {
  body::after {
    top: 10px;
    left: 30px;
  }
  .movie-details {
    text-align: left;
    padding-left: 20px;
    overflow: auto;
  }
  .detail-container {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }
  .info-side {
    margin: 0;
  }
  .poster-side img {
    width: 300px;
    height: auto;
  }
  .info-side h1 {
    max-width: 100%;
    font-size: 28px;
  }
  .movie-plot {
    width: 80%;
  }
  .action-btns {
    width: 80%;
    gap: 15px;
  }
  .btn-watch,
  .btn-buy {
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    gap: 5px;
  }
}
/* end movieDetails */

/* start castDatesSection */
.cast-date-section {
  margin: 60px 200px;
  background: radial-gradient(
    circle at bottom right,
    rgba(248, 69, 101, 0.05),
    transparent 40%
  );
}
.CastDate-container {
  display: flex;
  flex-direction: column;
}
.sub-title {
  font-size: 20px;
  margin-bottom: 30px;
  color: #fff;
}
.cast-wrapper {
    display: flex;
    gap: 35px;
    overflow: hidden;
    /*    position: relative;*/
    width: max-content;
    padding-bottom: 20px;
    animation: scrollLoop 20s linear infinite;
    scroll-behavior: smooth;
}
.cast-section {
    overflow: hidden;
}
.cast-wrapper::-webkit-scrollbar {
  display: none;
}
    .cast-wrapper:hover {
        animation-play-state: paused;
    }
.cast-card {
  min-width: 90px;
  text-align: center;
}
.cast-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}
.cast-card h4 {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.cinema-section {
  margin-top: 50px;
}

.cinema-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cinema-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-radius: 14px;
  border: 1px solid rgba(248, 69, 101, 0.2);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.cinema-card:hover {
  border-color: rgba(248, 69, 101, 0.5);
  background: rgba(248, 69, 101, 0.05);
}

.cinema-card.active {
  border-color: #f84565;
  background: rgba(248, 69, 101, 0.1);
}

.cinema-card.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #f84565;
  border-radius: 14px 0 0 14px;
}

.cinema-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 69, 101, 0.15);
  border-radius: 10px;
  flex-shrink: 0;
}

.cinema-info {
  flex: 1;
}

.cinema-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.cinema-info p {
  font-size: 13px;
  color: #99a1af;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cinema-badge {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .cinema-wrapper {
    gap: 10px;
  }
  .cinema-card {
    padding: 14px 16px;
  }
}

/* --- Booking Card Style --- */
.booking-section {
  margin-top: 50px;
  position: relative;
}
.booking-section::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  top: -85px;
  left: -70px;
  background: radial-gradient(circle, rgba(248, 69, 101, 0.4), transparent 70%);
}
.booking-section::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  bottom: -85px;
  right: -20px;
  background: radial-gradient(circle, rgba(248, 69, 101, 0.4), transparent 70%);
}
.booking-card {
  background: rgba(248, 69, 101, 0.05);
  border: 1px solid rgba(248, 69, 101, 0.2);
  border-radius: 16px;
  padding: 35px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.date-picker {
  display: flex;
  align-items: center;
  gap: 20px;
}
.dates-container {
  display: flex;
  gap: 12px;
}
.booking-card h3 {
  color: #fff;
  white-space: nowrap;
  font-size: 20px;
}
.date-item {
  width: 65px;
  height: 65px;
  border: 1px solid #ff4b6e;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  color: #fff;
}
.date-item span {
  font-size: 18px;
  font-weight: 600;
}
.date-item p {
  font-size: 13px;
  opacity: 0.7;
}
.date-item.active {
  background: #f84565;
  border-color: #f84565;
}
.arrow-btn {
  background: transparent;
  border: none;
}
.book-now-btn {
  background: #f84565;
  color: #fff;
  border: none;
  padding: 14px 45px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 991px) {
  .cast-date-section {
    margin: 0;
    padding: 20px;
  }
  .booking-card {
    flex-direction: column;
    text-align: center;
  }
  .dates-container {
    overflow-x: auto;
    padding: 10px;
    width: 100%;
    justify-content: flex-start;
  }
  .book-now-btn {
    width: 100%;
  }
}
/* end castDatesSection */

@keyframes scrollLoop {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(-50%);
    }

    90% {
        transform: translateX(-50%); /* هنا الوقفة */
    }

    100% {
        transform: translateX(0);
    }
}
