/* =========================================================
   JJG — L'Intégrale
   Direction artistique : papier, encre, or vieilli.
   ========================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("../fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("../fonts/playfair-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #15120e;
  --ink-2: #1e1913;
  --ink-3: #2a231b;
  --paper: #f2ebdf;
  --paper-2: #e9dfce;
  --card: #fbf7ef;
  --gold: #d3a24d;
  --gold-deep: #7d5a1c;
  --gold-soft: #e8c88a;
  --rust: #b3512e;
  --muted: #6b6155;
  --muted-dark: #a99c8a;
  --line: rgba(21, 18, 14, 0.14);
  --line-strong: rgba(21, 18, 14, 0.26);
  --line-light: rgba(242, 235, 223, 0.16);
  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 30px 80px -40px rgba(21, 18, 14, 0.55);
  --ease: cubic-bezier(0.22, 0.68, 0.2, 1);
  --header-h: 78px;
  --container: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

em { font-style: italic; }

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1100;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--paper);
  background: linear-gradient(to bottom, rgba(16, 13, 10, 0.92), rgba(16, 13, 10, 0.52) 70%, transparent);
  transition: background 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(18, 15, 11, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(211, 162, 77, 0.6);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  flex: none;
  transition: background 0.3s, color 0.3s;
}

.brand:hover .brand-mark {
  background: var(--gold);
  color: var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-text small {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(242, 235, 223, 0.55);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 235, 223, 0.72);
  padding: 8px 0;
  transition: color 0.2s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover { color: var(--paper); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.site-nav .nav-cta {
  color: var(--gold-soft);
  border: 1px solid rgba(211, 162, 77, 0.45);
  border-radius: 999px;
  padding: 10px 18px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  place-items: center;
}

.nav-toggle .icon { width: 20px; height: 20px; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(211, 162, 77, 0.16), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(179, 81, 46, 0.13), transparent 60%),
    var(--ink);
  color: var(--paper);
  padding: calc(var(--header-h) + clamp(48px, 8vw, 92px)) 0 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  right: -220px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 162, 77, 0.2), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  padding-bottom: clamp(56px, 8vw, 90px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 26px;
}

.eyebrow-line {
  width: 46px;
  height: 1px;
  background: rgba(211, 162, 77, 0.65);
}

.hero h1 {
  font-size: clamp(3.5rem, 7.4vw, 6.9rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin-left: -0.045em;
}

.hero h1 em {
  color: var(--gold-soft);
  font-weight: 500;
}

.hero-lead {
  max-width: 46ch;
  margin-top: 30px;
  color: rgba(242, 235, 223, 0.72);
  font-size: clamp(15.5px, 1.2vw, 18px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-soft); }

.btn-ghost {
  border-color: rgba(242, 235, 223, 0.24);
  color: var(--paper);
  background: rgba(242, 235, 223, 0.03);
}
.btn-ghost:hover {
  border-color: rgba(242, 235, 223, 0.55);
  background: rgba(242, 235, 223, 0.08);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 4vw, 46px);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.hero-stats div { display: flex; flex-direction: column; gap: 3px; }

.hero-stats dt {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1;
}

.hero-stats dd {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(242, 235, 223, 0.5);
}

.hero-portrait {
  position: relative;
  max-width: 430px;
  justify-self: end;
  width: 100%;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 220px 220px 14px 14px;
  border: 1px solid rgba(211, 162, 77, 0.34);
  background: var(--ink-2);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(242, 235, 223, 0.13);
  border-radius: 208px 208px 8px 8px;
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
  filter: grayscale(1) sepia(0.34) contrast(1.06) brightness(0.82);
  transform: scale(1.015);
}

.portrait-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(21, 18, 14, 0.85) 0%, transparent 42%),
    linear-gradient(140deg, rgba(211, 162, 77, 0.16), transparent 45%);
  mix-blend-mode: normal;
}

.portrait-caption {
  position: absolute;
  left: 30px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.portrait-caption span {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(242, 235, 223, 0.62);
}

.portrait-caption strong {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  color: var(--gold-soft);
}

.hero-portrait figcaption {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(242, 235, 223, 0.62);
  text-align: right;
}

.hero-portrait figcaption a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.marquee {
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
  padding: 18px 0;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 52s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  font-family: var(--display);
  font-size: clamp(20px, 2.3vw, 30px);
  font-style: italic;
  font-weight: 500;
  color: rgba(242, 235, 223, 0.34);
  white-space: nowrap;
}

.marquee-track span::after {
  content: "✦";
  font-style: normal;
  font-size: 11px;
  color: var(--gold);
  opacity: 0.8;
}

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

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */

.section {
  padding: clamp(72px, 10vw, 130px) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: end;
  max-width: none;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 20px;
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section h2 {
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.section h2 em { color: var(--gold-deep); }

.section-intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 48ch;
}

.section-head:not(.section-head--split) .section-intro {
  margin-top: 22px;
}

.section-head--split .section-intro { padding-bottom: 6px; }

/* ---------------------------------------------------------
   Listening room
   --------------------------------------------------------- */

.listening { background: var(--paper); }

.listening-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(360px, 0.88fr);
  gap: clamp(20px, 2.6vw, 32px);
  align-items: start;
}

.stage-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(14px, 1.6vw, 20px);
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.stage-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #090806;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(242, 235, 223, 0.1);
}

.yt-stage,
.yt-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.stage-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(242, 235, 223, 0.62);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.stage-loading .icon { width: 26px; height: 26px; color: var(--gold); }

.stage-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 6px 4px;
}

.stage-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.stage-meta h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  color: var(--paper);
}

.stage-meta-copy p:last-child {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(242, 235, 223, 0.64);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(211, 162, 77, 0.35);
  transition: border-color 0.2s, color 0.2s;
}

.text-link:hover { color: var(--paper); border-color: var(--paper); }
.text-link .icon { width: 13px; height: 13px; }

.stage-note {
  font-size: 10.5px;
  line-height: 1.6;
  color: rgba(242, 235, 223, 0.58);
  padding: 14px 6px 6px;
  border-top: 1px solid rgba(242, 235, 223, 0.08);
  margin-top: 12px;
}

.playlist-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2vw, 24px);
  box-shadow: 0 24px 60px -50px rgba(21, 18, 14, 0.5);
}

.playlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.playlist-head h3 {
  font-size: 26px;
  font-weight: 600;
}

.playlist-head p {
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot { opacity: 0.5; margin: 0 2px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.icon-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.icon-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.icon-btn .icon { width: 17px; height: 17px; }

.icon-btn--small { width: 36px; height: 36px; }
.icon-btn--small .icon { width: 15px; height: 15px; }

.playlist-tools {
  padding: 16px 0 6px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  transition: border-color 0.2s, background 0.2s;
}

.search-field:focus-within {
  border-color: var(--gold-deep);
  background: #fffdf9;
}

.search-field .icon { width: 15px; height: 15px; color: var(--muted); }

.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
}

.search-field input::placeholder { color: #7a7062; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: all 0.2s;
}

.chip .icon { width: 12px; height: 12px; }

.chip:hover { border-color: var(--line-strong); color: var(--ink); }

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.track-list {
  max-height: 468px;
  overflow-y: auto;
  margin: 10px -8px 0;
  padding: 0 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(21, 18, 14, 0.2) transparent;
}

.track-list::-webkit-scrollbar { width: 6px; }
.track-list::-webkit-scrollbar-thumb {
  background: rgba(21, 18, 14, 0.18);
  border-radius: 999px;
}

.track-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid rgba(21, 18, 14, 0.08);
  transition: background 0.18s;
}

.track-row:last-child { border-bottom: 0; }

.track-main {
  position: relative;
  display: grid;
  grid-template-columns: 24px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 4px;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 8px;
}

.track-row:hover { background: rgba(21, 18, 14, 0.035); }

.track-row.is-playing { background: rgba(211, 162, 77, 0.13); }
.track-row.is-playing .track-title { color: var(--gold-deep); }
.track-row.is-playing .track-num { opacity: 0; }

.track-num {
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: center;
  transition: opacity 0.2s;
}

.track-thumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--cover-a), var(--cover-b));
  flex: none;
}

.track-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 26%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(to top, rgba(0, 0, 0, 0.32), transparent 55%);
}

.track-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.track-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.track-album {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-duration {
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  padding-right: 4px;
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 1px;
  padding-right: 2px;
}

.track-fav,
.track-link {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7a7062;
  transition: color 0.18s, background 0.18s;
}

.track-fav:hover,
.track-link:hover { color: var(--ink); background: rgba(21, 18, 14, 0.06); }

.track-fav .icon,
.track-link .icon { width: 14px; height: 14px; }

.track-fav.is-fav { color: var(--rust); }

.track-eq {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
}

.track-row.is-playing .track-eq { display: flex; }

.track-eq i {
  display: block;
  width: 2px;
  height: 100%;
  background: var(--gold-deep);
  border-radius: 2px;
  transform-origin: bottom;
  animation: eq 0.9s ease-in-out infinite alternate;
}
.track-eq i:nth-child(2) { animation-delay: 0.18s; height: 60%; }
.track-eq i:nth-child(3) { animation-delay: 0.36s; height: 80%; }
.track-eq i:nth-child(4) { animation-delay: 0.54s; height: 45%; }

@keyframes eq {
  from { transform: scaleY(0.25); }
  to { transform: scaleY(1); }
}

.empty-state {
  padding: 34px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.playlist-note {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Essentials
   --------------------------------------------------------- */

.essentials {
  background: var(--paper-2);
  border-top: 1px solid rgba(21, 18, 14, 0.07);
  border-bottom: 1px solid rgba(21, 18, 14, 0.07);
}

.essential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.essential-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 247, 239, 0.6);
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.essential-card:hover {
  transform: translateY(-4px);
  background: var(--card);
  border-color: rgba(169, 122, 42, 0.5);
  box-shadow: 0 26px 50px -42px rgba(21, 18, 14, 0.6);
}

.essential-index {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
}

.essential-body {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.essential-body h3 {
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 600;
  line-height: 1.1;
  max-width: 13ch;
}

.essential-body p {
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.essential-play {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.essential-card:hover .essential-play {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold-soft);
  transform: scale(1.06);
}

.essential-play .icon { width: 15px; height: 15px; margin-left: 2px; }

.essential-disc {
  position: absolute;
  right: -42px;
  top: -52px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(21, 18, 14, 0.09);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.6s var(--ease), border-color 0.4s;
}

.essential-disc::after {
  content: "";
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  border: 1px solid rgba(21, 18, 14, 0.07);
}

.essential-card:hover .essential-disc {
  transform: rotate(50deg);
  border-color: rgba(169, 122, 42, 0.3);
}

/* ---------------------------------------------------------
   Biography
   --------------------------------------------------------- */

.biography { background: var(--paper); }

.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}

.bio-intro {
  position: sticky;
  top: calc(var(--header-h) + 30px);
}

.bio-intro h2 {
  font-size: clamp(2.5rem, 4.4vw, 3.9rem);
  font-weight: 500;
  margin-bottom: 24px;
}

.bio-intro h2 em { color: var(--gold-deep); }

.bio-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #4e463c;
  max-width: 46ch;
}

.bio-quote {
  margin: 32px 0;
  padding: 24px 0 24px 26px;
  border-left: 2px solid var(--gold);
  font-family: var(--display);
  font-size: 22px;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}

.bio-quote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--body);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.bio-text {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 48ch;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 22px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease), background 0.3s;
}

.timeline-item:hover { padding-left: 8px; }

.timeline-year {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-deep);
  line-height: 1.4;
}

.timeline-item h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 5px;
}

.timeline-item p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------------------------------------------------------
   Discography
   --------------------------------------------------------- */

.discography {
  background: var(--paper-2);
  border-top: 1px solid rgba(21, 18, 14, 0.07);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.album-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.album-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--cover-a), var(--cover-b) 78%);
  box-shadow: 0 18px 34px -26px rgba(21, 18, 14, 0.65);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.album-card:hover .album-cover {
  transform: translateY(-5px) rotate(-0.6deg);
  box-shadow: 0 28px 46px -28px rgba(21, 18, 14, 0.7);
}

.album-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 9px);
  mix-blend-mode: overlay;
}

.album-cover::after {
  content: "";
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  right: -24%;
  bottom: -30%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.045), 0 0 0 54px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.cover-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  color: var(--cover-fg);
  z-index: 1;
}

.cover-artist {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.78;
}

.cover-title {
  font-family: var(--display);
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 10ch;
}

.cover-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.cover-year {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  opacity: 0.82;
}

.cover-mark {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}

.album-info h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.album-info p {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.album-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-deep);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
}

.album-card:hover .album-count,
.album-card:focus-visible .album-count {
  opacity: 1;
  transform: none;
}

.album-count .icon { width: 11px; height: 11px; }

/* Cover palettes */
[data-theme="gold"] { --cover-a: #c9973f; --cover-b: #6e4c17; --cover-fg: #fff6e4; }
[data-theme="blue"] { --cover-a: #4b6996; --cover-b: #152338; --cover-fg: #eef3fb; }
[data-theme="coral"] { --cover-a: #c96a49; --cover-b: #4d1c16; --cover-fg: #fff0e6; }
[data-theme="green"] { --cover-a: #416f59; --cover-b: #10241c; --cover-fg: #edf7f0; }
[data-theme="slate"] { --cover-a: #767d88; --cover-b: #191d22; --cover-fg: #f4f2ee; }
[data-theme="wine"] { --cover-a: #7f3c46; --cover-b: #290f14; --cover-fg: #fbeef0; }
[data-theme="violet"] { --cover-a: #6e578e; --cover-b: #211630; --cover-fg: #f3edfb; }
[data-theme="sand"] { --cover-a: #c3a173; --cover-b: #584229; --cover-fg: #fff8ea; }
[data-theme="night"] { --cover-a: #3a4355; --cover-b: #0c0f15; --cover-fg: #eef1f6; }

/* ---------------------------------------------------------
   Legal / platforms
   --------------------------------------------------------- */

.legal { padding-top: 0; }

.legal-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(211, 162, 77, 0.13), transparent 55%),
    var(--ink);
  color: var(--paper);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(30px, 5vw, 64px);
  box-shadow: var(--shadow);
}

.legal-copy .section-kicker { color: var(--gold-soft); }

.legal-copy h2 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  font-weight: 500;
  margin-bottom: 22px;
}

.legal-copy h2 em { color: var(--gold-soft); }

.legal-copy p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(242, 235, 223, 0.66);
  max-width: 52ch;
}

.legal-copy p + p { margin-top: 14px; }

.legal-note {
  margin-top: 22px !important;
  padding: 14px 16px;
  border: 1px solid rgba(242, 235, 223, 0.14);
  border-radius: 10px;
  background: rgba(242, 235, 223, 0.04);
  font-size: 11.5px !important;
  line-height: 1.65 !important;
  color: rgba(242, 235, 223, 0.5) !important;
}

.platform-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-light);
  align-self: start;
}

.platform-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line-light);
  transition: padding-left 0.25s var(--ease), color 0.25s;
}

.platform-list a:hover {
  padding-left: 10px;
  color: var(--gold-soft);
}

.platform-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.platform-name strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
}

.platform-name span {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 235, 223, 0.55);
}

.platform-list .icon {
  width: 16px;
  height: 16px;
  color: rgba(242, 235, 223, 0.5);
  transition: transform 0.25s, color 0.25s;
}

.platform-list a:hover .icon {
  color: var(--gold);
  transform: translate(2px, -2px);
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 7vw, 76px) 0 clamp(36px, 4vw, 48px);
  border-top: 1px solid rgba(242, 235, 223, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 430px;
}

.brand-mark--footer {
  width: 54px;
  height: 54px;
  font-size: 17px;
}

.footer-brand p {
  font-size: 12px;
  line-height: 1.75;
  color: rgba(242, 235, 223, 0.55);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.footer-nav a {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 235, 223, 0.55);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--gold-soft); }

.footer-credits {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid rgba(242, 235, 223, 0.1);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 40px;
}

.footer-credits p {
  font-size: 10.5px;
  line-height: 1.7;
  color: rgba(242, 235, 223, 0.62);
  max-width: 60ch;
}

.footer-credits a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: rgba(242, 235, 223, 0.55);
}

.footer-year { grid-column: 1 / -1; padding-top: 8px; }

/* ---------------------------------------------------------
   Dock player
   --------------------------------------------------------- */

.dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, calc(100% + 40px));
  width: min(calc(100% - 32px), var(--container));
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.35s;
}

.dock.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.dock-inner {
  display: grid;
  grid-template-columns: 56px minmax(120px, 1.05fr) auto minmax(200px, 1.5fr) auto;
  grid-template-areas: "art meta controls timeline extra";
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  padding: 12px clamp(12px, 1.6vw, 20px);
  background: rgba(22, 18, 13, 0.96);
  border: 1px solid rgba(211, 162, 77, 0.24);
  border-radius: 16px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--paper);
}

.dock-art {
  grid-area: art;
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 9px;
  border: 0;
  overflow: hidden;
  background: linear-gradient(145deg, var(--cover-a, #c9973f), var(--cover-b, #6e4c17));
  padding: 0;
}

.dock-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.35), transparent 30%),
    linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 60%);
}

.equalizer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding-bottom: 12px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.25s;
}

.dock.is-playing .equalizer { opacity: 1; }

.equalizer i {
  width: 3px;
  height: 14px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transform-origin: bottom;
  animation: eq 0.8s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.dock.is-playing .equalizer i { animation-play-state: running; }
.equalizer i:nth-child(2) { animation-delay: 0.15s; height: 20px; }
.equalizer i:nth-child(3) { animation-delay: 0.3s; height: 11px; }
.equalizer i:nth-child(4) { animation-delay: 0.45s; height: 17px; }

.dock-meta {
  grid-area: meta;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dock-meta strong {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-meta span {
  font-size: 10px;
  color: rgba(242, 235, 223, 0.48);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  gap: 2px;
}

.dock .icon-btn {
  border-color: transparent;
  color: rgba(242, 235, 223, 0.78);
}

.dock .icon-btn:hover {
  background: rgba(242, 235, 223, 0.1);
  border-color: transparent;
  color: var(--paper);
}

.dock .icon-btn.is-active {
  background: rgba(211, 162, 77, 0.2);
  color: var(--gold-soft);
}

.dock-play {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 3px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  transition: transform 0.2s, background 0.2s;
}

.dock-play:hover { transform: scale(1.06); background: var(--gold-soft); }
.dock-play .icon { width: 18px; height: 18px; }

.dock-timeline {
  grid-area: timeline;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.dock-time {
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  color: rgba(242, 235, 223, 0.5);
  flex: none;
  width: 30px;
  text-align: center;
}

.progress {
  position: relative;
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: rgba(242, 235, 223, 0.14);
}

.progress-fill {
  position: absolute;
  left: 0;
  height: 3px;
  width: 0%;
  border-radius: 3px;
  background: var(--gold);
  pointer-events: none;
}

.progress-thumb {
  position: absolute;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-soft);
  transform: translateX(-50%) scale(0);
  transition: transform 0.18s;
  pointer-events: none;
}

.progress:hover .progress-thumb,
.progress:focus-visible .progress-thumb { transform: translateX(-50%) scale(1); }

.dock-extra {
  grid-area: extra;
  display: flex;
  align-items: center;
  gap: 1px;
}

.volume-field {
  width: 74px;
  display: flex;
  align-items: center;
  margin-left: 2px;
}

.volume-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  background: transparent;
  cursor: pointer;
}

.volume-field input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: rgba(242, 235, 223, 0.18);
}

.volume-field input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: 3px;
  background: rgba(242, 235, 223, 0.18);
}

.volume-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 9px;
  height: 9px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 0;
}

.volume-field input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: var(--gold-soft);
}

body.dock-open .site-footer { padding-bottom: 150px; }

/* ---------------------------------------------------------
   Toast
   --------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 104px;
  transform: translate(-50%, 16px);
  z-index: 130;
  max-width: min(90vw, 460px);
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  border: 1px solid rgba(211, 162, 77, 0.35);
  color: var(--paper);
  font-size: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1080px) {
  .listening-grid { grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr); }
  .album-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dock-inner { grid-template-columns: 52px minmax(110px, 0.9fr) auto minmax(160px, 1.2fr) auto; }
  .dock-art { width: 52px; height: 52px; }
  .volume-field { width: 58px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: rgba(20, 16, 12, 0.98);
    border: 1px solid rgba(211, 162, 77, 0.24);
    border-radius: 16px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 12px 10px;
    font-size: 12px;
    border-radius: 8px;
  }

  .site-nav a:hover { background: rgba(242, 235, 223, 0.06); }
  .site-nav a::after { display: none; }

  .site-nav .nav-cta {
    text-align: center;
    margin-top: 6px;
    border-color: rgba(211, 162, 77, 0.34);
  }

  .nav-toggle { display: grid; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .hero-portrait {
    justify-self: start;
    max-width: 340px;
  }

  .hero h1 { font-size: clamp(3.2rem, 11vw, 5.6rem); }

  .listening-grid { grid-template-columns: minmax(0, 1fr); }

  .stage-card { position: static; }

  .track-list { max-height: 420px; }

  .section-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }

  .essential-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .bio-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }

  .bio-intro { position: static; }

  .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .legal-panel { grid-template-columns: minmax(0, 1fr); }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 18px; }
  .footer-credits { grid-template-columns: minmax(0, 1fr); }

  .dock-inner {
    grid-template-columns: 46px minmax(0, 1fr) auto auto;
    grid-template-areas:
      "art meta controls extra"
      "timeline timeline timeline timeline";
    row-gap: 6px;
    padding: 10px 14px 12px;
  }

  .dock-art { width: 46px; height: 46px; }
  .dock-play { width: 42px; height: 42px; }
  .dock .icon-btn--small { display: none; }
  .dock .icon-btn { width: 36px; height: 36px; }
  .volume-field { display: none; }
  .dock-time { width: 26px; }

  body.dock-open .site-footer { padding-bottom: 172px; }
  .toast { bottom: 130px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--container)); }

  body { font-size: 15.5px; }

  .brand-text small { display: none; }
  .brand-text strong { font-size: 15px; }

  .hero { padding-top: calc(var(--header-h) + 44px); }

  .hero-lead { margin-top: 22px; }

  .hero-actions .btn { flex: 1 1 auto; }

  .hero-stats { gap: 18px 26px; margin-top: 36px; }
  .hero-stats dt { font-size: 20px; }
  .hero-stats dd { font-size: 8.5px; letter-spacing: 0.13em; }

  .hero-portrait { max-width: 100%; }

  .section { padding: 64px 0; }

  .section-head { margin-bottom: 30px; }

  .section h2 { font-size: clamp(2.1rem, 9vw, 3rem); }

  .stage-meta { align-items: flex-start; flex-direction: column; gap: 12px; }

  .playlist-card { padding: 16px; }

  .track-main { grid-template-columns: 18px 38px minmax(0, 1fr) auto; gap: 9px; }
  .track-thumb { width: 38px; height: 38px; }
  .track-title { font-size: 12.5px; }
  .track-album { font-size: 9.5px; }
  .track-duration { font-size: 9.5px; }
  .track-fav, .track-link { width: 26px; height: 26px; }
  .track-actions { gap: 0; }

  .essential-grid { grid-template-columns: minmax(0, 1fr); }
  .essential-card { min-height: 150px; padding: 18px; }

  .timeline-item { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; }
  .timeline-year { font-size: 17px; }

  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cover-inner { padding: 12px; }
  .cover-title { font-size: 17px; }
  .cover-artist { font-size: 6.5px; }
  .album-info h3 { font-size: 15px; }
  .album-info p { font-size: 10.5px; }
  .album-count { display: none; }

  .legal-panel { padding: 26px 20px; border-radius: 18px; }
  .platform-name strong { font-size: 19px; }

  .dock { bottom: 8px; width: calc(100% - 16px); }
  .dock-controls .icon-btn { display: none; }
  .dock-controls .dock-play { display: grid; }
  .dock-inner { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "art meta controls" "timeline timeline timeline"; }
  .dock-art { width: 44px; height: 44px; }
  .dock-extra { display: none; }
  .dock-meta strong { font-size: 11.5px; }
  .dock-meta span { font-size: 9px; }
  .dock-time { display: none; }
  .progress { height: 26px; }

  body.dock-open .site-footer { padding-bottom: 130px; }
  .toast { bottom: 104px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee-track { animation: none; }
}

.stage-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
}

.stage-fallback-title {
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 24px);
  color: var(--paper);
}

.stage-fallback p {
  max-width: 46ch;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(242, 235, 223, 0.6);
}

.stage-fallback .btn {
  min-height: 42px;
  margin-top: 6px;
  font-size: 12px;
}

.stage-note.is-error { color: var(--gold-soft); }

/* ---------------------------------------------------------
   Preview stage (extrait officiel 30 s)
   --------------------------------------------------------- */

.stage-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.stage-label-row .stage-label { margin-bottom: 0; }

.stage-mode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid rgba(211, 162, 77, 0.35);
  border-radius: 999px;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.stage-mode .icon { width: 10px; height: 10px; }

.stage-frame.is-preview .yt-stage { display: none; }
.stage-frame.is-preview .stage-loading { display: none; }

.preview-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 46px);
  padding: clamp(20px, 3.6vw, 40px) clamp(20px, 4vw, 46px) clamp(34px, 4vw, 44px);
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(211, 162, 77, 0.22), transparent 55%),
    radial-gradient(90% 120% at 100% 110%, rgba(179, 81, 46, 0.2), transparent 60%),
    linear-gradient(135deg, #221b13, #0d0b08 70%);
  overflow: hidden;
}

.preview-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 10px);
  opacity: 0.4;
  pointer-events: none;
}

.preview-visual {
  position: relative;
  width: 34%;
  max-width: 190px;
  min-width: 92px;
  aspect-ratio: 1;
  flex: none;
  display: grid;
  place-items: center;
  z-index: 1;
}

.preview-disc {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, #101010 0 2px, #1a1a1a 2px 4px);
  box-shadow: 0 24px 45px -20px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  animation: disc-spin 18s linear infinite;
  animation-play-state: paused;
}

.preview-stage.is-playing .preview-disc { animation-play-state: running; }

.preview-disc::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.preview-disc-label {
  position: relative;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 34% 28%, var(--gold-soft), var(--gold-deep) 78%);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(10px, 1.4vw, 16px);
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.preview-disc-label::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0e0c09;
  transform: translate(-50%, -50%);
}

.preview-tonearm {
  position: absolute;
  top: -6%;
  right: 1%;
  width: 4px;
  height: 48%;
  border-radius: 4px;
  background: linear-gradient(to bottom, #d8cfc0, #6f6658);
  transform-origin: top center;
  transform: rotate(26deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  opacity: 0.55;
}

.preview-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 32ch;
}

.preview-kicker {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 8px;
}

.preview-copy h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.7vw, 36px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--paper);
}

.preview-copy > p:not(.preview-kicker) {
  margin-top: 5px;
  font-size: 11.5px;
  color: rgba(242, 235, 223, 0.5);
}

.preview-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(211, 162, 77, 0.4);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-soft);
  transition: color 0.2s, border-color 0.2s;
}

.preview-link:hover { color: var(--paper); border-color: var(--paper); }
.preview-link .icon { width: 12px; height: 12px; }

.preview-legal {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 12px;
  z-index: 1;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.03em;
  color: rgba(242, 235, 223, 0.52);
}

@keyframes disc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .preview-stage { gap: 14px; padding: 14px 14px 26px; }
  .preview-visual { width: 32%; min-width: 72px; }
  .preview-copy h3 { font-size: 17px; }
  .preview-kicker { font-size: 6.5px; letter-spacing: 0.13em; margin-bottom: 5px; }
  .preview-copy > p:not(.preview-kicker) { font-size: 9px; }
  .preview-link { margin-top: 10px; font-size: 7.5px; letter-spacing: 0.1em; }
  .preview-legal { display: none; }
  .stage-mode { font-size: 6.5px; padding: 2px 6px; }
}

.noscript-note {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 200;
  max-width: min(92vw, 620px);
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(211, 162, 77, 0.4);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.noscript-note a {
  color: var(--gold-soft);
  text-decoration: underline;
}

/* ---------------------------------------------------------
   Téléchargement YouTube
   --------------------------------------------------------- */

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .download-grid { grid-template-columns: 1fr; gap: 20px; }
}

.download-form-card, .download-library-card {
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 24px;
}

.download-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.download-input-wrap {
  display: flex;
  gap: 10px;
}

.download-input-wrap input[type="url"] {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.download-input-wrap input[type="url"]::placeholder {
  color: var(--muted-dark);
}

.download-input-wrap input[type="url"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: transparent;
}

.download-hint {
  font-size: 11px;
  color: var(--muted-dark);
  margin: 0;
}

.download-status {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.download-status--loading {
  background: rgba(211, 162, 77, 0.12);
  color: var(--gold-deep);
  border: 1px solid rgba(211, 162, 77, 0.35);
}

.download-status--ok {
  background: rgba(34, 139, 34, 0.12);
  color: #1b5e20;
  border: 1px solid rgba(34, 139, 34, 0.35);
}

.download-status--error {
  background: rgba(179, 81, 46, 0.12);
  color: var(--rust);
  border: 1px solid rgba(179, 81, 46, 0.35);
}

.download-status--info {
  background: rgba(107, 97, 85, 0.12);
  color: var(--muted-dark);
  border: 1px solid rgba(107, 97, 85, 0.35);
}

.download-library-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.download-library-head h3 {
  font-size: 17px;
}

.download-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

.download-track-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.download-track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.download-track-row .download-track-play {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
}

.download-track-row .download-track-play .icon {
  width: 14px;
  height: 14px;
}

.download-track-info {
  flex: 1;
  min-width: 0;
}

.download-track-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.download-track-artist {
  display: block;
  font-size: 11.5px;
  color: var(--muted-dark);
}

.download-track-row .download-track-delete {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.download-track-row .download-track-delete .icon {
  width: 14px;
  height: 14px;
}

.download-track-row .download-track-delete:hover {
  color: var(--rust);
  border-color: var(--rust);
}

.download-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted-dark);
  font-size: 14px;
  padding: 40px 0;
}

.download-legal {
  margin-top: 24px;
  font-size: 11px;
  color: var(--muted-dark);
  text-align: center;
  line-height: 1.6;
}

/* Stage local mode */
.stage-frame.is-local .yt-stage {
  display: none;
}

.stage-frame.is-local .preview-stage {
  display: none;
}
