/* ═══════════════════════════════════════════════════
   REFORMER SOCIETY — PLATFORM CSS
   Same design system as index.html
═══════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button {
  -webkit-appearance: none; appearance: none;
  background: none; border: none; padding: 0;
  font: inherit; color: inherit; cursor: none;
  outline: none; -webkit-tap-highlight-color: transparent;
}
input, select {
  -webkit-appearance: none; appearance: none;
  background: none; border: none; outline: none;
  font: inherit; color: inherit;
}
a { text-decoration: none; color: inherit; cursor: none; }
img { display: block; max-width: 100%; }

/* ── DESIGN TOKENS ── */
:root {
  --cream:   #F6F1E9;
  --gold:    #C9A96E;
  --gold-l:  #E8D5A3;
  --gold-d:  #9A7840;
  --dark:    #0A0A0A;
  --dark-2:  #111111;
  --dark-3:  #181818;
  --glass:   rgba(8,8,8,0.6);
  --gb:      rgba(201,169,110,0.22);
  --green:   #00FF8C;
  --blur:    blur(24px);
  --tx:      0.55s cubic-bezier(0.16,1,0.3,1);
  --nav-h:   80px;
  --r:       16px;
}

html, body {
  width: 100%; height: 100%;
  background: var(--dark);
  font-family: 'Jost', sans-serif;
  color: var(--cream);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  cursor: none;
}
* { cursor: none; }

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed; width: 20px; height: 20px;
  border: 2px solid rgba(201,169,110,1);
  border-radius: 50%; pointer-events: none;
  z-index: 9999; transform: translate(-50%,-50%);
  transition: width .18s, height .18s, background .18s;
  background: rgba(201,169,110,0.15);
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.55);
}
#cursor::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(201,169,110,0.95); pointer-events: none;
}
#cursor.hover { width: 42px; height: 42px; background: rgba(201,169,110,0.1); border-color: rgba(201,169,110,0.6); }
#cursor.hover::after { opacity: 0; }

/* ── GRAIN ── */
.grain {
  position: fixed; inset: 0; z-index: 1;
  opacity: 0.14; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  padding: 0 max(48px, calc(env(safe-area-inset-left, 0px) + 24px))
           0 max(48px, calc(env(safe-area-inset-left, 0px) + 24px));
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
#nav.solid {
  background: rgba(6,6,6,0.94);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-color: rgba(201,169,110,0.07);
}
#nav.ghost {
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

/* Logo */
.nav-logo { display: flex; align-items: center; margin-right: 44px; flex-shrink: 0; }
.nav-logo img {
  height: 56px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity .2s;
}
.nav-logo:hover img { opacity: 1; }

/* Links */
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  padding: 12px 20px; border-radius: 100px;
  font-family: 'Jost', sans-serif; font-weight: 400;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(246,241,233,0.65); min-height: 48px;
  display: flex; align-items: center;
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav-link:hover { color: var(--cream); background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--gold); background: rgba(201,169,110,0.1); font-weight: 500; }

/* Right controls */
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-icon-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.14);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
}
.nav-icon-btn:hover { border-color: rgba(201,169,110,0.4); background: rgba(201,169,110,0.06); }
.nav-icon-btn svg {
  width: 18px; height: 18px;
  stroke: rgba(246,241,233,0.6); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* BT button */
.nav-bt-btn { position: relative; }
.nav-bt-btn svg { stroke: rgba(246,241,233,0.55); }
.nav-bt-btn.connected {
  border-color: rgba(201,169,110,0.5);
  background: rgba(201,169,110,0.08);
}
.nav-bt-btn.connected svg { stroke: var(--gold-l); }
.nav-bt-btn.connected::after {
  content: ''; position: absolute; top: 9px; right: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  border: 1.5px solid var(--dark);
}

/* BT panel */
.bt-panel {
  position: fixed; top: calc(var(--nav-h) + 10px); right: 14px;
  width: 272px;
  background: rgba(8,6,4,0.97);
  border: 1px solid rgba(201,169,110,0.22);
  border-radius: 14px;
  padding: 0;
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 13px; letter-spacing: 0.05em;
  color: var(--cream);
  z-index: 300; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity .22s, transform .22s;
  overflow: hidden;
}
.bt-panel.visible { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }

.bt-panel-hdr {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(201,169,110,0.1);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(246,241,233,0.45);
}
.bt-panel-hdr svg {
  width: 14px; height: 14px; stroke: var(--gold); fill: none;
  stroke-width: 1.5; stroke-linecap: round; flex-shrink: 0;
}

.bt-panel-status {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 16px 10px;
  font-size: 12px; color: rgba(246,241,233,0.55);
}
.bt-panel-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: rgba(246,241,233,0.2);
  transition: background .3s, box-shadow .3s;
}
.bt-panel-dot.connected {
  background: var(--green);
  box-shadow: 0 0 7px var(--green);
}
.bt-panel-dot.scanning {
  background: var(--gold);
  animation: btPulse 1s ease-in-out infinite;
}
@keyframes btPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.bt-panel-device {
  display: flex; align-items: center; gap: 10px;
  margin: 0 12px 10px;
  padding: 10px 12px;
  background: rgba(201,169,110,0.06);
  border: 1px solid rgba(201,169,110,0.18);
  border-radius: 9px;
  font-size: 13px; color: var(--cream);
}
.bt-panel-device svg {
  width: 16px; height: 16px; stroke: var(--gold-l); fill: none;
  stroke-width: 1.5; stroke-linecap: round; flex-shrink: 0;
}
.bt-panel-device span:nth-child(2) { flex: 1; }
.bt-panel-badge {
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); flex-shrink: 0;
}

.bt-panel-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: calc(100% - 24px); margin: 0 12px 12px;
  padding: 12px 0;
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.25) !important;
  border-radius: 9px;
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-l) !important;
  transition: background .2s, border-color .2s;
}
.bt-panel-btn:hover { background: rgba(201,169,110,0.14) !important; border-color: rgba(201,169,110,0.45) !important; }
.bt-panel-btn:disabled { opacity: 0.45; }
.bt-panel-btn svg {
  width: 14px; height: 14px; stroke: var(--gold); fill: none;
  stroke-width: 1.5; stroke-linecap: round; flex-shrink: 0;
}
.nav-username {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 12px;
  letter-spacing: 0.1em; color: rgba(246,241,233,0.65);
  white-space: nowrap; max-width: 120px;
  overflow: hidden; text-overflow: ellipsis;
}
.nav-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,169,110,0.25), rgba(201,169,110,0.06));
  border: 1.5px solid rgba(201,169,110,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 16px; color: var(--gold-l); flex-shrink: 0;
}
.nav-logout-btn svg { stroke: rgba(246,241,233,0.55) !important; }
.nav-logout-btn:hover svg { stroke: rgba(220,80,80,0.8) !important; }
.nav-logout-btn:hover { border-color: rgba(220,80,80,0.35) !important; background: rgba(220,80,80,0.06) !important; }

/* ═══════════════════════════════════════════════════
   SEARCH OVERLAY
═══════════════════════════════════════════════════ */
#search-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.96);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 32px) 64px 48px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
#search-overlay.open { opacity: 1; pointer-events: all; }

.search-bar {
  display: flex; align-items: center; gap: 18px;
  border-bottom: 1px solid rgba(201,169,110,0.28);
  padding-bottom: 20px; margin-bottom: 36px;
}
.search-bar svg {
  width: 22px; height: 22px; stroke: var(--gold);
  fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
#search-input {
  flex: 1;
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(28px, 4vw, 52px);
  color: var(--cream); letter-spacing: 0.01em;
}
#search-input::placeholder { color: rgba(246,241,233,0.3); }
.search-close-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color .2s;
}
.search-close-btn:hover { border-color: rgba(201,169,110,0.6); }
.search-close-btn svg { width: 16px; height: 16px; stroke: rgba(246,241,233,0.75); fill: none; stroke-width: 2; stroke-linecap: round; }

.search-section-label {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(201,169,110,0.7); margin-bottom: 20px;
}
.search-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px 20px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(201,169,110,0.15) transparent;
}
.search-grid::-webkit-scrollbar { width: 3px; }
.search-grid::-webkit-scrollbar-thumb { background: rgba(201,169,110,0.15); border-radius: 2px; }
.search-empty {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 28px; color: rgba(246,241,233,0.2);
  grid-column: 1/-1; padding: 40px 0;
}

/* Search filters */
.search-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.sf-group { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-group--tags { margin-top: 2px; }
.sf-pill {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 11.5px;
  letter-spacing: 0.08em; padding: 6px 14px; border-radius: 100px;
  border: 1px solid rgba(201,169,110,0.2); color: rgba(246,241,233,0.45);
  background: transparent; transition: border-color .2s, color .2s, background .2s;
  white-space: nowrap; cursor: pointer;
}
.sf-pill:hover { border-color: rgba(201,169,110,0.45); color: rgba(246,241,233,0.7); }
.sf-pill.active {
  border-color: rgba(201,169,110,0.7); color: var(--gold);
  background: rgba(201,169,110,0.08);
}
.sf-pill--tag.active { background: rgba(201,169,110,0.12); }
@media (max-width: 600px) {
  .search-filters { gap: 8px; margin-bottom: 20px; }
  .sf-pill { font-size: 11px; padding: 5px 12px; }
}
body.light-mode .sf-pill { border-color: rgba(103,15,0,0.15); color: rgba(36,35,34,0.45); }
body.light-mode .sf-pill:hover { border-color: rgba(103,15,0,0.35); color: rgba(36,35,34,0.7); }
body.light-mode .sf-pill.active { border-color: var(--bordeaux); color: var(--bordeaux); background: rgba(103,15,0,0.06); }

/* ═══════════════════════════════════════════════════
   VIEWS SHELL
═══════════════════════════════════════════════════ */
#views { position: fixed; inset: 0; z-index: 10; }

.view {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity .38s;
  scrollbar-width: thin; scrollbar-color: rgba(201,169,110,0.15) transparent;
}
.view::-webkit-scrollbar { width: 3px; }
.view::-webkit-scrollbar-thumb { background: rgba(201,169,110,0.15); border-radius: 2px; }
.view.active { opacity: 1; pointer-events: all; }

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  position: relative; width: 100%;
  height: min(92vh, 740px);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media video,
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg,   rgba(10,10,10,1) 0%, rgba(10,10,10,0.55) 30%, rgba(10,10,10,0.05) 60%, transparent 100%),
    linear-gradient(90deg,  rgba(10,10,10,0.8) 0%, rgba(10,10,10,0.25) 55%, transparent 100%);
}
.hero-content {
  position: absolute; bottom: 0; left: 0;
  padding: 0 60px 64px; max-width: 700px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(201,169,110,0.1);
  border: 1px solid rgba(201,169,110,0.35);
  font-family: 'Jost', sans-serif; font-weight: 400;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold-l); margin-bottom: 20px;
}
.hero-eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.hero-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(54px, 8.5vw, 112px);
  color: var(--cream); line-height: 0.92;
  letter-spacing: -0.01em; margin-bottom: 18px;
}
.hero-title em { font-style: italic; color: var(--gold-l); }

.hero-meta {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.hero-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 13px; color: rgba(246,241,233,0.78); letter-spacing: 0.04em;
}
.hero-meta-item svg {
  width: 14px; height: 14px; stroke: var(--gold-l);
  fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.hero-desc {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 18px; color: rgba(246,241,233,0.72);
  line-height: 1.75; margin-bottom: 36px; max-width: 520px;
}

.hero-actions { display: flex; align-items: center; gap: 14px; }

.btn-hero-play {
  display: flex; align-items: center; gap: 12px;
  padding: 0 44px; height: 60px; border-radius: 100px;
  background: var(--cream); color: var(--dark);
  font-family: 'Jost', sans-serif; font-weight: 500;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background .2s, transform .15s;
}
.btn-hero-play:hover { background: var(--gold-l); }
.btn-hero-play:active { transform: scale(0.97); }
.btn-hero-play svg { width: 18px; height: 18px; fill: var(--dark); stroke: none; }

.btn-hero-outline {
  display: flex; align-items: center; gap: 10px;
  padding: 0 34px; height: 60px; border-radius: 100px;
  border: 1.5px solid rgba(246,241,233,0.25);
  background: rgba(0,0,0,0.3); backdrop-filter: blur(10px);
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(246,241,233,0.7);
  transition: border-color .2s, color .2s, background .2s;
}
.btn-hero-outline:hover {
  border-color: rgba(201,169,110,0.55);
  color: var(--gold-l); background: rgba(201,169,110,0.06);
}
.btn-hero-outline.active { border-color: rgba(201,169,110,0.55); color: var(--gold); }
.btn-hero-outline svg {
  width: 16px; height: 16px; stroke: currentColor;
  fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.btn-hero-outline.active svg { fill: rgba(201,169,110,0.15); }

/* ═══════════════════════════════════════════════════
   CONTINUE WATCHING STRIP
═══════════════════════════════════════════════════ */
/* ── CATEGORY ROW ── */
.cat-row {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 24px 60px 0;
  scrollbar-width: none;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 100px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 300;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(246,241,233,0.82);
  white-space: nowrap; transition: background .2s, border-color .2s;
}
.cat-chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-chip:hover { background: rgba(255,255,255,0.1); border-color: rgba(201,169,110,0.4); color: var(--cream); }
.cat-chip:active { transform: scale(0.97); }

.cw-strip {
  padding: 20px 60px;
  border-top: 1px solid rgba(201,169,110,0.07);
  border-bottom: 1px solid rgba(201,169,110,0.07);
  background: linear-gradient(90deg, rgba(201,169,110,0.03), transparent 70%);
}
.cw-label {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(201,169,110,0.7); margin-bottom: 16px;
}
.cw-items { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.cw-items::-webkit-scrollbar { display: none; }

.cw-card {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  padding: 10px 16px 10px 10px; border-radius: 12px;
  border: 1px solid rgba(201,169,110,0.1);
  background: rgba(201,169,110,0.02);
  transition: border-color .2s, background .2s;
}
.cw-card:hover { border-color: rgba(201,169,110,0.28); background: rgba(201,169,110,0.05); }
.cw-thumb {
  width: 96px; height: 54px; border-radius: 8px;
  overflow: hidden; position: relative; flex-shrink: 0;
}
.cw-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.cw-thumb img.img-loaded { opacity: 1; }
.cw-thumb { background: var(--dark-3); }
.cw-progress-bar {
  position: absolute; bottom: 0; left: 0; height: 2px; background: var(--gold);
}
.cw-info { display: flex; flex-direction: column; gap: 3px; }
.cw-title {
  font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 400;
  color: var(--cream); white-space: nowrap; max-width: 160px;
  overflow: hidden; text-overflow: ellipsis;
}
.cw-remain {
  font-family: 'Jost', sans-serif; font-size: 11px;
  letter-spacing: 0.06em; color: rgba(201,169,110,0.72);
}

/* ═══════════════════════════════════════════════════
   SECTIONS & CAROUSELS
═══════════════════════════════════════════════════ */
.home-body { padding: 0 0 100px; }
.section { margin-top: 44px; }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 60px; margin-bottom: 18px;
}
.section-title-group { display: flex; align-items: center; gap: 12px; }
.section-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(26px, 3.2vw, 40px); color: var(--cream);
}
.section-title em { font-style: italic; color: var(--gold-l); }
.section-badge {
  padding: 4px 12px; border-radius: 100px;
  font-family: 'Jost', sans-serif; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid rgba(201,169,110,0.3); color: rgba(201,169,110,0.78);
}
.section-badge.hot { border-color: rgba(255,100,60,0.4); color: rgba(255,140,90,0.9); }
.section-badge.new { border-color: rgba(0,255,140,0.35); color: rgba(0,255,140,0.8); }

.section-see-all {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Jost', sans-serif; font-weight: 400;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(201,169,110,0.65); transition: color .2s, gap .2s;
}
.section-see-all:hover { color: var(--gold-l); gap: 10px; }
.section-see-all svg {
  width: 13px; height: 13px; stroke: currentColor;
  fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Carousel wrapper */
.carousel-outer { position: relative; overflow: hidden; }
.carousel-outer::before,
.carousel-outer::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 60px; z-index: 5; pointer-events: none;
}
.carousel-outer::before { left: 0; background: linear-gradient(90deg, var(--dark), transparent); }
.carousel-outer::after  { right: 0; background: linear-gradient(-90deg, var(--dark), transparent); }

.carousel-track {
  display: flex; gap: 14px;
  padding: 6px 60px 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .vcard { scroll-snap-align: start; }

.car-arrow {
  position: absolute; top: 38%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%; z-index: 10;
  border: 1px solid rgba(201,169,110,0.22);
  background: rgba(8,8,8,0.85); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s, opacity .25s;
  opacity: 0;
}
.carousel-outer:hover .car-arrow { opacity: 1; }
.car-arrow:hover { border-color: rgba(201,169,110,0.5); background: rgba(8,8,8,0.98); }
.car-arrow:active { transform: translateY(-50%) scale(0.93); }
.car-arrow.prev { left: 8px; }
.car-arrow.next { right: 8px; }
.car-arrow svg {
  width: 18px; height: 18px; stroke: var(--cream);
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ═══════════════════════════════════════════════════
   VIDEO CARD
═══════════════════════════════════════════════════ */
.vcard {
  width: 380px; border-radius: var(--r); overflow: hidden;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform .28s cubic-bezier(0.16,1,0.3,1), box-shadow .28s;
  flex-shrink: 0; position: relative;
}
.vcard:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,169,110,0.2);
}
.vcard.large { width: 460px; }

/* Thumbnail */
.vcard-thumb {
  position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: var(--dark-3);
}
.vcard-thumb::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  z-index: 1;
}
.vcard-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; position: relative; z-index: 2;
  opacity: 0; transition: opacity .35s, transform .5s cubic-bezier(0.16,1,0.3,1);
  decoding: async;
}
.vcard-thumb img.img-loaded { opacity: 1; }
.vcard:hover .vcard-thumb img { transform: scale(1.06); }

/* Duration badge */
.vcard-dur {
  position: absolute; bottom: 8px; right: 8px;
  padding: 2px 7px; border-radius: 5px;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  font-family: 'Jost', sans-serif; font-weight: 400;
  font-size: 10px; color: var(--cream); letter-spacing: 0.04em;
  z-index: 2;
}

/* Progress bar */
.vcard-prog {
  position: absolute; bottom: 0; left: 0;
  height: 2px; background: var(--gold); z-index: 3;
}

/* Hover overlay */
.vcard-hover-layer {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .22s; z-index: 4;
}
.vcard:hover .vcard-hover-layer { opacity: 1; }

.vcard-play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(201,169,110,0.9);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s;
}
.vcard-play-btn:hover { background: var(--gold); transform: scale(1.1); }
.vcard-play-btn svg { width: 18px; height: 18px; fill: var(--dark); stroke: none; margin-left: 3px; }

/* Fav button */
.vcard-fav-btn {
  position: absolute; top: 9px; right: 9px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,0.65); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  z-index: 5; opacity: 0;
  transition: opacity .2s, border-color .2s, background .2s;
}
.vcard:hover .vcard-fav-btn { opacity: 1; }
.vcard-fav-btn.is-fav { opacity: 1; border-color: rgba(201,169,110,0.5); background: rgba(201,169,110,0.08); }
.vcard-fav-btn:hover { border-color: rgba(201,169,110,0.45); }
.vcard-fav-btn:active { transform: scale(0.9); }
.vcard-fav-btn svg {
  width: 15px; height: 15px;
  stroke: rgba(246,241,233,0.75); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.vcard-fav-btn.is-fav svg { stroke: var(--gold); fill: rgba(201,169,110,0.12); }

/* Card info */
.vcard-info { padding: 14px 16px 16px; }
.vcard-cat {
  font-family: 'Jost', sans-serif; font-weight: 400;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.vcard-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 21px; color: var(--cream); line-height: 1.2; margin-bottom: 10px;
}
.vcard.large .vcard-title { font-size: 24px; }
.vcard-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; margin-bottom: 6px; }
.vcard-tag { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(201,169,110,0.6); background: rgba(201,169,110,0.08); border: 1px solid rgba(201,169,110,0.15); border-radius: 4px; padding: 2px 7px; }
.vcard-footer { display: flex; align-items: center; justify-content: space-between; }
.vcard-meta { display: flex; align-items: center; gap: 8px; }
.vmeta {
  display: flex; align-items: center; gap: 4px;
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 11px; color: rgba(246,241,233,0.62); letter-spacing: 0.03em;
}
.vmeta svg {
  width: 11px; height: 11px; stroke: rgba(201,169,110,0.65);
  fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.lvl-dots { display: flex; gap: 4px; align-items: center; }
.lvl-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(201,169,110,0.25); }
.lvl-dot.on { background: var(--gold); box-shadow: 0 0 4px rgba(201,169,110,0.4); }

/* ═══════════════════════════════════════════════════
   CATALOG VIEW
═══════════════════════════════════════════════════ */
#view-catalog { padding-top: var(--nav-h); }

.catalog-header { padding: 52px 60px 36px; border-bottom: 1px solid rgba(201,169,110,0.07); }
.catalog-h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(40px, 5vw, 68px); margin-bottom: 8px; line-height: 1;
}
.catalog-h1 em { font-style: italic; color: var(--gold-l); }
.catalog-sub {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 14px; letter-spacing: 0.08em; color: rgba(246,241,233,0.62);
}

.filter-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 20px 60px;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-pill {
  padding: 11px 26px; border-radius: 100px; flex-shrink: 0;
  font-family: 'Jost', sans-serif; font-weight: 400;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(201,169,110,0.2); min-height: 48px;
  color: rgba(246,241,233,0.65); white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s;
}
.filter-pill:hover { color: var(--cream); border-color: rgba(201,169,110,0.45); }
.filter-pill.active { border-color: var(--gold); color: var(--gold-l); background: rgba(201,169,110,0.1); }

.catalog-grid-wrap { padding: 32px 60px 80px; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px 22px;
}
.catalog-grid .vcard,
.grid-section .catalog-grid .vcard,
.search-grid .vcard { width: 100%; flex-shrink: 1; }

/* ═══════════════════════════════════════════════════
   FAVORITES VIEW
═══════════════════════════════════════════════════ */
#view-favorites { padding-top: var(--nav-h); }
.fav-header { padding: 52px 60px 32px; border-bottom: 1px solid rgba(201,169,110,0.07); }
.view-h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(36px, 5vw, 60px); line-height: 1;
}
.view-h1 em { font-style: italic; color: var(--gold-l); }
.grid-section { padding: 32px 60px 80px; }
.grid-section .catalog-grid { /* inherits */ }

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 80px 40px; gap: 14px; text-align: center;
  grid-column: 1/-1;
}
.empty-icon {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.18);
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.empty-icon svg {
  width: 24px; height: 24px; stroke: rgba(201,169,110,0.35);
  fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.empty-title {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 30px; color: rgba(246,241,233,0.72);
}
.empty-sub {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 14px; letter-spacing: 0.04em;
  color: rgba(246,241,233,0.55); max-width: 280px; line-height: 1.75;
}

/* ═══════════════════════════════════════════════════
   PLAYER VIEW
═══════════════════════════════════════════════════ */
#view-player { padding-top: var(--nav-h); background: var(--dark); }

.player-layout {
  display: grid; grid-template-columns: 1fr 420px;
  min-height: calc(100vh - var(--nav-h));
}
.player-left {
  overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(201,169,110,0.1) transparent;
}
.player-left::-webkit-scrollbar { width: 3px; }
.player-left::-webkit-scrollbar-thumb { background: rgba(201,169,110,0.1); border-radius: 2px; }

/* Stage */
.player-stage {
  position: relative; width: 100%;
  aspect-ratio: 16/9; background: #000; overflow: hidden;
}
.player-stage video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Poster */
.player-poster {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .35s;
}
.player-poster.hidden { opacity: 0; pointer-events: none; }
.player-poster img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.player-poster img.loaded { opacity: 1; }
.player-poster-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.42);
}
.player-poster-play {
  position: relative; z-index: 3;
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(201,169,110,0.9);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s;
}
.player-poster-play:hover { background: var(--gold); transform: scale(1.08); }
.player-poster-play:active { transform: scale(0.94); }
.player-poster-play svg { width: 30px; height: 30px; fill: var(--dark); stroke: none; margin-left: 4px; }

/* Poster — 3-icon centered row */
.ppa-row {
  position: relative; z-index: 3;
  display: flex; align-items: flex-end; gap: 40px;
}
.ppa-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; border: none; background: none;
  transition: transform .15s;
}
.ppa-btn:active { transform: scale(0.92); }
.ppa-circle {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(0,0,0,0.48); border: 1.5px solid rgba(201,169,110,0.32);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, transform .15s;
}
.ppa-btn:hover .ppa-circle { background: rgba(201,169,110,0.16); border-color: rgba(201,169,110,0.7); }
.ppa-circle svg {
  width: 26px; height: 26px;
  stroke: rgba(246,241,233,0.92); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ppa-label {
  font-family: 'Jost', sans-serif; font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; white-space: nowrap;
  color: rgba(246,241,233,0.72);
}
.ppa-play .ppa-circle {
  width: 92px; height: 92px;
  background: rgba(201,169,110,0.92); border: none;
  box-shadow: 0 6px 32px rgba(201,169,110,0.38);
}
.ppa-play:hover .ppa-circle { background: var(--gold); }
.ppa-play .ppa-circle svg { width: 36px; height: 36px; fill: rgba(13,13,13,0.95); stroke: none; }
.ppa-play .ppa-label { color: rgba(246,241,233,0.9); }
@media (max-width: 480px) {
  .ppa-row { gap: 26px; }
  .ppa-circle { width: 54px; height: 54px; }
  .ppa-circle svg { width: 20px; height: 20px; }
  .ppa-play .ppa-circle { width: 74px; height: 74px; }
  .ppa-play .ppa-circle svg { width: 28px; height: 28px; }
  .ppa-label { font-size: 8px; }
}

/* Buffer ring */
.player-buffer-ring {
  position: absolute; inset: 0; z-index: 4;
  display: none; align-items: center; justify-content: center;
  pointer-events: none;
}
.player-buffer-ring.active { display: flex; }
@keyframes spin-buf { to { transform: rotate(360deg); } }
.player-buffer-ring svg { animation: spin-buf 0.9s linear infinite; }

/* Controls */
.player-controls {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
  padding: 40px 22px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.88), transparent);
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transition: opacity .25s;
}
.player-stage:hover .player-controls,
.player-stage.paused .player-controls { opacity: 1; }

/* Progress */
.progress-track {
  position: relative; height: 3px;
  background: rgba(255,255,255,0.18); border-radius: 2px;
  cursor: pointer; transition: height .15s;
}
.progress-track:hover { height: 5px; }
.progress-buffer {
  position: absolute; top: 0; left: 0; height: 100%;
  background: rgba(255,255,255,0.28); border-radius: 2px;
  pointer-events: none; z-index: 0; transition: width 0.6s linear;
}
.progress-fill {
  height: 100%; background: var(--gold);
  border-radius: 2px; pointer-events: none; position: relative; z-index: 1;
}
.progress-fill::after {
  content: ''; position: absolute; right: -5px; top: 50%;
  transform: translateY(-50%); width: 11px; height: 11px;
  border-radius: 50%; background: var(--gold);
  opacity: 0; transition: opacity .15s;
}
.progress-track:hover .progress-fill::after { opacity: 1; }
.progress-input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
}

/* Ctrl row */
.ctrl-row { display: flex; align-items: center; justify-content: space-between; }
.ctrl-group { display: flex; align-items: center; gap: 2px; }
.ctrl-btn {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ctrl-btn:hover { background: rgba(255,255,255,0.08); }
.ctrl-btn:active { background: rgba(255,255,255,0.14); transform: scale(0.92); }
.ctrl-btn svg {
  width: 19px; height: 19px; stroke: var(--cream);
  fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.ctrl-time {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 12px; color: rgba(246,241,233,0.82);
  letter-spacing: 0.04em; padding: 0 6px; white-space: nowrap;
}
.vol-wrap { display: flex; align-items: center; gap: 6px; }
.vol-slider {
  width: 64px; height: 2px; border-radius: 2px;
  -webkit-appearance: none; outline: none;
  background: rgba(255,255,255,0.25); accent-color: var(--cream);
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px;
  border-radius: 50%; background: var(--cream);
}

/* Player toast (qualité, sous-titres, etc.) */
.player-toast {
  position: absolute; bottom: 68px; left: 50%; transform: translateX(-50%);
  padding: 7px 20px; border-radius: 100px; z-index: 20; pointer-events: none;
  background: rgba(0,0,0,0.84); backdrop-filter: blur(8px);
  color: rgba(246,241,233,0.9); font-family: 'Jost', sans-serif;
  font-size: 12px; letter-spacing: 0.08em; white-space: nowrap;
  opacity: 0; transition: opacity 0.22s;
}
.player-toast.visible { opacity: 1; }

/* CC button active state */
.ctrl-btn.active svg { stroke: var(--gold) !important; }

/* Player info */
.player-info { padding: 28px 40px 40px; }
.pi-cat {
  font-family: 'Jost', sans-serif; font-weight: 400;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-l); margin-bottom: 10px;
}
.pi-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(30px, 3.8vw, 52px); color: var(--cream);
  line-height: 1.0; margin-bottom: 16px;
}
.pi-title em { font-style: italic; color: var(--gold-l); }
.pi-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pi-tag {
  padding: 5px 14px; border-radius: 100px;
  font-family: 'Jost', sans-serif; font-size: 11px;
  font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(201,169,110,0.28); color: rgba(246,241,233,0.7);
}
.pi-vtags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.pi-vtag { padding: 3px 12px; border-radius: 100px; font-family: 'Jost', sans-serif; font-size: 10px; font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(201,169,110,0.1); border: 1px solid rgba(201,169,110,0.22); color: rgba(201,169,110,0.85); }
.pi-desc {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 15px; color: rgba(246,241,233,0.72);
  line-height: 1.8; margin-bottom: 28px;
}
.pi-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pi-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 0 22px; height: 44px; border-radius: 100px;
  font-family: 'Jost', sans-serif; font-weight: 400;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(201,169,110,0.25); color: rgba(246,241,233,0.55);
  transition: border-color .2s, color .2s, background .2s;
}
.pi-btn:hover { border-color: rgba(201,169,110,0.55); color: var(--gold); background: rgba(201,169,110,0.06); }
.pi-btn.primary { background: rgba(201,169,110,0.1); border-color: rgba(201,169,110,0.4); color: var(--gold-l); }
.pi-btn svg {
  width: 14px; height: 14px; stroke: currentColor;
  fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.pi-btn.is-fav { border-color: rgba(201,169,110,0.5); color: var(--gold); background: rgba(201,169,110,0.07); }
.pi-btn.is-fav svg { fill: rgba(201,169,110,0.12); }

/* Sidebar */
.player-right {
  border-left: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.015);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto; position: sticky; top: 0;
  scrollbar-width: thin; scrollbar-color: rgba(201,169,110,0.1) transparent;
}
.player-right::-webkit-scrollbar { width: 3px; }
.player-right::-webkit-scrollbar-thumb { background: rgba(201,169,110,0.1); border-radius: 2px; }
.sidebar-hdr {
  padding: 20px 20px 14px; position: sticky; top: 0; z-index: 2;
  background: rgba(8,8,8,0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: 'Jost', sans-serif; font-weight: 400;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(201,169,110,0.72);
}
.related-item {
  display: flex; gap: 14px; padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background .15s;
}
.related-item:hover { background: rgba(255,255,255,0.025); }
.related-item.current { background: rgba(201,169,110,0.04); border-left: 2px solid var(--gold); }
.ri-thumb {
  width: 164px; height: 92px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0; position: relative;
}
.ri-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.ri-thumb img.img-loaded { opacity: 1; }
.ri-thumb { background: var(--dark-3); }
.ri-prog { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--gold); }
.ri-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.ri-cat {
  font-family: 'Jost', sans-serif; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 400;
}
.ri-title {
  font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 400;
  color: var(--cream); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ri-meta {
  display: flex; gap: 6px; font-family: 'Jost', sans-serif;
  font-size: 11px; color: rgba(246,241,233,0.60);
}

/* ═══════════════════════════════════════════════════
   PLAYLISTS
═══════════════════════════════════════════════════ */
#view-playlists { padding-top: var(--nav-h); }
.pl-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px; padding: 32px 60px 80px;
}
.pl-card {
  padding: 22px; border-radius: 16px;
  border: 1px solid rgba(201,169,110,0.1);
  background: rgba(255,255,255,0.02);
  transition: border-color .2s, background .2s, transform .25s;
  display: flex; flex-direction: column; gap: 14px;
}
.pl-card:hover { border-color: rgba(201,169,110,0.28); background: rgba(201,169,110,0.03); transform: translateY(-3px); }
.pl-thumbs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3px; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9;
}
.pl-thumb-item { overflow: hidden; }
.pl-thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.pl-name {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 19px; color: var(--cream);
}
.pl-count {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 12px; letter-spacing: 0.08em; color: rgba(201,169,110,0.72);
}

/* Playlist card — hero thumbnail variant */
.pl-card.pl-card-has-thumb {
  position: relative; overflow: hidden; padding: 0; min-height: 240px;
  display: flex; flex-direction: column; justify-content: flex-end;
  cursor: pointer;
}
.pl-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .45s cubic-bezier(.25,.46,.45,.94);
}
.pl-card.pl-card-has-thumb:hover .pl-card-bg { transform: scale(1.05); }
.pl-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.88) 0%, rgba(10,10,10,.18) 55%, transparent 100%);
}
.pl-card-body {
  position: relative; z-index: 1; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 3px;
}
.pl-card.pl-card-has-thumb .pl-name { color: var(--cream); }
.pl-card.pl-card-has-thumb .pl-count { color: rgba(201,169,110,.72); }

/* ═══════════════════════════════════════════════════
   ABOUT VIEW
═══════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   ABOUT — full redesign
═══════════════════════════════════════════ */
#view-about { padding: 0; overflow-y: auto; }

/* Hero */
.ab-hero {
  position: relative;
  height: min(82vh, 660px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.ab-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.ab-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,7,7,0.18) 0%,
    rgba(8,7,7,0.08) 28%,
    rgba(8,7,7,0.55) 68%,
    rgba(8,7,7,0.94) 100%
  );
}
.ab-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 44px 52px;
  width: 100%;
}
.ab-eyebrow {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #c9a96e;
  margin-bottom: 12px;
}
.ab-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(48px, 7.5vw, 92px);
  line-height: 0.9;
  color: #f6f1e9;
  margin: 0;
}
.ab-hero-title em { font-style: italic; color: #c9a96e; }
.ab-hero-scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: ab-bounce 2.2s ease-in-out infinite;
}
.ab-hero-scroll svg {
  width: 22px; height: 22px;
  stroke: rgba(201,169,110,0.55);
  stroke-width: 2;
  fill: none;
}
@keyframes ab-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 1; }
}

/* Body */
.ab-body {
  padding: 56px 44px 88px;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Quote */
.ab-quote {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.ab-quote-mark {
  width: 26px; height: 19px;
  flex-shrink: 0;
  margin-top: 8px;
  color: #c9a96e;
  opacity: 0.65;
}
.ab-quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(19px, 2.8vw, 25px);
  line-height: 1.55;
  color: rgba(246,241,233,0.92);
  margin: 0;
}

/* Duo */
.ab-duo {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.ab-duo-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 14px;
}
.ab-duo-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(201,169,110,0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a96e;
}
.ab-duo-icon svg { width: 30px; height: 30px; }
.ab-duo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #f6f1e9;
}
.ab-duo-role {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(201,169,110,0.75);
  text-align: center;
}
.ab-duo-sep {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  color: #c9a96e;
}
.ab-duo-sep-line {
  width: 1px;
  height: 30px;
  background: rgba(201,169,110,0.2);
}
.ab-duo-sep-gem { font-size: 0.5rem; opacity: 0.55; }

/* Story */
.ab-story { display: flex; flex-direction: column; gap: 18px; }
.ab-story p {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(246,241,233,0.7);
  margin: 0;
}

/* Stats */
.ab-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  border-top: 1px solid rgba(201,169,110,0.12);
  border-bottom: 1px solid rgba(201,169,110,0.12);
}
.ab-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ab-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: #c9a96e;
}
.ab-stat-lbl {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(246,241,233,0.38);
  text-align: center;
}
.ab-stat-sep {
  width: 1px;
  height: 44px;
  background: rgba(201,169,110,0.18);
}

/* Contact */
.ab-contact {
  background: rgba(201,169,110,0.05);
  border: 1px solid rgba(201,169,110,0.18);
  border-radius: 20px;
  overflow: hidden;
}
.ab-contact-inner {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.ab-contact-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #c9a96e;
}
.ab-contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 400;
  color: #f6f1e9;
  margin: 0;
}
.ab-contact-sub {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(246,241,233,0.5);
  margin: 0 0 8px;
}
.ab-contact-btns {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
  max-width: 330px;
}
.ab-btn-primary, .ab-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 100px;
  font-family: 'Jost', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.ab-btn-primary svg, .ab-btn-secondary svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.ab-btn-primary {
  background: #c9a96e;
  color: #0a0a0a;
}
.ab-btn-primary:hover { opacity: 0.87; transform: translateY(-1px); }
.ab-btn-secondary {
  background: transparent;
  color: #c9a96e;
  border: 1.5px solid rgba(201,169,110,0.4);
}
.ab-btn-secondary:hover { border-color: #c9a96e; background: rgba(201,169,110,0.06); }

@media (max-width: 640px) {
  .ab-hero-content { padding: 0 24px 40px; }
  .ab-body { padding: 36px 22px 72px; gap: 40px; }
  .ab-duo { flex-direction: column; }
  .ab-duo-sep { flex-direction: row; padding: 8px 0; }
  .ab-duo-sep-line { height: 1px; width: 40px; }
  .ab-contact-inner { padding: 30px 22px; }
}

/* light mode */
body.light-mode .ab-hero-veil {
  background: linear-gradient(to bottom, rgba(240,234,224,0.1) 0%, rgba(240,234,224,0.15) 28%, rgba(240,234,224,0.72) 68%, rgba(240,234,224,0.97) 100%);
}
body.light-mode .ab-hero-title { color: #1a1916; }
body.light-mode .ab-eyebrow { color: #670F00; }
body.light-mode .ab-quote-text { color: rgba(26,25,22,0.88); }
body.light-mode .ab-quote-mark { color: #670F00; }
body.light-mode .ab-duo-card { background: rgba(0,0,0,0.03); border-color: rgba(103,15,0,0.14); }
body.light-mode .ab-duo-icon { background: rgba(103,15,0,0.08); color: #670F00; }
body.light-mode .ab-duo-name { color: #1a1916; }
body.light-mode .ab-duo-role { color: rgba(103,15,0,0.68); }
body.light-mode .ab-story p { color: rgba(26,25,22,0.72); }
body.light-mode .ab-stat-num { color: #670F00; }
body.light-mode .ab-stat-lbl { color: rgba(26,25,22,0.42); }
body.light-mode .ab-contact { background: rgba(103,15,0,0.04); border-color: rgba(103,15,0,0.15); }
body.light-mode .ab-contact-title { color: #1a1916; }
body.light-mode .ab-contact-sub { color: rgba(26,25,22,0.52); }
body.light-mode .ab-btn-primary { background: #670F00; color: #fff; }
body.light-mode .ab-btn-secondary { color: #670F00; border-color: rgba(103,15,0,0.38); }
body.light-mode .ab-btn-secondary:hover { background: rgba(103,15,0,0.06); border-color: #670F00; }

/* ═══════════════════════════════════════════════════
   GOD MODE
═══════════════════════════════════════════════════ */
#plat-god-panel {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.97);
  display: none; flex-direction: column; overflow: hidden;
}
#plat-god-panel.open { display: flex; }
#plat-god-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,255,140,0.015) 2px, rgba(0,255,140,0.015) 4px);
}
.god-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; border-bottom: 1px solid rgba(0,255,140,0.12); flex-shrink: 0;
}
.god-lbl { font-family: 'Jost', sans-serif; font-weight: 200; font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; color: rgba(0,255,140,0.35); }
.god-ttl { font-family: 'Jost', sans-serif; font-weight: 300; font-size: 13px; letter-spacing: 0.25em; color: var(--green); text-transform: uppercase; text-shadow: 0 0 20px rgba(0,255,140,0.4); }
.god-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,255,140,0.18); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.god-x:hover { background: rgba(0,255,140,0.07); }
.god-x svg { width: 15px; height: 15px; stroke: rgba(0,255,140,0.6); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.god-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: rgba(0,255,140,0.07); flex: 1; overflow: hidden; }
.god-col { background: #000; padding: 24px; overflow-y: auto; }
.god-col-hdr { font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(0,255,140,0.35); margin-bottom: 18px; padding-bottom: 8px; border-bottom: 1px solid rgba(0,255,140,0.08); }
.god-row { margin-bottom: 12px; }
.god-row-lbl { font-size: 9px; letter-spacing: 0.18em; color: rgba(0,255,140,0.3); margin-bottom: 2px; }
.god-row-val { font-size: 13px; color: var(--green); font-weight: 300; word-break: break-all; }
.god-row-val.dim { color: rgba(0,255,140,0.4); }
.god-actions { display: flex; flex-direction: column; gap: 8px; }
.god-action {
  width: 100%; padding: 11px 16px; border-radius: 7px;
  border: 1px solid rgba(0,255,140,0.18); background: rgba(0,255,140,0.03);
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase; color: rgba(0,255,140,0.75);
  text-align: left; transition: background .2s, border-color .2s;
}
.god-action:hover { background: rgba(0,255,140,0.08); border-color: rgba(0,255,140,0.35); }
.god-action.danger { border-color: rgba(255,70,70,0.18); color: rgba(255,100,100,0.65); }
.god-action.danger:hover { background: rgba(255,70,70,0.07); border-color: rgba(255,70,70,0.35); }
.god-logarea { font-size: 10px; line-height: 1.85; color: rgba(0,255,140,0.35); font-family: monospace; }
.god-logarea .t { color: rgba(0,255,140,0.22); }
.god-logarea .i { color: rgba(0,255,140,0.65); }
.god-logarea .w { color: rgba(255,195,55,0.65); }
.god-logarea .e { color: rgba(255,75,75,0.65); }

#plat-god-meter { position: fixed; bottom: 18px; right: 18px; display: flex; gap: 5px; z-index: 200; opacity: 0; transition: opacity .3s; }
#plat-god-meter.visible { opacity: 1; }
.gd { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,255,140,0.18); border: 1px solid rgba(0,255,140,0.25); transition: background .2s; }
.gd.lit { background: var(--green); box-shadow: 0 0 6px var(--green); }

/* ═══════════════════════════════════════════════════
   FULLSCREEN ENTRY OVERLAY
═══════════════════════════════════════════════════ */
#fs-overlay {
  position: fixed; inset: 0; z-index: 8000;
  background: var(--dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0;
  opacity: 1; transition: opacity .5s;
}
#fs-overlay.hidden { opacity: 0; pointer-events: none; }
#fs-overlay.gone   { display: none; }
.fs-loader {
  width: 140px; height: 1px;
  background: rgba(201,169,110,0.18);
  margin-top: 40px; overflow: hidden;
}
.fs-loader-bar {
  height: 1px; width: 0;
  background: var(--gold);
  animation: fsBarFill 0.7s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes fsBarFill { to { width: 100%; } }

.fs-logo {
  width: clamp(200px, 34vw, 440px); height: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 0;
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  0%,100% { transform: scale(1); filter: brightness(0) invert(1) drop-shadow(0 0 0px rgba(201,169,110,0)); }
  50%      { transform: scale(1.018); filter: brightness(0) invert(1) drop-shadow(0 0 36px rgba(201,169,110,0.3)); }
}

.fs-sep {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, rgba(201,169,110,0.5), transparent);
  margin: 0;
}
.fs-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-style: italic; font-size: clamp(22px, 3vw, 32px);
  color: var(--cream); margin-top: 28px; margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.fs-sub {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(201,169,110,0.82); margin-bottom: 36px;
}
.fs-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 0 48px; height: 54px; border-radius: 100px;
  background: linear-gradient(135deg, rgba(201,169,110,0.18), rgba(201,169,110,0.07));
  border: 1.5px solid rgba(201,169,110,0.5);
  font-family: 'Jost', sans-serif; font-weight: 400;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-l);
  transition: background .2s, border-color .2s, transform .15s;
  margin-bottom: 18px;
}
.fs-btn:hover  { background: rgba(201,169,110,0.24); border-color: rgba(201,169,110,0.8); }
.fs-btn:active { transform: scale(0.97); }
.fs-btn svg {
  width: 18px; height: 18px; stroke: var(--gold);
  fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.fs-hint {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(246,241,233,0.48);
}

/* ═══════════════════════════════════════════════════
   FOCUS VISIBLE — accessibilité clavier
═══════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
button:focus-visible, a:focus-visible { outline-color: var(--gold-l); }
.nav-link:focus-visible, .filter-pill:focus-visible { border-radius: 100px; }
.vcard:focus-visible { outline-offset: 2px; border-radius: var(--r); }

/* ═══════════════════════════════════════════════════
   BOTTOM NAV — mobile only
═══════════════════════════════════════════════════ */
#bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(6,6,6,0.97);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid rgba(201,169,110,0.12);
  flex-direction: row; align-items: flex-start; justify-content: space-around;
  padding: 8px 4px max(16px, env(safe-area-inset-bottom, 16px));
}
.bnav-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  flex: 1; padding: 6px 4px 0; min-height: 52px;
  color: rgba(246,241,233,0.52);
  transition: color .2s;
}
.bnav-item.active { color: var(--gold); }
.bnav-item:active { color: var(--gold-l); transform: scale(0.93); }
.bnav-item svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.bnav-item.active svg { stroke-width: 2; }
.bnav-label {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.fade-up { animation: fadeUp .4s cubic-bezier(0.16,1,0.3,1) forwards; }
.skel {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%; animation: shimmer 1.8s infinite;
}

/* ── SKELETON CARDS ── */
.vcard-skel {
  width: 380px; flex-shrink: 0; border-radius: var(--r);
  overflow: hidden; background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.04);
}
.vcard-skel .skel-thumb {
  width: 100%; aspect-ratio: 16/9;
}
.vcard-skel .skel-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.vcard-skel .skel-line { height: 11px; border-radius: 4px; }
.vcard-skel .skel-line.w60 { width: 60%; }
.vcard-skel .skel-line.w80 { width: 80%; }
.vcard-skel .skel-line.w40 { width: 40%; }
.vcard-skel .skel-title { height: 22px; border-radius: 5px; width: 88%; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .player-layout { grid-template-columns: 1fr; }
  .player-right { display: none; }
}

@media (max-width: 900px) {
  #nav {
    padding: 0 max(20px, env(safe-area-inset-left, 0px))
             0 max(20px, env(safe-area-inset-right, 0px));
  }
  .nav-links .nav-link:not(.active):not(:first-child) { display: none; }
  .hero-content { padding: 0 24px 44px; }
  .cat-row { padding-left: 20px; padding-right: 20px; }
  .section-header,
  .cw-strip,
  .catalog-header,
  .filter-bar,
  .catalog-grid-wrap,
  .fav-header,
  .grid-section,
  .pl-grid { padding-left: 20px; padding-right: 20px; }
  .carousel-track { padding-left: 20px; padding-right: 20px; }
  .carousel-outer::before, .carousel-outer::after { width: 20px; }
  .player-info { padding: 20px 20px 32px; }
  #search-overlay { padding-left: 20px; padding-right: 20px; }
  .view-h1 { font-size: clamp(32px, 6vw, 52px); }
}

/* ── TABLET (769px – 1024px) — primary target ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content { padding: 0 40px 52px; max-width: 640px; }
  .hero-title { font-size: clamp(52px, 7vw, 82px); }
  .hero-desc { font-size: 17px; }
  .section-header { padding: 0 40px; }
  .carousel-track { padding: 6px 40px 20px; }
  .vcard { width: 340px; }
  .vcard.large { width: 410px; }
}

/* ── MOBILE (≤ 768px) — bottom nav + layout ── */
@media (max-width: 768px) {
  #bottom-nav { display: flex; }

  /* Masquer la nav desktop sur mobile */
  .nav-links { display: none; }

  /* Compenser la bottom nav */
  .view { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .home-body { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }

  /* Player — pas de bottom nav, pas de padding compensatoire */
  #view-player { padding-bottom: 0; }

  /* Hero plus court sur mobile portrait */
  .hero { height: min(75vh, 560px); }

  /* Logo encore plus grand sur mobile (header minimaliste) */
  .nav-logo img { height: 44px; }

  /* Typo hero réduite */
  .hero-title { font-size: clamp(36px, 9vw, 60px); line-height: 0.95; }
  .hero-desc { font-size: 14px; max-width: 100%; }

  /* Cards légèrement réduites */
  .vcard { width: 260px; }
  .vcard.large { width: 320px; }

  /* Search overlay full width */
  #search-overlay { padding: calc(var(--nav-h) + 20px) 20px 32px; }

  /* Player layout vertical */
  .player-left { overflow-y: visible; }
}

@media (max-width: 480px) {
  .vcard { width: 220px; }
  .btn-hero-play { height: 54px; padding: 0 28px; }
  .btn-hero-outline { height: 54px; padding: 0 22px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── MOBILE GRID — 2 colonnes sur petits écrans ── */
@media (max-width: 600px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
  }
  .catalog-grid-wrap { padding-left: 14px; padding-right: 14px; }
  .grid-section { padding-left: 14px; padding-right: 14px; }
  .pl-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-left: 14px; padding-right: 14px;
  }
  .vcard-title { font-size: 18px; }
  .vcard.large .vcard-title { font-size: 20px; }
  .vcard-info { padding: 10px 12px 12px; }
}

/* ── TOUCH / TABLET (hover: none) ─────────────────── */
@media (hover: none) {
  /* Carousel arrows toujours visibles sur touch */
  .car-arrow { opacity: 0.8; }
  .car-arrow:active { opacity: 1; }

  /* Fav button toujours visible sur touch */
  .vcard-fav-btn { opacity: 0.9; }

  /* Hover layer sur touch */
  .vcard-hover-layer { opacity: 0; }
  .vcard:active .vcard-hover-layer { opacity: 1; }
  .vcard:active { transform: scale(0.98); }

  /* Progress track plus épais */
  .progress-track { height: 6px; }

  /* Pi buttons plus hauts */
  .pi-btn { height: 52px; font-size: 12px; }

  /* Player controls — visibles sur tap (classe ctrl-visible ajoutée par JS) */
  .player-stage.ctrl-visible .player-controls { opacity: 1; }
  /* Buffer ring plus grand sur touch */
  .player-buffer-ring svg { width: 56px; height: 56px; }

  /* Feedback tactile sur tous les éléments */
  .nav-link:active        { background: rgba(201,169,110,0.14); color: var(--gold); }
  .nav-icon-btn:active    { background: rgba(201,169,110,0.12); }
  .filter-pill:active     { background: rgba(201,169,110,0.12); border-color: rgba(201,169,110,0.5); }
  .cw-card:active         { background: rgba(201,169,110,0.08); }
  .related-item:active    { background: rgba(255,255,255,0.05); }
  .pl-card:active         { background: rgba(201,169,110,0.06); transform: scale(0.99); }
  .section-see-all:active { color: var(--gold-l); }
  .btn-hero-play:active   { transform: scale(0.96); }
  .btn-hero-outline:active{ transform: scale(0.96); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ═══════════════════════════════════════════════════
   THEME TOGGLE BUTTON
═══════════════════════════════════════════════════ */
.nav-theme-btn .icon-sun  { display: block; }
.nav-theme-btn .icon-moon { display: none; }
body.light-mode .nav-theme-btn .icon-sun  { display: none; }
body.light-mode .nav-theme-btn .icon-moon { display: block; }
.nav-theme-btn .icon-sun,
.nav-theme-btn .icon-moon {
  width: 18px; height: 18px;
  stroke: rgba(246,241,233,0.6); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
body.light-mode .nav-theme-btn .icon-moon { stroke: rgba(36,35,34,0.65); }

/* ═══════════════════════════════════════════════════
   LIGHT MODE  —  #F1EDE7 bg · #C5B099 nav · #670F00 cta · #242322 text
   Toutes les surcharges sont scoped sous body.light-mode
═══════════════════════════════════════════════════ */
body.light-mode {
  --dark:    #F1EDE7;
  --dark-2:  #EAE5DD;
  --dark-3:  #E2DDD5;
  --cream:   #242322;
  --gold:    #670F00;
  --gold-l:  #8B2010;
  --gold-d:  #4A0800;
  --glass:   rgba(241,237,231,0.7);
  --gb:      rgba(103,15,0,0.15);
  background: #F1EDE7;
  color: #242322;
}

/* ── Nav ─────────────────────────────────────────── */
body.light-mode #nav.solid {
  background: rgba(197,176,153,0.95);
  border-bottom-color: rgba(103,15,0,0.1);
}
body.light-mode #nav.ghost {
  background: linear-gradient(180deg, rgba(197,176,153,0.65) 0%, transparent 100%);
}
body.light-mode .nav-logo img { filter: none; opacity: 0.88; }
body.light-mode .nav-link { color: rgba(36,35,34,0.72); }
body.light-mode .nav-link:hover { color: #242322; background: rgba(36,35,34,0.06); }
body.light-mode .nav-link.active { color: #670F00; background: rgba(103,15,0,0.08); }
body.light-mode .nav-icon-btn { border-color: rgba(36,35,34,0.22); }
body.light-mode .nav-icon-btn svg { stroke: rgba(36,35,34,0.75); }
body.light-mode .nav-icon-btn:hover { border-color: rgba(103,15,0,0.35); background: rgba(103,15,0,0.06); }
body.light-mode .nav-bt-btn.connected { border-color: rgba(103,15,0,0.4); background: rgba(103,15,0,0.06); }
body.light-mode .nav-bt-btn.connected svg { stroke: #670F00; }
body.light-mode .nav-bt-btn.connected::after { border-color: #F1EDE7; }
body.light-mode .nav-avatar {
  background: linear-gradient(135deg, rgba(103,15,0,0.18), rgba(103,15,0,0.05));
  border-color: rgba(103,15,0,0.28);
  color: #670F00;
}

/* ── Cursor ──────────────────────────────────────── */
body.light-mode #cursor { border-color: rgba(103,15,0,0.7); box-shadow: 0 0 0 1.5px rgba(255,255,255,0.5); }
body.light-mode #cursor::after { background: rgba(103,15,0,0.9); }

/* ── Search overlay ──────────────────────────────── */
body.light-mode #search-overlay {
  background: rgba(241,237,231,0.97);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
body.light-mode .search-bar { border-bottom-color: rgba(103,15,0,0.2); }
body.light-mode .search-bar svg { stroke: #670F00; }
body.light-mode #search-input { color: #242322; }
body.light-mode #search-input::placeholder { color: rgba(36,35,34,0.3); }
body.light-mode .search-close-btn { border-color: rgba(103,15,0,0.22); }
body.light-mode .search-close-btn:hover { border-color: rgba(103,15,0,0.5); }
body.light-mode .search-close-btn svg { stroke: rgba(36,35,34,0.78); }
body.light-mode .search-section-label { color: rgba(103,15,0,0.85); }
body.light-mode .search-empty { color: rgba(36,35,34,0.25); }

/* ── Hero ────────────────────────────────────────── */
body.light-mode .hero-overlay {
  background:
    linear-gradient(0deg,   rgba(241,237,231,1) 0%, rgba(241,237,231,0.55) 30%, rgba(241,237,231,0.05) 60%, transparent 100%),
    linear-gradient(90deg,  rgba(241,237,231,0.8) 0%, rgba(241,237,231,0.25) 55%, transparent 100%);
}
body.light-mode .hero-eyebrow {
  background: rgba(103,15,0,0.08);
  border-color: rgba(103,15,0,0.28);
  color: #670F00;
}
body.light-mode .hero-eyebrow-dot { background: #670F00; }
body.light-mode .hero-title { color: #242322; }
body.light-mode .hero-title em { color: #670F00; }
body.light-mode .hero-meta-item { color: rgba(36,35,34,0.88); }
body.light-mode .hero-meta-item svg { stroke: #670F00; }
body.light-mode .hero-desc { color: rgba(36,35,34,0.92); }
body.light-mode .btn-hero-play { background: #242322; color: #F1EDE7; }
body.light-mode .btn-hero-play:hover { background: #670F00; }
body.light-mode .btn-hero-play svg { fill: #F1EDE7; }
body.light-mode .btn-hero-outline {
  border-color: rgba(36,35,34,0.28);
  background: rgba(241,237,231,0.45);
  color: rgba(36,35,34,0.72);
}
body.light-mode .btn-hero-outline:hover { border-color: rgba(103,15,0,0.5); color: #670F00; background: rgba(103,15,0,0.05); }
body.light-mode .btn-hero-outline.active { border-color: rgba(103,15,0,0.45); color: #670F00; }

/* ── CW strip ────────────────────────────────────── */
body.light-mode .cw-strip {
  border-color: rgba(36,35,34,0.08);
  background: linear-gradient(90deg, rgba(103,15,0,0.03), transparent 70%);
}
body.light-mode .cw-label { color: rgba(103,15,0,0.85); }
body.light-mode .cw-card {
  border-color: rgba(36,35,34,0.1);
  background: rgba(255,255,255,0.55);
}
body.light-mode .cw-card:hover { border-color: rgba(103,15,0,0.28); background: rgba(255,255,255,0.8); }
body.light-mode .cw-thumb { background: #E2DDD5; }
body.light-mode .cw-progress-bar { background: #670F00; }
body.light-mode .cw-title { color: #242322; }
body.light-mode .cw-remain { color: rgba(103,15,0,0.88); }

/* ── Carousels & sections ────────────────────────── */
body.light-mode .carousel-outer::before { background: linear-gradient(90deg, #F1EDE7, transparent); }
body.light-mode .carousel-outer::after  { background: linear-gradient(-90deg, #F1EDE7, transparent); }
body.light-mode .section-title { color: #242322; }
body.light-mode .section-title em { color: #670F00; }
body.light-mode .section-badge { border-color: rgba(103,15,0,0.32); color: rgba(103,15,0,0.92); }
body.light-mode .section-badge.hot { border-color: rgba(180,60,20,0.45); color: rgba(160,40,10,1); }
body.light-mode .section-badge.new { border-color: rgba(0,130,70,0.4); color: rgba(0,110,55,1); }
body.light-mode .section-see-all { color: rgba(103,15,0,0.82); }
body.light-mode .section-see-all:hover { color: #670F00; }
body.light-mode .car-arrow { background: rgba(241,237,231,0.92); border-color: rgba(36,35,34,0.18); }
body.light-mode .car-arrow:hover { background: #fff; border-color: rgba(103,15,0,0.35); }
body.light-mode .car-arrow svg { stroke: #242322; }

/* ── Video card ──────────────────────────────────── */
body.light-mode .vcard { background: #E2DDD5; border-color: rgba(36,35,34,0.08); }
body.light-mode .vcard:hover { box-shadow: 0 16px 44px rgba(36,35,34,0.18), 0 0 0 1px rgba(103,15,0,0.18); }
body.light-mode .vcard-thumb { background: #D5CFC7; }
body.light-mode .vcard-thumb::before {
  background: linear-gradient(90deg,
    rgba(0,0,0,0.03) 25%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.03) 75%);
}
body.light-mode .vcard-dur { background: rgba(36,35,34,0.65); color: #F1EDE7; }
body.light-mode .vcard-fav-btn {
  background: rgba(241,237,231,0.85);
  border-color: rgba(36,35,34,0.15);
}
body.light-mode .vcard-fav-btn svg { stroke: rgba(36,35,34,0.6); }
body.light-mode .vcard-fav-btn.is-fav { border-color: rgba(103,15,0,0.45); background: rgba(103,15,0,0.08); }
body.light-mode .vcard-fav-btn.is-fav svg { stroke: #670F00; fill: rgba(103,15,0,0.1); }
body.light-mode .vcard-cat { color: #670F00; }
body.light-mode .vcard-title { color: #242322; }
body.light-mode .vmeta { color: rgba(36,35,34,0.72); }
body.light-mode .vmeta svg { stroke: rgba(103,15,0,0.80); }
body.light-mode .lvl-dot { background: rgba(103,15,0,0.18); }
body.light-mode .lvl-dot.on { background: #670F00; box-shadow: 0 0 4px rgba(103,15,0,0.3); }
body.light-mode .vcard-play-btn { background: rgba(103,15,0,0.88); }
body.light-mode .vcard-play-btn:hover { background: #670F00; }
body.light-mode .vcard-play-btn svg { fill: #F1EDE7; }

/* ── Filter bar ──────────────────────────────────── */
body.light-mode .filter-bar { border-bottom-color: rgba(36,35,34,0.07); }
body.light-mode .filter-pill { border-color: rgba(36,35,34,0.22); color: rgba(36,35,34,0.78); }
body.light-mode .filter-pill:hover { color: #242322; border-color: rgba(103,15,0,0.35); }
body.light-mode .filter-pill.active { border-color: #670F00; color: #670F00; background: rgba(103,15,0,0.08); }
body.light-mode .cat-chip { background: rgba(0,0,0,0.04); border-color: rgba(36,35,34,0.18); color: rgba(36,35,34,0.88); }
body.light-mode .cat-chip:hover { background: rgba(103,15,0,0.06); border-color: rgba(103,15,0,0.3); color: #242322; }

/* ── Catalog view ────────────────────────────────── */
body.light-mode .catalog-header { border-bottom-color: rgba(36,35,34,0.08); }
body.light-mode .catalog-h1 { color: #242322; }
body.light-mode .catalog-h1 em { color: #670F00; }
body.light-mode .catalog-sub { color: rgba(36,35,34,0.68); }

/* ── Favorites & Playlists ───────────────────────── */
body.light-mode .fav-header { border-bottom-color: rgba(36,35,34,0.08); }
body.light-mode .view-h1 { color: #242322; }
body.light-mode .view-h1 em { color: #670F00; }
body.light-mode .empty-icon { border-color: rgba(103,15,0,0.2); }
body.light-mode .empty-icon svg { stroke: rgba(103,15,0,0.35); }
body.light-mode .empty-title { color: rgba(36,35,34,0.65); }
body.light-mode .empty-sub { color: #7D7D7D; }
body.light-mode .pl-card { background: #E2DDD5; border-color: rgba(36,35,34,0.08); }
body.light-mode .pl-card:hover { border-color: rgba(103,15,0,0.3); }
body.light-mode .pl-thumb { background: #D5CFC7; }
body.light-mode .pl-name { color: #242322; }
body.light-mode .pl-meta { color: rgba(36,35,34,0.68); }
body.light-mode .pl-play { border-color: rgba(103,15,0,0.28); color: #670F00 !important; background: rgba(103,15,0,0.06); }
body.light-mode .pl-play svg { stroke: #670F00; }

/* ── Player view ─────────────────────────────────── */
body.light-mode #view-player { background: #F1EDE7; }
body.light-mode .player-right {
  border-left-color: rgba(36,35,34,0.1);
  background: rgba(197,176,153,0.15);
}
body.light-mode .sidebar-hdr {
  border-bottom-color: rgba(36,35,34,0.08);
  color: rgba(36,35,34,0.70);
}
body.light-mode .related-item { border-bottom-color: rgba(36,35,34,0.07); }
body.light-mode .related-item:hover { background: rgba(36,35,34,0.05); }
body.light-mode .ri-thumb { background: #D5CFC7; }
body.light-mode .ri-title { color: #242322; }
body.light-mode .ri-meta { color: rgba(36,35,34,0.68); }
body.light-mode .ri-dur { background: rgba(36,35,34,0.6); color: #F1EDE7; }
body.light-mode .video-title { color: #242322; }
body.light-mode .video-meta-row { border-color: rgba(36,35,34,0.08); }
body.light-mode .vmeta-block .vmeta { color: rgba(36,35,34,0.72); }
body.light-mode .video-desc { color: rgba(36,35,34,0.78); }
body.light-mode .video-instructor { color: #242322; border-color: rgba(36,35,34,0.1); }

/* ── About view ──────────────────────────────────── */

/* ── BT panel ────────────────────────────────────── */
body.light-mode .bt-panel {
  background: rgba(241,237,231,0.98);
  border-color: rgba(103,15,0,0.18);
}
body.light-mode .bt-panel-hdr {
  border-bottom-color: rgba(103,15,0,0.1);
  color: rgba(36,35,34,0.72);
}
body.light-mode .bt-panel-hdr svg { stroke: #670F00; }
body.light-mode .bt-panel-status { color: rgba(36,35,34,0.72); }
body.light-mode .bt-panel-device {
  background: rgba(103,15,0,0.05);
  border-color: rgba(103,15,0,0.15);
  color: #242322;
}
body.light-mode .bt-panel-device svg { stroke: #670F00; }
body.light-mode .bt-panel-btn {
  background: rgba(103,15,0,0.07) !important;
  border-color: rgba(103,15,0,0.25) !important;
  color: #670F00 !important;
}
body.light-mode .bt-panel-btn svg { stroke: #670F00; }

/* ── Bottom nav ──────────────────────────────────── */
body.light-mode #bottom-nav {
  background: rgba(197,176,153,0.97);
  border-top-color: rgba(103,15,0,0.1);
}
body.light-mode .bnav-item { color: rgba(36,35,34,0.68); }
body.light-mode .bnav-item.active { color: #670F00; }

/* ── Focus ring ──────────────────────────────────── */
body.light-mode :focus-visible { outline-color: #670F00; }

/* ── Scrollbars ──────────────────────────────────── */
body.light-mode .view,
body.light-mode .search-grid {
  scrollbar-color: rgba(103,15,0,0.2) transparent;
}
body.light-mode .view::-webkit-scrollbar-thumb,
body.light-mode .search-grid::-webkit-scrollbar-thumb {
  background: rgba(103,15,0,0.2);
}

/* ── Player info — light mode RGAA contrast ──────── */
body.light-mode .pi-cat { color: rgba(103,15,0,0.82); }
body.light-mode .pi-title { color: #242322; }
body.light-mode .pi-title em { color: #670F00; }
body.light-mode .pi-tag {
  border-color: rgba(36,35,34,0.24); color: rgba(36,35,34,0.88); background: transparent;
}
body.light-mode .pi-vtag {
  background: rgba(103,15,0,0.06); border-color: rgba(103,15,0,0.18); color: #670F00;
}
body.light-mode .pi-desc { color: rgba(36,35,34,0.75); }
body.light-mode .pi-btn {
  border-color: rgba(36,35,34,0.22); color: rgba(36,35,34,0.65); background: transparent;
}
body.light-mode .pi-btn:hover {
  border-color: rgba(103,15,0,0.4); color: #670F00; background: rgba(103,15,0,0.05);
}
body.light-mode .pi-btn.primary {
  background: rgba(103,15,0,0.08); border-color: rgba(103,15,0,0.32); color: #670F00;
}
body.light-mode .pi-btn.is-fav {
  border-color: rgba(103,15,0,0.42); color: #670F00; background: rgba(103,15,0,0.05);
}
body.light-mode .pi-btn.is-fav svg { fill: rgba(103,15,0,0.08); }
body.light-mode .pi-btn svg { fill: none; }
/* vcard tags */
body.light-mode .vcard-tag {
  color: rgba(103,15,0,0.78); background: rgba(103,15,0,0.06); border-color: rgba(103,15,0,0.16);
}
/* Related sidebar */
body.light-mode .ri-cat { color: #670F00; }
body.light-mode .sidebar-hdr {
  background: rgba(241,237,231,0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ══════════════════════════════════════════
   PLAYLIST DETAIL
══════════════════════════════════════════ */
#pdl-root { padding-bottom: 80px; }

.pdl-back-row { padding: 18px 20px 0; }
.pdl-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: rgba(201,169,110,.6);
  background: none; border: none; cursor: pointer; padding: 0;
  letter-spacing: 0.01em; transition: color .2s;
}
.pdl-back svg { width: 15px; height: 15px; stroke: currentColor; }
.pdl-back:hover { color: var(--cream); }

.pdl-hero {
  position: relative; margin: 16px 20px 0;
  border-radius: 18px; overflow: hidden; min-height: 280px;
  display: flex; align-items: flex-end;
}
.pdl-hero-mosaic {
  position: absolute; inset: 0; display: grid;
  grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
}
.pdl-hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--dark-3);
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.pdl-hero:hover .pdl-hero-img { transform: scale(1.03); }
.pdl-hero-thumb {
  background-size: cover; background-position: center;
  background-color: var(--dark-3);
}
.pdl-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,10,10,.3) 0%, rgba(10,10,10,.72) 55%, rgba(10,10,10,.96) 100%);
}
.pdl-hero-content {
  position: relative; z-index: 1; padding: 28px 24px; width: 100%;
}
.pdl-hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 6px;
}
.pdl-hero-title {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 9vw, 58px);
  font-weight: 700; font-style: italic; line-height: 1.05;
  color: var(--cream); margin: 0 0 10px;
}
.pdl-hero-desc {
  font-size: 13px; color: rgba(246,241,233,.68); margin: 0 0 12px;
  line-height: 1.5; max-width: 380px;
}
.pdl-hero-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(246,241,233,.58); margin-bottom: 18px;
}
.pdl-dot { opacity: .5; }
.pdl-cta-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 26px; border-radius: 10px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 700; letter-spacing: .03em;
  transition: opacity .2s, transform .15s; font-family: 'Jost', sans-serif;
}
.pdl-cta-btn:active { transform: scale(.97); }
.pdl-cta-btn.primary { background: var(--gold); color: #0A0A0A; }
.pdl-cta-btn.primary:hover { opacity: .88; }

.pdl-program { margin-top: 28px; padding: 0 20px; }
.pdl-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(201,169,110,.55); margin-bottom: 14px;
}
.pdl-empty {
  padding: 32px 0; text-align: center;
  font-size: 13px; color: rgba(201,169,110,.45); font-style: italic;
}
.pdl-item {
  display: grid; grid-template-columns: 28px 88px 1fr 36px;
  gap: 12px; align-items: center; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  cursor: pointer; transition: background .15s; border-radius: 4px;
}
.pdl-item:last-child { border-bottom: none; }
.pdl-item:hover { background: rgba(255,255,255,.03); }
.pdl-item-num {
  font-family: 'Cormorant Garamond', serif; font-size: 16px;
  font-weight: 700; font-style: italic; color: var(--gold);
  text-align: center; line-height: 1;
}
.pdl-item-thumb-wrap {
  position: relative; border-radius: 7px; overflow: hidden;
  width: 88px; height: 54px; flex-shrink: 0;
}
.pdl-item-thumb {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: var(--dark-3);
}
.pdl-item-done {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; background: rgba(10,10,10,.55);
}
.pdl-item-done svg { width: 18px; height: 18px; stroke: var(--gold); stroke-width: 2.5; }
.pdl-item-progress-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,.18);
}
.pdl-item-progress-fill { height: 100%; background: var(--gold); border-radius: 2px; }
.pdl-item-info { min-width: 0; }
.pdl-item-cat {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 2px;
}
.pdl-item-title {
  font-size: 13.5px; font-weight: 500; color: var(--cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25;
}
.pdl-item-meta {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: rgba(201,169,110,.6); margin-top: 3px;
}
.pdl-item-action { display: flex; justify-content: center; flex-shrink: 0; }
.pdl-play-btn {
  width: 32px; height: 32px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  cursor: pointer; color: rgba(246,241,233,.55); transition: background .2s, color .2s, border-color .2s;
}
.pdl-play-btn svg { width: 12px; height: 12px; margin-left: 2px; }
.pdl-play-btn:hover { background: var(--gold); border-color: var(--gold); color: #0A0A0A; }

@media (max-width: 480px) {
  .pdl-hero { margin: 12px 12px 0; border-radius: 14px; }
  .pdl-hero-content { padding: 20px 16px; }
  .pdl-program { padding: 0 12px; }
  .pdl-back-row { padding: 14px 12px 0; }
  .pdl-item { grid-template-columns: 24px 76px 1fr 32px; gap: 10px; }
  .pdl-item-thumb-wrap { width: 76px; height: 46px; }
}

/* Light mode overrides */
body.light-mode .pdl-back { color: rgba(36,35,34,.5); }
body.light-mode .pdl-back:hover { color: #242322; }
body.light-mode .pdl-hero-overlay {
  background: linear-gradient(160deg, rgba(241,237,231,.15) 0%, rgba(241,237,231,.6) 55%, rgba(241,237,231,.94) 100%);
}
body.light-mode .pdl-hero-eyebrow { color: #670F00; }
body.light-mode .pdl-hero-title { color: #1a1816; }
body.light-mode .pdl-hero-desc { color: rgba(36,35,34,.68); }
body.light-mode .pdl-hero-meta { color: rgba(36,35,34,.58); }
body.light-mode .pdl-section-label { color: rgba(36,35,34,.45); }
body.light-mode .pdl-item { border-bottom-color: rgba(36,35,34,.09); }
body.light-mode .pdl-item:hover { background: rgba(0,0,0,.025); }
body.light-mode .pdl-item-num { color: #670F00; }
body.light-mode .pdl-item-title { color: #1a1816; }
body.light-mode .pdl-item-meta { color: rgba(36,35,34,.52); }
body.light-mode .pdl-play-btn {
  background: rgba(241,237,231,.9); border-color: rgba(36,35,34,.18); color: rgba(36,35,34,.55);
}
body.light-mode .pdl-play-btn:hover { background: #670F00; border-color: #670F00; color: #F1EDE7; }
body.light-mode .pdl-cta-btn.primary { background: #670F00; color: #F1EDE7; }

/* ── Notification popin ─────────────────────────────── */
/* ── Notification popin XXL ─────────────────────────────── */
.notif-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  opacity: 0; transition: opacity 0.4s ease;
}
.notif-overlay.notif-in  { opacity: 1; }
.notif-overlay.notif-out { opacity: 0; pointer-events: none; }
.notif-card {
  background: var(--dark-2, #141210);
  border: 1px solid rgba(201,169,110,0.22);
  border-radius: 22px; overflow: hidden;
  max-width: 680px; width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.75), 0 0 0 1px rgba(201,169,110,0.06);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.15);
}
.notif-overlay.notif-in .notif-card { transform: translateY(0) scale(1); }
.notif-img-wrap { width: 100%; overflow: hidden; }
.notif-img { width: 100%; height: 320px; object-fit: cover; display: block; opacity: 0; transition: opacity .45s; }
.notif-img.loaded { opacity: 1; }
.notif-body { padding: 28px 32px 24px; }
.notif-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px; font-style: italic; font-weight: 400;
  color: var(--cream, #F6F1E9); line-height: 1.15; margin-bottom: 10px;
}
.notif-subtitle {
  font-size: 14px; color: rgba(201,169,110,0.8);
  line-height: 1.6; margin-bottom: 22px;
}
.notif-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.notif-btn {
  padding: 12px 26px; border-radius: 10px; font-size: 13.5px;
  font-weight: 500; cursor: pointer; border: none;
  font-family: 'Jost', sans-serif; text-decoration: none;
  display: inline-flex; align-items: center;
  transition: opacity 0.15s, background 0.15s;
}
.notif-btn-primary { background: var(--gold, #C9A96E); color: #0A0A0A; }
.notif-btn-primary:hover { opacity: 0.88; }
.notif-btn-close { background: rgba(255,255,255,0.07); color: rgba(246,241,233,0.6); }
.notif-btn-close:hover { background: rgba(255,255,255,0.12); }
/* ✕ Close button top-right */
.notif-x {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(246,241,233,0.8);
  transition: background 0.15s, color 0.15s; z-index: 2; flex-shrink: 0;
}
.notif-x:hover { background: rgba(255,255,255,0.18); color: #F6F1E9; }
.notif-card { position: relative; } /* needed for absolute .notif-x */
/* Checkbox "ne plus afficher" — prominent */
.notif-nore {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
  margin-top: 16px; padding: 12px 14px;
  border-radius: 10px; border: 1px solid rgba(201,169,110,0.22);
  background: rgba(201,169,110,0.06);
  transition: background 0.15s, border-color 0.15s;
}
.notif-nore:hover { background: rgba(201,169,110,0.12); border-color: rgba(201,169,110,0.4); }
.notif-nore input {
  width: 17px; height: 17px; accent-color: var(--gold, #C9A96E);
  cursor: pointer; flex-shrink: 0;
}
.notif-nore span { font-size: 13px; color: rgba(201,169,110,0.85); font-weight: 500; }
@media (max-width: 600px) {
  .notif-card { border-radius: 18px 18px 0 0; }
  .notif-overlay { align-items: flex-end; padding: 0; }
  .notif-img { height: 200px; }
  .notif-body { padding: 20px 20px 28px; }
  .notif-title { font-size: 24px; }
}
/* light mode */
body.light-mode .notif-card { background: #F1EDE7; border-color: rgba(103,15,0,0.12); }
body.light-mode .notif-title { color: #1a1816; }
body.light-mode .notif-subtitle { color: rgba(36,35,34,0.65); }
body.light-mode .notif-x { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.12); color: rgba(36,35,34,0.7); }
body.light-mode .notif-x:hover { background: rgba(0,0,0,0.12); color: #1a1816; }
body.light-mode .notif-nore { border-color: rgba(103,15,0,0.2); background: rgba(103,15,0,0.05); }
body.light-mode .notif-nore:hover { background: rgba(103,15,0,0.1); border-color: rgba(103,15,0,0.35); }
body.light-mode .notif-nore span { color: rgba(103,15,0,0.8); }

/* ── PLAYER META (SVG pictos) ────────────────────────────── */
.pi-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-bottom: 14px; align-items: center;
}
.pi-meta-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: rgba(246,241,233,0.65);
  font-family: 'Jost', sans-serif;
}
.pi-meta-icon {
  width: 14px; height: 14px; flex-shrink: 0;
  color: var(--gold); opacity: 0.8;
}
body.light-mode .pi-meta-item { color: rgba(36,35,34,0.6); }
body.light-mode .pi-meta-icon { color: #670F00; }

/* ── VOUS POURRIEZ ÊTRE INTÉRESSÉ ────────────────────────── */
.pi-interested {
  padding: 28px 40px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.pi-interested-hdr {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(201,169,110,0.7);
  margin-bottom: 14px; font-family: 'Jost', sans-serif;
}
.pi-interested-list {
  display: flex; gap: 14px;
  overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: rgba(201,169,110,0.2) transparent;
}
.pi-interested-list::-webkit-scrollbar { height: 4px; }
.pi-interested-list::-webkit-scrollbar-track { background: transparent; }
.pi-interested-list::-webkit-scrollbar-thumb { background: rgba(201,169,110,0.25); border-radius: 2px; }
.pii-item {
  width: 220px; flex-shrink: 0; cursor: pointer;
  transition: opacity 0.18s;
}
.pii-item:hover { opacity: 0.82; }
.pii-thumb {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: 9px; overflow: hidden; background: var(--dark-3);
}
.pii-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.pii-prog {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--gold); border-radius: 0 2px 2px 0;
  transition: width 0.3s;
}
.pii-info { padding: 8px 2px 0; }
.pii-cat {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(201,169,110,0.6); margin-bottom: 3px;
  font-family: 'Jost', sans-serif; font-weight: 400;
}
.pii-title {
  font-size: 12.5px; font-weight: 500; line-height: 1.35;
  color: rgba(246,241,233,0.9); margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pii-meta {
  display: flex; gap: 5px; align-items: center;
  font-size: 11px; color: rgba(246,241,233,0.4);
  font-family: 'Jost', sans-serif;
}
@media (max-width: 900px) {
  .pi-interested { padding: 20px 20px 24px; }
  .pii-item { width: 180px; }
}
/* light mode */
body.light-mode .pi-interested { border-top-color: rgba(0,0,0,0.08); }
body.light-mode .pi-interested-hdr { color: rgba(103,15,0,0.55); }
body.light-mode .pi-interested-list::-webkit-scrollbar-thumb { background: rgba(103,15,0,0.2); }
body.light-mode .pii-thumb { background: rgba(0,0,0,0.06); }
body.light-mode .pii-cat { color: rgba(103,15,0,0.88); }
body.light-mode .pii-title { color: #242322; }
body.light-mode .pii-meta { color: rgba(36,35,34,0.68); }

/* ─────────────────────────────────────────
   NVO — Next Video Overlay
───────────────────────────────────────── */
.nvo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 7, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nvo-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.nvo-cancel {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nvo-cancel:hover { background: rgba(255,255,255,0.2); }
.nvo-cancel svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.nvo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(300px, 88%);
}
.nvo-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
}
.nvo-ring-wrap {
  position: relative;
  width: 60px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nvo-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.nvo-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.1);
  stroke-width: 3;
}
.nvo-ring-fill {
  fill: none;
  stroke: #c9a96e;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}
.nvo-secs {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}
.nvo-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
}
.nvo-thumb {
  width: 76px; height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}
.nvo-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.nvo-card-cat {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c9a96e;
}
.nvo-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nvo-card-dur {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}
.nvo-play-btn {
  background: #c9a96e;
  color: #0a0a0a;
  border: none;
  padding: 11px 0;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  width: 100%;
  transition: opacity 0.2s, transform 0.15s;
}
.nvo-play-btn:hover { opacity: 0.88; transform: scale(1.01); }
.nvo-play-btn:active { transform: scale(0.98); }

/* ─────────────────────────────────────────
   CPO — Completion Overlay
───────────────────────────────────────── */
.cpo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,7,7,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 21;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.cpo-overlay.visible { opacity: 1; pointer-events: auto; }
.cpo-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cpo-close:hover { background: rgba(255,255,255,0.2); }
.cpo-close svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.cpo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(320px, 90%);
  text-align: center;
}
.cpo-badge {
  width: 72px; height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cpo-badge svg { width: 100%; height: 100%; }
.cpo-check {
  opacity: 0;
  transition: opacity 0.3s ease 0.85s;
}
.cpo-overlay.visible .cpo-check { opacity: 1; }
.cpo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: #f6f1e9;
  margin: 0 0 2px;
}
.cpo-sub {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(246,241,233,0.45);
  margin: 0 0 8px;
}
.cpo-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.cpo-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,169,110,0.18);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  transition: background 0.2s, border-color 0.2s;
}
.cpo-card:hover { background: rgba(201,169,110,0.1); border-color: rgba(201,169,110,0.4); }
.cpo-card-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(201,169,110,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a96e;
  flex-shrink: 0;
}
.cpo-card-icon svg { width: 18px; height: 18px; }
.cpo-card-body { flex: 1; min-width: 0; }
.cpo-card-name {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f6f1e9;
  margin-bottom: 2px;
}
.cpo-card-hint {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(246,241,233,0.42);
}
.cpo-arr { width: 16px; height: 16px; flex-shrink: 0; color: rgba(201,169,110,0.5); }
.cpo-home-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: rgba(246,241,233,0.38);
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s;
  margin-top: 4px;
}
.cpo-home-btn:hover { color: rgba(246,241,233,0.72); }
.cpo-home-btn svg { width: 14px; height: 14px; }
.cpo-card-restart { border-color: rgba(255,255,255,0.1); }
.cpo-card-restart .cpo-card-icon { background: rgba(255,255,255,0.06); color: rgba(246,241,233,0.55); }
.cpo-card-restart:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.2); }
.cpo-card-restart .cpo-card-name { color: rgba(246,241,233,0.72); }

/* ═══════════════════════════════════════════════════
   PROFILE POPIN
═══════════════════════════════════════════════════ */
.profile-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(10,9,8,0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity .3s;
}
.profile-overlay.profile-in { opacity: 1; }

.profile-card {
  position: relative;
  width: 100%; max-width: 420px; max-height: 90vh;
  background: var(--dark-2);
  border: 1px solid rgba(201,169,110,0.14);
  border-radius: 20px;
  overflow-y: auto;
  padding: 32px 28px 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  transform: translateY(12px); transition: transform .3s;
  scrollbar-width: thin; scrollbar-color: rgba(201,169,110,0.15) transparent;
}
.profile-overlay.profile-in .profile-card { transform: translateY(0); }

.profile-x {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
  color: rgba(246,241,233,0.6);
}
.profile-x:hover { background: rgba(255,255,255,0.12); color: var(--cream); }

/* Loading */
.profile-loading { display: flex; align-items: center; justify-content: center; height: 180px; }
.profile-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2.5px solid rgba(201,169,110,0.15);
  border-top-color: rgba(201,169,110,0.7);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Header */
.profile-header {
  display: flex; align-items: center; gap: 18px; margin-bottom: 24px;
}
.profile-avatar-lg {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(201,169,110,0.22), rgba(201,169,110,0.06));
  border: 2px solid rgba(201,169,110,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 26px; color: var(--gold-l); letter-spacing: 0.04em;
}
.profile-hdr-info { min-width: 0; flex: 1; }
.profile-display-name {
  font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500;
  color: var(--cream); line-height: 1.1; letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-hdr-sub {
  font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 300;
  color: rgba(246,241,233,0.45); margin-top: 2px; letter-spacing: 0.06em;
}
.profile-hdr-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.profile-lvl-badge {
  padding: 3px 10px; border-radius: 100px;
  border: 1px solid rgba(201,169,110,0.35); color: rgba(201,169,110,0.9);
  font-family: 'Jost', sans-serif; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(201,169,110,0.08);
}
.profile-studio-badge {
  padding: 3px 10px; border-radius: 100px;
  border: 1px solid rgba(246,241,233,0.15); color: rgba(246,241,233,0.55);
  font-family: 'Jost', sans-serif; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255,255,255,0.04);
}

/* Stats */
.profile-stats {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 14px 0; margin-bottom: 24px;
}
.profile-stat {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.profile-stat-sep {
  width: 1px; height: 30px; background: rgba(255,255,255,0.1); flex-shrink: 0;
}
.profile-stat-val {
  font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500;
  color: var(--cream); letter-spacing: 0.01em; line-height: 1;
}
.profile-stat-lbl {
  font-family: 'Jost', sans-serif; font-size: 9px; font-weight: 300;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(246,241,233,0.4);
}

/* Form */
.pf-form { display: flex; flex-direction: column; gap: 0; }
.pf-section-lbl {
  font-family: 'Jost', sans-serif; font-size: 9px; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(201,169,110,0.7); margin: 20px 0 10px;
}
.pf-form > .pf-section-lbl:first-child { margin-top: 0; }
.pf-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.pf-label {
  font-family: 'Jost', sans-serif; font-size: 10px; font-weight: 300;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(246,241,233,0.45);
}
.pf-input {
  height: 44px; padding: 0 14px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: var(--cream); font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 300;
  transition: border-color .2s, background .2s;
  width: 100%; box-sizing: border-box;
}
.pf-input:focus { outline: none; border-color: rgba(201,169,110,0.45); background: rgba(255,255,255,0.07); }
.pf-input::placeholder { color: rgba(246,241,233,0.25); }

/* Level */
.pf-level-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 4px; }
.pf-level-btn {
  height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(246,241,233,0.55); cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 10px; font-weight: 300; letter-spacing: 0.06em;
  transition: border-color .2s, background .2s, color .2s;
  white-space: nowrap; padding: 0 6px;
}
.pf-level-btn:hover { border-color: rgba(201,169,110,0.35); color: rgba(246,241,233,0.85); }
.pf-level-btn.active {
  background: rgba(201,169,110,0.1); border-color: rgba(201,169,110,0.55);
  color: var(--gold-l);
}

/* Password toggle */
.pf-pwd-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 12px 14px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: rgba(246,241,233,0.55); font-family: 'Jost', sans-serif;
  font-size: 12px; font-weight: 300; letter-spacing: 0.06em;
  transition: background .2s, border-color .2s, color .2s;
  margin: 18px 0 0;
}
.pf-pwd-toggle:hover { color: rgba(246,241,233,0.85); border-color: rgba(255,255,255,0.15); }
.pf-pwd-toggle.open { border-color: rgba(201,169,110,0.35); color: rgba(246,241,233,0.85); }
.pf-chev { margin-left: auto; transition: transform .25s; flex-shrink: 0; }
.pf-pwd-toggle.open .pf-chev { transform: rotate(180deg); }

.pf-pwd-wrap {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, opacity .3s; opacity: 0;
}
.pf-pwd-wrap.open { max-height: 160px; opacity: 1; padding-top: 10px; }

/* Error */
.pf-error {
  font-family: 'Jost', sans-serif; font-size: 12px; color: rgba(220,80,80,0.9);
  min-height: 18px; text-align: center; margin: 10px 0 2px;
  letter-spacing: 0.04em;
}

/* Save */
.pf-save-btn {
  width: 100%; height: 50px; border-radius: 100px; cursor: pointer;
  background: rgba(201,169,110,0.9); border: none; color: #0d0d0d;
  font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: background .2s, transform .15s, opacity .2s;
  margin-top: 18px; position: relative; overflow: hidden;
}
.pf-save-btn:hover:not(:disabled) { background: var(--gold); }
.pf-save-btn:active:not(:disabled) { transform: scale(0.97); }
.pf-save-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.pf-save-btn.success { background: rgba(60,180,80,0.85); }

/* Logout */
.pf-logout-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; border: none; background: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 300;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(246,241,233,0.3); margin-top: 12px;
  transition: color .2s;
}
.pf-logout-btn:hover { color: rgba(220,80,80,0.7); }

/* Nav avatar — clickable feedback */
.nav-avatar:hover { border-color: rgba(201,169,110,0.6); background: rgba(201,169,110,0.14); }
.nav-username:hover { color: var(--cream); }

/* Light mode */
body.light-mode .profile-card {
  background: #f5f0ea; border-color: rgba(103,15,0,0.12);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
body.light-mode .profile-x { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.1); color: rgba(36,35,34,0.6); }
body.light-mode .profile-x:hover { background: rgba(0,0,0,0.1); color: #242322; }
body.light-mode .profile-avatar-lg { background: rgba(103,15,0,0.08); border-color: rgba(103,15,0,0.28); }
body.light-mode .profile-display-name { color: #242322; }
body.light-mode .profile-hdr-sub { color: rgba(36,35,34,0.45); }
body.light-mode .profile-lvl-badge { border-color: rgba(103,15,0,0.3); color: #670F00; background: rgba(103,15,0,0.07); }
body.light-mode .profile-studio-badge { border-color: rgba(36,35,34,0.18); color: rgba(36,35,34,0.55); background: transparent; }
body.light-mode .profile-stats { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.07); }
body.light-mode .profile-stat-val { color: #242322; }
body.light-mode .profile-stat-sep { background: rgba(0,0,0,0.12); }
body.light-mode .pf-section-lbl { color: rgba(103,15,0,0.7); }
body.light-mode .pf-label { color: rgba(36,35,34,0.5); }
body.light-mode .pf-input { background: #fff; border-color: rgba(36,35,34,0.16); color: #242322; }
body.light-mode .pf-input:focus { border-color: rgba(103,15,0,0.4); background: #fff; }
body.light-mode .pf-input::placeholder { color: rgba(36,35,34,0.3); }
body.light-mode .pf-level-btn { background: rgba(0,0,0,0.04); border-color: rgba(36,35,34,0.14); color: rgba(36,35,34,0.65); }
body.light-mode .pf-level-btn:hover { border-color: rgba(103,15,0,0.3); color: #242322; }
body.light-mode .pf-level-btn.active { background: rgba(103,15,0,0.08); border-color: rgba(103,15,0,0.45); color: #670F00; }
body.light-mode .pf-pwd-toggle { background: rgba(0,0,0,0.04); border-color: rgba(36,35,34,0.12); color: rgba(36,35,34,0.55); }
body.light-mode .pf-pwd-toggle:hover, body.light-mode .pf-pwd-toggle.open { border-color: rgba(103,15,0,0.3); color: #242322; }
body.light-mode .pf-logout-btn { color: rgba(36,35,34,0.35); }
body.light-mode .pf-logout-btn:hover { color: rgba(200,50,50,0.75); }
body.light-mode .nav-avatar:hover { background: rgba(103,15,0,0.1); border-color: rgba(103,15,0,0.4); }

@media (max-width: 480px) {
  .profile-card { padding: 24px 18px 20px; border-radius: 16px; }
  .profile-avatar-lg { width: 58px; height: 58px; font-size: 21px; }
  .profile-display-name { font-size: 19px; }
  .pf-row-2 { grid-template-columns: 1fr; }
  .pf-level-row { grid-template-columns: repeat(2,1fr); }
  .profile-stat-val { font-size: 18px; }
}

/* ═══════════════════════════════════════
   RESUME HERO — "Reprendre là où vous en étiez"
═══════════════════════════════════════ */
.resume-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 0 24px 28px;
  height: 240px;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  cursor: pointer;
}
.resume-hero.rh-show { opacity: 1; transform: translateY(0); }

.rh-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(10px) brightness(0.45) saturate(0.6);
  transform: scale(1.08);
}
.rh-veil {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(3,2,1,0.88) 38%, rgba(3,2,1,0.45) 100%);
}
.rh-body {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 44px;
}
.rh-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 10px; font-weight: 300; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); opacity: 0.9;
  margin-bottom: 10px;
}
.rh-eyebrow svg {
  width: 14px; height: 14px;
  stroke: var(--gold); fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.rh-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400; font-style: italic;
  color: var(--cream); line-height: 1.15;
  margin-bottom: 10px;
}
.rh-meta {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 11px; font-weight: 300; letter-spacing: 0.1em;
  color: rgba(246,241,233,0.5);
  margin-bottom: 16px;
}
.rh-sep { opacity: 0.4; }
.rh-remain { color: rgba(201,169,110,0.72); }
.rh-bar {
  width: 260px; max-width: 55%;
  height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 22px;
}
.rh-bar-fill { height: 100%; border-radius: 2px; background: var(--gold); }
.rh-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px;
  border-radius: 100px;
  background: rgba(201,169,110,0.16);
  border: 1.5px solid rgba(201,169,110,0.45) !important;
  font-family: 'Jost', sans-serif;
  font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-l) !important;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  width: fit-content;
}
.rh-btn svg { width: 14px; height: 14px; fill: var(--gold); }
.rh-btn:hover {
  background: rgba(201,169,110,0.28) !important;
  border-color: rgba(201,169,110,0.75) !important;
}
.rh-btn:active { transform: scale(0.97); }
.rh-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.45); border: none !important;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.rh-close svg {
  width: 15px; height: 15px;
  stroke: rgba(246,241,233,0.55); fill: none; stroke-width: 1.5;
  stroke-linecap: round;
}
.rh-close:hover { background: rgba(0,0,0,0.68) !important; }

/* Light mode */
.light-mode .rh-veil {
  background: linear-gradient(100deg, rgba(248,246,243,0.92) 38%, rgba(248,246,243,0.55) 100%);
}
.light-mode .rh-title { color: rgba(36,35,34,0.92); }
.light-mode .rh-meta { color: rgba(36,35,34,0.55); }
.light-mode .rh-remain { color: rgba(103,15,0,0.75); }
.light-mode .rh-eyebrow { color: rgba(103,15,0,0.85); }
.light-mode .rh-eyebrow svg { stroke: rgba(103,15,0,0.85); }

/* Mobile */
@media (max-width: 768px) {
  .resume-hero { height: 210px; margin: 0 12px 20px; }
  .rh-body { padding: 0 20px; }
  .rh-title { font-size: 22px; }
  .rh-bar { width: 100%; max-width: 100%; }
  .rh-remain { display: none; }
}
@media (max-width: 480px) {
  .resume-hero { height: 200px; border-radius: 14px; }
  .rh-meta .rh-sep:last-of-type,
  .rh-meta span:last-child { display: none; }
}
