
.search-form:active {
  border-color: var(--secondary-color);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}
.auth-links-container {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  position: fixed !important;
  z-index: 99999;
  background-color: #1a1a2e !important;
 
  padding-bottom: 20px;
}



.search-result-title {
  display: block !important;
}

.search-result-type{
  display: block !important;
}

.search-container {
    margin-right: 15px;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
	margin-top: 2%;
}




.search-input {
    border: none;
    background: transparent;
    color: white;
    padding: 5px 10px;
    outline: none;
    width: 200px;
    font-family: 'Montserrat', sans-serif;
	width: 100%;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
	display: none !important;
}

.search-button i {
    pointer-events: none;
}










.slide-title-container {
    position: absolute;
    bottom: 0%
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Fond noir semi-transparent */
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 1.5em;
    z-index: 2;
	 
} 

.slide-title {
    margin: 0;
    padding: 0;
}

.remove-from-list-btn {
    background-color: #f00022;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    margin-top: 5px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.remove-from-list-btn:hover {
    background-color: #d6001c;
}

.remove-from-list-btn i {
    margin-right: 5px;
}

.supprimer-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 12px;
}
.supprimer-btn:hover {
    background-color: #c0392b;
}


.repondre-btn {
    background-color: #a07f1d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}
.repondre-btn:hover {
    background-color: #d09f21;
}
.reponse-form-container {
    margin-top: 10px;
    padding: 10px;
    background-color: #2a2a3e;
    border-radius: 4px;
}
.form-reponse textarea {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.btn-repondre {
    background-color: #a07f1d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
}
.btn-repondre:hover {
    background-color: #d09f21;
}
.reponses-container {
    margin-top: 10px;
    margin-left: 20px;
    border-left: 2px solid #a07f1d;
    padding-left: 10px;
}


#faq-suite a:hover {
  color: #d09f21;
}
/* Style du badge de classement */
#search{
text-align: center;
  font-size: 21px;
  margin-top: 3%;
}
.movie-card {
    position: relative;
    display: inline-block;

}

.rank-badge {
	  z-index: 2; /* Assure que le badge est au-dessus de tout */
    pointer-events: none; /* Permet de cliquer à travers le badge */
  position: absolute;
  top: 6px;
  right: 10px;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(to right, #e3baff, #d09f21);
  color: #00000000;
  -webkit-text-stroke-color: transparent;
  -webkit-text-stroke-width: var(--stroke-width);
  letter-spacing: -2px;
  font-weight: 1000;
  font-size: 62px;
  text-shadow: 5px 5px 15px rgba(0, 0, 0, 0.75);
  text-shadow: 0px 0px 25px #d09f21;
}


.movie-poster {
	z-index: 1;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}


.trending-week-list {
   display: grid !important;
    overflow-x: auto;
  padding: 10px 0;

  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 30px !important;
  margin-top: 20px;
  margin-left: 2%;
  margin-right: 2%;
}

/* Style de base pour le conteneur des tendances */
.trending-week-container {
	
    margin: 20px 0;
    width: 100%;
    overflow: hidden;
}

.trending-week-list {
	margin-bottom: 4% !important;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #555 #333;
    width: 100%;
}

.trending-week-list::-webkit-scrollbar {
    height: 8px;
}

.trending-week-list::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.trending-week-list::-webkit-scrollbar-track {
    background: #333;
}

/* Style des cartes de films */
.trending-week-list .movie-card {
   
    cursor: pointer;
    position: relative;
}

.trending-week-list .movie-poster {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	 z-index: 1;
}

/* Media queries pour adapter la taille des cartes */
@media (min-width: 480px) {
    .trending-week-list .movie-card {
        min-width: 160px;
    }
}

@media (min-width: 768px) {
    .trending-week-list .movie-card {
        min-width: 180px;
    }
	

}



@media (max-width: 768px) {
	.trending-week-list {
  display: grid !important;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: #555 #333;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
  gap: 30px;
  margin-top: 20px;
  margin-left: 2%;
  margin-right: 2%;
}}


#genre:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
 cursor: pointer;
}

.loader-text {
  color: red;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 5px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-top: 0%;
    text-align: center !important;
}

@media (max-width: 800px) {
.loader-text {
  color: red;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em !important;
  text-align: center !important;
}	
.trending-slide h3 {
  font-size: 0.5em !important;
  margin-bottom: 10px;
  z-index: 2;
}

.learn-more-button-slider {
  top: 65% !important;

}
}

/* Loader full page */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a2e; /* Fond sombre pour le contraste */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 200px;
    height: 4px;
    background-color: #444;
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0;
   
    animation: loading 2s ease forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}


/* Désactiver le style "cliquable" des accordéons */
.accordion-mylist {
    pointer-events: none; /* Désactive les clics */
    cursor: default; /* Change le curseur pour indiquer que ce n'est pas cliquable */
}

/* Forcer l'affichage des panels */
.accordion-mylist + .panel {
    display: block !important;
    max-height: none !important;
}


#search-comment {
  padding: 12px 25px;
    padding-right: 25px;
  padding-right: 25px;
  padding-right: 25px;
  padding-right: 25px;
  border-radius: 50px;
  border: 2px solid var(--border-color);
  background-color: var(--card-background);
  color: var(--primary-color);
  font-size: 1em;
  width: clamp(250px, 50%, 500px);
  outline: none;
  transition: var(--transition);
  margin-top: 2%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.search-input-container #search-comment:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}


.user-profile-summary img {
position: relative;
  margin-top: -6% !important;

}

.custom-banner {
margin-top: 3%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}


.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}




.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(50, 50, 120, 0.4));
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.custom-banner {
    position: relative;
    width: 100%;
    height: 300px; /* Ajuste la hauteur selon tes besoins */
    overflow: hidden;
    margin-bottom: 20px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Pour que l'image couvre toute la zone */
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.3); /* Fond semi-transparent pour améliorer la lisibilité du texte */
}

.banner-overlay h2 {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Ombre pour améliorer la lisibilité */
}

.ribbon-watched {
    position: absolute;
    top: 10px;
    left: -10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 15px;
    transform: rotate(-45deg);
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    text-align: center;
    width: 80px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}


#info_utilisateur {
    /* Style général du conteneur, si nécessaire */
    text-align: center;
    margin-bottom: 20px;
}

.stats-line {
    display: flex; /* Utilise Flexbox pour aligner les éléments */
    justify-content: center; /* Centre les éléments horizontalement */
    align-items: center; /* Aligne les éléments verticalement */
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne sur les petits écrans */
    gap: 15px; /* Ajoute un espace entre chaque élément */
}

.stats-line p {
    margin: 0; /* Supprime la marge par défaut des paragraphes pour un meilleur alignement */
    white-space: nowrap; /* Empêche le texte de passer à la ligne à l'intérieur d'un paragraphe */
}

.stats-line .separator {
    color: #ccc; /* Couleur du séparateur */
    font-size: 1.2em;
    font-weight: bold;
    user-select: none; /* Empêche la sélection du séparateur */
}

/* Vous pouvez ajuster le style des icônes pour qu'elles s'alignent parfaitement */
.stats-line p i {
    margin-right: 5px;
}

/* Média-queries pour les petits écrans */
@media (max-width: 768px) {
    .stats-line {
        flex-direction: column; /* Aligne les éléments en colonne sur les petits écrans */
        gap: 5px; /* Réduit l'espace entre les éléments */
	
    }
	
	 .stats-line p {
		font-size: 12px !important;
    }
	
    .stats-line .separator {
        display: none; /* Cache le séparateur sur les petits écrans si vous préférez */
    }
}

#modal-category-select:hover {
  background-color: #d09f21;
  color: white;

}
.category-display {
  width: 100%;
}
.serie-finie-bandeau {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10;
}


.season-accordion-btn.watched:hover {
  border: 2px solid #4CAF50;
  background-color: #4CAF50;
}

.select-all-episodes-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
	font-family: 'Poppins', sans-serif;
}

.select-all-episodes-btn:hover {
     background-color: var(--secondary-color) !important;
    color: white !important;
}

.select-all-episodes-btn i {
    font-size: 0.8em;
}


.season-accordion-btn.watched {
  background-color: #4CAF50;
  color: white;
  border: 2px solid #4CAF50;
  font-family: 'Poppins', sans-serif;
}

.season-accordion-btn.watched::after {
    content: " - Saison vue";
    font-size: 0.8em;
    margin-left: 5px;
}

.season-accordion-btn.watched {
  width: 100%;
}
.season-accordion-btn {
  width: 100% !important;
}


.mark-all-watched-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 8px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

.mark-all-watched-btn:hover {
    background-color: #45a049;
}

.mark-all-watched-btn i {
    margin-right: 8px;
    font-size: 14px;
}


.episode-item.watched-episode .episode-meta-item i {
  color: white !important;
}

.episode-item.watched-episode .episode-meta {
  color: white;
}


.episode-item.watched-episode .episode-synopsis {
  color: white !important;
}


.episode-item.watched-episode .episode-title {
  color: white !important;
}

.episode-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.episode-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



.episode-image {
    width: 150px;
    height: 84px; /* Ratio 16:9 pour une meilleure apparence */
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.watched-checkbox-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.watched-checkbox-overlay:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.watched-checkbox-overlay i {
    font-size: 14px;
}

.episode-item.watched-episode .watched-checkbox-overlay {
    background-color: rgba(0, 150, 0, 0.7);
}

.episode-item.watched-episode .watched-checkbox-overlay:hover {
    background-color: rgba(0, 150, 0, 0.9);
}

.episode-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.episode-header {
    margin-bottom: 5px;
}

.episode-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.episode-synopsis {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-meta {
    display: flex;
    gap: 15px;
    margin-top: auto;
    font-size: 12px;
    color: #888;
}

.episode-meta-item {
    display: flex;
    align-items: center;
}

.episode-meta-item i {
    margin-right: 5px;
    color: #aaa;
    font-size: 12px;
}

.episode-image-container {
    position: relative;
    margin-right: 15px;
}

.episode-image {
    width: 150px;
    height: auto;
    border-radius: 4px;
    display: block;
}

.watched-checkbox-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.watched-checkbox-overlay i {
    font-size: 14px;
}

.watched-checkbox-overlay input[type="checkbox"] {
    display: none; /* Masquer la checkbox */
}

.episode-item.watched-episode .watched-checkbox-overlay {
    background-color: rgba(0, 150, 0, 0.7); /* Couleur différente pour les épisodes vus */
}

.episode-details {
    flex: 1;
}


.omdb-ratings-container {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.rating-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.rating-logo {
    height: 20px;
    width: auto;
	margin-left: 3%;
}



#date-content {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.liste-perso {
  margin-top: 2%;
}
#countrySelect {
  background-color: transparent;
  color: #d09f21 !important;
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modal-content .panel {
  background-color: whitesmoke;
}

.accordion-user-comments:hover {
  background-color: var(--secondary-color) !important;
  color: white !important;
}

.accordion-personal-rating:hover {
  background-color: var(--secondary-color) !important;
  color: white !important;
}
	.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

#faq-suite {
  margin-left: 2%;
  margin-top: 3%;
  font-size: 17px;

}

#faq-suite a {
  color: white;
}

.search-filter-buttons {
  display: none;
}

#sort {
  display: none;
}

.filter-options {
  margin-bottom: 2%;
}

#date-sort-btn:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

#date-sort-btn {
  background-color: transparent;
  color: white;
border-style: none;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  display: block;
  margin-left: auto !important;
  margin-right: auto;
}

.voir-plus-link {
  color: #d09f21 !important;
  text-decoration: none !important;
}

.filter-button {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
}

#trie .menu-item {
  background-color: transparent;
  color: #fff;
 
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
}

#notation p {
 
  width: 100%;

}
#notation p {
  color: #d09f21;
}

.comment-poster {
  width: 150px;
  height: auto;
  margin-right: 10px;
  object-fit: cover;
    border-right: 1px solid var(--border-color);
}

/* my_list.php */
.voir-plus-btn {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}
/* Styles pour la section des commentaires de l'utilisateur */
.comment-info h3 {
  color: white !important;
}

.movie-list-commentaire {
    display: grid;
   
    gap: 25px;
    margin-top: 20px;
}


.comment-info h3 {
  color: white;
}

.comment-section h2 {
    color: var(--secondary-color);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
}


.comment-card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.comment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}



.comment-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.comment-info h4 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 5px;
}

.comment-info p {
    font-size: 0.9em;
    line-height: 1.4;
    color: var(--text-color);
    margin: 0;
}

/* Styles pour la notation */
.user-rating {
    margin-bottom: 10px;
}

.user-rating .fa-star.filled {
    color: #ffd700; /* Jaune doré pour les étoiles pleines */
}

.user-rating .fa-star {
    color: #ccc; /* Gris pour les étoiles vides */
}

.modal #learn-more-btn {
  margin-top: 5%;
}
.provider-carousel .carousel-button {
display: none;
}


a {
  text-decoration: none !important;
}

/* Styles pour le bouton "Voir plus" */
.voir-plus-button {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.voir-plus-button:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}


.comment-item h3 {
  color: #d09f21;
}
.comment-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
}



.commentaire-card h4 {
  color: #d09f21;
}

.random-movie-link:hover {
  background-color: #fac53e;
}

.genre-movie-link:hover:hover {
  background-color: #fac53e;
}

.links-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

.icon {
  height: 4rem;
  width: 4rem;
  margin: -2rem 10px 0 -5px;
}
.random-movie-link {

  margin-top: 2%;
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: #D09F21;
  color: white;
  border-radius: 1rem;
  width: 100%;
  transition: background-color 0.3s;
  justify-content: space-between;
  margin-left: 3%;
  padding-right: 3% !important;
  width: 49%;
  margin-left: 2%;
  border-radius: 8px;
  text-decoration: none;
}

.genre-movie-link {
margin-right: 3%;
  margin-top: 2%;
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: #D09F21;
  color: white;
  border-radius: 1rem;
  width: 100%;
  transition: background-color 0.3s;
  justify-content: space-between;
  margin-left: 3%;
  padding-right: 3% !important;
  width: 42%;
  margin-left: 3%;
  border-radius: 8px;
  text-decoration: none;
}

.episode-item.watched-episode {
 background-color: #4caf50;
  border-radius: 17px;
  padding-right: 4%;
  padding-left: 4%;
  padding-top: 3%;
  padding-bottom: 3%;
  color: white !important;
font-size: 12px;
}



.modal-details .accordion::after {
  display: none;
}

#series-details-container.show {
    display: flex !important; /* Utilisez 'block' si vos éléments ne sont pas en flex */
	margin-top: -3%;
}

#series-details-container {
    display: none !important;
}

#series-details-container {
    display: flex;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si nécessaire */
    gap: 10px; /* Ajoute un espace entre les éléments */
    align-items: center; /* Centre les éléments verticalement */
}


.season-accordion-container {
    display: flex;
    flex-wrap: nowrap; /* Maintient les boutons sur une seule ligne */
    gap: 10px; /* Ajoute un espace entre les boutons */
    overflow-x: auto; /* Ajoute une barre de défilement horizontale si nécessaire */
    justify-content: flex-start; /* Aligne les boutons au début de la ligne */
}

.season-accordion-btn {
	font-family: 'Poppins', sans-serif;
  display: inline-block;
  flex-shrink: 0;
  background-color: #1a1a2e;
  color: var(--secondary-color);
 border: 2px solid var(--secondary-color);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: space-between;
  width: auto;
  margin: 0;
}

.season-accordion-btn:hover {
  background-color: #d09f21;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: white !important;
}

.season-accordion-btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.season-title {
    flex-grow: 1;
    text-align: left;
}

.episode-count-icon {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
}

.episode-count-icon i {
    font-size: 0.8em;
}

.panel-season {
    padding: 10px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.panel-season.show {
    max-height: 1000px; /* Valeur généreuse pour afficher le contenu */
    padding: 10px;
}
/* Fin des modifications pour les boutons de saison */

.accordion-season:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}



.accordion-season .season-icon {
    font-size: 1.2em;
    margin-right: 10px;
}

.accordion-season .episode-count {
    font-size: 0.9em;
    font-weight: normal;
    color: #fff; /* Use a color that stands out on hover */
    background-color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    margin-left: 15px;
    transition: background-color 0.3s ease;
}

.accordion-season:hover .episode-count {
    background-color: #fff;
    color: var(--primary-color);
}

.accordion-season .chevron-icon {
    transition: transform 0.3s ease;
}

/* Rotate the icon when the accordion is active */
.accordion-season.active .chevron-icon {
    transform: rotate(180deg);
}

/* Styles pour le panel, assurez-vous que les épisodes sont affichés correctement */



#tv-show-details h3 {
  color: var(--secondary-color);
}

.episode-meta {
  margin-bottom: 5%;
  font-size: 12px;
  font-weight: bolder;
}

#tv-show-details {
color: var(--text-color);
  font-size: 15px;
}


.comment-text {
  font-size: 13px;
  color: #555;
}

.accordion-button.collapsed {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  margin-top: 4%;
  cursor: pointer;
}

.modal-content .accordion {
  color: red;
  color: var(--text-color);
  font-size: 12px;

}

.modal-content .accordion:hover {
  color: red;
  color: var(--text-color);
  font-size: 12px;
  
}

/* Styles pour les saisons et épisodes */
.season-details h3 {
  color: #d09f21;
}
.active-season, .accordion-season:hover {
    background-color: #ddd;
}

.accordion-season:after {
    content: '\002B';
    color: #777;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.active-season:after {
    content: "\2212";
}




.tv-show-details h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.season-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-season {
    width: 100%;
    text-align: left;
    background: #f1f1f1;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}





.episodes-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.episodes-list li {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.episodes-list li:last-child {
    border-bottom: none;
}

.episodes-list img {
    border-radius: 4px;
    margin-right: 15px;
}

.episodes-list div {
    flex-grow: 1;
}

.episodes-list .episode-title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 5px;
}

.episodes-list .episode-info {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.episodes-list .episode-overview {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

.accordion-user-comments {

  background-color: #fff !important;
  color: #d09f21 !important;
  cursor: pointer;
  padding: 18px;
  width: 90.5%;
  border: none !important;
  text-align: left;
  outline: none;
  font-size: 1.2rem;
  transition: 0.4s;
  border-radius: 8px;
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
  margin-left: 3%;
  margin-right: 3% !important;
  border: 2px solid var(--secondary-color) !important;
}


.accordion-personal-rating {
  background-color: #fff !important;
  color: #d09f21 !important;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none !important;
  text-align: left;
  outline: none;
  font-size: 1.2rem;
  transition: 0.4s;
  border-radius: 8px;
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
  margin-left: 3%;
  margin-right: 3% !important;
  border: 2px solid var(--secondary-color) !important;
}

.delete-comment-btn {
  background-color: #f44336; /* Un rouge vif */
  color: white;
  border: none;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.delete-comment-btn:hover {
  background-color: #d32f2f; /* Un rouge plus foncé au survol */
}

.delete-comment-btn i {
  margin-right: 5px;
}

.img-commentaire {
  background-color: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  width: 91% !important;
}

#submit-comment:hover {
  background-color: var(--secondary-color);
  color: white;
}
.comment-textarea {
    width: 73%;
    height: 120px;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 10px;
    resize: vertical; /* Permet à l'utilisateur de redimensionner verticalement */
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #333;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-textarea:focus {
    outline: none;
    border-color: #6366f1; /* Couleur de bordure lorsque le textarea est en focus */
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3); /* Ombre plus prononcée lors du focus */
}

.comment-textarea::placeholder {
    color: #aaa;
    font-style: italic;
}


#submit-comment {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  margin-top: 4%;
  cursor: pointer;
}





.accordion-mylist:hover {
  background-color: var(--secondary-color) !important;
}

.profile-picture-container img {
  width: 100%;
}

.add-to-personalized-list-container label {
  text-align: center !important;
  display: block;
  margin-bottom: 3%;
  font-size: 0.9em;
}

.add-to-personalized-list-container {
  text-align: center;

}

.episode-item {
  margin-top: 4%;
}

#personalized-list-select {
font-size: 16px !important;
color: #d09f21;
  border: 2px solid var(--secondary-color);
  padding: 10px 30px 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  margin-bottom: 3%;
  font-family: 'Poppins', sans-serif;
}

.movie-ids-display {
  background-color: transparent;
  color: var(--secondary-color);

  padding: 10px 20px;
margin-top: 1%;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);

}

.personalized-movies-container {
  display: none;
}

#title-perso {
 
  
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

.delete-list-btn {
  cursor: pointer;
  transition: 0.4s;
  border-radius: 8px;
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
  margin-left: 3%;
  margin-right: 3% !important;
  border: 2px solid #f00022;
  background-color: #f00022;
  color: white !important;
  width: 50%;
  height: 20%;
}

.delete-list-btn:hover {
    background-color: #c0392b; /* Rouge plus foncé au survol */
}

/* Optional: Adjust accordion button for better alignment */
.accordion-mylist.sub-accordion {
    text-align: left; /* Align text to the left */
}

.user-profile-summary a:hover{
	background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  
}

.user-profile-summary a {
  color: #fff;
  font-size: 1.1em;
  text-decoration: none;
  background-color: transparent;
 
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  width: 15%;
}
.learn-more-button-slider:hover {
 background-color: var(--secondary-color);
  color: white;
  cursor: pointer;
}

.learn-more-button-slider {
	z-index: 2;
padding: 8px 11px;
  border-radius: 4px;
  background-color: #1a1a2e;
 color: white;
  font-size: 14px;
  font-weight: 1000;
  margin-right: 6px;
  display: inline-block;

  border-radius: 50px;
  border: none;
  position: absolute;
  top: 73%;
  left: 2%;
}




.trending-slide {
    flex: 0 0 100%; /* Each slide takes 100% of the flex container's width */
    height: 100%; /* Make slide fill the full height of the slider (350px) */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* Align title to the bottom */
    justify-content: flex-start; /* Align title to the left */
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding: 20px;
    box-sizing: border-box;
}

/* La classe .trending-slide.active n'est plus utilisée pour la visibilité directe dans ce type de slider */
/* Si vous l'avez encore, vous pouvez la supprimer ou la laisser vide si elle n'est plus référencée */





/* Amélioration du design du overlay pour un rendu plus professionnel */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dégradé plus complexe et subtil pour un effet de lumière douce */
    /* Utilisation de pseudo-éléments pour des effets supplémentaires */
    z-index: 1;
    /* Assure une transition fluide et professionnelle */
    transition: background-color 0.5s ease-in-out;
	
}



/* Ajout d'un effet de masque pour la partie inférieure du texte */
.slide-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}



.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-arrow.prev-arrow {
    left: 10px;
}

.slider-arrow.next-arrow {
    right: 10px;
}

.slider-arrow:disabled {
    background-color: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

/* Ensure movie-card styling doesn't interfere with slider slides */
.movie-card {
    cursor: pointer; /* Keep cursor pointer for regular movie cards */
}

/* Styling for the Trending Movies Slider */
.trending-slider-container {
    position: relative;
  
    margin: 20px auto;
    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.trending-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 75%; position: relative;
}

.trending-slide {
    min-width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* Align title to the bottom */
    justify-content: flex-start; /* Align title to the left */
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding: 20px;
    box-sizing: border-box;
    opacity: 0; /* Initially hidden */
    transition: opacity 1s ease-in-out; /* Fade transition */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.trending-slide.active {
    opacity: 1; /* Make active slide visible */
    position: relative; /* Bring active slide into normal flow */
}




.slider-arrow {
   position: absolute;
  top: 50%;
  background-color: rgb(208, 159, 33);
  color: white;
  border: none;
  padding: 2px 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2em;
  border-radius: 23px;
  transition: background-color 0.3s ease;
}


.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-arrow.prev-arrow {
    left: 10px;
}

.slider-arrow.next-arrow {
    right: 10px;
}

.slider-arrow:disabled {
    background-color: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

/* Ensure movie-card styling doesn't interfere with slider slides */
.movie-card {
    cursor: pointer; /* Keep cursor pointer for regular movie cards */
}
.learn-more-button {
background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  width: 90%;
  cursor: pointer;
}

.learn-more-button i {
    margin-right: 8px; /* Espace entre l'icône et le texte */
}

.learn-more-button:hover {
  background-color: var(--secondary-color);
  color: white;
}

#genre-content {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.dropdown {
    position: relative; /* Indispensable pour positionner le menu déroulant par rapport à son parent */
    display: inline-block; /* Permet au conteneur de prendre juste la largeur de son contenu */
}

/* Style du bouton "Trier :" */
.dropdown-toggle {
  background-color: transparent;
color: white !important;
 border-style: none;
  padding: 10px 20px;

  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px; /* Conservez cette ligne si vous voulez un espace à gauche du bouton */
 
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);

  /* --- CES LIGNES SONT CRUCIALES --- */
  display: inline-flex; /* Assure que le bouton s'adapte à son contenu et permet l'alignement interne */
  align-items: center; /* Centre verticalement le texte et l'icône */
  gap: 8px; /* Ajoute un espace entre le texte et l'icône */
  /* --- ET CES LIGNES DOIVENT ÊTRE SUPPRIMÉES/COMMENTÉES --- */
  /* margin-left: auto !important; */
  /* margin-right: auto !important; */
  /* text-align: center; */
}


/* Style de l'icône dans le bouton */
.dropdown-toggle i {
    transition: transform 0.3s ease; /* Animation douce pour la flèche */
}

/* Conteneur des liens déroulants */
.dropdown-menu {
    display: none; /* Cache le menu par défaut */
    position: absolute; /* Positionne le menu par rapport au conteneur '.dropdown' */
    background-color: #f9f9f9;
    min-width: 160px; /* Largeur minimale du menu */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Ombre pour donner de la profondeur */
    z-index: 1; /* Assure que le menu est au-dessus des autres éléments */
    border-radius: 0 0 5px 5px; /* Coins arrondis en bas */
    border: 1px solid #ddd;
    border-top: none; /* Pas de bordure en haut car il est attaché au bouton */
}

/* Style de chaque lien dans le menu déroulant */
.dropdown-menu .menu-item {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block; /* Chaque lien prend toute la largeur */
    text-align: left;
	font-size: 12px;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
}

.dropdown-menu .menu-item:hover {
 color: #d09f21; 
}

/* Affiche le menu quand le conteneur '.dropdown' est survolé */
.dropdown:hover .dropdown-menu {
    display: block; /* Rend le menu visible */
}

/* Fait pivoter la flèche quand le dropdown est survolé */
.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}
.view-more-button {
color: #d09f21 !important;
  text-decoration: none !important;
}

.carousel-container {
    display: flex; /* Permet aux enfants (flèches et carousel) de s'aligner sur une seule ligne */
    align-items: center; /* Centre verticalement les flèches avec le carousel */
    width: 100%; /* Assurez-vous qu'il prend toute la largeur disponible */
    position: relative; /* Nécessaire si vous utilisez position: absolute ou sticky pour les enfants */
    justify-content: center; /* Centre le contenu horizontalement */
	margin-bottom: 2%;
}

/* Modifiez également le carousel-button pour qu'il ne soit plus sticky mais absolu par exemple */


.carousel-button.left {
    left: 0; /* Positionne le bouton gauche à l'extrême gauche du conteneur */
}

.carousel-button.right {
    right: 0; /* Positionne le bouton droit à l'extrême droite du conteneur */
}

/* Assurez-vous que le .genre-carousel prend l'espace restant */
.genre-carousel {
    display: flex;
    overflow-x: auto; /* Changez hidden à auto comme discuté précédemment */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 10px 0;
    flex-grow: 1; /* Permet au carousel de prendre tout l'espace flexible disponible */
    margin: 0 50px; /* Ajoutez de la marge pour que les flèches soient visibles et ne se superposent pas */
}
.date-filter-button {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.date-filter-button:active {
   background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  cursor: pointer;
}
.date-filter-button:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  cursor: pointer;
}

.next-page:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.prev-page:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.prev-page{
	  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.next-page {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  cursor: pointer;
}


.genre-sections {
    padding: 20px;
}

.genre-section {
    margin-bottom: 40px;
    background-color: var(--background-color); /* Dark background for each section */
    padding: 20px;
    border-radius: 8px;
   
}

.genre-section h2 {
  color: #fff;
    margin-bottom: 20px;

    font-size: 2em;

    padding-bottom: 10px;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.genre-carousel {
    display: flex;
    overflow-x: hidden; /* Hide scrollbar for smooth scrolling */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* For iOS smooth scrolling */
    gap: 20px; /* Increased gap to match index.php's feel */
    padding: 10px 0; /* Some padding for cards */
    flex-grow: 1; /* Allow carousel to take available space */
}

.carousel-content-wrapper {
    display: flex; /* Keep items in a row */
    transition: transform 3s ease-in-out, opacity 3s ease-in-out; /* 3-second smooth transition */
    width: fit-content; /* Or calculate based on item width */
    position: absolute; /* Position wrappers to slide over each other */
    left: 0;
    top: 0;
}

/* Movie card styles - Replicated from index.php's .movie-card */
.genre-carousel .movie-card {
    flex: 0 0 auto; /* Do not grow, do not shrink, auto width */
   width: 180px;
 
   border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Stronger shadow */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    cursor: pointer; /* Indicate it's clickable */
    display: flex; /* Flexbox for internal content */
    flex-direction: column;
    justify-content: space-between; /* Distribute content */
margin-left: 1% !important;
}

.genre-carousel .movie-card:hover {
    transform: translateY(-8px); /* More pronounced hover effect */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.genre-carousel .movie-card .movie-poster {
    width: 100%;
    height: 70%; /* Poster takes most of the height */
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}




/* Carousel navigation buttons */
.carousel-button {
 position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgb(208, 159, 33);
  color: white;
  border: none;
  padding: 3px 6px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  border-radius: 23px;
  transition: background-color 0.3s ease;
}

.carousel-button:hover:not(:disabled) {
   background-color: rgb(99, 102, 241);
}

.carousel-button:disabled {
    opacity: 0.4; /* Slightly more opaque when disabled */
    cursor: not-allowed;
}

/* Add/Remove to list buttons in movie cards */
.movie-card .card-buttons-container {
    position: absolute;
    top: 0; /* CHANGED: Position at the very top of the card */
    left: 0;
    right: 0; /* Make it span the full width of the card */
    display: flex;
    gap: 5px;
    justify-content: center;
    padding: 10px; /* Padding inside the button container */
    /* Changed: Add a subtle gradient background that fades DOWN from the top */
   
    z-index: 5; /* Ensure it's above the poster */
}

.genre-carousel .movie-card .add-to-list-btn, .genre-carousel .movie-card .remove-from-list-btn {

  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.5em;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 2;
}

.genre-carousel .movie-card .remove-from-list-btn {
    background-color: #dc3545; /* Red for remove */
}

.genre-carousel .movie-card .add-to-list-btn:hover:not(:disabled) {
    background-color: #e0b41c; /* Slightly darker yellow on hover */
}

.genre-carousel .movie-card .remove-from-list-btn:hover:not(:disabled) {
    background-color: #c82333; /* Slightly darker red on hover */
}

.genre-carousel .movie-card .hidden {
    display: none;
}

.footer h3 {
  margin-left: auto;
}

h3 {

  font-weight: 1000 !important;
margin-left: 2%;
  margin-top: 10px;
  color: white;
}
#genre-tv-select {
  appearance: none;
  background-color: var(--card-background);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 10px 30px 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#genre-movie-select {
  appearance: none;
  background-color: var(--card-background);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 10px 30px 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.genre-filter-controls {
	margin-top: 3% !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
}

.category-display label {
 display: block;
  margin-bottom: 3%;
  color: var(--secondary-color);
  font-weight: 1000 !important;
  font-size: 17px !important;
}


#modal-personal-rating-text {
  color: #c0940b;
}

.search-input-container #search-release-date:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.search-input-container #search-movie:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.search-input-container #search-tv:focus {  
border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.search-input-container #search-release-date{
  padding: 12px 25px;
    padding-right: 25px;
  padding-right: 25px;
  border-radius: 50px;
  border: 2px solid var(--border-color);
  background-color: var(--card-background);
  color: var(--primary-color);
  font-size: 1em;
  width: clamp(250px, 50%, 500px);
  outline: none;
  transition: var(--transition);
  margin-top: 2%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.search-input-container #search-movie {
  padding: 12px 25px;
    padding-right: 25px;
  padding-right: 25px;
  border-radius: 50px;
  border: 2px solid var(--border-color);
  background-color: var(--card-background);
  color: var(--primary-color);
  font-size: 1em;
  width: clamp(250px, 50%, 500px);
  outline: none;
  transition: var(--transition);
  margin-top: 2%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.search-input-container #search-tv{
  padding: 12px 25px;
    padding-right: 25px;
  padding-right: 25px;
  border-radius: 50px;
  border: 2px solid var(--border-color);
  background-color: var(--card-background);
  color: var(--primary-color);
  font-size: 1em;
  width: clamp(250px, 50%, 500px);
  outline: none;
  transition: var(--transition);
  margin-top: 2%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.list-btn.category-btn-series {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.list-btn.category-btn-series:hover{
background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);}

.personal-rating-container p {
  text-align: center;
}
.current-personal-rating {
  font-size: 15px;
  color: #c0940b;
  margin-left: 0%;
  font-weight: bold;
}

/* Styles pour l'étoile des favoris */
.favorite-star {
  font-size: 1.5em;
  color: #ccc;
  cursor: pointer;
  margin-left: 10px;
  transition: color 0.2s ease-in-out;
  position: absolute;
  top: 2%;
  left: 70%;
  background-color: black;
  padding-bottom: 3% !important;
  padding-top: 3% !important;
  padding-left: 3%;
  padding-right: 3%;
  border-radius: 20px;
  font-size: 19px;
}


.favorite-star.is-favorite {
  font-size: 1.5em;
  color: #FFD700;
  cursor: pointer;
  margin-left: 10px;
  transition: color 0.2s ease-in-out;
  position: absolute;
  top: 2%;
  left: 70%;
  background-color: black;
  padding-bottom: 3% !important;
  padding-top: 3% !important;
  padding-left: 3%;
  padding-right: 3%;
  border-radius: 20px;
  font-size: 19px;
}




. {
  background-color: #1a1a2e;
  color: #fff;
  cursor: pointer;
  padding: 18px;
  width: 90.5%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.2rem;
  transition: 0.4s;
  border-radius: 8px;
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
  margin-left: 3%;
  margin-right: 3% !important;
  border: 2px solid var(--secondary-color);
}

.active,.accordion-mylist:hover {
  background-color: #1a1a2e;
  background-color: var(--secondary-color);
  color: #fff;


}

/* Icône pour indiquer l'état de l'accordéon (ouvert/fermé) */
.accordion-mylist:after {
    content: '+'; /* Icône pour fermé */
    font-size: 1.5rem;
    color: #fff;
    float: right;
    margin-left: 5px;
    transition: transform 0.3s; /* Transition pour l'animation de l'icône */
}

.accordion-mylist.active:after {
    content: '-'; /* Icône pour ouvert */
    transform: rotate(0deg); /* L'icône ne tourne pas si content est '-' */
}

/* Panneau de contenu de l'accordéon */
.panel {
    padding: 0 18px; /* Ajustez le padding */
    background-color: #1a1a2e; /* Couleur de fond du panneau */
    max-height: 0; /* Important pour cacher le contenu initiallement */
    overflow: hidden; /* Cache le contenu qui dépasse */
    transition: max-height 0.2s ease-out; /* Transition pour l'ouverture/fermeture */
    width: 88%; /* Ajustez si nécessaire */
    margin-left: 3%;
    margin-right: 3% !important; /* Important pour centrer ou aligner */
}


.read-less-btn:hover{
	background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  
  cursor: pointer;
}

.read-more-btn:hover{
	background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
 
  cursor: pointer;
}
.youtube-btn {
	margin-top: -33% !important;
    display: inline-block;
    margin-top: 20px; /* Espace au-dessus du bouton */
    background-color: #ff0000; /* Rouge YouTube */
    color: #ffffff; /* Texte blanc */
    border: none;
    border-radius: 5px; /* Bords légèrement arrondis */
    padding: 10px 15px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1em;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.youtube-btn:hover {
    background-color: #cc0000; /* Rouge plus foncé au survol */
}
/* Style pour le nouveau conteneur des filtres */
.filters-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Espace entre les deux s\u00E9lecteurs */
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Styles pour les s\u00E9lecteurs de genre et de tri */
#genre,
#sort {
	 appearance: none; /* Désactive le style par défaut du navigateur */
    -webkit-appearance: none; /* Pour Safari */
    -moz-appearance: none; /* Pour Firefox */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'%3e%3c/path%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center; /* Positionne la flèche à droite */
    background-size: 16px;
    padding-right: 30px; /* Espace pour la flèche */
    text-indent: 0.01px; /* Pour éviter un décalage du texte */
    text-overflow: '';
    width: 100%; /* Ou une largeur fixe selon ton design */
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    background-color: transparent;
    color: #fff;
    border: 2px solid var(--secondary-color);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1em;
    letter-spacing: 0.5px;
    box-shadow: 0 0 0 transparent;
    backdrop-filter: blur(4px);
    /* Assurez-vous que les lignes ci-dessous ne sont PAS pr\u00E9sentes */
    /* display: block; */
    /* margin-left: auto !important; */
    /* margin-right: auto !important; */
	width: 190px !important;
}




.feather.feather-linkedin {
  color: #fcfeff;
}
.category-group h2 {
  font-size: 18px !important;
}

#movies-tab:active {
  background-color: var(--secondary-color) !important;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}


#series-tab:active {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.tab-button.active {
  background-color: var(--secondary-color) !important;
  color: #fff;
  transform: translateY(-2px);
 
}

.read-less-btn {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  margin-top: 4%;
  cursor: pointer;
display: block !important;  
	
}
.read-more-btn {
	margin-bottom: 4%;
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);

  display: block !important;  
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  margin-top: 4%;
  cursor: pointer;
}

.faq {
 margin-left: 2%;
  color: white;
  border-bottom: 2px solid var(--primary-color);
  width: 95%;
  margin-top: 5%;
}



.read-more-btn:hover {
  text-decoration: none;
}

.list-btn.category-btn:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Styles pour la page d'erreur 404 */
.error-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 50px; /* Pour éviter que le contenu ne soit trop collé au haut de la page */
}

.error-content {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    margin: 20px auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color); /* Utilise votre couleur principale */
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.error-message {
    font-size: 1.0rem;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #f1c40f; /* Une couleur qui contraste bien */
}

.error-suggestion {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 30px;
}
/*404 */


.hidden {
    display: none !important;
}
.accordion {

  background-color: #1a1a2e;
  color: #fff;
  cursor: pointer;
  padding: 18px;
  width: 90.5%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.0em;
  transition: 0.4s;
  border-radius: 8px;
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
  margin-left: 1%;
  margin-right: 3% !important;
}



.accordion:after {
    content: '+';
    font-size: 1.5rem;
    color: #fff;
    float: right;
    margin-left: 5px;
    transition: transform 0.3s;
}

 .accordion.active:after {
    content: '-';
    transform: rotate(0deg);
}

.panel {
    padding: 0 18px;
     background-color: #1a1a2e;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
	width: 88%;
  margin-left: 3%;
  margin-right: 3% !important;
}

.description-text {
    color: #fff;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

.features-list {
    margin-top: 20px;
}

.feature-item {
    margin-bottom: 20px;
}

.feature-item h3 {
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
}

.feature-item p {
    font-size: 0.9rem;
     color: #fff;
    font-family: 'Poppins', sans-serif;
}

.modal-poster {
  
    height: 32%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    aspect-ratio: 2 / 3;
}

#series-tab:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
 
}

#movies-tab:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);

}


/* Styles pour le conteneur des liens d'authentification */
.auth-links-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Styles pour les liens d'authentification */
.auth-link {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.9em;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.auth-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Styles spécifiques pour le bouton "Retour" */
.back-button {
    display: none; /* Cacher par défaut, la logique JS le rendra visible si nécessaire */
}


.personal-rating-container {

  padding-top: 2%;
  padding-bottom: 5%;
  font-size: 15px;

  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stars {
  display: flex;
  cursor: pointer;
}

.star {
  font-size: 24px; /* Augmente la taille des étoiles */
  color: #ccc; /* Couleur par défaut des étoiles non remplies */
  transition: color 0.2s ease-in-out; /* Ajoute une transition douce */
}

.star.filled {
  color: #ffc107; /* Couleur des étoiles remplies (jaune) */
}

/* Effet de survol (hover) */
.stars:hover .star {
  color: #ffc107; /* Les étoiles deviennent jaunes au survol */
}

/* Les étoiles à gauche de l'étoile survolée gardent la couleur */
.stars .star:hover ~ .star {
  color: #ccc;
}

.add-to-list-btn-no-connect:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);

  cursor: pointer;
}



.category-display label {
  font-size: 0.9em;
}

.category-display select {
	font-weight: 600;
	width: 100%;
	margin-left: auto;
  margin-right: auto;
background-color: transparent;
 
 color: #d09f21;
   border: 2px solid var(--secondary-color);
  padding: 10px 30px 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
    display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  margin-bottom: 3%;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
}


/* Conteneur principal du menu déroulant (la "drop-box") */
.dropdown-container {
    position: relative;
    display: inline-block; /* Permet au conteneur de s'ajuster à la taille de son contenu */
    font-family: 'Poppins', sans-serif;
}

/* Bouton qui ouvre le menu déroulant */
.dropdown-btn {
    background-color: var(--card-background);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px; /* Espace entre le texte et l'icône */
    outline: none;
}

.dropdown-btn:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.dropdown-btn.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Icône de flèche pour le bouton */
.dropdown-btn .icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.dropdown-btn.active .icon {
    transform: rotate(180deg); /* Fait pivoter la flèche quand le menu est ouvert */
}

/* Menu déroulant (la "drop-box" elle-même) */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px); /* Positionne le menu juste en dessous du bouton */
    left: 0;
    width: 100%; /* S'aligne sur la largeur du bouton */
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    z-index: 50; /* S'assure que le menu est au-dessus du reste du contenu */
    opacity: 1;

    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Options à l'intérieur du menu déroulant */
.dropdown-option {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-option:hover {
    background-color: rgba(99, 102, 241, 0.2); /* S'inspire de l'effet de survol de `suggestion-item` */
    color: var(--primary-color);
}

.dropdown-option.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* Pour les options désactivées ou un simple texte */
.dropdown-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Styles pour une ligne de séparation */
.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 10px 0;
}


.list-btn.category-btn {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1em;
    letter-spacing: 0.5px;
    box-shadow: 0 0 0 transparent;
    backdrop-filter: blur(4px);
    cursor: pointer; /* Ajout du curseur */
}

/* Nouveau style pour aligner les boutons */
.category-controls {
	margin-top: 3%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Ajoute un espace entre les boutons */
    flex-wrap: wrap; /* Permet aux boutons de passer à la ligne sur de petits écrans */
}

.list-btn.category-btn.active {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Styles pour les icônes */
.list-btn.category-btn i {
    margin-right: 8px; /* Espace entre l'icône et le texte */
}


.add-to-list-btn-no-connect {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  margin-top: 2%;
}
/* Nouveau CSS pour la modale de connexion */
.modal-add-to-list-container {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
   
}

.modal-add-to-list-container .add-to-list-btn {
    background-color: #f7b403;
    color: black;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-add-to-list-container .add-to-list-btn:hover {
    background-color: #e0a502;
}

.modal-add-message {
    font-size: 0.9em;
    color: var(--text-color);
    margin-top: 10px;
}
.add-to-list-btn.added {
    background-color: #28a745; /* Un vert pour indiquer le succès */
    border-color: #28a745;
    color: white;
    cursor: default; /* Changez le curseur pour montrer qu'il n'est plus cliquable */
}

/* Vous pouvez aussi ajouter une transition pour un effet plus fluide */
.add-to-list-btn,
.remove-from-list-btn {
    transition: all 0.3s ease-in-out;
}
/* Dans votre fichier styles.css */

.add-to-list-btn,
.remove-from-list-btn {
    /* Styles de base pour les boutons */
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.add-to-list-btn {
    background-color: #007bff; /* Bleu par défaut */
    color: white;
}

.remove-from-list-btn {
    background-color: #dc3545; /* Rouge par défaut */
    color: white;
}

/* Nouvelle classe pour l'état "ajouté" */
.added-to-list {
    background-color: #28a745; /* Vert */
    color: white;
}




@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');
.auth-links-container {
    position: absolute;
    top: 0px; /* Ajustez cette valeur pour l'alignement vertical */
    right: 0px; /* Ajustez cette valeur pour l'alignement horizontal */
    display: flex;
    gap: 10px; /* Espace entre les boutons */
}

.provider-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px 20px;
  background-color: #d09f21;
  border: 1px solid #d09f21;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-family: 'Poppins', sans-serif;
  color: #333;
}

.provider-banner .site-logo-2 {
  height: 35px; 
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.provider-banner .site-logo-2:hover {
  opacity: 1;
}

.provider-banner .pok-message {
 font-size: 0.95em;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

.provider-banner .pok-message strong {
  color: #fff;
  font-weight: 600;
}
.provider-list{
	  display: flex;
  align-items: center;
  justify-content: flex-start; /* Alignement à gauche */
  padding: 15px 25px;
  background-color: #1a1a2e;

  border-radius: 12px;
 margin-top: 20px; /* Espace au-dessus de la bannière */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.banner-container {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Alignement à gauche */
  padding: 15px 25px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Ombre plus prononcée pour un effet de flottement */
  margin-top: 20px; /* Espace au-dessus de la bannière */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.banner-container:hover {
  transform: translateY(-3px); /* Petit effet de soulèvement au survol */
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12); /* Ombre agrandie */
}

.site-logo-2 {
  height: 40px; /* Taille du logo */
  width: auto;
  margin-right: 20px; /* Espace entre le logo et le texte */
  opacity: 0.8;
  filter: grayscale(80%);
  transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.site-logo-2:hover {
  opacity: 1;
  filter: none; /* Le logo retrouve ses couleurs au survol */
}

.banner-text {
  font-size: 1em;
  color: #555; /* Couleur de texte plus foncée */
  line-height: 1.5;
  margin: 0;
}

.banner-text strong {
  color: #333;
}

.site-logo {
	margin-top: 5%;
  width: 10%;
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
}
.personal-rating-container {
    margin-top: 15px;
}

.personal-rating-text {
    color: #eab308;
}

/* Conteneur des étoiles dans la modale */
.stars {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    color: #555;
    cursor: pointer;
}

.stars .star {
    transition: color 0.2s;
    user-select: none;
}

/* Règle pour les étoiles remplies (jaunes) */
.stars .star.filled {
    color: #c0940b;
}

/* Style des étoiles dans les cartes */
.stars-display {
    font-size: 1.2em;
    color: #555;
    display: inline-block;
}

.stars-display .star-display.filled {
    color: #c0940b;
}

.stars .star:hover ~ .star {
    color: #555;
}

/* Style des étoiles dans les cartes */
.stars-display {
    font-size: 1.2em;
    color: #555;
    display: inline-block;
}

.stars-display .star-display.filled {
    color: #c0940b;
}
/* Style pour le titre des plateformes */
.platform-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.auth-link {
    background-color: transparent;
font-size: 12px !important;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 10px;

    letter-spacing: 0.5px;
    box-shadow: 0 0 0 transparent;
    backdrop-filter: blur(4px);
	display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;

}

.auth-link:hover {
    background-color: var(--secondary-color);
    color: #1a1a2e;
    transform: translateY(-2px);
    
}


/* Styles de la barre de recherche */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-container {
    position: relative;
    flex-grow: 1;
}

#searchInput {
    width: 100%;
    padding-right: 30px; /* Ajoute un espace pour la croix */
}


.search-bar {
    position: relative;
}

#clearSearchBtn {
    position: absolute;
    right: 1%; /* Positionnement à droite du champ de recherche */
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    cursor: pointer;
    font-size: 1.2em;
    display: none; /* Reste caché par défaut */
    z-index: 10;
}

/* Ajustez la marge pour que l'input et le bouton ne se chevauchent pas */
#searchInput {
    padding-right: 30px; 
}
.search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.search-bar input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--card-background);
    color: var(--primary-color);
    font-size: 1em;
    transition: var(--transition);
}

.search-bar input::placeholder {
    color: var(--text-color);
}

.search-bar button {
    padding: 12px 20px;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-bar button:hover {
    background-color: var(--secondary-color);
}


:root {
    --primary-color: #f0f0f0; /* Blanc cassé pour le texte principal */
    --secondary-color: #d09f21; /* Bleu-violet pour les accents */
    --background-color: #1a1a2e; /* Noir #1a1a2e très foncé pour l'arrière-plan */
    --card-background: #1a1a2e; /* Gris foncé pour les cartes */
    --text-color: #b0b0b5; /* Gris clair pour le texte secondaire */
    --accent-color: #eab308; /* Jaune pour les notes et étoiles */
    --border-color: #333;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: auto;
    padding: 0px;
		margin-left: 3% !important;
  margin-right: 3%!important;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 5px;
    letter-spacing: 2px;
    font-weight: 700;
	margin-top: 10% !important;
}

.header p {
    font-size: 1.1em;
    color: var(--text-color);
}

/* Styles de la barre de recherche */
.search-bar {
	margin-left: 2%;
  margin-right: 2%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
    position: relative; /* Important pour positionner les suggestions */
}

.search-bar input[type="text"] {
    padding: 12px 25px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background-color: var(--card-background);
    color: var(--primary-color);
    font-size: 1em;
    width: clamp(250px, 50%, 500px);
    outline: none;
    transition: var(--transition);
}

.search-bar input[type="text"]:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.search-bar button {
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.search-bar button:hover {
    background-color: #d09f21;
    transform: translateY(-2px);
}



#back-to-trending:hover {
    background-color: var(--card-background);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

/* Styles des onglets (Tabs) */
.tabs {
	margin-top: 2%;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.provider-carousel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    justify-content: center;
}

#provider-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    scroll-behavior: smooth;
    justify-content: flex-start;
    padding: 10px 10px;
}

/* Styles pour le carrousel des providers */
.provider-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    width: 100%;
    max-width: 800px;
}

.provider-carousel .tabs {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Espace entre les icônes */
    overflow: hidden; /* Cache les éléments qui dépassent */
    white-space: nowrap;
    transition: transform 0.3s ease-in-out;
}



.carousel-button:hover {
    color: var(--primary-color);
  
    opacity: 1;
}

.carousel-button:disabled {
    color: #555;
    cursor: not-allowed;
    opacity: 0.5;
	display: none;
}

/* Styles des logos des providers */
.provider-carousel .tab-button {
    background: #2b2b2b; /* Fond légèrement sombre pour les icônes */
    border: 1px solid #444;
    border-radius: 12px; /* Bords arrondis pour un look moderne */
    padding: 8px;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.provider-carousel .tab-button:hover,
.provider-carousel .tab-button.active {
    transform: translateY(-5px) scale(1.05); /* Effet de survol 3D subtil */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color); /* Bordure accentuée */
}

/* Styles de l'image du logo */
.provider-carousel .tab-button img {
    height: 100%; /* S'assure que le logo remplit le bouton */
    width: 100%;
    object-fit: contain; /* Redimensionne le logo sans le déformer */
}

/* On cache le nom du provider pour ne laisser que le logo */
.provider-carousel .tab-button span {
    display: none;
}

/* Styles pour les petits logos dans les cartes de film */
.provider-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.provider-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 10px 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
    border-radius: 50px;
    margin: 0 5px;
    white-space: nowrap;
}

.tab-button:hover {
    color: var(--primary-color);
    background-color: var(--card-background);
}

.provider-logo-small {
    width: 24px;
    height: 24px;
    border-radius: 5px;
}

/* Nouveaux styles pour les suggestions de recherche */
#suggestions-container {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(250px, 50%, 500px);
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 15px 15px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 20;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: rgba(99, 102, 241, 0.2);
}

.suggestion-poster {
    width: 50px;
    height: 75px;
    border-radius: 5px;
    margin-right: 15px;
    object-fit: cover;
}

.suggestion-info {
    flex-grow: 1;
}

.suggestion-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.suggestion-overview {
    font-size: 0.8em;
    color: var(--text-color);
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Styles des cartes (Cards) */
.movie-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card {
   
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    border: 1px solid transparent;
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: var(--secondary-color);
}

.movie-poster {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 2 / 3;
}

.movie-info {
  padding: 0px;
  flex-grow: 1;
  padding-top: 20px;
  color: white;
  padding: 12px;
  flex-grow: 1;
  font-size: 0.9em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  background-color: #2a2a3a;
}

.movie-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: 400;
    color: var(--accent-color);
}

.rating-star {
    margin-right: 5px;
    font-size: 1.1em;
}

/* Styles pour l'icône du fournisseur */
.provider-icon {
    position: absolute;
    top: 17%;
    right: 10px;
    width: 35px;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.provider-icon:hover {
    transform: scale(1.1);
}

.provider-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-list {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    justify-content: center;
}

.provider-list img {
    max-height: 40px; /* Définit une taille maximale pour éviter qu'elles ne soient trop grandes */
    width: auto;
    border-radius: 8px; /* Ajoute des coins arrondis */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Ajoute une légère ombre */
}

/* Styles de la modale */
.modal {
    display: none;
    position: fixed;
    z-index: 30000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}


.modal-content {
  background-color:var(--background-color);
  margin: 40px 20px auto !important;
    
  padding: 30px;
  border-radius: 15px;
  max-width: 900px;
  position: relative;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 30px;
  color: var(--text-color);
  font-size: 15px;
 
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
    
    }
}

.modal-poster {
    width: 100%
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    aspect-ratio: 2 / 3;
}

.modal-details {
    flex-grow: 1;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-size: 2.5em;
    margin-top: 0;
    line-height: 1.2;
}



.modal-overview {
    max-height: 130px;
    overflow-y: auto;
    padding-right: 15px;
	font-size: 0.9em;
}

.modal-release-date {
    font-size: 0.9em;
    color: var(--text-color);
    font-weight: 300;
}

/* Styles pour rendre le lecteur vidéo responsive */
#trailer-container {
    margin-top: 20px;
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 */
    border-radius: 10px;
    overflow: hidden;
}

#trailer-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.trailer-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-color);
}

.close-button {
  color: var(--secondary-color);
  position: absolute;
  top: 0px;
  right: 25px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  background-color: transparent;
 
  border-radius: 50%;
  padding: 5px;
    padding-left: 5px;
  left: 93%;

  padding-left: 1.3%;
}

/* Add a hover effect to change the background color */
.close-button:hover {
  color: var(--secondary-color); /* Change the text color to white for better contrast */
}

#loading {
    text-align: center;
    font-size: 1.5em;
    color: var(--primary-color);
    padding: 50px;
}

.loader {
border: 8px solid var(--secondary-color);
  border-top: 8px solid #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
  background-color: #1a1a2e;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Styles de la pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
}

.pagination-button {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.pagination-button:disabled {
    cursor: not-allowed;
    background-color: var(--card-background);
    opacity: 0.5;
    transform: none;
}

.pagination-button.active {
    background-color: var(--secondary-color);
    font-weight: bold;
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

/* Styles pour le bouton + */
.add-to-list-btn {
    /* Styles existants pour le bouton */
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color); 
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

/* Nouvelle classe pour le bouton "ajouté avec succès" */
.add-to-list-btn.added {
    background-color: #4CAF50 !important; /* Vert */
    color: white;
    pointer-events: none;
}

/* Nouvelle classe pour les films déjà dans la liste */
.add-to-list-btn.already-added {
    background-color: #FFA500; /* Orange */
    color: white;
    pointer-events: none;
}

/* Conteneur pour les boutons */
.card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.movie-card:hover .card-actions {
    opacity: 1;
}

/* Style de base pour les boutons d'action */
.add-to-list-btn, .remove-from-list-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.remove-from-list-btn {
 background-color: rgba(255, 0, 0, 0.7);
 border-color: red;
 position: absolute;
 top: 10px;
 left: 10px;
}

.remove-from-list-btn:hover {
    background-color: red;
}



/* Début des nouveaux styles pour le tri et la liste */
/* Styles pour le conteneur de tri */
.sort-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}

.sort-controls label {
    margin-right: 10px;
    font-weight: 500;
}

/* Styles pour le menu déroulant de tri */
#sort-by {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 30px 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#sort-by:hover {
    border-color: var(--primary-color);
}

#sort-by:focus {
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.5);
}

/* Ajoute une flèche personnalisée pour le menu déroulant */
.sort-controls select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-chevron-down'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 50px;
}

/* Amélioration de l'apparence de la grille de films */
.movie-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Amélioration de l'apparence des cartes de films */
.movie-card {
   
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.movie-ratings {
  font-size: 12px;

  font-weight: 600;
  line-height: 1.3;
  color: var(--text-color);
  color: #fff;
}

.movie-card .movie-title {
    font-size: 12px;
    margin: 0 0 0px 0;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
	color: #fff;
}

.movie-card .movie-rating {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #ffc107; /* Couleur jaune pour l'étoile */
    margin-bottom: 5px;
}

.movie-card .personal-rating-display {
    margin-top: auto; /* Pousse la note personnelle vers le bas */
    font-size: 0.9em;
    color: #fff;
}

.movie-card .personal-rating-display p {
    margin: 0;
    font-weight: 500;
}

.movie-card .personal-rating-text .rating-star {
    color: #ffc107; /* Couleur jaune pour l'étoile */
}

/* Styles pour les boutons "Ajouter" et "Supprimer" */
.add-to-list-btn, .remove-from-list-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.5em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.add-to-list-btn:hover, .remove-from-list-btn:hover {
   background-color: #d09f21 !important;
}

.remove-from-list-btn {
    right: 50px;
    background-color: rgba(220, 53, 69, 0.6); /* Rouge pour la suppression */
}

.remove-from-list-btn:hover {
    background-color: #dc3545; /* Rouge vif au survol */
}

.add-to-list-btn.added {
    background-color: rgba(40, 167, 69, 0.6); /* Vert pour déjà ajouté */
    cursor: default;
}

.add-to-list-btn.added:hover {
    background-color: rgba(40, 167, 69, 0.6);
}

.footer {
    background-color: var(--background-color);
    color: #fff;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;

}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
      max-width: 96%;
    margin: 0 auto;
    gap: 30px;
	border-top: 1px solid #333;
  margin-top: 4%;
  padding-top: 2%;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h2, .footer-section h3 {
    color: #d09f21;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p, .footer-section ul {
    font-size: 0.9em;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00e0ff;
}

.social-links a img {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    filter: invert(1);
    transition: filter 0.3s ease;
}

.social-links a:hover img {
    filter: invert(0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    margin-top: 30px;
    font-size: 0.8em;
    color: #aaa;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }

    .social-links {
        justify-content: center;
        display: flex;
    }
	
	.links-container {
display: block !important;
}
.random-movie-link {
  width: 89% !important;
}
.genre-movie-link {
  width: 91% !important;
  margin-top: 20px  !important;
}
}



/**** MEDIA QUERY **/

@media (max-width: 800px) {
  /* Réduire la taille de la police pour les titres */
  h1 {
    font-size: 2em;
  }
  
  /* Ajuster le conteneur principal */
  .container {
    padding: 15px; /* Réduire l'espacement */
  }

  /* Rendre le menu de navigation vertical */
  .auth-links-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
	        position: absolute !important;
  }

  /* Adapter l'image du logo */
  .site-logo {
    width: 80px;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  /* Ajustements pour les tablettes */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-section {
    min-width: 100%;
  }
}


@media (max-width: 600px) {
  #provider-tabs.tabs {
    flex-wrap: wrap; /* Permet aux boutons de passer à la ligne */
    justify-content: center; /* Centre les boutons sur l'écran */
    gap: 10px; /* Ajoute de l'espace entre les boutons */
    padding: 10px;
  }
  .trending-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 50%;
  position: relative;
}
  
  .tab-button {
    flex-basis: 45%; /* Donne une largeur de base pour avoir deux boutons par ligne */
    max-width: 150px;
    padding: 8px; /* Réduit le padding pour économiser de l'espace */
    font-size: 14px; /* Réduit la taille de la police */
  }

  .provider-logo-small {
    width: 30px; /* Réduit la taille des logos */
  }
}

@media (max-width: 600px) {
  #provider-tabs.tabs {
    flex-wrap: nowrap; /* Empêche les boutons de passer à la ligne */
    overflow-x: auto; /* Active le défilement horizontal si nécessaire */
    -webkit-overflow-scrolling: touch; /* Améliore le défilement sur iOS */
    justify-content: flex-start; /* Aligne les boutons au début de la ligne */
    padding: 10px;
  }
  .panel {
width: 82% !important;}

  /* Cache la barre de défilement pour un look plus propre */
  #provider-tabs.tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-button {
    flex-shrink: 0; /* Empêche les boutons de rétrécir */
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .movie-poster {
   width: 100%;
    height: 100%;
  }

  /* Si les images sont dans un conteneur qui les fait dépasser */
  .movie-card {
    max-width: 134px; /* Par exemple, si l'image est dans une carte de film */
  }
}


@media (max-width: 600px) {
 
  
  /* Pour cibler chaque film dans la liste */
  .movie-list .movie-card {
    width: calc(100% - 10px); /* Donne une largeur de près de 50% pour 2 colonnes */
    max-width: 145px; /* Optionnel : pour éviter qu'ils ne soient trop grands sur des tablettes */
  }
  
  .header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em !important;
  color: var(--primary-color);
  margin-bottom: 5px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-top: 0%;
}

 .search-bar {
    flex-direction: column;
    align-items: stretch; /* Pour que les éléments remplissent toute la largeur */
    gap: 10px; /* Ajustez l'espace entre les éléments */
	font-size: 10px;
  }
  
  .search-bar input[type="text"] {

  width: 100%;
}
 .movie-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; /* Ajustez l'écart si nécessaire */
	margin-left: -10%;
    margin-right: -10%;
  }

.movie-card {

  margin-left: auto !important;
  margin-right: auto !important;
}
}

/* Media Queries for better responsiveness */
@media screen and (max-width: 768px) {
     .modal-content {
    width: 90%;
    max-width: none;
    margin: 12% auto;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin: 0px 0px auto;
  }
  
  .modal-poster {
  width: 37%;
  height: 32%;

  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
}


.close-button {
  right: 15% !important;
}

    .modal-header h2 {
        font-size: 1.5em;
    }

    .close-modal {
        font-size: 2em;
    }
	
	
}

@media screen and (max-width: 450px) {
  .close-button {
   left: 81%;
      padding-left: 3.4%;
  }
}

@media (max-width: 600px) {
  .site-logo {
    width: 80px;
  margin-top: 60%;
  }
  
  
.search-container {
  flex: 1;
  max-width: 100% !important;
  margin-right: 0% !important;
  margin-top: 1% !important;
  position: relative;
}
.auth-links-container {
  display: block !important;
 
}



.menu-and-auth {
  display: block !important;
  align-items: center;
  gap: 15px;
  margin-left: -3%  !important;
}
  
  .auth-links-container {
    flex-direction: inherit;
    align-items: center;
    gap: 10px;
	      font-size: 12px;
  }
}

/* Style de base pour la pagination sur les grands écrans */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne */
}

/* Style de base pour les boutons de pagination */
.page-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.page-btn:hover {
    background-color: var(--primary-color);
}

.page-btn.active {
    background-color: var(--primary-color);
    box-shadow: 0 0 5px var(--secondary-color);
}

/* Requête média pour les tablettes (jusqu'à 900px) */
@media (max-width: 900px) {
    .pagination {
        margin-top: 15px;
    }
    .page-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
	.genre-carousel {
  margin: 0 0px !important;
}
 .carousel-container {
      width: 132%;
      left: -16%;
    }
}

/* Requête média pour les téléphones (jusqu'à 600px) */
@media (max-width: 600px) {
    .page-btn {
        padding: 12px 18px;
        font-size: 16px;
        margin: 5px 2px;
    }
	.comment-poster {
  width: 20% !important;
}
}

@media (max-width: 757px) {
	

.user-profile-summary a {
  width: 36% !important;
  font-size: 10px;
}


#searchInput {
  width: 100% !important;
  padding-right: 30px;
}

.auth-links-container {
  position: absolute;
 padding-top: 19px;

  display: flex;
  gap: 10px;
  display: block;
  width: 91%;
}
.auth-link {
  margin-top: 3%;
}
.episode-title {
  font-size: 11px;
}
.episode-image {
  width: 120px;
}
.episode-synopsis {
  font-size: 11px;
}
.episode-meta {
  font-size: 11px;
}
.episode-item.watched-episode {

  padding: 10px;
}
.genre-filter-controls {
  width: 100%;
}
.accordion-mylist {
  font-size: 15px !important;
  padding: 16px !important;
}

.user-profile-summary img {
  width: 20% !important;
  height: 20% !important;
}
.genre-filter-controls label {
  font-size: 10px;
}
.genre-filter-controls {
  padding-top: 5% !important;
  display: block;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
}

.random-movie-link {
  font-size: 12px;
}
.genre-movie-link {
  font-size: 12px;
  padding-right: 0% !important;
}

}

.loader-text{
font-family: 'Montserrat', sans-serif;
  font-size: 2.8em;
  color: var(--primary-color);
  margin-bottom: 5px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-top: 0%;
}

.footer-section.users-info p {
  line-height: 15px;
}




