        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-right: auto;
            margin-left: 5px;
        }

        .design_button { 
            background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
            font-size: 1em;
            border: 0px;
            border-radius: 9px;
            padding: 17px;
            margin: 0px  5%;
         }


        .top-icons {
            display: flex;
            gap: 20px;
        }

        .nav-icon {
            font-size: 1.4rem;
            margin-bottom: 2px;
        }

        .nav-button {
            display: flex;
            flex-direction: column;
            align-items: center;
            background: none;
            border: none;
            color: #fff;
            font-size: 0.7rem;
            cursor: pointer;
            transition: opacity 0.2s;
            opacity: 0.7;
        }
        
        .nav-button.active {
            opacity: 1;
        }
        
        .nav-button:hover {
            opacity: 1;
        }
        
        
        .score_style{
            background-color: blue;
            color: yellow;
            padding: 1px 3px;
        }

.score_number { background-color: rgb(228, 37, 157); color: yellow; padding: 1px 9px; font-size:px; font-weight:bold; }

.top_head_status_bar {  
    /* Propriété standard pour l'ombre */
    box-shadow: 
        /* X | Y | Blur | Spread | Couleur */
        0px 5px 0px -2px rgba(0, 0, 0, 0.3); /* Ombre principale nette */
        
    background-color: #fff;
    border-radius: 5px; /* Pour un look plus moderne */
    box-shadow: 
        /* X | Y | Blur | Spread | Couleur */
        0px 4px 6px -4px rgba(0, 0, 0, 0.4); 

    font-weight: normal; margin:0 auto; padding:7px 0px; color:black; 
    gap:10px; display:flex; justify-content: center; margin-right: 7px;}

.status_top_head { display: inline-block;  font-size: 15px; cursor: pointer;}          

.status_png { padding: 2px; background: none ; border:2px solid green;  display: inline-block; border-radius:700px; font-size:20px;  }

.for_admin_user {  border-radius: 40px; border: 0px;  font-weight: bold;}

.avatar-image{
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Cercle parfait */
    padding: 3px; /* C'est l'épaisseur de ta bordure */
    
    /* Ton dégradé ici */
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    
    /* On s'assure que l'image reste ronde à l'intérieur */
    display: inline-block;
}


.avatar-image-status{ 
    border-radius: inherit; /* Cercle parfait */
    padding: 3px; /* C'est l'épaisseur de ta bordure */
    display: inline-block;
    /* Ton dégradé ici */
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}





.make_status_header { 
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    /* On ajoute une petite bordure blanche pour séparer l'image du dégradé */
    border: 3px solid white;
}

.publishing_instruction { border: 5px solid transparent ;
    background:#000; border:0px; border-radius:3px; color:white; padding:3px 5px; font-size:11px; }


.best_content_top_head { background-color:#000; height:130px; width:30%; border-radius:9px; 
    display:inline-block; box-shadow: 1px 1px 100px black; position:relative; cursor:pointer;
    transition: transform 0.3s ease-in-out;
     }

.best_content_top_head:hover{
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


.content_top_head { background-color:#000; height:70px; width:50px; border-radius:9px; 
    display:inline-block; box-shadow: 1px 1px 100px black; position:relative; cursor:pointer;
    transition: transform 0.3s ease-in-out; overflow: hidden;margin: 0px 3px; box-shadow: 1px 1px 5px black;

}




.eachStatus{
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius:9px; overflow: hidden;
}

.centerContent {background: #000; text-align: center; height: inline-block;
    vertical-align: center; font-size: 7px; color: #777; display: flex; word-wrap: break-word;
    justify-content: center;
    align-items: center; }


/*
 top menu to make a side bar appeay

*/
#sideMenu { height: 100%;  width: 0; position: fixed;  z-index: 10000;
      top: 0;  left: 0;  overflow-x: hidden;  transition: 0.5s;
      padding-top: 0px;  text-align: left;  }

#sideMenu a { padding: 8px 8px 8px 32px;
      text-decoration: none; font-size: 17px;  color: #818181;       display: block;  transition: 0.3s;  }

#sideMenu a:hover { color: #f1f1f1; }

#menuButton {  font-size: 13px;       cursor: pointer;   margin-left: 0px;  font-weight: bolder;
      box-shadow: 1px 1px 5px black;    z-index: 10;  }

@media screen and (max-width: 768px) {   #menuButton{     color: darkblue; font-weight: bolder; 
    background-color: black; width: 97%;  position: fixed;  top: 0px;
      /*background: linear-gradient(rgb(228, 35, 157), rgb(228, 170, 245));*/
      border-radius: 5px;   padding: 3px 5px;   }   }



/*
ZONE MODALE POUR ECRIRE ET LIRE COLMMENTAIRE SUR LES POSTE
*/



/* Modale plein écran en largeur */


.modal-overlay.active .modal-content { transform: translateY(0); }

.comments-list { flex: 1; overflow-y: auto; padding: 20px; }


/* Zone de saisie style WhatsApp */
.comment-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: env(safe-area-inset-bottom); /* Pour les mobiles */
}

#comment-text {
    flex: 1;
    background: #2c2c2c;
    border: none;
    color: white;
    border-radius: 25px; /* Forme pilule */
    padding: 10px 18px;
    font-size: 15px;
    max-height: 100px;
    outline: none;
}

/* Bouton d'envoi circulaire */
#submit-comment {
    background: inherit;
    color: white;
    border: none;
    width: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0;
}

#submit-comment:active {
    transform: scale(0.9);
}


/* L'arrière-plan noir transparent */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Utilise toute la largeur de la fenêtre */
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: ;
    
}

/* Le contenu de la modale */
.modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw !important; /* Force 100% de la largeur de l'écran */
    height: 99vh;
    background: #121212;
    color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;
    flex-direction: column;
    /* On s'assure qu'aucun padding parent ne réduit la taille */
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Important : si ton body a un padding, on le neutralise pour la modale */
#comment-modal {
    left: 0 !important;
}


.modal-header {
    display: block;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    width: 100%;
}



.modal-header {
    background: #000000; /* Fond noir pur */
    padding: 0; /* On gère le padding à l'intérieur */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 100%;
    margin: 0px;
    padding-right: 20px;
}

/* La petite barre grise au-dessus */
.drag-handle {
    width: 70px;
    height: 4px;
    background: #333;
    border-radius: 10px;
    margin: 8px auto; /* Centré horizontalement avec un peu d'espace */
}

/* Conteneur pour le Titre et la Croix */
.header-main {
    display: flex;
    justify-content: space-between; /* Un à gauche, l'autre à droite */
    align-items: center;
}

.header-main .title {
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #ffffff;
}

.close-modal {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    border:2px solid white;
    border-radius: 100px;
    width: 35px;
    height: 35px;
    display: inline-block;
}



.post-caption {
    display: flex;
    padding:0px;
    background: #1a1a1a; /* Un gris très foncé, différent du noir pur */
    font-size: 0.7rem;
    line-height: 1.3;
    color: #efefef;

}

.post-caption .author-name {
    font-weight: bold;
    color: #007AFF; /* Nom de l'auteur en bleu */
    margin-right: 8px;
}



#post-caption-container {
    display: block !important;
    background: #1a1a1a;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    color: white;
}



#comments-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #121212; /* Noir pur pour la liste */
    /* Barre de défilement discrète */
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

#comments-container::-webkit-scrollbar {
    width: 4px;
}

#comments-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}




@keyframes fadeInComment {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.comment-item {
    animation: fadeInComment 0.3s ease-out forwards;
}




.loader-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #007AFF; /* Bleu vif */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}




/*
///////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////// STATUS PAGE ///////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
*/

.container_for_opening_status {
    border-radius: unset;
        padding-top: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: #000; /* Fond noir */
    color: white;
}

.play-button {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Rend le bouton rond */
    background: linear-gradient(135deg, #FF6B6B, #F8B400); /* Dégradé élégant */
    color: white;
    font-size: 3em;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4); /* Ombre douce */
    transition: all 0.3s ease-in-out; /* Transition fluide */
    outline: none; /* Supprime le contour bleu au focus */
}

.play-button:hover {
    transform: scale(1.05); /* Agrandit légèrement au survol */
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
}

.play-button:active {
    transform: scale(0.98); /* Petit effet de pression au clic */

}

/* Styles pour le chargement */
.play-button.loading {
    /* background: linear-gradient(135deg, #6B6BFF, #6BEEFF);*/ /* Changement de couleur pendant le chargement */
    cursor: wait;
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);

}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite; /* Animation de rotation */

}

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

.status-display {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05); /* Fond semi-transparent pour les statuts */
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 600px;
    min-height: 100px;
    text-align: center;
    opacity: 0; /* Caché par défaut */
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.status-display.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Style pour les statuts individuels */
.status-item {
    padding: 15px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: left;
    transition: all 0.3s ease-in-out;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-item strong {
    color: #F8B400; /* Couleur pour le nom de l'auteur */
}





/*  style for  best performance*/

.post-overlay {
    text-align: center;
    position: absolute; /* Flotte par-dessus l'image */
    bottom: 0;             /* Aligné en haut (ou bottom: 0 pour en bas) */
    left: 0;
    width: 100%;
    padding: 5px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent); 
    /* Le dégradé permet de lire le texte blanc même sur une image claire */
    display: flex;
    flex-direction: column;
    color: white;
    font-family: sans-serif;
     font-size: 13px;
}

.user-name {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 9px;
}

.user-score {
    font-size: 9px;
    opacity: 0.9;
}


.bestPerformanceMedia {
    object-fit: cover;
    object-position: center; display: inline-block; width: 100%; border-radius: inherit; height: 100%;
}


.statusMedia {
     object-fit: cover;
    object-position: center; display: inline-block; width: 100%; border-radius: inherit; height: 100%;

}


.objectFitContain{ object-fit: contain; }


.status-bar {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    background: white;
    width: 230px !important;
}

.status-item-top{
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    gap: 10px;
    margin-left: 15px;
}




.top-status-element { 
    cursor: pointer;
    border:7px solid rgb(230, 230, 230); 
    width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }

    .top-status-element:hover{ border:7px solid rgb(200, 200, 200);  }
    .top-status-element:focus{ border:7px solid rgb(200, 200, 200);  }