:root {
  --background: #080b0b;
  --surface: #111719;
  --surface-light: #182023;
  --text: #f2eee8;
  --muted: #9a9a9a;
  --accent: #d67a38;
  --accent-light: #f0a15f;
  --border: rgba(242, 238, 232, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(
      circle at top,
      rgba(214, 122, 56, 0.16),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #111719 0%,
      var(--background) 58%
    );
  font-family:
    Montserrat,
    Arial,
    sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.preview-page {
  width: min(100% - 32px, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 30px;
}

.preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.back-link:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 122, 56, 0.7);
  background: rgba(214, 122, 56, 0.12);
}

.preview-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.05),
    0 12px 30px rgba(0, 0, 0, 0.35);
}

.preview-heading {
  margin-bottom: 28px;
  text-align: center;
}

.preview-kicker,
.release-label {
  margin: 0;
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.preview-heading h1 {
  margin: 10px 0;
  font-size: clamp(2rem, 9vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.preview-description {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.release-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.02)
    ),
    var(--surface);
  box-shadow: var(--shadow);
}

.release-cover-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--surface-light);
}

.release-cover-wrapper::after {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(8, 11, 11, 0.82)
    );
  content: "";
  pointer-events: none;
}

.release-badge {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: #080b0b;
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.release-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.release-information {
  padding: 26px;
}

.release-information h2 {
  margin: 8px 0 5px;
  font-size: clamp(1.8rem, 8vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.release-artist {
  margin: 0;
  color: var(--accent-light);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-text {
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.release-audio {
  display: block;
  width: 100%;
  margin-top: 20px;
}

.release-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

.release-period__label {
  color: var(--muted);
}

.release-period strong {
  color: var(--text);
  text-align: right;
}

.preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  color: rgba(242, 238, 232, 0.46);
  font-size: 0.72rem;
}

.preview-footer p {
  margin: 0;
}

@media (max-width: 560px) {
  .preview-page {
    width: min(100% - 22px, 760px);
    padding-top: 16px;
  }

  .preview-header {
    margin-bottom: 34px;
  }

  .release-card {
    border-radius: 24px;
  }

  .release-information {
    padding: 22px 20px 24px;
  }

  .preview-footer {
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* ==================================================
   MODE PLAYER PLEIN ÉCRAN — SANS DÉFILEMENT
   ================================================== */

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
}

/* La page occupe exactement l'écran disponible */
.preview-page {
  width: min(100%, 560px);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  padding:
    max(10px, env(safe-area-inset-top))
    12px
    max(10px, env(safe-area-inset-bottom));

  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;

  overflow: hidden;
}

/* En-tête compact */
.preview-header {
  min-height: 44px;
  margin: 0;
  flex-shrink: 0;
}

.back-link {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.preview-logo {
  width: 44px;
  height: 44px;
}

/* On retire toute l'introduction du haut */
.preview-heading {
  display: none;
}

/* La zone principale utilise tout l'espace restant */
.preview-hero {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

/* Carte plein écran disponible */
.release-card {
  width: 100%;
  height: 100%;
  min-height: 0;

  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;

  overflow: hidden;
  border-radius: 24px;
}

/* Pochette adaptable, sans imposer un carré */
.release-cover-wrapper {
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
}

.release-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge plus compact */
.release-badge {
  top: 14px;
  left: 14px;
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.62rem;
}

/* Zone titre, artiste et lecteur */
.release-information {
  flex-shrink: 0;
  padding: 15px 18px 18px;
}

.release-label {
  display: none;
}

.release-information h2 {
  margin: 0 0 5px;
  font-size: clamp(1.65rem, 7vw, 2.35rem);
  line-height: 1;
}

.release-artist {
  margin: 0 0 12px;
  font-size: 0.86rem;
}

/* Éléments inutiles dans le mode player */
.release-text,
.release-period,
.preview-footer {
  display: none;
}

/* Lecteur compact */
.release-audio {
  display: block;
  width: 100%;
  height: 44px;
  margin: 10px 0 0;
}

/* Très petits écrans */
@media (max-height: 700px) {
  .preview-page {
    gap: 7px;
    padding-top: max(7px, env(safe-area-inset-top));
    padding-bottom: max(7px, env(safe-area-inset-bottom));
  }

  .preview-header {
    min-height: 38px;
  }

  .back-link {
    min-height: 36px;
  }

  .preview-logo {
    width: 38px;
    height: 38px;
  }

  .release-information {
    padding: 12px 15px 14px;
  }

  .release-information h2 {
    font-size: 1.55rem;
  }

  .release-audio {
    margin-top: 8px;
  }
}
/* ==================================================
   CORRECTION POCHETTE CARRÉE
   ================================================== */

.preview-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.release-card {
  width: 100%;
  height: auto;
  max-height: 100%;
  display: grid;
  grid-template-rows: auto auto;
  overflow: hidden;
}

/* La pochette conserve désormais son véritable format carré */
.release-cover-wrapper {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  background: #080b0b;
}

.release-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Sécurité si le badge existe encore dans le HTML */
.release-badge {
  display: none;
}

/* Partie basse plus compacte */
.release-information {
  padding: 14px 18px 16px;
}

.release-information h2 {
  margin: 0 0 4px;
}

.release-artist {
  margin-bottom: 10px;
}

.release-audio {
  margin-top: 8px;
}
.release-card {
  transform: translateY(-30px);
}