/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Playfair Display", serif;
  min-height: 100vh;
  position: relative;
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Background video */
.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  filter: blur(10px) brightness(0.8);
  z-index: -1;
  scale: 1.1; /* Slightly scale up to avoid blur edges */
}

/* Main video */
.main-video {
  max-width: 90%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  z-index: 1;
}

/* Play button */
.play-button {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.play-button:hover {
  transform: scale(1.1);
  background: white;
}

.play-button svg {
  width: 40px;
  height: 40px;
  color: #333;
}

.play-button.hidden {
  display: none;
}

.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loading-spinner p {
  color: white;
  margin-top: 20px;
  font-family: Arial, sans-serif;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #555;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-video {
    max-width: 95%;
    max-height: 95vh;
  }
  
  .background-video {
    filter: blur(5px) brightness(0.9);
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  .play-button svg {
    width: 30px;
    height: 30px;
  }
}
