* {
  box-sizing: border-box;
}

html {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #f5f6fb;
  color: #111827;
}

.ad-slot {
  width: 100%;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #ffffff;
}

.ad-slot--banner {
  min-height: 100px;
}

.ad-slot--square {
  min-height: 280px;
}

.ad-fallback {
  min-height: inherit;
  display: grid;
  place-items: center;
  color: #9ca3af;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fade-in {
  animation: fadeIn 280ms ease-out both;
}

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

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.875rem;
  padding: 0.7rem 0.9rem;
  color: #6b7280;
  transition: all 180ms ease;
}

.menu-item:hover {
  background: rgba(17, 24, 39, 0.06);
  color: #111827;
}

.menu-item.active {
  background: rgba(255, 45, 85, 0.16);
  color: #ff2d55;
}

.section-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .section-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .section-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.music-card {
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 0.7rem;
  transition: transform 220ms ease, background 220ms ease;
}

.music-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
}

.cover-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 1 / 1;
}

.cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.music-card:hover .cover-wrap img {
  transform: scale(1.06);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.08));
  transition: opacity 220ms ease;
}

.music-card:hover .play-overlay,
.music-card.active .play-overlay {
  opacity: 1;
}

.overlay-btn {
  border: 0;
  border-radius: 999px;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: #ff2d55;
  color: white;
  transform: scale(0.9);
  transition: transform 180ms ease, filter 180ms ease;
}

.music-card:hover .overlay-btn,
.music-card.active .overlay-btn {
  transform: scale(1);
}

.overlay-btn:hover {
  filter: brightness(1.08);
}

.music-card.active {
  outline: 1px solid rgba(255, 45, 85, 0.6);
}

@media (max-width: 767px) {
  .section-mobile-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.35rem;
  }

  .section-mobile-scroll .section-track {
    display: flex;
    min-width: max-content;
  }

  .section-mobile-scroll .music-card {
    width: 11.5rem;
    scroll-snap-align: start;
  }
}
