   /* Reset default styles */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: Arial, sans-serif;
    }

    body {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      background-color: #ffffff;
      min-height: 100vh;
      position: relative;
      padding-top: 20px;
    }
 
 .glootube-tab-wrapper {
      max-width: 1100px;      /* maximum width */
      width: 100%;             /* take full width up to max */
      margin: 0 auto;          /* center horizontally */
      padding: 0;         /* optional: small padding on sides */
      box-sizing: border-box;  /* include padding in width */
    }
 
 
    .tools-skeleton-hardcoded,
     .tools-skeleton-wrapper {
       margin-top: 15px !important;
     }
    
 
 
 
      /*=== Video Gird Layout ===*/
      /* Grid: 1 video per row */
.np-content {
    max-width: 1100px;
    width: 100%;
}



.Tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* desktop */
  gap: 15px;
  margin-bottom: 20px;
  
}


.video-card img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16/9;
  object-fit: cover;
  z-index: 1;

}


/* === Thumbnail container === */
.video-thumb {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}


/* === Optional hover effect === */
.video-thumb:hover .duration {
  background: rgba(0, 0, 0, 0.9);
}
/* ==== YouTube-Style Thumbnails ==== */
.video-card {
  width: 100%;
  display: inline-block;
  vertical-align: top;
   margin-bottom: 20px;
}

.video-thumb-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.video-thumb-wrapper img,
.video-thumb-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}



 /* ==== YouTube-Style Video Info ==== */
.video-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  position: relative;
  z-index: 2
}

/* Video text info */
.video-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: -2px !important;
}

.video-details h3,
.video-details p {
  line-height: 1.4; /* Same for all lines — YouTube style */
}

.video-details h3 {
  font-size: 16px;
  color: #000;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.video-details p {
  font-size: 14px;
  color: #606060;
  margin: 0;
  text-decoration: none !important;
}
  
  /* YouTube-Style Menu Button */
.menu-btn {
  background: none;
  border: none;
  font-size: 18px; /* slightly smaller */
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #606060;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

/* Hover effect: circular fade with soft highlight */
.menu-btn:hover { 
  background: rgba(0, 0, 0, 0.08);
  color: #000;
  transform: scale(1.05); /* subtle pop */
}




/* ==== Remove click highlight / blue outline like YouTube ==== */
.video-card,
.video-card * {
  -webkit-tap-highlight-color: transparent; /* removes blue on mobile */
  outline: none !important;                 /* removes focus outline */
}
  /* ==== Skeleton Loader ==== */
.skeleton {
  background-color: #e2e2e2;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Skeleton shapes for videos */
.skeleton.video-thumbnail {
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  border-radius: 12px;
  overflow: hidden;
}

.skeleton.text-line {
  height: 12px;
  margin: 6px 0;
  width: 80%;
  border-radius: 6px;
}

.skeleton.text-line.short {
  width: 40%;
}




/*--- ==== Skeleton for Tools Tabe ===== */
/* Connect your custom classes to your existing skeleton design */
.tools-skeleton-hardcoded .skeleton,
.tools-skeleton-wrapper .skeleton {
  /* already styled by your main .skeleton css */
}

/* Map tools-thumbnail → video-thumbnail */
.skeleton.tools-thumbnail {
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  border-radius: 12px;
  overflow: hidden;
}

/* Map skeleton-tools → skeleton */
.skeleton-tools {
  background-color: #e2e2e2;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.skeleton-tools::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  animation: loading 1.5s infinite;
}

/* Map text-line */
.skeleton-tools.text-line {
  height: 12px;
  margin: 6px 0;
  width: 80%;
  border-radius: 6px;
}

/* Map short text-line */
.skeleton-tools.text-line.short {
  width: 40%;
}





/* ===== Tools-style popup menu ===== */
.tools-menu-popup {
  position: absolute;
  display: none;
  background: #fff;
  color: #000;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  z-index: 9999; /* ABOVE overlay */
  padding: 4px 0;
  min-width: 180px;
  max-width: 240px;
  max-height: 200px;
  overflow-y: auto;
  font-family: Arial, sans-serif;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: auto;
}

.tools-menu-popup::-webkit-scrollbar {
  width: 6px;
}
.tools-menu-popup::-webkit-scrollbar-thumb {
  background: rgba(170,170,170,0.6);
  border-radius: 10px;
}
.tools-menu-popup::-webkit-scrollbar-thumb:hover {
  background: rgba(120,120,120,0.8);
}

.tools-menu-popup ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tools-menu-popup li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.tools-menu-popup li:hover {
  background-color: #f8f8f8;
}
.tools-menu-popup .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #606060;
}
.tools-menu-popup .icon svg {
  width: 20px;
  height: 20px;
  fill: #606060;
  transition: fill 0.15s ease;
}
.tools-menu-popup li:hover .icon svg {
  fill: #000;
}


 
    /* tools Tab Toast container */
#toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

/* Individual toast */
.toast {
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 12px 20px;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 14px;
  min-width: 250px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* share Popup */
 .tools-popup {
  background: #fff;
  max-width: 460px;
  width: 100%;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: fixed;       
  top: 50%;             
  left: 50%;            
  transform: translate(-50%, -50%); 
  z-index: 10000;      
}


 .close-bbtn {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 35px;   
  height: 35px;
  background: transparent; /* better than #55 for visibility */
  border: none;
  font-size: 38px; 
  cursor: pointer;
  color: #555;
  transition: color 0.2s ease;
  display: flex;           
  align-items: center;
  justify-content: center;
  border-radius: 50%;     
  line-height: 1; /* ensure icon is centered */
  padding: 0;      /* remove default button padding */
  text-align: center;
}

.close-bbtn:hover {
  color: #000;
}



    .share-icons-wrapper {
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .share-icons-wrapper h3 {
      margin: 0 0 15px 0;
      font-size: 16px;
      font-weight: 400;
      color: #000;
    }

    .scroll-btnbtn {
      position: absolute;
      top: 50px;
      background: #fff;
      border: none;
      font-size: 20px;
      cursor: pointer;
      width: 38px;
      height: 38px;
      color: #333;
      border-radius: 50%;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: all 0.25s ease;
    }

    .scroll-btnbtn:hover {
      background: #f1f1f1;
      transform: scale(1.05);
    }

    .left-btnbtn {
      left: 0;
     
    }

    .right-btnbtn {
      right: 0;
    }

    .share-icons {
      display: flex;
      gap: 12px;
      overflow-x: auto;
      scrollbar-width: none;
      scroll-behavior: smooth;
      padding: 5px 0px;
      position: relative;
    }

    .share-icons::-webkit-scrollbar {
      display: none;
    }

    .share-icon {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
      min-width: 65px;
      text-align: center;
      user-select: none;
    }

    .share-icon img {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: #f5f5f5;
      padding: 6px;
      transition: transform 0.2s ease;
    }

    .share-icon:hover img {
      transform: scale(1.08);
    }

    .share-icon span {
      font-size: 12px;
      margin-top: 6px;
      color: #333;
    }

    .share-link-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border: 1px solid #ddd;
      border-radius: 10px;
      padding: 8px;
      margin: 0 1px 16px;
      margin-top: 30px;
    }

    .share-link-box input {
      border: none;
      outline: none;
      width: 80%;
      font-size: 14px;
    }

    .copy-btn {
      background-color: #065fd4;
      color: white;
      border: none;
      padding: 8px 14px;
      border-radius: 20px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
    }

 
 
 
@media (max-width: 1024px) {
   .Tools-grid { grid-template-columns: repeat(2, 1fr); }
  .np-content {
   width: 100%;
}

 .video-card {
  width: 100%;
    padding: 0px 5;
    border-radius: 8px !important;
} 

.video-thumb-wrapper {
    border-radius: 8px; 
  }
}

 
 
    /* Mobile adjustments */
@media (max-width: 823px) {
     #tab-tools {
        margin-top: -45px !important;
        padding-top: 0 !important;
    } 
    
      .tools-skeleton-hardcoded,
     .tools-skeleton-wrapper {
       margin-top: 45px !important;
     }
    
    
    
   /* Grid: 1 video per row */
  .np-content {
   width: 100%;
  }
  
  .Tools-grid {  
    grid-template-columns: 1fr !important;
    margin-bottom: 0px !important;
  }

  .np-content, 
  .video-card {
    padding-left: 0;
    padding-right: 0;
    margin: 0 !important;
    border-radius: 0px !important;
  }

 .video-thumb-wrapper img,
.video-thumb-wrapper video {
  border-radius: 0px !important;
}



  .video-thumb-wrapper {
    border-radius: 0px;
  }
  
  .video-thumb {
  border-radius: 0px !important;
}


  
   /* Thumbnail full width - NO margin-left */
  .video-card img {
    border-radius: 0 !important;
  }

  /* Details under video (like title, views) */
  .video-info {
    padding: 6px 10px;   /* thoda inner padding */
    margin-bottom: 3px;
    padding-top: 3px;
  }
  
  .video-details h3 {
    font-size: 16px;   /* thoda inner padding */
    font-weight: 500;
   
  }
  
    .no-thumb {
       border-radius: 0px !important;
    aspect-ratio: 16/9;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    }
    
    
    
.skeleton.tools-thumbnail {
  border-radius: 0px !important;
     }
     
    
    
    
    /* menu popup */
     .tools-menu-popup {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    padding: 8px 0;
    border-radius: 16px;
    max-width: 90%;
    max-height: 80%;
  }
    
    /* share popup  */
  .tools-popup {
      max-width: 460px;
      width: 95%;
      padding: 15px;
    }
}