/* ========== COMMON STYLES ========== */

#fullscreenOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  color: white;
  overflow: hidden;
}


.thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
}
.thumb {
  position: relative;
  width: 20%;
  overflow: hidden;
  background: black;
  aspect-ratio: 9/13;
}
.thumb img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  position: absolute;
  top: -11.5%;
}
.thumb .loading {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 3px;
}


#fullscreenOverlay .container-fluid {
  height: 100vh;
  display: flex;
  padding: 0;
}

#videoColumn {
  flex-grow: 1;
  flex-shrink: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
  position: relative;
}

#videoWrapper {
  position: relative;
  width: auto;
  height: 100vh;
  aspect-ratio: 9 / 16;
}

#videoWrapper iframe,
#videoWrapper div {
  width: 100%;
  height: 100%;
}

#commentsColumn {
  flex-shrink: 0;
  flex-grow: 0;
  background-color: #000;
  overflow: hidden;
}
@media screen and (min-width: 50px)and (max-width: 600px){
  #commentsColumn {
    max-width: 100vw;
  }
}
@media screen and (min-width: 600px)and (max-width: 1000px){
  #commentsColumn {
    width: 50%;
  }
}
@media screen and (min-width: 1000px)and (max-width: 10000px){
  #commentsColumn {
    width: 30%;
  }
}

#tiktokNavBtns {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10000;
}

.tiktok-nav-btn {
  background-color: transparent;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  text-align: center;
  padding: 0;
}

/* Comment button – only on mobile */
#commentBtn {
  display: none;
  position: absolute;
  bottom: 100px;
  right: 25px;
  background-color: transparent;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
}

#likestatustogglesmall,#likestatustogglesmallnonauth {
  display: none;
  position: absolute;
  bottom: 150px;
  right: 25px;
  background-color: transparent;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
}

/* Close Button (desktop) */
#closeBtn {
  position: absolute;
  top: 20px;
  left: 20px;
  /* background-color: transparent;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer; */
  z-index: 10000;
}

/* Back button inside comments (mobile) */
#commentsColumn .back-btn {
  display: none;
}




@media (max-width: 768px) {
  #profileimagecomment{
    margin-left: 55px;
}
}

/* ========== MOBILE ONLY ========== */
@media (max-width: 768px) {
  #fullscreenOverlay,
  #fullscreenOverlay .container-fluid {
    flex-direction: column;
  }

  #videoColumn {
    width: 100%;
    height: 100vh;
    flex: none;
    position: relative;
  }

  #commentsColumn {
    display: none; /* Default hidden */
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 99999;
    background-color: black;
    flex-direction: column;
  }

  #commentsColumn.active {
    display: flex !important;
  }

  #commentBtn {
    display: block;
  }
   #likestatustogglesmall,#likestatustogglesmallnonauth {
    display: block;
  }

  #tiktokNavBtns {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 20px;
    z-index: 10000;
  }

  #closeBtn {
    font-size: 28px;
    top: 16px;
    left: 16px;
    z-index: 10001;
  }

  #commentsColumn .back-btn {
    display: block;
    position: absolute;
    top: 16px;
    left: 0px;
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    z-index: 10001;
  }

  #commentsColumn .position-sticky {
    position: fixed !important;
    bottom: 0;
    width: 100%;
  }

  #commentsColumn .comments-list {
    margin-top: 60px;
    padding-bottom: 100px;
  }
}
