/* ==========================================================================
   YEÄT · archivë — stylesheet
   Palette sobre + accent vert acide.
   Édite les --variables ci-dessous pour changer le thème global.
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-alt: #0f0f0f;
  --bg-card: #131313;
  --ink: #f2efe4;
  --ink-dim: #7d7b71;
  --ink-faint: #3a3935;
  --accent: #c4ff2e;
  --accent-warm: #ff4423;
  --border: #1e1e1c;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Light mode ===== */
body.light-mode {
  --bg: #e8e4dc;
  --bg-alt: #dedad2;
  --bg-card: #f2eeea;
  --ink: #1a1916;
  --ink-dim: #6b6860;
  --ink-faint: #b8b4ac;
  --accent: #7aa000;
  --accent-warm: #cc2200;
  --border: #cac6be;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

/* scroll-behavior: smooth is intentionally removed from html — it blocks
   the browser rendering pipeline during SPA navigation when scrollTo() is
   called after a DOM swap (causes 30+ second freeze on heavy pages).
   Smooth scroll on anchor links can be added per-element if needed. */
html { scroll-behavior: auto; }

/* Custom scrollbar (all pages): hairline track, square thumb, acid-green on
   hover. The viewport scrollbar follows <html>, so the light theme (class on
   <body>) is picked up with :has(). Firefox only supports scrollbar-color. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); border-left: 1px solid var(--border); }
::-webkit-scrollbar-thumb { background: var(--ink-faint); border: 2px solid var(--bg); transition: background .2s; }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background: var(--accent); }
::-webkit-scrollbar-corner { background: var(--bg); }
html:has(body.light-mode)::-webkit-scrollbar-track { background: #e8e4dc; border-left-color: #cac6be; }
html:has(body.light-mode)::-webkit-scrollbar-thumb { background: #b0aca2; border-color: #e8e4dc; }
html:has(body.light-mode)::-webkit-scrollbar-thumb:hover { background: #7aa000; }
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: var(--ink-faint) var(--bg); }
  html:has(body.light-mode) { scrollbar-color: #b0aca2 #e8e4dc; }
}

/* ===== Custom diamond bell cursor ===== */
/* Kill every native cursor (arrow, hand, text, etc.) so only the bell is shown */
*, *::before, *::after {
  cursor: none !important;
}

.bell-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-200px, -200px);
  will-change: transform;
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.55))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.bell-cursor svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-22deg);
  transform-origin: 50% 50%;
  animation: bell-shimmer 2.2s ease-in-out infinite;
}

.bell-cursor.hover {
  filter:
    drop-shadow(0 0 6px rgba(196, 255, 46, 0.85))
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.8))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.bell-cursor.hover svg {
  animation-duration: 0.9s;
}

@keyframes bell-shimmer {
  0%, 100% { filter: brightness(1) saturate(1); }
  50%      { filter: brightness(1.4) saturate(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .bell-cursor svg { animation: none; }
}

/* ===== Page transition cover (quick directional sweep with "wait…" label) ===== */
html {
  background: #000;
}

.page-transition-cover {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: #000;
  pointer-events: none;
  transform: translate3d(100%, 0, 0); /* translate3d forces GPU compositing */
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, visibility;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate; /* own stacking context — won't interact with the era nav strip's mix-blend */
}

/* Only visible while a transition is in progress */
body.page-exiting  .page-transition-cover,
body.page-entering .page-transition-cover {
  visibility: visible;
}

.page-transition-cover .label {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 8vw, 56px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  text-transform: lowercase;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(196, 255, 46, 0.35);
}

.nav-dots {
  display: inline;
}

.nav-dots span {
  opacity: 0;
}

/*
  Cycle de 1.5s, chaque point a sa propre animation :
  - Point 1 : visible de 0% à 100% (toute la durée sauf reset)
  - Point 2 : visible de 33% à 100%
  - Point 3 : visible de 66% à 100%
  Le reset (opacity:0) se fait instantanément en fin de cycle via step-end
*/

.nav-dots span:nth-child(1) { animation: dot1 1.5s step-start infinite; }
.nav-dots span:nth-child(2) { animation: dot2 1.5s step-start infinite; }
.nav-dots span:nth-child(3) { animation: dot3 1.5s step-start infinite; }

@keyframes dot1 {
  0%        { opacity: 1; }
  75%       { opacity: 1; }
  75.0001%  { opacity: 0; }
  100%      { opacity: 0; }
}
@keyframes dot2 {
  0%        { opacity: 0; }
  25%       { opacity: 0; }
  25.0001%  { opacity: 1; }
  75%       { opacity: 1; }
  75.0001%  { opacity: 0; }
  100%      { opacity: 0; }
}
@keyframes dot3 {
  0%        { opacity: 0; }
  50%       { opacity: 0; }
  50.0001%  { opacity: 1; }
  75%       { opacity: 1; }
  75.0001%  { opacity: 0; }
  100%      { opacity: 0; }
}

/* Keep the custom cursor visible + on top of the transition cover during nav
   (z-index 100000 > cover's 99998 → naturally sits above). */

/* Forward navigation (right → left sweep) */
body.page-exiting[data-exit-dir="forward"] .page-transition-cover {
  animation: cover-in-from-right 0.26s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
body.page-entering[data-enter-dir="forward"] .page-transition-cover {
  animation: cover-out-to-left 0.28s cubic-bezier(0.3, 0, 0.3, 1) both;
}

/* Backward navigation (left → right sweep) */
body.page-exiting[data-exit-dir="backward"] .page-transition-cover {
  animation: cover-in-from-left 0.26s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
body.page-entering[data-enter-dir="backward"] .page-transition-cover {
  animation: cover-out-to-right 0.28s cubic-bezier(0.3, 0, 0.3, 1) both;
}

@keyframes cover-in-from-right { from { transform: translate3d(100%, 0, 0); }  to { transform: translate3d(0, 0, 0); } }
@keyframes cover-out-to-left   { from { transform: translate3d(0, 0, 0); }     to { transform: translate3d(-100%, 0, 0); } }
@keyframes cover-in-from-left  { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes cover-out-to-right  { from { transform: translate3d(0, 0, 0); }     to { transform: translate3d(100%, 0, 0); } }

@media (prefers-reduced-motion: reduce) {
  .page-transition-cover { display: none !important; }
}

/* ===== Site asleep (cursor left the site) — CRT turn-off overlay ===== */
.site-asleep-overlay {
  position: fixed;
  inset: 0;
  z-index: 99997;
  pointer-events: none;
  opacity: 0;
  background: rgba(5, 5, 5, 0.92);
  transition: opacity 0.35s ease;
}

.site-asleep-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
    rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px,
    transparent 1px, transparent 3px);
  pointer-events: none;
}

.site-asleep-overlay .crt-line {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 1);
  transform: translateY(-50%);
  opacity: 0;
}

.site-asleep-overlay .asleep-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease 0.18s;
  text-shadow: 0 0 24px rgba(196, 255, 46, 0.25);
}

body.site-asleep .site-asleep-overlay { opacity: 1; }
body.site-asleep .site-asleep-overlay .asleep-text { opacity: 1; }

body.site-asleep  .site-asleep-overlay .crt-line { animation: crt-off-line 0.32s ease-out; }
body.site-waking  .site-asleep-overlay           { animation: crt-wake 0.35s forwards; }
body.site-waking  .site-asleep-overlay .crt-line { animation: crt-on-line 0.32s ease-out; }

@keyframes crt-off-line {
  0%   { height: 100%; opacity: 1; }
  55%  { height: 3px;  opacity: 1; }
  100% { height: 0;    opacity: 0; }
}

@keyframes crt-on-line {
  0%   { height: 0;    opacity: 0; }
  25%  { height: 3px;  opacity: 1; }
  70%  { height: 100%; opacity: 0.55; }
  100% { height: 100%; opacity: 0; }
}

@keyframes crt-wake {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .site-asleep-overlay,
  .site-asleep-overlay .crt-line,
  body.site-asleep  .site-asleep-overlay .crt-line,
  body.site-waking  .site-asleep-overlay,
  body.site-waking  .site-asleep-overlay .crt-line { animation: none !important; transition: opacity 0.2s ease; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

/* ===== Grain overlay ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* plain layer instead of mix-blend-mode: overlay, which re-blended the whole
     window on every scroll frame (main cause of choppy scrolling) */
  will-change: transform;
}

/* ===== Scroll progress ===== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  z-index: 999;
  box-shadow: 0 0 10px var(--accent);
}

/* ==========================================================================
   NAV
   ========================================================================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 24px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 24px;
  align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav .logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  /* leave room for the back arrow button that sits to its left */
  margin-left: 44px;
  justify-self: start;
}

/* Colonne droite : Instagram + toggle thème */
nav .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ===== Custom back-arrow button (left of the logo) — minimal, no box ===== */
.yp-back-btn {
  position: fixed;
  top: 33px;
  left: 48px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease, color 0.2s ease;
  mix-blend-mode: difference;
}
.yp-back-btn.visible {
  opacity: 0.75;
  pointer-events: auto;
}
.yp-back-btn:hover {
  opacity: 1;
  transform: translateX(-3px);
}
.yp-back-btn:active {
  transform: translateX(-5px);
}
.yp-back-btn svg {
  display: block;
}

nav ul { display: flex; list-style: none; gap: 16px; align-items: center; transition: opacity 0.4s ease, transform 0.4s ease; }
nav ul li { display: flex; }
nav ul li a {
  /* Padding élargi pour avoir une hitbox cliquable plus grande sans changer
     le rendu visuel des liens (le texte reste à la même taille). */
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
nav a { color: #fff; text-decoration: none; opacity: 0.6; transition: opacity 0.3s ease; }
nav a:hover { opacity: 1; }
nav a.active { opacity: 1; }
nav a.active::before { content: "● "; color: var(--accent); }

nav .status { display: flex; align-items: center; gap: 8px; color: #fff; }
nav .status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ==========================================================================
   HERO (homepage)
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding: 140px 48px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden; /* important */

  background: url("img/yeat-complex.jpg") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0) 25%,
    rgba(0,0,0,0) 75%,
    rgba(0,0,0,0.9) 100%
  );
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  /* 22vw scales with viewport width, but we cap it so 4 letters always fit
     on one line. The hero has 96px of horizontal padding (48px each side),
     so the usable width is (100vw - 96px). Each of the 4 letters + spacing
     needs ~25% of that. Using 20vw keeps the total ~80vw < usable width. */
  font-size: clamp(60px, 20vw, 320px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 60px 0;
  position: relative;
  white-space: nowrap; /* prevent letters from wrapping to a second line */
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(80px);
  filter: blur(20px);
  animation: reveal 1.2s var(--ease) forwards;
}

.hero-title span:nth-child(1) { animation-delay: 0.3s; }
.hero-title span:nth-child(2) { animation-delay: 0.4s; }
.hero-title span:nth-child(3) { animation-delay: 0.5s; }
.hero-title span:nth-child(4) { animation-delay: 0.6s; }

.hero-title .accent-char {
  color: var(--accent);
  font-style: italic;
}

/* --- Hero title responsive scaling ---
   The 4-letter title must always stay on ONE line.
   Formula: (4 letters × font-size × ~0.65 char-width) + letter-spacing < usable width
   Breakpoints tuned so the title never wraps at any common screen size. */
@media (max-width: 1280px) {
  .hero-title { font-size: clamp(60px, 18vw, 280px); }
  .hero { padding-left: 36px; padding-right: 36px; }
}
@media (max-width: 1024px) {
  .hero-title { font-size: clamp(56px, 17vw, 240px); }
}
@media (max-width: 768px) {
  .hero-title { font-size: clamp(48px, 16vw, 180px); letter-spacing: -0.03em; }
  .hero { padding: 100px 24px 60px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(44px, 15vw, 140px); letter-spacing: -0.02em; }
  .hero { padding: 80px 20px 48px; }
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes fadeIn { to { opacity: 1; } }

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: end;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1s forwards;
}

.hero-tag {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: 18px;
  max-width: 340px;
  line-height: 1.4;
  color: var(--ink);
}

.hero-tag em { color: var(--accent); font-style: italic; }

.hero-info {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.hero-info strong {
  display: block;
  color: var(--ink);
  font-weight: 400;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.scroll-hint {
  text-align: right;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   PAGE HEADER (sub-pages)
   ========================================================================== */
.page-header {
  padding: 180px 48px 80px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 160vw;
  height: 420px;
  background: radial-gradient(
    ellipse 80% 40% at 50% 0%,
    rgba(180,255,120,0.45) 0%,
    rgba(180,255,120,0.22) 35%,
    rgba(180,255,120,0.08) 65%,
    transparent 100%
  );
  filter: blur(45px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}

/* (removed old body:has(.page-header) footer::before — replaced by the
   consolidated footer::after glow below so every page gets it, not just subpages) */

/* Animations (inchangées) */
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes glowPulseSlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.6; }
}

.page-header .crumbs {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 32px;
}

.page-header .crumbs a { color: var(--ink-dim); text-decoration: none; transition: color 0.3s ease; }
.page-header .crumbs a:hover { color: var(--accent); }
.page-header .crumbs .sep { margin: 0 12px; color: var(--ink-faint); }
.page-header .crumbs .current { color: var(--accent); }

.page-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
  opacity: 0;
  animation: reveal 1s var(--ease) 0.2s forwards;
  transform: translateY(40px);
  filter: blur(10px);
}

.page-title em { color: var(--accent); font-style: italic; }

.page-header .tag {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: 18px;
  max-width: 600px;
  line-height: 1.4;
  color: var(--ink-dim);
  opacity: 0;
  animation: fadeIn 1s var(--ease) 0.8s forwards;
}

.page-header .tag em { color: var(--ink); font-style: normal; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
section { padding: 120px 48px; position: relative; }

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 48px;
}

.section-label .num { color: var(--accent); font-weight: 500; }
.section-label .line { flex: 1; height: 1px; background: var(--border); }

/* ── Sort dropdown ─────────────────────────────────────────── */
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  margin-top: -24px;
}
.sort-wrap label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}
.sort-select {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  transition: border-color 0.2s;
}
.sort-select:hover { border-color: var(--accent); }
.sort-select:focus { outline: none; border-color: var(--accent); }
.sort-select option { background: var(--bg); color: var(--ink); }
body.light-mode .sort-select { border-color: var(--border); color: var(--ink); }
body.light-mode .sort-select option { background: #fff; }

.era-shuffle-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.era-shuffle-btn:hover { background: var(--accent); color: #000; }

.era-badge-filters {
  display: flex;
  gap: 6px;
  align-items: center;
}
.era-badge-filter-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.era-badge-filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.era-badge-filter-btn.active { color: #000; }
.era-badge-filter-btn[data-badge="og"]     { color: #7ab800; border-color: #7ab800; }
.era-badge-filter-btn[data-badge="og"].active    { background: #7ab800; border-color: #7ab800; color: #000; }
.era-badge-filter-btn[data-badge="full"]   { color: #09376b; border-color: #09376b; }
.era-badge-filter-btn[data-badge="full"].active  { background: #09376b; border-color: #09376b; color: #fff; }
.era-badge-filter-btn[data-badge="edited"] { color: #ff6eb4; border-color: #ff6eb4; }
.era-badge-filter-btn[data-badge="edited"].active{ background: #ff6eb4; border-color: #ff6eb4; color: #000; }

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 80px;
  max-width: 1200px;
}

.section-title em { color: var(--accent); font-style: italic; }

/* ==========================================================================
   ABOUT (homepage)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  max-width: 1400px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--ink);
  max-width: 560px;
}

.about-text p:first-child {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.stat {
  background: var(--bg);
  padding: 32px;
  transition: background 0.4s ease;
}

.stat:hover { background: var(--bg-card); }

.stat-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  color: var(--ink);
}

/* ==========================================================================
   CTA CARDS (homepage)
   ========================================================================== */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}

.cta-card {
  background: var(--bg);
  padding: 40px 32px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
  min-height: 260px;
}

.cta-card::after {
  content: "→";
  position: absolute;
  top: 32px; right: 32px;
  font-size: 20px;
  color: var(--ink-faint);
  transition: all 0.4s var(--ease);
}

.cta-card:hover { background: var(--bg-card); }
.cta-card:hover::after { color: var(--accent); transform: translate(4px, -4px); }

.cta-card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.cta-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: auto;
}

.cta-card p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
  margin-top: 8px;
}

/* ==========================================================================
   DISCOGRAPHY
   ========================================================================== */
.disco-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.tab {
  padding: 14px 24px;
  background: none;
  border: none;
  color: var(--ink-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.tab:hover { color: var(--ink); }
.tab.active { color: var(--accent); }

/* Animated underline indicator — exists on every tab, visible only on active */
.tab::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  opacity: 0;
  transform: scaleX(0.25);
  transform-origin: center center;
  transition: opacity 0.28s ease, transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

.tab.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.tab-count {
  color: var(--ink-faint);
  margin-left: 6px;
  font-size: 9px;
}

.disco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.release {
  background: var(--bg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  transition: background 0.5s var(--ease), opacity 0.8s ease, transform 0.8s ease;
}

.release-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
  filter: grayscale(30%);
}

.release::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  top: 0; left: -100%;
  width: 100%; height: 1px;
  background: var(--accent);
  transition: left 0.6s var(--ease);
}

.release:hover .release-bg {
  opacity: 0.4;
}

/* animated cover played on hover (discography.html script); the filter keeps it off GPU overlay planes */
.release-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease; filter: brightness(1.001); }
.release.anim-on .release-bg video { opacity: 1; }
.release:hover::before { left: 0; }

.release-year {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 96px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.6);
  transition: color 0.4s ease;
  margin-bottom: 24px;
}

.release:hover .release-year { color: var(--accent); }

.release-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  /* Same size as .era-name on the unreleased page for visual consistency.
     The mobile-specific override is handled in @media (max-width: 900px). */
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.85);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.release-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.3);
}

.release-meta .flag {
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.release:hover .flag { opacity: 1; }

.release > *:not(.release-bg) {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   CLIPS PAGE
   ========================================================================== */

.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.clip-card {
  background: var(--bg);
  overflow: hidden;
  position: relative;
  transition: background 0.4s ease;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.clip-card:hover { background: var(--bg-card); }

.clip-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.clip-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.4s ease, transform 0.6s var(--ease);
}

.clip-card:hover .clip-thumb img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.clip-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.clip-card:hover .clip-play {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  transform: translate(-50%, -50%) scale(1.1);
}

.clip-info {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.clip-date {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

.clip-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clip-card:hover .clip-title { color: var(--accent); }

.clip-era {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.leaks-section {
  margin-top: 80px;
}

.leak-card {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 32px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: padding 0.4s var(--ease);
}

.leak-card:hover { padding-left: 16px; }

.leak-card .leak-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.leak-card .leak-info .leak-title {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  transition: color 0.3s ease;
  margin-bottom: 4px;
}

.leak-card:hover .leak-title { color: var(--accent); }

.leak-card .leak-info .leak-sub {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.leak-card .leak-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.leak-badge {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--ink-dim);
  white-space: nowrap;
}

.leak-badge.unreleased { color: var(--accent-warm); border-color: var(--accent-warm); }
.leak-badge.snippet { color: var(--accent); border-color: var(--accent); }

@media (max-width: 900px) {
  .clips-grid {
    grid-template-columns: none !important;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: 48vw;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: calc(100% + 40px);
    margin-left: -20px;
    background: transparent !important;
    border: none !important;
    gap: 1px;
  }
  .clips-grid::-webkit-scrollbar { display: none; }
  .leak-card { grid-template-columns: 40px 1fr auto; gap: 16px; }
  .leak-card .leak-date { display: none; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.leak {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 32px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: padding 0.4s var(--ease);
  cursor: pointer;
}

.leak:hover { padding-left: 16px; }

.leak-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.leak-title {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  transition: color 0.4s ease;
}

.leak:hover .leak-title { color: var(--accent); }

/* ==========================================================================
   EP NAV (prev / next entre scrapped EPs) — fixed en bas comme era-nav-strip
   ========================================================================== */
.ep-nav {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0 48px;
  pointer-events: none;
  z-index: 40;
  mix-blend-mode: difference;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ep-nav.hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.ep-nav .era-nav-link {
  pointer-events: auto;
  color: #fff;
}

.ep-nav .era-nav-arrow,
.ep-nav .era-nav-name { color: #fff; }
.ep-nav .era-nav-label { color: rgba(255,255,255,0.7); }

.ep-nav-placeholder { flex: 1; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  padding: 80px 48px 80px;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  position: relative;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.footer-brand em { color: var(--accent); font-style: italic; }

.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 16px;
  font-weight: 400;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Centre du gradient sous le bord bas — clippé par overflow:hidden */
footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160vw;
  height: 420px;
  background: radial-gradient(
    ellipse 80% 40% at 50% 110%,
    rgba(180,255,120,0.45) 0%,
    rgba(180,255,120,0.22) 35%,
    rgba(180,255,120,0.08) 65%,
    transparent 100%
  );
  filter: blur(45px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.reveal.visible {
  opacity: 1;
}
/* After SPA swap: suppress transitions on tracks to avoid computing animation
   states for 500+ elements between rAF frames (was causing 30s+ freeze). */
.spa-swapped .track {
  transition: none !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Laptop breakpoint — réduit padding et gap pour que les 8 liens nav
   tiennent sur une seule ligne entre 901px et 1300px */
@media (min-width: 901px) and (max-width: 1300px) {
  nav {
    padding: 20px 24px;
    gap: 0 20px;
  }
  nav ul { gap: 0; }
  nav ul li a { padding: 10px 6px; }
  nav .logo { margin-left: 28px; font-size: 15px; }
  .yp-back-btn { left: 24px; }
}

@media (max-width: 900px) {
  /* Layout adaptatif tablette/mobile — la nav desktop disparaît,
     le menu burger prend le relais (injecté par JS dans le gros bloc plus bas) */
  nav ul { display: none; }
  nav .nav-right { display: none; }
  /* section padding géré dans le bloc mobile principal ci-dessous */
  .hero { padding: 120px 20px 60px; }
  .page-header { padding: 80px 20px 32px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .leak { grid-template-columns: 40px 1fr auto; gap: 16px; }
  .disco-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 10;
  }
  .disco-tabs::-webkit-scrollbar { display: none; }
  .tab { position: relative; z-index: 10; }
}

a.release {
  display: block;
  text-decoration: none;
  color: inherit;
}

.marquee-section {
  position: relative;
  overflow: hidden;
}

.marquee-section::before {
  content: var(--marquee-text);
  position: absolute;
  top: 40px; left: 0;
  white-space: nowrap;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 120px;
  color: var(--ink-faint);
  opacity: 0.15;
  letter-spacing: -0.04em;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
  pointer-events: none;
  will-change: transform;
}

/* ==========================================================================
   PRELOADER SIGNATURE
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Bloquer le scroll pendant le preloader — mobile uniquement */
@media (max-width: 768px) {
  body:has(#preloader:not(.hidden)) {
    overflow: hidden !important;
  }
}

/* Cacher burger/logo/toggle pendant le preloader */
body:has(#preloader:not(.hidden)) .nav-burger,
body:has(#preloader:not(.hidden)) .nav-logo-mobile,
body:has(#preloader:not(.hidden)) .theme-toggle-mobile-fixed {
  opacity: 0 !important;
  pointer-events: none !important;
}

#preloader svg {
  width: clamp(200px, 40vw, 420px);
  height: auto;
  transform: translateX(12%);
}

#preloader svg path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6000;
  stroke-dashoffset: 6000;
  animation: drawSig 2s var(--ease) forwards;
}

#preloader svg path.filled {
  animation: drawSig 3.5s var(--ease) forwards, fillSig 1s ease 1.3s forwards;
}

@keyframes drawSig {
  to { stroke-dashoffset: 0; }
}

@keyframes fillSig {
  to { fill: var(--ink); stroke: transparent; }
}

/* ==========================================================================
   UNRELEASED — ERA CARDS
   ========================================================================== */
.era-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.era-card {
  background: var(--bg);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, opacity 0.8s ease, transform 0.8s ease;
  min-height: 180px;
}

.era-card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 1px;
  background: var(--accent);
  transition: left 0.6s var(--ease);
}

/* Textes toujours au-dessus du release-bg */
.era-card > *:not(.release-bg) {
  position: relative;
  z-index: 1;
}

.era-card:hover { background: var(--bg-card); }
.era-card:hover::before { left: 0; }

.era-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.era-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.3s ease;
}

.era-card:hover .era-name { color: var(--accent); }

.era-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.era-arrow {
  color: var(--ink-faint);
  font-size: 16px;
  transition: all 0.3s ease;
}

.era-card:hover .era-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

/* ==========================================================================
   ERA PAGE — TRACK LIST
   ========================================================================== */
.track-list {
  max-width: 1100px;
}

.track {
  display: grid;
  /* cols: info | date | badge | duration | (download) | (heart)
     extra auto cols collapse to 0 when empty, stay in one row when filled. */
  grid-template-columns: 1fr auto auto auto auto auto;
  gap: 32px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.4s ease, opacity 0.8s ease, transform 0.8s ease, padding 0.3s ease;
  /* iOS : <a> sans href ne reçoit pas les tap events sans ces deux règles */
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.track-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .track:hover { padding-left: 24px; }
  .track:hover .track-title { color: var(--accent); }
}

.track-info .track-title {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  transition: color 0.3s ease;
  margin-bottom: 4px;
}

.track-info .track-sub {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.track-new-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #000;
  line-height: 1.4;
  white-space: nowrap;
  margin-right: 7px;
  position: relative;
  top: -1px;
  animation: new-badge-glow 2s ease-in-out infinite;
}

@keyframes new-badge-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--accent); }
  50%       { opacity: 0.75; box-shadow: 0 0 10px var(--accent); }
}

.track-badge {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--ink-dim);
  white-space: nowrap;
  position: relative;
}

.track-badge.og { color: #7ab800; border-color: #7ab800; }
.track-badge.new { color: var(--accent); border-color: var(--accent); }
.track-badge.snippet { color: #a70d0d; border-color: #a70d0d; }
.track-badge.full { color: #09376b; border-color: #09376b; }
.track-badge.edited { color: #ff6eb4; border-color: #ff6eb4; }
.track-badge.master { color: #d2d433; border-color: #d2d433; }
.track-badge.soundcloud { color: #ff8c42; border-color: #ff8c42; }
.track-badge.deluxe { color: #7dd3fc; border-color: #7dd3fc; }

/* Tooltip on hover for track badges */
.track-badge::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.track-badge::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent;
  border-top-color: var(--border);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1000;
}

.track-badge:hover::after,
.track-badge:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.track-badge.og::after { content: "Original — the first, original version of the track"; }
.track-badge.new::after { content: "New — recently added / recently leaked track"; }
.track-badge.snippet::after { content: "Snippet — short preview of the track, often shared live or on social media"; }
.track-badge.full::after { content: "Full — complete version of the track (as opposed to a snippet)"; }
.track-badge.edited::after { content: "Edited — modified version of the original (edit, remix, clean, etc.)"; }
.track-badge.master::after { content: "Master — studio master file, higher audio quality (usually lossless WAV)"; }
.track-badge.soundcloud::after { content: "SoundCloud — track uploaded on Yeat's SoundCloud (exclusive or archive upload)"; }
.track-badge.deluxe::after { content: "Deluxe — bonus track from a deluxe / extended edition of a release"; }

.track-duration {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.era-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.era-nav a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000;
  background: var(--accent);
  text-decoration: none;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.3s var(--ease);
}

.era-nav a:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .era-grid {
    grid-template-columns: none !important;
    grid-template-rows: repeat(2, 38vw);
    grid-auto-flow: column;
    grid-auto-columns: 38vw;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: calc(100% + 40px);
    margin-left: -20px;
    background: transparent !important;
    border: none !important;
    gap: 0;
  }
  .era-grid::-webkit-scrollbar { display: none; }
  .era-card {
    width: 38vw;
    height: 38vw !important;
    min-height: 0 !important;
    max-height: 38vw !important;
    aspect-ratio: 1 / 1 !important;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    overflow: hidden;
    grid-row: span 1 !important;
    align-self: start;
  }
  .era-card { gap: 4px; }
  .era-card .release-bg { background-size: contain; background-repeat: no-repeat; background-position: left center; }
  .era-card .era-num  { font-size: 8px; letter-spacing: 0.12em; }
  .era-card .era-name {
    font-size: 11px;
    line-height: 1.2;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .era-card .era-footer {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    margin-top: 0;
    padding-top: 6px;
    font-size: 8px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
  .era-card .era-arrow { font-size: 12px; }
  .track { grid-template-columns: 1fr auto auto auto auto auto; gap: 16px; }
}

/* ==========================================================================
   ERA / EP COVER
   ========================================================================== */
.page-header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  min-width: 0;
}
.page-header-inner > div {
  min-width: 0;
  overflow: hidden;
}

.cover-art {
  width: 300px;
  height: 300px;
  object-fit: cover;
  filter: grayscale(20%);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
  transition: filter 0.4s ease, transform 0.4s var(--ease), box-shadow 0.4s ease;
  flex-shrink: 0;
}

.cover-art:hover {
  filter: grayscale(0%);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 4px 16px rgba(0,0,0,0.5);
}

@media (max-width: 900px) {
  .page-header-inner { display: flex; flex-direction: row; align-items: center; gap: 16px; }
  .cover-art { width: 120px; height: 120px; flex-shrink: 0; }
}

.edition-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.edition-cover {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.edition-info .edition-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.edition-info .edition-sub {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 4px;
}

.track-cover {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.track.with-cover {
  grid-template-columns: 48px 1fr auto auto auto auto auto;
}

.release.hidden {
  display: none;
}

/* ===== Inline audio player (fixed at bottom) ===== */
.audio-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 40px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: 'JetBrains Mono', monospace;
}

.audio-player.visible { transform: translateY(0); }

.audio-player .ap-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-player .ap-cover {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: none; /* hidden until a track with a known cover starts playing */
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.audio-player .ap-info-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.audio-player .ap-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-player .ap-sub {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-player .ap-goto {
  display: none;            /* hidden until a track from another page is playing */
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  width: fit-content;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.audio-player .ap-goto:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 12px rgba(196, 255, 46, 0.4);
}

.audio-player .ap-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.audio-player .ap-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-player .ap-btn {
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
  padding: 0;
}

.audio-player .ap-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.audio-player .ap-btn.ap-play {
  width: 42px;
  height: 42px;
  border-color: var(--accent);
  color: var(--accent);
  font-size: 14px;
}

.audio-player .ap-btn.ap-play:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 16px rgba(196, 255, 46, 0.4);
}

.audio-player .ap-track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}

.audio-player .ap-fill {
  position: relative;
  flex: 1;
  height: 3px;
  background: var(--border);
  cursor: pointer;
}

.audio-player .ap-fill > span {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--accent);
  will-change: width;
  box-shadow: 0 0 10px var(--accent);
}

.audio-player .ap-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.audio-player .ap-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.audio-player .ap-volume input {
  width: 72px;
  appearance: none;
  -webkit-appearance: none;
  height: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

.audio-player .ap-volume input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 8px; height: 8px;
  background: var(--ink-dim);
  border-radius: 50%;
}
.audio-player .ap-volume input::-moz-range-thumb {
  width: 8px; height: 8px;
  background: var(--ink-dim);
  border-radius: 50%;
  border: none;
}

.audio-player .ap-close {
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-size: 18px;
  padding: 6px 10px;
  transition: color 0.2s ease;
}
.audio-player .ap-close:hover { color: var(--accent-warm); }

/* Show a subtle accent on track rows that have a playable audio file */
.track[data-audio-ready]:hover .track-title { color: var(--accent); }

/* Era prev/next nav strip — fixed at the TOP of the viewport (below the main
   nav). Individual links use mix-blend-mode: difference so text/arrows invert
   against whatever content is behind them (covers, photos, etc). */
.era-nav-strip {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0 48px;
  pointer-events: none;
  z-index: 40; /* below the main nav (100) and way below the transition cover (99998) */
  mix-blend-mode: difference;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.era-nav-strip .era-nav-link {
  pointer-events: auto;
  color: #fff;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.era-nav-strip .era-nav-arrow,
.era-nav-strip .era-nav-name { color: #fff; }
.era-nav-strip .era-nav-label { color: rgba(255, 255, 255, 0.7); }

.era-nav-strip.hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.era-nav-link {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--ink-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.era-nav-link:hover { color: var(--accent); }
.era-nav-prev:hover { transform: translateX(-6px); }
.era-nav-next:hover { transform: translateX(6px); }

.era-nav-link > span:not(.era-nav-arrow) {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.era-nav-link.era-nav-next > span:not(.era-nav-arrow) { align-items: flex-end; }

.era-nav-arrow {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  line-height: 1;
  color: var(--ink-dim);
  transition: color 0.25s ease;
}
.era-nav-link:hover .era-nav-arrow { color: var(--accent); }

.era-nav-label { font-size: 10px; opacity: 0.7; }
.era-nav-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-transform: none;
}

@media (max-width: 700px) {
  .era-nav-strip { padding: 32px 20px 96px; gap: 12px; }
  .era-nav-name { font-size: 14px; }
  .era-nav-arrow { font-size: 22px; }
}

/* ----- Mobile polish: hide custom cursor on small screens only ----- */
@media (max-width: 768px) {
  *, *::before, *::after { cursor: auto !important; }
  .bell-cursor { display: none !important; }
}

/* ----- Mobile polish: compact audio player ----- */
@media (max-width: 700px) {
  .audio-player {
    padding: 8px 12px;
    gap: 6px;
  }
  /* ap-info reste visible — titre toujours nécessaire */
  .audio-player .ap-btn { width: 36px; height: 36px; font-size: 14px; }
  .audio-player .ap-btn.ap-play { width: 44px; height: 44px; font-size: 16px; }
  .audio-player .ap-track { font-size: 9px; }
  .audio-player .ap-shuffle { display: none; }
}

/* "Surprise me" random track button on home */
.random-btn {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}
.random-btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(196, 255, 46, 0.4);
}
.random-btn:hover .random-btn-icon { transform: rotate(180deg) scale(1.1); }
.random-btn-icon {
  display: inline-block;
  font-size: 18px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Currently-playing indicator (animated equalizer bars) */
.track.playing .track-title,
.track.paused .track-title { color: var(--accent); }

/* Grid layout: indicator in col 1 (spanning both rows), title stacked over
   sub in col 2 — keeps the artist line *below* the title while the equalizer
   sits to their left. */
.track.playing .track-info,
.track.paused  .track-info {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-width: 0;
}
.track.playing .track-playing-indicator,
.track.paused  .track-playing-indicator {
  grid-column: 1;
  grid-row: 1 / 3;
}
.track.playing .track-title,
.track.paused  .track-title { grid-column: 2; grid-row: 1; min-width: 0; }
.track.playing .track-sub,
.track.paused  .track-sub   { grid-column: 2; grid-row: 2; min-width: 0; }

.track-playing-indicator {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 16px;
  height: 14px;
  flex-shrink: 0;
}

.track-playing-indicator span {
  flex: 1;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--accent);
  animation: eq-pulse 0.9s ease-in-out infinite;
  transform-origin: bottom;
}
.track-playing-indicator span:nth-child(1) { animation-delay: 0s; }
.track-playing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.track-playing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes eq-pulse {
  0%, 100% { height: 25%; }
  50%      { height: 100%; }
}

.track.paused .track-playing-indicator span {
  animation-play-state: paused;
  height: 40%;
  opacity: 0.5;
}

/* Shuffle button active state in the audio player */
.audio-player .ap-btn.ap-shuffle.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(196, 255, 46, 0.3);
}

/* Download button, shown on track rows that have a local audio file */
.track-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  color: var(--ink-dim);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 4px;
}

/* ===== Favorite heart on track rows ===== */
.track-favorite {
  background: transparent;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.track-favorite:hover {
  color: #ff5a7a;
  transform: scale(1.1);
}
.track-favorite.is-favorite {
  color: #ff5a7a;
}
.track-favorite.is-favorite svg path {
  fill: #ff5a7a;
  stroke: #ff5a7a;
}
.track-favorite:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
/* Burst animation when favoriting */
@keyframes fav-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.track-favorite.is-favorite {
  animation: fav-pop 0.3s ease-out;
}

/* Favorite button inside the audio player's transport controls (next to ⏭) */
.audio-player .ap-btn.ap-favorite {
  color: var(--ink-dim);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.audio-player .ap-btn.ap-favorite:hover {
  color: #ff5a7a;
  transform: scale(1.08);
}
.audio-player .ap-btn.ap-favorite.is-favorite {
  color: #ff5a7a;
}
.audio-player .ap-btn.ap-favorite.is-favorite svg path {
  fill: #ff5a7a;
  stroke: #ff5a7a;
}
.audio-player .ap-btn.ap-favorite:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.track-download:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(196, 255, 46, 0.25);
}

.track-download:active {
  transform: translateY(1px);
}

/* ── Compact track layout (discography sub-pages: masters, bonus, soundcloud…) ──
   Mobile-only: on desktop these pages use the regular era-page track layout
   (full-size title 18px, visible date, etc.) so they stay visually consistent
   with the rest of the site. */
@media (max-width: 900px) {
  .compact-tracks .track {
    gap: 10px;
    padding: 10px 0;
  }
  /* No hover indent — compact tracks start at padding-left:0 */
  .compact-tracks .track:hover { padding-left: 0 !important; }

  /* No grid shift or equalizer when playing — just colour the title */
  .compact-tracks .track.playing .track-info,
  .compact-tracks .track.paused  .track-info { display: block !important; }
  .compact-tracks .track-playing-indicator    { display: none  !important; }

  .compact-tracks .track-info .track-title {
    font-size: 14px;
    margin-bottom: 2px;
  }
  .compact-tracks .track-date {
    display: none;
  }
  .compact-tracks .track-badge {
    font-size: 8px;
    padding: 2px 6px;
    letter-spacing: 0.1em;
  }
  .compact-tracks .track-duration {
    font-size: 11px;
    letter-spacing: 0.05em;
  }
  .compact-tracks .track-download {
    width: 22px;
    height: 22px;
    font-size: 10px;
    margin-left: 0;
  }
  .compact-tracks .track-favorite {
    width: 20px;
    height: 20px;
  }
  .compact-tracks .track-favorite svg {
    width: 13px;
    height: 13px;
  }
}

/* Download button inside the audio player */
.audio-player .ap-download {
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  padding: 0;
  margin-right: 4px;
}

.audio-player .ap-download:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(196, 255, 46, 0.3);
}

@media (max-width: 900px) {
  /* Player mobile : flex colonne, plus compact */
  .audio-player {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px 8px;
  }

  /* Ligne principale : cover | titre+artiste flex:1 | ❤ ▶ collés au bord droit */
  .audio-player .ap-mobile-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  /* Cover — taille compacte mais lisible */
  .audio-player .ap-cover {
    width: 46px !important;
    height: 46px !important;
    flex-shrink: 0;
    border-radius: 3px;
  }

  /* Titre + artiste : flex:1 pour pousser les boutons tout à droite */
  .audio-player .ap-info-text {
    flex: 1;
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    height: 46px;
    padding: 1px 0;
  }

  .audio-player .ap-title {
    font-size: 16px !important;
    line-height: 1.2;
  }

  .audio-player .ap-sub {
    font-size: 9px !important;
    line-height: 1.2;
  }

  /* Boutons ❤ et ▶ tout à droite du player */
  .audio-player .ap-mobile-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 8px;
  }

  /* Taille des boutons sur mobile */
  .audio-player .ap-mobile-btns .ap-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .audio-player .ap-mobile-btns .ap-play {
    width: 40px !important;
    height: 40px !important;
    font-size: 13px !important;
  }

  /* Barre de progression pleine largeur en dessous */
  .audio-player .ap-track {
    width: 100%;
    padding: 0;
  }

  /* Masquer les éléments desktop */
  .audio-player .ap-right  { display: none !important; }
  .audio-player .ap-volume { display: none !important; }
}

/* ===== Easter eggs ===== */
.easter-konami {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0 24px;
  z-index: 99999;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(196, 255, 46, 0.15), rgba(0, 0, 0, 0.9));
  animation: konami-bg 4.2s ease-out forwards;
}

.easter-konami span {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 6vw, 78px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  text-shadow: 0 0 40px var(--accent), 0 0 12px #fff;
  animation: konami-pop 4.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  white-space: nowrap;
}

.easter-konami span:nth-child(1) { animation-delay: 0s; }
.easter-konami span:nth-child(2) { animation-delay: 0.15s; }
.easter-konami span:nth-child(3) { animation-delay: 0.3s; }

@keyframes konami-pop {
  0%   { opacity: 0; transform: translateY(40px) scale(0.6); }
  15%  { opacity: 1; transform: translateY(0) scale(1.1); }
  25%  { transform: translateY(0) scale(1); }
  85%  { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-40px) scale(0.95); }
}

@keyframes konami-bg {
  0%, 85% { opacity: 1; }
  100%    { opacity: 0; }
}

body.konami-active {
  animation: konami-shake 0.15s steps(2) 3;
}

@keyframes konami-shake {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-4px, 2px); }
  50%      { transform: translate(4px, -2px); }
  75%      { transform: translate(-2px, -1px); }
}

.easter-adlib {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: adlib-flash 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  white-space: nowrap;
}

@keyframes adlib-flash {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); filter: blur(12px); }
  20%  { opacity: 1; transform: translate(-50%, -50%) scale(1.08); filter: blur(0); }
  30%  { transform: translate(-50%, -50%) scale(1); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); filter: blur(8px); }
}

/* ===== Archive stats section (home page) ===== */
.archive-stats-section {
  padding: 48px 48px 0 !important;
  max-width: 1400px;
  margin: 0 auto;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.archive-stat {
  background: var(--bg);
  padding: 40px 28px;
  text-align: left;
  position: relative;
  transition: background 0.25s ease;
}

.archive-stat:hover {
  background: var(--bg-alt);
}

.archive-stat-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(196, 255, 46, 0.2);
  display: flex;
  align-items: baseline;
}

.archive-stat-suffix {
  font-size: 36px;
  margin-left: 2px;
  color: var(--accent);
  opacity: 0.8;
}

.archive-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

@media (max-width: 900px) {
  .archive-stats-section { padding: 32px 16px 0 !important; }
  .archive-stats { grid-template-columns: repeat(2, 1fr); }
  .archive-stat { padding: 24px 16px; }
  .archive-stat-value { font-size: 36px; }
  .archive-stat-suffix { font-size: 24px; }
}

/* ===== Era photo carousel (right column, centered between list & viewport edge) ===== */
.track-section-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  /* 48px on each side of the carousel — equal to the section's right padding
     so the carousel sits visually centered between the track list and the
     right edge of the screen. */
  gap: 48px;
  /* no align-items: default is `stretch` so the carousel fills the row height */
  position: relative;
  z-index: 1;
}

.track-section-wrap > .track-list {
  min-width: 0;
}

.track-carousel {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  position: relative;
  min-height: 400px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.track-carousel-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  will-change: transform;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.track-carousel-track img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: grayscale(0.2) brightness(0.9) contrast(1.05);
  transition: filter 0.35s ease, transform 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.track-carousel-track img:hover {
  filter: grayscale(0) brightness(1) contrast(1);
  transform: scale(1.02);
}

@media (max-width: 1000px) {
  .track-section-wrap { grid-template-columns: 1fr; gap: 0; }
  .track-carousel     { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .track-carousel-track { display: none; }
}

/* Smooth transitions when switching discography tabs */
.disco-grid {
  transition: opacity 0.2s ease;
}

.disco-grid.filtering {
  opacity: 0.08;
}

.disco-grid.filter-enter .release:not(.hidden) {
  animation: release-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

@keyframes release-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  padding: 32px 40px;
  border-top: 1px solid var(--border);
}

.chapter-nav .era-nav-link {
  text-decoration: none;
  color: var(--ink);
  transition: color 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chapter-nav .era-nav-prev:hover { transform: translateX(-6px); }
.chapter-nav .era-nav-next:hover { transform: translateX(6px); }
.chapter-nav .era-nav-link:hover { color: var(--accent); }
.chapter-nav .era-nav-link:hover .era-nav-arrow { color: var(--accent); }

.nav-insta {
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-insta:hover { opacity: 1; }

.filter-btn {
  font-family:'JetBrains Mono', monospace;
  font-size:10px;
  letter-spacing:0.15em;
  text-transform:uppercase;
  padding:6px 14px;
  background:transparent;
  border:1px solid var(--border);
  color:var(--ink-dim);
  cursor:pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}
/* ===== Reduced-motion: disable remaining infinite animations ===== */
@media (prefers-reduced-motion: reduce) {
  /* Elements that start at opacity:0 and animate to 1 — make them visible
     immediately so they don't stay invisible when animations are disabled. */
  .page-title,
  .page-header .tag,
  .hero-title{ animation: none; opacity: 1; transform: none; filter: none; }

  /* Marquee scrolling text */
  .marquee-section::before,
  .marquee-section::after{ animation: none; }

  /* Glow pulse effects */
  
  .ap-play { animation: none; }

  /* Bobbing animation */
  .easter-konami span { animation: none; }

  /* Pulse on loading indicators */
  .track-playing-indicator span { animation: none; }

  /* Eq pulse bars */
  .track-playing-indicator span { animation-duration: 0s; }

  /* Page transitions: instant instead of animated */
  .page-transition-cover,
  .page-entering,
  .page-exiting { transition: none !important; }
}

/* ==========================================================================
   MOBILE — version propre
   ========================================================================== */

/* Éléments mobiles — cachés par défaut (hors media query) */
.nav-burger             { display: none; mix-blend-mode: difference; color: #fff; }
.nav-mobile-menu        { display: none; }
.nav-logo-mobile        { display: none; mix-blend-mode: difference; color: #fff; }
.theme-toggle-mobile-fixed { display: none; mix-blend-mode: difference; color: #fff; }

/* Light mode — garde difference blend, couleur blanche (difference sur fond beige = sombre visible) */

/* Cacher burger/logo/toggle pendant le preloader */
body:has(#preloader:not(.hidden)) .nav-burger,
body:has(#preloader:not(.hidden)) .nav-logo-mobile,
body:has(#preloader:not(.hidden)) .theme-toggle-mobile-fixed {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 900px) {

  /* ── Global ── */
  html, body { overflow-x: hidden; max-width: 100vw; }
  .progress-bar { display: none !important; }

  /* Désactiver animations lourdes */
  .marquee-section::before,
  .marquee-section::after,
  .page-header::before,
  footer::after,
  .bell-cursor { animation: none !important; display: none !important; }

  /* Curseur natif */
  *, *::before, *::after { cursor: auto !important; }
  a, button { cursor: pointer !important; }

  /* ── Nav desktop cachée ── */
  nav { display: none !important; }

  /* ── Burger (haut gauche) ── */
  .nav-burger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    padding: 8px;
    position: fixed;
    top: 8px;
    left: 12px;
    z-index: 99999;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── Logo centré (haut milieu) ── */
  .nav-logo-mobile {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .nav-logo-mobile a {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
    pointer-events: auto;
  }

  /* ── Toggle light/dark (haut droite) ── */
  .theme-toggle-mobile-fixed {
    display: flex !important;
    position: fixed;
    top: 8px;
    right: 12px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    z-index: 99999;
    color: #fff;
    padding: 8px;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .theme-toggle-mobile-fixed svg { width: 18px; height: 18px; display: block; }
  .theme-toggle-mobile-fixed .icon-moon { display: block; }
  .theme-toggle-mobile-fixed .icon-sun  { display: none; }
  body.light-mode .theme-toggle-mobile-fixed .icon-moon { display: none; }
  body.light-mode .theme-toggle-mobile-fixed .icon-sun  { display: block; }
  /* light mode — garde difference blend, couleur blanche pour contraste sur fond beige */

  /* ── Scroll hide ── */
  .mob-nav-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-6px) !important;
  }

  /* ── Menu overlay ── */
  .nav-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 99990;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 32px 40px;
    gap: 0;
  }
  .nav-mobile-menu.open { display: flex; }
  .nav-mobile-menu a {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--ink);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    opacity: 0.5;
    transition: opacity 0.2s ease, color 0.2s ease;
  }
  .nav-mobile-menu a:first-child { border-top: 1px solid var(--border); }
  .nav-mobile-menu a.active,
  .nav-mobile-menu a:hover { opacity: 1; color: var(--accent); }
  .nav-mobile-menu .nav-insta {
    font-size: 13px;
    margin-top: 24px;
    border: none;
    opacity: 0.4;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* ── Back btn caché (remplacé par burger) ── */
  .yp-back-btn { display: none !important; }

  /* ── Hero ── */
  .hero {
    min-height: calc(var(--vh, 1vh) * 100);
    padding: 80px 20px 40px;
  }
  .hero-title { font-size: clamp(64px, 18vw, 100px); }
  /* Hero bottom : empiler en colonne sur mobile dès 900px */
  .hero-bottom {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    padding: 0;
  }
  .hero-tag { font-size: 13px; max-width: 100%; }
  .scroll-hint { display: none; }
  .random-btn { align-self: flex-start; }

  /* ── Page header (era/bonus pages) ── */
  .page-header { padding: 80px 20px 32px; }
  .page-header-inner {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .page-title { font-size: clamp(22px, 8vw, 40px) !important; }
  .cover-art {
    width: 140px !important;
    height: 140px !important;
    align-self: flex-start;
  }

  /* ── Sections : padding compact ── */
  /* :not(.marquee-section) → la règle ne touche jamais les marquee-sections */
  section:not(.marquee-section) { padding: 40px 20px !important; }

  /* Les marquee-sections : padding horizontal de 20px pour tout le contenu.
     Le disco-grid déborde avec marge négative pour être pleine largeur. */
  section.marquee-section {
    padding-top:    0 !important;
    padding-right:  20px !important;
    padding-bottom: 32px !important;
    padding-left:   20px !important;
    overflow: hidden !important;
  }

  /* section-label général (toutes les pages) */
  .section-label { margin-top: 16px !important; margin-bottom: 16px !important; }

  /* section-label et disco-tabs : pas de padding supplémentaire,
     ils héritent déjà des 20px de la section */
  section.marquee-section .section-label {
    padding: 0 !important;
    margin: 16px 0 8px !important;
  }
  section.marquee-section .disco-tabs {
    padding: 0 !important;
    margin-bottom: 0 !important;
  }

  .tab { padding: 10px 12px !important; font-size: 10px; }

  /* ── Track list ── */
  .track { padding: 14px 16px; gap: 10px; }
  .track:hover { padding-left: 16px !important; }
  /* compact-tracks have padding-left:0 — don't shift them on hover */
  .compact-tracks .track { padding: 8px 0; }
  .compact-tracks .track:hover { padding-left: 0 !important; }
  .track-title { font-size: 13px; }
  .track-duration { font-size: 11px; }

  /* Sur mobile : pas de décalage de titre lors de la lecture —
     on cache l'indicateur égaliseur et on remet track-info en flux normal.
     Seul le titre en vert suffit comme indicateur visuel. */
  .track.playing .track-info,
  .track.paused  .track-info {
    display: block;
  }
  .track-playing-indicator { display: none; }
  /* Touch targets minimum 44px pour iOS / Android */
  .track-download {
    width: 30px;
    height: 30px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .track-favorite {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ── Discography grid : full-bleed garanti ── */
  .disco-grid {
    display: grid;
    grid-template-columns: none !important; /* efface le repeat(auto-fill) du desktop */
    grid-template-rows: repeat(2, 44vw);
    grid-auto-flow: column;
    grid-auto-columns: 44vw;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0;
    /* Déborde du padding 20px de la section pour être pleine largeur */
    width: calc(100% + 40px);
    margin-left: -20px;
    background: transparent !important;
    border: none !important;
  }
  .disco-grid::-webkit-scrollbar { display: none; }
  .disco-grid .release {
    aspect-ratio: unset;
    width: 44vw;
    height: 44vw;
    padding: 10px;
  }
  .disco-grid .release-year { font-size: 32px; margin-bottom: 4px; }
  .disco-grid .release-title { font-size: 11px; margin-bottom: 0; -webkit-line-clamp: 2; }
  /* meta épinglé en bas via position absolute */
  .disco-grid .release-meta {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    margin-top: 0;
    padding-top: 6px;
    font-size: 8px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
  .era-grid   { gap: 0; padding: 0; }

  /* ── Stats grid ── */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    box-sizing: border-box;
  }
  .stat { padding: 20px 16px; }
  .stat-value { font-size: 32px; }

  /* ── Footer ── */
  footer { padding: 40px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Audio player mobile : géré par le bloc dédié + setupMobilePlayer() en JS */

  /* ── Sort wrap + badge filters ── */
  .sort-wrap {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
    margin-bottom: 12px;
  }
  .sort-wrap label { font-size: 9px; }
  .sort-select { font-size: 9px; padding: 3px 24px 3px 8px; }
  .era-shuffle-btn { font-size: 9px; padding: 4px 10px; }
  .era-badge-filters {
    flex-wrap: wrap;
    gap: 4px;
  }
  .era-badge-filter-btn { font-size: 8px; padding: 3px 8px; }

  /* ── Track list ── */
  .track-date { display: none; }
  .track { gap: 10px; padding: 12px 0; }
  .track-info .track-title { font-size: 13px; margin-bottom: 2px; }
  .track-info .track-sub   { font-size: 9px; }
  .track-badge  { font-size: 8px; padding: 2px 6px; letter-spacing: 0.1em; }
  .track-duration { font-size: 9px; }
  .track-download { font-size: 12px; }
  .track-favorite { font-size: 8px; }
  .track { transition: background 0.4s ease, opacity 0.8s ease, transform 0.8s ease !important; }
  .track:hover { padding-left: 0 !important; }
  .track:hover .track-title { color: var(--ink) !important; }
  .track.playing .track-title,
  .track.paused  .track-title { color: var(--accent) !important; }

  /* ── Quiz setup ── */
  .quiz-setup {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .quiz-setup-title {
    grid-column: 1 !important;
    grid-row: auto !important;
    font-size: clamp(24px, 7vw, 36px) !important;
  }
  .setup-group-diff, .setup-group-releases, .setup-group-range,
  .setup-group-count { grid-column: 1 !important; grid-row: auto !important; }
  .quiz-start-wrap {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-content: flex-start !important;
  }
  .setup-group-diff .setup-options { flex-direction: column; }
  .setup-group-diff .setup-btn { width: 100%; }

  /* ── Quiz game ── */
  .quiz-choices { grid-template-columns: 1fr !important; }
  .quiz-quit-btn {
    top: 12px !important;
    right: 12px !important;
    padding: 6px 12px !important;
    font-size: 10px !important;
  }
  body.quiz-playing .quiz-game {
    padding: 20px 16px !important;
  }

  /* ── Results ── */
  .quiz-results-score { font-size: clamp(40px, 14vw, 72px) !important; }
  div[style*="display:flex;gap:12px"] {
    flex-wrap: wrap;
  }

}


/* ==========================================================================
   LIGHT MODE OVERRIDES
   ========================================================================== */

/* Toggle button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.3s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { opacity: 1; }
.theme-toggle svg { display: block; width: 16px; height: 16px; }
/* Moon/sun animation */
.theme-toggle .icon-moon,
.theme-toggle .icon-sun {
  position: absolute;
  width: 16px;
  height: 16px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
.theme-toggle {
  position: relative; /* needed for absolute children */
}

/* Dark mode: moon visible, sun hidden (rotated away) */
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg); }
.theme-toggle .icon-sun  { opacity: 0; transform: rotate(-90deg); }

/* Light mode: sun visible, moon rotated away */
body.light-mode .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg); }
body.light-mode .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0deg); }

/* ── Cursor toggle button ─────────────────────────────────────────── */
.cursor-toggle {
  background: none;
  border: none;
  cursor: pointer !important;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.4;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
  margin-left: 4px;
}
.cursor-toggle:hover { opacity: 0.8; }
.cursor-toggle.active { opacity: 1; }
.cursor-toggle svg { display: block; width: 16px; height: 16px; }

/* When custom cursor is disabled — restore native OS cursor everywhere */
body.cursor-default *,
body.cursor-default *::before,
body.cursor-default *::after {
  cursor: auto !important;
}
body.cursor-default a,
body.cursor-default button,
body.cursor-default [role="button"],
body.cursor-default label,
body.cursor-default summary,
body.cursor-default .filter-btn,
body.cursor-default .search-result,
body.cursor-default .track-row,
body.cursor-default .era-card,
body.cursor-default .clip-card {
  cursor: pointer !important;
}
body.cursor-default input,
body.cursor-default textarea {
  cursor: text !important;
}
body.cursor-default .bell-cursor { display: none !important; }

/* Nav — disable mix-blend-mode in light, use real colors */
body.light-mode nav {
  mix-blend-mode: difference;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}
body.light-mode nav a { opacity: 0.6; }
body.light-mode nav a:hover,
body.light-mode nav a.active { opacity: 1; }
body.light-mode .yp-back-btn {
  mix-blend-mode: normal;
  color: var(--ink);
}
body.light-mode .nav-insta { color: #fff; }

/* Burger bars — blanc pour que difference blend soit visible sur fond beige */
body.light-mode .nav-burger span { background: #fff !important; }

/* Mobile menu */
body.light-mode .nav-mobile-menu { background: var(--bg); }
body.light-mode .nav-mobile-menu a { color: var(--ink); }

/* Body background */
body.light-mode { background: var(--bg); }
html:has(body.light-mode) { background: var(--bg); }

/* Covers plus visibles en light mode */
body.light-mode .release-bg {
  opacity: 0.7;
  filter: grayscale(10%);
}
body.light-mode .release:hover .release-bg { opacity: 0.9; }
body.light-mode .era-card .release-bg { opacity: 0.7; filter: grayscale(10%); }
body.light-mode .era-card:hover .release-bg { opacity: 0.9; }

/* Textes des era-cards en light mode — dégradé sombre derrière pour lisibilité */
body.light-mode .era-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}
body.light-mode .era-card > *:not(.release-bg) { position: relative; z-index: 1; }
body.light-mode .era-card .era-num,
body.light-mode .era-card .era-name,
body.light-mode .era-card .era-footer,
body.light-mode .era-card .era-arrow { color: #fff; }
body.light-mode .era-card .era-footer { border-top-color: rgba(255,255,255,0.25); }
body.light-mode .era-card:hover .era-name,
body.light-mode .era-card:hover .era-arrow { color: var(--accent); }

/* Page-header en light mode : pas de glow vert, fond transparent, textes lisibles */
body.light-mode .page-header { background: transparent; }
body.light-mode .page-header::before { display: none; }
body.light-mode .page-title { color: var(--ink); }
body.light-mode .page-header .tag { color: var(--ink-dim); }
body.light-mode .page-header .crumbs { color: var(--ink-dim); }
body.light-mode .page-header .crumbs a { color: var(--ink-dim); }
body.light-mode .page-header .crumbs .current { color: var(--accent); }


/* Release year visible en light mode */
body.light-mode .release-year { color: rgba(0, 0, 0, 0.45); }
body.light-mode .release:hover .release-year { color: var(--accent); }

/* Marquees en light mode */
body.light-mode .marquee-section::before { opacity: 0.25; color: var(--ink); }

/* Hero — keep the background image, lighten the overlay */
body.light-mode .hero { background: url("img/yeat-complex.jpg") center/cover no-repeat; }
body.light-mode .hero::before { background: rgba(255, 255, 255, 0.2); }
body.light-mode .hero-title { color: var(--ink); }

/* Era/EP nav strips — disable blend mode */
body.light-mode .era-nav-strip,
body.light-mode .ep-nav {
  mix-blend-mode: normal;
}
body.light-mode .era-nav-strip .era-nav-link,
body.light-mode .ep-nav .era-nav-link { color: var(--ink); }
body.light-mode .era-nav-strip .era-nav-arrow,
body.light-mode .era-nav-strip .era-nav-name,
body.light-mode .ep-nav .era-nav-arrow,
body.light-mode .ep-nav .era-nav-name { color: var(--ink); }
body.light-mode .era-nav-strip .era-nav-label,
body.light-mode .ep-nav .era-nav-label { color: var(--ink-dim); }

/* Player cover border */
body.light-mode .audio-player .ap-cover {
  border-color: rgba(0,0,0,0.1);
}

/* Track rows */
body.light-mode .track { border-color: var(--border); }
body.light-mode .track:hover { background: var(--bg-alt); }

/* Cards */
body.light-mode .release { background: var(--bg-card); border-color: var(--border); }
body.light-mode .era-card { border-color: var(--border); }

/* Progress bar */
body.light-mode .progress-bar { background: var(--accent); }

/* Page transition */
body.light-mode .page-transition-cover { background: var(--bg); }

/* Section labels */
body.light-mode .section-label { color: var(--ink-dim); }

/* Footer */
body.light-mode footer { border-color: var(--border); }
body.light-mode .footer-brand { color: var(--ink); }

/* Scrollbar */
body.light-mode ::-webkit-scrollbar-track { background: var(--bg-alt); }
body.light-mode ::-webkit-scrollbar-thumb { background: var(--border); }

/* =====================================================================
   TIMELINE
   ===================================================================== */
.timeline-scroll-wrap {
  position: relative;
  overflow: hidden;
}
.timeline-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 60px 48px 80px;
  position: relative;
  /* ligne horizontale */
  border-top: 1px solid var(--border);
  margin-top: 48px;
  align-items: flex-start;
}
.timeline-track::-webkit-scrollbar { display: none; }

.tl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
  position: relative;
  padding: 0 24px;
}
.tl-item::before {
  content: '';
  position: absolute;
  top: -61px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.tl-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  position: absolute;
  top: -44px;
}
.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  outline: 2px solid var(--accent);
  margin-bottom: 24px;
  flex-shrink: 0;
  position: absolute;
  top: -65px;
}
.tl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  width: 100%;
  transition: border-color 0.2s, transform 0.2s;
  margin-top: 12px;
}
.tl-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.tl-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.tl-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  line-height: 1.6;
}
.tl-desc em { color: var(--accent); font-style: normal; }
/* timeline cards that open a release page */
a.tl-card { display: block; color: inherit; text-decoration: none; }
.tl-link .tl-title::after { content: " →"; color: var(--accent); }

/* Arrows */
.tl-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  z-index: 2;
}
.tl-arrow:hover { border-color: var(--accent); color: var(--accent); }
.tl-arrow-left { left: 8px; }
.tl-arrow-right { right: 8px; }

/* ==========================================================================
   VERY SMALL SCREENS  ≤ 480 px
   ========================================================================== */
@media (max-width: 480px) {
  /* Clips : 1 colonne sur très petits écrans */
  .clips-grid { grid-template-columns: 1fr !important; }

  /* Timeline : flèches plus grandes, swipe natif activé */
  .timeline-scroll-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tl-arrow { width: 48px; height: 48px; font-size: 18px; }

  /* Discography grid : colonnes un peu plus larges */
  .disco-grid {
    grid-auto-columns: 52vw !important;
    grid-template-rows: repeat(2, 52vw) !important;
  }
  .disco-grid .release {
    width: 52vw !important;
    height: 52vw !important;
  }

  /* Era grid : 2 colonnes de 50% */
  .era-grid .era-card { width: 50vw; height: 50vw !important; max-height: 50vw !important; }
  .era-grid { grid-auto-columns: 50vw !important; grid-template-rows: repeat(2, 50vw) !important; }

  /* Boutons hero plus accessibles */
  .random-btn { width: 100%; justify-content: center; }

  /* Audio player encore plus compact sur très petits écrans */
  .audio-player .ap-cover {
    width: 38px !important;
    height: 38px !important;
  }
  .audio-player .ap-info-text { height: 38px !important; }
  .audio-player .ap-title { font-size: 16px !important; }
  .audio-player .ap-sub   { font-size: 8px !important; }
}

/* ==========================================================================
   SAFE AREA (iPhone notch / dynamic island / home indicator)
   ========================================================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .audio-player {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
  @media (max-width: 900px) {
    .audio-player {
      padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    }
  }
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-dim);
  min-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.bar-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink);
  min-width: 28px;
  text-align: right;
}
.donut-svg { flex-shrink: 0; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; }
.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-dim);
}
.donut-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .timeline-track { padding: 60px 20px 60px; }
  .tl-item { min-width: 180px; padding: 0 16px; }
  .tl-arrow { display: none; }
}


/* ── Touch devices: disable ALL hover states on mobile ─────────────────── */
@media (hover: none), (pointer: coarse) {
  /* Era cards */
  .era-card:hover { background: var(--bg) !important; }
  .era-card:hover::before { left: -100% !important; }
  .era-card:hover .era-name { color: var(--ink) !important; }
  .era-card:hover .era-arrow { color: var(--ink-faint) !important; transform: none !important; }

  /* Release / discography cards */
  .release:hover .release-bg { opacity: 0.15 !important; }
  .release:hover::before { left: -100% !important; }
  .release:hover .release-year { color: inherit !important; }
  .release:hover .flag { opacity: 0 !important; }

  /* Clip cards */
  .clip-card:hover { background: var(--bg-card) !important; box-shadow: none !important; }
  .clip-card:hover .clip-thumb img { transform: none !important; }
  .clip-card:hover .clip-play { opacity: 0 !important; }
  .clip-card:hover .clip-title { color: var(--ink) !important; }

  /* Leak cards */
  .leak-card:hover { padding-left: 0 !important; }
  .leak-card:hover .leak-title { color: var(--ink) !important; }
  .leak:hover { padding-left: 0 !important; }
  .leak:hover .leak-title { color: var(--ink) !important; }

  /* Tracks */
  .track:hover { padding-left: 0 !important; }
  .track:hover .track-title { color: var(--ink) !important; }
  .track.playing .track-title,
  .track.paused  .track-title { color: var(--accent) !important; }

  /* Nav & misc */
  nav a:hover { opacity: 0.5 !important; }
  .sort-select:hover { border-color: var(--border) !important; }
  .era-shuffle-btn:hover { background: transparent !important; color: var(--ink-dim) !important; }
  .era-badge-filter-btn:hover { border-color: var(--border) !important; color: var(--ink-dim) !important; }
  .cover-art:hover { transform: none !important; }
  .era-nav a:hover { background: transparent !important; }
  .footer-col a:hover { color: var(--ink-dim) !important; }
  .yp-back-btn:hover { background: transparent !important; }

  /* Light mode overrides */
  body.light-mode .release:hover .release-bg { opacity: 0.35 !important; }
  body.light-mode .release:hover .release-year { color: inherit !important; }
}

/* ===== Mini Player ===== */
.mini-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 280px;
  height: 58px;
  background: rgba(8, 8, 8, 0.96);
  border: 1px solid var(--accent);
  border-radius: 14px;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 8px;
  z-index: 9500;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(196,255,46,0.1);
  transition: box-shadow 0.2s ease;
  user-select: none;
}
.mini-player.visible { display: flex; }
.mini-player:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.7), 0 0 12px rgba(196,255,46,0.15); }

.mini-drag {
  cursor: grab;
  color: var(--ink-dim);
  font-size: 15px;
  flex-shrink: 0;
  padding: 0 3px;
  opacity: 0.4;
  transition: opacity 0.15s;
}
.mini-drag:hover  { opacity: 0.8; }
.mini-drag:active { cursor: grabbing; }

.mini-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.mini-title {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.mini-sub {
  font-size: 9px;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.mini-btn {
  background: none;
  border: none;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 4px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.15s;
  line-height: 1;
}
.mini-btn:hover      { opacity: 1; }
.mini-btn.mini-play  { color: var(--accent); font-size: 16px; opacity: 0.9; }
.mini-btn.mini-play:hover { opacity: 1; }
.mini-btn.mini-restore {
  font-size: 11px;
  opacity: 0.35;
  border: 1px solid var(--ink-dim);
  border-radius: 4px;
  padding: 3px 5px;
}
.mini-btn.mini-restore:hover { opacity: 0.8; border-color: var(--ink); }

/* Minimize button in main player */
.audio-player .ap-minimize {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink-dim);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 7px;
  opacity: 0.6;
  transition: opacity 0.15s, color 0.15s;
  line-height: 1.4;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace;
}
.audio-player .ap-minimize:hover { opacity: 1; color: var(--accent); border-color: var(--accent); }

/* Slide player down when minimized */
.audio-player.minimized {
  transform: translateY(110%);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
  .mini-player { width: 240px; right: 12px; bottom: 12px; }
}

/* ===== RELEASE PAGES (release-*.html, generated by build-projects.py) =====
   Colors + --rp-font are set per page in its own <style>. */
.rp-hero { position: relative; padding: 120px 48px 72px; }
/* blurred cover behind the hero, spilling down the page and fading out as you scroll */
.rp-hero-bg { position: absolute; top: -80px; left: -80px; width: calc((100% + 160px) / 4); height: calc((100% + 80px + 70vh) / 4);
  transform: scale(4); transform-origin: 0 0; will-change: transform; background: center / cover no-repeat; filter: blur(15px) saturate(1.4); opacity: 0.8;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, rgba(0, 0, 0, 0.45) 60%, transparent); mask-image: linear-gradient(to bottom, #000 25%, rgba(0, 0, 0, 0.45) 60%, transparent); }
/* soft halo behind the small hero texts so they stay readable over bright covers */
.rp-hero .crumbs, .rp-kicker, .rp-stats div { text-shadow: 0 1px 10px var(--rp-shadow); }
.rp-stats b { text-shadow: none; }
.rp-hero > :not(.rp-hero-bg) { position: relative; z-index: 1; }
.rp-hero .crumbs { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 56px; }
.rp-hero .crumbs a { color: var(--ink); opacity: 0.75; text-decoration: none; transition: color 0.3s ease, opacity 0.3s ease; }
.rp-hero .crumbs a:hover { opacity: 1; }
.rp-hero .crumbs a:hover { color: var(--accent); }
.rp-hero .crumbs .current { color: var(--ink); }
.rp-hero .crumbs .sep { margin: 0 12px; color: var(--ink-faint); }
.rp-hero-inner { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: end; }
.rp-cover { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.rp-kicker { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.rp-title { font-family: var(--rp-font), 'Syne', sans-serif; font-weight: var(--rp-weight, 400); font-size: clamp(44px, 7.5vw, 116px); line-height: 1; color: var(--ink); margin: 0 0 32px; overflow-wrap: anywhere; }
.rp-title em { display: block; font-family: 'JetBrains Mono', monospace; font-style: normal; font-size: 14px; letter-spacing: 0.08em; color: var(--ink-dim); margin-top: 16px; }
.rp-stats { display: flex; flex-wrap: wrap; gap: 16px 44px; margin-bottom: 36px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); }
.rp-stats b { display: block; font-family: var(--rp-font), 'Syne', sans-serif; font-weight: var(--rp-weight, 400); font-size: 30px; letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 2px; }
.rp-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 14px; padding: 9px 24px 9px 9px; border-radius: 999px; background: var(--accent); color: var(--bg); text-decoration: none;
  box-shadow: 0 14px 36px -14px var(--accent), inset 0 0 0 1px rgba(255, 255, 255, 0.18); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.rp-btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.8s var(--ease); }
.rp-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 46px -12px var(--accent), inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.rp-btn:hover::before { transform: translateX(120%); }
.rp-btn-icon { width: 40px; height: 40px; flex: none; fill: var(--bg); transition: transform 0.6s var(--ease); }
.rp-btn:hover .rp-btn-icon { transform: rotate(-25deg) scale(1.06); }
.rp-btn-label { display: flex; flex-direction: column; font-family: var(--rp-font), 'Syne', sans-serif; font-weight: var(--rp-weight, 400); font-size: 22px; line-height: 1.05; }
.rp-btn-label small { margin-bottom: 3px; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.75; }
.rp-btn-arrow { font-size: 16px; transition: transform 0.35s var(--ease); }
.rp-btn:hover .rp-btn-arrow { transform: translate(3px, -3px); }
/* Deezer: second, outlined button next to Spotify */
.rp-btn + .rp-btn { margin-top: 10px; }
.rp-btn:not(:last-child) { margin-right: 10px; }
.rp-btn-alt { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rp-btn-alt .rp-btn-icon { fill: var(--accent); }
.rp-section { position: relative; padding: 72px 48px; }
.rp-section .section-label { margin-bottom: 32px; }
.rp-tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.rp-tracks a { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--border); color: var(--ink); text-decoration: none; transition: background 0.25s ease, padding 0.3s var(--ease); }
.rp-tracks a:hover { background: var(--bg-card); padding-left: 18px; }
.rp-tracks a:hover .rp-t { color: var(--accent); }
.rp-n { color: var(--accent); font-size: 12px; }
.rp-t { font-size: 15px; transition: color 0.25s ease; }
.rp-t small { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-dim); }
.rp-d { font-size: 12px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.rp-embed { display: block; width: 100%; border: 0; border-radius: 12px; }
.rp-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.rp-links a { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px; border: 1px solid var(--border); color: var(--ink); text-decoration: none; transition: border-color 0.3s ease, color 0.3s ease; }
.rp-links a:hover { border-color: var(--accent); color: var(--accent); }
/* animated covers (img/release/animated/<slug>.mp4) */
video.rp-hero-bg { object-fit: cover; }
.rp-cover-anim img { display: none; }
/* zoom the video 4% inside a clipping frame: hides the thin dark edges some animated covers have */
.rp-cover-anim { overflow: hidden; }
/* opacity just under 1 + a no-visible-change filter keep the browser from handing the video to a hardware overlay plane, which drew a
   thin black seam on the right/bottom edge on some Windows GPUs (invisible in screenshots) */
.rp-cover-anim video.rp-cover { transform: scale(1.04); opacity: 0.999; filter: brightness(1.001); }
@media (prefers-reduced-motion: reduce) {
  video.rp-hero-bg, .rp-cover-anim video { display: none; }
  .rp-cover-anim img { display: block; }
}
/* other editions (deluxe, bonus...) */
.rp-versions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.rp-version { display: block; padding: 22px 24px; border: 1px solid var(--border); color: var(--ink); text-decoration: none; transition: border-color 0.3s ease; }
a.rp-version:hover { border-color: var(--accent); }
.rp-version-name { display: block; font-family: var(--rp-font), 'Syne', sans-serif; font-weight: var(--rp-weight, 400); font-size: 20px; margin-bottom: 4px; }
.rp-version-meta { display: block; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.rp-version ol { list-style: none; margin: 0; padding: 0; }
.rp-version li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 13px; }
.rp-version li span:last-child { color: var(--ink-dim); font-size: 12px; font-variant-numeric: tabular-nums; }
/* previous / next release */
.rp-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 8px 48px 96px; }
.rp-pn a { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--border); color: var(--ink); text-decoration: none; transition: border-color 0.3s ease, color 0.3s ease; }
.rp-pn a:hover { border-color: var(--accent); color: var(--accent); }
.rp-pn img { width: 56px; height: 56px; object-fit: cover; flex: none; }
.rp-pn a > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rp-pn-next { flex-direction: row-reverse; text-align: right; }
.rp-pn-dir { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); }
.rp-pn-name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 768px) {
  .rp-hero { padding: 90px 16px 48px; }
  .rp-pn { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 0 16px 64px; }
  .rp-pn a { padding: 10px; gap: 10px; }
  .rp-pn img { width: 40px; height: 40px; }
  .rp-hero .crumbs { margin-bottom: 32px; }
  .rp-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rp-cover, .rp-cover-anim { max-width: 320px; }
  .rp-stats { gap: 12px 28px; }
  .rp-stats b { font-size: 24px; }
  .rp-section { padding: 48px 16px; }
  .rp-tracks a { grid-template-columns: 30px 1fr auto; gap: 12px; padding: 14px 4px; }
}

/* Top nav on release pages: mix-blend-mode: difference turned the links into muddy
   mid-tones over the colored blurred covers, so draw them in the page's own ink color. */
body:has(.rp-hero) nav, body:has(.rp-hero) .yp-back-btn, body:has(.rp-hero) .nav-burger,
body:has(.rp-hero) .nav-logo-mobile, body:has(.rp-hero) .theme-toggle-mobile-fixed { mix-blend-mode: normal; }
body:has(.rp-hero) nav a, body:has(.rp-hero) nav .logo, body:has(.rp-hero) .nav-insta,
body:has(.rp-hero) nav button, body:has(.rp-hero) .yp-back-btn, body:has(.rp-hero) .nav-logo-mobile a,
body:has(.rp-hero) .theme-toggle-mobile-fixed { color: var(--ink); text-shadow: 0 1px 10px var(--rp-shadow); }
body:has(.rp-hero) nav svg, body:has(.rp-hero) .theme-toggle-mobile-fixed svg { filter: drop-shadow(0 1px 6px var(--rp-shadow)); }
body:has(.rp-hero) nav a { opacity: 0.8; }
body:has(.rp-hero) nav a:hover, body:has(.rp-hero) nav a.active { opacity: 1; }
body:has(.rp-hero) .nav-burger span { background: var(--ink) !important; }

/* Trëndi: hollow outlined title like the cover's "trëndi" logo */
#rp-trendi .rp-title { color: transparent; -webkit-text-stroke: 2px var(--ink); text-shadow: none; text-transform: lowercase; }

/* Alivë: green neon title like the heartbeat monitor on the cover */
#rp-alive .rp-title { color: var(--accent); text-shadow: 0 0 8px var(--accent), 0 0 26px color-mix(in srgb, var(--accent) 60%, transparent); }

/* Wake Up Call: glowing green slime title like the cover */
#rp-wake-up-call .rp-title { color: var(--accent); text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 30px color-mix(in srgb, var(--accent) 40%, transparent); }

/* ===== Settings panel (gear button in the nav / mobile corner) ===== */
.yp-settings { position: fixed; bottom: calc(var(--yp-fab-bottom, 20px) + 60px); right: 20px; z-index: 9700; min-width: 230px; padding: 14px 16px 6px; background: var(--bg-card);
  border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); font-family: 'JetBrains Mono', monospace;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
.yp-settings.open { opacity: 1; visibility: visible; transform: none; }
.yp-settings-title { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 6px; }
.yp-settings-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid var(--border);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.yp-settings-row input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 34px; height: 18px; margin: 0; border-radius: 999px;
  background: var(--ink-faint); cursor: pointer; transition: background 0.2s ease; }
.yp-settings-row input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); transition: transform 0.2s ease; }
.yp-settings-row input:checked { background: var(--accent); }
.yp-settings-row input:checked::after { transform: translateX(16px); }
.yp-settings-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* floating gear: bottom-right on every page and screen size */
.yp-settings-fab { position: fixed; right: 20px; bottom: 20px; z-index: 9600; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: color-mix(in srgb, var(--bg-card) 85%, transparent); color: var(--ink-dim); border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); transition: bottom 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.yp-settings-fab svg { width: 20px; height: 20px; display: block; transition: transform 0.6s ease; }
.yp-settings-fab:hover, .yp-settings-fab[aria-expanded="true"] { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
.yp-settings-fab:hover svg, .yp-settings-fab[aria-expanded="true"] svg { transform: rotate(90deg); }
.yp-settings-fab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
body:has(#preloader:not(.hidden)) .yp-settings-fab { display: none; }
/* the old corner icon on mobile is replaced by the floating gear */
.theme-toggle-mobile-fixed { display: none !important; }
@media (max-width: 768px) { .yp-settings-fab { right: 16px; width: 44px; height: 44px; } .yp-settings { right: 16px; } }

/* Reduce motion: no animations / transitions, still covers instead of videos */
body.a11y-reduce-motion *, body.a11y-reduce-motion *::before, body.a11y-reduce-motion *::after {
  animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
body.a11y-reduce-motion video.rp-hero-bg, body.a11y-reduce-motion .rp-cover-anim video, body.a11y-reduce-motion .release-bg video { display: none; }
body.a11y-reduce-motion .rp-cover-anim img { display: block; }

/* High contrast: dim/faint text and borders pulled toward the main text color (also on themed release pages) */
body.a11y-contrast { --ink-dim: var(--ink) !important; --ink-faint: color-mix(in srgb, var(--ink) 65%, var(--bg)) !important;
  --border: color-mix(in srgb, var(--ink) 45%, var(--bg)) !important; }
body.a11y-contrast nav a, body.a11y-contrast .nav-insta, body.a11y-contrast .theme-toggle { opacity: 1; }
/* Narrower desktops: the nav overflowed on the right (gear button off screen) -> Instagram shows its icon only, menu tightens */
@media (min-width: 901px) and (max-width: 1520px) {
  .nav-insta { font-size: 0; gap: 0; }
  nav ul { gap: 10px; }
}
@media (min-width: 901px) and (max-width: 1300px) {
  nav { padding-left: 32px; padding-right: 32px; letter-spacing: 0.06em; }
}
@media (min-width: 901px) and (max-width: 1150px) {
  nav { padding-left: 20px; padding-right: 20px; font-size: 11px; letter-spacing: 0.03em; gap: 0 14px; }
  nav ul { gap: 6px; }
  nav .logo { font-size: 15px; }
}
@media (min-width: 901px) and (max-width: 1000px) {
  nav { font-size: 10px; letter-spacing: 0; gap: 0 10px; }
  nav ul { gap: 4px; }
  nav .logo { font-size: 13px; }
}

/* public search filters (single / featuring reuse the album look) */
.filter-btn[data-filter="album"], .filter-btn[data-filter="ep"], .filter-btn[data-filter="mixtape"],
.filter-btn[data-filter="single"], .filter-btn[data-filter="featuring"], .filter-btn[data-filter="track"] { border-color: #7ab800; color: #7ab800; }
.filter-btn.active[data-filter="album"], .filter-btn.active[data-filter="ep"], .filter-btn.active[data-filter="mixtape"],
.filter-btn.active[data-filter="single"], .filter-btn.active[data-filter="featuring"], .filter-btn.active[data-filter="track"] { background: #7ab800; color: #000; border-color: #7ab800; }
.result-tag.single, .result-tag.featuring { border-color: #7ab800; color: #7ab800; }
