body {
  font-family: Arial, sans-serif;
  background: #f2f2f2;
  margin: 0;
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 20px !important;
}

#select-cinema option,
#select-heure option {
  background-color: #ffffff !important;
  color: #4a5568 !important;
  font-weight: normal;
  padding: 10px;
}

select:focus {
  background-color: #ffeeee !important;
  /* On garde votre rose clair uniquement sur le select lui-même */
}



.film-card {
  background: white;
  border-radius: 0px 0px 5px 5px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  text-decoration: none;
  color: inherit;
}

/* .film-card img {
      width: 100%;
      display: block;
    } */

/* .film-card h3 {
      font-size: 1rem;
      font-weight: bold;
      padding: 10px;
      margin: 0;
    } */

.film-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.film-card h3 {
  font-size: 1rem;
  /* font-weight: bold; */
  padding: 15px 10px;
  margin: 0;
  font-family: 'Signika', sans-serif;
  font-weight: 700;


  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2rem;
  color: #1f2937
}

.play-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.play-icon i {
  line-height: 2;
  vertical-align: middle;
  transform: translateX(1.5px);
}

.image-container {
  position: relative;
}

.badge {
  position: absolute;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
}

.badge.genre {
  background: #000;
  color: white;
  left: 10px;
  top: 10px;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 5px;
}

@media (max-width: 800px) {
  .film-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .badge.genre {
    max-width: 150px;
  }
}

.badge.duree {
  right: 10px;
  bottom: 10px;
  top: auto;
  background: #dc2626;
  color: white;
}


.date-btn:hover,
.date-btn:active {
  background: #0056b3;
}

.date-btn.active-date {
  background: #0056b3;
  color: white;
}

.date-btn {
  display: inline-block;
  margin: 5px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #dc2626;
  color: white;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: center;
}

@media (max-width: 600px) {
  .date-btn {
    font-size: 12px;
    padding: 6px 8px;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: #000;
}

.modal-content iframe {
  width: 100%;
  height: 450px;
  border: none;
}

.close {
  position: absolute;
  top: 0;
  right: 10px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.date-item.active {
  border-bottom: 4px solid #dc2626;
  color: #dc2626;
}


.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  grid-column: 1 / -1;
  width: 100%;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #dc2626;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  margin-top: 15px;
  font-family: 'Signika', sans-serif;
  font-weight: 600;
  color: #666;
}



[x-cloak] {
  display: none !important;
}


.font-script {
  font-family: 'Dancing Script', cursive;
}

.slider-height {
  height: 400px;
}

@media (max-width: 768px) {
  .slider-height {
    height: 300px;
  }
}

