@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/montserrat.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-soft: #111113;
  --panel: #151517;
  --panel-2: #1c1c1f;
  --panel-3: #26262a;
  --hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f4f3ee;
  --text-2: #c9c6be;
  --muted: #8f8c85;
  --accent: #e9dfbf;
  --auth-side: #26262a;
  --btn-light-bg: #f4f3ee;
  --btn-light-text: #101012;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  --radius: 10px;
  --header: 68px;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f5f2;
    --bg-soft: #eeece7;
    --panel: #ffffff;
    --panel-2: #f1f0ec;
    --panel-3: #e5e3dd;
    --hover: rgba(0, 0, 0, 0.05);
    --line: rgba(0, 0, 0, 0.12);
    --line-strong: rgba(0, 0, 0, 0.22);
    --text: #141416;
    --text-2: #45433e;
    --muted: #6e6b65;
    --accent: #6d5c26;
    --auth-side: #e8e6e1;
    --btn-light-bg: #141416;
    --btn-light-text: #f6f5f2;
    --shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* ---------- header ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 clamp(16px, 3vw, 40px);
  z-index: 60;
  background: none;
  border: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.42rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.brand svg { width: 26px; height: 26px; }
.hdr nav { display: flex; gap: 4px; align-items: center; }
.hdr nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease;
}
.hdr nav a:hover, .hdr nav a.is-active { color: var(--text); background: var(--hover); }
.hdr-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--text-2);
  transition: background 0.18s ease, color 0.18s ease;
}
.hdr-ico:hover { background: var(--hover); color: var(--text); }
.hdr-ico svg { width: 21px; height: 21px; }
.hdr-sep { width: 1px; height: 24px; margin: 0 6px; background: var(--hover); }
.hdr-prem {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 233, 74, 0.16);
  color: #ffe94a;
  cursor: pointer;
  transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.hdr-prem svg { width: 19px; height: 19px; }
.hdr-prem:hover { background: #ffe94a; color: #1a1400; transform: translateY(-1px); }
.hdr-prem:active { transform: scale(0.94); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 940px);
  height: 90vh;
  overflow: hidden;
  isolation: isolate;
}
.hero .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease, visibility 0.75s;
}
.hero .slide.is-active { opacity: 1; visibility: visible; }
.slide-bg {
  position: absolute;
  inset: 0;
  background-image: var(--bgimg);
  background-size: cover;
  background-position: center 22%;
  transform: scale(1.03);
  animation: kb 18s ease-out both;
}
@keyframes kb { from { transform: scale(1.08); } to { transform: scale(1.03); } }
.hero .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.6);
}
.slide-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 900px;
  margin: 0;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.slide-title {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 15ch;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.slide-logo {
  max-height: clamp(84px, 12vw, 148px);
  width: auto;
  margin: 0 0 18px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.65));
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
  border: 0;
  background: var(--hover);
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.slide-desc {
  max-width: 54ch;
  color: var(--text-2);
  font-size: clamp(0.86rem, 1.05vw, 0.98rem);
  line-height: 1.62;
  margin: 0 0 26px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  border: 0;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.975); }
.btn-light { background: var(--btn-light-bg); color: var(--btn-light-text); }
.btn-light:hover { background: var(--text); }
.btn-ghost {
  background: rgba(24, 24, 28, 0.72);
  border-color: transparent;
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(46, 46, 52, 0.9); border-color: transparent; }
.btn svg { width: 16px; height: 16px; }

.hero-dots {
  position: absolute;
  left: clamp(20px, 4vw, 64px);
  bottom: 58px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-dots button {
  width: 26px;
  height: 3px;
  border: 0;
  padding: 0;
  border-radius: 3px;
  background: var(--hover);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}
.hero-dots button.is-active { background: var(--accent); width: 44px; }
.hero-nav {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  bottom: 48px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-nav button {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 0;
  background: rgba(20, 20, 24, 0.6);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero-nav button:hover { background: var(--hover); border-color: transparent; }
.hero-nav svg { width: 17px; height: 17px; }

/* ---------- shelves ---------- */
/* the shelf block overlaps the hero by 60px: it must not swallow clicks
   aimed at the hero arrows and dots sitting in that strip */
.shelves { position: relative; z-index: 5; padding: 6px 0 40px; margin-top: -40px; pointer-events: none; }
.shelves > * { pointer-events: auto; }
.section-head { pointer-events: none; }
.section-head {
  max-width: 1600px;
  margin: 64px auto 18px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head .count { font-size: 0.8rem; color: var(--muted); margin-left: 10px; font-weight: 400; }
.shelf { margin-bottom: 34px; }
.shelf-head {
  max-width: 1600px;
  margin: 0 auto 12px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.shelf-head h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.shelf-head h3 span { font-size: 0.76rem; color: var(--muted); font-weight: 400; }
.shelf-arrows { display: flex; gap: 6px; opacity: 0; transition: opacity 0.2s ease; }
.shelf:hover .shelf-arrows, .shelf:focus-within .shelf-arrows { opacity: 1; }
@media (hover: none) { .shelf-arrows { opacity: 1; } }
.shelf-arrows button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  background: var(--hover);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.shelf-arrows button:hover { background: var(--hover); }
.shelf-arrows button:disabled { opacity: 0.32; cursor: default; background: var(--hover); }
.shelf-arrows svg { width: 13px; height: 13px; }
.row-wrap { position: relative; }
.row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 4px clamp(20px, 4vw, 64px) 8px;
  scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 clamp(136px, 12vw, 178px);
  scroll-snap-align: start;
}
.card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-2);
  border: 0;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.28s ease; }
.card:hover .card-poster img { transform: scale(1.03); }
.card-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  padding: 14px 12px;
  text-align: left;
  background:
    var(--panel-2);
  color: var(--text);
}
.cf-logo { position: absolute; top: 11px; right: 11px; opacity: 0.75; }
.cf-logo svg { width: 22px; height: 22px; }
.cf-kind { font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.cf-title {
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cf-year { font-size: 0.66rem; color: var(--muted); }
.badge {
  position: absolute;
  top: 7px;
  left: 7px;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(8, 8, 10, 0.78);
  color: var(--text);
  backdrop-filter: blur(4px);
}
.badge.new { color: #16130c; background: var(--accent); }
.card-title {
  margin-top: 9px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}
.card-meta { margin-top: 3px; font-size: 0.72rem; color: var(--muted); display: flex; gap: 6px; }
.card-meta .vote { color: var(--accent); }
@media (hover: none) {
  .card:hover .card-poster img { transform: none; }
}

/* ---------- detail page ---------- */
.dp { position: relative; min-height: 74vh; isolation: isolate; }
.dp-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  background-attachment: fixed;
  z-index: -2;
  opacity: 0.85;
}
.dp::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 6, 8, 0.72);
}
.dp-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: calc(var(--header) + 46px) clamp(20px, 4vw, 64px) 46px;
}
.crumbs { font-size: 0.78rem; color: var(--muted); margin-bottom: 26px; display: flex; gap: 8px; }
.crumbs a:hover { color: var(--text); }
.dp-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  max-width: 18ch;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.6);
}
.dp-desc {
  max-width: 62ch;
  color: #cbc6bc;
  line-height: 1.68;
  font-size: 0.95rem;
  margin: 16px 0 24px;
}
.dp-main { display: flex; gap: 34px; align-items: flex-start; }
.dp-poster {
  width: clamp(140px, 15vw, 210px);
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
  border: 0;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
  flex: 0 0 auto;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 26px;
  margin-top: 6px;
}
.info-grid div span { display: block; font-size: 0.78rem; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: 4px; }
.info-grid div b { font-weight: 500; font-size: 0.88rem; color: var(--text); }

/* player */
.player-sec {
  max-width: 1600px;
  margin: 34px auto 0;
  padding: 0 clamp(20px, 4vw, 64px);
}
.player-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.tabs { display: inline-flex; padding: 3px; background: var(--hover); border-radius: 8px; border: 0; }
.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.tabs button.is-active { background: var(--btn-light-bg); color: var(--btn-light-text); }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  border: 0;
  background: var(--hover);
  color: var(--muted);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  text-transform: capitalize;
}
.chip.is-active { border-color: transparent; color: var(--text); background: rgba(233, 223, 191, 0.12); }
.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 0;
}
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-frame video,
.np-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-frame::before,
.np-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--np-bg, none) center / cover no-repeat;
  filter: blur(5px) brightness(0.48) saturate(0.9);
  transform: scale(1.06);
}
.player-frame iframe, .player-frame video, .np-frame iframe, .np-frame video { z-index: 1; }

/* full-page playback (detail page): the stage takes the whole viewport */
body.is-cinema { overflow: hidden; }
.player-frame.is-cinema {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: auto;
  height: auto;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}
.player-frame.is-cinema::before { display: none; }
.player-frame.is-cinema video { object-fit: cover; }

/* chrome over the video: back on the left, language and episode steps right */
.npc-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 76px 40px 18px;
  background: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.player-frame.is-cinema .npc-top { display: flex; }
.np-custom.is-awake .npc-top,
.np-custom.is-modal .npc-top { opacity: 1; visibility: visible; pointer-events: auto; }
.npc-gear svg { width: 20px; height: 20px; }
.npc-back,
.npc-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: rgba(12, 12, 14, 0.7);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.16s ease;
}
.npc-back:hover,
.npc-step:hover:not(:disabled) { background: var(--hover); }
.npc-step:disabled { opacity: 0.34; cursor: default; }
.npc-back svg,
.npc-step svg { width: 17px; height: 17px; }
.npc-meta { display: flex; align-items: center; gap: 10px; }
.npc-lang { font-size: 0.78rem; color: var(--text); white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85); }
.npc-steps { display: flex; gap: 8px; }
.npc-steps[hidden] { display: none; }
.np-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  grid-auto-flow: row;
  place-content: center;
  justify-items: center;
  gap: 10px;
  background: rgba(5, 5, 7, 0.58);
  backdrop-filter: blur(2px);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: center;
}
.is-busy .np-loading { display: grid; }
.np-spin {
  width: 24px;
  height: 24px;
  border: 0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: npc-spin 0.8s linear infinite;
}
.chip-src { display: inline-flex; align-items: center; gap: 7px; }
.chip-src b { font-weight: 600; }
.chip-src span { font-size: 0.68rem; opacity: 0.55; text-transform: none; letter-spacing: 0; }
.np-empty { margin: 0; color: var(--muted); font-size: 0.9rem; }
.player-start {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  gap: 16px;
  overflow: hidden;
  background: #050507;
  color: var(--text);
  text-align: center;
}
.player-start[hidden] { display: none; }
.player-start-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.9);
  transform: scale(1.02);
}
.player-start::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.player-start-btn {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.62);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.16s ease, background 0.16s ease;
}
.player-start-btn:hover { transform: scale(1.05); background: rgba(8, 8, 10, 0.82); }
.player-start-btn svg { width: 28px; height: 28px; margin-left: 3px; }
.player-start-txt { position: relative; z-index: 1; margin: 0; font-size: 0.82rem; color: #d8d3c8; letter-spacing: 0.02em; }
.player-start.is-loading .player-start-btn { pointer-events: none; }
.player-start.is-loading .player-start-btn svg { display: none; }
.player-start.is-loading .player-start-btn::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: npc-spin 0.8s linear infinite;
}
.player-start-btn:disabled { cursor: wait; }
@keyframes npc-spin { to { transform: rotate(360deg); } }
.player-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}
.episodes { margin-top: 20px; }
.episodes h3 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.ep-list { display: flex; gap: 8px; flex-wrap: wrap; }
.ep {
  min-width: 54px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  background: var(--hover);
  color: var(--text-2);
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ep:hover { background: var(--hover); }
.ep.is-active { background: var(--btn-light-bg); color: var(--btn-light-text); border-color: transparent; font-weight: 600; }
.ep small { font-size: 0.7rem; opacity: 0.7; }

/* rich episodes */
.ep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.episodes .ep-head h3 { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.ep-head h3 span { font-size: 0.74rem; letter-spacing: 0.01em; text-transform: none; color: var(--muted); }
.ep-spoiler-btn {
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  border: 0;
  background: var(--hover);
  color: var(--text-2);
  font-size: 0.76rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.ep-spoiler-btn:hover { background: var(--hover); }
.ep-spoiler-btn[aria-pressed="true"] { border-color: transparent; color: var(--accent); }
.ep-list.is-rich { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
.ep-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 8px;
  text-align: left;
  border-radius: 10px;
  border: 0;
  background: var(--hover);
  color: inherit;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.ep-card:hover { background: var(--hover); }
.ep-card.is-active { border-color: transparent; background: rgba(233, 223, 191, 0.08); }
.ep-thumb {
  position: relative;
  flex: 0 0 clamp(128px, 15vw, 196px);
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  overflow: hidden;
  background: var(--panel-2);
}
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.2s ease; }
.ep-thumb-empty { display: grid; place-items: center; }
.ep-num {
  position: absolute;
  top: 6px;
  left: 7px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(8, 8, 10, 0.8);
  color: var(--text);
}
.ep-spoil {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  place-items: center;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(8, 8, 10, 0.45);
}
.ep-body { display: flex; flex-direction: column; gap: 4px; padding: 3px 2px; min-width: 0; }
.ep-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ep-line strong { font-size: 0.88rem; font-weight: 600; }
.ep-line em { font-style: normal; font-size: 0.82rem; color: var(--text-2); }
.ep-meta { font-size: 0.72rem; color: var(--muted); }
.ep-desc {
  margin: 2px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #a9a49c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: filter 0.2s ease;
}
.ep-card.is-active .ep-desc { -webkit-line-clamp: 6; color: var(--text-2); }
.is-spoiled .ep-desc { filter: blur(6px); user-select: none; }
.is-spoiled .ep-thumb img { filter: blur(14px) brightness(0.65); }
.is-spoiled .ep-spoil { display: grid; }

/* nplayer embed */
.np { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.np-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  padding: 0 clamp(14px, 3vw, 28px);
  border-bottom: 0;
  background: rgba(8, 8, 10, 0.92);
}
.np-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; }
.np-brand svg { width: 22px; height: 22px; }
.np-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 0.82rem; }
.np-title b { color: var(--text); font-weight: 600; }
.np-fs {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  border: 0;
  background: var(--hover);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.18s ease;
}
.np-fs:hover { background: var(--hover); }
.np-fs svg { width: 14px; height: 14px; }
.np-stage { flex: 1; display: grid; place-items: center; padding: clamp(10px, 2vw, 22px); }
.np-frame {
  position: relative;
  width: 100%;
  max-width: 1400px;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}
.np-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* custom Nplayer controls (vidzy) */
.npc-shield { position: absolute; inset: 0; z-index: 3; cursor: pointer; }
.npc-big {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 4;
  width: 104px;
  height: 104px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.npc-big:hover { transform: scale(1.07); }
.npc-big svg { width: 46px; height: 46px; margin-left: 2px; }
.np-custom.is-playing .npc-big { opacity: 0; visibility: hidden; }
.npc {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: block;
  padding-top: 46px;
  background: rgba(4, 4, 6, 0.86);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}
.np-custom.is-awake .npc,
.np-custom.is-modal .npc { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.npc-title { margin: 0; padding: 0 20px 8px; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.npc-title:empty { display: none; }
.npc-status { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 20px 4px; }
.npc-progress { padding: 0 16px 10px; }
.npc-btns { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 16px 14px; }
.npc-left { grid-column: 1; display: flex; align-items: center; gap: 10px; justify-self: start; }
.npc-right { grid-column: 3; display: flex; align-items: center; gap: 10px; justify-self: end; }
.npc-btn.npc-subs { grid-column: 2; display: inline-flex; align-items: center; gap: 9px; width: auto; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.npc-btn.npc-subs:hover { background: var(--hover); }
.npc-btn.npc-subs svg { width: 21px; height: 21px; }
.npc-btn.npc-gear { position: absolute; top: 16px; right: 16px; z-index: 6; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(10, 10, 13, 0.72); color: var(--text); backdrop-filter: blur(6px); }
.npc-btn.npc-gear:hover { background: var(--hover); border-color: transparent; }
.npc-btn.npc-gear svg { width: 25px; height: 25px; }
.npc-spacer { flex: 1 1 auto; }
.npc-times { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.npc-time.npc-sep { opacity: 0.5; }
.np-custom:not(.is-awake) .npc-shield { cursor: none; }
.npc-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}
.npc-btn:hover { background: var(--hover); }
.npc-btn svg { width: 22px; height: 22px; }
.npc-btn b { font-size: 0.7rem; font-weight: 700; letter-spacing: -0.02em; }
.npc-btn.npc-main { width: 44px; height: 44px; }
.npc-btn.npc-main svg { width: 30px; height: 30px; }
.npc-btn:active { transform: scale(0.93); }
.npc-times { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; height: auto; padding: 0; border: 0; background: none; }
.npc-time { flex: 0 0 auto; font-size: 0.8rem; color: var(--text); font-variant-numeric: tabular-nums; }
/* progress: 22px hit area, buffered layer under the yellow played part */
.npc-track {
  position: relative;
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
}
.npc-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--hover);
}
.npc-buf,
.npc-fill,
.npc-photo {
  position: absolute;
  left: 0;
  height: 4px;
  border-radius: 999px;
  pointer-events: none;
}
.npc-buf { width: var(--np-buf, 0%); background: var(--hover); }
.npc-fill { width: var(--np-fill, 0%); background: #f4f1e9; }
/* the imported picture is the played part of the bar: it reveals from left to
   right with playback, so the whole image is visible at the end */
.npc-photo {
  right: 0;
  width: 100%;
  background-image: var(--np-bar, none);
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  clip-path: inset(0 calc(100% - var(--np-fill, 0%)) 0 0 round 999px);
}
.has-np-bar .npc-photo { height: 40px; border-radius: 7px; clip-path: inset(0 calc(100% - var(--np-fill, 0%)) 0 0 round 7px); }
.has-np-bar .npc-track { height: 40px; }
.has-np-bar .npc-track::before { height: 40px; border-radius: 7px; background: var(--hover); }
.has-np-bar .npc-buf,
.has-np-bar .npc-fill { height: 40px; border-radius: 7px; }
.has-np-bar .npc-seek { height: 40px; }
.has-np-bar .npc-seek::-webkit-slider-runnable-track { height: 40px; }
.has-np-bar .npc-seek::-webkit-slider-thumb { margin-top: 13px; width: 14px; height: 14px; }
.has-np-bar .npc-seek::-moz-range-track { height: 40px; }
.npc-seek {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 20px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.npc-seek::-webkit-slider-runnable-track { height: 20px; background: transparent; }
.npc-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 0;
  border-radius: 50%;
  background: var(--npc-accent, #f5c518);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--npc-accent, #f5c518) 22%, transparent);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.npc-track:hover .npc-seek::-webkit-slider-thumb,
.npc-seek:focus-visible::-webkit-slider-thumb {
  transform: scale(1.18);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--npc-accent, #f5c518) 26%, transparent);
}
.npc-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #f4f1e9; cursor: pointer; }
.npc-seek::-moz-range-track { height: 20px; border-radius: 999px; background: transparent; }
.npc-vol {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 999px;
  transition: background 0.18s ease;
}
.npc-vol:hover,
.npc-vol:focus-within { background: var(--hover); }
.npc-vol .npc-btn { width: 34px; height: 34px; }
/* the volume slider expands out of the speaker on hover */
.npc-volume {
  width: 0;
  height: 6px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--npc-accent, #f5c518) 26%, transparent);
  cursor: pointer;
  opacity: 0;
  transition: width 0.24s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.18s ease, margin 0.24s ease;
}
.npc-vol:hover .npc-volume,
.npc-vol:focus-within .npc-volume { width: 86px; opacity: 1; margin: 0 10px 0 2px; }
.npc-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--npc-accent, #f5c518);
  cursor: pointer;
}
.npc-volume::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--npc-accent, #f5c518); cursor: pointer; }
.npc .i-pause, .npc .i-mute { display: none; }
.np-custom.is-playing .npc .i-play { display: none; }
.np-custom.is-playing .npc .i-pause { display: block; }
.np-custom.is-muted .npc .i-vol { display: none; }
.np-custom.is-muted .npc .i-mute { display: block; }
.player-frame .npc, .player-frame .npc-big, .player-frame .npc-shield { display: none; }
.player-frame.np-custom .npc { display: block; }
.player-frame.np-custom .npc-big { display: grid; }
.player-frame.np-custom .npc-shield { display: block; }

/* settings sheet (gear, top right) */
.npc-modal {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 4, 6, 0.6);
  backdrop-filter: blur(3px);
}
.npc-modal[hidden] { display: none; }
.npc-modal-card {
  width: min(390px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 15px 17px 18px;
  border-radius: 14px;
  border: 0;
  background: rgba(15, 15, 18, 0.97);
  color: #f2efe6;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
}
.npc-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.npc-modal-head h2 { margin: 0; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; }
.npc-modal-x {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #cfcabf;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.npc-modal-x:hover { background: var(--hover); color: var(--text); }
.npc-modal-x svg { width: 16px; height: 16px; }
.npc-modal-sec + .npc-modal-sec { margin-top: 15px; }
.npc-modal-sec h3 { margin: 0 0 8px; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.npc-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.npc-opt {
  height: 34px;
  padding: 0 15px;
  border-radius: 8px;
  border: 0;
  background: var(--hover);
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.npc-opt:hover { background: var(--hover); }
.npc-opt.is-active { background: #f3f0e6; border-color: transparent; color: #101014; font-weight: 600; }
@media (max-width: 700px) {
  .npc { padding-top: 56px; }
  .npc-title { padding: 0 12px 6px; font-size: 0.88rem; }
  .npc-status { padding: 0 12px 3px; }
  .npc-btns { gap: 8px; padding: 0 10px 10px; }
  .npc-progress { padding: 0 10px 8px; }
  .npc-back,
  .npc-step { padding: 0 10px; }
  .npc-back span,
  .npc-step span { display: none; }
  .npc-lang { font-size: 0.72rem; }
  .npc-btn { width: 36px; height: 36px; }
  .npc-btn svg { width: 21px; height: 21px; }
  .npc-btn.npc-main { width: 40px; height: 40px; }
  .npc-btn.npc-main svg { width: 27px; height: 27px; }
  .npc-btn.npc-subs { padding: 0 8px; }
  .npc-btn.npc-subs span { display: none; }
  .npc-btn.npc-gear { width: 38px; height: 38px; top: 10px; right: 10px; }
  .npc-big { width: 84px; height: 84px; }
  .npc-big svg { width: 26px; height: 26px; }
  .npc-volume { display: none; }
  .npc-modal { padding: 12px; }
  .npc-modal-card { border-radius: 12px; }
  .player-start-btn { width: 72px; height: 72px; }
}
.np-frame:fullscreen { width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto; border: 0; border-radius: 0; }
.np-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 12px clamp(14px, 3vw, 28px) 18px;
  border-top: 0;
}
.np-controls .chip { display: inline-flex; align-items: center; height: 32px; }
.np-field { display: flex; align-items: center; gap: 7px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.np-select {
  height: 34px;
  border-radius: 8px;
  border: 0;
  background: var(--panel-2);
  color: var(--text);
  padding: 0 9px;
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
}
.np-fiche { margin-left: auto; font-size: 0.78rem; color: var(--muted); }
.np-fiche:hover { color: var(--text); }
.np-download { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 8px; background: rgba(52, 97, 245, 0.18); color: #c5d5ff; font-size: 0.76rem; font-weight: 700; text-decoration: none; }
.np-download:hover { background: rgba(52, 97, 245, 0.3); color: #fff; }
.np-download svg { width: 14px; height: 14px; }
.np-download em { font-style: normal; font-size: 0.64rem; color: #8fa7d8; }
.np-open {
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 0;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.np-open:hover { color: var(--text); border-color: transparent; }
@media (max-width: 700px) {
  .np-title { display: none; }
  .np-controls { gap: 10px; }
  .np-fiche { margin-left: 0; }
}

/* search / catalogue */
.page { max-width: 1600px; margin: 0 auto; padding: calc(var(--header) + 40px) clamp(20px, 4vw, 64px) 70px; }
.page h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.page .sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 34px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 22px 14px;
}
.grid .card { flex: none; }
.empty { padding: 60px 0; color: var(--muted); }

/* catalogue */
.cat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 16px; }
.cat-search { position: relative; flex: 1 1 300px; }
.cat-search input {
  width: 100%;
  height: 52px;
  border-radius: 10px;
  border: 0;
  background: var(--hover);
  color: var(--text);
  padding: 0 18px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cat-search input::placeholder { color: var(--muted); }
.cat-search input:focus { border-color: transparent; background: var(--hover); }
.cat-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-filters .chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; font-size: 0.82rem; }
.cat-filters .chip span { font-size: 0.7rem; opacity: 0.6; }
.cat-status { color: var(--muted); font-size: 0.82rem; margin: 0 0 20px; }
.card[hidden] { display: none; }

.foot {
  border-top: 0;
  padding: 34px clamp(20px, 4vw, 64px) 60px;
  margin-top: 40px;
  color: #6f6b65;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot a:hover { color: var(--text); }

.skel { background: var(--panel-2); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 8px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 900px) {
  .hdr { gap: 12px; padding: 0 14px; }
  .hdr nav { display: none; }
  .hdr-prem { display: none; }
  .hdr-sep { display: none; }
  .hero { height: 92vh; min-height: 640px; }
  .hero .slide::after {
    background:
      rgba(6, 6, 8, 0.6);
  }
  .slide-inner { justify-content: flex-end; padding-bottom: 96px; }
  .slide-desc { -webkit-line-clamp: 3; }
  .dp-main { flex-direction: column; gap: 20px; }
  .dp-poster { width: 120px; }
  .hero-nav { display: none; }
  .shelves { margin-top: -40px; }
  .dp-bg { background-attachment: scroll; }
  .cat-search { flex-basis: 100%; }
}

/* ---------- accounts ---------- */
.acct { position: relative; display: flex; flex: 0 0 auto; }
.acct-btn,
a.acct {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 54px;
  padding: 0 16px 0 7px;
  border-radius: 10px;
  border: 0;
  background: var(--hover);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.acct-btn:hover,
a.acct:hover { background: var(--hover); border-color: transparent; }
.acct-ico {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 0;
  background: var(--hover);
  color: var(--accent);
  flex: 0 0 auto;
}
.acct-ico svg { width: 15px; height: 15px; }
.acct-lbl { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 326px;
  padding: 10px;
  border-radius: 16px;
  border: 0;
  background: rgba(14, 14, 17, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  z-index: 70;
}
.acct-menu[hidden] { display: none; }
.acct-menu { scrollbar-width: none; -ms-overflow-style: none; }
.acct-menu::-webkit-scrollbar { width: 0; height: 0; }
.acct-head { display: flex; align-items: center; gap: 11px; padding: 8px 8px 12px; margin-bottom: 6px; border-bottom: 0; border-radius: 10px 10px 0 0; text-decoration: none; color: inherit; }
.acct-head:hover strong { color: #ffe94a; }
.acct-av { position: relative; width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; padding: 0; border-radius: 11px; border: 0; background: var(--panel-3); color: var(--accent); font-size: 1rem; font-weight: 800; text-transform: uppercase; }
.acct-av.is-big { width: 58px; height: 58px; font-size: 1.25rem; border-radius: 14px; }
.acct-btn .acct-lbl { font-size: 0.95rem; font-weight: 700; }
.acct-id em.is-prem { color: #ffe94a; }
.acct-id { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.acct-id strong { font-size: 0.9rem; font-weight: 700; }
.acct-id em { font-style: normal; font-size: 0.74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-links { display: flex; flex-direction: column; gap: 2px; }
.acct-links a { display: flex; align-items: center; gap: 11px; padding: 11px 10px; border-radius: 9px; font-size: 0.9rem; color: var(--text-2); }
.acct-links a:hover { background: var(--hover); color: var(--text); }
.acct-links svg { width: 18px; height: 18px; opacity: 0.85; flex: 0 0 auto; }
.acct-sep { height: 1px; margin: 9px 6px; background: var(--line); }
.acct-prem {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 10px;
  border: 0;
  border-radius: 9px;
  background: rgba(247, 225, 75, 0.1);
  color: #ffe94a;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.acct-prem:hover { background: rgba(247, 225, 75, 0.16); }
.acct-prem svg { width: 19px; height: 19px; flex: 0 0 auto; }
.acct-prem em { margin-left: auto; font-style: normal; font-size: 0.72rem; font-weight: 600; color: rgba(247, 225, 75, 0.72); text-shadow: none; }
.acct-out button svg { display: none; }
.acct-out { margin-top: 6px; padding-top: 8px; border-top: 0; }
.acct-out button {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #ff8f8f;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.acct-out button:hover { background: rgba(255, 90, 90, 0.12); }

/* premium modal */
.prem { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 20px; }
.prem[hidden] { display: none; }
.prem-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 6, 0.84); backdrop-filter: blur(7px); }
.prem-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: min(940px, 100%);
  max-height: calc(100vh - 40px);
  border-radius: 20px;
  border: 0;
  background: var(--panel);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72);
  overflow: hidden;
}
.prem-x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: rgba(12, 12, 14, 0.7);
  color: var(--text);
  cursor: pointer;
}
.prem-x svg { width: 15px; height: 15px; }
.prem-x:hover { background: var(--hover); }
.prem-visual { position: relative; background: var(--panel-2); min-height: 100%; }
.prem-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prem-visual::after { content: ''; position: absolute; inset: 0; background: rgba(10, 10, 12, 0.5); }
.prem-tag { position: absolute; left: 22px; bottom: 22px; z-index: 2; display: inline-flex; align-items: center; gap: 9px; color: #ffe94a; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.prem-tag svg { width: 20px; height: 20px; }
.prem-body { padding: 26px clamp(18px, 3vw, 32px) 26px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.prem-body::-webkit-scrollbar { width: 0; height: 0; }
.prem-price { margin: 8px 0 2px; font-size: 2.7rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.prem-note { margin: 0 0 18px; font-size: 0.8rem; color: var(--muted); }
.prem-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 12px; border: 0; background: var(--panel-2); }
.prem-plans button { min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); cursor: pointer; }
.prem-plans button span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #9c978e; }
.prem-plans button strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.prem-plans button em { font-style: normal; font-size: 0.64rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: rgba(247, 225, 75, 0.18); color: #ffe94a; }
.prem-plans button.is-on { background: rgba(247, 225, 75, 0.16); box-shadow: inset 0 0 0 1px rgba(247, 225, 75, 0.5); }
.prem-plans button.is-on span, .prem-plans button.is-on strong { color: #ffe94a; }
.prem-perks { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.prem-perks li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.84rem; color: var(--text); }
.prem-perks li[hidden] { display: none; }
.prem-perks svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; color: #ffe94a; }
.prem-more { margin: 10px 0 0; padding: 0; border: 0; background: none; color: #ffe94a; font-size: 0.8rem; font-weight: 700; cursor: pointer; text-align: left; }
.prem-cta { width: 100%; height: 50px; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 10px; background: #ffe94a; color: #1a1400; font-size: 0.95rem; font-weight: 800; cursor: pointer; }
.prem-cta:hover { filter: brightness(1.06); }
.prem-cta svg { width: 18px; height: 18px; }
.prem-alt { width: 100%; height: 44px; margin-top: 9px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 10px; border: 0; background: var(--panel-2); color: var(--text); font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.prem-alt:hover { background: var(--panel-3); }
.prem-alt svg { width: 15px; height: 15px; opacity: 0.8; }
.prem-alt-note { margin: 10px 0 0; font-size: 0.78rem; color: var(--muted); text-align: center; }
.prem-alt-note a { color: #ffe94a; text-decoration: underline; text-underline-offset: 3px; }

/* notifications (cloche) */
button.hdr-ico { padding: 0; border: 0; background: none; cursor: pointer; }
.notif { display: block; padding: 0; }
.notif .prem-backdrop { background: transparent; backdrop-filter: none; }
.notif-card { position: fixed; top: 76px; right: 16px; width: min(400px, calc(100vw - 24px)); max-height: calc(100vh - 96px); display: flex; flex-direction: column; border-radius: 18px; border: 0; background: var(--panel); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72); overflow: hidden; }
.notif-head { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 0; }
.notif-head h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.notif-read { margin-left: auto; padding: 0; border: 0; background: none; color: var(--muted); font-size: 0.76rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.notif-read:hover { color: var(--text); }
.notif-read[disabled] { opacity: 0.5; text-decoration: none; cursor: default; }
.notif-x { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--hover); color: var(--text); cursor: pointer; }
.notif-x:hover { background: var(--hover); }
.notif-x svg { width: 14px; height: 14px; }
.notif-list { overflow-y: auto; overscroll-behavior: contain; padding: 6px 6px 10px; }
.notif-item { position: relative; display: flex; gap: 12px; padding: 13px 12px 13px 18px; border-radius: 12px; color: inherit; text-decoration: none; }
.notif-item:hover { background: var(--hover); }
.notif-item.is-new::before { content: ''; position: absolute; left: 5px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.notif-ico { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; border: 0; background: var(--hover); color: var(--accent); }
.notif-ico svg { width: 17px; height: 17px; }
.notif-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.notif-txt strong { font-size: 0.9rem; }
.notif-txt > span { font-size: 0.82rem; line-height: 1.45; color: var(--muted); }
.notif-txt em { font-style: normal; font-size: 0.74rem; color: #7c776e; margin-top: 2px; }
.notif-empty { margin: 16px 12px; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }

/* mon espace */
.space-wrap { max-width: 1080px; margin: 0 auto; padding: calc(var(--header) + 40px) clamp(16px, 4vw, 48px) 70px; }
.space-card { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); border-radius: 18px; border: 0; background: var(--panel); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.space-visual { position: relative; background: var(--panel-2); min-height: 100%; }
.space-visual > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.space-visual .prem-tag { left: auto; right: 22px; top: 20px; bottom: auto; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75); }
.space-body { padding: 28px clamp(18px, 3vw, 32px); }
.space-id { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; }
.space-id div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.space-id strong { font-size: 1.05rem; }
.space-id em { font-style: normal; font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }
.space-plan { margin: 0; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.space-plan.is-on { color: #ffe94a; }
.space-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.space-actions .prem-cta { width: auto; flex: 1 1 220px; margin-top: 0; padding: 0 22px; }
.space-actions .prem-alt { width: auto; flex: 0 1 180px; margin-top: 0; text-decoration: none; }
.space-h { margin: 24px 0 4px; font-size: 0.95rem; font-weight: 700; }
.space-note { margin: 0 0 12px; font-size: 0.8rem; color: var(--muted); }

@media (max-width: 760px) {
  .space-card { grid-template-columns: 1fr; }
  .space-visual { height: auto; min-height: 0; aspect-ratio: 4 / 5; max-height: 440px; }
}

@media (max-width: 560px) {
  .acct-menu { position: fixed; top: calc(var(--header) + 6px); left: 10px; right: 10px; width: auto; max-height: calc(100vh - 90px); overflow-y: auto; }
}

@media (max-width: 760px) {
  .prem { padding: 12px; }
  .prem-card { grid-template-columns: 1fr; max-height: calc(100vh - 24px); overflow-y: auto; scrollbar-width: none; }
  .prem-card::-webkit-scrollbar { width: 0; height: 0; }
  .prem-visual { height: 190px; min-height: 0; max-height: none; }
  .prem-visual::after { background: rgba(10, 10, 12, 0.62); }
  .prem-body { padding: 18px 18px 20px; overflow: visible; }
  .prem-price { font-size: 2.2rem; }
}

/* auth page */
.auth-wrap { min-height: 100vh; display: grid; padding: 0; }
.auth-card {
  width: min(420px, 100%);
  padding: 34px clamp(20px, 4vw, 34px) 30px;
  border-radius: 18px;
  border: 0;
  background: var(--panel);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  text-align: center;
}
.auth-brand { font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent); }
.auth-card h1 { margin: 12px 0 22px; font-size: 1.5rem; letter-spacing: 0.16em; font-weight: 700; }
.auth-card.is-split { width: 100%; min-height: 100vh; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 0; overflow: hidden; text-align: left; background: var(--bg); }
.auth-side { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: calc(var(--header) + 40px) clamp(28px, 4vw, 64px) 56px; background: #131316; color: #f5f4ef; }
.auth-logo { position: relative; z-index: 1; width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45)); }
.auth-word { position: relative; z-index: 1; font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1; color: #f5f4ef; }
.auth-tag { position: relative; z-index: 1; margin: 0; font-size: 1rem; color: rgba(245, 244, 239, 0.62); }
.auth-perks { position: relative; z-index: 1; list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.auth-perks li { display: flex; align-items: center; gap: 12px; }
.auth-perks svg { width: 22px; height: 22px; flex: 0 0 auto; padding: 12px; box-sizing: content-box; border-radius: 14px; border: 0; background: var(--hover); color: var(--text); }
.auth-perks strong { display: block; font-size: 1.02rem; }
.auth-perks em { font-style: normal; font-size: 0.84rem; color: var(--muted); }
.auth-pane { padding: calc(var(--header) + 40px) clamp(26px, 6vw, 96px) 56px; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.auth-pane h1 { margin: 0 0 10px; font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -0.02em; font-weight: 800; }
.auth-sub { margin: 0 0 26px; font-size: 0.94rem; color: var(--muted); }
@media (max-width: 760px) {
  .auth-card.is-split { grid-template-columns: 1fr; min-height: 100vh; }
  .auth-side { padding: 28px 24px 26px; gap: 10px; }
  .auth-logo { width: 84px; height: 84px; }
  .auth-perks { margin-top: 10px; }
  .auth-pane { padding: 28px 22px 32px; }
}
.auth-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; }
.auth-form label span { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.auth-form input {
  height: 52px;
  border-radius: 10px;
  border: 0;
  background: var(--hover);
  color: var(--text);
  padding: 0 14px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.auth-form input:focus { border-color: transparent; background: var(--hover); }
.auth-submit { height: 52px; margin-top: 4px; font-size: 1rem; border-radius: 10px; border: 0; background: var(--accent); color: var(--btn-light-text); font-weight: 700; cursor: pointer; }
.auth-submit:hover { filter: brightness(1.05); }
.auth-alt { margin: 20px 0 0; font-size: 0.82rem; color: var(--muted); }
.auth-alt a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.auth-err {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 0;
  background: rgba(255, 90, 90, 0.1);
  color: #ffb4b4;
  font-size: 0.82rem;
  text-align: left;
}

/* account pages */
.acc-wrap { max-width: 1180px; margin: 0 auto; padding: calc(var(--header) + 40px) clamp(16px, 4vw, 56px) 70px; }
.acc-shell { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.acc-side {
  position: sticky;
  top: calc(var(--header) + 20px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  border: 0;
  background: var(--hover);
}
.acc-side-title { margin: 6px 10px 10px; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.acc-nav { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 9px; font-size: 0.86rem; color: var(--text-2); }
.acc-nav svg { width: 17px; height: 17px; opacity: 0.8; flex: 0 0 auto; }
.acc-nav:hover { background: var(--hover); color: var(--text); }
.acc-nav.is-active { background: rgba(233, 223, 191, 0.12); color: var(--accent); }
.acc-nav.is-soft { margin-top: 8px; padding-top: 14px; border-top: 0; border-radius: 0 0 9px 9px; }
.acc-panel { min-width: 0; padding: clamp(20px, 3vw, 30px); border-radius: 16px; border: 0; background: var(--panel); }
.acc-panel h2 { margin: 0 0 20px; font-size: 1.25rem; letter-spacing: -0.01em; }
.acc-panel h3 { margin: 22px 0 12px; font-size: 0.95rem; font-weight: 600; }
.acc-list { margin: 0 0 22px; display: flex; flex-direction: column; gap: 0; }
.acc-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 0; }
.acc-list dt { font-size: 0.8rem; color: var(--muted); }
.acc-list dd { margin: 0; font-size: 0.9rem; text-align: right; overflow-wrap: anywhere; }
.acc-mask { letter-spacing: 0.2em; font-size: 1rem !important; }
.acc-form { display: flex; flex-direction: column; gap: 12px; padding: 18px; margin-bottom: 16px; border-radius: 12px; border: 0; background: var(--hover); }
.acc-form h3 { margin: 0; }
.acc-form label { display: flex; flex-direction: column; gap: 6px; }
.acc-form label > span { font-size: 0.72rem; color: var(--muted); }
.acc-form input[type="email"],
.acc-form input[type="password"],
.acc-form input[type="text"] {
  height: 42px;
  border-radius: 9px;
  border: 0;
  background: var(--hover);
  color: var(--text);
  padding: 0 12px;
  font-size: 0.9rem;
  outline: none;
}
.acc-form input:focus { border-color: transparent; }
.acc-inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.acc-inline label { flex: 1 1 220px; }
.acc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9px; border: 0; background: var(--accent); color: var(--btn-light-text); font-size: 0.84rem; font-weight: 600; cursor: pointer; align-self: flex-start; }
.acc-btn:hover { filter: brightness(1.05); }
.acc-btn.is-ghost { background: transparent; border: 0; color: var(--text-2); }
.acc-btn.is-danger { background: #e5484d; color: var(--text); }
.acc-form.is-danger { border-color: transparent; background: rgba(229, 72, 77, 0.06); }
.acc-flash { margin: 0 0 18px; padding: 11px 14px; border-radius: 10px; font-size: 0.84rem; border: 0; }
.acc-flash.is-ok { border-color: transparent; background: rgba(74, 222, 128, 0.09); color: #b8f5cd; }
.acc-flash.is-err { border-color: transparent; background: rgba(255, 90, 90, 0.09); color: #ffb4b4; }
.acc-note { margin: 0 0 14px; font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.acc-note.is-ok { color: #b8f5cd; }
.acc-switch { flex-direction: row !important; align-items: center; gap: 10px !important; font-size: 0.86rem; color: var(--text); }
.acc-switch input { width: 18px; height: 18px; accent-color: var(--accent); }
.acc-genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.acc-genre { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px; border: 0; background: var(--hover); cursor: pointer; font-size: 0.82rem; }
.acc-genre input { width: 16px; height: 16px; accent-color: var(--accent); }
.acc-genre i { margin-left: auto; display: inline-flex; opacity: 0.25; }
.acc-genre i svg { width: 15px; height: 15px; }
.acc-genre:has(input:checked) { border-color: transparent; background: rgba(233, 223, 191, 0.08); }
.acc-genre:has(input:checked) i { opacity: 1; color: var(--accent); }
.acc-h3 { margin-top: 28px !important; }
.acc-news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-news-list a { display: flex; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 9px; }
.acc-news-list a:hover { background: var(--hover); }
.acc-news-list i { display: inline-flex; color: var(--accent); opacity: 0.85; }
.acc-news-list i svg { width: 17px; height: 17px; }
.acc-news-list span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-news-list strong { font-size: 0.87rem; font-weight: 600; }
.acc-news-list em { font-style: normal; font-size: 0.74rem; color: var(--muted); }
.acc-empty { color: var(--muted); font-size: 0.85rem; padding: 10px 0; }
.acc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.acc-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 13px; border: 0; background: var(--hover); transition: background 0.16s ease, border-color 0.16s ease; }
.acc-card:hover { background: var(--hover); border-color: transparent; }
.acc-card span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.acc-card strong { font-size: 0.95rem; font-weight: 600; overflow-wrap: anywhere; }
.acc-card em { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.acc-h2 { margin: 34px 0 18px; font-size: 1.1rem; }

/* reader preferences */
.pref-block { margin-bottom: 24px; }
.pref-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.pref-swatch { width: 38px; height: 38px; padding: 0; border-radius: 10px; border: 0; background: var(--c); cursor: pointer; }
.pref-swatch.is-active { border-color: transparent; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18); }
.pref-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pref-bar-preview { width: 190px; height: 54px; display: block; border-radius: 9px; border: 0; background: var(--bg) center / cover no-repeat; }
.pref-file { cursor: pointer; }

@media (max-width: 900px) {
  .acct-lbl { display: none; }
  .acct-btn .acct-lbl { display: inline; max-width: 84px; font-size: 0.78rem; }
  .acct-btn, a.acct { padding: 0 6px; }
  .acct-btn { padding: 0 10px; }
  .acc-shell { grid-template-columns: 1fr; }
  .acc-side { position: static; flex-direction: row; overflow-x: auto; gap: 6px; }
  .acc-side-title { display: none; }
  .acc-nav { white-space: nowrap; }
  .acc-nav.is-soft { margin-top: 0; padding-top: 10px; border-top: 0; }
  .acc-inline { flex-direction: column; align-items: stretch; }
}

/* save button feedback */
.btn.is-added { background: rgba(233, 223, 191, 0.16); border-color: transparent; color: var(--accent); }
.btn.is-added:hover { background: rgba(233, 223, 191, 0.24); }

/* ma liste */
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.list-head h1 { margin: 0 0 6px; }
.list-head .sub { margin: 0; }
.list-cta { display: inline-flex; align-items: center; gap: 8px; }
.list-cta svg { width: 16px; height: 16px; }
.list-cell { position: relative; min-width: 0; }
.list-cell[hidden] { display: none; }
.list-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: rgba(8, 8, 10, 0.78);
  color: var(--text);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.list-cell:hover .list-remove,
.list-remove:focus-visible { opacity: 1; }
.list-remove:hover { background: rgba(229, 72, 77, 0.9); border-color: transparent; }
.list-remove svg { width: 13px; height: 13px; }
.list-empty { display: flex; flex-direction: column; gap: 6px; padding: 56px 0; }
.list-empty strong { font-size: 1rem; color: var(--text); font-weight: 700; }
.list-empty span { font-size: 0.88rem; color: var(--muted); }

/* toast */
.np-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  transform: translate(-50%, 12px);
  padding: 11px 18px;
  border-radius: 999px;
  border: 0;
  background: rgba(14, 14, 17, 0.96);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.np-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* bold labels in the account sheet and settings */
.acct-btn, a.acct { font-weight: 600; }
.acct-links a { font-weight: 600; }
.acct-id strong { font-weight: 800; }
.acct-out button { font-weight: 600; }
.acc-side-title { font-weight: 700; }
.acc-nav { font-weight: 600; }
.acc-nav.is-active { font-weight: 700; }
.acc-panel h2 { font-weight: 700; }
.acc-panel h3 { font-weight: 700; }
.acc-list dd { font-weight: 500; }

@media (max-width: 900px) {
  .list-remove { opacity: 1; }
}

/* premium : prix au mois du pack, économie, code VIP */
.prem-plans button em { display: block; font-style: normal; font-size: 0.68rem; font-weight: 600; opacity: 0.72; }
.prem-plans button.is-on em { opacity: 0.9; }
.prem-save { margin: 10px 0 0; font-size: 0.78rem; font-weight: 600; color: #a9d6b0; }
.prem-status { margin: -10px 0 16px; font-size: 0.78rem; font-weight: 600; color: #a9d6b0; }
.prem-code { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.prem-code label { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.prem-code label span { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.prem-code input { height: 40px; padding: 0 12px; border-radius: 9px; border: 0; background: var(--panel); color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.84rem; letter-spacing: 0.04em; text-transform: uppercase; outline: none; }
.prem-code input:focus { border-color: transparent; }
.prem-code button { height: 40px; padding: 0 16px; border-radius: 9px; border: 0; background: var(--panel-2); color: var(--text); font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.prem-code button:hover { background: var(--panel-3); }
.prem-code-msg { margin: 8px 0 0; min-height: 1em; font-size: 0.78rem; color: var(--muted); }
.prem-code-msg.is-ok { color: #a9d6b0; }
.prem-crypto { width: 100%; min-height: 52px; margin-top: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 10px; border: 0; background: var(--panel-2); color: var(--text); font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.prem-crypto:hover { background: var(--panel-3); border-color: transparent; }
.prem-crypto[disabled] { opacity: 0.6; cursor: progress; }
.prem-crypto em { font-style: normal; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }

/* page de retour paiement */
.thanks-list { list-style: none; margin: 0 0 26px; padding: 16px 18px; max-width: 520px; display: flex; flex-direction: column; gap: 8px; border-radius: 12px; border: 0; background: var(--panel-2); font-size: 0.86rem; color: var(--text); }
.thanks-list li::before { content: "✓"; margin-right: 8px; color: #a9d6b0; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.prem-code-msg.is-err { color: #ff9b9b; }

/* ---------- panel admin ---------- */
.adm { display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.adm-side { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 14px; border-right: 0; background: var(--panel); }
.adm-brand { display: flex; flex-direction: column; gap: 2px; padding: 2px 10px 0; }
.adm-brand span { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.adm-brand em { font-style: normal; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.adm-side nav { display: flex; flex-direction: column; gap: 3px; }
.adm-nav { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 11px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font-size: 0.88rem; font-weight: 600; text-align: left; cursor: pointer; }
.adm-nav svg { width: 17px; height: 17px; flex: 0 0 auto; opacity: 0.85; }
.adm-nav:hover { background: var(--hover); color: var(--text); }
.adm-nav.is-active { background: rgba(233, 223, 191, 0.12); color: var(--accent); font-weight: 700; }
.adm-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 0; }
.adm-nav.is-out { color: #ff9b9b; }
.adm-main { min-width: 0; padding: 26px clamp(16px, 3vw, 40px) 60px; }
.adm-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.adm-top h1 { margin: 6px 0 4px; font-size: clamp(1.5rem, 2.6vw, 1.95rem); letter-spacing: -0.02em; }
.adm-sub { margin: 0; font-size: 0.85rem; color: var(--muted); }
.adm-top-right { display: flex; align-items: center; }
.adm-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(233, 223, 191, 0.1); color: var(--accent); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.adm-chip svg { width: 14px; height: 14px; }
.adm-flash { margin: 0 0 16px; padding: 11px 14px; border-radius: 10px; border: 0; font-size: 0.84rem; }
.adm-flash.is-ok { background: rgba(76, 217, 123, 0.1); border-color: transparent; color: #a9d6b0; }
.adm-flash.is-err { background: rgba(255, 90, 90, 0.1); border-color: transparent; color: #ff9b9b; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.adm-stats div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 0; background: var(--hover); }
.adm-stats span { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.adm-stats strong { font-size: 1.35rem; letter-spacing: -0.02em; }
.adm-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.adm-tools input[type="search"] { flex: 1 1 210px; min-width: 180px; height: 38px; padding: 0 13px; border-radius: 9px; border: 0; background: var(--hover); color: var(--text); font-size: 0.86rem; outline: none; }
.adm-tools label, .adm-gen label { display: flex; flex-direction: column; gap: 5px; }
.adm-tools label span, .adm-gen label span { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.adm-tools select, .adm-gen select { height: 38px; padding: 0 10px; border-radius: 9px; border: 0; background: var(--panel-2); color: var(--text); font-size: 0.84rem; }
.adm-btn { height: 38px; padding: 0 16px; border-radius: 9px; border: 0; background: var(--panel-2); color: var(--text); font-size: 0.84rem; font-weight: 700; cursor: pointer; }
.adm-btn:hover { background: var(--panel-3); }
.adm-btn.is-gold { border-color: transparent; background: rgba(233, 223, 191, 0.16); color: #f6efd8; }
.adm-btn.is-gold:hover { background: rgba(233, 223, 191, 0.24); }
.adm-gen { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px; margin-bottom: 18px; border-radius: 13px; border: 0; background: var(--panel); }
.adm-gen-head h2 { margin: 0 0 3px; font-size: 1rem; }
.adm-gen-head p { margin: 0; font-size: 0.78rem; color: var(--muted); }
.adm-gen form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.adm-scroll { max-height: min(64vh, 680px); overflow: auto; border: 0; border-radius: 13px; background: var(--panel); }
.adm-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 0.85rem; }
.adm-table th { position: sticky; top: 0; z-index: 1; padding: 12px 14px; text-align: left; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--panel-2); border-bottom: 0; }
.adm-table td { padding: 12px 14px; border-bottom: 0; color: var(--text-2); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table strong { color: var(--text); font-weight: 600; }
.adm-email { color: var(--muted); overflow-wrap: anywhere; }
.adm-email em { font-style: normal; font-size: 0.72rem; color: var(--muted); }
.adm-id { font-family: ui-monospace, Menlo, monospace; font-size: 0.74rem; color: var(--muted); }
.adm-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; border: 0; background: var(--hover); color: var(--text-2); font-size: 0.7rem; font-weight: 700; white-space: nowrap; }
.adm-pill.is-prem { border-color: transparent; background: rgba(233, 223, 191, 0.12); color: var(--accent); }
.adm-pill.is-free { border-color: transparent; background: rgba(76, 217, 123, 0.1); color: #a9d6b0; }
.adm-pill.is-used { color: var(--muted); }
.adm-code { display: inline-flex; align-items: center; gap: 8px; }
.adm-code code { font-family: ui-monospace, Menlo, monospace; font-size: 0.78rem; color: var(--text); }
.adm-copy { height: 24px; padding: 0 9px; border-radius: 6px; border: 0; background: transparent; color: var(--text-2); font-size: 0.66rem; font-weight: 700; cursor: pointer; }
.adm-copy:hover { background: var(--hover); color: var(--text); }
.adm-del { padding: 4px 6px; border: 0; border-radius: 6px; background: transparent; color: #ff9b9b; font-size: 0.76rem; cursor: pointer; }
.adm-del:hover { background: rgba(255, 90, 90, 0.12); }
.adm-empty { padding: 26px 14px; text-align: center; color: var(--muted); }

@media (max-width: 860px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; flex-direction: row; align-items: center; gap: 10px; overflow-x: auto; padding: 12px 14px; border-right: 0; border-bottom: 0; }
  .adm-brand { flex-direction: row; align-items: baseline; gap: 8px; padding: 0; }
  .adm-brand em { display: none; }
  .adm-side nav { flex-direction: row; }
  .adm-side-foot { flex-direction: row; margin: 0 0 0 auto; padding: 0; border: 0; }
  .adm-nav { width: auto; white-space: nowrap; padding: 8px 10px; }
  .adm-main { padding: 18px 14px 50px; }
}

@media (max-width: 480px) {
  .acct-btn .acct-lbl { display: none; }
}

/* ---------- profil personnalisé (premium) ---------- */
.pcard { position: relative; width: min(400px, 100%); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; border: 0; background: var(--pcard-grad); isolation: isolate; }
.pcard-bg { position: absolute; inset: 0; z-index: -1; background-position: center; background-size: cover; }
.pcard-bg:empty { display: none; }
.pcard::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(6, 6, 8, 0.4); pointer-events: none; }
.pcard-stain[hidden] { display: none; }
.pcard-photo { position: absolute; inset: 22px 22px 104px; z-index: 1; display: grid; place-items: center; }
.pcard-frame-box { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.pcard-photo.has-frame .pcard-frame-box { width: min(100%, 372px); height: auto; aspect-ratio: 1; max-height: 100%; }
.pcard-face { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: rgba(10, 10, 13, 0.34); }
.pcard-photo.has-frame .pcard-face { inset: 14% 15%; border-radius: 10px; }
/* Fenêtre transparente mesurée dans chaque PNG : la photo se cale dessus. */
.pcard-photo.has-frame[data-frame="astral"] .pcard-face { inset: 16.1% 16.7% 26.7% 15%; }
.pcard-photo.has-frame[data-frame="halloween"] .pcard-face { inset: 13.9% 15%; }
.pcard-photo.has-frame[data-frame="titan"] .pcard-face { inset: 27.2% 27.2% 23.3% 25%; }
.pcard-photo.has-frame[data-frame="boom"] .pcard-face { inset: 18.3% 15% 15%; }
.pcard-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2; pointer-events: none; filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.55)); }
.pcard-initial { font-family: var(--pcard-font); font-size: clamp(3.5rem, 9vw, 6rem); font-weight: 800; color: var(--text-2); }
.pcard-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 3px; }
.pcard-name { font-family: var(--pcard-font); font-size: clamp(1.5rem, 3.4vw, 2.15rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.01em; color: var(--pcard-name); text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6); overflow-wrap: anywhere; }
.pcard-name.is-grad { background: var(--pcard-grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.acct-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
/* cadre de profil sur l'avatar du header */
.acct-av.has-frame { overflow: visible; border-color: transparent; background: none; }
.acct-av .acct-av-face { position: absolute; inset: 14% 15%; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: var(--panel-3); color: var(--accent); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.acct-av.has-frame[data-frame="astral"] .acct-av-face { inset: 16.1% 16.7% 26.7% 15%; }
.acct-av.has-frame[data-frame="halloween"] .acct-av-face { inset: 13.9% 15%; }
.acct-av.has-frame[data-frame="titan"] .acct-av-face { inset: 27.2% 27.2% 23.3% 25%; }
.acct-av.has-frame[data-frame="boom"] .acct-av-face { inset: 18.3% 15% 15%; }
.acct-av .acct-av-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
.acct-lbl, .acct-id strong { font-family: var(--acct-font, inherit); }
.acct-lbl.is-grad, .acct-id strong.is-grad { background: var(--pcard-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pcard-foot em { font-style: normal; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--text-2); }

.space-visual .pcard { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.space-edit { display: inline-block; margin-top: 10px; font-size: 0.8rem; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.prof-layout { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
.prof-preview .acc-note { margin: 10px 0 0; text-align: center; }
.prof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prof-grid label { display: flex; flex-direction: column; gap: 6px; }
.prof-grid label > span { font-size: 0.72rem; color: var(--muted); }
.prof-grid select { height: 40px; border-radius: 9px; border: 0; background: var(--panel-2); color: var(--text); padding: 0 10px; font-size: 0.88rem; }
.prof-grid input[type="color"] { width: 100%; height: 40px; padding: 3px; border-radius: 9px; border: 0; background: var(--panel-2); cursor: pointer; }
.prof-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.prof-lock { padding: 20px; border-radius: 13px; border: 0; background: rgba(233, 223, 191, 0.06); }
.prof-lock-tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: rgba(233, 223, 191, 0.14); color: var(--accent); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.prof-lock-tag svg { width: 14px; height: 14px; }
.prof-lock h3 { margin: 12px 0 8px; }

/* choix d'image de profil */
.pick { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 18px; }
.pick[hidden] { display: none; }
.pick-back { position: absolute; inset: 0; background: rgba(4, 4, 6, 0.78); backdrop-filter: blur(6px); }
.pick-card { position: relative; width: min(920px, 100%); max-height: 86vh; display: flex; flex-direction: column; border-radius: 16px; border: 0; background: var(--panel); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6); overflow: hidden; }
.pick-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 0; }
.pick-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: var(--hover); }
.pick-tabs button { height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.pick-tabs button.is-on { background: rgba(233, 223, 191, 0.16); color: var(--accent); }
.pick-search { display: flex; flex: 1 1 240px; gap: 8px; }
.pick-search input { flex: 1; height: 38px; padding: 0 12px; border-radius: 9px; border: 0; background: var(--hover); color: var(--text); font-size: 0.88rem; outline: none; }
.pick-search input:focus { border-color: transparent; }
.pick-search button { height: 38px; padding: 0 14px; border-radius: 9px; border: 0; background: var(--accent); color: var(--btn-light-text); font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.pick-x { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.pick-x svg { width: 14px; height: 14px; }
.pick-note { margin: 0; padding: 12px 18px 0; font-size: 0.8rem; color: var(--muted); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; padding: 14px 18px; overflow: auto; }
.pick-item { display: flex; flex-direction: column; gap: 5px; padding: 6px; border-radius: 10px; border: 0; background: var(--hover); color: var(--text-2); cursor: pointer; text-align: left; }
.pick-item:hover { border-color: transparent; background: var(--hover); }
.pick-item img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 7px; display: block; }
.pick-grid.is-banner { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pick-grid.is-banner .pick-item img { aspect-ratio: 16 / 9; }
.pick-item span { font-size: 0.68rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pick-msg { margin: 0; padding: 0 18px 16px; font-size: 0.78rem; color: var(--muted); min-height: 1em; }

/* couleurs données depuis le panel admin */
.adm-pill.is-admin { margin-left: 8px; border-color: transparent; background: rgba(255, 80, 80, 0.14); color: #ffb3b3; }
.adm-rowform { display: flex; align-items: center; gap: 6px; }
.adm-rowform select { height: 30px; padding: 0 8px; border-radius: 7px; border: 0; background: var(--panel-2); color: var(--text); font-size: 0.76rem; }
.adm-role { height: 28px; padding: 0 10px; border-radius: 7px; border: 0; background: rgba(233, 223, 191, 0.1); color: var(--accent); font-size: 0.72rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.adm-role.is-on { border-color: transparent; background: rgba(255, 90, 90, 0.12); color: #ffb3b3; }
.adm-btn.is-mini { height: 30px; padding: 0 10px; font-size: 0.74rem; }
.adm-granted { display: block; margin-top: 5px; font-style: normal; font-size: 0.68rem; color: var(--muted); }
.adm-faces { display: flex; align-items: center; gap: 6px; }
.adm-face { width: 30px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; border: 0; background: var(--panel-3); font-size: 0.8rem; font-weight: 800; color: var(--text); }
.adm-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-banner { width: 44px; height: 26px; display: block; border-radius: 5px; border: 0; background: var(--panel-3); background-size: cover; background-position: center; }

@media (max-width: 760px) {
  .prof-layout { grid-template-columns: 1fr; }
  .prof-grid { grid-template-columns: 1fr; }
}

/* ---------- encart VIP gratuit (Work.ink) ---------- */
.vip-embed {
  margin: 6px 0 40px;
  border-top: 0;
  border-bottom: 0;
  background: rgba(255, 219, 51, 0.06);
  overflow: hidden;
}
.vip-embed-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 22px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
}
.vip-embed-copy { min-width: 0; }
.vip-embed-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffdc4a;
}
.vip-embed-tag svg { width: 14px; height: 14px; }
.vip-embed-copy h3 {
  margin: 8px 0 6px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}
.vip-embed-copy h3 em { font-style: normal; color: #ffe94a; text-shadow: 0 0 24px rgba(255, 219, 51, 0.45); }
.vip-embed-copy p { margin: 0; max-width: 62ch; font-size: 0.88rem; line-height: 1.55; color: var(--text-2); }
.vip-embed-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  background: #ffe94a;
  color: #1a1400;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  transition: filter 0.18s ease, transform 0.18s ease;
}
.vip-embed-inner > .vip-embed-btn { margin-left: auto; }
.vip-embed-btn svg { width: 17px; height: 17px; }
.vip-embed-btn svg:last-child { width: 13px; height: 13px; }
.vip-embed-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

.vip-page { max-width: 640px; margin: calc(var(--header) + 46px) auto 80px; padding: 0 clamp(18px, 4vw, 32px); }
.vip-done {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 18px;
  border: 0;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.vip-done-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 233, 74, 0.14);
  color: #ffe94a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.vip-done-tag svg { width: 14px; height: 14px; }
.vip-done h1 { margin: 16px 0 10px; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; }
.vip-done-note { margin: 0 0 18px; font-size: 0.92rem; line-height: 1.6; color: var(--text-2); }
.vip-done-note.is-small { margin: 12px 0 22px; font-size: 0.78rem; color: var(--muted); }
.vip-done-label { margin: 0 0 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.vip-code {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 11px;
  border: 0;
  background: rgba(255, 233, 74, 0.06);
}
.vip-code code { flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: 1.02rem; color: #ffe94a; overflow-wrap: anywhere; }
.vip-code-copy { height: 34px; padding: 0 14px; border-radius: 8px; border: 0; background: #ffe94a; color: #1a1400; font-size: 0.78rem; font-weight: 800; cursor: pointer; }
.vip-code-copy:hover { filter: brightness(1.06); }
.vip-done-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vip-done-alt { font-size: 0.82rem; font-weight: 600; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .vip-embed-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .vip-embed-inner > .vip-embed-btn { margin-left: 0; width: 100%; justify-content: center; }
  .vip-page { margin-top: calc(var(--header) + 28px); }
}

/* ---------- wishboard ---------- */
.wishboard { min-height: 100vh; }
.wish-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header) + 46px) clamp(20px, 4vw, 64px) 76px;
}
.wish-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--wish-bg, none);
  background-color: var(--panel);
  background-size: cover;
  background-position: center 28%;
}
.wish-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(6, 6, 8, 0.35);
}
.wish-inner { position: relative; z-index: 1; width: min(780px, 100%); }
.wish-title { margin: 0 0 18px; font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.03; font-weight: 800; letter-spacing: -0.03em; }
.wish-sub { max-width: 620px; margin: 0 auto 30px; font-size: clamp(0.92rem, 1.3vw, 1.05rem); line-height: 1.65; color: var(--text-2); }
.wish-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 4px;
  background: #f7f6f2;
  color: #101014;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.wish-cta svg { width: 18px; height: 18px; }
.wish-cta:hover { filter: brightness(1.04); transform: translateY(-1px); }
.wish-list { max-width: 1600px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px) 70px; }
.wish-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 18px; }
.wish-tabs { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); overflow-x: auto; scrollbar-width: none; }
.wish-tabs::-webkit-scrollbar { display: none; }
.wish-tabs button { position: relative; padding: 0 0 10px; border: 0; background: none; color: var(--muted); font-size: 0.9rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color 0.18s ease; }
.wish-tabs button:hover { color: var(--text-2); }
.wish-tabs button.is-active { color: var(--text); }
.wish-tabs button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: #ff3d86; }
.wish-count { padding-bottom: 10px; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.wish-bar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; }
.wish-quick { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--panel-2); color: var(--text-2); font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.wish-quick:hover { background: var(--panel-3); color: var(--text); }
.wish-quick.is-admin { color: #8fb1ff; }
.wish-quick svg { width: 14px; height: 14px; }
.wish-search { position: relative; margin: 0 0 22px; }
.wish-search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.wish-search input { width: 100%; height: 58px; padding: 0 18px 0 52px; border: 0; border-radius: 5px; background: var(--panel-2); color: var(--text); font-size: 0.95rem; outline: none; transition: border-color 0.2s ease, background 0.2s ease; }
.wish-search input::placeholder { color: var(--muted); }
.wish-search input:focus { border-color: transparent; background: var(--panel-3); }
.wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.wish-card { position: relative; aspect-ratio: 2 / 3; overflow: hidden; isolation: isolate; border: 0; border-radius: 10px; background: var(--panel-2); }
.wish-card[hidden] { display: none; }
.wish-shot { position: absolute; inset: 0; z-index: -2; background-image: var(--wish-poster, none); background-size: cover; background-position: center top; filter: saturate(0.95) brightness(0.9); transition: transform 0.5s ease, filter 0.4s ease; }
.wish-card:hover .wish-shot { transform: scale(1.06); filter: saturate(1.05) brightness(0.95); }
.wish-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(6, 6, 8, 0.5); }
.wish-badge { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; height: 27px; padding: 0 11px; border-radius: 4px; background: #159a4f; color: var(--text); font-size: 0.76rem; font-weight: 800; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.wish-badge.is-accepted { background: #c8952f; color: #171204; }
.wish-badge.is-refused { background: #a72a2a; }
.wish-badge.is-programmed { background: #5b7cff; color: #0b1020; }
.wish-badge:not(.is-added):not(.is-accepted):not(.is-refused):not(.is-programmed) { background: #3a3a43; color: var(--text); }
.wish-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 46px 14px 14px; background: transparent; }
.wish-card-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wish-card-txt strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 1rem; font-weight: 700; line-height: 1.28; color: var(--text); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.wish-card-txt em { overflow: hidden; font-style: normal; font-size: 0.78rem; color: var(--text-2); white-space: nowrap; text-overflow: ellipsis; }
.wish-note { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 3px 0 0; font-size: 0.7rem; line-height: 1.35; color: var(--text-2); }
.wish-vote { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(10, 10, 12, 0.62); color: var(--text); font-size: 0.82rem; font-weight: 800; cursor: pointer; backdrop-filter: blur(4px); transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease; }
.wish-vote svg { width: 14px; height: 14px; }
.wish-vote:hover { border-color: transparent; color: var(--text); }
.wish-vote.is-on { border-color: transparent; background: #ff3d86; color: var(--text); }
.wish-vote[disabled] { opacity: 0.6; cursor: progress; }
.wish-empty { padding: 54px 0; color: var(--muted); font-size: 0.92rem; text-align: center; }
.wish-flash { margin: 0 0 18px; padding: 11px 14px; border: 0; border-radius: 8px; font-size: 0.86rem; }
.wish-flash.is-ok { border-color: transparent; background: rgba(76, 217, 123, 0.1); color: #a9d6b0; }
.wish-flash.is-err { border-color: transparent; background: rgba(255, 90, 90, 0.1); color: #ff9b9b; }

/* wishboard : formulaire de demande */
.wish-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 18px; }
.wish-modal[hidden] { display: none; }
.wish-modal-back { position: absolute; inset: 0; background: rgba(4, 4, 6, 0.82); backdrop-filter: blur(6px); }
.wish-modal-card { position: relative; width: min(520px, 100%); max-height: 90vh; overflow: auto; padding: 30px clamp(20px, 4vw, 32px) 28px; border: 0; border-radius: 14px; background: var(--panel); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65); }
.wish-modal-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; }
.wish-modal-x svg { width: 14px; height: 14px; }
.wish-modal-card h2 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -0.02em; }
.wish-modal-sub { margin: 0 0 22px; font-size: 0.84rem; line-height: 1.55; color: #9d988f; }
.wish-form { display: flex; flex-direction: column; gap: 14px; }
.wish-form label { display: flex; flex-direction: column; gap: 6px; }
.wish-form label > span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.wish-form label > span em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; opacity: 0.7; }
.wish-form input, .wish-form select, .wish-form textarea { width: 100%; padding: 0 13px; border: 0; border-radius: 9px; background: var(--panel-2); color: var(--text); font-family: inherit; font-size: 0.92rem; outline: none; }
.wish-form input, .wish-form select { height: 44px; }
.wish-form textarea { min-height: 84px; padding: 11px 13px; resize: vertical; }
.wish-form input:focus, .wish-form select:focus, .wish-form textarea:focus { border-color: transparent; }
.wish-form-note { margin: 0; font-size: 0.76rem; color: var(--muted); }
.wish-submit { height: 48px; margin-top: 2px; border: 0; border-radius: 9px; background: #ff3d86; color: var(--text); font-size: 0.92rem; font-weight: 800; cursor: pointer; }
.wish-submit:hover { filter: brightness(1.06); }
.wish-find-box { position: relative; }
.wish-find-box svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.wish-form .wish-find-box input { height: 46px; padding-left: 40px; }
.wish-find-note { min-height: 1.1em; margin: 0; font-size: 0.76rem; color: var(--muted); }
.wish-find-note.is-err { color: #ff9b9b; }
.wish-find-grid { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; padding: 2px; }
.wish-find-grid[hidden] { display: none; }
.wish-result { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: start; padding: 7px; border: 0; border-radius: 9px; background: var(--panel-2); color: var(--text); text-align: left; cursor: pointer; }
.wish-result:hover { border-color: transparent; background: var(--hover); }
.wish-result-img { width: 54px; height: 78px; border-radius: 6px; background-color: var(--panel-3); background-position: center; background-size: cover; }
.wish-result-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wish-result-name { overflow: hidden; font-size: 0.82rem; font-weight: 700; line-height: 1.25; color: var(--text); white-space: nowrap; text-overflow: ellipsis; }
.wish-result-meta { font-style: normal; font-size: 0.66rem; color: var(--muted); }
.wish-result-desc { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 0.68rem; line-height: 1.4; color: var(--text-2); }
.wish-picked { display: flex; align-items: flex-start; gap: 11px; padding: 9px; border: 0; border-radius: 9px; background: rgba(255, 61, 134, 0.07); }
.wish-picked[hidden] { display: none; }
.wish-picked-shot { flex: 0 0 auto; width: 60px; height: 86px; border-radius: 6px; background-color: var(--panel-2); background-position: center; background-size: cover; }
.wish-picked-txt { min-width: 0; }
.wish-picked-txt strong { display: block; font-size: 0.88rem; color: var(--text); }
.wish-picked-txt em { font-style: normal; font-size: 0.7rem; color: var(--text-2); }
.wish-picked-txt p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin: 4px 0 0; font-size: 0.7rem; line-height: 1.4; color: var(--text-2); }
.wish-picked button { margin-left: auto; height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-size: 0.72rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.wish-picked button:hover { background: var(--hover); color: var(--text); }

/* panel admin : souhaits */
.adm-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.adm-act { height: 26px; padding: 0 9px; border: 0; border-radius: 6px; background: var(--hover); color: var(--text-2); font-size: 0.7rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.adm-act:hover { background: var(--hover); color: var(--text); }
.adm-act.is-ok { border-color: transparent; color: #a9d6b0; }
.adm-act.is-ok:hover { background: rgba(76, 217, 123, 0.12); }
.adm-act.is-gold { border-color: transparent; color: var(--accent); }
.adm-act.is-gold:hover { background: rgba(233, 223, 191, 0.12); }
.adm-act.is-no { border-color: transparent; color: #ff9b9b; }
.adm-act.is-no:hover { background: rgba(255, 90, 90, 0.12); }
.adm-wish-note { display: block; max-width: 280px; margin-top: 3px; font-style: normal; font-size: 0.74rem; line-height: 1.4; color: var(--muted); }
.adm-vote-add { display: flex; align-items: center; gap: 4px; margin-top: 3px; }
.adm-vote-add input { width: 46px; height: 24px; border: 0; border-radius: 6px; background: var(--panel-2); color: var(--text); font: inherit; font-size: 0.74rem; text-align: center; }
.adm-vote-add button { height: 24px; padding: 0 7px; border: 0; border-radius: 6px; background: var(--hover); color: #a9d6b0; font-size: 0.76rem; font-weight: 800; cursor: pointer; }

@media (max-width: 720px) {
  .wish-hero { min-height: 520px; padding-top: calc(var(--header) + 36px); padding-bottom: 56px; }
  .wish-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .wish-sub br { display: none; }
  .wish-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
  .wish-card-body { padding: 34px 10px 10px; }
  .wish-card-txt strong { font-size: 0.88rem; }
      .wish-count { display: none; }
}

/* ------------------------------------------------------ cadres de profil */
.frame-block { margin-top: 26px; padding: 20px; border-radius: 14px; border: 0; background: var(--hover); }
.frame-head h3 { margin: 0 0 4px; font-size: 1rem; }
.frame-head .acc-note { margin: 0 0 16px; }
.frame-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.frame-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px; border-radius: 12px; border: 0; background: var(--hover); cursor: pointer; text-align: center; }
.frame-opt input { position: absolute; opacity: 0; pointer-events: none; }
.frame-opt strong { font-size: 0.82rem; }
.frame-opt em { font-style: normal; font-size: 0.68rem; color: var(--muted); }
.frame-opt.is-on { border-color: transparent; background: rgba(233, 223, 191, 0.08); }
.frame-opt.is-on em { color: var(--accent); }
.frame-opt.is-locked { cursor: not-allowed; opacity: 0.55; }
.frame-thumb { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.frame-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.frame-face { position: absolute; inset: 16%; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: rgba(10, 10, 13, 0.5); }
.frame-face img { position: static; inset: auto; width: 100%; height: 100%; object-fit: cover; }
.frame-thumb[data-frame="astral"] .frame-face { inset: 16.1% 16.7% 26.7% 15%; }
.frame-thumb[data-frame="halloween"] .frame-face { inset: 13.9% 15%; }
.frame-thumb[data-frame="titan"] .frame-face { inset: 27.2% 27.2% 23.3% 25%; }
.frame-thumb[data-frame="boom"] .frame-face { inset: 18.3% 15% 15%; }
.frame-thumb.is-none { border: 0; border-radius: 10px; color: var(--muted); font-size: 0.7rem; }
.frame-give { margin-top: 22px; padding: 20px; border-radius: 14px; border: 0; background: rgba(233, 223, 191, 0.05); }
.frame-give h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.frame-give .acc-note { margin: 0 0 14px; }
.frame-give-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 180px); gap: 12px; align-items: end; }
.frame-give-form label { display: flex; flex-direction: column; gap: 6px; }
.frame-give-form label > span { font-size: 0.72rem; color: var(--muted); }
.frame-give-form input, .frame-give-form select { height: 40px; border-radius: 9px; border: 0; background: var(--panel-2); color: var(--text); padding: 0 10px; }
.frame-give-acts { grid-column: 1 / -1; display: flex; gap: 10px; }
@media (max-width: 720px) { .frame-give-form { grid-template-columns: 1fr; } }


/* ---------- texte par-dessus les visuels (identique dans les deux thèmes) ---------- */
.slide-inner, .dp, .pcard, .wish-card, .prem-visual { color: #f5f4ef; }
.slide-inner .meta, .slide-desc, .dp-desc, .dp-inner .meta, .crumbs, .info-grid span,
.info-grid b, .dp-title, .slide-title, .slide-tags, .tag { color: #f5f4ef; }
.slide-inner .meta, .dp-desc, .dp-inner .meta, .crumbs, .info-grid span { color: rgba(245, 244, 239, 0.74); }
.badge { color: #f5f4ef; background: rgba(8, 8, 10, 0.78); }
.badge.new { color: #16130c; background: var(--accent); }
.wish-card-txt strong { color: #fff; }
.wish-card-txt em { color: #c6c2b9; }
.wish-vote { color: #ece9e2; }

/* ---------- typographie ---------- */
.meta { margin: 10px 0 0; font-size: 0.84rem; font-weight: 500; color: var(--muted); }
.slide-inner .meta { margin: 14px 0 0; }
h1, h2, h3, .dp-title, .slide-title, .wish-title, .auth-pane h1 { font-weight: 800; letter-spacing: -0.02em; }

.prem-plan { margin: 0 0 6px; font-size: 0.86rem; color: var(--muted); }
.wish-badge { color: #fff; }
.wish-badge.is-accepted { color: #171204; }


/* ============================================================ 2026 · refonte */
/* ---------- contrôles personnalisés ---------- */
select {
  -webkit-appearance: none;
  appearance: none;
  height: 42px;
  padding: 0 40px 0 14px;
  border: 0;
  border-radius: 10px;
  background-color: var(--panel-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f3ee' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
}
select:hover { background-color: var(--panel-3); }
select:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--accent); }
select option { background: var(--panel); color: var(--text); }
@media (prefers-color-scheme: light) {
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141416' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  }
}

input[type="checkbox"], input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 0;
  border-radius: 5px;
  background: var(--panel-3);
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked, input[type="radio"]:checked { background-color: var(--accent); }
input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141416' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5 9.5 17.5 19.5 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
input[type="radio"]:checked { box-shadow: inset 0 0 0 4px var(--panel); }
input[type="checkbox"]:active, input[type="radio"]:active { transform: scale(0.9); }
input[type="range"] { accent-color: var(--accent); }

* { scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* champs sans trait : surface pleine */
.auth-form input, .wish-form input, .wish-form select, .wish-form textarea, .wish-search input,
.prem-code input, .frame-give-form input, .frame-give-form select, .prof-grid input, .prof-grid select,
.acc-panel input, .acc-panel select, .acc-panel textarea, .pick-search input {
  background: var(--panel-2);
}
.auth-form input:focus, .wish-form input:focus, .wish-form textarea:focus, .wish-search input:focus { background: var(--panel-3); box-shadow: none; }

/* ---------- transitions ---------- */
a, button {
  transition:
    color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease,
    transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.26s ease;
}
.card-poster { transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease; }
.card:hover .card-poster { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover .card-poster img { transform: scale(1.04); }
.btn:active, .hdr-ico:active { transform: scale(0.96); }

/* entrée du hero, décalée */
.hero .slide { transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.85s; }
.hero .slide .slide-inner > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero .slide.is-active .slide-inner > * { opacity: 1; transform: none; }
.hero .slide.is-active .slide-inner > *:nth-child(1) { transition-delay: 0.04s; }
.hero .slide.is-active .slide-inner > *:nth-child(2) { transition-delay: 0.1s; }
.hero .slide.is-active .slide-inner > *:nth-child(3) { transition-delay: 0.16s; }
.hero .slide.is-active .slide-inner > *:nth-child(4) { transition-delay: 0.22s; }
.hero .slide.is-active .slide-inner > *:nth-child(5) { transition-delay: 0.28s; }

/* apparition au scroll (désactivée sans JS) */
.js .shelves > * { animation: rise-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) both; }
.js .shelves > *:nth-child(2) { animation-delay: 0.06s; }
.js .shelves > *:nth-child(3) { animation-delay: 0.12s; }
.js .shelves > *:nth-child(4) { animation-delay: 0.18s; }
.js .shelves > *:nth-child(5) { animation-delay: 0.24s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- écran de chargement ---------- */
.is-loading { overflow: hidden; }
.nv-loader {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  background: #101012;
  color: #f5f4ef;
  animation: nv-safety 0.5s ease 7s forwards;
}
.nv-loader.is-out { opacity: 0; transition: opacity 0.5s ease; }
.nv-loader-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.nv-loader-row { display: flex; align-items: center; gap: 14px; }
.nv-loader-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f4ef;
  animation: nv-icon-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
.nv-loader-icon svg { width: 17px; height: 17px; }
.nv-loader-icon.is-done { background: #e9dfbf; color: #141416; animation: nv-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.nv-loader-label {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  animation: nv-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
.nv-loader-bar {
  width: min(240px, 56vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.nv-loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #e9dfbf;
  animation: nv-fill 1.5s cubic-bezier(0.22, 0.85, 0.2, 1) 0.1s forwards;
}
@keyframes nv-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes nv-icon-in { from { opacity: 0; transform: translateY(16px) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes nv-fill { to { width: 100%; } }
@keyframes nv-pop { from { transform: scale(0.6); } 60% { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes nv-safety { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .nv-loader { display: none; }
}

/* ---------- lisibilité au-dessus des visuels ---------- */
.slide-inner .btn-ghost, .dp .btn-ghost { background: rgba(24, 24, 28, 0.72); color: #f5f4ef; }
.hero-nav button { color: #f5f4ef; background: rgba(20, 20, 24, 0.6); }
.hero-nav button:hover { background: rgba(40, 40, 46, 0.85); }
.hero-dots button { background: rgba(255, 255, 255, 0.3); }
.hero-dots button:hover { background: rgba(255, 255, 255, 0.55); }
.hero-dots button.is-active { background: #e9dfbf; }
.slide-inner .btn-ghost:hover, .dp .btn-ghost:hover { background: rgba(46, 46, 52, 0.92); }

@media (prefers-color-scheme: light) {
  .hdr { background: rgba(246, 245, 242, 0.92); backdrop-filter: blur(14px); }
  .hdr nav a { color: var(--muted); }
  .hdr nav a:hover, .hdr nav a.is-active { background: var(--hover); color: var(--text); }
}

/* ---------- connexion ---------- */
.auth-perks svg { color: #f5f4ef; background: rgba(255, 255, 255, 0.08); }
.auth-side .auth-perks strong { color: #f5f4ef; }
.auth-pane > * { width: 100%; max-width: 440px; }
.auth-submit { background: var(--btn-light-bg); color: var(--btn-light-text); }
.auth-submit:hover { opacity: 0.92; }
.auth-form label span { text-transform: none; letter-spacing: 0; font-size: 0.82rem; font-weight: 500; }

/* ============================================================ calendrier */
.cal { width: 100%; max-width: 1920px; margin: 0 auto; padding: calc(var(--header) + 26px) clamp(12px, 2.4vw, 40px) 80px; }
.cal-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cal-kicker { margin: 0 0 6px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.cal-title h1 { margin: 0; font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 0.92; letter-spacing: -0.05em; }
.cal-title p:not(.cal-kicker) { margin: 12px 0 0; max-width: 78ch; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.cal-nav { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.cal-arrow, .cal-now { display: inline-flex; align-items: center; justify-content: center; height: 44px; border-radius: 10px; background: var(--panel-2); color: var(--text-2); }
.cal-arrow { width: 46px; }
.cal-arrow svg { width: 16px; height: 16px; }
.cal-now { padding: 0 16px; font-size: 0.82rem; font-weight: 700; }
.cal-arrow:hover, .cal-now:hover { background: var(--panel-3); color: var(--text); }
.cal-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 26px 0 14px; }
.cal-legend { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.74rem; }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); }
.cal-legend i.is-now { background: #ff6a3d; }
.cal-legend i.is-soon { margin-left: 10px; background: #6f93ff; }
.cal-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-follow { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 10px; background: var(--panel-2); color: var(--text-2); font-size: 0.82rem; font-weight: 600; }
.cal-follow.is-on { background: #ff6a3d; color: #1a0d07; }
.cal-follow svg { width: 14px; height: 14px; }

.cal-scroll { overflow-x: auto; padding-bottom: 6px; }
.cal-mhead { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; min-width: 980px; margin-bottom: 8px; color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.cal-mhead span { padding: 0 4px; }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; min-width: 980px; }
.cal-cell { display: flex; flex-direction: column; gap: 8px; min-height: clamp(128px, 16vh, 220px); padding: 10px; border-radius: 12px; background: var(--panel); color: var(--text-2); transition: background-color 0.18s ease, transform 0.18s ease; }
.cal-cell:hover { background: var(--panel-2); transform: translateY(-1px); }
.cal-cell.is-dim { opacity: 0.38; }
.cal-cell.is-today { background: var(--panel-2); }
.cal-cell.is-today .cal-dnum strong { color: #ff6a3d; }
.cal-cell.is-sel { box-shadow: inset 0 0 0 2px #ff6a3d; background: var(--panel-2); }
.cal-dnum { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.cal-dnum strong { font-size: clamp(1.4rem, 1.8vw, 2rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--text); }
.cal-dnum span { font-size: 0.62rem; letter-spacing: 0.04em; color: var(--muted); }
.cal-chips { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-chip { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 7px; padding: 4px 6px; border-radius: 7px; background: var(--panel-2); min-width: 0; }
.cal-chip.is-live { background: rgba(255, 106, 61, 0.14); }
.cal-chip .rel-shot { width: 22px; height: 31px; border-radius: 4px; }
.cal-chip-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cal-chip-body strong { font-size: 0.68rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip-body em { font-style: normal; font-size: 0.6rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-more { padding: 0 4px; font-size: 0.64rem; color: var(--text-2); }
.cal-none { padding: 2px 4px; font-size: 0.62rem; color: var(--muted); opacity: 0.7; }

.cal-feature { margin-top: 34px; padding-top: 8px; border-top: 1px solid var(--panel-3); }
.cal-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 16px; }
.cal-day-head h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.7rem); letter-spacing: -0.04em; }
.cal-day-head span { color: var(--muted); font-size: 0.86rem; }
.cal-sec { margin: 26px 0 12px; font-size: 0.78rem; color: var(--muted); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.cal-empty { padding: 30px 0; color: var(--muted); font-size: 0.94rem; }
.cal-empty a { color: var(--text); text-decoration: underline; }
.cal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
.cal-cards .rel { margin: 0; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 14px; border-radius: 16px; }
.cal-cards .rel-shot { width: 84px; height: 122px; border-radius: 8px; }
.cal-cards .rel-body strong { font-size: 1.06rem; }
.cal-cards .rel-body em { font-size: 0.88rem; }
.cal-cards .rel-state { grid-column: 1 / -1; justify-self: start; }
.cal-cards .rel-desc { -webkit-line-clamp: 3; font-size: 0.86rem; }

.cal-bottom { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; align-items: start; margin-top: 36px; }
.cal-next h3, .cal-block h3 { margin: 0 0 12px; font-size: 1.05rem; letter-spacing: -0.01em; }
.cal-next-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 14px; background: var(--panel); }
.cal-next-card .rel-shot { width: 76px; height: 108px; }
.cal-next-body strong { display: block; font-size: 1rem; }
.cal-next-body em { font-style: normal; color: var(--muted); font-size: 0.8rem; display: block; margin-top: 4px; }
.cal-next-body span { display: block; color: var(--text-2); font-size: 0.8rem; margin-top: 6px; }
.cal-count { display: block; margin-top: 6px; font-size: 1.6rem; font-weight: 800; color: #ff6a3d; font-variant-numeric: tabular-nums; }
.cal-block { margin: 0; }
.cal-mine { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cal-mine a { display: block; padding: 11px 13px; border-radius: 11px; background: var(--panel); }
.cal-mine a:hover { background: var(--panel-2); }
.cal-mine strong { display: block; font-size: 0.9rem; }
.cal-mine em { font-style: normal; color: var(--muted); font-size: 0.78rem; }
.cal-promo { position: relative; display: block; padding: 18px; border-radius: 16px; background: var(--panel); }
.cal-promo:hover { background: var(--panel-2); }
.cal-promo-k { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cal-promo strong { display: block; margin: 6px 0 4px; font-size: 1.05rem; }
.cal-promo-p { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.cal-promo svg { position: absolute; right: 16px; bottom: 16px; width: 18px; height: 18px; color: var(--muted); }

@media (max-width: 1100px) {
  .cal-bottom { grid-template-columns: 1fr 1fr; }
  .cal-promo { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .cal-cards { grid-template-columns: minmax(0, 1fr); }
  .cal-bottom { grid-template-columns: minmax(0, 1fr); }
  .cal-top { align-items: flex-start; }
  .cal-nav { padding-bottom: 0; }
}

/* ---------- carte wishboard : lien calendrier + modale détail ---------- */
.wish-cal { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 9px; border-radius: 7px; background: var(--panel-3); color: var(--text-2); font-size: 0.72rem; font-weight: 600; align-self: flex-start; }
.wish-cal svg { width: 12px; height: 12px; }
.wish-cal:hover { background: var(--text); color: var(--bg); }

.wd { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; }
.wd[hidden] { display: none; }
.wd-back { position: absolute; inset: 0; background: rgba(4, 4, 6, 0.72); backdrop-filter: blur(6px); }
.wd-card { position: relative; width: min(820px, 100%); max-height: calc(100vh - 48px); overflow: auto; border-radius: 20px; background: var(--panel); padding: 26px; animation: wd-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes wd-in { from { opacity: 0; transform: translateY(16px) scale(0.985); } }
.wd-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-3); color: var(--text); }
.wd-x svg { width: 14px; height: 14px; }
.wd-top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; }
.wd-poster { width: 96px; height: 138px; border-radius: 10px; background: var(--panel-3) center/cover no-repeat; display: block; }
.wd-kicker { margin: 0 0 6px; color: var(--muted); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; }
.wd-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.03em; }
.wd-cols { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; margin-top: 26px; }
.wd-cols h3 { margin: 0 0 12px; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.wd-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.wd-steps li { display: flex; flex-direction: column; gap: 8px; font-size: 0.74rem; color: var(--muted); }
.wd-steps li::before { content: ""; display: block; height: 1px; background: var(--panel-3); margin-bottom: 8px; }
.wd-steps li.is-done::before { background: #e9dfbf; }
.wd-steps li.is-now::before { background: #ff6a3d; }
.wd-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--panel-3); }
.wd-steps li.is-done .wd-dot { background: #e9dfbf; }
.wd-steps li.is-now .wd-dot { background: #ff6a3d; box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.18); }
.wd-steps li.is-done .wd-step-label, .wd-steps li.is-now .wd-step-label { color: var(--text); font-weight: 600; }
.wd-release span { display: block; color: var(--muted); font-size: 0.76rem; }
.wd-release strong { display: block; margin: 2px 0 4px; font-size: 1.25rem; letter-spacing: -0.02em; }
.wd-release em { font-style: normal; color: var(--muted); font-size: 0.8rem; }
.wd-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wd-history li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; }
.wd-hist-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--panel-3); }
.wd-history li:last-child .wd-hist-dot { background: #e9dfbf; }
.wd-history em { display: block; font-style: normal; color: var(--muted); font-size: 0.72rem; }
.wd-history strong { font-size: 0.84rem; font-weight: 600; }
.wd-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; }
.wd-vote { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 99px; background: #e9dfbf; color: #141416; font-weight: 700; font-size: 0.88rem; }
.wd-vote svg { width: 14px; height: 14px; }
.wd-vote.is-on { background: #ff6a3d; color: #1a0d07; }
.wd-count { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 99px; background: var(--panel-2); color: var(--text-2); font-size: 0.84rem; font-weight: 600; }
.wd-remind-note { color: var(--muted); font-size: 0.76rem; margin-left: auto; }
.wd-remind-btn { height: 38px; padding: 0 14px; border-radius: 10px; background: var(--panel-3); color: var(--text); font-weight: 600; font-size: 0.8rem; }
.wd-remind-btn:hover { background: var(--text); color: var(--bg); }
.wd-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--panel-2); color: var(--text); font-size: 0.82rem; font-weight: 600; }
.wd-cta:hover { background: var(--panel-3); }
.wd-cta.is-watch { background: var(--text); color: var(--bg); }
@media (max-width: 720px) {
  .wd-cols { grid-template-columns: minmax(0, 1fr); }
  .wd-top { grid-template-columns: 72px minmax(0, 1fr); }
  .wd-poster { width: 72px; height: 104px; }
  .wd-remind-note { margin-left: 0; width: 100%; }
}

/* ---------- admin sorties ---------- */
.adm-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.adm-rel-pick { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--panel-2); }
.adm-rel-pick:hover { background: var(--panel-3); }
.adm-rel-pick img, .adm-rel-noimg { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: var(--panel-3); }
.adm-rel-pick strong { font-size: 0.84rem; }
.adm-rel-pick em { font-style: normal; color: var(--muted); font-size: 0.74rem; }
.adm-rel-form { margin: 18px 0 26px; padding: 18px; border-radius: 14px; background: var(--panel-2); display: flex; flex-direction: column; gap: 14px; }
.adm-rel-picked { display: flex; align-items: center; gap: 14px; }
.adm-rel-picked img { width: 54px; height: 78px; object-fit: cover; border-radius: 7px; }
.adm-rel-picked strong { display: block; }
.adm-rel-picked em { font-style: normal; color: var(--muted); font-size: 0.8rem; }
.adm-rel-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.adm-rel-fields label, .adm-rel-desc { display: flex; flex-direction: column; gap: 5px; }
.adm-rel-fields span, .adm-rel-desc span { font-size: 0.74rem; color: var(--muted); }
.adm-rel-fields input, .adm-rel-desc textarea { background: var(--panel-3); border-radius: 8px; padding: 9px 11px; color: var(--text); font: inherit; font-size: 0.86rem; }
.adm-rel-label { display: block; font-style: normal; color: var(--muted); font-size: 0.74rem; }
.adm-hint { margin: 0; color: var(--muted); font-size: 0.76rem; }
.notif-go { margin-left: auto; padding: 5px 10px; border-radius: 7px; background: var(--panel-3); color: var(--text); font-size: 0.74rem; font-weight: 600; align-self: center; }
.notif-go:hover { background: var(--text); color: var(--bg); }

.wd-cta[hidden], .wd-remind[hidden] { display: none; }


/* ---------- nouveaux cadres ---------- */
.pcard-photo.has-frame[data-frame="kraken"] .pcard-face { inset: 22.8% 21.7% 15.0% 22.2%; }
.acct-av.has-frame[data-frame="kraken"] .acct-av-face { inset: 22.8% 21.7% 15.0% 22.2%; }
.frame-thumb[data-frame="kraken"] .frame-face { inset: 22.8% 21.7% 15.0% 22.2%; }
.pcard-photo.has-frame[data-frame="paladin"] .pcard-face { inset: 26.1% 25.6% 22.2% 18.3%; }
.acct-av.has-frame[data-frame="paladin"] .acct-av-face { inset: 26.1% 25.6% 22.2% 18.3%; }
.frame-thumb[data-frame="paladin"] .frame-face { inset: 26.1% 25.6% 22.2% 18.3%; }
.pcard-photo.has-frame[data-frame="neko"] .pcard-face { inset: 28.3% 10.6% 11.1% 10.6%; }
.acct-av.has-frame[data-frame="neko"] .acct-av-face { inset: 28.3% 10.6% 11.1% 10.6%; }
.frame-thumb[data-frame="neko"] .frame-face { inset: 28.3% 10.6% 11.1% 10.6%; }
.pcard-photo.has-frame[data-frame="cosy"] .pcard-face { inset: 29.4% 25.6% 18.9% 31.7%; }
.acct-av.has-frame[data-frame="cosy"] .acct-av-face { inset: 29.4% 25.6% 18.9% 31.7%; }
.frame-thumb[data-frame="cosy"] .frame-face { inset: 29.4% 25.6% 18.9% 31.7%; }
.pcard-photo.has-frame[data-frame="noel"] .pcard-face { inset: 25.6% 18.3% 18.9% 16.7%; }
.acct-av.has-frame[data-frame="noel"] .acct-av-face { inset: 25.6% 18.3% 18.9% 16.7%; }
.frame-thumb[data-frame="noel"] .frame-face { inset: 25.6% 18.3% 18.9% 16.7%; }
.pcard-photo.has-frame[data-frame="nocturne"] .pcard-face { inset: 26.7% 11.1% 8.3% 11.7%; }
.acct-av.has-frame[data-frame="nocturne"] .acct-av-face { inset: 26.7% 11.1% 8.3% 11.7%; }
.frame-thumb[data-frame="nocturne"] .frame-face { inset: 26.7% 11.1% 8.3% 11.7%; }
.pcard-photo.has-frame[data-frame="glam"] .pcard-face { inset: 12.8% 18.3% 16.1% 18.3%; }
.acct-av.has-frame[data-frame="glam"] .acct-av-face { inset: 12.8% 18.3% 16.1% 18.3%; }
.frame-thumb[data-frame="glam"] .frame-face { inset: 12.8% 18.3% 16.1% 18.3%; }
.pcard-photo.has-frame[data-frame="sanctuaire"] .pcard-face { inset: 24.4% 26.1% 19.4% 21.1%; }
.acct-av.has-frame[data-frame="sanctuaire"] .acct-av-face { inset: 24.4% 26.1% 19.4% 21.1%; }
.frame-thumb[data-frame="sanctuaire"] .frame-face { inset: 24.4% 26.1% 19.4% 21.1%; }

/* ---------- header tablette / téléphone ---------- */
.hdr-burger {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: var(--hover);
  color: var(--text);
  cursor: pointer;
}
.hdr-burger svg { width: 20px; height: 20px; }
.hdr-drawer { display: none; }
.hdr-drawer.is-open {
  display: block;
  position: fixed;
  inset: var(--header) 0 auto 0;
  z-index: 59;
  padding: 8px 14px 18px;
  background: var(--bg);
  animation: drawer-in 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes drawer-in { from { opacity: 0; transform: translateY(-10px); } }
.hdr-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-2);
}
.hdr-drawer a:hover, .hdr-drawer a.is-active { background: var(--panel-2); color: var(--text); }
.hdr-drawer-sep { display: block; height: 1px; margin: 8px 14px; background: var(--panel-3); }
.hdr-drawer-prem { background: rgba(255, 233, 74, 0.14); color: #ffe94a; }
.hdr-drawer-prem svg { width: 17px; height: 17px; }

@media (max-width: 900px) {
  .hdr { gap: 10px; padding: 0 14px; }
  .hdr nav { display: none; }
  .hdr-burger { display: grid; }
  .hdr-sep { display: none; }
  .brand { font-size: 1.18rem; letter-spacing: 0.16em; }
  .hdr-tools { gap: 6px; }
}
@media (max-width: 520px) {
  .hdr { padding: 0 10px; gap: 8px; }
  .brand { font-size: 1.05rem; letter-spacing: 0.1em; }
  .brand svg { width: 22px; height: 22px; }
  .hdr-prem, .hdr-ico, .hdr-burger { width: 36px; height: 36px; }
  .hdr-drawer a { padding: 12px; }
}

@media (min-width: 901px) { .hdr-drawer, .hdr-drawer.is-open { display: none !important; } }

/* ---------- calendrier : actions admin + affiches ---------- */
.cal-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-follow.is-admin { background: var(--text); color: var(--bg); gap: 7px; }
.cal-follow.is-admin svg { width: 14px; height: 14px; }
.rel { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px; border-radius: 16px; background: var(--panel); overflow: hidden; isolation: isolate; }
.rel-bg { position: absolute; inset: 0; z-index: 0; background: var(--rel-bg) center/cover no-repeat; opacity: 0.4; }
.rel.has-bg::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(8, 8, 10, 0.92), rgba(8, 8, 10, 0.7) 58%, rgba(8, 8, 10, 0.82)); }
.rel > :not(.rel-bg) { position: relative; z-index: 1; }
.rel-shot { display: block; width: 84px; height: 122px; border-radius: 8px; background: var(--rel-poster) center/cover no-repeat var(--panel-3); }
.rel-shot.is-empty { background: var(--panel-3); }
.rel-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rel-title-row { display: flex; align-items: flex-start; gap: 10px; }
.rel-title-row strong { flex: 1; min-width: 0; font-size: 1.06rem; line-height: 1.25; }
.rel-title-row .rel-shot { width: 46px; height: 68px; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); }
.rel-body em { font-style: normal; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.rel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text-2); font-size: 0.75rem; }
.rel-meta i { font-style: normal; padding: 1px 5px; border-radius: 4px; background: var(--panel-3); color: var(--muted); font-size: 0.62rem; font-weight: 600; }
.rel-state { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 4px 8px; border-radius: 6px; background: var(--panel-3); color: var(--muted); font-size: 0.68rem; }
.rel-state.is-on { background: rgba(255, 106, 61, 0.16); color: #ff8a63; }
.rel-state svg { width: 12px; height: 12px; }
.rel-follow { margin: 8px 0 0; }
.rel-follow-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid rgba(102, 148, 255, 0.45); border-radius: 7px; background: rgba(52, 97, 245, 0.12); color: #bcd0ff; font: inherit; font-size: 0.72rem; font-weight: 700; cursor: pointer; }
.rel-follow-btn:hover { background: rgba(52, 97, 245, 0.24); color: #fff; }
.rel-follow-btn.is-on { border-color: rgba(120, 170, 130, 0.45); background: rgba(120, 170, 130, 0.14); color: #b8e0bf; }
.rel-follow-btn svg { width: 12px; height: 12px; }
.rel-desc { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* ---------- wishboard : bouton Voir (déjà au catalogue) ---------- */
.wish-card-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wish-watch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 11px;
  border-radius: 7px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
}
.wish-watch svg { width: 11px; height: 11px; }
.wish-watch:hover { opacity: 0.86; }

/* ---------- calendrier mobile : bandeau scrollable ---------- */
@media (max-width: 640px) {
  .cal-days {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .cal-day { flex: 0 0 58px; scroll-snap-align: center; }
  .cal-arrow { width: 34px; flex: 0 0 34px; }
  .cal-week { margin: 18px 0 22px; }
}
@media (max-width: 520px) {
  .hdr .acct { display: none; }
}

/* ---------- panneau admin (F2) ---------- */
.adm-pop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 6, 8, 0.74);
}
.adm-pop[hidden] { display: none; }
.adm-pop-box {
  width: min(360px, 100%);
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 14px;
  background: var(--panel, #121216);
  border: 1px solid var(--line, #26262c);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.adm-pop-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2, #a8a8b3);
}
.adm-pop-badge svg { width: 14px; height: 14px; }
.adm-pop-field { display: grid; gap: 6px; font-size: 0.78rem; color: var(--text-2, #a8a8b3); }
.adm-pop-field input {
  height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--panel-2, #17171c);
  border: 1px solid var(--line, #2a2a31);
  color: var(--text, #f4f3ee);
  font: inherit;
  letter-spacing: 0.14em;
}
.adm-pop-field input:focus { outline: 2px solid var(--text, #f4f3ee); outline-offset: 1px; }
.adm-pop-err { margin: 0; font-size: 0.78rem; color: #ff7a55; }
.adm-pop-acts { display: flex; gap: 8px; justify-content: flex-end; }
.adm-pop-cancel,
.adm-pop-go {
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.adm-pop-cancel { background: transparent; border: 1px solid var(--line, #2a2a31); color: var(--text-2, #a8a8b3); }
.adm-pop-go { background: var(--text, #f4f3ee); color: var(--bg, #08080a); border: 0; }
.adm-pop-go:disabled { opacity: 0.6; cursor: progress; }
.adm-pop-hint { margin: 2px 0 0; font-size: 0.7rem; color: var(--text-3, #7d7d88); }
.adm-f2 {
  display: block;
  margin: 4px 0 8px;
  padding: 0 12px;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--text-3, #7d7d88);
}

/* ---------- admin : semaine des sorties ---------- */
.adm-week { margin: 0 0 20px; padding: 16px; border-radius: 14px; background: var(--panel-2); }
.adm-week-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.adm-week-head strong { display: block; font-size: 0.98rem; }
.adm-week-head em { display: block; margin-top: 2px; font-style: normal; font-size: 0.76rem; color: var(--muted); }
.adm-week-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.adm-week-nav a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 8px; background: var(--panel-3); color: var(--text-2); font-size: 0.76rem; font-weight: 600; }
.adm-week-nav a:hover { background: var(--hover); color: var(--text); }
.adm-week-nav a svg { width: 15px; height: 15px; }
.adm-week-nav .adm-week-add { background: var(--accent); color: #101012; }
.adm-week-nav .adm-week-add:hover { background: var(--accent); color: #101012; }
.adm-week-scroll { overflow-x: auto; padding-bottom: 2px; }
.adm-week-grid { display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); gap: 8px; }
.adm-day { position: relative; display: flex; flex-direction: column; gap: 9px; min-height: 138px; padding: 10px; border-radius: 10px; background: var(--panel-3); }
.adm-day { transition: background 0.15s ease; }
.adm-day:hover { background: var(--hover); }
.adm-day.is-today { background: var(--hover); }
.adm-day.is-picked { box-shadow: inset 0 0 0 2px var(--accent); }
.adm-day-top::after { content: "+"; font-size: 0.95rem; font-weight: 700; color: var(--accent); opacity: 0; transition: opacity 0.15s ease; }
.adm-day:hover .adm-day-top::after { opacity: 1; }
.adm-day-hit { position: absolute; inset: 0; z-index: 1; border-radius: 10px; cursor: pointer; }
.adm-day-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.adm-day-top span { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.adm-day-top em { font-style: normal; font-size: 1.02rem; font-weight: 700; color: var(--text); }
.adm-day.is-today .adm-day-top em { color: var(--accent); }
.adm-day-list { display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
.adm-day-item { display: flex; flex-direction: column; gap: 1px; padding: 5px 7px; border-radius: 7px; background: var(--hover); }
.adm-day-item em { font-style: normal; font-size: 0.62rem; font-weight: 700; color: var(--muted); }
.adm-day-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.72rem; line-height: 1.25; }
.adm-day-item span { font-size: 0.62rem; color: var(--muted); }
.adm-day-item.is-live em { color: var(--accent); }
.adm-day-empty { font-size: 0.7rem; color: var(--muted); }
.adm-rel-week-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.adm-rel-week-head strong { display: block; }
.adm-rel-week-head em { display: block; margin-top: 2px; font-style: normal; font-size: 0.78rem; color: var(--muted); }
.adm-rel-cancel { font-size: 0.76rem; font-weight: 600; color: var(--muted); }
.adm-rel-cancel:hover { color: var(--text); }
.adm-rel-fields select { background: var(--panel-3); border-radius: 8px; padding: 9px 11px; color: var(--text); font: inherit; font-size: 0.86rem; }
.adm-rel-wide { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .adm-week { padding: 12px; }
  .adm-week-grid { grid-template-columns: repeat(7, minmax(104px, 1fr)); }
}

/* ---------- admin : choisir l'affiche d'une sortie ---------- */
.adm-rel-pick { display: flex; flex-direction: column; gap: 10px; }
.adm-rel-pick label { display: flex; flex-direction: column; gap: 5px; }
.adm-rel-pick label span { font-size: 0.74rem; color: var(--muted); }
.adm-rel-pick input { background: var(--panel-3); border: 0; border-radius: 8px; padding: 9px 11px; color: var(--text); font: inherit; font-size: 0.86rem; outline: none; }
.adm-rel-found { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 10px; border-radius: 10px; background: var(--panel-3); max-height: 320px; overflow: auto; }
.adm-pick-item { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.adm-pick-item:hover { background: var(--hover); }
.adm-pick-item img, .adm-pick-noimg { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--panel-2); }
.adm-pick-item strong { font-size: 0.72rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.adm-pick-item em { font-style: normal; font-size: 0.66rem; color: var(--muted); }
.adm-rel-selected { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; background: var(--panel-3); }
.adm-rel-selected img { width: 54px; height: 78px; object-fit: cover; border-radius: 6px; background: var(--panel-2); }
.adm-rel-selected strong { display: block; font-size: 0.86rem; }
.adm-rel-selected em { display: block; margin-top: 2px; font-style: normal; font-size: 0.74rem; color: var(--muted); }
.adm-rel-selected button { margin-left: auto; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--hover); color: var(--text-2); font-size: 0.74rem; font-weight: 600; cursor: pointer; }
.adm-rel-selected button:hover { color: var(--text); }
.adm-rel-date { display: flex; align-items: flex-end; gap: 8px; }
.adm-rel-date label { flex: 1 1 auto; }
.adm-rel-today { height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--panel-3); color: var(--text); font: inherit; font-size: 0.76rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.adm-rel-today:hover { background: var(--hover); }

/* ---------- calendrier : affiches dans les cases + statut programmé ---------- */
.cal-cell { position: relative; overflow: hidden; isolation: isolate; }
.cal-cover { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: repeat(var(--cal-cols, 1), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 3px; background: var(--panel-3); opacity: 0.62; transition: transform 0.5s ease; }
.cal-cell:hover .cal-cover { transform: scale(1.05); }
.cal-cover i { display: block; min-width: 0; min-height: 0; background: var(--panel-3) center/cover no-repeat; background-image: var(--cal-poster); }
.cal-cell::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(8, 8, 10, 0.2), rgba(8, 8, 10, 0.6) 55%, rgba(8, 8, 10, 0.94)); }
.cal-dnum, .cal-chips { position: relative; z-index: 2; }
.cal-chip { grid-template-columns: 30px minmax(0, 1fr); padding: 5px 7px; background: rgba(10, 10, 13, 0.74); backdrop-filter: blur(4px); }
.cal-chip.is-live { background: rgba(255, 106, 61, 0.3); }
.cal-chip .rel-shot { width: 30px; height: 42px; }

/* cartes « À venir » : images et tailles variées */
.cal-cards.is-coming { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); grid-auto-flow: dense; }
.cal-cards.is-coming .rel { grid-template-columns: 78px minmax(0, 1fr); }
.cal-cards.is-coming .rel .rel-shot { width: 78px; height: 112px; }
.cal-cards.is-coming .rel:nth-child(5n + 1) { grid-column: span 2; grid-template-columns: 120px minmax(0, 1fr); }
.cal-cards.is-coming .rel:nth-child(5n + 1) .rel-shot { width: 120px; height: 174px; }
.cal-cards.is-coming .rel:nth-child(5n + 1) .rel-body strong { font-size: 1.25rem; }
.cal-cards.is-coming .rel:nth-child(5n + 1) .rel-desc { -webkit-line-clamp: 4; }
.cal-cards.is-coming .rel:nth-child(5n + 4) { grid-template-columns: 64px minmax(0, 1fr); }
.cal-cards.is-coming .rel:nth-child(5n + 4) .rel-shot { width: 64px; height: 92px; }
@media (max-width: 900px) {
  .cal-cards.is-coming .rel:nth-child(5n + 1) { grid-column: span 1; grid-template-columns: 84px minmax(0, 1fr); }
  .cal-cards.is-coming .rel:nth-child(5n + 1) .rel-shot { width: 84px; height: 122px; }
}

.cal-cards.is-coming .rel-title-row .rel-shot { width: 46px; height: 68px; border-radius: 6px; }
.cal-cards.is-coming .rel:nth-child(5n + 1) .rel-title-row .rel-shot { width: 62px; height: 92px; }
.cal-cards.is-coming .rel:nth-child(5n + 4) .rel-title-row .rel-shot { width: 42px; height: 62px; }
.cal-next-card { position: relative; overflow: hidden; isolation: isolate; }
.cal-next-bg { position: absolute; inset: 0; z-index: 0; background: var(--rel-bg) center/cover no-repeat; opacity: 0.45; }
.cal-next-card.has-bg::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(8, 8, 10, 0.94), rgba(8, 8, 10, 0.58) 65%, rgba(8, 8, 10, 0.78)); }
.cal-next-card > :not(.cal-next-bg) { position: relative; z-index: 1; }
.cal-next-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cal-next-meta .cal-count { margin: 0; }
.cal-next-card .cal-next-still { width: 56px; height: 80px; flex: 0 0 auto; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.16); }
@media (max-width: 760px) {
  .rel-title-row .rel-shot { width: 40px; height: 60px; }
}

.dp-season-bubble { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; width: fit-content; max-width: 100%; margin: 20px auto 0; padding: 9px 12px; border: 1px solid rgba(102, 148, 255, 0.5); border-radius: 999px; background: rgba(52, 97, 245, 0.14); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.dp-season-ico { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: #3461f5; color: #fff; }
.dp-season-ico svg { width: 16px; height: 16px; }
.dp-season-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dp-season-txt strong { font-size: 0.86rem; color: #e8eeff; }
.dp-season-txt em { font-style: normal; font-size: 0.72rem; color: #a9baff; }
.dp-season-btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 11px; border: 0; border-radius: 7px; background: #3461f5; color: #fff; font-size: 0.74rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.dp-season-btn.is-ghost { background: rgba(255, 255, 255, 0.08); color: #dfe7ff; }
.dp-season-remind { margin: 0; }
@media (max-width: 720px) {
  .dp-season-bubble { width: 100%; border-radius: 14px; justify-content: flex-start; }
}

.dl-page { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.dl-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); }
.dl-kicker { display: inline-flex; align-items: center; gap: 6px; color: #8fb1ff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.dl-kicker svg { width: 15px; height: 15px; }
.dl-card h1 { margin: 10px 0 8px; font-size: 1.8rem; }
.dl-title { margin: 0 0 6px; color: var(--text); font-weight: 700; }
.dl-note { margin: 0 0 16px; color: var(--muted); line-height: 1.55; }
.dl-note.is-small { margin: 12px 0; font-size: 0.8rem; }
.dl-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid rgba(102, 148, 255, 0.35); border-radius: 10px; background: rgba(52, 97, 245, 0.1); }
.dl-code code { flex: 1 1 280px; min-width: 0; color: #d9e4ff; font-size: 0.8rem; word-break: break-all; }
.dl-copy { height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: #3461f5; color: #fff; font: inherit; font-size: 0.74rem; font-weight: 700; cursor: pointer; }
.dl-step { margin: 18px 0 8px; color: var(--text-2); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.dl-pre { margin: 0; padding: 12px; border-radius: 10px; background: #0f1118; color: #cfe0ff; overflow-x: auto; font-size: 0.78rem; line-height: 1.55; }
.dl-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.dl-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 8px; background: #3461f5; color: #fff; font-size: 0.8rem; font-weight: 700; }
.dl-alt { color: var(--muted); font-size: 0.8rem; }
.dl-alt:hover { color: var(--text); }
/* ---------- fiche : onglets + commentaires ---------- */
.dp-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 22px 0 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.dp-tab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; margin-bottom: -1px; color: var(--muted); font-size: 0.86rem; font-weight: 600; border-bottom: 2px solid transparent; background: none; cursor: pointer; }
.dp-tab svg { width: 15px; height: 15px; }
.dp-tab em { font-style: normal; font-size: 0.7rem; padding: 1px 6px; border-radius: 999px; background: var(--panel-3, #1a1b22); color: var(--text); }
.dp-tab:hover { color: var(--text); }
.dp-tab.is-active { color: var(--text); border-bottom-color: #3461f5; }
.dp-panel { padding-top: 22px; }

.cm { max-width: 980px; }
.cm h2 { margin: 0 0 14px; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.cm h2 span { color: var(--muted); font-weight: 600; }
.cm-flash { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; font-size: 0.84rem; }
.cm-flash.is-ok { background: rgba(32, 148, 96, 0.16); color: #7ee2b0; }
.cm-flash.is-err { background: rgba(200, 60, 60, 0.16); color: #ff9a8a; }
.cm-form { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--panel, #101116); margin-bottom: 30px; }
.cm-box { flex: 1; min-width: 0; }
.cm-form textarea { width: 100%; min-height: 96px; padding: 14px; border-radius: 10px; background: var(--panel-3, #16171d); color: var(--text); border: 1px solid transparent; font: inherit; font-size: 0.88rem; resize: vertical; }
.cm-form textarea:focus { outline: none; border-color: rgba(255, 255, 255, 0.18); }
.cm-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cm-switch { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: var(--panel-3, #16171d); font-size: 0.78rem; color: var(--muted); cursor: pointer; }
.cm-switch input { appearance: none; -webkit-appearance: none; width: 30px; height: 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); position: relative; cursor: pointer; transition: background 0.16s ease; }
.cm-switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform 0.16s ease; }
.cm-switch input:checked { background: #3461f5; }
.cm-switch input:checked::after { transform: translateX(14px); }
.cm-send { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.cm-note { margin: 10px 0 0; color: var(--muted); font-size: 0.74rem; }
.cm-login { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px; background: var(--panel, #101116); font-size: 0.84rem; color: var(--muted); margin-bottom: 30px; }
.cm-login svg { width: 18px; height: 18px; }
.cm-login p { margin: 0; flex: 1; }
.cm-list { display: flex; flex-direction: column; gap: 14px; }
.cm-item { display: flex; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--panel, #101116); }
.cm-item.is-pending { opacity: 0.72; }
.cm-ava { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3, #1a1b22); font-weight: 700; font-size: 0.9rem; }
.cm-ava > img:first-child { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cm-ava .cm-frame { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); object-fit: contain; pointer-events: none; border-radius: 0; }
.cm-main { flex: 1; min-width: 0; }
.cm-head { margin: 0 0 6px; font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cm-head b { color: var(--text); font-weight: 700; }
.cm-pill { font-style: normal; font-size: 0.68rem; padding: 2px 7px; border-radius: 999px; background: rgba(200, 140, 40, 0.18); color: #f0b45a; }
.cm-text p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--text); white-space: pre-wrap; }
.cm-text.has-spoiler p { filter: blur(5px); user-select: none; }
.cm-text.has-spoiler.is-open p { filter: none; user-select: auto; }
.cm-reveal { margin-top: 8px; font-size: 0.74rem; color: #8fb0ff; background: none; cursor: pointer; }
.cm-text.is-open .cm-reveal { display: none; }
.cm-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.cm-vote { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--panel-3, #16171d); color: var(--muted); font-size: 0.76rem; cursor: pointer; }
.cm-vote svg { width: 14px; height: 14px; }
.cm-vote:hover { color: var(--text); }
.cm-vote.is-on { background: rgba(52, 97, 245, 0.2); color: #9db9ff; }
.cm-vote.is-down.is-on { background: rgba(220, 80, 80, 0.18); color: #ff9a8a; }
.cm-vote:disabled { opacity: 0.4; cursor: default; }
.cm-empty { color: var(--muted); font-size: 0.84rem; }

/* la pastille de saison remonte au niveau du header */
@media (min-width: 761px) {
  .dp-season-bubble { position: absolute; top: calc(var(--header) + 6px); left: 50%; transform: translateX(-50%); z-index: 6; margin: 0; }
  .dp-inner { padding-top: calc(var(--header) + 92px); }
}
.dp-season-bubble.is-followed { border-color: rgba(72, 199, 142, 0.55); background: rgba(24, 120, 84, 0.2); }
.dp-season-bubble.is-followed .dp-season-ico { color: #63d6a1; }
.dp-season-bubble.is-followed .dp-season-txt em { color: #8ce7bb; }
.dp-season-btn.is-on { background: #1f9d63; color: #fff; border-color: transparent; }
.dp-season-btn.is-on:hover { background: #23b473; color: #fff; }

/* ---------- panneau admin : commentaires ---------- */
.adm-cmt-titles, .adm-cmt-pending, .adm-cmt-blocks { margin: 26px 0; }
.adm-cmt-titles h2, .adm-cmt-pending h2, .adm-cmt-blocks h2 { margin: 0 0 12px; font-size: 1rem; }
.adm-cmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.adm-cmt-card { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 10px; background: var(--panel-3, #16171d); border: 1px solid transparent; }
.adm-cmt-card:hover { border-color: rgba(255, 255, 255, 0.16); }
.adm-cmt-card.is-active { border-color: #3461f5; }
.adm-cmt-card img, .adm-cmt-noimg { width: 100%; aspect-ratio: 2 / 3; border-radius: 7px; object-fit: cover; background: #0f1015; }
.adm-cmt-card strong { font-size: 0.78rem; line-height: 1.25; }
.adm-cmt-card em { font-style: normal; font-size: 0.68rem; color: var(--muted); }
.adm-cmt-card.is-all { justify-content: center; align-items: center; text-align: center; font-size: 0.8rem; }
.adm-cmt-card.is-all span { font-size: 1.1rem; font-weight: 800; }
.adm-cmt-body { max-width: 420px; color: var(--text); font-size: 0.8rem; line-height: 1.45; }
.adm-block-add { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.adm-block-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-block-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 999px; background: var(--panel-3, #16171d); font-size: 0.74rem; }
.adm-block-chip button { width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-size: 0.62rem; cursor: pointer; }

/* ---------- calendrier : mes suivis ---------- */
.cal-lead { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--panel-3, #16171d); color: var(--muted); font-size: 0.84rem; line-height: 1.5; }

/* ---------- admin : stats cliquables (sorties) ---------- */
.adm-stats a.is-link { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--hover); color: inherit; border: 1px solid transparent; transition: border-color 0.15s ease; }
.adm-stats a.is-link:hover { border-color: rgba(255, 255, 255, 0.16); }
.adm-stats a.is-link.is-on { border-color: #3461f5; }

/* ---------- wishboard : filtres de statut ---------- */
.wish-states { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 20px; }
.wish-states button { height: 32px; padding: 0 13px; border: 0; border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: color 0.15s ease, background 0.15s ease; }
.wish-states button:hover { color: var(--text); background: var(--panel-3); }
.wish-states button.is-active { background: #ff3d86; color: #fff; }

/* ---------- fiches : onglets + commentaires (profil encadré, déco) ---------- */
.dp-tabs { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 22px 0 0; padding: 4px; border: 0; border-radius: 12px; background: var(--panel-2, #12131a); }
.dp-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; margin: 0; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: 0.86rem; font-weight: 700; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.dp-tab svg { width: 15px; height: 15px; }
.dp-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.dp-tab.is-active { color: #fff; border-bottom-color: transparent; background: var(--panel-3, #1c1d26); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
.dp-tab em { font-style: normal; font-size: 0.7rem; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--text); }
.dp-tab.is-active em { background: #3461f5; color: #fff; }

.cm-ava { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14), 0 0 0 4px rgba(0, 0, 0, 0.45); }
.cm-ava > img:first-child { display: none; }
.cm-ava-face { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: inherit; }
.cm-ava-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-ava.is-framed { width: 74px; height: 74px; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.cm-ava.is-framed .cm-ava-face { inset: 14% 15%; border-radius: 10px; background: var(--panel-3, #1a1b22); }
.cm-ava .cm-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2; pointer-events: none; border-radius: 0; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5)); }
.cm-item .cm-ava.is-framed, .cm-form .cm-ava.is-framed { margin: -12px -14px -4px -4px; }
.cm-ava { width: 48px; height: 48px; }

/* badges du profil (admin / VIP) à côté du nom */
.cm-tags { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.cm-tag { position: relative; width: 22px; height: 22px; padding: 2px; border-radius: 6px; display: inline-grid; place-items: center; background: var(--panel-3, #16171d); cursor: help; }
.cm-tag img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 4px; }
.cm-tag.is-admin { box-shadow: 0 0 0 1px rgba(255, 96, 96, 0.55); }
.cm-tag.is-vip { box-shadow: 0 0 0 1px rgba(255, 214, 110, 0.6); }
.cm-tag::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(4px); padding: 4px 8px; border-radius: 6px; background: #0b0c11; border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.14s ease, transform 0.14s ease; z-index: 6; }
.cm-tag:hover::after, .cm-tag:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.cm-head b.is-grad { background: var(--cm-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cm-ava.is-framed[data-frame="astral"] .cm-ava-face { inset: 16.1% 16.7% 26.7% 15%; }
.cm-ava.is-framed[data-frame="halloween"] .cm-ava-face { inset: 13.9% 15%; }
.cm-ava.is-framed[data-frame="titan"] .cm-ava-face { inset: 27.2% 27.2% 23.3% 25%; }
.cm-ava.is-framed[data-frame="boom"] .cm-ava-face { inset: 18.3% 15% 15%; }
.cm-ava.is-framed[data-frame="kraken"] .cm-ava-face { inset: 22.8% 21.7% 15.0% 22.2%; }
.cm-ava.is-framed[data-frame="paladin"] .cm-ava-face { inset: 26.1% 25.6% 22.2% 18.3%; }
.cm-ava.is-framed[data-frame="neko"] .cm-ava-face { inset: 28.3% 10.6% 11.1% 10.6%; }
.cm-ava.is-framed[data-frame="cosy"] .cm-ava-face { inset: 29.4% 25.6% 18.9% 31.7%; }
.cm-ava.is-framed[data-frame="noel"] .cm-ava-face { inset: 25.6% 18.3% 18.9% 16.7%; }
.cm-ava.is-framed[data-frame="nocturne"] .cm-ava-face { inset: 26.7% 11.1% 8.3% 11.7%; }
.cm-ava.is-framed[data-frame="glam"] .cm-ava-face { inset: 12.8% 18.3% 16.1% 18.3%; }
.cm-ava.is-framed[data-frame="sanctuaire"] .cm-ava-face { inset: 24.4% 26.1% 19.4% 21.1%; }

/* ---------- catalogue : pagination ---------- */
.cat-pages { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 30px 0 10px; }
.cat-pg { min-width: 38px; height: 38px; padding: 0 10px; border: 0; border-radius: 9px; background: var(--panel-2, #12131a); color: var(--muted); font-size: 0.84rem; font-weight: 700; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.cat-pg:hover:not(:disabled) { background: var(--panel-3, #1c1d26); color: var(--text); }
.cat-pg.is-on { background: #3461f5; color: #fff; }
.cat-pg.is-nav { font-size: 1rem; }
.cat-pg:disabled { opacity: 0.35; cursor: default; }
.cat-pg-info { margin-left: 8px; font-size: 0.78rem; color: var(--muted); }

/* ---------- wishboard : demandes prioritaires (VIP) ---------- */
.wish-prio { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; padding: 2px 8px 2px 6px; border-radius: 999px; background: rgba(255, 205, 92, 0.16); border: 1px solid rgba(255, 205, 92, 0.45); color: #ffd76a; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em; }
.wish-prio svg { width: 11px; height: 11px; }
.wd-prio { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 4px 10px; border-radius: 999px; background: rgba(255, 205, 92, 0.14); border: 1px solid rgba(255, 205, 92, 0.4); color: #ffd76a; font-size: 0.72rem; font-weight: 800; }
.wd-prio[hidden] { display: none; }
.wd-prio svg { width: 12px; height: 12px; }

/* ---------- gift.nelya.xyz / discord.nelya.xyz ---------- */
.gift-page, .dcx { min-height: 100vh; display: grid; place-items: center; padding: 40px 18px; position: relative; overflow: hidden; background: #08090c; }
.gift-glow, .dcx-glow { position: absolute; width: 620px; height: 620px; border-radius: 50%; filter: blur(90px); background: radial-gradient(circle, rgba(52, 97, 245, 0.35), transparent 65%); }
.gift-card, .dcx-card { position: relative; width: 100%; max-width: 460px; padding: 30px 26px; border-radius: 18px; background: var(--panel-2, #12131a); border: 1px solid rgba(255, 255, 255, 0.08); text-align: center; }
.gift-tag, .dcx-brand { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 205, 92, 0.14); color: #ffd76a; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; }
.gift-tag svg, .dcx-brand svg { width: 14px; height: 14px; }
.dcx-brand { background: rgba(255, 255, 255, 0.06); color: var(--text); font-size: 0.9rem; }
.gift-card h1, .dcx-card h1 { margin: 18px 0 8px; font-size: 1.6rem; }
.gift-sub, .dcx-sub { margin: 0 auto 18px; max-width: 340px; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.gift-code { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 0 0 16px; }
.gift-code code { padding: 10px 14px; border-radius: 9px; background: #0c0d12; border: 1px dashed rgba(255, 255, 255, 0.18); font-size: 0.95rem; letter-spacing: 0.06em; color: var(--text); }
.gift-copy { height: 36px; padding: 0 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: var(--text); font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.gift-btn, .dcx-btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; margin-top: 6px; height: 44px; padding: 0 18px; border-radius: 10px; background: #3461f5; color: #fff; font-size: 0.86rem; font-weight: 700; }
.gift-btn:hover, .dcx-btn:hover { background: #2a50d8; }
.dcx-btn svg, .gift-btn svg { width: 15px; height: 15px; }
.gift-note { margin: 10px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.gift-note b { color: var(--text); }
.gift-note.is-used { color: #ff9a8a; font-weight: 700; }
.gift-note.is-free { color: #6fd6a1; font-weight: 700; }
.gift-alt, .dcx-note { display: inline-block; margin-top: 18px; color: var(--muted); font-size: 0.76rem; }
.gift-alt:hover { color: var(--text); }
.gift-who { margin: 18px 0 0; }
.gift-label { margin: 0 0 10px; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.gift-profile { display: flex; justify-content: center; }
.gift-profile .pcard { width: 190px; }
.gift-name { margin: 10px 0 0; font-size: 0.95rem; font-weight: 700; }

/* ---------- admin : lien cadeau ---------- */
.adm-gift { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.7rem; color: var(--muted); }
.adm-gift a { color: #8fb0ff; text-decoration: underline; }
