/* ============================================================
   TML W2 v3 — Editorial Modern Rave
   ============================================================ */

:root {
  /* bg — near-black with warm undertone */
  --bg-deep: #06060a;
  --bg-0:    #0a0a10;
  --bg-1:    #0f0f17;
  --bg-2:    #16161f;
  --surface: rgba(255,255,255,.03);
  --surface-hi: rgba(255,255,255,.06);

  /* ink — warm cream */
  --ink:       #F2EDE4;
  --ink-dim:   #a9a4ba;
  --ink-muted: #6a6578;

  /* accents */
  --magenta:   #FF2E93;
  --magenta-2: #FF5CC8;
  --gold-1:    #E8C46B;   /* kept for landing */
  --gold-hot:  #FFD86B;
  --violet-1:  #6B0F9C;
  --violet-2:  #9D2BD1;
  --pink:      #FF5CC8;

  /* borders */
  --line:      rgba(255,255,255,.07);
  --line-hi:   rgba(255,255,255,.14);
  --line-hot:  rgba(255,46,147,.55);

  /* day accents (kept, slightly muted) */
  --day-ven:   #FF2E93;
  --day-sam:   #9D2BD1;
  --day-dim:   #E8C46B;

  /* gradients */
  --grad-gold:  linear-gradient(135deg, #FFD86B 0%, #E8A628 100%);
  --grad-mag:   linear-gradient(135deg, #FF2E93 0%, #9D2BD1 100%);
  --grad-sky:   radial-gradient(1400px 800px at 20% -10%, rgba(255,46,147,.12), transparent 60%),
                radial-gradient(1200px 700px at 90% 10%, rgba(107,15,156,.14), transparent 60%),
                linear-gradient(180deg, #06060a 0%, #0a0a10 100%);

  /* shadows / glows */
  --glow-mag:  0 0 40px rgba(255,46,147,.25);
  --glow-gold: 0 0 40px rgba(255,216,107,.22);
  --shadow-s:  0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.4);
  --shadow-l:  0 30px 60px rgba(0,0,0,.45), 0 6px 16px rgba(0,0,0,.35);

  /* radius */
  --r-xs:   4px;
  --r-s:    8px;
  --r-m:    14px;
  --r-l:    20px;
  --r-xl:   28px;
  --pill:   999px;

  --ease:   cubic-bezier(.22,.9,.3,1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --t:      260ms var(--ease);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overscroll-behavior-x: contain;
  max-width: 100vw;
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg-deep);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  line-height: 1.5;
  font-feature-settings: 'ss01', 'cv11';
}

::selection { background: var(--magenta); color: #fff; }

/* ============================================================
   ATMOSPHERE
   ============================================================ */
.sky {
  position: fixed; inset: 0; z-index: -2;
  background: var(--grad-sky);
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(255,46,147,.08), transparent 60%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.5) 100%);
}
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.65), transparent 55%),
    radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.55), transparent 55%),
    radial-gradient(1px 1px at 44% 34%, rgba(255,46,147,.45), transparent 55%),
    radial-gradient(1px 1px at 66% 58%, rgba(255,255,255,.45), transparent 55%),
    radial-gradient(1px 1px at 82% 22%, rgba(255,216,107,.4), transparent 55%),
    radial-gradient(1px 1px at 91% 80%, rgba(255,255,255,.55), transparent 55%),
    radial-gradient(1px 1px at 7% 90%, rgba(255,255,255,.4), transparent 55%),
    radial-gradient(1px 1px at 38% 8%, rgba(255,255,255,.35), transparent 55%);
  opacity: .7;
  animation: twinkle 14s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .55; }
  50%      { opacity: .85; }
}

/* ============================================================
   TYPE
   ============================================================ */
.serif   { font-family: 'Instrument Serif', 'Cinzel', serif; font-weight: 400; }
.cinzel  { font-family: 'Cinzel', serif; letter-spacing: .08em; }
.mono    { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: .22em;
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.h-display {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: -.01em;
}

/* ============================================================
   LANDING — ceremonial, kept fantasy
   ============================================================ */
.landing {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 80px 40px 60px;
  position: relative;
}
.landing-inner { width: min(1100px, 100%); text-align: center; position: relative; z-index: 2; }
.landing .kicker {
  color: var(--gold-1);
  letter-spacing: .32em;
  margin-bottom: 24px;
}
.landing h1 {
  font-family: 'Instrument Serif', 'Cinzel', serif;
  font-weight: 400;
  font-size: clamp(52px, 8vw, 128px);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.landing h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #FFD86B, #FF2E93);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.landing .sub {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 22px);
  color: var(--ink-dim);
  margin: 0 0 56px;
  letter-spacing: 0;
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.picker {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 420ms var(--spring), border-color var(--t), box-shadow var(--t), background var(--t);
  display: grid; grid-template-rows: 1fr auto auto;
  padding: 22px 18px;
  overflow: hidden;
}
.picker::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,46,147,.08), transparent 60%);
  opacity: 0; transition: opacity var(--t);
}
.picker:hover {
  transform: translateY(-6px);
  border-color: var(--line-hi);
  background: var(--surface-hi);
  box-shadow: var(--shadow-l), 0 0 40px rgba(255,46,147,.18);
}
.picker:hover::before { opacity: 1; }

.picker .monogram {
  align-self: center; justify-self: center;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 98px;
  line-height: 1;
  color: var(--ink);
  font-style: italic;
  letter-spacing: -.02em;
  transition: transform 420ms var(--spring), color var(--t);
  position: relative; z-index: 1;
}
.picker:hover .monogram {
  color: var(--gold-hot);
  transform: scale(1.08);
}
.picker .name {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .24em;
  color: var(--ink);
  text-transform: uppercase;
  text-align: center;
  margin-top: 14px;
  position: relative; z-index: 1;
}
.picker .tag {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 4px;
  position: relative; z-index: 1;
}

.landing-footer {
  margin-top: 56px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--ink-muted);
  font-size: 14px;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(10,10,16,.6);
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-seal {
  width: 34px; height: 34px; border-radius: var(--r-s);
  background: linear-gradient(135deg, #1a1a24, #0a0a10);
  border: 1px solid var(--line-hi);
  display: grid; place-items: center;
  color: var(--ink); font-family: 'Instrument Serif', serif;
  font-size: 18px; font-style: italic;
  position: relative;
}
.brand-seal::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: var(--r-s);
  background: linear-gradient(135deg, var(--magenta), transparent 60%);
  z-index: -1; opacity: .5;
}
.brand-word {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: .16em; font-size: 12px;
  color: var(--ink);
  text-transform: uppercase;
}

.tabs {
  display: flex; gap: 4px; margin-left: 8px; flex: 1;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  width: fit-content;
}
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  border-radius: var(--pill);
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active {
  background: var(--ink);
  color: #0a0a10;
  font-weight: 600;
}
.tab .badge {
  background: rgba(0,0,0,.18);
  color: inherit;
  padding: 1px 8px;
  border-radius: var(--pill);
  font-size: 10.5px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0;
}
.tab:not(.active) .badge {
  background: var(--surface-hi);
  color: var(--ink-dim);
}

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all var(--t);
  background: var(--surface);
}
.user-chip:hover { border-color: var(--line-hi); background: var(--surface-hi); }
.user-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--violet-1));
  display: grid; place-items: center;
  color: #fff;
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 12px;
}
.user-chip .chip-name {
  font-family: 'Inter', sans-serif; font-weight: 500;
  letter-spacing: .02em; font-size: 13px;
}
.user-chip .caret { color: var(--ink-muted); font-size: 12px; }

.user-dropdown {
  position: absolute; right: 28px; top: 62px;
  min-width: 240px;
  background: rgba(15,15,23,.96);
  border: 1px solid var(--line-hi);
  border-radius: var(--r-m);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-l);
  padding: 6px;
  z-index: 50;
}
.user-dropdown .ud-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--ink-muted);
  padding: 10px 12px 8px; letter-spacing: .14em;
  text-transform: uppercase;
}
.user-dropdown .ud-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-s);
  cursor: pointer;
  transition: background var(--t);
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 13.5px;
}
.user-dropdown .ud-item:hover { background: var(--surface-hi); }
.user-dropdown .ud-item.active { color: var(--magenta-2); }
.user-dropdown .ud-item .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
  visibility: hidden;
}
.user-dropdown .ud-item.active .dot { visibility: visible; }
.user-dropdown .ud-sep { height: 1px; background: var(--line); margin: 6px 0; }
.user-dropdown .ud-logout {
  color: var(--magenta-2);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

/* ============================================================
   PAGE + SECTION HEADERS
   ============================================================ */
.page { padding: 56px 32px 96px; max-width: 1440px; margin: 0 auto; }

.section-head { margin-bottom: 36px; }
.section-head .kicker { margin-bottom: 10px; }
.section-head h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ink);
}
.section-head h2 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--magenta), var(--gold-hot));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head .sub {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--ink-dim);
  font-size: 17px;
  margin-top: 6px;
}

/* ============================================================
   FILTERS
   ============================================================ */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
  align-items: center;
}
.search {
  flex: 1; min-width: 240px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-radius: var(--r-m);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--t);
}
.search:focus-within { border-color: var(--line-hi); }
.search input {
  background: transparent; border: 0; outline: 0;
  color: var(--ink); width: 100%;
  font-family: 'Inter', sans-serif; font-size: 14px;
  letter-spacing: -.005em;
}
.search input::placeholder { color: var(--ink-muted); }
.search .icn { color: var(--ink-muted); font-size: 14px; }

.select {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 34px 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  color: var(--ink);
  font-family: 'Inter', sans-serif; font-weight: 500;
  letter-spacing: 0; font-size: 13px;
  cursor: pointer;
  transition: all var(--t);
}
.select:hover { border-color: var(--line-hi); background: var(--surface-hi); }
.select .caret { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); font-size: 10px; }
.select select {
  appearance: none; background: transparent; border: 0;
  color: inherit; font: inherit; letter-spacing: inherit;
  outline: 0; cursor: pointer;
  padding-right: 4px;
}
.select select option { background: #0f0f17; color: var(--ink); }

.toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-family: 'Inter', sans-serif; font-weight: 500;
  letter-spacing: 0; font-size: 13px;
  color: var(--ink-dim);
  transition: all var(--t);
}
.toggle:hover { border-color: var(--line-hi); color: var(--ink); }
.toggle .sw {
  width: 26px; height: 15px; border-radius: 999px;
  background: rgba(255,255,255,.1);
  position: relative; transition: background var(--t);
}
.toggle .sw::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff;
  transition: all var(--t);
}
.toggle.on { color: var(--ink); border-color: var(--magenta); background: rgba(255,46,147,.08); }
.toggle.on .sw { background: var(--magenta); }
.toggle.on .sw::after { left: 13px; }

.counter {
  margin-left: auto;
  padding: 10px 16px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-muted);
  font-size: 12.5px;
}
.counter .num { color: var(--ink); font-weight: 600; }
.counter .dot { color: var(--magenta); margin: 0 6px; }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  overflow: hidden;
}
.tbl {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 14px;
}
.tbl thead th {
  position: sticky; top: 62px; z-index: 5;
  background: rgba(10,10,16,.92);
  backdrop-filter: blur(10px);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-muted);
  padding: 16px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  user-select: none; cursor: pointer;
  white-space: nowrap;
  transition: color var(--t);
}
.tbl thead th:hover { color: var(--ink); }
.tbl thead th.sorted { color: var(--magenta-2); }
.tbl thead th .sort {
  display: inline-block;
  margin-left: 6px; font-size: 10px;
  color: var(--ink-muted);
  opacity: .5;
}
.tbl thead th.sorted .sort { color: var(--magenta-2); opacity: 1; }

.tbl tbody tr {
  transition: background var(--t);
}
.tbl tbody tr:hover {
  background: rgba(255,255,255,.025);
}
.tbl tbody td {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.035);
  vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: 0; }

.tbl .day-cell {
  position: relative;
  padding-left: 24px !important;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: .06em; font-size: 11.5px;
  color: var(--ink-dim);
  white-space: nowrap;
}
.tbl .day-cell::before {
  content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px;
  width: 2px; border-radius: 2px;
  background: currentColor;
}
.tbl tr.d-ven .day-cell { color: var(--day-ven); }
.tbl tr.d-sam .day-cell { color: var(--day-sam); }
.tbl tr.d-dim .day-cell { color: var(--day-dim); }

.stage-tag {
  font-family: 'Inter', sans-serif !important; font-weight: 500 !important;
  letter-spacing: 0 !important; font-size: 13px !important;
  color: var(--ink-dim) !important;
  text-transform: none !important;
}
.artist-name {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.genre {
  font-family: 'Inter', sans-serif;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 400;
}

/* Vote select — modern pill */
.vote-select {
  appearance: none;
  width: 54px; height: 34px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-hi);
  background: var(--surface);
  text-align: center; text-align-last: center;
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  outline: 0; cursor: pointer;
  transition: all var(--t);
  padding: 0 6px;
}
.vote-select:hover { border-color: var(--ink-dim); }
.vote-select option { background: #0f0f17; color: var(--ink); }
.vote-select[data-v="-"] { color: var(--ink-muted); }
.vote-select[data-v="0"] { color: #FF9AA2; border-color: rgba(255,154,162,.35); background: rgba(255,154,162,.06); }
.vote-select[data-v="1"] { color: var(--ink); border-color: var(--line-hi); }
.vote-select[data-v="2"] { color: var(--magenta-2); border-color: rgba(255,92,200,.45); background: rgba(255,92,200,.08); }
.vote-select[data-v="3"] {
  background: var(--magenta);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 18px rgba(255,46,147,.4);
}

/* Avg badge — flat, modern */
.avg {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  border-radius: var(--r-s);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid var(--line-hi);
  background: var(--surface);
  min-width: 58px; justify-content: center;
  color: var(--ink);
}
.avg .tiny { color: var(--ink-muted); font-weight: 400; }
.avg.lvl-0 { color: #FF9AA2; border-color: rgba(255,154,162,.3); background: rgba(255,154,162,.06); }
.avg.lvl-1 { color: var(--ink-dim); }
.avg.lvl-2 { color: var(--magenta-2); border-color: rgba(255,92,200,.35); background: rgba(255,92,200,.06); }
.avg.lvl-3 {
  background: var(--magenta);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(255,46,147,.35);
}
.avg.lvl-3 .tiny { color: rgba(255,255,255,.7); }

/* Inline inputs */
.inline-input {
  background: transparent;
  border: 0;
  padding: 6px 4px;
  color: var(--ink);
  width: 100%; outline: 0;
  font-size: 13px;
  font-family: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t);
}
.inline-input::placeholder { color: var(--ink-muted); }
.inline-input:hover { border-bottom-color: var(--line); }
.inline-input:focus { border-bottom-color: var(--magenta); }
.inline-input.comment { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 14px; }

.link-cell { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.link-cell .live {
  color: var(--magenta-2);
  text-decoration: none;
  font-size: 14px;
  flex-shrink: 0;
}
.link-cell .live:hover { color: var(--magenta); }

/* ============================================================
   CLASSEMENT — editorial numeric podium
   ============================================================ */
.podium {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
.podium-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: 36px 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 480ms var(--spring), border-color var(--t);
  cursor: default;
}
.podium-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(100% 80% at 50% 0%, var(--acc, rgba(255,46,147,.14)), transparent 60%);
  pointer-events: none;
}
.podium-card:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.podium-card.p1 { --acc: rgba(255,216,107,.22); border-color: rgba(255,216,107,.25); }
.podium-card.p2 { --acc: rgba(255,46,147,.2); border-color: rgba(255,46,147,.25); }
.podium-card.p3 { --acc: rgba(157,43,209,.2); border-color: rgba(157,43,209,.25); }

.rank-huge {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 110px;
  line-height: .9;
  margin: 0 0 6px;
  letter-spacing: -.04em;
  color: var(--ink);
  position: relative; z-index: 1;
}
.podium-card.p1 .rank-huge {
  background: linear-gradient(135deg, #FFD86B 0%, #E8A628 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.podium-card.p2 .rank-huge {
  background: linear-gradient(135deg, #FF5CC8, #FF2E93);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.podium-card.p3 .rank-huge {
  background: linear-gradient(135deg, #C56AFF, #6B0F9C);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.podium-card .p-name {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 28px; line-height: 1.1;
  letter-spacing: -.01em;
  margin: 12px 0 8px;
  color: var(--ink);
  position: relative; z-index: 1;
}
.podium-card .p-meta {
  font-family: 'Inter', sans-serif;
  color: var(--ink-dim); font-size: 13px;
  margin-bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  position: relative; z-index: 1;
}
.podium-card .p-meta .tag {
  padding: 3px 9px;
  border-radius: var(--r-xs);
  background: var(--surface-hi);
  border: 1px solid var(--line);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.podium-card .p-meta .genre-m {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--ink-dim);
}
.podium-card .p-footer {
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 1;
}
.podium-card .p-votes {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* rank list */
.ranklist {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  overflow: hidden;
}
.rank-row {
  display: grid;
  grid-template-columns: 56px 1.4fr 1fr 140px 88px 90px;
  gap: 16px; align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  transition: background var(--t);
}
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: var(--surface-hi); }
.rank-row .r-num {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-muted);
  font-size: 22px;
  letter-spacing: -.02em;
}
.rank-row .r-name { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 19px; letter-spacing: -.01em; }
.rank-row .r-genre { font-family: 'Inter', sans-serif; color: var(--ink-muted); font-size: 13px; }
.rank-row .r-day {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-dim);
}
.rank-row.d-ven .r-day { color: var(--day-ven); }
.rank-row.d-sam .r-day { color: var(--day-sam); }
.rank-row.d-dim .r-day { color: var(--day-dim); }
.rank-row .r-votes {
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-muted); font-size: 11.5px; text-align: right;
}

/* ============================================================
   CARTE DES TEMPS
   ============================================================ */
.day-tabs { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.day-tab {
  padding: 14px 24px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-dim);
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--t);
  text-align: left;
}
.day-tab:hover { border-color: var(--line-hi); color: var(--ink); }
.day-tab.active {
  background: var(--ink);
  color: #0a0a10;
  border-color: transparent;
}
.day-tab .date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; opacity: .65;
  display: block; letter-spacing: .04em;
  margin-top: 2px;
  text-transform: uppercase;
}

.stage-grid {
  column-count: 3;
  column-gap: 16px;
}
.stage-col {
  break-inside: avoid;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--t);
}
.stage-col:hover { border-color: var(--line-hi); }
.stage-col .s-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.stage-col .s-head .s-name {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -.005em;
}
.stage-col .s-head .s-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-muted);
  margin-top: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.stage-col ul { list-style: none; margin: 0; padding: 4px 0; }
.stage-col li {
  padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background var(--t);
}
.stage-col li:hover { background: var(--surface-hi); }
.stage-col li + li { border-top: 1px solid rgba(255,255,255,.04); }
.stage-col .a-info { min-width: 0; }
.stage-col .a-name { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-col .a-genre { font-family: 'Inter', sans-serif; color: var(--ink-muted); font-size: 12px; margin-top: 2px; }

.vote-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
  border: 1px solid;
}
.vote-dot.v-0 { color: #FF9AA2; border-color: rgba(255,154,162,.35); background: rgba(255,154,162,.06); }
.vote-dot.v-1 { color: var(--ink-dim); border-color: var(--line-hi); }
.vote-dot.v-2 { color: var(--magenta-2); border-color: rgba(255,92,200,.4); background: rgba(255,92,200,.08); }
.vote-dot.v-3 { color: #fff; background: var(--magenta); border-color: transparent; box-shadow: 0 0 10px rgba(255,46,147,.4); }
.vote-dot.none { color: var(--ink-muted); border-color: var(--line); font-size: 13px; }

/* ============================================================
   ÉPREUVE V3 — generative full-card
   ============================================================ */
.epreuve-v3 {
  min-height: calc(100vh - 62px);
  display: grid; place-items: center;
  padding: 40px 20px 80px;
  position: relative;
}
.epreuve-v3 .meta-top {
  position: absolute; top: 28px; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.epreuve-v3 .meta-top .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.epreuve-v3 .progress-bar {
  width: 220px; height: 3px;
  background: var(--surface-hi);
  border-radius: 2px; overflow: hidden;
}
.epreuve-v3 .progress-bar .fill {
  height: 100%;
  background: var(--magenta);
  box-shadow: 0 0 12px rgba(255,46,147,.5);
  transition: width 500ms var(--ease);
}
.epreuve-v3 .progress-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: .06em;
}
.epreuve-v3 .progress-text b {
  color: var(--ink); font-weight: 600;
}

.arcane-stack {
  position: relative;
  width: 500px; height: 700px;
  /* Let the page scroll vertically, but we own horizontal gestures. */
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.arcane-stack .back {
  position: absolute; inset: 0;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  pointer-events: none;
  transition: all 500ms var(--spring);
}
.arcane-stack .back.b1 { transform: translate(-16px, 14px) rotate(-2.5deg); opacity: .6; }
.arcane-stack .back.b2 { transform: translate(16px, 14px) rotate(2.5deg); opacity: .45; }
.arcane-stack .back.b3 { transform: translate(0, 26px); opacity: .25; }

/* the main card */
.arcane {
  position: absolute; inset: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  /* pan-y: vertical page scroll unaffected. */
  touch-action: pan-y;
  box-shadow: var(--shadow-l);
  border: 1px solid var(--line-hi);
  background: #0a0a10;
}
.arcane img { -webkit-user-drag: none; user-drag: none; }

/* generative bg layers */
.arcane .gen-bg {
  position: absolute; inset: 0;
  transition: background 700ms var(--ease);
}
.arcane .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .75;
  mix-blend-mode: screen;
}
.arcane .orb.o1 { background: var(--aura-1); width: 65%; height: 65%; top: -15%; left: -10%; animation: orbit1 18s ease-in-out infinite; }
.arcane .orb.o2 { background: var(--aura-2); width: 70%; height: 70%; bottom: -20%; right: -15%; animation: orbit2 22s ease-in-out infinite; }
.arcane .orb.o3 { background: var(--aura-3); width: 40%; height: 40%; top: 35%; left: 30%; opacity: .5; animation: orbit3 14s ease-in-out infinite; }

@keyframes orbit1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(15%, 10%) scale(1.15); } }
@keyframes orbit2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-10%, -15%) scale(1.1); } }
@keyframes orbit3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-20%, 20%) scale(.9); } }

.arcane .noise {
  position: absolute; inset: 0;
  opacity: .04;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent 55%),
    radial-gradient(1px 1px at 52% 48%, #fff, transparent 55%),
    radial-gradient(1px 1px at 82% 72%, #fff, transparent 55%),
    radial-gradient(1px 1px at 33% 88%, #fff, transparent 55%);
  background-size: 80px 80px;
  mix-blend-mode: overlay;
}
.arcane .gradient-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(6,6,10,.2) 50%, rgba(6,6,10,.85) 100%);
}

.arcane .content {
  position: relative; z-index: 2;
  height: 100%;
  padding: 28px 32px 32px;
  display: flex; flex-direction: column;
}

.arcane .top-meta {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.arcane .day-badge {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 7px 14px;
  border-radius: var(--pill);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: .08em; font-size: 11px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.arcane .day-badge .dot-d {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--day-dot, var(--magenta));
  box-shadow: 0 0 8px var(--day-dot, var(--magenta));
}
.arcane .counter-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
  padding: 7px 14px;
  border-radius: var(--pill);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}

/* big artist name block — editorial */
.arcane .name-block {
  margin-top: auto;
  position: relative;
}
.arcane .big-name {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(48px, 6vw, 76px);
  line-height: .92;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 18px;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
  word-break: break-word;
}
.arcane .big-name em { font-style: italic; }

.arcane .meta-row {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-bottom: 14px;
}
.arcane .chip {
  padding: 6px 12px;
  border-radius: var(--r-s);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  color: #fff;
  letter-spacing: 0;
}
.arcane .chip.genre-c {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 14px;
  padding: 4px 12px 5px;
  background: transparent;
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
}

/* audio visualizer — minimal bars */
.arcane .viz {
  display: flex; align-items: flex-end; gap: 3px;
  height: 48px;
  margin-top: 12px;
  padding: 0 2px;
}
.arcane .viz .bar {
  flex: 1;
  background: #fff;
  border-radius: 2px;
  animation: vizPulse 1.4s ease-in-out infinite;
  opacity: .85;
}
@keyframes vizPulse {
  0%, 100% { height: 15%; opacity: .4; }
  50%      { height: 100%; opacity: .9; }
}

/* stamps */
.arcane .stamp {
  position: absolute; top: 120px;
  padding: 14px 26px;
  border: 2.5px solid;
  border-radius: var(--r-s);
  font-family: 'Instrument Serif', serif;
  font-weight: 400; font-style: italic;
  font-size: 36px; letter-spacing: -.02em;
  opacity: 0;
  transition: opacity 100ms linear;
  pointer-events: none;
  z-index: 5;
  backdrop-filter: blur(4px);
  background: rgba(6,6,10,.3);
}
.arcane .stamp.like {
  right: 32px; transform: rotate(14deg);
  border-color: #6FE8A5; color: #6FE8A5;
  text-shadow: 0 0 16px rgba(111,232,165,.5);
}
.arcane .stamp.pass {
  left: 32px; transform: rotate(-14deg);
  border-color: #FF4F8A; color: #FF4F8A;
  text-shadow: 0 0 16px rgba(255,79,138,.5);
}

/* burst sparks */
@keyframes sparkOut {
  0%   { transform: translate(0,0) scale(.4); opacity: 1; }
  100% { transform: translate(var(--sx), var(--sy)) scale(1.2); opacity: 0; }
}
.spark-burst {
  position: absolute; left: 50%; top: 50%;
  pointer-events: none; z-index: 6;
}
.spark-burst i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px #fff;
  animation: sparkOut 900ms ease-out forwards;
}

/* Action buttons — large, modern */
.match-buttons-v3 {
  display: flex; gap: 24px; justify-content: center;
  margin-top: 48px;
  align-items: center;
}
.mbv {
  position: relative;
  width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-hi);
  background: var(--surface);
  backdrop-filter: blur(10px);
  cursor: pointer; transition: all 280ms var(--spring);
  font-size: 24px;
  color: var(--ink);
}
.mbv::after {
  content: attr(data-label);
  position: absolute; top: calc(100% + 14px);
  left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: .14em; font-size: 10px;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.mbv:hover { transform: translateY(-4px) scale(1.05); }
.mbv.pass { color: #FF4F8A; border-color: rgba(255,79,138,.3); }
.mbv.pass:hover { background: rgba(255,79,138,.1); border-color: #FF4F8A; box-shadow: 0 0 32px rgba(255,79,138,.3); }
.mbv.skip { width: 56px; height: 56px; font-size: 18px; color: var(--ink-dim); }
.mbv.skip:hover { color: var(--ink); border-color: var(--ink-dim); }
.mbv.like { color: #6FE8A5; border-color: rgba(111,232,165,.3); }
.mbv.like:hover { background: rgba(111,232,165,.1); border-color: #6FE8A5; box-shadow: 0 0 32px rgba(111,232,165,.3); }

/* ============================================================
   TOAST
   ============================================================ */
.toast-host {
  position: fixed; left: 50%; bottom: 32px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 12px 22px;
  border-radius: var(--pill);
  background: rgba(15,15,23,.94);
  border: 1px solid var(--line-hi);
  color: var(--ink);
  box-shadow: var(--shadow-l);
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 13px;
  backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 280ms var(--spring) both;
}
.toast .spark { color: var(--magenta-2); }
@keyframes toastIn {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty {
  padding: 80px 24px;
  text-align: center;
  border: 1px dashed var(--line-hi);
  border-radius: var(--r-l);
  background: var(--surface);
  max-width: 620px; margin: 40px auto;
}
.empty .grimoire {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 64px;
  margin-bottom: 12px;
  color: var(--magenta-2);
}
.empty h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  color: var(--ink);
}
.empty p {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--ink-dim);
  margin: 0;
}

/* ============================================================
   SHEET / MODAL
   ============================================================ */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 40px;
  animation: fadeIn 180ms ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: min(560px, 100%);
  background: #0f0f17;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-l);
  padding: 32px;
  position: relative;
  animation: sheetIn 380ms var(--spring) both;
}
@keyframes sheetIn {
  from { transform: translateY(30px) scale(.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.sheet .x {
  position: absolute; right: 18px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-dim); cursor: pointer;
  display: grid; place-items: center;
}
.sheet .x:hover { border-color: var(--line-hi); color: var(--ink); }
.sheet .s-day {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: .14em; font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.sheet h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 36px;
  margin: 0 0 4px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.sheet .s-meta {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--ink-dim); margin-bottom: 22px;
  font-size: 15px;
}

.votes-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 8px; margin-bottom: 18px;
}
.voter {
  text-align: center; padding: 12px 4px;
  border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--surface);
}
.voter .v-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .1em;
  color: var(--ink-muted); text-transform: uppercase;
}
.voter .v-num {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 22px; margin-top: 4px;
  color: var(--ink);
}
.voter .v-num.n-0 { color: #FF9AA2; }
.voter .v-num.n-1 { color: var(--ink-dim); }
.voter .v-num.n-2 { color: var(--magenta-2); }
.voter .v-num.n-3 { color: var(--magenta); }
.voter .v-num.n-n { color: var(--ink-muted); font-size: 18px; }
.voter .v-num .v-denom {
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: 10px;
  color: var(--ink-muted);
  margin-left: 2px;
  letter-spacing: .04em;
}

.comments h4, .links h4 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: .14em; font-size: 10.5px;
  text-transform: uppercase; color: var(--ink-muted);
  margin: 20px 0 10px;
}
.comment-item {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  margin-bottom: 6px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
}
.comment-item b {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 10.5px;
  color: var(--ink-muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 288px;
  background: rgba(15,15,23,.96);
  border: 1px solid var(--line-hi);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-l);
  backdrop-filter: blur(14px);
  padding: 18px;
  z-index: 120;
  font-size: 12px;
}
.tweaks-panel h4 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: .14em; font-size: 11px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px; text-align: left;
}
.tweaks-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--ink-dim);
}
.tweaks-row:first-of-type { border-top: 0; }
.tweaks-row select, .tweaks-row button {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 5px 9px; font-size: 12px;
  font-family: 'Inter', sans-serif; font-weight: 500;
  cursor: pointer;
}
.tweaks-row select:hover, .tweaks-row button:hover { border-color: var(--line-hi); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .picker-grid { grid-template-columns: repeat(3, 1fr); }
  .stage-grid { column-count: 2; }
  .rank-row { grid-template-columns: 48px 1fr 100px 80px; }
  .rank-row .r-genre, .rank-row .r-day { display: none; }
}
@media (max-width: 720px) {
  .page { padding: 28px 16px 60px; }
  .picker-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .picker .monogram { font-size: 72px; }
  .landing { padding: 48px 20px; }
  .tabs { flex-wrap: wrap; border-radius: var(--r-m); }
  .stage-grid { column-count: 1; }
  .podium { grid-template-columns: 1fr; }
  .arcane-stack { width: 100%; max-width: 380px; height: 580px; }
  .arcane .big-name { font-size: 44px; }
  .tbl { font-size: 13px; }
  .tbl thead th { padding: 12px 10px; font-size: 10px; }
  .tbl tbody td { padding: 14px 10px; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .brand-word { display: none; }
  .section-head h2 { font-size: 32px; }
}

/* --- YouTube auto-play mute button + track link --- */
.mbv.mute { width: 48px; height: 48px; font-size: 16px; color: var(--ink-dim); }
.mbv.mute.on { color: var(--magenta-2); border-color: rgba(255,92,200,.4); }
.yt-track-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted); text-decoration: none;
  margin-top: 18px; display: inline-block;
  transition: color 200ms;
}
.yt-track-link:hover { color: var(--magenta-2); }

/* --- YouTube progress bar + play/pause --- */
.yt-playback-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 440px;
  margin: 18px auto 10px;
  padding: 0 4px;
}
.yt-progress {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.yt-progress .fill {
  height: 100%;
  width: 0%;
  background: var(--magenta);
  box-shadow: 0 0 12px rgba(255,46,147,.5);
  transition: width 200ms linear;
  border-radius: 2px;
}
.yt-progress:hover { background: rgba(255,255,255,.14); }
.yt-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--ink-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mbv.playpause { width: 48px; height: 48px; color: var(--ink-dim); }
.mbv.playpause.on { color: var(--magenta-2); border-color: rgba(255,92,200,.4); }

/* ============================================================
   PLAYER PANEL — prominent music player block
   ============================================================ */
.player-panel {
  width: 100%;
  max-width: 560px;
  margin: 28px auto 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.player-head {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
}
.player-thumb {
  position: relative;
  width: 72px; height: 72px;
  border-radius: var(--r-m);
  overflow: hidden;
  background: linear-gradient(135deg, #2a1050 0%, #6B0F9C 60%, #FF2E93 100%);
  border: 1px solid var(--line-hi);
  flex-shrink: 0;
}
.player-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.player-thumb .thumb-fallback-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2a1050 0%, #6B0F9C 60%, #FF2E93 100%);
  z-index: -1;
}
.player-thumb.thumb-fallback { background: linear-gradient(135deg, #2a1050, #FF2E93); }
.player-meta {
  min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.player-track {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-artist {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mbv.playpause.big {
  width: 64px; height: 64px;
  font-size: 22px;
  border: 1px solid var(--line-hi);
}
.mbv.playpause.big svg { width: 24px; height: 24px; }
.mbv.playpause.big.on {
  color: var(--magenta);
  border-color: rgba(255,46,147,.55);
  background: rgba(255,46,147,.08);
  box-shadow: 0 0 24px rgba(255,46,147,.35);
}
.player-panel .yt-playback-row {
  max-width: none;
  margin: 14px 0 0;
  padding: 0;
}
.player-panel .yt-progress { height: 6px; border-radius: 3px; }
.player-panel .yt-progress .fill { border-radius: 3px; }

/* ============================================================
   RATING ROW — 0..3 buttons
   ============================================================ */
.rating-row {
  display: flex; gap: 18px; justify-content: center;
  margin: 26px 0 14px;
  align-items: center;
  flex-wrap: wrap;
}
.rate-btn {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
  background: var(--surface);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 280ms var(--spring), box-shadow 260ms, border-color 200ms, background 200ms;
  color: var(--ink);
}
.rate-btn .rate-n {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 30px;
  line-height: 1;
}
.rate-btn::after {
  content: attr(data-label);
  position: absolute; top: calc(100% + 10px);
  left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.rate-btn:hover { transform: translateY(-3px) scale(1.04); }
.rate-btn[data-rate="0"] {
  color: #FF9AA2; border-color: rgba(255,154,162,.35); background: rgba(255,154,162,.05);
}
.rate-btn[data-rate="0"]:hover {
  border-color: #FF9AA2;
  box-shadow: 0 0 24px rgba(255,154,162,.3);
}
.rate-btn[data-rate="1"] {
  color: var(--ink-dim);
}
.rate-btn[data-rate="1"]:hover {
  color: var(--ink);
  border-color: var(--ink-dim);
  box-shadow: 0 0 18px rgba(169,164,186,.22);
}
.rate-btn[data-rate="2"] {
  color: #FF5CC8; border-color: rgba(255,92,200,.4); background: rgba(255,92,200,.06);
}
.rate-btn[data-rate="2"]:hover {
  border-color: #FF5CC8;
  box-shadow: 0 0 26px rgba(255,92,200,.38);
}
.rate-btn[data-rate="3"] {
  color: #FF2E93;
  border-color: rgba(255,46,147,.55);
  background: rgba(255,46,147,.08);
  box-shadow: 0 0 20px rgba(255,46,147,.5);
}
.rate-btn[data-rate="3"]:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 0 32px rgba(255,46,147,.7);
}

/* Utility row: skip + mute under rating */
.match-utility-row {
  display: flex; gap: 18px; justify-content: center;
  align-items: center;
  margin-top: 34px;
}

/* ============================================================
   ÉPREUVE V4 — Listen → Decide → Move on
   Single mental model: hero card, rating, equal-weight escapes.
   ============================================================ */
.epreuve-v4 {
  min-height: calc(100dvh - 62px);
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  justify-items: center;
  align-content: start;
  gap: 22px;
  padding: 24px 20px 64px;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

/* --- A. Session bar --- */
.epreuve-v4 .session-bar {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 100%; max-width: 500px;
  padding-top: 6px;
}
.epreuve-v4 .session-progress {
  width: 100%; height: 3px;
  background: var(--surface-hi);
  border-radius: 2px; overflow: hidden;
}
.epreuve-v4 .session-progress .fill {
  height: 100%;
  background: var(--magenta);
  box-shadow: 0 0 12px rgba(255,46,147,.5);
  transition: width 500ms var(--ease);
}
.epreuve-v4 .session-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .08em;
  color: var(--ink-dim);
}
.epreuve-v4 .session-text b { color: var(--ink); font-weight: 600; }

/* --- B. Hero card size --- */
.epreuve-v4 .arcane-stack {
  width: 500px; height: 620px;
  max-width: min(500px, 94vw);
}
.epreuve-v4 .arcane-hero .content {
  padding: 22px 28px 22px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 14px;
  height: 100%;
}

/* --- B1. Album art (circular, rotating vinyl) --- */
.epreuve-v4 .album-wrap {
  display: flex; justify-content: center; align-items: center;
  padding-top: 6px;
}
.epreuve-v4 .album-frame {
  position: relative;
  width: 200px; height: 200px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #FFE89C 0%, #E8A628 45%, #FFD86B 100%);
  box-shadow:
    0 18px 40px rgba(0,0,0,.55),
    0 0 28px rgba(232,166,40,.28),
    inset 0 0 0 1px rgba(255,232,156,.35);
  isolation: isolate;
}
.epreuve-v4 .album-art {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: radial-gradient(circle at 30% 30%, #2a1050, #06060a 70%);
  animation: albumSpin 30s linear infinite;
  animation-play-state: paused;
}
.epreuve-v4 .album-frame.playing .album-art {
  animation-play-state: running;
}
.epreuve-v4 .album-art.art-fallback-bg {
  background: radial-gradient(circle at 30% 30%, #FF5CC8, #6B0F9C 60%, #1c0a3d 100%);
}
.epreuve-v4 .album-frame.art-fallback::before {
  content: '';
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FF5CC8, #6B0F9C 60%, #1c0a3d 100%);
  z-index: 0;
}
/* central spindle hole */
.epreuve-v4 .album-frame::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 14px; height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #06060a;
  box-shadow: 0 0 0 2px rgba(255,232,156,.4), inset 0 0 4px rgba(0,0,0,.8);
  z-index: 2;
  pointer-events: none;
}
@keyframes albumSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Play/pause overlay */
.epreuve-v4 .album-play {
  position: absolute; top: 50%; left: 50%;
  width: 80px; height: 80px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(6,6,10,.55);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  opacity: .6;
  z-index: 3;
  transition: opacity 200ms var(--ease), transform 220ms var(--spring),
              background 200ms, border-color 200ms, box-shadow 200ms;
}
.epreuve-v4 .album-play:hover,
.epreuve-v4 .album-frame:hover .album-play {
  opacity: 1;
  background: rgba(6,6,10,.72);
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 0 28px rgba(255,46,147,.35);
  transform: translate(-50%, -50%) scale(1.05);
}
.epreuve-v4 .album-play.playing { opacity: .35; }
.epreuve-v4 .album-play.playing:hover { opacity: 1; }
.epreuve-v4 .album-play svg { width: 34px; height: 34px; }

/* --- B2. Name block (inside hero) --- */
.epreuve-v4 .arcane-hero .name-block {
  margin-top: 4px;
  display: flex; flex-direction: column; gap: 8px;
  align-items: flex-start;
}
.epreuve-v4 .arcane-hero .track-line {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.2;
  color: rgba(255,255,255,.78);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.epreuve-v4 .arcane-hero .big-name {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: .94;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
.epreuve-v4 .arcane-hero .meta-row { margin: 0; }

/* --- B3. Progress row inside card --- */
.epreuve-v4 .card-playback {
  display: flex; align-items: center; gap: 12px;
  margin-top: 2px;
}
.epreuve-v4 .card-playback .yt-progress {
  flex: 1;
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.12);
}
.epreuve-v4 .card-playback .yt-progress .fill { border-radius: 3px; }
.epreuve-v4 .card-playback .yt-progress:hover { background: rgba(255,255,255,.2); }
.epreuve-v4 .card-playback .yt-time {
  color: rgba(255,255,255,.7);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}

/* Rated stamp override (numeric) */
.epreuve-v4 .arcane-hero .stamp.rated {
  position: absolute; top: 120px;
  padding: 14px 26px;
  border: 2.5px solid;
  border-radius: var(--r-s);
  font-family: 'Instrument Serif', serif;
  font-weight: 400; font-style: italic;
  font-size: 64px; line-height: 1; letter-spacing: -.02em;
  opacity: 0;
  transition: opacity 140ms linear, transform 260ms var(--spring);
  pointer-events: none;
  z-index: 5;
  backdrop-filter: blur(4px);
  background: rgba(6,6,10,.35);
}

/* --- C. Rating row (0..3 pills with label) --- */
.epreuve-v4 .rating-row {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap;
  margin: 4px 0 0;
}
.epreuve-v4 .rating-row .rate {
  position: relative;
  width: 96px; height: 104px;
  border-radius: 18px;
  border: 1px solid var(--line-hi);
  background: var(--surface);
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 12px 6px 14px;
  cursor: pointer;
  color: var(--ink);
  transition: transform 260ms var(--spring),
              box-shadow 220ms, border-color 200ms, background 200ms;
}
.epreuve-v4 .rating-row .rate-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 42px;
  line-height: 1;
}
.epreuve-v4 .rating-row .rate-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.epreuve-v4 .rating-row .rate:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--ink-dim);
}
.epreuve-v4 .rating-row .rate:active {
  transform: translateY(-1px) scale(.98);
}

/* 0 — NON — coral */
.epreuve-v4 .rating-row .rate-0 {
  color: #FF9AA2;
  border-color: rgba(255,154,162,.35);
  background: rgba(255,154,162,.06);
}
.epreuve-v4 .rating-row .rate-0 .rate-label { color: rgba(255,154,162,.8); }
.epreuve-v4 .rating-row .rate-0:hover {
  border-color: #FF9AA2;
  box-shadow: 0 0 28px rgba(255,154,162,.35);
}

/* 1 — BOF — neutral */
.epreuve-v4 .rating-row .rate-1 {
  color: var(--ink-dim);
  border-color: var(--line-hi);
}
.epreuve-v4 .rating-row .rate-1:hover {
  color: var(--ink);
  border-color: var(--ink-dim);
  box-shadow: 0 0 20px rgba(169,164,186,.22);
}

/* 2 — BIEN — magenta-2 */
.epreuve-v4 .rating-row .rate-2 {
  color: #FF5CC8;
  border-color: rgba(255,92,200,.4);
  background: rgba(255,92,200,.08);
}
.epreuve-v4 .rating-row .rate-2 .rate-label { color: rgba(255,92,200,.85); }
.epreuve-v4 .rating-row .rate-2:hover {
  border-color: #FF5CC8;
  box-shadow: 0 0 28px rgba(255,92,200,.4);
}

/* 3 — OUI! — magenta, hero */
.epreuve-v4 .rating-row .rate-3 {
  color: #fff;
  background: rgba(255,46,147,.18);
  border-color: rgba(255,46,147,.6);
  box-shadow: 0 0 24px rgba(255,46,147,.5);
  transform: scale(1.05);
}
.epreuve-v4 .rating-row .rate-3 .rate-label { color: rgba(255,255,255,.85); }
.epreuve-v4 .rating-row .rate-3:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 0 36px rgba(255,46,147,.75);
  background: rgba(255,46,147,.28);
}

/* --- D. Secondary row (equal-weight YouTube + Skip, small mute) --- */
.epreuve-v4 .secondary-row {
  display: flex; gap: 14px; justify-content: center; align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.epreuve-v4 .util-pill {
  height: 48px;
  min-width: 220px;
  padding: 0 18px;
  border-radius: var(--pill);
  border: 1px solid var(--line-hi);
  background: var(--surface);
  backdrop-filter: blur(8px);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform 220ms var(--spring),
              background 200ms, border-color 200ms, color 200ms, box-shadow 220ms;
}
.epreuve-v4 .util-pill:hover {
  transform: translateY(-2px);
  background: var(--surface-hi);
  border-color: rgba(255,92,200,.5);
  color: var(--magenta-2);
  box-shadow: 0 0 24px rgba(255,92,200,.22);
}
.epreuve-v4 .util-pill .util-icon { color: var(--magenta-2); display: inline-flex; }
.epreuve-v4 .util-pill .util-ext  { opacity: .6; }
.epreuve-v4 .util-pill.util-skip { color: var(--ink-dim); }
.epreuve-v4 .util-pill.util-skip .util-icon { color: var(--ink-dim); }
.epreuve-v4 .util-pill.util-skip:hover {
  color: var(--ink);
  border-color: var(--ink-dim);
  box-shadow: 0 0 20px rgba(169,164,186,.22);
}
.epreuve-v4 .util-pill.util-skip:hover .util-icon { color: var(--ink); }

.epreuve-v4 .util-mute {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  display: grid; place-items: center;
  cursor: pointer;
  transition: color 200ms, border-color 200ms, background 200ms, transform 220ms var(--spring);
}
.epreuve-v4 .util-mute:hover {
  color: var(--ink);
  border-color: var(--line-hi);
  background: var(--surface);
  transform: translateY(-2px);
}
.epreuve-v4 .util-mute.on {
  color: var(--magenta-2);
  border-color: rgba(255,92,200,.4);
  background: rgba(255,92,200,.06);
}

/* --- E. Keyboard hint footer --- */
.epreuve-v4 .kbd-hint {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.epreuve-v4 .kbd-hint kbd {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0;
  color: var(--ink);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-hi);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,.4);
}
.epreuve-v4 .kbd-hint .sep { color: rgba(255,255,255,.14); }

/* --- C2. Rating gauge (0..10 slider) --- */
.epreuve-v4 .rating-gauge {
  --rating-pct: 50%;
  --rating-color: #FF5CC8;
  width: min(100%, 440px);
  margin: 8px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 6px 4px;
  outline: none;
}
.epreuve-v4 .gauge-display {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}
.epreuve-v4 .gauge-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 96px;
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--rating-color);
  transition: color 180ms ease, text-shadow 220ms ease;
  font-variant-numeric: tabular-nums;
}
.epreuve-v4 .gauge-num.is-max {
  background: linear-gradient(90deg, #FF9AA2, #FF5CC8 48%, #FF2E93);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 34px rgba(255,46,147,.55);
}
.epreuve-v4 .gauge-denom {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: .04em;
}
.epreuve-v4 .gauge-track {
  position: relative;
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}
.epreuve-v4 .gauge-track::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 10px;
  transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
}
.epreuve-v4 .gauge-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  width: var(--rating-pct);
  background: linear-gradient(90deg, #FF9AA2, #FF5CC8 52%, #FF2E93);
  border-radius: 999px;
  pointer-events: none;
  transition: width 180ms cubic-bezier(.34,1.56,.64,1);
}
.epreuve-v4 .gauge-thumb {
  position: absolute;
  top: 50%;
  left: var(--rating-pct);
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--rating-color);
  box-shadow: 0 0 24px var(--rating-color);
  cursor: grab;
  padding: 0;
  transition: transform 180ms cubic-bezier(.34,1.56,.64,1), box-shadow 180ms ease, left 180ms cubic-bezier(.34,1.56,.64,1);
}
.epreuve-v4 .gauge-thumb:active,
.epreuve-v4 .gauge-track:active .gauge-thumb {
  transform: translate(-50%, -50%) scale(1.14);
  cursor: grabbing;
}
.epreuve-v4 .rating-gauge:focus-visible .gauge-thumb {
  box-shadow: 0 0 24px var(--rating-color), 0 0 0 4px rgba(255,92,200,.28);
}
.epreuve-v4 .gauge-scale {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-muted);
  padding: 0 2px;
}

/* --- C3. Gauge actions (Passer / Valider) --- */
.epreuve-v4 .gauge-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 10px 0 0;
  flex-wrap: wrap;
}
.epreuve-v4 .gauge-btn {
  --rating-color: #FF5CC8;
  height: 48px;
  min-width: 140px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  background: var(--surface);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform 220ms var(--spring),
              background 200ms, border-color 200ms, color 200ms, box-shadow 220ms;
}
.epreuve-v4 .gauge-btn:hover {
  transform: translateY(-2px);
}
.epreuve-v4 .gauge-btn-skip {
  color: var(--ink-dim);
  background: transparent;
}
.epreuve-v4 .gauge-btn-skip:hover {
  color: var(--ink);
  border-color: var(--ink-dim);
  box-shadow: 0 0 20px rgba(169,164,186,.22);
}
.epreuve-v4 .gauge-btn-validate {
  color: #fff;
  background: var(--rating-color);
  border-color: transparent;
  box-shadow: 0 0 24px color-mix(in srgb, var(--rating-color) 55%, transparent);
}
.epreuve-v4 .gauge-btn-validate:hover {
  box-shadow: 0 0 36px color-mix(in srgb, var(--rating-color) 75%, transparent);
}

/* --- Responsive --- */
@media (max-width: 540px) {
  .epreuve-v4 .arcane-stack { width: 100%; max-width: 380px; height: 560px; }
  .epreuve-v4 .album-frame { width: 170px; height: 170px; }
  .epreuve-v4 .album-play { width: 66px; height: 66px; }
  .epreuve-v4 .album-play svg { width: 28px; height: 28px; }
  .epreuve-v4 .arcane-hero .big-name { font-size: 36px; }
  .epreuve-v4 .util-pill { min-width: 180px; }
}

/* --- Fallback (embed blocked / error) --- */
.epreuve-v4 .album-frame.dimmed .album-art {
  animation-play-state: paused;
  filter: grayscale(.6) brightness(.5);
}
.epreuve-v4 .album-frame.dimmed .album-play { display: none; }
.epreuve-v4 .fallback-overlay {
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: rgba(6,6,10,.78);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  z-index: 4;
}
.epreuve-v4 .fallback-msg {
  display: inline-flex; align-items: center; gap: 6px;
  color: #FFD86B;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .02em;
  max-width: 140px;
}
.epreuve-v4 .fallback-icon { display: inline-flex; }
.epreuve-v4 .fallback-pill {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--pill, 999px);
  border: 1px solid rgba(255,92,200,.5);
  background: rgba(20,10,30,.85);
  color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms var(--spring, ease), background 200ms, border-color 200ms, box-shadow 220ms;
}
.epreuve-v4 .fallback-pill:hover {
  transform: translateY(-1px);
  background: rgba(40,15,55,.95);
  border-color: rgba(255,92,200,.85);
  box-shadow: 0 0 20px rgba(255,92,200,.28);
}
.epreuve-v4 .fallback-pill-icon { color: var(--magenta-2, #FF5CC8); display: inline-flex; }
.epreuve-v4 .fallback-pill-ext  { opacity: .6; display: inline-flex; }

/* --- Tap to play (autoplay blocked) --- */
.epreuve-v4 .tap-to-play {
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: rgba(6,6,10,.35);
  backdrop-filter: blur(2px);
  border: 0;
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 5;
}
.epreuve-v4 .tap-to-play .tap-ring {
  position: absolute; top: 50%; left: 50%;
  width: 72px; height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255,92,200,.7);
  animation: tapPulse 1.4s ease-out infinite;
  pointer-events: none;
}
.epreuve-v4 .tap-to-play .tap-icon {
  display: inline-flex;
  color: #fff;
  filter: drop-shadow(0 0 10px rgba(255,46,147,.6));
}
.epreuve-v4 .tap-to-play .tap-text {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
  margin-top: 2px;
}
@keyframes tapPulse {
  0%   { transform: translate(-50%, -50%) scale(.7); opacity: .9; }
  70%  { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

/* --- Tap to unmute (unmuted autoplay blocked; video is playing muted) --- */
.epreuve-v4 .tap-to-unmute {
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: rgba(6,6,10,.42);
  backdrop-filter: blur(2px);
  border: 0;
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 6;
}
.epreuve-v4 .tap-to-unmute .tap-ring {
  position: absolute; top: 50%; left: 50%;
  width: 76px; height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255,216,107,.75);
  animation: tapPulse 1.4s ease-out infinite;
  pointer-events: none;
}
.epreuve-v4 .tap-to-unmute .tap-icon {
  display: inline-flex;
  color: #fff;
  filter: drop-shadow(0 0 10px rgba(255,216,107,.65));
}
.epreuve-v4 .tap-to-unmute .tap-text {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .9;
  margin-top: 2px;
}

/* --- W2. Track-now block (below album, above artist) --- */
.epreuve-v4 .arcane-hero .track-now {
  max-width: 90%;
  margin: 16px auto 0;
  text-align: center;
  animation: fadeUp 500ms ease 300ms both;
}
.epreuve-v4 .arcane-hero .track-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.epreuve-v4 .arcane-hero .track-title {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
}
.epreuve-v4 .arcane-hero .track-title em {
  font-style: italic;
}

/* --- W2. Day-chip in meta row --- */
.arcane .chip.day-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.arcane .chip.day-chip .dot-d {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  flex: 0 0 auto;
}

/* Top-meta now single-item (counter only): push to the right */
.arcane .top-meta.top-meta--single {
  justify-content: flex-end;
}

@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   MOBILE-FIRST PASS (<=768px)
   Bottom tabs, thin topbar, bottom-sheet, card-view registre, epreuve scale
   ========================================================================= */

/* default: hide mobile-only UI on desktop */
.bottom-tabs { display: none; }
.artist-cards { display: none; }

@media (max-width: 768px) {
  body { overscroll-behavior: contain; }

  /* --- Page --- */
  .page { padding: 20px 16px 96px; }

  /* --- Thin topbar --- */
  .topbar {
    padding: 8px 14px;
    gap: 10px;
    min-height: 52px;
  }
  .brand-seal { width: 28px; height: 28px; font-size: 15px; }
  .brand-word { display: block; font-size: 11px; letter-spacing: .14em; }

  /* Hide horizontal tabs on mobile (replaced by bottom-tabs) */
  .topbar .tabs { display: none; }

  /* Avatar-only user chip */
  .user-chip {
    margin-left: auto;
    padding: 4px;
    border-radius: 999px;
  }
  .user-chip .chip-name,
  .user-chip .caret { display: none; }
  .user-chip .avatar { width: 32px; height: 32px; font-size: 13px; }

  /* --- Bottom tab bar --- */
  .bottom-tabs {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 40;
    background: rgba(10,10,16,.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bt-tab {
    flex: 1;
    min-height: 64px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px;
    padding: 8px 0 10px;
    border: 0;
    background: transparent;
    color: var(--ink-muted);
    cursor: pointer;
    transition: color 200ms ease;
    position: relative;
  }
  .bt-tab:hover { color: var(--ink-dim); }
  .bt-tab.active { color: var(--ink); }
  .bt-tab.active::before {
    content: "";
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 28px; height: 2px;
    background: var(--magenta);
    border-radius: 0 0 2px 2px;
    box-shadow: 0 0 8px var(--magenta);
  }
  .bt-icon {
    font-size: 22px; line-height: 1;
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 26px; min-height: 26px;
  }
  .bt-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .bt-badge {
    position: absolute; top: -4px; right: -10px;
    background: var(--magenta);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; font-weight: 600;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 999px;
    min-width: 14px; text-align: center;
    box-shadow: 0 0 6px rgba(255,46,147,.5);
  }

  /* --- Bottom-sheet overlay (replaces user-dropdown on mobile) --- */
  .sheet-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 90;
    opacity: 0;
    transition: opacity 220ms ease;
    display: flex; align-items: flex-end;
  }
  .sheet-overlay.open { opacity: 1; }
  .sheet-panel {
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    background: #0f0f17;
    border-top: 1px solid var(--line-hi);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 280ms cubic-bezier(.34,1.4,.64,1);
    box-shadow: 0 -20px 60px rgba(0,0,0,.6);
  }
  .sheet-overlay.open .sheet-panel { transform: translateY(0); }
  .sheet-handle {
    width: 40px; height: 4px;
    background: rgba(255,255,255,.18);
    border-radius: 2px;
    margin: 4px auto 16px;
  }
  .sheet-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 10px;
  }
  .sheet-list { display: flex; flex-direction: column; gap: 2px; }
  .sheet-item {
    display: flex; align-items: center; gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 0;
    border-radius: var(--r-m);
    background: transparent;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: background 160ms ease;
  }
  .sheet-item:hover,
  .sheet-item:active { background: var(--surface-hi); }
  .sheet-item.active { background: var(--surface-hi); }
  .sheet-item.active .sheet-name { color: var(--magenta-2); }
  .sheet-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ink-muted);
    flex: 0 0 auto;
  }
  .sheet-item.active .sheet-dot {
    background: var(--magenta);
    box-shadow: 0 0 8px var(--magenta);
  }
  .sheet-sep {
    height: 1px; background: var(--line);
    margin: 10px -20px;
  }
  .sheet-logout {
    color: #ff9aa2;
    font-size: 14px;
  }

  /* --- Registre: hide table, show cards --- */
  .table-wrap { display: none !important; }
  .artist-cards {
    display: flex; flex-direction: column;
    gap: 10px;
    margin-top: 8px;
  }
  .artist-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    background: var(--surface);
    display: flex; flex-direction: column;
    gap: 8px;
  }
  .artist-card .ac-chips {
    display: flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-muted);
    flex-wrap: wrap;
  }
  .artist-card .ac-day {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--ink-dim);
  }
  .artist-card .ac-day::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 4px currentColor;
  }
  .artist-card.d-ven .ac-day { color: #ffd86b; }
  .artist-card.d-sam .ac-day { color: var(--magenta-2); }
  .artist-card.d-dim .ac-day { color: #7db6ff; }
  .artist-card .ac-stage { opacity: .75; }
  .artist-card .ac-name {
    font-family: 'Instrument Serif', serif;
    font-size: 22px; line-height: 1.15;
    color: var(--ink);
    margin: 2px 0;
  }
  .artist-card .ac-genre {
    font-size: 13px;
    color: var(--ink-dim);
  }
  .artist-card .ac-vote-row {
    display: flex; align-items: center; gap: 12px;
    margin-top: 4px;
  }
  .artist-card .ac-vote {
    min-height: 44px;
    min-width: 96px;
  }
  .artist-card .ac-avg {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: var(--ink-muted);
    letter-spacing: .08em; text-transform: uppercase;
    display: flex; align-items: center; gap: 6px;
  }
  .artist-card .ac-details {
    margin-top: 4px;
    border-top: 1px dashed var(--line);
    padding-top: 8px;
  }
  .artist-card .ac-details summary {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-muted);
    cursor: pointer;
    padding: 8px 0;
    list-style: none;
  }
  .artist-card .ac-details summary::-webkit-details-marker { display: none; }
  .artist-card .ac-details[open] summary { color: var(--ink-dim); }
  .artist-card .ac-details-body {
    display: flex; flex-direction: column; gap: 8px;
    padding-top: 6px;
  }
  .artist-card .inline-input {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
  }

  /* Filters stack better on mobile */
  .filters {
    gap: 8px;
  }
  .filters .search { flex: 1 1 100%; }
  .filters .search input { min-height: 44px; font-size: 14px; }
  .filters .select { flex: 1 1 calc(50% - 4px); }
  .filters .select select { min-height: 44px; font-size: 14px; }
  .filters .toggle { flex: 1 1 100%; min-height: 44px; }
  .filters .counter { flex: 1 1 100%; text-align: left; }

  /* --- Section head compact --- */
  .section-head h2 { font-size: 28px; }
  .section-head .kicker { font-size: 10px; }
  .section-head .sub { font-size: 12px; }

  /* --- Épreuve mobile --- */
  .epreuve-v4 .arcane-stack {
    width: min(92vw, 360px);
    max-width: 360px;
    height: auto;
    min-height: 520px;
  }
  .epreuve-v4 .album-frame { width: 140px; height: 140px; }
  .epreuve-v4 .album-play { width: 64px; height: 64px; }
  .epreuve-v4 .album-play svg { width: 26px; height: 26px; }
  .epreuve-v4 .arcane-hero .big-name {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.02;
  }
  .epreuve-v4 .arcane-hero .track-title { font-size: 20px; }
  .epreuve-v4 .yt-playback-row { max-width: 100%; }
  .epreuve-v4 .card-playback .yt-progress { width: 100%; }

  .epreuve-v4 .rating-gauge { width: 100%; padding: 4px 4px 0; gap: 10px; }
  .epreuve-v4 .gauge-num { font-size: 72px; }
  .epreuve-v4 .gauge-actions { width: 100%; gap: 10px; }
  .epreuve-v4 .gauge-btn { flex: 1 1 140px; min-width: 0; }

  /* Secondary row: allow wrap, full-width pills */
  .epreuve-v4 .util-row,
  .epreuve-v4 .secondary-row {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .epreuve-v4 .util-pill { flex: 1 1 auto; min-width: 0; }

  /* Hide keyboard hint on touch */
  .epreuve-v4 .keyboard-hint,
  .epreuve-v4 .kbd-hint,
  .kbd-hint { display: none !important; }

  .epreuve-v4 .session-bar {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Very small screens: tighter gauge */
  @media (max-width: 400px) {
    .epreuve-v4 .gauge-num { font-size: 64px; }
    .epreuve-v4 .gauge-btn { height: 44px; }
  }

  /* --- Classement mobile --- */
  .podium { grid-template-columns: 1fr; }
  .podium .rank-huge { font-size: 72px; }
  .rank-row { grid-template-columns: 40px 1fr 72px 60px; font-size: 13px; }
  .rank-row .r-genre,
  .rank-row .r-day { display: none; }

  /* --- Carte mobile --- */
  .stage-grid { column-count: 1; }
  .day-tabs { flex-wrap: wrap; gap: 6px; }
  .day-tabs > * { flex: 1 1 auto; }

  /* --- Generic inputs tappable --- */
  .vote-select,
  select,
  input[type="text"],
  input[type="url"],
  input.inline-input {
    min-height: 44px;
  }

  /* Desktop dropdown should never show on mobile */
  .user-dropdown { display: none !important; }
}

/* ============================================================
   REGISTRE v2 — Grouped list + stats bar + inline popover
   ============================================================ */

.registre-v2 { --topbar-offset: 62px; }
@media (max-width: 768px) { .registre-v2 { --topbar-offset: 52px; } }

/* ----- Stats bar ----- */
.registre-v2 .stats-bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  margin-bottom: 18px;
}
.registre-v2 .stat-cell { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.registre-v2 .stat-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 600;
}
.registre-v2 .stat-main {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
}
.registre-v2 .stat-num { font-size: 28px; color: var(--ink); font-weight: 600; }
.registre-v2 .stat-sep { color: var(--ink-muted); }
.registre-v2 .stat-denom { color: var(--ink-dim); font-size: 16px; }
.registre-v2 .stat-pct { margin-left: auto; color: var(--magenta-2); font-size: 13px; }
.registre-v2 .stat-track {
  width: 100%; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.registre-v2 .stat-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--magenta-2), var(--magenta));
  transition: width 380ms var(--ease);
}
.registre-v2 .stat-averages { gap: 10px; }
.registre-v2 .stat-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 4px 0;
}
.registre-v2 .stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px; color: var(--ink); font-weight: 600;
}
.registre-v2 .stat-val-hot {
  background: var(--grad-mag);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.registre-v2 .stat-val .stat-denom { font-size: 13px; color: var(--ink-dim); font-family: 'JetBrains Mono', monospace; }

@media (max-width: 768px) {
  .registre-v2 .stats-bar { grid-template-columns: 1fr; padding: 14px 14px; }
  .registre-v2 .stat-num { font-size: 24px; }
  .registre-v2 .stat-val { font-size: 20px; }
}

/* ----- Filter bar ----- */
.registre-v2 .filter-bar {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: rgba(255,255,255,.02);
  margin-bottom: 14px;
}
.registre-v2 .filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.registre-v2 .filter-row-status { flex-wrap: wrap; }
.registre-v2 .filter-row-advanced { display: none; }
.registre-v2 .filter-row-advanced.open { display: flex; padding-top: 6px; border-top: 1px dashed var(--line); }
.registre-v2 .filter-spacer { flex: 1; min-width: 20px; }

/* Day pills */
.registre-v2 .day-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  background: transparent;
  color: var(--ink-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
  transition: all 180ms var(--ease);
}
.registre-v2 .day-pill:hover { color: var(--ink); border-color: var(--ink-dim); }
.registre-v2 .day-pill .day-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--day-col);
  box-shadow: 0 0 8px var(--day-col);
}
.registre-v2 .day-pill.active {
  background: color-mix(in srgb, var(--day-col) 18%, transparent);
  border-color: var(--day-col);
  color: var(--ink);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--day-col) 40%, transparent);
}
.registre-v2 .day-pill.active .day-dot { box-shadow: 0 0 12px var(--day-col); }

/* Status pills */
.registre-v2 .status-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.registre-v2 .status-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  background: transparent;
  color: var(--ink-dim);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 180ms var(--ease);
}
.registre-v2 .status-pill:hover { color: var(--ink); border-color: var(--ink-dim); }
.registre-v2 .status-pill .sp-x {
  margin-left: 6px; opacity: .7; font-size: 10px;
}
.registre-v2 .status-pill.sp-tonote.active {
  color: var(--magenta); border-color: var(--magenta);
  background: rgba(255,46,147,.1);
}
.registre-v2 .status-pill.sp-favs.active {
  color: var(--gold-hot); border-color: var(--gold-hot);
  background: rgba(255,216,107,.1);
}
.registre-v2 .status-pill.sp-disagree.active {
  color: var(--violet-2); border-color: var(--violet-2);
  background: rgba(157,43,209,.14);
}

.registre-v2 .adv-toggle,
.registre-v2 .clear-all {
  padding: 7px 12px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-hi);
  background: transparent;
  color: var(--ink-dim);
  font-size: 12px;
  cursor: pointer;
  transition: all 180ms var(--ease);
}
.registre-v2 .adv-toggle:hover,
.registre-v2 .clear-all:hover { color: var(--ink); border-color: var(--ink-dim); }
.registre-v2 .adv-toggle.on { color: var(--magenta-2); border-color: var(--magenta-2); }
.registre-v2 .clear-all {
  color: var(--magenta); border-color: rgba(255,46,147,.4);
}

/* Reuse .search, .select, .toggle — but tighten gaps */
.registre-v2 .filter-row .search { max-width: 280px; flex: 1 1 200px; }

/* ----- Sort bar ----- */
.registre-v2 .sort-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.registre-v2 .sort-select {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border: 1px solid var(--line-hi); border-radius: var(--r-s);
  background: rgba(255,255,255,.02); color: var(--ink-dim); font-size: 12.5px;
}
.registre-v2 .sort-label { color: var(--ink-muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.registre-v2 .sort-select select {
  appearance: none; -webkit-appearance: none;
  border: 0; background: transparent; color: var(--ink);
  font-family: 'Inter', sans-serif; font-size: 13px;
  padding-right: 18px; cursor: pointer;
}
.registre-v2 .sort-select select option { background: #0f0f17; color: var(--ink); }
.registre-v2 .sort-select .caret { color: var(--ink-muted); font-size: 10px; }
.registre-v2 .result-count {
  color: var(--ink-muted); font-size: 12px; font-family: 'JetBrains Mono', monospace;
}
.registre-v2 .result-count .rc-num { color: var(--ink); font-weight: 600; }

/* ----- List ----- */
.registre-v2 .registre-list { padding-bottom: 120px; }

.registre-v2 .day-group { margin-bottom: 28px; }

.registre-v2 .day-header {
  position: sticky; top: calc(var(--topbar-offset) + 0px);
  z-index: 6;
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 4px 10px;
  margin: 0 -4px 4px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep) 70%, transparent 100%);
  border-bottom: 1px solid var(--day-col);
}
.registre-v2 .day-header .day-title {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 28px;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--gold-hot) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.registre-v2 .day-header .day-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-muted);
}

.registre-v2 .stage-header {
  position: sticky; top: calc(var(--topbar-offset) + 52px);
  z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(6,6,10,.85) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.registre-v2 .stage-header .stage-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-dim);
}
.registre-v2 .stage-header .stage-rule {
  flex: 1; height: 1px; background: var(--line);
}

/* Row */
.registre-v2 .registre-row {
  position: relative;
  border-bottom: 1px solid var(--line);
  content-visibility: auto;
  contain-intrinsic-size: 80px;
  cursor: pointer;
  transition: background 180ms var(--ease);
}
.registre-v2 .registre-row:hover { background: rgba(255,255,255,.03); }
.registre-v2 .registre-row::before {
  content: ''; position: absolute; left: 0; top: 10%; bottom: 10%;
  width: 2px;
  background: var(--day-col);
  opacity: .6;
}
.registre-v2 .registre-row.expanded {
  background: rgba(255,255,255,.04);
}
.registre-v2 .registre-row.expanded::before { opacity: 1; }

.registre-v2 .row-main {
  display: grid;
  grid-template-columns: 1fr 140px 60px;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 16px;
}

.registre-v2 .row-name {
  font-family: 'Instrument Serif', serif;
  font-size: 19px; line-height: 1.15;
  color: var(--ink);
}
.registre-v2 .row-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 3px;
}
.registre-v2 .row-genre {
  font-size: 12.5px; color: var(--ink-muted);
}
.registre-v2 .row-noembed {
  font-size: 10.5px; color: var(--ink-muted);
  padding: 2px 6px; border: 1px solid var(--line);
  border-radius: var(--r-xs); letter-spacing: .08em;
}

.registre-v2 .row-avg {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end;
  font-family: 'JetBrains Mono', monospace;
}
.registre-v2 .row-avg .avg-bar {
  width: 60px; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,.08); overflow: hidden;
}
.registre-v2 .row-avg .avg-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--magenta-2), var(--magenta));
  transition: width 300ms var(--ease);
}
.registre-v2 .row-avg .avg-num {
  font-size: 13px; color: var(--ink-dim); min-width: 26px; text-align: right;
}

.registre-v2 .row-vote-chip {
  width: 44px; height: 28px;
  border-radius: var(--pill);
  border: 1px solid var(--line-hi);
  background: transparent;
  color: var(--ink-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 180ms var(--ease);
  display: grid; place-items: center;
}
.registre-v2 .row-vote-chip:hover { border-color: var(--ink); color: var(--ink); }
.registre-v2 .row-vote-chip.vote-bucket-none { color: var(--ink-muted); }
.registre-v2 .row-vote-chip.vote-bucket-low {
  color: #FF9AA2; border-color: rgba(255,154,162,.4);
  background: rgba(255,154,162,.06);
}
.registre-v2 .row-vote-chip.vote-bucket-dim {
  color: var(--ink-dim);
}
.registre-v2 .row-vote-chip.vote-bucket-mid {
  color: var(--magenta-2); border-color: rgba(255,92,200,.5);
  background: rgba(255,92,200,.08);
}
.registre-v2 .row-vote-chip.vote-bucket-high {
  color: #fff;
  background: var(--vote-col, var(--magenta));
  border-color: var(--vote-col, var(--magenta));
  box-shadow: 0 0 16px color-mix(in srgb, var(--vote-col, var(--magenta)) 60%, transparent);
}

/* Row expand */
.registre-v2 .row-expand {
  overflow: hidden;
  max-height: 0;
  transition: max-height 240ms var(--ease);
}
.registre-v2 .exp-body {
  display: grid;
  grid-template-columns: 1fr 200px 1.2fr;
  gap: 20px;
  padding: 0 16px 18px 18px;
  border-left: 2px solid var(--day-col, var(--magenta));
  margin-left: 14px;
}
.registre-v2 .exp-kicker {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 600; margin-bottom: 8px;
}
.registre-v2 .exp-col { min-width: 0; }
.registre-v2 .exp-votes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.registre-v2 .exp-votes-grid .voter { padding: 8px 10px; }
.registre-v2 .voter-aggregate .v-sub {
  font-size: 10px; color: var(--ink-muted); margin-top: 4px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase;
}
.registre-v2 .exp-yt {
  position: relative;
  border-radius: var(--r-s);
  overflow: hidden;
  background: var(--bg-0);
  aspect-ratio: 16/9;
}
.registre-v2 .exp-yt-thumb {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05);
}
.registre-v2 .exp-yt-btn {
  position: absolute; inset: auto 8px 8px 8px;
  padding: 8px 10px; text-align: center;
  background: rgba(10,10,16,.85);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: var(--r-s);
  color: var(--ink); text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.registre-v2 .exp-yt-btn:hover { background: rgba(255,46,147,.2); color: #fff; }
.registre-v2 .exp-yt-empty {
  display: grid; place-items: center;
  color: var(--ink-muted); font-size: 12px;
  border: 1px dashed var(--line);
}
.registre-v2 .exp-col-notes { display: flex; flex-direction: column; gap: 8px; }
.registre-v2 .exp-col-notes .inline-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-0);
  border: 1px solid var(--line-hi);
  border-radius: var(--r-s);
  color: var(--ink);
  font-size: 13px;
}
.registre-v2 .exp-col-notes .inline-input:focus {
  outline: 0; border-color: var(--magenta-2);
}

@media (max-width: 768px) {
  .registre-v2 .row-main {
    grid-template-columns: 1fr auto auto;
    gap: 10px; padding: 12px 10px 12px 14px;
  }
  .registre-v2 .row-avg .avg-bar { width: 44px; }
  .registre-v2 .row-name { font-size: 17px; }
  .registre-v2 .day-header .day-title { font-size: 22px; }
  .registre-v2 .exp-body {
    grid-template-columns: 1fr;
    padding: 0 10px 14px 14px;
    margin-left: 10px;
    gap: 14px;
  }
  .registre-v2 .exp-yt { max-height: 200px; }
}

/* ----- Rating popover / bottom sheet ----- */
.rating-pop-overlay {
  position: fixed; inset: 0;
  z-index: 80;
  background: transparent;
  pointer-events: auto;
}
.rating-pop-overlay.rp-mobile {
  background: rgba(6,6,10,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 200ms var(--ease);
}
.rating-pop-overlay.rp-mobile.open { opacity: 1; }

.rating-pop {
  background: rgba(15,15,23,.98);
  border: 1px solid var(--line-hi);
  border-radius: var(--r-m);
  padding: 16px 18px 14px;
  box-shadow: var(--shadow-l);
  min-width: 300px;
  max-width: 340px;
}
.rating-pop-overlay.rp-desktop .rating-pop {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.rating-pop-overlay.rp-desktop.open .rating-pop {
  opacity: 1;
  transform: translateY(0);
}
.rating-pop-overlay.rp-mobile .rating-pop {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-radius: var(--r-l) var(--r-l) 0 0;
  max-width: none; width: 100%;
  padding: 12px 18px max(20px, env(safe-area-inset-bottom)) 18px;
  transform: translateY(100%);
  transition: transform 260ms var(--spring);
}
.rating-pop-overlay.rp-mobile.open .rating-pop {
  transform: translateY(0);
}
.rating-pop .rp-handle {
  display: none;
}
.rating-pop-overlay.rp-mobile .rp-handle {
  display: block;
  width: 44px; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,.25);
  margin: 0 auto 12px;
}
.rating-pop .rp-title {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 10px;
  text-align: center;
}
.rating-pop .rp-gauge-slot { padding: 4px 0 8px; }
.rating-pop .rp-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 8px;
}
.rating-pop .rp-btn {
  padding: 10px 14px; border-radius: var(--r-s);
  border: 1px solid var(--line-hi);
  background: transparent;
  color: var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  cursor: pointer;
  transition: all 180ms var(--ease);
}
.rating-pop .rp-btn-clear:hover { border-color: rgba(255,154,162,.6); color: #FF9AA2; }
.rating-pop .rp-btn-commit {
  background: var(--grad-mag);
  border-color: transparent;
  color: #fff;
}
.rating-pop .rp-btn-commit:hover { filter: brightness(1.1); }

/* ----- Compact rating gauge (popover) ----- */
.rating-gauge.rg-compact {
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px 0;
}
.rating-gauge.rg-compact .gauge-display {
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.rating-gauge.rg-compact .gauge-num {
  font-size: 36px; font-weight: 600; color: var(--ink);
  transition: color 120ms var(--ease), text-shadow 180ms var(--ease);
}
.rating-gauge.rg-compact .gauge-denom { font-size: 14px; color: var(--ink-muted); }
.rating-gauge.rg-compact .gauge-track {
  position: relative;
  height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  margin: 6px 4px 4px;
  cursor: pointer;
  touch-action: none;
}
.rating-gauge.rg-compact .gauge-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #FF9AA2 0%, var(--magenta-2) 50%, var(--magenta) 100%);
}
.rating-gauge.rg-compact .gauge-thumb {
  position: absolute; top: 50%; left: 50%;
  width: 20px; height: 20px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 0;
  cursor: grab;
}
.rating-gauge.rg-compact .gauge-scale {
  display: flex; justify-content: space-between;
  padding: 0 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--ink-muted);
  letter-spacing: .08em;
}

