/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
  }
  
  header {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px;
    text-align: center;
  }
  
  header h1 {
    margin: 0;
    font-size: 2.5rem;
  }
  
  header p {
    margin: 5px 0 0;
    font-size: 1.2rem;
  }
  
  .search-bar {
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }
  
  .search-bar input {
    padding: 10px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
  }
  
  .search-bar button {
    padding: 10px 15px;
    border: none;
    background-color: #3498db;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1rem;
  }
  
  .search-bar button:hover {
    background-color: #2980b9;
  }
  
  main {
    padding: 20px;
  }
  
  #video-player {
    margin-bottom: 20px;
    position: relative;
  }
  
  #loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #3498db;
  }
  
  .hidden {
    display: none;
  }
  
  #categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .category-button {
    padding: 10px 15px;
    border: none;
    background-color: #3498db;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
  }
  
  .category-button.active {
    background-color: #2980b9;
  }
  
  .category-button:hover {
    background-color: #2980b9;
  }
  
  #video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .video-thumbnail {
    flex: 1 1 calc(25% - 15px);
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
  }
  
  .video-thumbnail:hover {
    transform: scale(1.05);
  }
  
  .video-thumbnail img {
    width: 100%;
    height: auto;
  }
  
  .video-thumbnail p {
    padding: 10px;
    margin: 0;
    text-align: center;
    font-size: 1rem;
    color: #2c3e50;
  }
  
  footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
  }
  
  .footer-links {
    margin-bottom: 10px;
  }
  
  .footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
  }
  
  .footer-links a:hover {
    text-decoration: underline;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .video-thumbnail {
      flex: 1 1 calc(50% - 15px);
    }
  }
  
  @media (max-width: 480px) {
    .video-thumbnail {
      flex: 1 1 100%;
    }
  }