/* =========================================================
   Music Track pages (Manatomy Theme)
   ========================================================= */

.music-single {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Headings */
.music-single h1,
.music-single h2.music-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin: 20px 0;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* ---------------------------------------------------------
   EMBEDS
   --------------------------------------------------------- */

.music-single .listen-embeds {
  margin: 12px 0 20px;
}

/* Make the pasted YouTube iframe responsive & pretty */
.music-single .listen-embeds iframe {
  width: 100%;
  height: auto;              /* modern browsers + aspect-ratio */
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* ---------------------------------------------------------
   STATS (pills)
   --------------------------------------------------------- */

.music-single .stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}

.music-single .stats > div {
  background: #f7f7f9;
  border: 1px solid #ececf0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
}

.music-single .stats strong {
  font-weight: 700;
}

/* ---------------------------------------------------------
   GRID METRICS (for parsed data)
   --------------------------------------------------------- */

.music-single .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 14px 0 6px;
}

.music-single .stat {
  background: #f7f7f9;
  border: 1px solid #ececf0;
  border-radius: 12px;
  padding: 10px 12px;
}

.music-single .stat .label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.music-single .stat .val {
  font-weight: 700;
}

/* ---------------------------------------------------------
   LISTEN LINKS
   --------------------------------------------------------- */

.music-single .listen-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 6px;
}

.music-single .btn-listen {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #ececf0;
  background: #fff;
  text-decoration: none;
  color: #222;
  transition: all 0.2s ease;
}

.music-single .btn-listen:hover {
  background: #f1f1f1;
}

/* ---------------------------------------------------------
   CONTENT BODY
   --------------------------------------------------------- */

.music-single .content {
  margin-top: 16px;
  line-height: 1.7;
  font-size: 16px;
}

.music-single .content p + p {
  margin-top: 12px;
}

/* ---------------------------------------------------------
   LYRICS
   --------------------------------------------------------- */

.music-single .lyrics {
  margin-top: 22px;
}

.music-single .lyrics h3 {
  margin: 0 0 10px;
}

.music-single .lyrics-box {
  white-space: pre-wrap;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px;
  line-height: 1.6;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
}

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

@media (max-width: 768px) {
  .music-single .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 480px) {
  .music-single { padding: 20px 12px; }
  .music-single h1,
  .music-single h2.music-title { font-size: 26px; }
  .music-single .btn-listen {
    flex: 1 1 100%;
    text-align: center;
  }
}
