/* ==========================================
   MODERN MUSIC SECTION (HOME)
========================================== */

.modern-music-section {
  margin-top: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 30px;
}

/* ------------------ BIG LEFT PLAYER ------------------ */

.big-player {
  position: relative;
  padding: 24px 26px 22px;
  border-radius: 26px;
  background: radial-gradient(circle at top left, #0b1220, #020617 70%);
  box-shadow: 0 25px 50px rgba(0,0,0,0.55);
  overflow: hidden;
  --wave-color: #facc15;
}

.big-player-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.player-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(156,163,175,0.9);
}

.player-meta-line {
  font-size: 0.78rem;
  color: rgba(209,213,219,0.85);
}

/* two-column inside big player: info + cover */
.big-player-main {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: center;
}

.big-player-info {
  min-width: 0;
}

.big-player-cover {
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.7), rgba(15,23,42,1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.big-player-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* titles */

.player-song-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 4px 0 4px;
}

.player-song-artist {
  font-size: 0.95rem;
  color: #aab4c5;
}

/* progress */

.player-progress-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.player-time {
  font-size: 0.78rem;
  color: #9ca3af;
}

.player-progress {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(31,41,55,0.9);
  overflow: hidden;
  cursor: pointer;
}

.player-progress-bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(to right, #facc15, #f97316);
  border-radius: inherit;
}

/* controls */

.player-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 16px;
}

.player-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.player-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.player-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.player-play {
  width: 52px;
  height: 52px;
  border: none;
  background: radial-gradient(circle at 30% 30%, #facc15, #f97316);
  color: #111827;
  font-weight: 700;
}

/* Download / Lyrics on right */

.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* waveform visualizer */

.player-wave {
  margin-top: 22px;
  display: flex;
  gap: 3px;
  height: 38px;
  align-items: flex-end;
  opacity: 0.85;
}

.player-wave-bar {
  flex: 1;
  max-width: 7px;
  border-radius: 999px;
  background: linear-gradient(to top, rgba(15,23,42,0.2), var(--wave-color));
  transform-origin: bottom;
  animation: jch-wave 1.2s ease-in-out infinite;
  animation-play-state: paused;
}

/* different phase per bar */
.player-wave-bar:nth-child(3n)   { animation-duration: 1.1s; }
.player-wave-bar:nth-child(4n)   { animation-duration: 1.4s; }
.player-wave-bar:nth-child(5n)   { animation-duration: 1.6s; }
.player-wave-bar:nth-child(2n+1){ animation-delay: .2s; }
.player-wave-bar:nth-child(7n)   { animation-delay: .4s; }

.big-player.is-playing .player-wave-bar {
  animation-play-state: running;
}

@keyframes jch-wave {
  0%,100% { transform: scaleY(0.25); }
  40%     { transform: scaleY(1); }
  60%     { transform: scaleY(0.6); }
}

/* ------------------ RIGHT PLAYLIST ------------------ */

.music-right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.music-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f5f6fb;
  color: #111827;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
}

.music-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

.music-card.active {
  background: linear-gradient(135deg, #1E3A8A, #020617);
  color: #fff;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.mws-left { font-size: 13px; font-weight: 700; opacity: 0.7; }

.mws-title {
  font-size: 0.98rem;
  font-weight: 700;
}

.mws-artist {
  font-size: 0.82rem;
  opacity: 0.8;
}

.mws-category {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 2px;
}

.mws-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.mws-lyrics-link {
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  text-decoration: none;
  background: rgba(248,250,252,0.8);
  color: #111827;
}

.music-card.active .mws-lyrics-link {
  background: rgba(15,23,42,0.85);
  color: #facc15;
  border-color: rgba(251,191,36,0.9);
}

/* ------------------ STICKY MOBILE PLAYER ------------------ */

/* ------------------ RESPONSIVE ------------------ */

@media (max-width: 960px) {
  .modern-music-section {
    grid-template-columns: minmax(0,1fr);
  }
  .big-player-main {
    grid-template-columns: minmax(0,1fr);
  }
  .big-player-cover {
    max-width: 260px;
    margin: 10px auto 0;
  }
}

@media (max-width: 640px) {
  .player-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .player-controls-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
