.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100svw;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: 40vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 45%, transparent 70%);
  z-index: -1;
}

.nombre {
  color: white;
  font-family: "Bebas Neue", sans-serif;
  text-align: center;
  margin: 0;
}

.nombre--bkt {
  font-size: 27vh;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-shadow:
    0 0 10px rgba(213, 168, 255, 0.7),
    0 0 30px rgba(213, 168, 255, 0.4);
  animation: resplandor 3s ease-in-out infinite;
}

@keyframes resplandor {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(213, 168, 255, 0.7),
      0 0 30px rgba(213, 168, 255, 0.4);
  }
  50% {
    text-shadow:
      0 0 16px rgba(213, 168, 255, 0.9),
      0 0 45px rgba(213, 168, 255, 0.5);
  }
}

body {
  background-color: #000;
  margin: 0;
  overflow-x: hidden;
}

.fondo-emojis {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.emoji {
  position: absolute;
  font-size: 28px;
  animation: volar linear infinite;
  filter: drop-shadow(0 0 6px rgba(213, 168, 255, 0.4));
}

@keyframes volar {
  0%   { transform: translateX(-10vw) translateY(0); }
  50%  { transform: translateX(50vw)  translateY(-15px); }
  100% { transform: translateX(110vw) translateY(0); }
}

.cancion {
  position: absolute;
  background: none;
  border: none;
  color: rgba(213, 168, 255, 0.452);
  font-family: "Permanent Marker", cursive;
  font-size: 1.4vw;
  letter-spacing: 0.15em;
  cursor: pointer;
  padding: 4px 8px;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.6),
    1px 1px 0 rgba(255, 255, 255, 0.15),
    -1px -1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, text-shadow 0.3s ease, color 0.3s ease;

}

.cancion:hover {
  color: #fff;
  transform: scale(1.1) rotate(0deg) !important;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.9),
    0 0 16px rgba(255, 255, 255, 0.4);
}

.widget__contenido {
  display: flex;
  justify-content: center;
}

/* ================= WALKMAN ================= */
.walkman {
  width: 220px;
  background: linear-gradient(160deg, #2b2b2b, #0d0d0d);
  border-radius: 22px;
  padding: 18px 16px 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 10px 30px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.walkman__marca {
  color: #eee;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.2em;
  font-size: 1.2em;
}

.walkman__pantalla {
  width: 100%;
  min-height: 110px;
  max-height: 180px;
  overflow-y: auto;
  background: #0a0a0a;
  border: 2px solid #1e1e1e;
  border-radius: 6px;
  padding: 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
  transition: box-shadow 0.3s ease;
}

.walkman.girando .walkman__pantalla {
  animation: parpadeo-pantalla 1.4s ease-in-out infinite;
}

@keyframes parpadeo-pantalla {
  0%, 100% { box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 0 6px rgba(213,168,255,0.15); }
  50%      { box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 0 14px rgba(213,168,255,0.45); }
}

#widgetTitulo {
  color: rgba(213, 168, 255, 0.9);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3em;
  margin: 0 0 6px;
  text-shadow: 0 0 8px rgba(213, 168, 255, 0.5);
}

#widgetLetra {
  color: rgba(255, 255, 255, 0.7);
  font-family: "Oswald", sans-serif;
  font-size: 0.75em;
  white-space: pre-line;
  line-height: 1.5;
  margin: 0;
}

.walkman__botones-superiores {
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Oswald", sans-serif;
  font-size: 0.6em;
  letter-spacing: 0.1em;
  padding: 0 6px;
}

.walkman__dpad {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #262626, #050505 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.walkman__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #111;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.walkman__back,
.walkman__option {
  position: absolute;
  width: 40px;
  height: 26px;
  border-radius: 6px;
  background: #161616;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.5em;
  letter-spacing: 0.05em;
  cursor: default;
}

.walkman__back { top: 6px; left: 6px; }
.walkman__option { top: 6px; right: 6px; }

.walkman__flecha {
  position: absolute;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75em;
}

.walkman__flecha--arriba { top: 12px; left: 50%; transform: translateX(-50%); }
.walkman__flecha--abajo  { bottom: 12px; left: 50%; transform: translateX(-50%); }
.walkman__flecha--izq    { left: 12px; top: 50%; transform: translateY(-50%); }
.walkman__flecha--der    { right: 12px; top: 50%; transform: translateY(-50%); }

.walkman__logo {
  color: rgba(255, 255, 255, 0.4);
  font-family: "Oswald", sans-serif;
  font-size: 0.65em;
  letter-spacing: 0.2em;
}

body.widget-abierto {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.widget {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: min(90vw, 520px);
  max-height: 90dvh;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: none;

  background: none;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.widget::-webkit-scrollbar {
  display: none;
}


@keyframes brasa {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.widget.activo {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.widget__cerrar {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1em;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.widget__cerrar:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hint {
  position: fixed;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-family: "Oswald", sans-serif;
  font-size: 0.9em;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 6;
  pointer-events: none;
  animation: parpadeo-hint 2s ease-in-out infinite;
  transition: opacity 1s ease;
}

@keyframes parpadeo-hint {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.hint.oculto {
  opacity: 0;
}

.creditos {
  position: fixed;
  bottom: 2vh;
  left: 2vw;
  color: rgba(173, 52, 253, 0.637);
  font-family: "Oswald", sans-serif;
  font-size: 1.3em;
  letter-spacing: 0.05em;
  text-decoration: none;
  z-index: 6;
  transition: color 0.3s ease;
}

.creditos:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .nombre--bkt {
    font-size: 12vh;
  }

  .hero::before {
    width: 90vw;
    height: 30vh;
  }

  .cancion {
    font-size: 4vw;
  }

  .emoji {
    font-size: 20px;
  }

  .widget {
    width: 92vw;
    padding: 22px;
  }

  .walkman {
    width: 170px;
  }

  .walkman__dpad {
    width: 110px;
    height: 110px;
  }

  .walkman__play {
    width: 38px;
    height: 38px;
  }

  #widgetTitulo {
    font-size: 1.5em;
  }

  .creditos {
    font-size: 0.9em;
  }

  .hint {
    font-size: 0.75em;
    bottom: 8vh;
  }
}