/* Enhanced Video Player for TikTok-style Portrait Videos */
#blogs .video-player-container {
    position: relative;
    margin: 0 auto 2rem;
    max-width: 500px; /* Limit width for portrait videos */
  }
  
  #blogs .videoContainer {
    position: relative;
    aspect-ratio: 9/16; /* TikTok portrait aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }
  
  #blogs video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
  
  /* Custom Play Button - Centered in portrait layout */
  #blogs .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #ff5757 100%);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(232, 0, 39, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #blogs .play-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 8px 20px rgba(232, 0, 39, 0.7);
  }
  
  #blogs .play-btn.pulse-play {
    animation: pulse-video 2s infinite;
  }
  
  @keyframes pulse-video {
    0% {
      box-shadow: 0 0 0 0 rgba(232, 0, 39, 0.7);
    }
    70% {
      box-shadow: 0 0 0 15px rgba(232, 0, 39, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(232, 0, 39, 0);
    }
  }
  
  #blogs .play-arrow img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    margin-left: 3px; /* Slight offset for play icon */
  }
  
  /* Video Poster and Overlay */
  #blogs .video-poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
                rgba(0,0,0,0.3) 0%, 
                rgba(0,0,0,0) 40%,
                rgba(0,0,0,0) 60%,
                rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    border-radius: 12px;
  }
  
  /* Loading Indicator */
  #blogs .video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    display: none;
    z-index: 9;
  }
  
  #blogs .video-loading.active {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #blogs .video-loading .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--color-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* TikTok-style Exit Fullscreen Button - Positioned at top */
  #blogs .exit-fullscreen {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: auto;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    display: none;
    z-index: 20000;
   box-sizing: border-box;
  
    transition: opacity 0.3s ease;
  }
  
  #blogs .videoContainer:hover .exit-fullscreen {
    opacity: 0.9;
  }
  
  /* Video Caption */
  #blogs .video-caption {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
  }
  
  /* Fullscreen Mode for Portrait Videos */
  .video-fullscreen {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: 90vh !important;
    max-width: none !important;
    z-index: 9999 !important;
    object-fit: contain !important;
  }
  
  .video-container-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.9) !important;
    z-index: 9998 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    aspect-ratio: unset !important;
  }
  
  /* Media queries for responsive design */
  @media (max-width: 768px) {
    #blogs .video-player-container {
      max-width: 90%;
    }
  }
  
  @media (max-width: 480px) {
    #blogs .play-btn {
      width: 50px;
      height: 50px;
    }
    
    #blogs .play-arrow img {
      width: 18px;
      height: 18px;
    }
  }