#music {
  background: #f8f8f8;
  padding: 60px 0;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  padding: 15px;
}

.music-tile {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease;
}

.music-tile:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.song-info {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 8px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(8px);
  color: #333;
  font-family: 'Source Han Serif', serif;
}

.song-name {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  display: inline-block;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, #fff 10%, #fff 90%, transparent 100%);
}

.music-tile:hover .song-name {
  animation-play-state: running;
}

@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% + 150px)); }
}

.artist {
  font-size: 12px;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  display: inline-block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #fff 10%, #fff 10%, transparent 100%);
  animation: scrollText 10s linear infinite;
}

@keyframes scrollText {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.music-tile:hover .artist {
  animation-play-state: running;
}


.music-tile {
  cursor: pointer;
  transition: all 0.2s ease;
}

.music-tile:active {
  transform: scale(0.98);
}


.music-tile.playing {
  box-shadow: 0 0 15px rgba(0, 150, 255, 0.7);
}

.music-tile.playing::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  background-color: #0096FF;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}