:root {
  --primary: #f99746;
  --accent: #2d3142;
  --topbar-bg: #24272e;
  --white: #fff;
  --mission-bg: rgba(36, 39, 46, 0.34);
  --mission-text: #fff;
  --gray: #eff2f6;
  --btn: #0d9c92;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--accent);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* css/song-player.css */

.song-header {
  display: flex;              /* make children lay out in a row */
  align-items: center;        /* vertically center back-btn and title */
  justify-content: center;    /* center the <h1> in the remaining space */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: var(--topbar-bg);
  z-index: 40;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Reset any margins on h1 so it doesn’t push the container taller */
.song-header h1 {
  margin: 0;
  flex: 1;                    /* take all available space */
  text-align: center;
  font-size: 1.2rem;
  color: var(--white);
}

/* Position back-btn at the start without affecting h1 centering */
.song-header .back-btn {
  margin: 0;                  
  padding: 0.6rem 1.6rem;
  background: var(--primary);
  color: #fff;
  border-radius: 0.8rem;
  text-decoration: none;
  transition: background 0.2s ease;
  flex: 0 0 auto;             /* size to its content */
}

.song-header .back-btn:hover {
  background: #e67e00;
}

/* push main content down below the fixed header */
.song-main,
.details-main  {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem;
  text-align: center;
  margin-top: 56px;
}

audio {
  margin-bottom: 1.2rem;
  width: 90%;
  max-width: 600px;
}

.lyrics {
  font-size: 1.3rem;
  line-height: 1.3rem;
  max-width: 600px;
  color: var(--accent);
}

.credit {
  font-size: 0.85rem;
  color: #666;
  margin-top: 1rem;
}

    .details-main {
      padding: 1.5rem;
      max-width: 720px;
      margin-top: 56px;
    }
    .details-img {
      width: 100%;
      max-height: 400px;
      object-fit: cover;
      border-radius: 0.8rem;
      margin-bottom: 1rem;
    }
    .details-meta {
      font-size: 0.95rem;
      color: #555;
      margin-bottom: 1.5rem;
    }
    .details-section {
      margin-bottom: 1.5rem;
    }
    .details-section h2 {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
      color: var(--accent);
    }
    .details-section p {
      line-height: 1.6;
      color: #444;
    }

@media (max-width: 700px) { 
	.lyrics{
		font-size: 0.82rem;
		line-height: 1rem;
	} 
	.song-header h1 {
		font-size: 1.2rem;
	}

}
