/* Fond dynamique alimenté par la pochette du titre en cours. */
.artwork-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #020b17;
  isolation: isolate;
}
.artwork-backdrop img {
  display: block;
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center;
  filter: blur(5px) brightness(.66) saturate(1.25);
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .8s ease, transform 1.4s ease, filter .8s ease;
}
.artwork-backdrop img.ready {
  opacity: .96;
  transform: scale(1.015);
}
.artwork-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(3, 17, 31, .03), rgba(2, 10, 22, .25) 78%),
    linear-gradient(180deg, rgba(1, 10, 20, .1), rgba(2, 11, 23, .18));
}
.app-shell {
  position: relative;
  z-index: 1;
}
@media (max-width: 700px) {
  .artwork-backdrop img { filter: blur(3px) brightness(.62) saturate(1.22); }
  .artwork-backdrop img.ready { opacity: .92; }
}
@media (prefers-reduced-motion: reduce) {
  .artwork-backdrop img { transition: none; }
}

/* Logo fourni et réseaux configurés dans config.php. */
.brand { height: auto; min-height: 0; padding-bottom: 12px; display: flex; flex-direction: column; align-items: center; }
.brand a { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 0; }
.brand-logo { display: block; width: min(300px, 54vw); max-height: 145px; height: auto; object-fit: contain; filter: drop-shadow(0 5px 16px rgba(0, 0, 0, .38)); }
.social-links { display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 9px; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  line-height: 0;
  box-sizing: border-box;
  color: rgba(248, 251, 255, .9);
  text-decoration: none;
  border: 1px solid rgba(200, 230, 255, .28);
  border-radius: 50%;
  background: rgba(160, 205, 244, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13);
  transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease;
}
.social-link:hover { transform: translateY(-2px); color: #fff; background: rgba(15, 145, 255, .42); border-color: rgba(115, 205, 255, .75); }
.social-link svg { display: block; flex: none; width: 16px; height: 16px; margin: 0; }

/* Écran d’accueil et barre de chargement du player. */
.page-load-progress { position: fixed; z-index: 10002; inset: 0 0 auto; height: 3px; overflow: hidden; background: rgba(215, 236, 255, .12); pointer-events: none; opacity: 1; transition: opacity .35s ease; }
.page-load-progress > span { display: block; width: 7%; height: 100%; border-radius: 0 999px 999px 0; background: linear-gradient(90deg, #078dff, #4bd7ff); box-shadow: 0 0 13px rgba(40, 175, 255, .95); transition: width .22s ease; }
.page-load-progress.is-hidden { opacity: 0; }
.page-loader { position: fixed; z-index: 10001; inset: 0; display: grid; place-items: center; padding: 24px; color: #f8fbff; background: radial-gradient(ellipse at 50% 43%, rgba(12, 72, 117, .68), rgba(2, 11, 23, .95) 76%), #020b17; opacity: 1; visibility: visible; transition: opacity .45s ease, visibility .45s ease; }
.page-loader[hidden], .page-load-progress[hidden] { display: none; }
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader-content { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: translateY(-2vh); }
.page-loader-logo { display: block; width: min(340px, 72vw); max-height: 170px; object-fit: contain; filter: drop-shadow(0 8px 26px rgba(0, 0, 0, .45)); animation: loader-logo-in .75s cubic-bezier(.2,.8,.2,1) both; }
.page-loader-orbit { display: flex; align-items: center; justify-content: center; gap: 7px; height: 24px; margin-top: 21px; }
.page-loader-orbit span { width: 7px; height: 7px; border-radius: 50%; background: #dff5ff; box-shadow: 0 0 12px rgba(75, 196, 255, .85); animation: loader-pulse .9s ease-in-out infinite alternate; }
.page-loader-orbit span:nth-child(2) { animation-delay: .18s; background: #55c5ff; }
.page-loader-orbit span:nth-child(3) { animation-delay: .36s; }
.page-loader-content p { margin: 13px 0 0; color: rgba(230, 243, 255, .78); font-size: 13px; letter-spacing: .04em; }
@keyframes loader-pulse { from { opacity: .38; transform: scale(.72); } to { opacity: 1; transform: scale(1.25); } }
@keyframes loader-logo-in { from { opacity: 0; transform: translateY(9px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.reaction-strip { display: flex; align-items: center; justify-content: center; gap: 11px; margin: 3px 0 15px; min-height: 36px; }
.reaction-buttons { display: flex; align-items: center; gap: 7px; }
.reaction-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(200, 230, 255, .25);
  border-radius: 50%;
  background: rgba(220, 239, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.reaction-button:hover { transform: translateY(-3px) scale(1.12); background: rgba(34, 148, 255, .3); border-color: rgba(131, 211, 255, .72); }
.reaction-button:active, .reaction-button.reacting { transform: scale(.88); }
.interaction-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.interaction-count strong { color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.reaction-layer { position: fixed; z-index: 15; inset: 0; overflow: hidden; pointer-events: none; }
.snow-layer { position: fixed; z-index: 18; inset: 0; overflow: hidden; pointer-events: none; }
.snowflake { position: absolute; top: -8vh; left: var(--snow-left); color: rgba(245, 251, 255, .92); opacity: var(--snow-opacity); font-size: var(--snow-size); line-height: 1; text-shadow: 0 0 9px rgba(152, 215, 255, .85), 0 0 18px rgba(198, 232, 255, .48); animation: snow-fall var(--snow-duration) linear var(--snow-delay) infinite; will-change: transform; }
@keyframes snow-fall { from { transform: translate3d(0, -8vh, 0) rotate(0); } to { transform: translate3d(var(--snow-drift), 112vh, 0) rotate(var(--snow-spin)); } }
.reaction-float { position: absolute; display: block; font-size: clamp(30px, 4vw, 52px); line-height: 1; filter: drop-shadow(0 5px 13px rgba(0,0,0,.4)); animation: reaction-rise 1.7s cubic-bezier(.2,.7,.25,1) forwards; will-change: transform, opacity; }
.reaction-float::after { content: "✦"; position: absolute; top: -8px; right: -14px; color: #fff5b8; font: 700 14px/1 sans-serif; text-shadow: 0 0 12px rgba(255,255,255,.9); animation: reaction-spark 1s ease-out forwards; }
@keyframes reaction-rise { 0% { opacity: 0; transform: translate(-50%, 0) scale(.45) rotate(0); } 12% { opacity: 1; transform: translate(-50%, -8px) scale(1.18) rotate(-8deg); } 65% { opacity: 1; transform: translate(calc(-50% + var(--reaction-drift)), -125px) scale(1.3) rotate(var(--reaction-turn)); } 100% { opacity: 0; transform: translate(calc(-50% + var(--reaction-drift)), -205px) scale(.88) rotate(var(--reaction-turn)); } }
@keyframes reaction-spark { 0% { opacity: 0; transform: scale(.2) rotate(0); } 25% { opacity: 1; transform: scale(1.3) rotate(35deg); } 100% { opacity: 0; transform: scale(.4) rotate(80deg); } }
@media (max-width: 700px) {
  .brand { height: auto; min-height: 0; padding-bottom: 10px; }
  .brand-logo { width: min(220px, 58vw); max-height: 112px; }
  .social-links { margin-top: 7px; gap: 8px; }
  .social-link { flex-basis: 31px; width: 31px; height: 31px; }
  .social-link svg { width: 16px; height: 16px; }
  .page-loader-logo { width: min(270px, 76vw); max-height: 135px; }
  .page-loader-orbit { margin-top: 18px; }
  .reaction-strip { gap: 8px; margin: 0 0 12px; }
  .reaction-buttons { gap: 5px; }
  .reaction-button { width: 32px; height: 32px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .social-link, .reaction-button { transition: none; }
  .page-loader, .page-load-progress { transition: none; }
  .page-loader-logo, .page-loader-orbit span { animation-duration: .01ms; }
  .reaction-float, .reaction-float::after { animation-duration: .01ms; }
  .snowflake { display: none; }
}
