/* Écoute — pages publiques */
:root {
  --bg: #0d0d12;
  --card: rgba(22, 22, 30, .72);
  --line: rgba(255, 255, 255, .09);
  --text: #f4f4f7;
  --muted: #a6a6b6;
  --accent: #ff4f8b;
  --radius: 22px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
a { color: inherit; }

/* Fond : pochette floutée */
.backdrop {
  position: fixed; inset: -60px; z-index: -1;
  background-size: cover; background-position: center;
  filter: blur(60px) saturate(1.5) brightness(.55);
  transform: scale(1.15);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, transparent 0%, rgba(13,13,18,.55) 60%, var(--bg) 100%);
}
.backdrop--empty {
  filter: none; transform: none;
  background: radial-gradient(60% 50% at 20% 10%, #5b2a86 0%, transparent 70%),
              radial-gradient(50% 50% at 85% 20%, #9b1d5a 0%, transparent 70%),
              radial-gradient(60% 60% at 50% 100%, #1d3a7a 0%, transparent 70%), var(--bg);
}

/* Carte d'une sortie */
.card {
  max-width: 460px; margin: 0 auto;
  background: var(--card);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: 22px 22px 18px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  animation: rise .5s cubic-bezier(.2,.8,.2,1) both;
}
.card--center { text-align: center; padding: 40px 24px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.preview-flag {
  margin: 0 0 14px; padding: 8px 12px; border-radius: 10px;
  background: #ffcf4a; color: #2a2000; font-size: 13px; font-weight: 600; text-align: center;
}
.cover { margin: 0; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 22px 50px -18px rgba(0,0,0,.75); background: #1b1b24; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover__ph {
  width: 100%; height: 100%; display: grid; place-items: center; font-size: 96px; color: rgba(255,255,255,.35);
  background: linear-gradient(135deg, #3b2167, #7a1f4f);
}
.cover__ph--small { width: 96px; height: 96px; font-size: 44px; border-radius: 24px; margin: 0 auto 18px; }

.head { text-align: center; padding: 20px 4px 6px; }
.kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.head h1, .card--center h1 { margin: 0; font-size: clamp(24px, 6vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.artist { margin: 6px 0 0; font-size: 17px; color: #d9d9e3; font-weight: 500; }
.artist-link {
  display: inline-flex; align-items: center; gap: 2px; text-decoration: none; transition: color .15s;
}
.artist-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.artist-link:hover, .artist-link:focus-visible { color: var(--accent); outline: none; }
.artist-more { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.home-head .home-back { display: inline-block; margin-bottom: 10px; color: var(--muted); text-decoration: none; font-size: 14px; }
.home-head .home-back:hover { color: var(--text); }
.meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.meta--side { text-align: center; }

.links { margin-top: 18px; }
.links h2, .tracks h2 {
  margin: 0 0 10px 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.links ul, .tracks ol { list-style: none; margin: 0; padding: 0; }
.links li + li { margin-top: 8px; }
.link {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  padding: 10px 12px 10px 10px; border-radius: 16px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  transition: background .15s, transform .15s, border-color .15s;
}
.link:hover, .link:focus-visible { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); transform: translateY(-1px); outline: none; }
.link:active { transform: scale(.99); }
.mark {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--c); color: var(--ink); font-weight: 800; font-size: 15px; letter-spacing: -.02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.name { flex: 1; font-weight: 600; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go {
  flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 7px 10px 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); font-size: 13px; font-weight: 600; color: #fff;
}
.go svg, .share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.link:hover .go { background: var(--accent); }

.about { margin: 20px 4px 0; color: #d4d4de; font-size: 15px; line-height: 1.6; }
.tracks { margin-top: 20px; }
.tracks ol { counter-reset: t; border-top: 1px solid var(--line); }
.tracks li { counter-increment: t; display: flex; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.tracks li::before { content: counter(t); width: 22px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.tracks li a { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.tracks li a:hover { border-bottom-color: var(--accent); }
.album-link { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.album-link:hover { color: var(--text); border-bottom-color: var(--accent); }

.share { display: flex; gap: 8px; margin-top: 20px; }
.share button {
  flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s;
}
.share button[hidden] { display: none; }
.share button:hover { background: rgba(255,255,255,.08); }
.share button.ok { background: #1f8f5a; border-color: #1f8f5a; }
.foot-meta { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.site-foot { text-align: center; margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); }

/* Pages légales */
.legal { max-width: 780px; padding: 28px clamp(20px, 5vw, 44px) 32px; }
.legal h1 { margin: 6px 0 4px; font-size: clamp(26px, 5vw, 36px); letter-spacing: -.02em; }
.legal h2 { margin: 30px 0 8px; font-size: 18px; }
.legal p, .legal li { color: #d4d4de; font-size: 15px; line-height: 1.65; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal a { color: var(--accent); }
.legal__back { margin: 0; font-size: 14px; }
.legal__back a { color: var(--muted); text-decoration: none; }
.legal__back a:hover { color: var(--text); }
.legal__date { margin: 0; color: var(--muted); font-size: 13px; }
.pill { display: inline-block; margin-top: 18px; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }

/* Accueil */
.home-head { max-width: 1100px; margin: 10px auto 26px; text-align: center; }
.home-head h1 { margin: 0; font-size: clamp(32px, 7vw, 52px); font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(90deg, #fff, #ffb3cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-head p { margin: 6px 0 0; color: var(--muted); }
.home-search {
  margin-top: 18px; width: min(420px, 100%); padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.06); color: var(--text); font: inherit; outline: none;
}
.home-search:focus { border-color: var(--accent); }
.grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 18px; }
.tile { text-decoration: none; display: flex; flex-direction: column; min-width: 0; }
.tile__img { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #1b1b24; box-shadow: 0 14px 30px -14px rgba(0,0,0,.7); transition: transform .2s; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile__img .cover__ph { font-size: 48px; }
.tile:hover .tile__img { transform: translateY(-3px) scale(1.02); }
.tile__t { margin-top: 10px; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__a { color: #d0d0da; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__k { color: var(--muted); font-size: 12px; margin-top: 2px; }
.tile[hidden] { display: none; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); }

/* Sortie : deux colonnes dès qu'il y a la largeur (ordinateur, tablette, téléphone en paysage).
   Gauche : pochette, titre, partage ; droite : plateformes, description, titres. */
@media (min-width: 760px) {
  body.release { display: flex; flex-direction: column; justify-content: center; }
  .card--release {
    width: 100%; max-width: 940px; padding: 28px;
    display: grid; grid-template-columns: minmax(280px, 38%) 1fr; column-gap: 32px;
    grid-template-rows: auto auto auto 1fr; align-items: start;
  }
  .card--release > .preview-flag { grid-column: 1 / -1; }
  .card--release > .rel-side { grid-column: 1; grid-row: 2; }
  .card--release > .rel-foot { grid-column: 1; grid-row: 3; }
  .card--release > .rel-main { grid-column: 2; grid-row: 2 / span 3; min-width: 0; }
  .card--release .head h1 { font-size: clamp(24px, 2.6vw, 32px); }
  .rel-main > :first-child { margin-top: 0; }
  .rel-foot .share { flex-wrap: wrap; }
  /* Liens masqués : « Extrait de », lecteur, texte puis partage dans la colonne droite */
  .rel-main > .meta--side { text-align: left; margin: 0 0 10px; }
  .card--nolinks > .rel-side { display: contents; }
  .card--nolinks .cover { grid-column: 1; grid-row: 2; }
  .card--nolinks .head { grid-column: 1; grid-row: 3; align-self: center; }
  .card--release.card--nolinks > .rel-main { grid-column: 2; grid-row: 2; }
  .card--release.card--nolinks > .rel-foot { grid-column: 2; grid-row: 3; align-self: center; padding-top: 14px; }
  .card--nolinks .rel-foot .share { margin-top: 0; }
}
@media (min-width: 1200px) {
  .card--release { max-width: 1160px; padding: 34px; grid-template-columns: 400px 1fr; column-gap: 40px; }
  .card--release .links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card--release .links li + li { margin-top: 0; }
  .card--release .tracks ol { columns: 2; column-gap: 28px; border-top: 0; }
  .card--release .tracks li { break-inside: avoid; }
}
/* Téléphone en paysage : pochette plus petite pour tenir à l'écran */
@media (min-width: 760px) and (max-height: 520px) {
  .card--release { grid-template-columns: minmax(220px, 32%) 1fr; }
}

@media (max-width: 420px) {
  .card { padding: 16px 14px 14px; border-radius: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .link, .tile__img { transition: none; }
}

/* Page artiste : peu de sorties, donc colonnes de taille fixe centrées */
.artist-page .grid { grid-template-columns: repeat(auto-fit, minmax(160px, 230px)); justify-content: center; }
@media (max-width: 420px) {
  .artist-page .grid { grid-template-columns: repeat(2, 1fr); }
}

/* Lecteur audio (extrait iTunes ou titre complet) */
.player {
  display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 10px 14px 10px 10px;
  border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
.player__btn {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--accent); color: #fff;
  box-shadow: 0 8px 22px -8px rgba(255,79,139,.7); transition: transform .15s, filter .15s;
}
.player__btn:hover { filter: brightness(1.08); transform: scale(1.04); }
.player__btn:active { transform: scale(.96); }
.player__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.player__btn svg { width: 22px; height: 22px; fill: currentColor; }
.player__btn .i-pause, .player.is-playing .player__btn .i-play { display: none; }
.player.is-playing .player__btn .i-pause { display: block; }
.player.is-loading .player__btn { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { filter: brightness(.8); } }
.player.is-error .player__btn { background: #4a4a58; box-shadow: none; cursor: default; }
.player__body { flex: 1; min-width: 0; }
.player__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.player__label { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__time { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.player__seek {
  --p: 0%; display: block; width: 100%; height: 18px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.player__seek:disabled { cursor: default; }
.player__seek::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p), rgba(255,255,255,.18) var(--p));
}
.player__seek::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); }
.player__seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.player__seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0;
}
.player__seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.player__seek:disabled::-webkit-slider-thumb { opacity: 0; }
.player__seek:disabled::-moz-range-thumb { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .player.is-loading .player__btn { animation: none; }
}
