/* ---- SHARE BUTTON ---- */
.share-wrap{
  position:relative;
  display:inline-block;
}

/* BUTTON HIDDEN UNTIL HOVER */
.share-btn{
  opacity:0;
  visibility:hidden;
  transition:0.2s;
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(0,0,0,0.5);
  color:#fff;
  border:1px solid rgba(255,255,255,0.2);
  cursor:pointer;
  font-size:12px;
  backdrop-filter:blur(6px);
}

/* SHOW ON HOVER */
.thumbnail-wrapper:hover .share-btn{
  opacity:1;
  visibility:visible;
}

/* POPUP */
.share-popup{
  display:none;
  position:absolute;
  bottom:110%;
  right:0;
  width:200px;
  background:#1c1c1c;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,0.5);
  z-index:9999;
}

/* ITEMS */
.share-popup a,
.share-popup button{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:10px 12px;
  font-size:13px;
  color:#fff;
  background:none;
  border:none;
  text-align:left;
  cursor:pointer;
  text-decoration:none;
}

.share-popup a:hover,
.share-popup button:hover{
  background:#2a2a2a;
}

/* ICON STYLE */
.icon{
  width:26px;
  height:26px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

/* ---- VIDEO PLAYER POPUP ---- */
#ytVideoPlayerPopup {
    width: 100vw;
    height: 100vh;
    padding: 20px;
    background: rgba(0, 0, 0, .8);
    border: none;
}

#ytVideoPlayerPopup .yt-popup-close {
    position: absolute;
    right: 20px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background: transparent;
    border: 1px solid white;
    border-radius: 50%;
    cursor: pointer;
}

#ytVideoPlayerPopup .yt-popup-inner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
}

#ytVideoPlayerPopup :is(.yt-video-wrap, iframe) {width: 100%; height: 100%;}