@import url('https://fonts.googleapis.com/css2?family=Creepster&family=UnifrakturCook:wght@700&family=Cinzel:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cinzel', serif;
  color: #f4f4f4;
  background: radial-gradient(circle at center, #0a0000 40%, #000000 100%);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background: url('http://www.transparenttextures.com/patterns/foggy-birds.png');
  opacity: 0.10;
  animation: starsMove 15s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes starsMove {
  0% { background-position: 0 0; }
  100% { background-position: 500px 500px; }
}

.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  text-align: center;
  animation: fadeIn 1.2s ease;
  position: relative;
  z-index: 1;
}

.screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- TITULOS --- */
.main-title {
  font-family: 'Creepster', cursive;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #b10f2e;
  text-shadow: 0 0 15px #ff002b, 0 0 30px #b10f2e;
  margin-bottom: 25px;
  letter-spacing: 2px;
}

.animated-title {
  animation: bloodPulse 2.5s infinite alternate;
}

@keyframes bloodPulse {
  0% { text-shadow: 0 0 10px #7a0000; transform: scale(1); }
  50% { text-shadow: 0 0 30px #ff0011; transform: scale(1.05); }
  100% { text-shadow: 0 0 10px #7a0000; transform: scale(1); }
}

.content-title {
  font-family: 'UnifrakturCook', cursive;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: #ffc2c2;
  margin-bottom: 30px;
  text-shadow: 0 0 10px #a83232, 0 0 25px #ff0000;
}

/* --- TEXTOS --- */
.silver-text {
  color: #ffc7c7;
  text-shadow: 0 0 10px #940000;
}

.dark-text {
  color: #b10f2e;
  text-shadow: 0 0 15px #6d0000;
}

/* --- BOTONES --- */
.menu-button, .action-button, .author-btn {
  background: rgba(20, 0, 20, 0.7);
  color: #f4f4f4;
  border: 1px solid #7a0000;
  border-radius: 10px;
  padding: 15px 25px;
  font-family: 'Cinzel', serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.menu-button:hover, .action-button:hover, .author-btn:hover {
  background: #b10f2e;
  color: #fff;
  box-shadow: 0 0 20px #b10f2e, 0 0 40px #ff002b80;
  transform: translateY(-3px);
}

/* --- BOTÓN VOLVER --- */
.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid #b10f2e;
  border-radius: 8px;
  padding: 10px 20px;
  color: #f4f4f4;
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: 0.3s;
}

.back-button:hover {
  background: rgba(177, 15, 46, 0.3);
  box-shadow: 0 0 20px #b10f2e;
  transform: translateX(-3px);
}

/* --- CUADROS DE PERSONAJES --- */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.char-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 10px;
  background: rgba(20, 0, 20, 0.7);
  border: 1px solid #ff0101;
  border-radius: 12px;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #ffeaea;
  text-decoration: none;
  text-shadow: 0 0 5px #ffcccc;
  box-shadow: 0 0 10px rgba(20, 0, 20, 0.7);
  transition: 0.3s ease;
  backdrop-filter: blur(2px);
}

.char-box:hover {
  background: rgba(173, 13, 13, 0.685);
  box-shadow: 0 0 15px #a90b0b;
  transform: scale(1.06);
  border-color: #a90b0b;
  color: #ffffff;
}

/* --- SECCIÓN DE DATOS --- */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px;
}

.data-box {
  background: rgba(20, 0, 25, 0.8);
  border: 1px solid #7a0040;
  border-radius: 16px;
  padding: 20px;
  color: #e6e6e6;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 20px #2b0018;
  text-align: left;
  transition: all 0.3s ease;
}

.data-box:hover {
  transform: translateY(-5px);
  border-color: #b10f2e;
  box-shadow: 0 0 25px #b10f2e;
}

.data-box strong {
  color: #ff2f4f;
  font-family: 'UnifrakturCook', cursive;
  font-size: 1.2rem;
  text-shadow: 0 0 15px #ff0040;
}

/* --- BOTÓN INFO --- */
.info-button {
  margin-top: 10px;
  background-color: #660022;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  font-family: 'Cinzel', serif;
}

.info-button:hover {
  background-color: #b10f2e;
  transform: scale(1.08);
  box-shadow: 0 0 15px #b10f2e;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .character-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .screen {
    padding: 60px 15px 40px;
  }
}


.playlist-container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

/* Contenedor de playlists en fila */
.playlist-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap; /* para que se adapte en pantallas pequeñas */
  gap: 30px;
  margin-top: 40px;
}

/* Tarjeta individual */
.playlist-card {
  background: rgba(40, 20, 20, 0.7);
  border: 1px solid #ffb6b6;
  border-radius: 12px;
  padding: 15px;
  width: 320px;
  text-align: center;
  box-shadow: 0 0 10px #ffb6b650;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.playlist-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ffb6b6;
}

.playlist-card h3 {
  margin-bottom: 10px;
  color: #ffb6b6;
  font-weight: 600;
}

.spotify-embed {
  width: 100%;
  height: 152px;
  border: none;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Botón dentro de la tarjeta */
.action-button {
  display: inline-block;
  margin-top: 5px;
  background: rgba(255, 182, 182, 0.15);
  border: 1px solid #ffb6b6;
  border-radius: 8px;
  color: #fff;
  padding: 8px 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}