/* ============================================
   GRID DOS LOUVORES
============================================ */

.hits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 3rem;

  align-items: start;
}

@media (max-width: 1024px) {
  .hits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
  }
}

@media (max-width: 768px) {
  .hits-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
  }
}

/* ============================================
   CARD SPOTIFY
============================================ */

.hit-card {
  position: relative;
  overflow: hidden;

  border-radius: 22px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.01)
    );

  border: 1px solid rgba(214, 177, 126, 0.12);

  backdrop-filter: blur(18px);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;

  padding: 0.6rem;

  display: flex;
  align-items: stretch;

  height: fit-content;
}

.hit-card:hover {
  transform: translateY(-6px);

  border-color: rgba(214, 177, 126, 0.45);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.35),
    0 0 30px rgba(214, 177, 126, 0.08);
}

/* Glow premium */
.hit-card::before {
  content: "";

  position: absolute;
  inset: -40%;

  background:
    radial-gradient(
      circle,
      rgba(214,177,126,0.12) 0%,
      transparent 70%
    );

  opacity: 0;
  transition: opacity 0.4s ease;

  pointer-events: none;
}

.hit-card:hover::before {
  opacity: 1;
}

/* ============================================
   SPOTIFY IFRAME
============================================ */

.hit-card iframe {
  width: 100%;
  height: 352px;

  border: none;
  border-radius: 16px;

  display: block;
  flex: 1;

  background: transparent;
}

/* Tablet */
@media (max-width: 1024px) {
  .hit-card iframe {
    height: 320px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hit-card {
    padding: 0.45rem;
    border-radius: 18px;
  }

  .hit-card iframe {
    height: 232px;
    min-height: 232px;
    max-height: 232px;

    border-radius: 14px;
  }
}