body{
  background-color: #0f0f0f;
  color: #e9e9e9;
}


/* #region === Desktop Layout === */
@media(min-width: 1025px){
   /* #region === structure === */
  .video-grid{
      column-count: 4;
      column-gap: 10px;
      gap:30px;
      margin-top: 50px;
      padding: 50px;
  }
  
  .video-package{
      display: flex;
      flex-direction: column;
      margin-bottom: 25px;
      break-inside: avoid;
  }
  
  .video-card{
      display: flex;
      break-inside: avoid;
      text-align: center;
      background-color: #0f0f0f;
      border-radius: 10px;
      overflow: hidden;
      align-content: center;
      cursor:pointer;
      transition: transform 0.2s ease; /* Smooth transition */
  }

  .video-card:hover {
    transform: scale(1.03); /* Slight scale-up on hover */
  }
  
  .video-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .landscape{
      aspect-ratio: 16/9;
  }
  
  .portrait{
      aspect-ratio: 9/16;
  }
  
  .four-five{
      aspect-ratio: 4/5;
  }
  
  .square{
      aspect-ratio: 1/1;
  }
  
  
  .desc-box{
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      align-content: center;
      gap: 20px;
      padding: 5px;
      overflow: hidden;
      margin-top: 8px;
  }

  .desc{
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex-shrink: 1; 
  }

  .live-img{
      display: flex;
      flex-direction: row;
      gap:5px;
      align-items: center;
      align-content: center;
  }

  .live-img img{
      width: 25px;
      height: 25px;
  }
  
  .line{
      background-color: #e9e9e9;
      width: 270px;
      height: 2px;
  }
  /* #endregion */

  /* #region === Video Overlay === */
    #video-frame-overlay {
      position: fixed;
      inset: 0;
      background-color: rgba(0, 0, 0, 0.85);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      pointer-events: auto;
  }

  .hidden {
      display: none !important;
  }

  .video-wrapper {
    position: relative;
    width: 90vw;
    height: 90vh;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #video-frame {
      width: 100%;
      height: 100%;
      border: none;
      border-radius: 10px;
      pointer-events: auto;
      z-index: 1002;
      display: block;
      object-fit: contain;
  }

  #close-btn {
      position: absolute;
      background: rgba(0, 0, 0, 0.4);  /* 20% black */
      position: absolute;
      top: -40px;
      right: 0;
      font-size: 24px;
      border: none;
      color: white;
      cursor: pointer;
  }
  #back-btn {
      background: rgba(0, 0, 0, 0.4);  /* 20% black */
      border-radius: 50%;
      border:none;
      position: absolute;
      padding: 12px;
      left:0;
      top:50%;
      transform: translateY(-50%); /* shift up to center vertically */
      z-index: 1010;
      cursor: pointer;
  }
  /* #endregion */

    /* #region === Nav-bar === */

    .nav-bar{
      margin-top: 60px;
      display: flex;
      overflow-x: auto;
      white-space: nowrap;
      background-color: #0f0f0f;
      padding: 10px 0;
      position: sticky;
      z-index: 1000;
      justify-content: center;
      align-items: center;
      gap:50px;
    }

    .home-icon {
      width: 24px; /* Adjust as needed */
      height: 24px;
      padding: 5px;
      margin-right: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      place-content: center;
    }


    .home-icon img{
      width: 26px;
      height: 26px;
      display: block;
    }

    .tab {
      text-decoration: none;
      color: #ccc;
      font-size: 20px;
      margin: 0 12px;
      padding: 6px 4px;
      font-family: 'Inter', sans-serif;
      font-weight: 500;
      white-space: nowrap;
      border-bottom: 2px solid transparent;
    }
    
    .tab.active {
      color: white;
      font-size: 20px;
      margin: 0 12px;
      padding: 6px 4px;
      font-family: 'Inter', sans-serif;
      font-weight: 500;
      border-bottom: 2px solid white;
      text-decoration: none;
    }
  
  /* #endregion */
}
/* #endregion */



/* #region === Mobile Layout === */
@media (max-width: 1024px){
  /* #region === structure === */
      .video-grid{
        column-count: 2;
        column-gap: 10px;
        gap:10px;
        margin-top: 20px;
        padding: 5px;
      }

    .video-package{
        display: flex;
        flex-direction: column;
        margin-bottom: 18px;
        break-inside: avoid;
    }

    .video-card{
        display: flex;
        break-inside: avoid;
        text-align: center;
        background-color: #0f0f0f;
        border-radius: 10px;
        overflow: hidden;
        align-content: center;
        justify-content: center;
    }

    .video-card img{
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }


    .landscape{
        aspect-ratio: 16/9;
    }

    .portrait{
        aspect-ratio: 9/16;
    }

    .four-five{
        aspect-ratio: 4/5;
    }

    .square{
        aspect-ratio: 1/1;
    }


    .desc-box{
        display: flex;
        flex-direction: column;
        align-items:start;
        justify-content: space-between;
        align-content: center;
        gap: 10px;
        padding: 5px;
        overflow: hidden;
        margin-top: 10px;
    }

    .desc{
        /* white-space: nowrap; */
        overflow:hidden;
        text-overflow: ellipsis;
        /* flex-shrink: 1;  */
    }

    .live-img{
        display: flex;
        flex-direction: row;
        gap:3px;
        
    }

    .live-img img{
        width: 15px;
        height: 15px;
    }

    .line{
        background-color: #e9e9e9;
        width: 270px;
        height: 2px;
    }
  /* #endregion */

  /* #region === Video Overlay === */
    #video-frame-overlay {
      position: fixed;
      inset: 0;
      background-color: rgba(0, 0, 0, 0.85);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      pointer-events: auto;
  }

  .hidden {
      display: none !important;
  }

  .video-wrapper {
    position: relative;
    width: 90vw;
    max-width: 90vw;
    height: 80vh;
    max-height: 90vh;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #video-frame {
      width: 100%;
      height: 100%;
      border: none;
      border-radius: 10px;
      pointer-events: auto;
      z-index: 1002;
      display: block;
      object-fit: contain;
  }

  #close-btn {
      position: absolute;
      background: rgba(0, 0, 0, 0.4);  /* 20% black */
      border-radius: 50%;
      top: -25px;
      right: 0;
      font-size: 24px;
      border: none;
      color: white;
      cursor: pointer;
      z-index: 1010;
  }

  #back-btn {
    
    background: rgba(0, 0, 0, 0.4);  /* 20% black */
    border-radius: 50%;
    border:none;
    padding: 8px;
    position: absolute;
    left:0;
    margin-left: -5px;
    top:50%;
    transform: translateY(-50%); /* shift up to center vertically */
    z-index: 1010;
    cursor: pointer;
}

#back-btn img{
  width: 30px;
    height: 30px;
}

  /* #endregion */

  /* #region === Nav-bar === */

    .nav-bar{
      margin-top: 20px;
      display: flex;
      overflow-x: auto;
      white-space: nowrap;
      background-color: #0f0f0f;
      padding: 10px 0;
      position: sticky;
      z-index: 1000;
      justify-content: center;
      align-items: center;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbar in WebKit browsers */
    .nav-bar::-webkit-scrollbar {
      display: none;
      }

      .nav-bar::before {
        left: 0;
        background: linear-gradient(to right, #0f0f0f 50%, transparent);
      }
      
      .nav-bar::after {
        right: 0;
        background: linear-gradient(to left, #0f0f0f 50%, transparent);
      }

    .home-icon {
      margin-left: 30px;
      width: 24px; /* Adjust as needed */
      height: 24px;
      padding: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      place-content: center;
    }


    .home-icon img{
      width: 20px;
      height: 20px;
      display: block;
    }

    .tab {
      text-decoration: none;
      color: #ccc;
      font-size: 16px;
      margin: 0 12px;
      padding: 6px 4px;
      font-family: 'Inter', sans-serif;
      font-weight: 500;
      white-space: nowrap;
      border-bottom: 2px solid transparent;
    }
    
    .tab.active {
      color: white;
      font-size: 16px;
      margin: 0 12px;
      padding: 6px 4px;
      font-family: 'Inter', sans-serif;
      font-weight: 500;
      border-bottom: 2px solid white;
      text-decoration: none;
    }
  
  /* #endregion */
}
/* #endregion */







