/* === GRID PADRÃO === */
.bm-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

/* === CARD === */
.bm-card {
  position: relative;
  background: var(--dark);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s;
}
.bm-card:hover {
  transform: scale(1.03);
}

/* === POSIÇÃO (#1, #2...) === */
.bm-card-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  background: gold;
  color: #000;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 50px;
  z-index: 2;
}

/* === CAPA === */
.bm-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
}
.bm-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.bm-card:hover .bm-card-cover img {
  transform: scale(1.05);
}

/* overlay e ícone de play (para músicas e shortmax, não vídeos) */
.bm-card-cover .bm-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.2rem;
  color: #fff;
  opacity: 0;
  transition: opacity .3s;
}
.bm-card:hover .bm-card-play {
  opacity: 1;
}

/* === INFO: título / artista / reproduções === */
.bm-card-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bm-card-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  color: #fff;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.bm-card-artist {
  font-size: 0.9rem;
  color: #bbb;
  text-decoration: none;
  transition: color .2s;
}
.bm-card-artist:hover {
  color: #fff;
  text-decoration: underline;
}
.bm-card-plays {
  font-size: 0.85rem;
  color: #3b82f6;
  text-decoration: none;
}
.bm-card-plays:hover {
  text-decoration: underline;
}

/* === RODAPÉ: reproduções + favorito === */
.bm-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
.bm-card-fav {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 1.1rem;
  transition: color .2s;
}
.bm-card-fav:hover {
  color: #fff;
}
.bm-card-fav.favorited {
  color: #f43f5e; /* vermelho quando já favoritado */
}
