:root {
  --vh: 100vh;
}

   
    * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: Arial, sans-serif;
  overflow-x: hidden;      /* horizontal scroll disabled */
  overflow-y: auto; 
  height: var(--vh);

}





/* ✅ Center only the shorts player, not the entire page */
.shorts-page {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
 height: var(--vh);

  
}


/* === Shorts Container (Row layout like YouTube Shorts) === */
.shorts-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  height: var(--vh);
  width: 100%;
  position: relative;
}

/* Video area (left) */
.shorts-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: var(--vh);

  overflow: hidden;
  border-radius: 0px;
}


/* === Short Player Box === */
.shorts-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.short-box {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}




.video-slide {
  position: absolute;
  inset: 0;
  pointer-events: none; 
}

.video-slide video {
  width: 100%;
  height: var(--vh);

  object-fit: cover;
  display: block;
   pointer-events: auto;
}


.volume-wrapper:hover .volume-slider {
  display: block;
}


.controls-top,
.volume-wrapper,
.more-options-btn {
  transition: transform 0.4s ease; /* smooth slide with video */
}



/* === Controls (Top Left) === */
.controls-top {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 15;
}

.control-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.control-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.control-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.volume-btn {
    background: none !important;
}

.volume-btn:hover {
  background: none !important;
}


/* Volume wrapper hidden slider (future-ready) */
.volume-wrapper {
  position: absolute;
  top: 12px;
  left: 70px; /* next to play/pause */
  display: flex;
  align-items: center;
  z-index: 15;
   border-radius: 99px;
  background: rgba(0, 0, 0, 0.6);
}

/* Top Right More Options Button */
.more-options-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 15;
}

.more-options-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.more-options-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}


.volume-slider {
  display: none;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  width: 80px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin-left: 4px;
  margin-right: 8px;
  cursor: pointer;
}









/* === Video Info === */
.video-info {
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  color: #fff;
  padding: 0 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  z-index: 5;
   pointer-events: none;
}

.video-title {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 10px;
  width: 90%;
   pointer-events: none; 
}

.read-more {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 60;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0),
    rgba(0,0,0,0.8)
  );
   pointer-events: auto !important;
   
}





.progress-bar {
  position: relative;
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: visible;
   pointer-events: auto; /* ✅ CRITICAL: Make progress bar clickable */
  cursor: pointer; 
}

.progress {
  height: 100%;
  width: 0%;
  background: #4285F4;
}

.progress-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px !important;
  height: 12px !important;
  border-radius: 50%;
  background: #4285F4; /* red dot like YouTube */
  pointer-events: none;
  opacity: 1; /* hidden by default */
  transition: opacity 0.2s;
  cursor: pointer;
  z-index: 50;
}

.progress-bar:hover .progress-handle {
  opacity: 1; /* show on hover */
}


/* === Seek Preview === */
.seek-preview {
  position: absolute;
  bottom: 100px; /* distance above progress bar */
  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;
}



/* Play/Pause center icon */
.center-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; /* don't block clicks */
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 75px;
  height: 75px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
}

.center-play-icon svg {
  width: 100%;
  height: 100%;
  fill: rgba(255, 255, 255, 0.9);
}

.center-play-icon.show {
  opacity: 1;
}






/* === Actions PC (right column) === */
.actions {
  position: absolute;
  right: 12px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  z-index: 10;
   pointer-events: none;
}

.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
   pointer-events: auto;
}

.action svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke-width: 2;
  stroke: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  padding: 8px;
  transition: 0.2s;
}

.action:hover svg {
  background: rgba(0, 0, 0, 0.8);
}

.action span {
  font-size: 12px;
  margin-top: 6px;
  color: #fff;
  font-weight: 500;
  text-align: center;
  width: 100%;
}
.like-btn.liked svg {
  fill: #fff;
}


.dislike-btn.disliked svg {
  fill: #fff;
}




.double-like-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9;
}

.double-like-icon svg {
  width: 90px;
  height: 90px;
  fill: #fff;
  filter: drop-shadow(0 6px 15px rgba(0,0,0,.4));
}

.double-like-icon.show {
  opacity: 1;
  transform: scale(1);
}






/* === Arrow Buttons === */
.shorts-arrow {
  position: absolute;
  right: 40px;
  background: #f1f2f3;
  border-radius: 50%;
  border: solid 0.9px #e0e0e0;
  padding: 6px 10px;
  cursor: pointer;
  user-select: none;
  display: none;
  z-index: 20;
  transition: 0.2s;
}

.shorts-arrow svg {
  width: 34px;
  height: 34px;
  fill: #333;
}

.shorts-arrow:hover {
  background: #d6d9dc;
}

.shorts-arrow-up {
  top: 40%;
}

.shorts-arrow-down {
  bottom: 40%;
}


#arrowUp,
#arrowDown {
  transition: opacity 0.2s ease;
}




/* ===== Shorts Loader (YouTube / TikTok style) ===== */
.short-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100; /* higher than videos */
  background: none !important; /* optional subtle overlay */
  opacity: 1;
  transition: opacity 0.25s ease;
  
   pointer-events: none; 
}

.short-loader.hidden {
  opacity: 0;
  pointer-events: none !important;
}


/* Spinner */
.spinner {
  width: 75px;
  height: 75px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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


.actions,
.actions-mobile {
  transition: transform 0.4s ease;
}



.link,
.hashtag-link,
.row-hashtag {
    cursor: pointer;
    color: #4285F4 !important;        /* your preferred color */
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none;
    margin-left: 5px;
    gap: 3px;
}

.link:hover,
.hashtag-link:hover,
.row-hashtag:hover {
    text-decoration: underline;
}


.open-desc-btn {
  background: none;
  border: none;
  color: #606060;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}


.overlay {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.4);
  display:none;
  z-index: 9999;
}

.desc-popup {
  position: fixed;
  bottom: -100%;
  left: 50%;                 /* Move left edge to center */
  transform: translateX(-50%); /* Shift left by 50% of its own width */
  width: 90%;                /* optional, or fixed px like 450px */
  max-width: 450px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 8px 8px 8px 8px;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.2);
  transition: bottom .35s ease;
  z-index: 10000;
  max-height: 60vh;
  overflow-y: auto;
  pointer-events: auto !important;
  display: block;
  justify-content: center;
}



.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;
}

/* Stats Row */
.stats-row {
  display:flex;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 8px;
}

.stat-box {
  background: #F2F3F5;
  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: #E8ECF3;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #333;
  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; 
  margin-bottom:24px;
  background: #f2f2f2;
  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;
}











/* ===== Comments Popup Short Player ===== */
.comment-list, .scrollable {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* smooth momentum scroll on iOS */
  touch-action: pan-y; /* allow vertical scrolling */
  pointer-events: auto !important;
}



/* Overlay */
.comments-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    z-index: 999;
}

/* Popup Box */
.comments-popup {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 450px;
    width: 100%;
    height: 70vh; /* popup height */
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0px -4px 20px rgba(0,0,0,.2);
    transition: bottom 0.3s ease;
    z-index: 1000;
    overflow: hidden; /* prevent content from spilling */
    pointer-events: auto !important;
    padding: 0; /* handled by header/list/input */
}

.comments-header-wrapper {
    flex-shrink: 0; /* do not shrink */
    position: sticky;
    top: 0; /* stick to top */
    background: #fff;
    z-index: 10;
}

/* Drag Handle */
.comments-drag-handle {
     width: 45px;
  height: 5px;
  margin-top: 5px !important;
  background: #ccc;
  border-radius: 5px;
  padding: 0;
  margin: 0 auto 0;
}

/* Header */
.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px;
}

.comments-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.comments-title {
    font-size: 18px;
    font-weight: 600;
}

.comments-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.comments-sort svg {
    display: block;
}

.comments-close {
    font-size: 28px;
    cursor: pointer;
}



/* 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;
}


.short-menu-btn.active {
    background-color: #f1f2f3; /* light blue like YouTube */
}
.short-menu-btn.active strong {
    color: black; /* dark blue text */
}


/* Comments List */
.comments-list {
    flex: 1 1 auto; /* take remaining space between header and input */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 8px;
    margin: 0;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 38px;
    height: 38px;
    background: none;
    border-radius: 50%;
}
.avatar img {
    width: 38px;
    height: 38px;
    background: none;
    border-radius: 50%;
}


.comment-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
    
/* Username row with 3-dots */

.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 !important;
    font-weight: 700 !important;
    color: #555 !important; /* make username darker */
}

.comment-header-row .comment-time {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #555 !important; /* lighter for time ago */
}


.comment-menu-wrapper {
  position: relative; /* 🔑 anchor point */
}

/* ========== Overlay ========== */


/* ===== Three-Dot Menu ===== */
.comment-more {
    cursor: pointer;
    background: none;
     padding: 8px 12px !important;
}
.comment-more:hover {
    background: #f1f2f3;
    border-radius: 50% !important;
}

.comment-more svg {
    width: 20px;
    height: 20px;
    cursor: pointer;
    fill: #555;
}
.comment-more svg:hover {
    fill: #000;
}
.comment-more {
    cursor: pointer;
    padding: 4px;
}


.cmenu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  display: none;
  z-index: 15000;
}


.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-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: 6px;
    cursor: pointer;
    padding: 8px;
    font-size: 14px;
    border-radius: 99px;
    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: 14px;
    height: 14px;
    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 .comment-like.active svg,
.comment-actions .comment-dislike.active svg {
    stroke: #4285F4;      /* Google blue like YouTube */
    fill: #4285F4;        /* fill blue when active */
}

.comment-actions .comment-like.active,
.comment-actions .comment-dislike.active {
    color: #4285F4;       /* text color on active */
}

    
/* ========== Overlay ========== */
.cmenu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  display: none;
  z-index: 15000;
}

/* ========== Popup Menu (desktop default) ========== */
.cmenu-box {
   position: absolute; 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;
  
}

/* ========== MOBILE CENTER MODE ========== */
.cmenu-box.cmenu-mobile {
     position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;

    width: 280px; /* adjust size */
    border-radius: 14px;
    display: block;

    background: #fff;
    padding: 10px 0;

}
/* Rounded hover for mobile popup menu items */
.cmenu-box.cmenu-mobile li:hover {
    border-radius: 8px;
}

.cmenu-box.cmenu-mobile li {
    width: 100%;
    text-align: left;
}

/* List */
.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: #f2f2f2;
}
    
    /* ===== Comment Input (YouTube Style) ===== */


.comments-input-wrapper {
    position: relative !important; /* normal flow */
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border-top: 1px solid #ddd;
    background: #fff;
    z-index: 10; /* just in case */
}

.comments-input-wrapper .avatar {
    width: 36px;
    height: 36px;
    background: none;
    border-radius: 50%;
    flex-shrink: 0;
}

.comments-input-wrapper textarea {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4; /* nicer spacing for paragraphs */
    overflow-y: auto;
    min-height: 25px; /* same as avatar */
    max-height: 100px; /* optional, limits very tall comments */
    resize: none;
}

.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: #ccc;
    cursor: default;
    color: black;
}

.comments-input-wrapper button:hover:not(:disabled) {
    background: #306acb;
}
  
/* Replies layout inside popup (YouTube style) */
.reply-wrapper .comment-item {
    margin-left: 10px !important;
    margin-top: 12px;
}
 
/* ===== 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;
}


.reply-toggle,
.comment-actions {
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
}











  /* share popup short page */
     
    .share-popup-short {
  background: #fff;
  max-width: 450px;
  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;
}



    .share-icons-wrapper {
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .share-icons-wrapper h3 {
      margin: 0 0 15px 0;
      font-size: 16px;
      font-weight: 400;
      color: #000;
    }

    .scroll-btnbtn {
      position: absolute;
      top: 50px;
      background: #fff;
      border: none;
      font-size: 20px;
      cursor: pointer;
      width: 38px;
      height: 38px;
      color: #333;
      border-radius: 50%;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: all 0.25s ease;
    }

    .scroll-btnbtn:hover {
      background: #f1f1f1;
      transform: scale(1.05);
    }

    .left-btnbtn {
      left: 0;
     
    }

    .right-btnbtn {
      right: 0;
    }

    .share-icons {
      display: flex;
      gap: 12px;
      overflow-x: auto;
      scrollbar-width: none;
      scroll-behavior: smooth;
      padding: 5px 0px;
      position: relative;
    }

    .share-icons::-webkit-scrollbar {
      display: none;
    }

    .share-icon {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
      min-width: 65px;
      text-align: center;
      user-select: none;
    }

    .share-icon img {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: #f5f5f5;
      padding: 6px;
      transition: transform 0.2s ease;
    }

    .share-icon:hover img {
      transform: scale(1.08);
    }

    .share-icon span {
      font-size: 12px;
      margin-top: 6px;
      color: #333;
    }

    .share-link-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border: 1px solid #ddd;
      border-radius: 10px;
      padding: 8px;
      margin: 0 1px 16px;
      margin-top: 30px;
    }

    .share-link-box input {
      border: none;
      outline: none;
      width: 80%;
      font-size: 14px;
    }

    .copy-btn {
      background-color: #065fd4;
      color: white;
      border: none;
      padding: 8px 14px;
      border-radius: 20px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
    }




 /* shorts Tab 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: 250px;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

 


    
/* ===== shorts tab popup menu ===== */
.shorts-box-uniq {
  position: absolute;
  display: none;
  background: #fff;
  color: #000;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  z-index: 9999; /* ABOVE overlay */
  padding: 4px 0;
  min-width: 180px;
  max-width: 240px;
  overflow-y: auto;
  font-family: Arial, sans-serif;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: auto;
  z-index: 10000;
}

.shorts-box-uniq::-webkit-scrollbar {
  width: 6px;
}
.shorts-box-uniq::-webkit-scrollbar-thumb {
  background: rgba(170,170,170,0.6);
  border-radius: 10px;
}
.shorts-box-uniq::-webkit-scrollbar-thumb:hover {
  background: rgba(120,120,120,0.8);
}

.shorts-box-uniq ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.shorts-box-uniq 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;
}
.shorts-box-uniq li:hover {
  background-color: #f8f8f8;
}
.shorts-box-uniq .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #606060;
}
.shorts-box-uniq .icon svg {
  width: 20px;
  height: 20px;
  fill: #606060;
  transition: fill 0.15s ease;
}
.shorts-box-uniq li:hover .icon svg {
  fill: #000;
}




@media (min-width: 1025px) {
  .shorts-arrow {
    display: block;
  }
}



/* ===== Mobile: show only thumbnail ===== */
@media (max-width: 823px) {
    .shorts-wrapper {
  width: 100%;
height: var(--vh);

  border-radius: 0px;
}
    .controls-top {
  display: none;
}


.volume-wrapper {
    display: none;
}


.shorts-arrow {
    display: none !important;
  }
  
  
  
  /* Action bar (right column) */
.actions {
  position: relative;
  height: var(--vh);

  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-end !important; /* keeps bar on the right */
  justify-content: flex-end; 
  z-index: 10;
  bottom: 25px !important;
  right: 12px;
}

/* Each action */
.action {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 🔥 CENTER icon + text */
  cursor: pointer;
}

/* Icon */
.action svg {
  width: 42px;
  height: 42px;
    fill: none;
  stroke-width: 2;
  stroke: #fff;
   background: none;
    border: none;
  border-radius: none;
  padding: 8px;
  transition: 0.2s;
}

/* Hover */
.action:hover svg {
  background: none;
  color: none;
}

/* Label */
.action span {
  font-size: 12px;
  margin-top: 6px;
  color: #fff;
  font-weight: 500;
  text-align: center;   /* 🔥 important */
  width: 100%;          /* ensures perfect centering */
}
  
  
  /* Popup Box */
.comments-popup {
    max-width: 100%;
    width: 100%;
}


.desc-popup {
  max-width: 100% !important;      
  width: 100%;
   pointer-events: auto !important;
}





.video-title {
  width: 90%;
}

/* Top Right More Options Button */
.more-options-btn {
  background: none;
}

.more-options-btn:hover {
  background: none;
}

.shorts-box-uniq {
    width: 400px;
    padding: 8px 0;
    border-radius: 16px;
  }
  .share-popup-short {
      max-width: 460px;
      width: 95% !important;
      padding: 15px;
    }
  
}


/* ===== Mobile: show only thumbnail ===== */
@media (max-width: 650px) {
    .shorts-wrapper {
  width: 100%;
  max-width:  100%;
height: var(--vh);
  border-radius: 0px;
}
}
