:root {
  --bg: #050505;
  --panel: #1b1d21;
  --panel-hover: #24272c;
  --text: #f2f2f2;
  --muted: #9aa0a6;
  --accent: #e8a33d;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

/* Make it a little harder to select/drag things on the page. */
body { -webkit-user-select: none; user-select: none; background: transparent; }

/* Faint, near-black flag behind everything; stays put while the page scrolls. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg) url("images/flag-background.svg") center / cover no-repeat;
  pointer-events: none;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.hero {
  text-align: center;
  padding: 56px 16px 32px;
}

.hero h1 {
  margin: 0;
  font-family: "IM Fell English SC", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 10vw, 4.75rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.tagline { margin: 8px 0 0; color: var(--muted); }

.player {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 12px;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.now-playing { display: flex; flex-direction: column; gap: 2px; }
.np-title { font-size: 1.15rem; font-weight: 600; }

.controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0 12px;
}

.btn {
  background: transparent;
  color: var(--text);
  border: 1px solid #3a3d43;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover { background: var(--panel-hover); }
.btn-play {
  width: 56px;
  height: 56px;
  font-size: 1.3rem;
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}
.btn-play:hover { filter: brightness(1.08); background: var(--accent); }

.progress-row, .volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.volume-row { margin-top: 10px; }

.time {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 40px;
  text-align: center;
}

input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
  cursor: pointer;
}
.volume { max-width: 160px; }

.np-album { color: var(--muted); font-size: 0.9rem; min-height: 1.35em; }

.albums { margin-top: 32px; display: flex; flex-direction: column; gap: 36px; }

.album-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.album-cover {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.album-title { margin: 0; font-size: 1.35rem; }
.album-year { color: var(--muted); font-size: 0.9rem; }

.tracklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: var(--panel);
  border: 0;
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.track:hover { background: var(--panel-hover); }
.track.active { outline: 2px solid var(--accent); }
.track-num { color: var(--muted); width: 1.5em; text-align: right; }
.track-title { flex: 1; }

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 24px 16px 40px;
}
