@font-face {
  font-family: 'Permanent Marker';
  src: url('assets/PermanentMarker-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  background: none;
  color: #03fff28a;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;         /* horizontal centering */
  justify-content: flex-start;     /* vertical centering */
  box-sizing: border-box;
  overflow-x: hidden; 
}

#bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -9999;
  background: url('assets/ChatGPT Image May 18, 2025, 01_47_10 PM.png') center center / cover no-repeat;
  background-color: #000;
  will-change: transform;
}

#header {
  text-align: center;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  padding-top: 0;
  margin: 10px;
  font-family: 'permanent marker', sans-serif;
  font-weight: bold;
  z-index: 50;
  position: sticky;
}

#header::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 130vw;
  height: clamp(5rem, 15vw, 12rem);
  background: rgba(20, 20, 30, 0.65);
  backdrop-filter: blur(10px);
  border-radius: 0 0 18px 18px;
  box-shadow:
    0 8px 14px rgba(0, 0, 0, 0.6),
    inset 0 -2px 6px #00f7ff88,
    inset 0 -8px 12px #a400f066;
  z-index: -1;
}

#genre-switcher {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 3rem);
  margin-top: 4vh;
}

#genre-switcher button {
  background: #181818;
  color: #0be7f7de;
  border: 2px solid #00d9ff;
  border-radius: 8px;
  padding: clamp(0.6rem, 1vh, 1rem) clamp(1rem, 2vw, 2.4rem); /* 🔧 scaled padding */
  font-size: clamp(0.9rem, 1.2vw, 1.3rem);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-weight: 600;
  letter-spacing: 1.5px;
}

#genre-switcher button.active,
#genre-switcher button:hover {
  background: #00ff9d;
  color: #000;
  border-color: #23d400;
}

.carousel-block {
  display: none; /* Hide by default, show via JS */
  margin-top: 4vh;
}

.carousel-block.active {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8vh;
}

.carousel-block h2 {
  text-align: left;
  font-size: 1.4rem;
  margin: 0 0 18px 60px;
  letter-spacing: 2px;
  color: #eee;
  font-weight: 600;
}

.carousel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  perspective: 1600px;
}

.carousel {
  position: relative;
  width: min(80vw, 1600px);
  height: 45vh;
  margin-top: 4vh;
  z-index: 1;
  transition: transform 0.7s cubic-bezier(.55,.2,.37,1), opacity 0.5s;
  transform-style: preserve-3d;
}

.carousel__item {
  position: absolute;
  aspect-ratio: 9 / 13;
  width: clamp(180px, 14%, 260px);              /* base scaling relative to parent */
  min-width: 8%;           /* prevents it from shrinking too much */
  max-width: 16%;          /* prevents it from blowing up */         /* preserves aspect ratio if content is img or block */
  top: 50%;
  left: 50%;
  margin: -130px 0 0 -85px;
  background: #181818;
  border: 2px solid #5100e9;
  color: #00f74a;
  font-size: 1.6rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.7);
  opacity: 0.6;
  z-index: 1;
  transition: opacity 0.4s, border-color 0.4s, background 0.4s;
  backface-visibility: visible;
  text-align: center;
  user-select: none;
  border-radius: 18px;
}

.carousel__item.active {
  opacity: 1;
  z-index: 3;
  border-color: #00ff88;
  background: #222;
  box-shadow: 0 8px 32px rgba(0, 114, 245, 0.651);
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  max-width: 80vw;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  display: none
}

.carousel-controls button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  background: none;
  border: none;
  padding: 0;
  width: auto;
  height: auto;
  cursor: pointer;
}

.carousel-controls button img {
  width: 100px;  /* or larger if needed */
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 6px #0ff);
  transition: transform 0.25s ease;
}


.carousel-prev {
  left: 6vw; /* tighter spacing */
}

.carousel-next {
  right: 6vw;
}

.carousel-controls button img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 4px #000);
  transition: transform 0.25s ease;
}

.carousel-controls button:hover img {
  transform: scale(1.3);
}

.carousel-controls button:hover {
  background: #cc00ff3b;
  color: #070101;
}

@keyframes carousel-spin {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(720deg);
  }
}

.carousel.spin {
  animation: carousel-spin 0.7s cubic-bezier(.55,.2,.37,1);
}

#card-description-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-in;
  display: flex; /* stay in flow to allow transition */
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 99999;
}

#card-description-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.card-title {
  position: absolute;
  bottom: 14px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  color: #fff;
  background: rgba(0,0,0,0.6);
  border-radius: 0 0 18px 18px;
  padding: 6px 0;
  z-index: 2;
  letter-spacing: 1.5px;
  pointer-events: none;
}
#overlay-content {
  background: #260563;
  color: #fff;
  padding: 3em 4em;
  border-radius: 50px;
  box-shadow: 0 10px 50px rgba(52, 14, 122, 0.667);
  width: 90vw;
  max-width: 900px;
  min-height: 600px;
  max-height: 90vh;
  text-align: center;
  font-size: 1.25rem;
  position: relative;
  opacity: 0.8;
}

#overlay-content .close-btn {
  position: absolute;
  top: 18px; right: 20px;
  font-size: 2.2rem;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s;
}
#overlay-content .close-btn:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  #main-wrapper {
    gap: 2vh;
    padding: 2vh 4vw;
  }

  #header {
    font-size: 1.4rem;
    padding-top: 2vh;
    padding-bottom: 1vh;
  }

  #genre-switcher {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2vh;
    justify-content: center;
  }

  #genre-switcher button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .carousel {
    width: 90vw;
    height: 40vh;
  }

  .carousel__item {
    width: 28%;
    height: 60%;
    font-size: 1rem;
  }

  .card-title {
    font-size: 0.9rem;
    padding: 4px 0;
  }

  .carousel-controls {
    margin-top: 2vh;
    gap: 12px;
  }

  .carousel-controls button {
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
  }
}

#seo-description {
  position: absolute;
  top: .1vh;
  left: 5vw;
  max-width: 28vw;
  font-size: clamp(0.9rem, 1.3vw, 1.6rem);
  color: #01cfc5;
  text-align: center;
  z-index: 999;
}

.cta-button {
  margin-top: 2.5rem;
  padding: 0.85rem 2.2rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #00ffe1, #8a00ff);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 12px #00ffe188, 0 0 24px #8a00ff66;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px #00fff5cc, 0 0 32px #b100ffaa;
}

#header-cta-wrapper {
  position: absolute;
  top: 20px;
  right: 5vw;
  z-index: 100;
}

.header-cta {
  background: linear-gradient(90deg, #00ffe1, #8a00ff);
  color: #fff;
  font-weight: bold;
  padding: 0.75rem 1.8rem;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffe1cc, 0 0 20px #8a00ff88;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 1rem;
}

.header-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 14px #00fff5, 0 0 30px #b100ff;
}

