/* style.css (Main Page) - Updated styling  */
/* ... (Your existing CSS from style.css - keep everything else) ... */

.video-card {
    position: relative; /*  For absolute positioning of the video frame */
    overflow: hidden;  /* Ensures the frame doesn't overflow */
}

.video-card:hover .video-frame {
    opacity: 1;   /* Show frame on Hover */
}

  .video-frame { /* Frame that appears when hovering over */
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height:100%;
       object-fit: cover;
       opacity: 0; /* Hidden by default */
       transition: opacity 0.3s ease;
       border-radius: 8px;
  }

/* Pagination Styles */
.pagination {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px; /* Added space below pagination */
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: #f00060;
}


.next-page-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f00060;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.next-page-button:hover {
    background-color: #d80a59; /* Darker pink on hover */
}

/* Responsive Design */
@media (max-width: 768px) { /* Example: Adjust for smaller screens */
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust column width */
    }
}

/* Even More Responsive  */
@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: repeat(1, 1fr); /* One column on very small screens */
    }
    .pagination a {
        padding: 8px 12px;   /* Smaller pagination buttons */
        margin: 0 3px;
    }
     .next-page-button {
        padding: 8px 16px;  /* Smaller next button */
    }
}

/* Hide menu by default on mobile */
.mobile-hidden {
display: none;
}

/* Show menu when active */
.mobile-hidden.active {
display: block;
}

/* Style for the toggle button */
.menu-toggle {
display: block;
cursor: pointer;
font-size: 50px;
padding: 0px;
background-color:rgb(0, 0, 0);
color: white;
border: none;
outline: none;

position: absolute; /* Position it relative to the nearest positioned ancestor */
top: 11px; /* Moves it down (Y-axis) */
left: 351px; /* Moves it right (X-axis) */
}


/* Ensure the menu is visible on larger screens */
@media (min-width: 768px) {
.mobile-hidden {
  display: block; /* Show menu by default on larger screens */
}
.menu-toggle {
  display: none; /* Hide toggle button on large screens */
}
}




.search-bar {
display: flex;
justify-content: center; /* Centering the search bar */
margin: 10px 0;
}

.search-bar form {
display: flex;
align-items: center;
border-radius: 5px;
overflow: hidden; /* Ensures the button and input align properly */
width: 470px;
max-width: 800px; /* Adjust width as needed */
}

.search-bar input {
flex: 1;
padding: 9px;
border: none;
outline: none;
}

.search-bar button {
background: #f00060; /* Change to desired color */
color: white;
border: none;
padding: 10px 15px;
cursor: pointer;
}

.search-bar button i {
font-size: 16px;
}

.search-bar button:hover {
background: #d80a59; /* Darker shade on hover */
}


/* General Styles (Keep these or similar) */


/* Main Content Styling  */
main {
padding: 20px 0;
}


/* Video Player Page Layout (Updated -  Flexbox Layout) */
.video-player-page {
display: flex;             /* Use flexbox for side-by-side layout */
gap: 20px;                  /* Space between video and list */
/* align-items: flex-start;   If you want elements to align at the top */
}

.video-container {
flex: 2;                     /* Video takes up more space (adjust as needed) */
/*  Optional:  background-color: #eee;  padding: 10px;  border-radius: 8px; */
}

.video-container video {
  width: 100%;               /* Video fills its container               */
  max-height: 500px;          /* Optional:  Limit video height - avoid crazy large videos  */
  border-radius: 8px;         /* Rounded corners on the video player     */
  object-fit: contain;         /*  <-- CHANGE THIS LINE for better use of the video area */
  background-color: #000;   
  box-shadow: 5px 5px 6px #1e010c   /* Add Background Color when video is not playing */   /* Add Background Color when video is not playing */
}


.video-details {
/* Optional:  styles for video title, description, etc. */
margin-top: 10px;
}

.more-videos {
flex: 0;                     /* "More Videos" list takes up less space (adjust) */
/*  Optional:  background-color: #eee;   padding: 10px; border-radius: 8px; */
}

.more-videos a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #f0f0f0;
  transition: background-color 0.2s ease;
  padding: 8px;
  border-radius: 5px;
  flex-wrap: wrap;
}

.more-videos ul {
list-style: none;
padding: 0;
margin: 0;
}

.more-videos li {
margin-bottom: 10px;
}

.more-videos a {
display: flex;                  /* Flexbox for thumbnail and text */
align-items: center;           /* Vertically align to top */
text-decoration: none;
color: #f0f0f0;                  /* Text color */
transition: background-color 0.2s ease;
padding: 8px;                  /*  Add some padding for touch area      */
border-radius: 5px;

}

.more-videos a:hover {
background-color:rgb(87, 86, 86);  /*  Subtle hover effect   */
}

.more-videos img {
width: 120px; /* Or whichever fixed width you prefer */
height: 70px; /* Maintain aspect ratio - adjust height to match the width */
object-fit: contain;  /* Crucial for fitting the image without cropping */
background-color: #000; /* Add Background Color to fill */
border-radius: 5px;
}

.more-videos span {
padding: 10px;
}



/* Responsive Design - IMPORTANT */
@media (max-width: 768px) {
.video-player-page {
  flex-direction: column;  /* Stack video and list vertically */
  width: 100%;
  padding-left: 10px;
}
}