 /* ====== Desktop Layout ====== */
  .app-container {
    display: flex;
    min-height: 100vh;
    padding-bottom: 60px; 
    box-sizing: border-box;
  }

  .sidebar {
    width: 250px;
    background-color: white;
    border-right: 1px solid #dbdbdb;
    padding-top: 10px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
  }

  .sidebar-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 16px 0;
    color: #262626;
    border-bottom: 1px solid #e5e5e5;
  }

  .sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: #262626;
    transition: all 0.2s;
  }

  .sidebar-item:hover {
    background-color: #f8f8f8;
  }

  .sidebar-item i {
    font-size: 22px;
    width: 24px;
    margin-right: 16px;
    text-align: center;
    transition: transform 0.2s;
  }

  .sidebar-item .icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 16px;
    transition: transform 0.2s;
  }

  .sidebar-item:hover i,
  .sidebar-item:hover .icon-img {
    transform: scale(1.1);
  }

  .sidebar-item .item-text {
    font-size: 16px;
    font-weight: 500;
  }

  main {
    flex: 1;
    margin-left: 250px;
    position: relative;
  }

  /* ====== Mobile Header ====== */
  .mobile-settings {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
  }

  .settings-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    z-index: 1001;
  }

  .mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 200px;
    display: none;
    z-index: 1001;
  }

  .mobile-menu.show {
    display: block;
  }

  .mobile-menu-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #262626;
  }

  .mobile-menu-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
  }

  /* ====== Reels Styles ====== */
  .scroll-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    height: 100vh;
  }

  .reel {
    height: 100vh;
    position: relative;
    scroll-snap-align: start;
    background-color: rgba(0,0,0);
    margin-bottom: 20px ;
  }

  .reel video, .reel .img_url {
    position: absolute;
    width: 100%;
    top:20%;

    height: 50vh;
    object-fit: contain;
    background-color: #000;
  }

  /* Progress Bar */
  .progress-bar-container {
    position: absolute;
    top: 70%;
    left: 0;
    height: 4px;
    background-color: rgba(255,255,255,0.2);
    width: 100%;
    z-index: 3;
  }
  
  .progress-bar {
    height: 100%;
    width: 0%;
    background-color: #25f4ee;
    transition: width 0.1s linear;
  }

  /* Overlay Content */
  .overlay {
    position: absolute;
    z-index: 1;
    bottom: 20px;
    left: 20px;
    right: 80px;
    color: white;
    
  }

  .user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }

  .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    margin-right: 10px;
    object-fit: cover;
  }

  .username {
    font-weight: 700;
    font-size: 14px;
  }

  .video-description {
    background-color: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 10px;
    max-width: 90%;
    font-size: 14px;
    line-height: 1.3;
    position: relative;
  }

  .description-text {
    display: inline;
  }

  .read-more {
    color: #25f4ee;
    cursor: pointer;
    font-weight: 700;
    margin-left: 5px;
  }

  /* Actions */
 .actions {
  position: absolute;
  right: 20px;
  bottom: 125px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 45px;
  z-index: 3;
  color: #fff;
}
  /* Cache les éléments de contrôle vidéo pour les images */
.img_url ~ .play-pause-indicator,
.img_url ~ .progress-bar-container {
  display: none !important;
}

  .action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .action-item i {
    font-size: 22px;
    cursor: pointer;
    margin-bottom: 5px;
    transition: transform 0.2s;
  }

  .action-item i:hover {
    transform: scale(1.1);
  }

  .action-count {
    font-size: 13px;
    font-weight: 600;
  }

  /* Play/Pause Indicator */
  .play-pause-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 5;
    text-shadow: 0 0 10px rgba(0,0,0,0.6);
  }

  .play-pause-indicator.show {
    opacity: 1;
  }

  /* Loader */
  #loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
  }

  .spinner {
    border: 5px solid #ccc;
    border-top: 5px solid #25f4ee;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
  }

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

    .video-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinners {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spins 1s linear infinite;
}

@keyframes spins {
  to {
    transform: rotate(360deg);
  }
}


.volume-toggle {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 5;
  font-size: 24px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
}


  /* ====== Responsive ====== */
  @media (max-width: 991px) {
    .app-container {
      flex-direction: column;
    }

    .sidebar {
      display: none;
    }

    .mobile-settings {
      display: block;
    }

    main {
      margin-left: 0;
    }

    .scroll-container {
      max-width: 100%;
    }

    .overlay {
      bottom: 20px;
    }

    .actions {
       bottom: 125px; 
      right: 15px;
    }
  }
  .like-heart-animation {
  position: fixed;
  top: 50%;
  left: 50%;
  font-size: 100px;
  color: rgba(255, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 9999;
  animation: none;
}
@keyframes popHeart {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  30%  { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  50%  { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

 .share-modal {
  display: none;
  position: fixed;
  z-index: 1002;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.share-modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-50px); }
  to   { opacity: 1; transform: translateY(0); }
}

.share-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-modal {
  font-size: 24px;
  cursor: pointer;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.share-option {
  text-align: center;
  padding: 10px;
  text-decoration: none;
  border-radius: 8px;
  color: #262626;
  transition: background 0.2s;
}

.share-option:hover {
  background-color: #f5f5f5;
}

.share-option i {
  font-size: 28px;
  margin-bottom: 6px;
}

.fa-facebook { color: #1877f2; }
.fa-twitter { color: #1da1f2; }
.fa-whatsapp { color: #25d366; }
.fa-link     { color: #25f4ee; }


.comment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.comment-modal-content {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.comment-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.close-modal {
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.comment-list {
  flex: 1;
  overflow-y: auto;
  max-height: 55vh;
  margin-bottom: 15px;
  padding-right: 5px;
}

.comment-list::-webkit-scrollbar {
  width: 5px;
}
.comment-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.comment-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 10px;
}

.comment-item div {
  background: #f1f1f1;
  padding: 8px 12px;
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
}

.comment-item strong {
  font-size: 14px;
  color: #111;
  display: block;
}

.comment-item small {
  font-size: 13px;
  color: #333;
}

/* Barre d'écriture */
.comment-input-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.comment-input-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-input-box textarea {
  width: 100%;
  min-height: 45px;
  max-height: 100px;
  resize: none;
  padding: 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.comment-input-box button {
  align-self: flex-end;
  padding: 8px 16px;
  background-color: #25f4ee;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.comment-input-box button:hover {
  background-color: #1acfe0;
}
.comment-meta {
  margin-top: 5px;
  font-size: 12px;
  color: #777;
  display: flex;
  gap: 10px;
  align-items: center;
}

.comment-action {
  color: #f00;
  text-decoration: none;
  font-weight: bold;
}

.comment-action:hover {
  text-decoration: underline;
}



    .edit-profile-container {
      max-width: 600px;
      margin: 40px auto;
      background: white;
      padding: 30px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0,0,0,0.05);
    }

  .edit-profile-container  .profile-pic-edit {
      width: 100px;
      height: 100px;
      object-fit: cover;
      border-radius: 50%;
      border: 2px solid #ccc;
      display: block;
      margin: 0 auto;
      transition: transform 0.2s ease;
    }

   .edit-profile-container .change-photo {
      font-size: 14px;
      margin-top: 10px;
      text-align: center;
    }

 .edit-profile-container   .form-control {
      font-size: 14px;
    }