
.video-page h1,
.video-page h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.video-page p,
.video-page .intro {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}


.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  background: linear-gradient(135deg, #111, #1a1a1a);
  border: 2px solid #e60023;
  border-radius: 50px;
  width: 90%;
  max-width: 1200px;
  box-shadow: 0 0 25px rgba(230,0,35,0.4);
  overflow: hidden;
}

.search-bar input {
  flex: 1;
  min-width: 800px;
  padding: 1.6rem 2rem;
  font-size: 1.5em;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
}

.search-bar input::placeholder {
  color: #aaa;
  font-style: italic;
}

.search-bar button {
  padding: 1.5rem 2.5rem;
  font-size: 1.3em;
  border: none;
  background: #e60023;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-bar button:hover {
  background: #ff1a3c;
}


.video-categories {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.video-categories a {
  background: #222;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
}


.video-card {
  width: 100% !important;          
  max-width: 1200px !important;    
  margin: 2.5rem auto;
  background: #111;
  border: 2px solid #e60023;
  padding: 2rem;
  border-radius: 12px;
  box-sizing: border-box;
  box-shadow: 0 0 15px rgba(230,0,35,0.2);
}

.video-card h4 {
  margin-bottom: 0.8rem;
  font-size: 1.6em;
  text-align: center;
  color: #e60023;
}

.video-card p {
  text-align: center;
  color: #ddd;
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.1em;
}


.video-card iframe {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;   
  height: auto !important;
  max-width: 100% !important;
  border: none;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  display: block !important;
}


.video-card .thumb img {
  max-height: none !important;
}


#videoResults {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}


@media (max-width: 768px) {
  .search-bar input {
    min-width: auto;
    font-size: 1.2em;
    padding: 1rem;
  }

  .video-card {
    max-width: 100% !important;
    padding: 1.2rem;
  }

  .video-card iframe {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
  }
}
