/* ========== BASE ========== */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family:'Roboto',sans-serif;
  background:#fff;
  color:#111;
}

/* CSS */
.material-icons {
  visibility: hidden;
}

.font-loaded .material-icons {
  visibility: visible;
}


.material-icons { color:rgb(96,96,96); }
.container {
  max-width: 1300px;
  padding:0 20px;
  margin-top: 10px;
  display: flex;
  gap:24px;
  align-items: flex-start;
}






.watch-share-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-btnbtn {
  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-btnbtn:hover {
  color: #000;
}


     .watch-share-icons-wrapper {
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .watch-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-iconembed,
    .share-icon {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
      min-width: 65px;
      text-align: center;
      user-select: none;
    }
    .share-iconembed img,
    .share-icon img {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: #f5f5f5;
      padding: 6px;
      transition: transform 0.2s ease;
    }
     .share-iconembed:hover img,
    .share-icon:hover img {
      transform: scale(1.08);
    }
     .share-iconembed span,
    .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 !important;
      color: white;
      border: none;
      padding: 8px 14px;
      border-radius: 20px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
    }
    .copy-btn:hover {
      background-color: #4285F4 !important;
      color: white;
    }
    
    
     /* Related videos Embed popup CSS */
     /* Overlay */
.embed-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none; /* hidden by default */
}

/* Popup Container */
.embed-popup {
  background: #fff;
  width: 80%;
  max-width: 1100px;
  max-height: 345px;
  height: 100%;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  flex-direction: row;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Left side: iframe */
.embed-left {
  flex: 1.5;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.embed-left iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Right side: embed code */
.embed-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-left: 1px solid #ddd;
  overflow: hidden; /* IMPORTANT */
}

/* Header */
.embed-header {
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  padding: 8px;
  border-bottom: 1px solid #ddd;
  font-weight: 500;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.embed-header .close-btn {
  cursor: pointer;
  font-size: 28px;
  font-weight: 400;
   align-items: center !important;
  border: none;
  background: none;
}


.content-wrrapper {
  flex: 1;
  overflow-y: auto;     /* ONE page-like scroll */
  overflow-x: hidden;
  padding: 8px;
}


/* Content area */
.embed-content {
  flex: 1;
  padding: 0px;
  display: flex;

  flex-direction: column;
}


.embed-textarea {
  width: 100%;
  height: auto;
  padding: 5px;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.6;
  border: none;
  border-bottom: 1px solid #ccc;
  resize: none;
  outline: none;
  color: #808080;
  background: #fff;
  overflow: hidden;
}


/* Footer sticky */
.embed-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
  border: none;
  background: transparent;

  position: static; /* NOT sticky */
}

/* Header */
.embed-footer-copybtn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: flex-end !important;
  padding: 8px;
  border-top: 1px solid #ddd;
  font-weight: 500;
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 1;
}

/* Copy button */
.copy-btnembed {
  background: none;
  color: #000;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 99px;
}

.copy-btnembed:hover {
  background: #f1f2f3;
}


    
    
    
    
    

 
    /* Mobile adjustments */
@media (max-width: 823px) {
    .share-popup-watch,
  .watch-share-popup {
      max-width: 460px;
      width: 95%;
      padding: 15px;
    }
    
     .share-iconembed {
         display: none;
    }
}







  
     .watch-share-popup,
    .share-popup-watch {
  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-btnbtn {
  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-btnbtn:hover {
  color: #000;
}


     .watch-share-icons-wrapper {
         position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
     }
     
    
    .share-icons-wrapper {
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .watch-share-icons-wrapper h3 {
        margin: 0 0 15px 0;
      font-size: 16px;
      font-weight: 400;
      color: #000;
    }
    
    .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-iconembedplayer,
    .share-icon {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
      min-width: 65px;
      text-align: center;
      user-select: none;
    }
    .share-iconembedplayer img,
    .share-icon img {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: #f5f5f5;
      padding: 6px;
      transition: transform 0.2s ease;
    }
    .share-iconembedplayer:hover img,
    .share-icon:hover img {
      transform: scale(1.08);
    }
    .share-iconembedplayer span,
    .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 !important;
      outline: none !important;
      width: 80%;
      font-size: 14px;
    }

    .copy-btn {
      background-color: #065fd4 !important;
      color: white;
      border: none;
      padding: 8px 14px;
      border-radius: 20px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
    }
     .copy-btn:hover {
      background-color: #4285F4 !important;
      color: white;
    }
    
     
     /* Player share action button embed popup CSS */
     /* Overlay */
.embed-overlayplayer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none; /* hidden by default */
}

/* Popup Container */
.embed-popupplayer {
  background: #fff;
  width: 80%;
  max-width: 1100px;
  max-height: 345px;
  height: 100%;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  flex-direction: row;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Left side: iframe */
.embed-leftplayer {
  flex: 1.5;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.embed-leftplayer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Right side: embed code */
.embed-rightplayer {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-left: 1px solid #ddd;
  overflow: hidden; /* IMPORTANT */
}

/* Header */
.embed-headerplayer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px !important;
  border-bottom: 1px solid #ddd;
  font-weight: 500;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.embed-headerplayer .close-btnplayer {
  cursor: pointer;
  font-size: 28px;
  color: black;
  font-weight: 400;
  border: none;
  background: none;
}


.content-wrrapperplayer {
  flex: 1;
  overflow-y: auto;     /* ONE page-like scroll */
  overflow-x: hidden;
  padding: 8px;
}


/* Content area */
.embed-contentplayer {
  flex: 1;
  padding: 0px;
  display: flex;

  flex-direction: column;
}


.embed-textareaplayer {
  width: 100%;
  height: auto;
  padding: 5px;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.6;
  border: none;
  border-bottom: 1px solid #ccc;
  resize: none;
  outline: none;
  color: #808080;
  background: #fff;
  overflow: hidden;
}


/* Footer sticky */
.embed-footerplayer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
  border: none;
  background: transparent;

  position: static; /* NOT sticky */
}

/* Header */
.embed-footer-copybtnplayer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: flex-end !important;
  padding: 8px;
  border-top: 1px solid #ddd;
  font-weight: 500;
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 1;
}

/* Copy button */
.copy-btnembedplayer {
  background: none;
  color: #000;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 99px;
}

.copy-btnembedplayer:hover {
  background: #f1f2f3;
}


    
    

 
    /* Mobile adjustments */
@media (max-width: 823px) {
    .watch-share-popup,
  .share-popup-watch {
      max-width: 460px;
      width: 95%;
      padding: 15px;
    }
    
    .share-iconembedplayer {
        display: none;
    }
}







/* ===== mix popup share popup container ========== */

     .share-popup-mix {
  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-btnbtn {
  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-btnbtn:hover {
  color: #000;
}


     .mix-share-icons-wrapper {
         position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
     }
     

    .mix-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-iconembedmix,
    .share-icon {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
      min-width: 65px;
      text-align: center;
      user-select: none;
    }
    .share-iconembedmix img,
    .share-icon img {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: #f5f5f5;
      padding: 6px;
      transition: transform 0.2s ease;
    }
    .share-iconembedmix:hover img,
    .share-icon:hover img {
      transform: scale(1.08);
    }
    .share-iconembedmix span,
    .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 !important;
      outline: none !important;
      width: 80%;
      font-size: 14px;
    }

    .copy-btn {
      background-color: #065fd4 !important;
      color: white;
      border: none;
      padding: 8px 14px;
      border-radius: 20px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
    }
     .copy-btn:hover {
      background-color: #4285F4 !important;
      color: white;
    }
    
     /* mix share video card embed popup CSS */
     /* Overlay */
.embed-overlaymix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none; /* hidden by default */
}

/* Popup Container */
.embed-popupmix {
  background: #fff;
  width: 80%;
  max-width: 1100px;
  max-height: 345px;
  height: 100%;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  flex-direction: row;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Left side: iframe */
.embed-leftmix {
  flex: 1.5;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.embed-leftmix iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Right side: embed code */
.embed-rightmix {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-left: 1px solid #ddd;
  overflow: hidden; /* IMPORTANT */
}

/* Header */
.embed-headermix {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px !important;
  border-bottom: 1px solid #ddd;
  font-weight: 500;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.embed-headermix .close-btnmix {
  cursor: pointer;
  font-size: 28px;
  color: black;
  font-weight: 400;
  border: none;
  background: none;
}


.content-wrrappermix {
  flex: 1;
  overflow-y: auto;     /* ONE page-like scroll */
  overflow-x: hidden;
  padding: 8px;
}


/* Content area */
.embed-contentmix {
  flex: 1;
  padding: 0px;
  display: flex;

  flex-direction: column;
}


.embed-textareamix {
  width: 100%;
  height: auto;
  padding: 5px;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.6;
  border: none;
  border-bottom: 1px solid #ccc;
  resize: none;
  outline: none;
  color: #808080;
  background: #fff;
  overflow: hidden;
}


/* Footer sticky */
.embed-footermix {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
  border: none;
  background: transparent;

  position: static; /* NOT sticky */
}

/* Header */
.embed-footer-copybtnmix {
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: flex-end !important;
  padding: 8px;
  border-top: 1px solid #ddd;
  font-weight: 500;
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 1;
}

/* Copy button */
.copy-btnembedmix {
  background: none;
  color: #000;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 99px;
}

.copy-btnembedmix:hover {
  background: #f1f2f3;
}


 
    /* Mobile adjustments */
@media (max-width: 823px) {
  .share-popup-mix {
      max-width: 460px;
      width: 95%;
      padding: 15px;
    }
     .share-iconembedmix {
         display: none;
    }
}






.tap-zone { pointer-events: auto; }  /* keep tap detection */
.player-buttons button, .controls button {
  pointer-events: auto;
}



/* Autoplay Toggle Button */
.autoplay-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  width: 30px !important;   /* smaller width like YouTube */
  height: 25px;  /* proper height */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Track (background bar) */
.autoplay-track {
  background: #fff;        /* gray by default */
  border-radius: 99px;     /* round edges */
  width: 100%;
  height: 15px;             /* thin bar */
  position: relative;
  transition: background 0.3s ease;
}

/* Circle (knob) */
.autoplay-circle {
  background: #000;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  position: absolute;
  top: 50%;
  left: 0px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.3s ease, background 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}



.autoplay-circle.active {
  left: calc(100% - 15px); /* slide to right edge */
}

/* Play/Pause icon inside circle */
.autoplay-icon {
  font-size: 12px !important;
  color: #fff !important;
  pointer-events: none;
}

/* Optional: hover effect */
.autoplay-btn:hover .autoplay-track {
  background: #fff;
}



/* TAP ZONES (full height, half width) */
.tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 20;
  cursor: pointer;
}
#tapLeft { left: 0; }
#tapRight { right: 0; }

/* Skip indicators (animated) */
.skip-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 99px !important;
  background: rgba(0,0,0,0.6);
  color: #fff;
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: transform .26s cubic-bezier(.2,.9,.2,1), opacity .2s;
}
#skipIndicatorLeft { left: 10%; transform: translateY(-50%) translateX(-20px); }
#skipIndicatorRight { right: 10%; transform: translateY(-50%) translateX(20px); }

/* animate visible */
.skip-indicator.show {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Thumbnail preview */
.thumbnail-preview {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0,0,0,0.8);
  z-index: 60;
  display: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

/* Volume popup */
.volume-popup {
  position: absolute;
  bottom: 70px;
  right: 24px;
  min-width: 64px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(0,0,0,0.75);
  color: white;
  font-weight: 600;
  text-align: center;
  z-index: 45;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s, transform .18s;
  pointer-events: none;
}

/* show */
.volume-popup.show { opacity: 1; transform: translateY(0); }

/* fade controls (smooth) */
.player .controls,
.player .player-buttons,
.player .center-play-btn {
  transition: opacity .28s ease, transform .18s ease;
}

.player.hide-controls .controls,
.player.hide-controls .player-buttons {
  opacity: 0;
  pointer-events: none;
}



/* MAIN OUTER CONTAINER (like YouTube) */
.autoplay-main-wrapper {
  width: 100%;
  height: 100%;
  
  position: absolute;   /* overlay the player */
  inset: 0;             /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000; /* optional: transparent overlay */
  z-index: 60; 
}


/* Main contain */
.autoplay-badge {
  background: none; /* must stay none */
  color: white;
  padding: 5px 20px;
  border-radius: 0px;
  display: flex;
  flex-direction: column;
  max-width: 400px;
  width: 100%;
  aspect-ratio: 16 / 9;
  z-index: 1000;
  box-shadow: none;
  font-family: sans-serif;
  margin: 0 auto; /* center */
}

/* Top label row */
.autoplay-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #999999;
}

.autoplay-label-row .close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 28px !important;
  cursor: pointer;
}

/* Countdown row */
.autoplay-countdown-row {
  font-weight: 500;
  font-size: 12px;
  text-align: left;
  margin-bottom: 5px;
  color: #fff;
}

/* Thumbnail + title row */
.autoplay-content-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.thumb-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 50%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
}

.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Duration badge */
.duration-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.8);
  color: white;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 2px;
}

/* Video title */
.autoplay-info {
  display: flex;
  flex-direction: column;
  justify-content: left;
  text-align: flex-start;
  font-size: 14px;
  flex: 1;
  overflow: hidden;
}

.autoplay-info .video-title {
  font-weight: 500;
  overflow: hidden;
  color: white !important;
  margin-top: -5px;
  font-size: 14px;
}

/* Buttons row */
.autoplay-buttons-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.autoplay-buttons-row button {
  padding: 6px 12px;
  border-radius: 99px;
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  margin-top: 20px;
}

.cancel-btn {
  background: rgba(255,255,255,0.1);
  color: white;
}

.play-btn {
  background: #fff;
  color: #000;
}



.video-end-screen {
  position: absolute;   /* overlay only the player */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95); /* optional semi-transparent */
  display: none; /* HIDE by default to prevent flicker */
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: auto;
  opacity: 0; /* for smooth fade-in */
  transition: opacity 0.3s ease;
}

.end-screen-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 36px;
  height: 36px;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.6);
  border: none;

  color: #fff;
  font-size: 26px;
  line-height: 1;

  cursor: pointer;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: center;
}

.end-screen-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}


.end-screen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  gap: 12px;
  width: 95%;
  justify-items: center;
}

.end-card {
  background: none;
  cursor: pointer;
  display: flex;
  padding: 8px;
  border-radius: 12px;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
}

  .end-card:hover {
  background: rgba(24, 24, 24, 0.95);
}
.end-card:hover .end-thumb img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.end-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.end-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.end-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 4px;
}

.end-title {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.end-meta {
  font-size: 14px;
  color: #aaa;
  margin-top: 2px;
  margin-bottom: 6px;
  display: flex;
  gap: 6px;
  flex-direction: row;
  line-height: 1.2;
}


.end-meta .end-views,
.end-meta .end-date {
  font-weight: 300;
  color: #aaa;
}

      /* Mobile adjustments */
@media (max-width: 668px) {
  .end-screen-grid {
  grid-template-columns: repeat(2, 1fr);
}
   #end-card3 {
     display: none !important;
  }
  
  
.end-card {
  background: rgba(24, 24, 24, 0.95);
}

  .end-card:hover {
  background: none;
}
}







/* ===== Center Video Spinner ===== */
.video-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999; /* on top of player controls */
  display: none; /* hidden by default */
  pointer-events: none;
}

.spinner-circle {
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  animation: spin 1s linear infinite;
}

/* Spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* double-tap ripple (small circle) */
.tap-ripple {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.18);
  transform: scale(.6);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: transform .45s cubic-bezier(.2,.9,.2,1), opacity .35s;
}
.tap-ripple.show {
  opacity: 1;
  transform: scale(1);
}










/* ========== Menu popup toast notification ========== */
/* Toast container */
#toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

/* Individual toast */
.toast {
  background: #000;
  border: none;
  color: #fff;
  padding: 16px 20px;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 14px;
  min-width: 200px;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

/* Show toast */
.toast.show {
  opacity: 1;
  transform: translateY(0);
}




/* ========== Popup Overlay and Popup Menu Code Video  ========== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* semi-transparent dark overlay */
  z-index: 9998; /* below the popup menu but above content */
  display: none;  /* JS will toggle .active */
}

/* Show overlay when active */
.popup-overlay.active {
  display: block;
}

/* ===== YouTube-style popup menu ===== */
.popup-menu {
  position: absolute;        /* stays absolute for desktop, can adjust in JS for mobile */
  display: none;             /* JS toggles this to block via .active */
  background: #fff;
  color: #000;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  z-index: 9999;             /* above everything */
  padding: 8px 0;
  min-width: 240px;
  max-width: 240px;
  overflow-y: auto;
  font-family: Arial, sans-serif;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: auto;
}

/* Scrollbar styling */
.popup-menu::-webkit-scrollbar {
  width: 6px;
}
.popup-menu::-webkit-scrollbar-thumb {
  background: rgba(170,170,170,0.6);
  border-radius: 10px;
}
.popup-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(120,120,120,0.8);
}

/* Menu list styling */
.popup-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.popup-menu 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;
}
.popup-menu li:hover {
  background-color: #f8f8f8;
}

/* Optional icon styling (if you add icons inside <li>) */
.popup-menu .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #606060;
}
.popup-menu .icon svg,
.popup-menu .icon .material-icons {
  width: 20px;
  height: 20px;
  fill: #606060;
  transition: fill 0.15s ease, color 0.15s ease;
}
.popup-menu li:hover .icon svg,
.popup-menu li:hover .icon .material-icons {
  fill: #000;
  color: #000; /* for material icons */
}

/* Toggle state via JS */
.popup-menu.active {
  display: block !important;
}




/* ========== VIDEO PLAYER ========== */
.video-main {
  flex: 1; /* occupy left space */
}


/* ================================
      UNIVERSAL YOUTUBE PLAYER
=================================== */
.player {
  position: relative;
  max-width: 800px;
  width: 100%;
  aspect-ratio: 16 / 9;   /* YouTube default */
  background: #000;
  overflow: hidden;
  border-radius: 12px;
  z-index: 10;
  user-select: none;
}

/* Video fits container */
.player video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;   /* SAME AS YOUTUBE */
  background: #000;
  display: block;
  z-index: 5;
}


.two-seek-indicator {
  position: absolute;
  top: 22px;                  /* little space from top */
  left: 50%;
  transform: translateX(-50%) scale(0.85);

  background: rgba(0,0,0,0.6);

  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;

  padding: 6px 16px;
  border-radius: 99px;

  opacity: 0;
  pointer-events: none;

  transition: 
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(.2,.9,.2,1);

  z-index: 90;
}

/* visible state */
.two-seek-indicator.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}


/* Controls (same as before) */
.controls {
  position:absolute;
  left:0; right:0; bottom:0;
  background:linear-gradient(to top,rgba(0,0,0,.6),rgba(0,0,0,0));
  padding:8px 12px 12px;
  transition:opacity .2s;
  z-index: 55; /* make sure above video layer */
}

.control-row { display:flex; align-items:center; justify-content:space-between; }
.control-row .left { display:flex; align-items:center; gap:6px; }
.right-controls { display:flex; align-items:center; gap:6px; background: rgba(0,0,0,0.5) !important; padding: 0px 10px; border-radius: 99px; }

#settingsBtn,
#autoplayStatus,
#fsBtn {
    background: none !important;
}

#fsBtn {
    padding: 0 !important;
    margin-right: -5px !important;
}

#autoplayStatus {
    margin-right: 5px;
}

/* ======== YouTube-PC Style Control Buttons ======== */

.btn {
  position: relative;
  width: 26px;
  height: 36px;
  border: 0;
  outline: none;
  background: rgba(0,0,0,0.5) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001; /* make sure above video layer */
  transition: background 0.15s ease, transform 0.15s ease;
}

/* Default transparent circle (YouTube PC) */
.btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.btn:active {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(0.92);
  color: inherit;
}

/* Icons inside the buttons (SVG) */
.btn-icon {
  width: 22px !important;
  height: 22px !important;
  fill: #fff !important;          /* icon color */
  pointer-events: none;
  transition: fill 0.15s ease;
}


/* Generic tooltip for any element with data-tooltip */
[data-tooltip] {
  position: relative;
}

/* Tooltip bubble */
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);

  background: rgba(0,0,0,0.5) !important;
  color: #fff;
  font-size: 12px;
  font-weight: 500;

  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  z-index: 10002;

  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Show on hover */
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Disable on touch devices (YouTube behavior) */
@media (hover: none) {
  [data-tooltip]::after {
    display: none;
  }
}


/* full screen tooltip css */

/* Generic tooltip for any element with data-tooltip */
[data-tooltipfull] {
  position: relative;
}

/* Tooltip bubble */
[data-tooltipfull]::after {
  content: attr(data-tooltipfull);
  position: absolute;
  top: -36px;
  left: 50% !important;
  transform: translateX(-70%) scale(0.95);

  background: rgba(0,0,0,0.5) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 500;

  padding: 4px 10px !important;
  border-radius: 4px !important;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  z-index: 10002;

  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Show on hover */
[data-tooltipfull]:hover::after {
  opacity: 1;
  transform: translateX(-70%) scale(1);
}

/* Disable on touch devices (YouTube behavior) */
@media (hover: none) {
  [data-tooltipfull]::after {
    display: none;
  }
}




.next-preview {
  position: absolute;
  bottom: 70px !important; /* distance above progress */
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5) !important;
  padding: 6px;
  border-radius: 12px;
  pointer-events: none;
  z-index: 99999;
  text-align: center;
  font-size: 12px;
  color: #fff;
}
.next-hint {
  color: #fff;
  font-size: 14px;
  margin-top: -5px;
  text-align: center;
  padding: 8px;
}
.next-thumb {
  max-width: 200px;
  max-height: 100px;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.15) !important;
  border: none;
  border-radius: 8px;
  overflow: hidden;
}



#mute {
    background: none !important;
}

/* Icons inside the buttons */
.btn .material-icons,
#mute .material-icons {
  color: #fff;
  font-size: 22px;
  pointer-events: none;
}

.time {
  color: #fff;
  background: rgba(0,0,0,0.5) !important;
  border-radius: 99px;
  padding: 7px 12px;   /* slightly tighter like YouTube */
  font-size: 13px;
  margin-left: 5px;

  width: auto;         /* content-based */
  min-width: unset;    /* 🔥 remove forced width */
  white-space: nowrap; /* prevent wrapping */
  display: inline-flex;
  align-items: center;
}

#mute {
    padding: 0px !important;
    margin-left: -5px !important;
}

/* ===== Volume Wrapper ===== */
.volume {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0px 12px;
  background: rgba(0,0,0,0.5);
  border-radius: 999px;
  width: 40px; /* shrink to just the button initially */
  transition: width 0.2s ease;
  overflow: visible;
  position: relative;
}

/* Expand volume wrapper on hover */
.volume:hover {
  width: 130px; /* full width to show progress */
}


.vprogress::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);

  background: rgba(0,0,0,0.5) !important;
  color: #fff;
  font-size: 12px;
  font-weight: 500;

  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  z-index: 10002;

  transition: opacity 0.15s ease, transform 0.15s ease;
}


/* ===== Custom Progress Bar ===== */
.vprogress {
  position: relative;
  flex: 1;
  height: 6px; 
  display: flex;
  margin-top: 0px;
  align-items: center;
  background: #e0e0e0;
  border-radius: 9px;
  cursor: pointer;

  /* Hide bar by default */
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Show bar on hover of volume wrapper */
.volume:hover .vprogress {
  opacity: 1;
}

/* Buffered portion */
.vprogress .buffered {
  position: absolute;
  height: 100%;
  background: #cccccc;
  border-radius: inherit;
  width: 0%;
}

/* Filled portion */
.vprogress .filled {
  position: absolute;
  height: 100%;
  background: #4285F4;
  border-radius: inherit;
  width: 100%;
}

/* Thumb */
.vprogress .thumb {
  position: absolute;
  left: 0%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4285F4;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s;
}

/* Show thumb when volume wrapper hovered */
.volume:hover .vprogress .thumb {
  opacity: 1;
}





.seek-preview {
  position: absolute;
  bottom: 80px; /* distance above progress */
  left: 50%;
  transform: translateX(-50%);
  display: none;
  pointer-events: none;
  z-index: 99999;
  text-align: center;
  font-size: 12px;
  color: #fff;
}



.seek-hint {
  color: #aaa;
  font-size: 14px;
  text-align: center;
  margin-top: 2px;
  padding: 4px 8px;
}


.seek-time {
  margin-top: 8px;
  background: rgba(0,0,0,0.6);
  padding: 6px 8px;
  border-radius: 99px;
  display: inline-block;
}


.progress .thumb { pointer-events: auto; }





/* Progress bar */
.progress {
  position:relative;
  height:6px;
  margin:6px 0 10px;
  background:#e0e0e0; 
  border-radius: 9px;
  cursor:pointer;
   touch-action: none;
  z-index: 9999;
}
.progress .buffered { 
    position:absolute;
    height:100%; 
    background:#cfe0fc; 
    border-radius:inherit;
    width:0%; 
    
}
.progress .filled { 
    position:absolute;
    height:100%; 
    background:#4285F4;
    border-radius:inherit;
    width:0%; 
    
}
.progress .thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4285F4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10000;
}

/* Hover (desktop) */
.progress:hover .thumb {
  opacity: 1;
}

/* Force visible when controls are shown */
.player:not(.hide-controls) .progress .thumb {
  opacity: 1;
}


/* Settings */
.settings-wrap { 
    position:relative; 
    
}
.settings-menu {
  position:absolute;
  right:0; 
  bottom:44px; 
  min-width:200px;
  background: rgba(0,0,0,0.5) !important;
  color: white;
  border: solid 0.6px #e0e0e0;
  border-radius:8px;
  box-shadow:0 4px 20px rgba(0,0,0,0.12);
  padding:6px 0; 
  display:none; 
  z-index:10000;
}
.settings-menu.open {
    display:block; 
    
}
.settings-menu.show {
  display: block;
}


.settings-title {
  padding:4px 12px;
  font-size:12px;
  color:#fff;
  text-transform:uppercase;
}
.settings-menu button {
  width:100%; 
  padding:8px 12px; 
  border: none !important;
  background: transparent !important;
  color: inherit;
  text-align:left;
  border-radius: 0 !important;
  cursor:pointer;
  font-size:14px;
}
.settings-menu button:hover { 
    background: rgba(0,0,0,0.6) !important;
   color: inherit; 
    
}
.settings-menu button.active {
    background: rgba(0,0,0,0.6) !important;
    color:#4285F4; 
    font-weight:500; 
}



.settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none; /* semi-transparent */
  z-index: 9990; /* behind menu but above video */
  display: none;
}

.settings-overlay.show {
  display: block;
}



/* ========== VIDEO DETAILS ========== */
.video-title { font-size:22px; font-weight:620; margin:14px 0 12px; color: #000 !important; }

.actions { display:flex; align-items:center; gap:8px; margin-bottom:32px; flex-wrap: wrap;}


.action-btn.more { padding:8px; border-radius:50%; }

.acplayer {
  display: inline-flex;
  align-items: center;
  padding: 0;
  gap: 6px;
  background: #f1f2f3;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  color: #111;
}

.acplayer:hover {
  background: #f2f2f2;
  color: #111;
}


.action-divider {
  width: 1px;
  height: 22px;              /* YouTube-like height */
  background: #e0e0e0 !important; /* light line */
  margin: 0;
  display: inline-block;
}

#dislikeBtn {
     background: none !important;
     box-shadow: none;
}
#likeBtn {
    background: none !important;
    box-shadow: none;
}


/* ======= Action Buttons Base ======= */
/* ===== Action Button Base ===== */
.action-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  gap: 6px;
  background: #f1f2f3;
  border: none;
  cursor: pointer;
  color: #111;
}

.action-btn:hover {
  background: #f2f2f2;
  color: #111;
}



/* ===== Material Symbols Control ===== */
.material-symbols-outlined {
  font-size: 24px;
  font-variation-settings:
    'FILL' 0,   /* outline */
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
  transition: font-variation-settings 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* ✨ hover zoom */
.material-symbols-outlined:hover {
  transform: scale(1.05);
}

/* Click animation */
.action-btn.animate .material-symbols-outlined {
  transform: scale(1.2);
}

/* ===== LIKE ACTIVE ===== */
.like-btn.active .material-symbols-outlined {
  color: #4285F4; /* Zuzuur blue */
  font-variation-settings:
    'FILL' 1,   /* filled */
    'wght' 500,
    'GRAD' 0,
    'opsz' 24;
}

/* ===== DISLIKE ACTIVE ===== */
.dislike-btn.active .material-symbols-outlined {
  color: #4285F4;
  font-variation-settings:
    'FILL' 1,
    'wght' 500,
    'GRAD' 0,
    'opsz' 24;
}


/* Pop animation for feedback */
.like-pop {
  position: absolute;
  font-size: 14px;
  animation: pop 0.6s ease forwards;
}


/* General skeleton */
.skeleton-line {
    background: #ddd;
    border-radius: 4px;
    display: inline-block;
    animation: skeleton-loading 1.2s infinite linear;
}

/* Avatar */
.skeleton-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ddd;
    animation: skeleton-loading 1.2s infinite linear;
}

/* Comment input skeleton */
.comment-input-skeleton {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}
.comment-input-skeleton .skeleton-input {
    height: 15px;
    width: 100%;
    border-radius: 18px;
    background: #ddd;
    flex: 1;
}
.comment-input-skeleton .skeleton-buttons {
    width: 100%;
    height: 15px;
    border-radius: 4px;
}

/* Header skeleton */
.comments-header-skeleton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.skeleton-count {
    width: 80px;
    height: 20px;
}
.skeleton-sort {
    width: 100px;
    height: 20px;
    border-radius: 4px;
}

/* Placeholder comment item */
.comment-item-skeleton {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.comment-item-skeleton .comment-body {
    flex: 1;
}

/* Skeleton loading animation */
@keyframes skeleton-loading {
    0% {
        background-color: #eee;
    }
    50% {
        background-color: #ddd;
    }
    100% {
        background-color: #eee;
    }
}





@keyframes pop {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-8px); }
  100% { opacity: 0; transform: translateY(-16px); }
}



/* ===============================
   ALLOW TEXT SELECTION (COMMENTS)
================================ */

/* Comment & reply text */
.comment-body p {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  cursor: text;
}

/* Username (optional but nice) */
.comment-username {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
}

/* Time can stay unselectable (YouTube-like) */
.comment-time {
  user-select: none;
}


/* Prevent selection on buttons & actions */
.comment-actions,
.comment-actions * ,
.reply-btn,
.reply-toggle,
.comment-menu-btn,
.avatar,
.material-icons {
  user-select: none;
  -webkit-user-select: none;
}



.comments-container {
  position: relative;
}


/* ===== Inline Comments Spinner ===== */
.comments-spinner {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
}

.cm-spinner-circle {
  border: 2px solid #4285F4;
  border-top-color: transparent;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
}


/* Spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* ===== Desktop Comments Container ===== */
.comments-container {
    width: 100%;
    margin: 0 auto;
    background: #fff !important;
    padding: 4px;
}

.comments-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 15px;
     gap: 12px;
    margin-top: -15px !important;
}

.comments-header h2 {
  font-size: 18px;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #111;
}

.comments-short {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  margin-left: 20px !important;
  cursor: pointer;
}

.comments-short svg {
  width: 18px;
  height: 18px;
  fill: #555;
}

.short-menu-btn.active {
  background: #f1f2f3;
}


/* short by meny popup css */
.comments-short-menu-overlay {
  display: none;
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.1);
  z-index: 999;
}

/* Menu Popup */
.comments-short-menu {
  display: none;
  position: absolute; /* keep absolute */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0px;
  box-shadow: none;
  padding: 8px 0;
  width: 260px;
  z-index: 1000;
  flex-direction: column;
  gap: 0;
}


/* Menu Buttons */
.short-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 16px;
  gap: 2px;
  border-radius: 0px !important;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}

.short-menu-btn:hover {
  background: #f1f2f3;
}

.short-menu-btn strong {
  font-size: 14px;
  color: #111;
}

.short-menu-btn p {
  font-size: 12px;
  color: #555;
  margin: 0;
  text-align: left !important;
}





/* ===== Comment Input ===== */
.comment-input {
    display: flex;
    flex-direction: column; /* stack input and buttons vertically */
    gap: 8px;               /* space between input and buttons */
    margin-bottom: 30px;
    border: none !important;
}

/* Avatar */
.comment-input .avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    background: #f1f2f3;
    flex-shrink: 0;
    justify-content: flex-start;
}
.comment-input .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}


/* Keep the row of avatar + input horizontally */
.comment-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}



.comment-input-box[contenteditable="true"] {
    flex: 1;
    min-height: 40px;
    padding: 8px 12px;
   border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 1px solid #ccc !important; 
    border-radius: 0;
    outline: none;
    font-size: 14px;
    overflow-y: auto;
}

.comment-input-box:empty:before {
    content: attr(placeholder);
    color: #888;
}



/* Buttons container */
.comment-buttons {
    display: none; /* hidden initially */
    gap: 8px;
    justify-content: flex-end !important;
}




/* Buttons style */
.comment-buttons button {
    padding: 8px 16px;
    border: solid 0.9px #e0e0e0;
    border-radius: 24px;
    background: #f1f2f3;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.comment-buttons button:hover {
    background: #f2f2f2;
}

/* Cancel button style (optional different color) */
#cancelCommentBtn {
    background: none;
    color: #555;
    border: none;
    box-shadow: none;
}
#cancelCommentBtn:hover {
    background: #f1f2f3;
}

/* Skeleton Animation */
@keyframes pulse {
  0% { background-color: #f1f2f3; }
  50% { background-color: #eaeaea; }
  100% { background-color: #f1f2f3; }
}



.editable-input {
  min-height: 36px;
  padding: 8px;
  border-radius: 6px;
   border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 1px solid #ccc !important; 
    width: 100%;
  outline: none;
  white-space: pre-wrap;
}

.editable-input:empty::before {
  content: attr(data-placeholder);
  color: #999;
}

.editable-input.has-text::before {
  content: "";
}


.comment-more-btn {
  color: black;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-left: -8px !important;
  margin-bottom: -20px !important;
}

.comment-more-btn:hover {
  text-decoration: underline;
}
.char-counter {
    display: block;
    text-align: right;
    margin-top: 2px;
    font-size: 12px;
    color: #888;
}




/* Skeleton Comment Item */
.comment-item.skeleton {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  align-items: flex-start;
  /* IMPORTANT: do NOT give background here! Only inner elements */
  background: transparent;
  animation: none; /* animation only on inner lines */
}

/* Avatar */
.comment-item.skeleton .avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f2f3;
  animation: pulse 1.2s infinite;
}

/* Comment body */
.comment-item.skeleton .comment-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Username line */
.comment-item.skeleton .comment-header-row.skeleton-line {
  height: 12px;
  width: 35%;        /* smaller for username */
  background: #f1f2f3;
  border-radius: 6px;
  animation: pulse 1.2s infinite;
}

/* Comment text lines */
.comment-item.skeleton .skeleton-line {
  height: 12px;
  width: 90%;
  background: #f1f2f3;
  border-radius: 6px;
  margin: 4px 0;
  animation: pulse 1.2s infinite;
}

/* Actions line (like/reply) */
.comment-item.skeleton .comment-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.comment-item.skeleton .skeleton-btn {
  display: inline-block;
  width: 50px;
  height: 12px;
  background: #f1f2f3;
  border-radius: 6px;
  animation: pulse 1.2s infinite;
}




/* ===== Comment Items ===== */
.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.comment-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}


.comment-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px; /* optional space between username and time */
}

.comment-header-row .comment-username {
    font-size: 14px;
    font-weight: 700;
    color: #555; /* make username darker */
}

.comment-header-row .comment-time {
    font-size: 12px;
    font-weight: 500;
    color: #555; /* lighter for time ago */
}


.comment-header-row span {
    cursor: pointer;
}
.comment-body p {
    font-size: 13px;
    color: #333;
    margin: 4px 0 6px;
    font-weight: 600;
    white-space: pre-wrap;
}

/* ===== Action Row ===== */
.comment-actions {
    display: flex;
    gap: 5px;
    font-size: 12px;
    color: #555;
}

.comment-actions span {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

/* Hover circular background like YouTube */
.comment-actions span:hover {
    background-color: #f1f2f3;
}

/* SVG default: stroke outline, no fill */
.comment-actions svg {
    width: 16px;
    height: 16px;
    fill: none;           /* no fill by default */
    stroke: #555;         /* outline color */
    stroke-width: 1.8;
    transition: all 0.2s ease;
}

/* Hover stroke color change */
.comment-actions span:hover svg {
    stroke: #000;
}

/* ===== ACTIVE (LIKE / DISLIKE) ===== */
.comment-actions .like-btn.active svg,
.comment-actions .dislike-btn.active svg {
    stroke: #4285F4;      /* Google blue like YouTube */
    fill: #4285F4;        /* fill blue when active */
}

.comment-actions .like-btn.active,
.comment-actions .dislike-btn.active {
    color: #4285F4;       /* text color on active */
}


.reply-btn {
    font-weight: 500;
}

/* ===== Nested Replies ===== */
.comment-replies {
    margin-left: 10px;
    margin-top: 10px;
    border-left: 2px solid #eee;
    font-weight: 500;
    padding-left: 10px;
    display: none; /* hidden initially for collapse/expand */
}
/* ===== Reply Toggle Button ===== */
.reply-toggle {
    cursor: pointer;
    font-size: 12px;
    color: #555;
    display: inline-flex;       /* auto width based on content */
    align-items: center;
    font-weight: 600;
    gap: 5px;
    max-width: 150px;
    width: 100%;
    padding: 8px 16px;          /* horizontal padding makes it look like a pill */
    border-radius: 99px;
    background: none;        /* optional: like YouTube */
    transition: background 0.2s;
}

.reply-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.reply-toggle:hover {
    background: #f1f2f3;
    color: #555;
}

#arrowcommentreplybutton {
 padding: none !important;
 margin-right: -5px !important;
}


/* ===== Three-Dot Menu ===== */
.comment-more svg {
    width: 20px;
    height: 20px;
    cursor: pointer;
    fill: #555;
}
.comment-more svg:hover {
    fill: #000;
}

.cmenu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: none;
    display: none;
    z-index: 15000;
}
.comment-item {
  position: relative; /* makes absolute children position inside the comment */
}
.comment-menu-btn {
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 50%;
    color: black;              /* default YouTube gray */
    transition: background 0.2s ease, color 0.2s ease;
}

/* Hover effect */
.comment-menu-btn:hover {
    background: #f1f2f3;         /* light gray circle */
    color: #0f0f0f;              /* darker icon */
}


.comment-menu-wrapper {
  position: relative; /* 🔑 anchor point */
}

.cmenu-box {
  position: absolute;
  top: 100%;      /* directly below dots */
  right: 0;
  display: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  z-index: 16000;
  padding: 6px 0;
  min-width: 180px;
}


.cmenu-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cmenu-box li {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}
.cmenu-box li:hover {
    background: #f1f2f3;
}


    
    /* ===== Reply Input Box (YouTube Style) ===== */
.reply-input-box {
    display: flex;
    gap: 12px;
    margin: 10px 0 0 0;
    align-items: center;
}

.reply-input-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 18px;
    font-size: 13px;
    outline: none;
}

.reply-input-box button {
    padding: 7px 14px;
    border: none;
    border-radius: 18px;
    background: #f1f2f3;
    color: black;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}

.reply-input-box .reply-cancel {
    background: #f1f2f3 !important;
    border: none;
    color: #333;
}

.reply-input-box button:hover {
    background: #f1f2f3;
    border: solid 0.9px #e0e0e0;
    color: #333;
}










/* ===== Video Meta & Description ===== */
/* ===== Allow text selection for description ===== */
.video-title,
#mobileSmallDescription,
#pcDescription,
#pcDescription * {
  user-select: text !important;
  -webkit-user-select: text !important; /* Safari */
  -ms-user-select: text !important;     /* Old Edge */
}

/* Optional: also allow selection in meta text */
#mobileSmallDescription,
.video-meta,
.video-meta * {
  user-select: text;
}

/* Prevent selection on buttons */
.read-more-btn,
.video-meta button {
  user-select: none;
}


.video-meta { 
  font-size:14px; 
  color:#606060; 
  line-height:1.5; 
  font-weight: 600;
  margin-bottom:24px;
  background: #f1f2f3;
  border: none;
  border-radius: 20px;
  padding: 12px;
  display: block !important;
}

.video-meta:hover { 
  background: #f2f2f2;
}
.video-meta .stats { 
  margin-bottom:8px; 
}
.video-meta .description {
  overflow:hidden; 
  transition: max-height 0.3s ease;
  max-height:60px; /* collapsed height */
}
.video-meta .description.expanded { 
  max-height:1000px; /* large enough to show full text */ 
}
.read-more-btn {
  background:none; border:none; color:#065fd4; cursor:pointer;
  padding:0; margin-top:4px; font-size:14px; font-weight:500;
}


.title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* Three dots button */
.video-more {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.video-more:hover {
  background: rgba(0,0,0,0.05);
}

.video-more .material-icons {
  font-size: 18px;
  color: #606060;
}

/* ===== Fullscreen Fix ===== */
video:-webkit-full-screen,
video:-moz-full-screen,
video:-ms-fullscreen,
video:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain;
  background: #000;
}

.player:-webkit-full-screen,
.player:-moz-full-screen,
.player:-ms-fullscreen,
.player:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
}

video:fullscreen {
  object-fit: cover;
}












/* Buttons Wrapper */
.player-buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 20px; /* space between buttons */
  z-index: 40;
}

/* Center Play Button */
.center-play-btn {
  width: 70px; /* same as SVG */
  height: 70px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5) !important;
  color: inherit;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 45; /* make sure above video layer */
}

.center-play-btn svg {
  width: 90%;
  height: 90%;
}

.center-play-btn:hover {
  background: rgba(0,0,0,0.5) !important;
  color: inherit;
}


/* Side Skip Buttons */
.side-play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
   z-index: 45;
}
#prevBtn:hover {
  background: rgba(0,0,0,0.5) !important;
  color: inherit;
}
#nextBtn:hover {
  background: rgba(0,0,0,0.5) !important;
  color: inherit;
}
.side-play-btn svg {
  width: 24px;
  height: 24px;
}








/* ========== SIDEBAR ========== */
.sidebar {
  width:500px;
  display:flex;
  flex-direction:column;
  gap:24px;
}


/* ============   Mix Poppup CSS =============== */
.mix-sidebar {
  width: 500px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dfe1e5;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  max-height: 396px;
  font-family: Arial, sans-serif;
  transition: width 0.3s, max-height 0.3s;
}

.mix-sidebar.collapsed {
  width: 500px;
  max-height: 85px;
  
}

.mix-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
   background: none;
}

.mix-header h3 {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

.mix-header p {
  font-size: 12px;
  color: #606060;
  margin: 4px 0 0 0;
}

.mix-header .close-btn {
  position: absolute;
  top: 20px;
  right: 16px;
  font-size: 18px;
  cursor: pointer;
}

.close-btn {
  position: relative;
  cursor: pointer;
  display: inline-block;
  width: 18px;
  height: 18px;
  font-size: 18px;
  text-indent: 0; /* remove the -9999px */
  color: #000;
  text-align: center;
  line-height: 18px;
}

/* Collapsed: down arrow */
.close-btn.collapsed::before {
    content: "expand_more"; /* Material icon for down arrow */
    font-family: 'Material Icons';
    font-size: 22px; /* adjust size */
    display: block;
}

/* Expanded: up arrow */
.close-btn.expanded::before {
    content: "expand_less"; /* Material icon for up arrow */
    font-family: 'Material Icons';
    font-size: 22px; /* adjust size */
    display: block;
}


.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none; /* semi-transparent */
  display: none; /* hidden by default */
  z-index: 5;
}
.menu-overlay.active {
  display: block;
}

  
.mix-videos {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: max-height 0.3s;
}

.mix-sidebar.collapsed .mix-videos {
  display: none;
}

/* Video card styles (same as before) */
.video-cardm {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  align-items: flex-start;
  border-bottom: 1px solid #eee;
  position: relative;
  transition: background 0.2s;
}

/* Hover effect */
.video-cardm:hover {
  background: #f1f2f3;          /* light gray hover */
}

.video-cardm.active {
  background: #f1f2f3;
}

.mix-card-link {
    text-decoration: none !important;
    color: inherit;
}
.mix-card-link:hover {
    color: inherit;
}

.mvideo-thumb-wrapper {
  width: 200px;
  height: 120px;
  flex-shrink: 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.mvideo-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

 .duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 10px !important;
  padding: 2px 4px !important;
  border-radius: 4px;
}

.mvideo-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mvideo-info .mtitle-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mvideo-info .mtitle {
  font-size: 14px;
  font-weight: 540;
  line-height: 1.2;
  max-height: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #000 !important;
}

.mvideo-info .mchannel {
  font-size: 12px;
  color: #606060;
}

.mvideo-more {
  background: none;
  border: none;
  box-shadow: none !important;
  color: #606060;             /* default icon color */
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: inline-flex;       /* center icon */
  align-items: center;
  justify-content: center;
  padding: 8px;               /* spacing inside button */
  font-size: 18px;            /* icon size */
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
  border-radius: 50%;         /* circle button like YouTube */
}


/* Hover effect */
.mvideo-more:hover {
  background: #f1f2f3;        /* light gray background on hover */
  color: #000;                 /* darker icon on hover */
  transform: scale(1.1);       /* subtle zoom effect */
}

.mpopup-menu {
  position: absolute;
  top: 24px;
  right: 12px;
  width: 240px;
  padding: 8px 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  z-index: 999999;
}

.mpopup-menu.active {
  display: block;
}

.mpopup-menu ul {
  list-style: none;
  margin:0; 
}

.mpopup-menu li {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.mpopup-menu li:hover {
  background: #f1f1f1;
}

.mpopup-menu li .icon {
  font-size: 16px;
}
  
  /* Optional icon styling */
.mpopup-menu .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #606060;
}

.mpopup-menu .icon svg {
  width: 20px;
  height: 20px;
  fill: #606060;
  transition: fill 0.15s ease, color 0.15s ease;
}

.mpopup-menu li:hover .icon svg {
  fill: #000;
}


.related-videos {
  display: flex;             /* Use flex to align icon and text */
  align-items: center;       /* Vertically center both */
  gap: 8px;                  /* Space between icon and text */
  font-size: 16px;           /* Text size */
  color: #000 !important;    /* Text color */
  margin-top: 0px;
  margin-bottom: -25px !important; /* Keep your original spacing */
  font-weight: 600;          /* Optional: make text slightly bolder */
}

.related-videos svg {
  flex-shrink: 0;            /* Prevent SVG from shrinking */
}


.sidebar h2 { font-size: 16px; color: #000 !important;  margin-top: -5px !important; }


.sidebar .video-card img {
  width:100%;
  border-radius:12px;
  object-fit:cover;
  background:#eee;
}





/* ========== Video Cards  ========== */
/* Skeleton Card */
.video-card.skeleton-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
}

.video-card.skeleton-card .thumb.skeleton {
  width:220px;
  height:120px;
  border-radius: 12px;
  background: #f1f2f3; /* light gray skeleton */
  animation: skeleton-loading 1.2s infinite linear;
}

.video-card.skeleton-card .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.video-card.skeleton-card .text-line {
  height: 14px;
  width: 80%;
  background: #f1f2f3;
  border-radius: 6px;
  animation: skeleton-loading 1.2s infinite linear;
}

.video-card.skeleton-card .text-line.short {
  width: 40%;
}

/* Skeleton Animation */
@keyframes skeleton-loading {
  0% { background-color: #f1f2f3; }
  50% { background-color: #f0f0f0; }
  100% { background-color: #f1f2f3; }
}


.more-videos {
  margin-bottom: 10px !important;
}

.more-videos .video-card {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: -20px;         /* positive spacing between cards */
  padding: 4px 0px;           /* internal padding so hover looks nice */
  border-radius: 0px;           /* rounded like YouTube cards */
  transition: background 0.2s ease, transform 0.1s ease;
  cursor: pointer;
}

/* Hover effect */
.more-videos .video-card:hover {
  background: #f1f2f3;          /* light gray hover */
}



.more-videos .video-card .thumb img {
  width:220px;
  height:120px;
  border-radius:8px;
  object-fit:cover;
}
.more-videos .video-card .info h3.title {
  font-size:14px;
  line-height:1.2;
  color: #000 !important;
}
.more-videos .video-card .info .meta {
  font-size:12px;
  color:#606060;
}



.menu-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #606060;
  cursor: pointer;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Meta info (views etc.) */
.meta {
  font-size: 12px;
  color: #606060;
  margin-top: 4px;
}





 /* ==== YouTube-Style Thumbnails ==== */
.video-card {
  width: 100%;
  display: inline-block;
  vertical-align: top;
  margin: 10px 0;
  cursor: pointer;
}





/* ===== Video Card Image Hover Effects ===== */
/* Video card wrapper */

.video-thumb-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

/* Thumbnail image */
.video-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.more-videos {
  display: flex;
  flex-direction: column; /* stack videos vertically */
  gap: 12px;
}

.video-card {
  width: 100%;
  display: flex;
  flex-direction: row; /* thumbnail + info side by side */
  gap: 12px; /* spacing between thumbnail and info */
  box-sizing: border-box;
  align-items: flex-start; /* top align thumbnail & info */
}

/* Thumbnail */
.video-card .thumb {
  width: 220px; /* fixed width for thumbnail */
  flex-shrink: 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

/* Make video & image fit thumbnail */
.video-card .thumb img,
.video-card .thumb video {
  width: 100%;
  height: 100%; /* adjust height as needed */
  object-fit: cover;
}

/* ==== Remove click highlight / blue outline like YouTube ==== */
.video-card .thumb,
.thumb.video-thumb-wrapper,
.thumb.video-thumb-wrapper * {
  -webkit-tap-highlight-color: transparent; /* removes blue on mobile */
  outline: none !important;                 /* removes focus outline */
}


/* Info (title + meta) */
.video-card .info {
  flex: 1; /* take remaining space */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Title row (title + three dots) */
.video-card .title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Meta info (views & date) */
.video-card .meta {
  font-size: 12px;
  color: #606060;
  margin-top: 4px;
}





/* Views and Meta */
.meta {
  font-size: 12px;
  color: #606060;
  margin-top: 4px;
}


.video-mobile-meta { 
  display: none !important;
}

.desc-popup {
    display: none !important;
}





.m-comments-popup {
  display: none !important; 
}



  .comments-btn {
      display: none;
  }

/* ========== Video preview (desktop only ========== */

@media (min-width: 1025px) {
    .video-thumb-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    border-radius: 12px;
    transition: opacity 0.3s ease;
  }

  /* Hover: show video */
  .video-thumb-wrapper:hover video {
    opacity: 1;
    pointer-events: auto;
  }

  /* Hover: hide image */
  .video-thumb-wrapper:hover img {
    opacity: 0;
  }
  
  .video-thumb-wrapper video { opacity:0; pointer-events:none; }
  .video-thumb-wrapper:hover video { opacity:1; pointer-events:auto; }
  .video-thumb-wrapper:hover img { opacity:0; }
  
}



@media (max-width: 1230px) {
    
  .sidebar { 
      max-width:430px;
      width:100%; 
      order:2; 
      
  }
  
    .mix-sidebar {
    max-width:430px;
    width: 100%;
   }
  }
  
  

/* ========== TAblet Query ========== */

@media (max-width: 1130px) {
    .container { 
    flex-direction: row; 
    margin:16px auto 60px;
  }
  
  
  
/* ==========  ========== */

  .video-main { 
      order:1; 
      width:100%; 
      
  }
 
  
  
/* ==========  ========== */
.player {
    aspect-ratio: 16 / 9;
    border-radius: 12px !important;     /* Tablet YouTube has no rounded corners */

  }

  .player video {
    object-fit: contain;
  }
  
   

  
  .center-play-btn {
    width: 90px;
    height: 90px;
  }
  .center-play-btn svg {
    width: 50px;
    height: 50px;
  }

  .side-play-btn {
    width: 60px;
    height: 60px;
  }
  .side-play-btn svg {
    width: 30px;
    height: 30px;
  }
  
  .comments-btn {
      display: none;
  }
  
  
  .video-meta { 
  margin-top: 8px !important;
}
  
  
  
  
  


.video-card.skeleton-card .thumb.skeleton {
  width:160px;
  height:90px;
}



.more-videos .video-card .thumb img {
  width:160px;
  height:90px;
}

/* Thumbnail */
.video-card .thumb {
  width: 160px; /* fixed width for thumbnail */

}

.mvideo-thumb-wrapper {
  width: 160px;
  height: 90px;
  flex-shrink: 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}




/* ==== Remove click highlight / blue outline like YouTube ==== */
.video-card .thumb,
.thumb.video-thumb-wrapper img,
.thumb.video-thumb-wrapper video * {
  -webkit-tap-highlight-color: transparent; /* removes blue on mobile */
  outline: none !important;                 /* removes focus outline */
}


.video-thumb-wrapper video {
    display: none !important;
  }
  .video-thumb-wrapper img {
    display: block !important;
    opacity: 1 !important;
  }

  


.action-btn .material-icons {
    font-size: 14px; /* icon size */
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .action-btn.more .material-icons {
    font-size: 20px; /* slightly bigger for three dots */
    width: 20px;
    height: 20px;
  }
  
  .actions { 
      padding:0px; 
      margin-top: 0px !important;
      margin-bottom: 15px !important;

  }
  
  .popup-menu {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    border-radius: 16px;
    max-width: 90%;
  }
  
  
  
  
  
  
  
/* ==========  ========== */

  .sidebar { 
      max-width:330px;
      width:100%; 
      order:2; 
      
  }
  
    .mix-sidebar {
    max-width:330px;
    width: 100%;
}

    
    
}
   




/* ========== Video preview (desktop only ========== */

@media (min-width: 924px) {
  .video-thumb-wrapper video {
    opacity: 0;
    pointer-events: none;
  }

  .video-thumb-wrapper:hover video {
    opacity: 1;
    pointer-events: auto;
  }

  .video-thumb-wrapper:hover img {
    opacity: 0;
  }
  
  .side-play-btn {
   display: none; 
  }

  .center-play-btn {
    width: 80px;
    height: 80px;
  }

  .center-play-btn svg {
    width: 40px;
    height: 40px;
  }
}






/* ========== Mobile Query ========== */ 
@media (max-width: 923px) {
    .np-header {
      display: none !important;
  }
    
    .toast {
    min-width: 300px;
    width: 100%;
   }
    
    .container {
    flex-direction: column; 
    margin:0;
    padding:0;
    gap:0;
  }
  
   
    
   .player {
    max-width: 923px;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0 !important;
    z-index: 999;
    overflow: visible !important;
  }

  .player video {
    object-fit: contain;
  }
  


  /* ===== Mobile Swipe Fullscreen ===== */
.player {
  touch-action: pan-y;
  transition: transform 0.25s ease;
  will-change: transform;
  position: relative;
  overflow: hidden; /* keep video inside */
}

/* Controls (same as before) */
.controls {
  z-index: 49 !important; /* make sure above video layer */
}


.right-controls { background: none !important; }
  
  .seek-hint {
  display: none !important;
  }

.next-preview,
.next-hint,
.next-thumb{
  display: none !important;
  background: transparent !important;
}
  
  /* ===== YouTube-style Mobile Center Play Button ===== */
.center-play-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
}

.center-play-btn svg {
    width: 34px;
    height: 34px;
    fill: #fff;
}

/* Press feedback (mobile tap) */
.center-play-btn:active {
    transform: scale(0.92);
    background: rgba(0, 0, 0, 0.7);
}

/* ===== YouTube-style Side Seek Buttons ===== */
.side-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, background 0.15s ease;
}

.side-play-btn svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.side-play-btn:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.65);
}



   .comments-btn {
    display: block;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn {
  background: none !important;
   }
  .time { 
   background:none !important;
   margin-left: -4px;
   }
  
  
  
  .sidebar { 
      max-width:100%;
      width:100%; 
      order:2; 
      margin-top:24px; 
      
  }
  
  .mix-sidebar {
    max-width: 923px;
    width: 100%;
    margin-top: -12px !important;
    margin-bottom: -4px !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.mix-sidebar.collapsed {
  max-width: 923px;
  width: 100%;
  max-height: 90px;
  border-radius: 0 !important;
  }
  
  .more-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 8px;
  margin-bottom: 10px !important;
}


  .more-videos .video-card { 
      flex-direction: column; 
      gap:0px;  
      
  }
  .more-videos .video-card .thumb img { 
      width:100%; 
      height:auto;  
      border-radius: 0 !important;
      
  }

.video-card {
    width: 100%; /* 1 card per row on mobile */
  }
  
  /* Hover effect */
.video-card:hover {
  background: #f1f2f3;          /* light gray hover */
  border-radius: 12px !important;
}
  /* Thumbnail */
.video-card .thumb {
  width: 100%; /* fixed width for thumbnail */
  border-radius: 8px !important;
  aspect-ratio: 16 / 9;
}

/* Make video & image fit thumbnail */
.video-card .thumb img,
.video-card .thumb video {
  width: 100%;
  height: 100%; /* adjust height as needed */
  object-fit: cover;
}




/* ==== Remove click highlight / blue outline like YouTube ==== */
.video-card .thumb,
.thumb.video-thumb-wrapper img,
.thumb.video-thumb-wrapper video * {
  -webkit-tap-highlight-color: transparent; /* removes blue on mobile */
  outline: none !important;                 /* removes focus outline */
}


.video-thumb-wrapper video {
    display: none !important;
  }
  .video-thumb-wrapper img {
    display: block !important;
    opacity: 1 !important;
  }

  
  .video-title { 
      padding:8px; 
      margin-top: 5px !important;
      font-size: 18px !important;
      color: #000 !important;
      font-weight:  620;
  }
  
  
  .info { 
      width:100%;
      padding: 8px; 
      margin-bottom: -5px !important;
  }
  
.title,
.title-wrapper h3 {
      font-size: 14px;
  font-weight: 540;
      
  }
  .meta {
      font-size: 14px !important;
   } 
   

  .video-more {
  background: none;
  border: none;
  box-shadow: none !important;
  color: #606060;             /* default icon color */
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: inline-flex;       /* center icon */
  align-items: center;
  justify-content: center;
  padding: 8px;               /* spacing inside button */
  font-size: 18px;            /* icon size */
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
  border-radius: 50%;         /* circle button like YouTube */
}


/* Hover effect */
.video-more:hover {
  background: #f1f1f1;        /* light gray background on hover */
  color: #000;                 /* darker icon on hover */
  transform: scale(1.1);       /* subtle zoom effect */
}
  
  /* ==================== Mobile Video Card Skeleton ==================== */


.video-card.skeleton-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 8px;
}

.video-card.skeleton-card .thumb.skeleton {
  width: 100%;
  aspect-ratio: 16 / 9;       /* keep aspect ratio */
  max-width: 100%;            /* prevent overflow */
  height: auto;               /* let aspect-ratio calculate height */
  background: #f1f2f3;
  border-radius: 12px !important;
  position: relative;
  overflow: hidden;
  animation: skeleton-loading 1.2s infinite linear;
}



/* Info container (title + meta) */
.video-card.skeleton-card .info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}

/* Skeleton title line */
.video-card.skeleton-card .text-line {
  height: 16px;
  width: 80%;
  background: #f1f2f3;
  border-radius: 8px;
  animation: skeleton-loading 1.2s infinite linear;
}

/* Short line for meta or small text */
.video-card.skeleton-card .text-line.short {
  width: 40%;
  height: 14px;
}


  
  


.action-btn .material-icons {
    font-size: 16px; /* icon size */
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .action-btn.more .material-icons {
    font-size: 20px; /* slightly bigger for three dots */
    width: 20px;
    height: 20px;
  }
  
  .actions { 
      padding:8px; 
      margin-bottom: 0px !important;

  }
  


  .popup-menu {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    border-radius: 16px;
    max-width: 90%;
  }
  
  
  .mpopup-menu {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    border-radius: 16px;
    max-width: 90%;
  }
  
  
  
  
  
  
  
  .comments-container {
    display: none;
    
  }
  
  
  
  
  
  
  
  
  


/* Overlay */
.m-comments-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    z-index: 999;
}

/* Mobile Comments Popup */
.m-comments-popup {
  position: fixed;
  left: 0;
  bottom: 0; /* always anchored */
  width: 100%;
  max-width: 1000px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 8px;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.2);
  z-index: 10000; /* above overlay */
  overflow-y: auto;
  display: block !important;

  /* 🔒 hidden by default */
  transform: translateY(100%);
  transition: transform 0.35s ease;
  will-change: transform;
}

/* Drag Handle */
.m-comments-drag {
     width: 45px;
  height: 5px;
  background: #ccc;
  border-radius: 5px;
  margin: 0 auto 12px auto;
}

/* Header */
.m-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 8px;
  border-bottom: 1px solid #e5e5e5;
}

.m-comments-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.m-comments-left .m-comments-title {
  font-size: 18px !important;
  font-weight: 600;
}

.m-comments-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.m-comments-sort svg {
  display: block;
}

.m-comments-header .m-comments-close {
  font-size: 28px !important;
  cursor: pointer;
}


/* Comments List */
.m-comments-list {
    height: calc(56vh - 90px);
    overflow-y: auto;
    padding: 8px;
    padding-bottom: 80px;
}


.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}






.avatar {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


 .avatar img {
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    object-fit: cover;
}



.comment-body strong {
    font-size: 14px;
}
    
/* Username row with 3-dots */
.comment-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comment-more {
    cursor: pointer;
    padding: 4px;
}

.comment-more svg {
    width: 18px;
    height: 18px;
    fill: #666;
  margin-left: 60px;
}

.comment-body p {
    margin: 2px 0 6px;
    color: #444;
    font-size: 13px;
}

/* ===== New YouTube-Style Action Row (Like / Dislike / Reply) ===== */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
    cursor: pointer;
}

.comment-actions span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
}

.comment-actions svg {
    width: 18px;
    height: 18px;
    fill: #555;
}
    
/* ========== Overlay ========== */
.cmenu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  display: none;
  z-index: 15000;
}
.comment-menu-wrapper {
    position: relative;
}

.comment-menu-wrapper .cmobile-menu {
    display: none; /* hidden by default */
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 8px 0;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    border-radius: 16px;
    max-width: 90%;
}

.comment-menu-wrapper .cmobile-menu.open {
    display: block;
}

.comment-menu-wrapper .cmobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-menu-wrapper .cmobile-menu li {
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
}

.comment-menu-wrapper .cmobile-menu li:hover {
    background: #f2f2f2;
}





    /* ===== Comment Input (YouTube Style) ===== */
.comments-input-wrapper {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.comments-input-wrapper .avatar {
    width: 30px !important;
    height: 30px !important;
    background: #f1f2f3;
    border-radius: 50%;
    flex-shrink: 0;
}

.comments-input-wrapper textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 18px;
    outline: none;
    font-size: 14px;
    resize: none;
    overflow-y: auto;
    min-height: 36px;
    max-height: 120px;
    line-height: 1.4;
}


.comments-input-wrapper textarea:focus {
    border-color: #4285F4;
}

.comments-input-wrapper button {
    background: #4285F4;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: background 0.2s ease;
}

.comments-input-wrapper button:disabled {
    background: #f1f2f3;
    color: black;
    cursor: default;
}

.comments-input-wrapper button:hover:not(:disabled) {
    background: #4285F4;
    color: white;
}
  
/* Replies layout inside popup (YouTube style) */
.comment-replies .comment-item {
  margin-left: 10px;
  margin-top: 12px;
}



  /* ===== Reply Toggle Button ===== */
.m-toggle {
    cursor: pointer;
    font-size: 12px;
    color: #555;
    display: inline-flex;       /* auto width based on content */
    align-items: center;
    font-weight: 600;
    gap: 5px;
    max-width: 150px;
    width: 100%;
    padding: 8px 16px;          /* horizontal padding makes it look like a pill */
    border-radius: 99px;
    background: none;        /* optional: like YouTube */
    transition: background 0.2s;
}

.m-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.m-toggle:hover {
    background: #f1f2f3;
    color: #555;
}



/* ===== Action Row ===== */
.mcomment-actions {
    display: flex;
    gap: 5px;
    font-size: 12px;
    color: #555;
}

.mcomment-actions span {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

/* Hover circular background like YouTube */
.mcomment-actions span:hover {
    background-color: #f1f2f3;
}

/* SVG default: stroke outline, no fill */
.mcomment-actions svg {
    width: 16px;
    height: 16px;
    fill: none;           /* no fill by default */
    stroke: #555;         /* outline color */
    stroke-width: 1.8;
    transition: all 0.2s ease;
}

/* Hover stroke color change */
.mcomment-actions span:hover svg {
    stroke: #000;
}


/* ===== ACTIVE (LIKE / DISLIKE) ===== */
.mcomment-actions .m-like.active svg,
.mcomment-actions .m-like.active svg {
    stroke: #4285F4;      /* Google blue like YouTube */
    fill: #4285F4;        /* fill blue when active */
}

.mcomment-actions .m-like.active,
.mcomment-actions .m-like.active {
    color: #4285F4;       /* text color on active */
}




/* Mobile Edit Input Box */
.m-edit-input-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 0 0;
}

/* Editable content */
.m-editable-input {
  min-height: 36px;
  padding: 8px;
  border-radius: 6px;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: 1px solid #ccc !important;
  width: 100%;
  outline: none;
  white-space: pre-wrap;
  font-size: 13px;
}

/* Action buttons container */
.m-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Buttons */
.m-edit-actions button {
  padding: 8px 14px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  background: #f1f2f3;
  color: #000;
}

.m-edit-actions button:hover {
  background: #f2f2f2;
}



.mobile-menu-btn {
    margin-right: 5px !important;
    width: 18px;
    height: 18px;
    background: none;
    color: black;
    padding: 8px;
    border-radius: 50%;
}

.mobile-menu-btn:hover {
    background: #f1f2f3;
    color: black;
}

#mCommentsPopup {
  touch-action: none;
  will-change: transform;
}

#mCommentsPopup input,
#mCommentsPopup textarea,
#mCommentsPopup button {
  touch-action: auto;
}








  .ad-box  {
      display: none;
      
   }
  .sidebar h2 { 
      display: none;
   
   } 
   
   
   
   .volume {
       display: none;
   }
   
   /* Progress bar */
   
.seek-preview {
  bottom: 60px; /* distance above progress */
}


/* Progress Bar (sticks to bottom of the player) */
.progress {
    position: absolute;
    bottom: 0;     /* Stick to bottom */
    left: 0;
    margin-bottom: -0px !important;
    width: 100%;              /* Full width */
    height: 3px;
    background: transparent;
    border-radius: 0px;
    cursor: pointer;
    z-index: 99999 !important;
    pointer-events: auto;        
}

/* Buffered Bar */
.progress .buffered {
    position: absolute;
    height: 100%;
    background: #cfe0fc;
    border-radius: 0px !important;
    width: 0%;
}

/* Filled Bar */
.progress .filled {
    position: absolute;
    height: 100%;
    background: #4285F4;
    border-radius: inherit;
    width: 0%;
}

/* ===== Seek Thumb (YouTube-style) ===== */
.progress .thumb {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 13px !important;
    height: 13px !important;
    background: #4285F4;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 100000;
}

/* Desktop hover */
.progress:hover .thumb {
    opacity: 1;
}

/* Mobile + paused + controls visible */
.player:not(.hide-controls) .progress .thumb {
    opacity: 1;
}

/* ===== YouTube-style Mobile Progress Expand ===== */

/* Default (thin bar) */
.progress {
  height: 3px;
  transition: height 0.18s ease, transform 0.18s ease;
}

/* Expanded state */
.progress.expanded {
  height: 3px;

}

/* Thumb behavior */
.progress .thumb {
  transform: translate(-50%, -50%) scale(0.6);
  width: 13px !important;
    height: 13px !important;
}

/* Show & enlarge thumb when expanded */
.progress.expanded .thumb {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  width: 16px;
    height: 16px;
}


   
   #playPause {
       display: none !important;
   }
   
   
   #previousbtn {
       display: none !important;
   }
   
   
   #nextbtnpc {
       display: none !important;
   }
   
   
   
   .right-controls { 
       margin-right: -3px !important;
   }
   
   
   
   /* ====== PC Description Video Watch ====== */
   .video-meta { 
   display: none !important;
}
   
   
   
   
/* ==========  ========== */  
   /* ===== Video Meta & Description ===== */
.video-mobile-meta { 
  font-size:14px; 
  color:#606060; 
  background: transparent;
  border-radius: 20px;
  display: block !important;
  padding: 8px;
  margin-bottom: -5px !important; 
  margin-top: -25px !important;
}
.statsdate { 
  margin-left: 20px; 
}
.hashtag {
  color: #4285F4;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  gap: 3px;
   margin-left: 5px;
}

.hashtag:hover {
  text-decoration: underline;
}


.read-more {
  background:none; 
  border:none; 
  color: #606060;
  cursor:pointer;
  padding:0;  
  font-size:14px; 
  font-weight:500; 
  margin-left: 10px;
}

/* Open Button */
.open-desc-btn {
  background: none;
  border: none;
  color: #606060;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* Overlay */
.overlay {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.4);
  display:none;
  z-index: 9999;
}

/* Popup */
.desc-popup {
  position: fixed;
  left: 0;
  bottom: 0; /* always anchored */
  width: 100%;
  max-width: 1000px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 8px;
  padding-top: 5px !important;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.2);
  z-index: 10000;
  overflow-y: auto;
  display: block !important;

  /* 🔒 HARD HIDE */
  transform: translateY(100%);
  transition: transform 0.35s ease;
  will-change: transform;
}


    
/* Drag Handle */
.drag-handle {
  width: 45px;
  height: 5px;
  background: #ccc;
  border-radius: 5px;
  margin: 0 auto 12px auto;
}

/* Header */
.popup-header {
  display:flex;
  justify-content: space-between;
  align-items:center;
}

.popup-title {
  font-size: 18px;
  font-weight: 700;
}

.close-popup {
  font-size: 28px;
  cursor: pointer;
}

/* Divider */
.divider {
  border: none;
  border-bottom: 1px solid #ddd;
  margin: 8px 0;
}

/* Video Title */
.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #000 !important;
}

/* Stats Row */
.stats-row {
  display:flex;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 8px;
}

.stat-box {
  background: #f1f2f3;
  width: 32%;
  padding: 10px;
  border-radius: 12px;
  text-align:center;
  gap: 5px;
}

.stat-box strong {
  display:block;
  font-size: 18px;
}

.stat-box span {
  font-size: 12px;
  color: #666;
}

/* Hashtags */
.hashtags-row {
  display: flex;
  flex-wrap: wrap;        /* Allow hashtags to move to next line if needed */
  gap: 8px;               /* Space between hashtags */
  margin-bottom: 12px;
}

.hashtags-row span {
  background: #f1f2f3;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #333;
  font-weight: 700;
  white-space: nowrap;    /* Prevent individual hashtags from breaking in the middle */
}


/* Small Description Box */
.small-desc-box {
   font-size:14px; 
  color:#606060; 
  line-height:1.5; 
  font-weight: 600;
  margin-bottom:24px;
  background: #f1f2f3;
  border-radius: 12px;
  padding: 12px;
}
   
 .small-desc-box  .description {
  overflow:hidden; 
  transition: max-height 0.3s ease;
  max-height:60px; /* collapsed height */
}
   
.small-desc-box .description.expanded { 
  max-height:1000px; /* large enough to show full text */ 
}

   .read-more-button {
  background:none; border:none; color:#065fd4; cursor:pointer;
  padding:0; margin-top:4px; font-size:14px; font-weight:500;
}

   
}


@media (max-width: 768px) {
    .settings-menu {
    min-height: 120px !important; /* max height relative to player */
    height: 100% !important;
    overflow-y: auto; /* scroll if content is too tall */
  }

  .settings-menu::-webkit-scrollbar {
    width: 6px;
  }

  .settings-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }

    /* Controls (same as before) */
.controls {
  z-index: 49 !important; /* make sure above video layer */
}

    
/* Video title */
.autoplay-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 14px !important;
  flex: 1;
  overflow: hidden;
}

.autoplay-info .video-title {
  font-weight: 500;
  overflow: hidden;
  color: white !important;
  margin-top: -5px !important;
  font-size: 14px !important;
}
    
  .actions {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    flex-wrap: nowrap;           /* ❗ never break line */
    white-space: nowrap;

    padding: 8px 4px;
    margin-bottom: 20px;

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  /* Hide scrollbar (like YouTube) */
  .actions::-webkit-scrollbar {
    display: none;
  }
  .actions {
    scrollbar-width: none;
  }

  .action-btn {
    flex: 0 0 auto;              /* ❗ keep button size */
    min-width: max-content;
    padding: 8px 12px;

    border-radius: 999px;        /* YouTube pill style */
    font-size: 13px;
  }

  .action-btn span {
    white-space: nowrap;
  }
  
    .more-videos {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  padding: 0px !important;
}


  .video-card.skeleton-card .thumb.skeleton {
  border-radius: 0px !important;
}
 
  
  .video-card {
    width: 100%; /* 1 card per row on mobile */
    margin-bottom: -10px !important;
  }
  
  .video-card:hover {
  background: #f1f2f3;          /* light gray hover */
  border-radius: 0px !important;
}
  /* Thumbnail */
.video-card .thumb {
  width: 100%; /* fixed width for thumbnail */
  border-radius: 0px !important;
}

/* Make video & image fit thumbnail */
.video-card .thumb img,
.video-card .thumb video {
  width: 100%;
  height: 100%; /* adjust height as needed */
  object-fit: cover;
}



/* ==== Remove click highlight / blue outline like YouTube ==== */
.video-card .thumb,
.thumb.video-thumb-wrapper img,
.thumb.video-thumb-wrapper video * {
  -webkit-tap-highlight-color: transparent; /* removes blue on mobile */
  outline: none !important;                 /* removes focus outline */
}


.video-thumb-wrapper video {
    display: none !important;
  }
  .video-thumb-wrapper img {
    display: block !important;
    opacity: 1 !important;
  }

  
  .video-title { 
      padding:8px; 
      margin-top: 5px !important;
      font-size: 18px !important;
      color: #000 !important;
      
  }
  
  
  .more-videos .video-card { 
      flex-direction: column; 
      gap:0px;  
      
  }
  .more-videos .video-card .thumb img { 
      width:100%; 
      height:auto;  
      border-radius: 0 !important;
      
  }

  .info { 
      width:100%;
      padding: 8px; 
      margin-bottom: -5px !important;
  }
  
.title,
.title-wrapper h3 {
      font-size: 16px !important;
      
  }
  .meta {
      font-size: 14px !important;
   } 
   
   .video-more {
    background: none !important;
  border: none;
  font-size: 18px; /* slightly smaller */
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #606060 !important;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
   }
  .popup-menu {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    border-radius: 16px;
    max-width: 90%;
  }
  
  
  .mpopup-menu {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    border-radius: 16px;
    max-width: 90%;
  }
  
  
.mix-header {
  background: #f1f2f3;
}
  
  .seek-preview {
  bottom: 40px; /* distance above progress */
}
  
  
}



/* ========== Small Mobile Query ========== */
@media (max-width: 480px) {
   .player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0 !important;
  }

  .player video {
    object-fit: contain;
  }
  /* Controls (same as before) */
.controls {
  z-index: 49 !important; /* make sure above video layer */
}

  
}

    
    
    
    
    
    
    
    
/* ======================= Remove Blue Highlight / Outline ======================= */

/* Remove tap highlight on all elements (mobile) */
*,
*:before,
*:after {
  -webkit-tap-highlight-color: transparent; /* iOS Safari */
  -webkit-touch-callout: none;              /* prevent callout on long tap */
  -webkit-user-select: none;                /* prevent text selection */
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none !important;                 /* remove focus outline */
}

/* Remove focus outline when clicking */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Remove active background highlight on mobile */
button:active,
a:active,
.video-card:active,
.video-thumb-wrapper:active,
.material-icons:active {
  background: transparent !important;
  color: inherit !important;
  -webkit-tap-highlight-color: transparent !important;
}




.video-card,
.video-thumb-wrapper,
.button,
.material-icons,
.action-btn {
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
}




input, textarea {
    user-select: text !important;
}



    