/* Mauvais Genre — palette tirée du logo */
:root {
  --bg: #1a1614;
  --bg-alt: #221d1a;
  --bg-card: #2a2522;
  --fg: #f0e6d8;
  --fg-muted: #9a8d80;
  --accent: #8b1a1a;
  --accent-light: #b32424;
  --border: #3a322d;
  --serif: 'Playfair Display', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --display: 'Cinzel', 'Trajan Pro', 'Playfair Display', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--fg); }

.muted { color: var(--fg-muted); }

/* HERO */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-transform: uppercase;
  margin: 0 auto;
  display: inline-block;
}
.tagline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  color: var(--fg-muted);
  margin: 1.5rem auto 0;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  padding-left: 0.45em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2em;
  max-width: min(640px, 92vw);
}
.tagline::before,
.tagline::after {
  content: '';
  flex: 0 0 auto;
  width: 40px;
  height: 1px;
  background: var(--border);
}

/* MAIN */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* MANIFESTO */
.manifesto {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* PLAYER */
.player {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.75rem;
  background: var(--bg-card);
  padding: 1.75rem;
  margin-bottom: 3rem;
  border-left: 4px solid var(--accent);
}
.player-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.player-info { display: flex; flex-direction: column; justify-content: center; }
.now-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--accent-light);
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.player-info h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.3rem;
  word-wrap: break-word;
}
.player-info > p { margin-bottom: 0.2rem; }
.player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.play-btn {
  background: var(--accent);
  color: var(--fg);
  border: none;
  padding: 0.7rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.play-btn:hover { background: var(--accent-light); }
.play-btn.playing { background: var(--bg-alt); border: 1px solid var(--accent); }
.play-icon { font-size: 0.85rem; }

/* HISTORY */
.history { margin-bottom: 3rem; }
.history h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
#history-list { list-style: none; }
#history-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.95rem;
}
#history-list li:last-child { border-bottom: none; }
#history-list .h-meta {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#history-list .h-artist { font-weight: 600; }
#history-list .h-title { color: var(--fg-muted); }
#history-list .h-time {
  color: var(--fg-muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* FOOTER */
footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .hero { padding: 2.5rem 1rem 1.5rem; }
  .player {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }
  .player-cover { max-width: 240px; margin: 0 auto; }
  .player-info { text-align: center; }
  .player-controls { justify-content: center; }
  .manifesto { font-size: 1rem; text-align: left; }
  main { padding: 1.5rem 1rem 3rem; }
}
