

.music-body {
  margin: 0;
  font-family: sans-serif;
  background-image: url('images/bg3.png');
  background-repeat: repeat;
  background-size: auto;
  min-height: 100vh;
  padding-bottom: 3rem;
}

.back-home {
  position: fixed;
  top: 1rem;
  left: 1rem;
  font-size: 0.85rem;
  color: pink;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.back-home:hover {
  opacity: 1;
}

.music-header {
  text-align: center;
  padding-top: 2rem;
}

.music-header h1 {
  font-size: 2rem;
  color: SteelBlue;
  text-shadow: 1px 1px Cyan;
}

.music-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem 0;
  gap: 2rem;
}

/* ── current favorite box ── */

.current-favorite {
  width: 100%;
  max-width: 1060px;   
  border: 2px solid pink;
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1.5rem;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.15);
}

.current-favorite h2 {
  color: MediumOrchid;
  text-shadow: 1px 1px blueviolet;
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
  text-align: center;
}

.youtube-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;    
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* ── albums grid ── */

.albums-section {
  width: 100%;
  max-width: 1060px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.albums-section h2 {
  color: MediumOrchid;
  text-shadow: 1px 1px blueviolet;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(4, 250px);
  gap: 1rem;
  justify-content: center;
}

.album {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.album iframe {
  width: 250px;
  height: 352px;      
  border-radius: 8px;
  display: block;
}

.album p {
  font-size: 0.75rem;
  color: MediumPurple;
  text-align: center;
  margin: 0.4rem 0 0;
}

@media (max-width: 700px) {
  .music-layout {
    padding: 1rem 0.75rem 0;
    gap: 1.5rem;
  }

  .current-favorite {
    max-width: 100%;
  }

  .albums-grid {
    grid-template-columns: repeat(2, 1fr);  
    gap: 0.5rem;
  }

  .album iframe {
    width: 100%;
    height: 280px;
  }
}

@media (max-width: 400px) {
  .albums-grid {
    grid-template-columns: repeat(1, 1fr); 
  }

  .album iframe {
    height: 240px;
  }

  .music-header h1 {
    font-size: 1.4rem;
  }

  .current-favorite h2,
  .albums-section h2 {
    font-size: 1rem;
  }
}