.music-page {
  background: #ffffff;
  color: #111111;
}

/* =========================
   NAVIGATION HAUTE
========================= */

.top-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.top-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-logo img {
  width: 240px;
  max-width: 60vw;
  height: auto;
  display: block;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.top-logo:hover img,
.top-logo:focus-visible img {
  opacity: 0.55;
  transform: scale(1.04);
}

.top-logo:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 6px;
}

/* =========================
   PAGE MUSIQUE
========================= */

.music-shell {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 108px 24px 28px;
}

/* =========================
   ZONE VINYLE
========================= */

.vinyl-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 0 1 420px;
}

.vinyl-button {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-button:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 8px;
  border-radius: 999px;
}

.vinyl {
  width: min(42vw, 380px);
  height: auto;
  display: block;
  transform-origin: center center;
  animation: music-spin 3.2s linear infinite;
  animation-play-state: paused;
}

.vinyl.is-playing {
  animation-play-state: running;
}

@keyframes music-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.current-track {
  min-height: 1.5em;
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
  max-width: 340px;
}

/* =========================
   LISTE DES PISTES
========================= */

.tracklist-section {
  flex: 0 1 620px;
}

.tracklist-title {
  margin: 0 0 22px 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
}

.tracklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(17, auto);
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  column-gap: 34px;
  row-gap: 4px;
}

.tracklist li {
  margin: 0;
}

.track-button {
  background: transparent;
  border: none;
  padding: 2px 0;
  margin: 0;
  width: 100%;
  font: inherit;
  font-size: 0.88rem;
  color: inherit;
  letter-spacing: 0.03em;
  line-height: 1.32;
  cursor: pointer;
  text-align: left;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.track-button:hover,
.track-button:focus-visible {
  opacity: 0.55;
  transform: translateX(3px);
  outline: none;
}

.track-button.is-active {
  opacity: 1;
  font-weight: 700;
}

/* =========================
   TABLETTE
========================= */

@media (max-width: 1100px) {
  .top-logo img {
    width: 200px;
    max-width: 58vw;
  }

  .music-shell {
    gap: 36px;
    padding: 96px 18px 24px;
  }

  .vinyl {
    width: min(40vw, 320px);
  }

  .tracklist-section {
    flex-basis: 540px;
  }

  .tracklist {
    grid-auto-flow: column;
    grid-template-rows: repeat(17, auto);
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    column-gap: 24px;
  }

  .track-button {
    font-size: 0.82rem;
  }
}

/* =========================
   SMARTPHONE
========================= */

@media (max-width: 720px) {
  .top-nav {
    top: 10px;
  }

  .top-logo img {
    width: 160px;
    max-width: 72vw;
  }

  .music-shell {
    min-height: 100vh;
    flex-direction: column;
    gap: 28px;
    padding: 88px 16px 36px;
  }

  .vinyl-section {
    flex: none;
    width: 100%;
  }

  .vinyl {
    width: min(82vw, 320px);
  }

  .current-track {
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    max-width: 100%;
  }

  .tracklist-section {
    flex: none;
    width: 100%;
    text-align: center;
  }

  .tracklist-title {
    margin-bottom: 18px;
    font-size: 0.96rem;
  }

  .tracklist {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .track-button {
    text-align: center;
    font-size: 0.92rem;
  }

  .track-button:hover,
  .track-button:focus-visible {
    transform: none;
  }
}