/* Mini video góc phải */
/* Dành cho Shorts (video dọc) */
#mini-video-wrapper {
    position: fixed;
    top: 15vh;
    right: 20px;
    width: 28vh;
    height: 50vh;
    z-index: 9998;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
}
#mini-video-wrapper.shorts-video {
    width: 28vh;
    height: 50vh;
  }
  
  /* Dành cho video thường (video ngang) */
  #mini-video-wrapper.normal-video {
    width: 40vh;
    height: 40.5vh; /* Tỉ lệ 16:9 => 40:22.5 */
  }
  
  /* Mobile tối ưu */
  @media screen and (max-width: 767px) {
    #mini-video-wrapper.shorts-video {
        width: 34vw;
        height: 80vw;
   
        right: 10px;
        top: 190px;
    }
  
    #mini-video-wrapper.normal-video {
      width: 40vw;
      height: 40.5vw;
      bottom: 10vh;
      right: 10px;
      top: auto;
    }
  }
  
  
  
  #mini-video {
    width: 100%;
    height: 100%;
    border: none;
  }
  
  /* Popup fullscreen */
  #video-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
  }
  
  .popup-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
  }
  
  #popup-video-container iframe {
    width: 100vw;
    height: 100vh;
    border: none;
  }
  
  #close-popup-btn {
    position: absolute;
    top: 10vh;
    right: 10px;
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
  }
  

/* Nút đóng để ẩn video */
#close-video-btn {
    position: absolute;
    top: 5px;
    left: 3px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 5px;
    font-size: 9px;
    border-radius: 50%;
    cursor: pointer;
 
  }
  
  #close-video-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  #expand-video-btn {
    position: absolute;
    bottom: -7px;
    background-color: rgba(255, 255, 255, 0.6);
    color: black;
    border: none;
    padding: 5px;
    font-size: 9px;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
    left: 0px;
  }
  
  #expand-video-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
  }
  #mini-video-wrapper.yotube_fullscreen {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    z-index: 99999 !important;
    background-color: black;
    cursor: default;
}
.d-none {
    display: none !important;
}