.album-opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  pointer-events: none;

  background:
    radial-gradient(circle at 50% 45%, rgba(138, 43, 226, 0.34), transparent 34%),
    radial-gradient(circle at 50% 58%, rgba(0, 255, 255, 0.20), transparent 42%),
    linear-gradient(
      180deg,
      rgba(2, 2, 8, 0.08) 0%,
      rgba(4, 4, 12, 0.78) 58%,
      rgba(0, 0, 0, 0.98) 100%
    );

  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);

  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

body.album-opening-active .album-opening-overlay {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Texte dédié de transition */
.album-opening-text {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2147483602;
  pointer-events: none;

  transform: translate(-50%, -42%) scale(0.94);
  opacity: 0;
  visibility: hidden;

  color: #ffffff;
  font-family: var(--pg-menu-font, "Orbitron", "Audiowide", sans-serif);
  font-size: clamp(0.88rem, 3vw, 1.22rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;

  text-shadow:
    0 0 8px #ffffff,
    0 0 18px var(--neon, #8a2be2),
    0 0 34px rgba(0, 255, 255, 0.72);

  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

body.album-opening-active .album-opening-text {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Ligne lumineuse */
.album-opening-line {
  position: fixed;
  left: 50%;
  top: calc(50% + 44px);
  z-index: 2147483601;
  width: 0;
  height: 2px;
  pointer-events: none;

  transform: translateX(-50%);
  opacity: 0;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.95),
    rgba(255, 255, 255, 0.95),
    rgba(138, 43, 226, 0.95),
    transparent
  );

  box-shadow:
    0 0 8px rgba(0, 255, 255, 0.85),
    0 0 18px rgba(138, 43, 226, 0.65);

  transition:
    width 0.82s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s ease;
}

body.album-opening-active .album-opening-line {
  width: min(340px, 72vw);
  opacity: 1;
}

/* Le contenu recule, mais pas les éléments de transition */
body.album-opening-active header,
body.album-opening-active main,
body.album-opening-active section,
body.album-opening-active footer {
  transform: scale(0.985);
  opacity: 0.42;
  filter: blur(2.5px);

  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 480px) {
  .album-opening-text {
    width: 86vw;
    line-height: 1.35;
    white-space: normal;
  }

  .album-opening-line {
    top: calc(50% + 58px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .album-opening-overlay,
  .album-opening-text,
  .album-opening-line,
  body.album-opening-active header,
  body.album-opening-active main,
  body.album-opening-active section,
  body.album-opening-active footer {
    transition: none !important;
  }
}


body.album-opening-active::after { visibility: hidden !important; }
