body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f8f8f8;
}

header,
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 2rem 1rem;
}

h1 {
  color: #0056b3;
}

.featured-video {
  margin-bottom: 2rem;
}

video#main-video {
  width: 100%;
  border-radius: 10px;
  max-height: 80vh;
  object-fit: contain;
}

.video-title {
  margin: 1rem 0;
  font-size: 1.4rem;
  font-weight: bold;
  color: #222;
  text-align: center;
}

.related-label {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 2rem 0 1rem;
  text-align: center;
  color: #444;
}

.video-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.video-thumbnail {
  width: 200px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border 0.3s;
  cursor: pointer;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-thumbnail video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
}

.video-thumb-title {
  font-size: 0.95rem;
  padding: 0.5rem;
  color: #333;
  text-align: center;
  background: #fff;
  width: 100%;
}

#fullscreen-hint {
  text-align: center;
  margin-top: 10px;
  color: gray;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .video-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .video-thumbnail {
    width: 100%;
  }

  .video-thumbnail video {
    height: 140px;
  }

  .video-thumb-title {
    font-size: 0.85rem;
    padding: 0.4rem;
  }
}

@media (max-width: 480px) {
  .video-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
