body {
  background: #0f0f1a;
  color: white;
}

/* fondo blur */
#bgBlur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.3);
  z-index: -1;
}

/* grid */
#animeGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

/* card */
.anime-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
}

.anime-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.anime-card:hover img {
  transform: scale(1.2);
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(transparent, black);
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s;
}

.anime-card:hover .overlay {
  opacity: 1;
}

/* detalle */
.detail-card {
  background: rgba(0,0,0,0.7);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  text-align: center;
}

/* 🔥 FIX DEFINITIVO IMAGEN */
.detail-img {
  max-width: 300px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  margin: 15px auto;
  display: block;
  image-rendering: auto;
}

/* animación */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

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

#loader {
  display: none;
}