
body {
  margin: 0;
  background: url('background-final.png') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Poppins', sans-serif;
  color: white;
}

/* Loading spinner */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-top: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Loading screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Video rows */
.row {
  margin: 20px 10px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
}

.row-title {
  font-size: 1.5em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4CAF50;
}

.row-videos {
  display: flex;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #000;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 0;
}

/* Video cards */
.video-card {
  flex: 0 1 calc(33.333% - 20px);
  width: clamp(240px, 30vw, 480px);   /* 240 – 480 px, grows with screen */
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: scale(1.05);
}

.video-card video {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 8px;
}

.row-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding: 10px;
  border-bottom: 2px solid #fff;
}

.video-card {
  flex: 0 0 auto;
  width: 300px;
  margin-right: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
    }

/* Add scroll indicators */
.row-videos::-webkit-scrollbar {
  height: 8px;
}

.row-videos::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.row-videos::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.row-videos::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.video-card video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
