@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --bg: #0e0b08;
  --bg-2: #1a1612;
  --bg-3: #2a241c;
  --line: rgba(246, 241, 232, 0.12);
  --text: #fff8ee;
  --muted: #efe4d4;
  --faint: #d2c4ae;
  --amber: #d4af37;
  --amber-dim: rgba(212, 175, 55, 0.18);
  --ink: #1c1408;
  --film: #9ec7d2;
  --serie: #e7a08a;
  --danger: #ffb0a6;
  --ok: #b7d3a4;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --nav-h: calc(78px + env(safe-area-inset-bottom));
  --serif: "Nunito", "Outfit", "Avenir Next", sans-serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(240, 180, 41, 0.16), transparent 55%),
    var(--bg);
}

button, input, textarea { font: inherit; color: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

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

::selection { background: rgba(240, 180, 41, 0.35); }

.app-frame {
  width: min(720px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: rgba(16, 14, 12, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.logo-mark { width: 28px; height: 28px; display: block; flex: none; object-fit: contain; }
.brand-compact { align-items: flex-end; padding-top: 8px; }
.coach-btn { width: 52px; height: 52px; color: #d4af37; border-color: #d4af37; }
.coach-btn .icon { width: 28px; height: 28px; }
.back-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 4px 0 8px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 800;
}
.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 0 18px;
  border-radius: 20px;
  border: 2px solid #d4af37;
  background: #241e16;
  color: #fff8ee;
  font-family: "Nunito", var(--sans);
  font-weight: 800;
  font-size: 1.2rem;
}
.lang-panel { display: grid; gap: 8px; margin-top: 10px; }
.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  border-radius: 28px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}
.carousel-card { scroll-snap-align: start; }
.carousel-card {
  position: relative;
  flex: 0 0 min(78vw, 340px);
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background: #1a1612;
  touch-action: pan-x pan-y;
}
.carousel-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.carousel-copy {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 16px;
  background: linear-gradient(to top, rgba(14, 11, 8, 0.94), transparent);
  pointer-events: none;
}
.carousel-copy .btn-primary { pointer-events: auto; min-height: 48px; }
.carousel-copy h2 { margin: 0; font-family: "Nunito", var(--sans); font-weight: 800; font-size: 1.6rem; }
.cinema-row { margin: 10px 0; padding: 12px 0; border-top: 1px solid var(--line); }
.account-link { display: inline-grid; place-items: center; min-height: 52px; margin-top: 12px; text-decoration: none; }
.status-pair { align-items: center; }

.fold { margin: 10px 0; border-top: 1px solid var(--line); }
.fold summary { min-height: 48px; font-weight: 800; cursor: pointer; }
.cast-link, .local-note, .spoil {
  display: inline-flex;
  margin: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
}
.spoil { filter: blur(7px); }
.spoil.is-open { filter: none; }
.detail-stars { display: flex; gap: 6px; margin: 8px 0 14px; }
.detail-stars .star { width: 42px; height: 42px; border: 0; background: transparent; color: #6d624f; font-size: 1.6rem; }
.detail-stars .star.is-on { color: #d4af37; }
.badge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 24px; }
.badge { padding: 12px; border-radius: 16px; background: #1a1612; }
.badge.is-locked { filter: grayscale(1); opacity: 0.72; }
.badge.tier-bronze.is-on { box-shadow: inset 0 0 0 1px #a97142; }
.badge.tier-silver.is-on { box-shadow: inset 0 0 0 1px #c0c0c0; }
.badge.tier-gold.is-on { box-shadow: inset 0 0 0 1px #d4af37; }
.badge.is-new { animation: badge-gold 1.2s ease; }
.badge-name { margin: 0; font-weight: 800; }
.badge-bar { display: block; height: 6px; border-radius: 99px; background: #3a332b; overflow: hidden; }
.badge-bar::after { content: ""; display: block; height: 100%; width: 0; background: #d4af37; }
@keyframes badge-gold { 0% { transform: scale(0.9); box-shadow: 0 0 0 0 #d4af37; } 40% { transform: scale(1.06); box-shadow: 0 0 18px 4px #d4af37; } 100% { transform: scale(1); } }
.actor-page { z-index: 75; background: #0e0b08; }
.medium-picker { margin: 8px 0 12px; }
.home-section { margin: 18px 0 32px; }
.home-section h2 { margin-bottom: 12px; }

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(0.98rem, 3.5vw, 1.22rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  white-space: nowrap;
}

.header-actions { display: flex; gap: 8px; }

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main {
  padding: 4px 16px calc(var(--nav-h) + 36px);
}

.credits {
  display: none;
}
.credits a { color: inherit; }

h1 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lead {
  margin: 8px 0 16px;
  color: var(--muted);
  max-width: 42ch;
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 12px 0 14px;
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.searchbox:focus-within { border-color: rgba(212, 175, 55, 0.85); }
.searchbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  padding: 12px 0;
}
.searchbox .icon { color: var(--faint); flex: none; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 14px 0;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }

.chip {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.chip.is-on {
  color: var(--amber);
  background: var(--amber-dim);
  border-color: transparent;
}

.block-title, .section-title, .month {
  margin: 18px 0 6px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.row > div { min-width: 0; }
.row-title {
  display: block;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.row-sub { display: block; }

.row-sub, .snippet {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 72px;
}

.score {
  font-family: var(--serif);
  color: var(--amber);
  font-size: 1.05rem;
  font-weight: 560;
}

.chevron { color: var(--faint); }

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #3a3127, #211c17 70%);
  display: grid;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
.poster-sm { width: 56px; }
.poster-md { width: 72px; }
.poster img, .poster-fallback { grid-area: 1 / 1; width: 100%; height: 100%; }
.poster img { object-fit: cover; }
.poster-fallback {
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--amber);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.pill-vu { color: var(--ok); background: rgba(183, 211, 164, 0.12); border-color: transparent; }
.pill-a_voir { color: var(--amber); background: var(--amber-dim); border-color: transparent; }
.pill-en_cours { color: var(--serie); background: rgba(231, 160, 138, 0.14); border-color: transparent; }
.pill-film { color: var(--film); }
.pill-serie { color: var(--serie); }
.pill-add {
  color: var(--ink);
  background: var(--amber);
  border-color: transparent;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
}
.stat {
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat span { color: var(--muted); font-size: 0.75rem; }

.empty {
  text-align: center;
  padding: 36px 8px 8px;
}
.empty .logo-mark { width: 56px; height: 56px; margin: 0 auto; }
.empty h2 {
  margin: 12px 0 6px;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.45rem;
}
.empty p { margin: 0 auto 16px; max-width: 36ch; color: var(--muted); }

.hint { color: var(--faint); font-size: 0.86rem; margin: 8px 0; }
.alert { color: var(--danger); font-size: 0.92rem; margin: 8px 0 0; }

.field { display: grid; gap: 6px; margin-top: 14px; }
.field > span, .label-row > span:first-child { color: var(--muted); font-size: 0.82rem; }
.label-row { display: flex; align-items: baseline; gap: 10px; }
#rating-value { font-family: var(--serif); color: var(--amber); font-size: 1rem; }

.input, textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  padding: 12px 14px;
  font-size: 16px;
}
.input { min-height: 48px; }
textarea { min-height: 96px; resize: vertical; }
.input:focus, textarea:focus, .searchbox:focus-within { outline: none; }

.segment {
  display: grid;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
}
.segment.cols-2 { grid-template-columns: repeat(2, 1fr); }
.segment.cols-3 { grid-template-columns: repeat(3, 1fr); }
.segment button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}
.segment button.is-on { background: var(--bg-3); color: var(--text); }

.stars { display: flex; gap: 2px; }
.star {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}
.star svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.star-bg { fill: rgba(246, 241, 232, 0.18); }
.star-fg { fill: var(--amber); clip-path: inset(0 100% 0 0); }
.star[data-fill="half"] .star-fg { clip-path: inset(0 50% 0 0); }
.star[data-fill="full"] .star-fg { clip-path: inset(0 0 0 0); }

.text-btn {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 4px;
}
.searchbox .text-btn { margin-left: 0; flex: none; }

.btn-primary, .btn-secondary, .btn-ghost {
  min-height: 48px;
  border-radius: 14px;
  font-weight: 600;
}
.btn-primary {
  width: 100%;
  margin-top: 16px;
  border: 0;
  background: var(--amber);
  color: var(--ink);
}
.btn-secondary {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}
.btn-ghost {
  width: 100%;
  margin-top: 4px;
  border: 0;
  background: none;
  color: var(--danger);
  font-weight: 500;
}
.btn-primary:disabled, .btn-secondary:disabled { opacity: 0.55; cursor: wait; }
.btn-row { display: grid; gap: 8px; margin-top: 12px; }
@media (min-width: 480px) {
  .btn-row.two { grid-template-columns: 1fr 1fr; }
}

.account-card {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.monogram {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
}
.account-card p { margin: 0; }
.account-card .hint { margin: 2px 0 0; }

.tabbar.tabs-3 { grid-template-columns: repeat(3, 1fr); }
.tabbar.tabs-5 { grid-template-columns: repeat(5, 1fr); }

.odometers { display: grid; gap: 10px; margin: 8px 0 16px; }
.odometer {
  padding: 12px 14px 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.odometer-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.odometer-units { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
.odo-unit { display: grid; justify-items: center; min-width: 0; }
.odo-unit b {
  font-family: "Nunito", var(--sans);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.odo-unit span { color: var(--muted); font-size: 0.68rem; }
.odometer[data-odo="all"] b { color: var(--amber); }

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 0.95rem;
}
.switch input { width: 22px; height: 22px; accent-color: var(--amber); }
.release { grid-template-columns: minmax(0, 1fr) auto; }

.boot {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  background: #100e0c;
}
.boot img {
  width: 96px;
  height: 96px;
  border-radius: 28px;
}
.boot p {
  margin: 0;
  font-family: "Nunito", "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.tabbar {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(720px, calc(100% - 16px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(28, 24, 20, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 54px;
  padding: 6px 2px;
  border-radius: 16px;
  color: var(--faint);
  text-decoration: none;
  font-size: 11px;
}
.tab.is-on { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.tab.is-on .icon { color: var(--amber); }
.dot {
  position: absolute;
  top: 8px;
  right: calc(50% - 18px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.quit-sheet { z-index: 100; }
.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.58);
}
.sheet-card {
  width: min(560px, 100%);
  max-height: min(92dvh, 820px);
  overflow: auto;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: var(--bg-2);
  box-shadow: var(--shadow);
}
.handle {
  width: 42px;
  height: 4px;
  margin: 6px auto 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
}
.sheet-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.sheet-head h2 {
  margin: 2px 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.eyebrow {
  margin: 0;
  color: var(--amber);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  z-index: 60;
  bottom: calc(var(--nav-h) + 8px);
  left: 50%;
  transform: translateX(-50%);
  max-width: min(440px, calc(100% - 24px));
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #2c261e;
  box-shadow: var(--shadow);
  text-align: center;
}

.ad-slot:not([hidden]) {
  position: fixed;
  z-index: 19;
  left: 50%;
  bottom: calc(var(--nav-h) - 6px);
  transform: translateX(-50%);
  width: min(720px, calc(100% - 24px));
  height: 52px;
}
body.ads-on main { padding-bottom: calc(var(--nav-h) + 74px); }

.skel { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 0; }
.skel-poster, .skel-lines span {
  background: linear-gradient(90deg, #2a241c, #3a3228, #2a241c);
  background-size: 200% 100%;
  animation: sheen 1.2s ease-in-out infinite;
}
.skel-poster { width: 56px; aspect-ratio: 2 / 3; border-radius: 10px; }
.skel-lines { display: grid; gap: 8px; align-content: center; }
.skel-lines span { display: block; height: 12px; border-radius: 6px; }
.skel-lines span:first-child { width: 72%; }
.skel-lines span:last-child { width: 42%; }

.noscript {
  margin: 24px 16px;
  color: var(--text);
}

@media (min-width: 720px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet-card { border-radius: 22px; }
}

.poster-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: start;
  color: var(--text);
}
.poster-card .frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-3);
}
.poster-card img { width: 100%; height: 100%; object-fit: cover; }
.poster-card .imdb-badge { position: absolute; top: 8px; inset-inline-start: 8px; font-size: 0.78rem; }
.poster-card-title {
  display: block;
  margin-top: 8px;
  font-family: "Nunito", var(--sans);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
}
.rail-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 2px 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}
.home-hero {
  position: relative;
  min-height: 460px;
  margin: 8px 0 22px;
  border-radius: 28px;
  overflow: hidden;
  background: #1a1612;
}
.home-hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-hit {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  background: transparent;
  touch-action: pan-x pan-y;
}
.hero-copy { pointer-events: none; }
.hero-copy .hero-actions, .hero-copy .hero-dots { pointer-events: auto; }
.poster-card img, .suggest-row img, .row img { pointer-events: none; }
.detail {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: auto;
  background: #0e0b08;
  color: var(--text);
}
.detail.is-arming { pointer-events: none; }
.detail-hero { position: relative; height: 46vh; min-height: 240px; background: #1a1612; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-back {
  position: absolute;
  z-index: 2;
  top: calc(12px + env(safe-area-inset-top));
  inset-inline-end: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 11, 8, 0.78);
  color: var(--text);
  font-weight: 800;
}
.detail-body { padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); }
.detail-body h1 {
  margin: 4px 0 8px;
  font-family: "Nunito", var(--sans);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.04em;
}
.detail-synopsis { font-size: 1.05rem; line-height: 1.45; }
.season-block { margin: 14px 0; }
.season-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  font-size: 1.1rem;
  text-align: start;
  touch-action: manipulation;
}
.ep-check.is-partial { background: var(--amber-dim); }
.episode-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  margin: 4px 0;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  text-align: start;
  color: var(--text);
}
.ep-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--amber);
  display: grid;
  place-items: center;
  color: #1a1408;
  font-weight: 800;
}
.ep-check.is-on { background: var(--amber); }
body.detail-open { overflow: hidden; }
.home-hero .hero-shade, .detail-hero .hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(14, 11, 8, 0.96) 12%, rgba(14, 11, 8, 0.2) 55%, rgba(14, 11, 8, 0.35));
}
.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  padding: 22px 18px 18px;
}
.hero-copy h2 {
  margin: 6px 0 4px;
  font-family: "Nunito", var(--sans);
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.hero-meta { margin: 0 0 14px; color: var(--text); font-size: 1.05rem; }
.imdb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-end: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--amber);
  color: #1a1408;
  font-family: "Nunito", var(--sans);
  font-weight: 800;
}
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-actions .btn-primary, .hero-actions .btn-secondary { min-height: 54px; font-size: 1.05rem; font-weight: 800; border-radius: 18px; }
.hero-dots { display: flex; gap: 8px; margin-top: 14px; }
.hero-dots button {
  width: 12px; height: 12px; border-radius: 999px; border: 0; background: rgba(246, 241, 232, 0.35);
}
.hero-dots button.is-on { background: var(--amber); }
.home-section { margin: 8px 0 26px; }
.home-section h2 {
  margin: 0 0 6px;
  font-family: "Nunito", var(--sans);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 22px; }
.nav-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  text-decoration: none;
  color: var(--text);
  font-family: "Nunito", var(--sans);
  font-weight: 800;
  font-size: 1.05rem;
}
.nav-tile .icon { color: var(--amber); width: 26px; height: 26px; }
.account-card-link {
  display: block;
  margin: 8px 0 12px;
  padding: 18px;
  border-radius: 24px;
  background: var(--amber);
  color: #1a1408;
  text-decoration: none;
}
.account-card-link strong {
  display: block;
  font-family: "Nunito", var(--sans);
  font-weight: 800;
  font-size: 1.45rem;
}
.account-card-link span { display: block; margin-top: 4px; font-size: 1rem; }
.lang-list { display: grid; gap: 8px; }
.lang-option {
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: transparent;
  text-align: start;
  font-size: 1.05rem;
}
.lang-option.is-on { border-color: var(--amber); color: var(--amber); font-weight: 800; }
.suggest {
  display: grid;
  gap: 6px;
  margin: 8px 0 12px;
}
.suggest-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  text-align: start;
}
.suggest-row img, .suggest-fallback { width: 42px; height: 62px; object-fit: cover; border-radius: 10px; background: var(--bg-3); }
.profile-btn img { width: 28px; height: 28px; border-radius: 999px; object-fit: cover; }
.profile-photo { width: 84px; height: 84px; border-radius: 24px; object-fit: cover; background: #1a1612; }
html[dir="rtl"] .hero-copy, html[dir="rtl"] .home-section, html[dir="rtl"] .account-card-link { text-align: right; }

@media (hover: hover) {
  .icon-btn:hover, .chip:hover, .tab:hover { border-color: rgba(212, 175, 55, 0.55); }
  .row:hover { background: rgba(255, 255, 255, 0.03); }
}

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

@keyframes sheen {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.check-row { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.badge-bar[data-pct="0"]::after { width: 0%; }
.badge-bar[data-pct="5"]::after { width: 5%; }
.badge-bar[data-pct="10"]::after { width: 10%; }
.badge-bar[data-pct="15"]::after { width: 15%; }
.badge-bar[data-pct="20"]::after { width: 20%; }
.badge-bar[data-pct="25"]::after { width: 25%; }
.badge-bar[data-pct="30"]::after { width: 30%; }
.badge-bar[data-pct="35"]::after { width: 35%; }
.badge-bar[data-pct="40"]::after { width: 40%; }
.badge-bar[data-pct="45"]::after { width: 45%; }
.badge-bar[data-pct="50"]::after { width: 50%; }
.badge-bar[data-pct="55"]::after { width: 55%; }
.badge-bar[data-pct="60"]::after { width: 60%; }
.badge-bar[data-pct="65"]::after { width: 65%; }
.badge-bar[data-pct="70"]::after { width: 70%; }
.badge-bar[data-pct="75"]::after { width: 75%; }
.badge-bar[data-pct="80"]::after { width: 80%; }
.badge-bar[data-pct="85"]::after { width: 85%; }
.badge-bar[data-pct="90"]::after { width: 90%; }
.badge-bar[data-pct="95"]::after { width: 95%; }
.badge-bar[data-pct="100"]::after { width: 100%; }

/* ===== 1.4 ===== */

/* 4, 18, 19 : barre du haut = logo seul au centre, « Mon compte » tout à droite, sous l’encoche. */
.topbar.topbar-14 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: calc(env(safe-area-inset-top) + 18px) 14px 10px;
}
.topbar-side { display: flex; min-width: 0; }
.topbar-14 .header-actions { justify-content: flex-end; }
.brand-center { justify-self: center; padding: 0; }
.brand-center .logo-mark { width: 40px; height: 40px; }
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #d4af37;
  text-decoration: none;
  font-family: "Nunito", var(--sans);
  font-weight: 800;
}
.account-btn .icon { width: 30px; height: 30px; }
.account-label { display: none; white-space: nowrap; color: var(--text); }
body[data-route="compte"] .account-label { display: inline; }

/* 5 : écran compte centré. */
.account-screen { text-align: center; max-width: 520px; margin-inline: auto; }
.account-screen .account-card { flex-direction: column; justify-content: center; text-align: center; }
.account-screen .field { text-align: center; }
.account-screen .input { text-align: center; }
.account-screen .switch { justify-content: center; }
.account-screen .btn-row { justify-items: stretch; }
.account-screen .section-title { text-align: center; }
.app-version { margin-top: 18px; opacity: 0.8; }

/* 9, 10 : « À voir » et « Vu » neutres au repos ; actif doré (À voir), doré plus sombre (Vu). */
.status-btn { transition: background 160ms ease, color 160ms ease, border-color 160ms ease; margin-top: 0; }
.status-btn.is-chosen.status-todo { background: #e0b83f; border-color: #e0b83f; color: #0e0b08; }
.status-btn.is-chosen.status-vu { background: #9a7420; border-color: #9a7420; color: #fff8ee; }

/* 14 : affiches strictement identiques (2:3), titres sur 2 lignes fixes. */
.poster-card { flex: 0 0 148px; width: 148px; max-width: 148px; display: flex; flex-direction: column; }
.poster-card .frame { width: 148px; height: 222px; aspect-ratio: 2 / 3; flex: none; }
.poster-card .frame .poster-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-size: 2rem; font-weight: 800; color: var(--muted, #b9ad9a); }
.poster-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 2.4em;
  line-height: 1.2;
  word-break: break-word;
}
.poster-card-note {
  display: block;
  margin-top: 4px;
  height: 1.25em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #d4af37;
  font-size: 0.82rem;
  font-weight: 700;
}

/* 1 : saisons repliables. */
.season-line { display: flex; align-items: center; gap: 12px; }
.season-check { flex: none; width: 30px; height: 30px; background: transparent; padding: 0; font: inherit; font-weight: 800; }
.season-check.is-on { background: var(--amber); }
.season-head {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.season-head .row-sub { margin: 0; }
.season-chevron { transition: transform 160ms ease; color: #d4af37; }
.is-open > .season-line .season-chevron, .badge-toggle.is-open .season-chevron { transform: rotate(180deg); }
.season-episodes { padding: 6px 0 4px 42px; }

/* 11, 12 : distribution visible, menu du casting en liste aérée pleine largeur. */
.cast-block h2 { margin-bottom: 10px; }
.cast-grid { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
@media (min-width: 560px) { .cast-grid { grid-template-columns: 1fr 1fr; } }
.cast-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 8px 14px 8px 8px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  text-align: start;
  font: inherit;
}
.cast-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--bg-3); }
.cast-initial { display: grid; place-items: center; font-weight: 800; color: #d4af37; font-size: 1.3rem; }
.cast-text { display: grid; gap: 2px; min-width: 0; }
.cast-text strong { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cast-text .row-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cast-more { margin-top: 12px; }
.cast-page { z-index: 80; background: #0e0b08; }
.layer-body { padding-top: calc(env(safe-area-inset-top) + 22px); }
.actor-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 10px; }
.work-list { display: grid; gap: 8px; }
.work-row {
  display: grid; gap: 2px; width: 100%; min-height: 56px; padding: 10px 14px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--text); text-align: start; font: inherit;
}
.wiki-source a { color: #d4af37; }

/* 8 : badges regroupés dans un menu au clic. */
.badge-menu { margin: 16px 0 24px; }
.badge-toggle {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid #d4af37;
  background: #1a1612;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: start;
}
.badge-count { color: #d4af37; font-weight: 700; }
.badge-dot { position: static; }
.badge-menu .badge-grid { margin-top: 10px; }

/* 20 : pop-up « Voulez-vous quitter ? » en bas de l’écran (app Android). */
.quit-sheet { align-items: flex-end; }
.quit-card { padding-bottom: calc(18px + env(safe-area-inset-bottom)); text-align: center; }
.quit-card .btn-row.two { grid-template-columns: 1fr 1fr; }
.quit-card .btn-primary { margin-top: 0; }

.photo-pick { display: grid; place-items: center; min-height: 48px; border-radius: 18px; }
.discover-picture { width: 100%; height: 220px; object-fit: cover; border-radius: 22px; }
.detail-synopsis { white-space: pre-line; }
