/* Livestream popup container — we no longer force a strict aspect ratio since header is extra */
#livestream-popup {
    position: fixed;
    top: 380px;
    left: 50px;
    width: 350px;
    /* aspect-ratio removed */
    background-color: rgba(33, 33, 33, 0.8);
    border: 2px solid #53fc18;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 0 20px #3ad305;
  }
  
  /* Header styling for dragging */
  #livestream-header {
    background: #16a34a;
    color: black;
    padding: 5px 10px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    text-shadow: #16a34a;
    user-select: none;
  }
  
  /* Iframe styling — this will be our 16:9 embed area */
  iframe {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    overflow: hidden !important;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
  }
  iframe::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  /* Close button styling */
  #close-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
  }
  
  /* Toggle button styling */
/* Updated Toggle Button styling */
#toggle-button-stream {
    display: none; /* Will be shown when popup is hidden */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: black; /* Black circular box */
    border: none;
    cursor: pointer;
    z-index: 9999;
    padding: 10px;
    width: 60px; /* Adjust as needed */
    height: 60px; /* Adjust as needed */
    border-radius: 50%; /* Makes it a circle */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px #3ad305; /* Optional shadow for depth */
}

/* Ensure the image fits properly inside the circular button */
#toggle-button img {
    width: 40px; /* Adjust as needed */
    height: auto;
    display: block;
}

/* Optional: Hover effect */
#toggle-button:hover {
    background: #000000; /* Slightly lighter black when hovered */
}
  
  /* Custom resize handle styling */
  #resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: se-resize;
    background: transparent;
  }
  

