/* ----------------------------------- */
/* 1. ENCART SHORTCODE INDIVIDUEL      */
/* ----------------------------------- */
.eeo-story-card {
    position: relative;
    width: 100%;
    max-width: 750px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    margin: 25px auto;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.eeo-story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.25);
}
.eeo-story-card-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.eeo-story-card:hover .eeo-story-card-bg {
    transform: scale(1.05);
}
.eeo-story-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
}
.eeo-story-card-content {
    position: absolute;
    top: 0; bottom: 0;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}
.eeo-play-btn {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.5);
}
.eeo-story-card-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.eeo-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #e6683c;
    padding: 3px 8px;
    border-radius: 20px;
    align-self: flex-start;
    margin-bottom: 5px;
}
.eeo-story-card-text h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ----------------------------------- */
/* 2. BULLES HAUT DE PROFIL (LISTE)    */
/* ----------------------------------- */
.eeo-stories-bubbles {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none; 
}
.eeo-stories-bubbles::-webkit-scrollbar { display: none; }
.eeo-story-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 76px;
    flex-shrink: 0;
}
.bubble-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transition: transform 0.2s ease;
}
.eeo-story-bubble:hover .bubble-ring { transform: scale(1.05); }
.bubble-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #eee;
}
.eeo-story-bubble span {
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ----------------------------------- */
/* 3. LIGHTBOX RESPONSIVE & Z-INDEX    */
/* ----------------------------------- */
.eeo-hidden { display: none !important; }
#eeo-story-lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2147483647; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.eeo-lightbox-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #111;
}

/* Conteneur principal */
.eeo-story-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 500px; 
    background: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

@media (min-width: 501px) {
    .eeo-story-container {
        height: 95vh; 
        border-radius: 12px;
    }
}

/* Barres de progression (Haut) */
#eeo-progress-bars {
    position: absolute;
    top: 15px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    z-index: 20;
}
.eeo-progress-bar {
    flex-grow: 1;
    height: 2px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}
.eeo-progress-fill {
    height: 100%;
    width: 0%;
    background: #fff;
}

/* Header (Avatar, Titre, Croix) */
.eeo-story-header {
    position: absolute;
    top: 25px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between; 
    align-items: flex-start; 
    z-index: 20;
    color: white;
}
.eeo-story-author {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    text-align: left; 
    gap: 10px;
}
.eeo-story-author img {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0; 
}
.eeo-story-author span {
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    margin: 0;
}
.eeo-close-btn {
    background: none; border: none; color: white;
    font-size: 32px; cursor: pointer; line-height: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    padding: 0; margin: 0;
}

/* Médias (Images / Vidéos) */
#eeo-story-media-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
}
#eeo-story-media-container img, 
#eeo-story-media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* Contrôles tactiles invisibles */
.eeo-story-controls {
    position: absolute;
    top: 60px; 
    bottom: 60px; 
    left: 0; right: 0;
    display: flex;
    z-index: 10;
}
.eeo-half { flex-grow: 1; cursor: pointer; }

/* Actions en bas : Likes et Son */
.eeo-story-actions {
    position: absolute;
    bottom: 25px;
    right: 15px;
    z-index: 20;
    display: flex;
    align-items: flex-start; /* Aligne les icônes en haut */
    gap: 15px;
}
#eeo-like-btn, #eeo-mute-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    padding: 0;
}
#eeo-like-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
}
#eeo-like-btn svg {
    margin-bottom: 5px;
}
#eeo-like-btn.liked { color: #ed4956; } 
#eeo-like-count { font-size: 13px; font-weight: bold; }