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

body {
  background: #1C2526;
  color: #FFFFFF;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* Header */
header {
  background: #000;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  flex: 0 0 auto;
}

.logo {
  height: 4rem;
  max-width: 100%;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu ul li a {
  color: #FFC107;
  text-decoration: none;
  font-family: Bebas Neue, sans-serif;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.nav-menu ul li a:hover {
  color: #FF2E63;
}

.coffee-btn {
  background: #FF2E63;
  color: #FFF;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px #FF2E63; }
  50% { box-shadow: 0 0 20px #FF2E63; }
  100% { box-shadow: 0 0 10px #FF2E63; }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFC107;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main content */
main {
  padding: 2rem;
}

h1 {
  font-family: Bebas Neue, sans-serif;
  font-size: 2.5rem;
  color: #FFC107;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2 {
  font-family: Bebas Neue, sans-serif;
  font-size: 1.5rem;
  color: #FFC107;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: #2A2E35;
  border: 2px solid #FF2E63;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  position: relative; /* For positioning button */
  max-width: 320px; /* Consistent card size */
  margin: 0 auto; /* Center cards in grid */
}

.video-card:hover {
  transform: scale(1.05);
  border-color: #FFC107;
}

.video-button {
  position: relative; /* Changed to relative to contain iframe and title */
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column; /* Stack iframe and title vertically */
  align-items: center; /* Center content */
}

.video-button iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  pointer-events: auto; /* Allow iframe interaction for playback */
}

.video-button h3 {
  font-family: Poppins, sans-serif;
  font-size: 1rem;
  padding: 0.5rem;
  text-align: center;
  color: #FFFFFF; /* Match existing text color */
  margin: 0; /* Remove default margin */
  background: #2A2E35; /* Match video-card background */
  width: 100%; /* Ensure title spans full width */
}

/* Merch grid */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gapbuilder: 1.5rem;
}

.merch-card {
  background: #2A2E35;
  border: 2px solid #FF2E63;
  border-radius: 8px;
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s, border-color 0.3s;
}

.merch-card:hover {
  transform: scale(1.05);
  border-color: #FFC107;
}

.merch-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
}

.merch-card h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.buy-btn {
  display: inline-block;
  background: #FF2E63;
  color: #FFF;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s;
}

.buy-btn:hover {
  background: #FFC107;
  color: #1C2526;
}

/* Footer */
footer {
  background: #000;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: #FFC107;
  text-decoration: none;
}

footer a:hover {
  color: #FF2E63;
}

/* Responsive design */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: #000;
    padding: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
  }

  .nav-menu ul li a {
    font-size: 1.2rem;
  }

  .coffee-btn {
    margin-top: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  h1 {
    font-size: 2rem;
  }

  .video-grid, .merch-grid {
    grid-template-columns: 1fr;
  }

  .video-card {
    max-width: 100%; /* Full width on smaller screens */
  }
}

@media (max-width: 480px) {
  .logo {
    height: 3rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .video-card h3, .merch-card h3 {
    font-size: 0.9rem;
  }

  .coffee-btn, .buy-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .video-card {
    max-width: 100%; /* Full width on smaller screens */
  }
}