
:root {
  color-scheme: dark;
  --glass-blur: blur(18px) saturate(160%);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
/* The home poster and the player sit on images or black: they stay dark in both themes. */
:root,
.hero,
.player {
  --bg: #000000;
  --elevated: #181818;
  --surface: #242424;
  --surface-2: #2a2a2a;
  --surface-3: #3e3e3e;
  --line: #2a2a2a;
  --text: #ffffff;
  /* The quieter texts: the text's own colour, fainter (they take the tint of what is under them). */
  --muted: #ffffffb3;
  --subtle: #ffffff7a;
  /* The same greys, opaque, for the icons: in a see-through colour their strokes overlap, and each crossing shows. */
  --icon-muted: #b3b3b3;
  --icon-subtle: #7a7a7a;
  --accent: #ffffff;
  --accent-soft: #ffffff;
  --on-accent: #121212;
  --glass: #ffffff24;
  --glass-edge: inset 0 0 0 0.5px #ffffff38;
  --fill: #ffffff1a;
  --pill: #383838;
  --track: #ffffff33;
  --hairline: #ffffff14;
  --bar: #161616d9;
  --bar-edge: #ffffff26;
  --toast-bg: #2a2a2ae6;
  --sk-a: #ffffff0f;
  --sk-b: #ffffff21;
  --star-off: #ffffff47;
  --grabber: #ffffff59;
  --search-bg: #ffffff;
  --scrim: #000000d9;
  --scrim-solid: #000000;
  --ok: #5ad08b;
  --warn: #f3c56b;
  --danger: #ff8d84;
  --chart: #e86fe0;
  --chart-2: #199e70;
  --chart-rest: 0.6;
  --dialog: #2a2a2aa6;
}
.hero,
.player {
  color-scheme: dark;
}
html[data-theme='light'] {
  color-scheme: light;
  --bg: #ffffff;
  --elevated: #f5f5f7;
  --surface: #ececef;
  --surface-2: #e5e5ea;
  --surface-3: #d1d1d6;
  --line: #e5e5ea;
  --text: #111111;
  --muted: #111111af;
  --subtle: #11111179;
  --icon-muted: #5c5c5c;
  --icon-subtle: #8e8e8e;
  --accent: #111111;
  --accent-soft: #111111;
  --on-accent: #ffffff;
  --glass: #0000000f;
  --glass-edge: inset 0 0 0 0.5px #00000021;
  --fill: #0000000d;
  --pill: #e3e3e8;
  --track: #0000001f;
  --hairline: #00000014;
  --bar: #f9f9f9e6;
  --bar-edge: #0000002e;
  --toast-bg: #ffffffeb;
  --sk-a: #0000000a;
  --sk-b: #00000017;
  --star-off: #0000002e;
  --grabber: #0000002e;
  --search-bg: #ececef;
  --scrim: #ffffffe6;
  --scrim-solid: #ffffff;
  --ok: #1f8a4c;
  --warn: #a86a00;
  --danger: #d0362b;
  --chart: #b15bb5;
  --chart-2: #008a62;
  --chart-rest: 0.45;
  --dialog: #f5f5f7cc;
}
@media (prefers-color-scheme: light) {
  html[data-theme='auto'] {
  color-scheme: light;
  --bg: #ffffff;
  --elevated: #f5f5f7;
  --surface: #ececef;
  --surface-2: #e5e5ea;
  --surface-3: #d1d1d6;
  --line: #e5e5ea;
  --text: #111111;
  --muted: #111111af;
  --subtle: #11111179;
  --icon-muted: #5c5c5c;
  --icon-subtle: #8e8e8e;
  --accent: #111111;
  --accent-soft: #111111;
  --on-accent: #ffffff;
  --glass: #0000000f;
  --glass-edge: inset 0 0 0 0.5px #00000021;
  --fill: #0000000d;
  --pill: #e3e3e8;
  --track: #0000001f;
  --hairline: #00000014;
  --bar: #f9f9f9e6;
  --bar-edge: #0000002e;
  --toast-bg: #ffffffeb;
  --sk-a: #0000000a;
  --sk-b: #00000017;
  --star-off: #0000002e;
  --grabber: #0000002e;
  --search-bg: #ececef;
  --scrim: #ffffffe6;
  --scrim-solid: #ffffff;
  --ok: #1f8a4c;
  --warn: #a86a00;
  --danger: #d0362b;
  --chart: #b15bb5;
  --chart-2: #008a62;
  --chart-rest: 0.45;
  --dialog: #f5f5f7cc;
  }
}
* {
  box-sizing: border-box;
}
/* iOS: the elastic overscroll dragged the fixed tab bar along with the page. */
html,
body {
  overscroll-behavior-y: none;
}
/* No zoom on a double tap, which quick taps on the strip or the buttons triggered; pinch zoom stays. */
html {
  touch-action: manipulation;
}
/* Titles in lines of even length, no word alone on the last line of a paragraph. */
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
/* iOS Safari enlarges the text of a line wider than the screen (the first recos scrolling): never. */
html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* iOS web app: a page shorter than the screen lifted the fixed tab bar off the bottom edge. */
body {
  min-height: 100lvh;
  margin: 0;
  background: var(--bg);
  padding: max(16px, env(safe-area-inset-top)) 0 calc(96px + env(safe-area-inset-bottom));
}
main {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.icon {
  width: 22px;
  height: 22px;
  flex: none;
}

/* Typography */
h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 700;
}
p {
  margin: 8px 0;
  line-height: 1.5;
  color: var(--muted);
}
a {
  color: var(--accent-soft);
}
.section-title {
  margin: 28px 0 12px;
  font-size: 22px;
}
.small {
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
.lead {
  margin: 4px 0 14px;
}
/* Confirmations stay neutral: colour is kept for problems. */
.success {
  color: var(--muted);
}
.error {
  color: var(--danger);
}
.warn {
  color: var(--warn);
}
ul {
  color: var(--muted);
  line-height: 1.7;
}

/* The sign-in and the sign-up, dark: the background of their pink direction (Figma 212:941), the generated titles'
   letters cut out in it. */
html[data-theme='dark']:has(#onboarding:not([hidden]), #setup:not([hidden])) {
  --bg: #121212;
}
@media (prefers-color-scheme: dark) {
  html[data-theme='auto']:has(#onboarding:not([hidden]), #setup:not([hidden])) {
    --bg: #121212;
  }
}
/* The sign-in and the sign-up's steps have no tab bar: the screen down to its bottom edge. */
body:has(#onboarding:not([hidden])),
body:has(#setup:not([hidden])) {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* Forms */
label {
  display: block;
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
/* Fields rounded as the sign-up's key field: a pill of the same fill, no border. Not the switches, boxes and sliders,
   which draw their own. */
input:where(:not([type='checkbox'], [type='radio'], [type='range'])),
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  color: var(--text);
  font-size: 16px;
}
input::placeholder {
  color: var(--muted);
}
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
/* Secondary buttons: the frosted glass of the home's buttons. */
.secondary {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  color: var(--text);
}
.icon-button {
  margin: 0;
  padding: 8px;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* Header of each view */
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 8px 0 16px;
}
.top h1 {
  flex: 1;
}

/* Filter chips */
.chips {
  display: flex;
  gap: 8px;
  margin: 0 -16px 16px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
/* Every filter bar has the home's look: frosted glass, white once selected. */
.chips button,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.chips .icon {
  flex: none;
  width: 18px;
  height: 18px;
}
.chips button[aria-pressed='true'],
.chip-check:has(input:checked) {
  background: var(--accent);
  color: var(--on-accent);
}
.chip-check {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}
.chip-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
}

/* Search field: white, as on Spotify's search screen */
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--search-bg);
  color: #121212;
}
.searchbar input {
  padding: 13px 0;
  border: 0;
  background: transparent;
  color: #121212;
  font-size: 16px;
  font-weight: 500;
}
.searchbar input::placeholder {
  color: #121212ad;
}
.searchbar input:focus-visible {
  outline: none;
}
.searchbar:focus-within {
  outline: 2px solid var(--accent);
}
.searchbar.compact {
  background: var(--surface-2);
  color: var(--text);
}
.searchbar.compact input {
  color: var(--text);
  padding: 10px 0;
}

/* Home: its one action, Actualiser, a round button beside the greeting (see renderTodo) */
.todo {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.todo-item {
  display: grid;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}
.todo-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  color: var(--text);
}
.todo-icon .icon {
  width: 20px;
  height: 20px;
}
.todo-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}
.todo-icon.spinning > .icon {
  animation: todo-spin 1s linear infinite;
}
@keyframes todo-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .todo-icon.spinning > .icon {
    animation: none;
    opacity: 0.6;
  }
}
/* Home: carousels of posters */
.carousel {
  display: flex;
  gap: 14px;
  margin: 0 calc(-1 * var(--gutter, 16px));
  padding: 0 var(--gutter, 16px) 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter, 16px);
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.cover {
  display: grid;
  align-content: start;
  gap: 4px;
  flex: none;
  width: var(--cover, 132px);
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 400;
  scroll-snap-align: start;
  box-shadow: none;
}
.cover img {
  width: var(--cover, 132px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-2);
  margin-bottom: 4px;
}
/* The platforms' Top 10: each cover with its rank, a big outlined number on its left half hidden behind it, as the apps
   draw theirs. */
.cover.ranked {
  position: relative;
  width: calc(var(--cover, 132px) + 40px);
  padding-left: 40px;
}
.cover.ranked img {
  position: relative;
}
.rank {
  position: absolute;
  left: -2px;
  top: calc(var(--cover, 132px) * 1.5 - var(--cover, 132px) * 0.62);
  color: var(--bg);
  font-size: calc(var(--cover, 132px) * 0.74);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.06em;
  /* Stroked under its fill: the system font's glyphs overlap inside (the 2's), a stroke on top drew those lines. */
  -webkit-text-stroke: 4px var(--subtle);
  paint-order: stroke fill;
  pointer-events: none;
}
.rank.two {
  left: -10px;
  letter-spacing: -0.14em;
}
.cover strong {
  font-size: 14px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* List rows: thumbnail, title, subtitle, trailing actions */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.row img {
  flex: none;
  width: 48px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--surface-2);
}
/* minmax(0, …): a grid column otherwise widens to its text, and the ellipsis never applies. */
.row .info {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}
.row .info strong {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .info p {
  margin: 2px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rating buttons (rows, tiles and sheet) */
.rate {
  display: flex;
  gap: 4px;
}
.rate button {
  margin: 0;
  padding: 8px;
  border-radius: 999px;
  background: transparent;
  color: var(--subtle);
  box-shadow: none;
}
.rate button .icon {
  width: 20px;
  height: 20px;
}
.rate button[aria-pressed='true'] {
  color: #fff;
  background: var(--surface-3);
}
.rate button[aria-pressed='true'][data-choice='like'] {
  background: #2f6fd6;
}
.rate button[aria-pressed='true'][data-choice='love'] {
  background: #c7346c;
}
.rate button[aria-pressed='true'][data-choice='less'] {
  background: #8a5a12;
}

/* Grids of posters */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
/* The library: posters, as on the TV, three across a phone, more on a larger screen. */
.library-grid {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 18px 12px;
}
.library-grid .cover,
.library-grid .cover img {
  width: 100%;
}
/* Recherche: the people named, their photo round; a heading across the grid before what follows the results. */
.person-cover img {
  aspect-ratio: 1;
  border-radius: 50%;
}
.grid-title {
  grid-column: 1 / -1;
  margin: 16px 0 0;
}
/* « À noter »: the title's poster above its name, the three ratings, then « Marquer comme vu » (from a sheet) or Ignorer
   (its ✕ for « Plus tard »). */
.rate-ask #rate-ask-poster {
  display: block;
  width: 72px;
  aspect-ratio: 2 / 3;
  margin: 0 0 12px;
  border-radius: 8px;
  object-fit: cover;
}
.rate-ask #rate-ask-poster[hidden] {
  display: none;
}
.rate-ask .rate-row {
  margin: 18px 0 0;
}

/* Compte: library counts */
.count {
  display: flex;
  gap: 12px;
  margin: 8px 0 16px;
}
.count div {
  flex: 1;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--elevated);
}
.count strong {
  display: block;
  font-size: 28px;
}
#manifest {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--subtle);
  word-break: break-all;
}

.cell-switch {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 51px;
  height: 31px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), inset 0 0 0 1.5px var(--track);
  cursor: pointer;
  transition: background 0.15s;
}
.cell-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.3, 0.7, 0.4, 1.2);
}
.cell-switch:checked {
  background: var(--accent);
  box-shadow: none;
}
.cell-switch:checked::after {
  background: var(--on-accent);
  transform: translateX(20px);
}

/* Aide: source status table */
.table-wrap {
  overflow-x: auto;
}
/* Three periods, each as wide as its words. */
.segmented.admin-period {
  grid-template-columns: repeat(3, auto);
  width: fit-content;
  margin: 4px 0 12px auto;
}
.admin-period[hidden] {
  display: none;
}
.admin-period button {
  padding: 5px 12px;
  font-size: 12px;
  white-space: nowrap;
}
.admin-section {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 40px 0 14px;
  font-size: 22px;
}
.admin-section small {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 500;
}
/* The overview's cards, as Apple Health's: a name and its dates, a big figure, a chart (paintOverview). */
.admin-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--fill);
}
.admin-card + .admin-card,
.admin-grid + .admin-card,
.admin-card + .admin-grid,
.admin-grid + .admin-grid,
.admin-grid + .admin-status,
.admin-status + .admin-section {
  margin-top: 14px;
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.admin-grid > .admin-card {
  margin-top: 0;
}
.admin-card-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.admin-when {
  margin-left: auto;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.admin-kicker {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.admin-figure {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}
.admin-figure strong {
  font-size: 34px;
  line-height: 1.05;
}
.admin-figure span {
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
}
.admin-figure .admin-delta {
  font-size: 13px;
}
.admin-delta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.admin-delta.up {
  color: var(--ok);
}
.admin-versus {
  color: var(--subtle);
  font-size: 12px;
}
/* Lines of a list card (statRows): name and its detail on the left, the figure on the right, a thin meter under. */
.admin-rows {
  display: grid;
  gap: 16px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.admin-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
}
.admin-rows-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.admin-rows-text strong {
  font-size: 15px;
  font-weight: 600;
}
.admin-rows-text span {
  color: var(--muted);
  font-size: 13px;
}
.admin-rows b {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.admin-rows .admin-meter {
  grid-column: 1 / -1;
  height: 6px;
  margin-top: 8px;
}
.admin-lead {
  margin: 10px 0 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.admin-foot {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
/* « Qui revient »: a week of arrival a line, the share back each week tinted by how many (opaque mixes, no transparency). */
.admin-cohorts {
  width: 100%;
  margin-top: 12px;
  border-collapse: separate;
  border-spacing: 4px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.admin-cohorts th {
  color: var(--muted);
  font-weight: 600;
  text-align: left;
}
.admin-cohorts td {
  padding: 8px 4px;
  border-radius: 8px;
  text-align: center;
}
.admin-cohorts td[style] {
  background: color-mix(in srgb, var(--chart) var(--back), var(--surface-3));
  font-weight: 600;
}
.admin-cohorts td.later {
  color: var(--subtle);
}
.admin-plot {
  margin-top: 12px;
  touch-action: pan-y;
}
.admin-plot svg,
.admin-card svg {
  display: block;
  overflow: visible;
}
.admin-rule {
  stroke: var(--hairline);
  stroke-width: 1;
}
.admin-axis {
  fill: var(--subtle);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
/* The DA's pink, the latest column in full and the others quieter. */
.admin-col {
  fill: var(--chart);
  opacity: var(--chart-rest);
}
.admin-col.on {
  opacity: 1;
}
.admin-avg {
  stroke: var(--text);
  stroke-width: 1.5;
  opacity: 0.55;
}
.admin-avg-pill {
  fill: var(--bg);
  opacity: 0.75;
}
.admin-avg-tag {
  fill: var(--text);
  font-size: 11px;
  font-weight: 600;
}
.admin-trend {
  margin: 8px 0 12px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.admin-trend.quiet {
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}
.admin-tile-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.admin-tile-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.admin-tile-value strong {
  font-size: 28px;
  line-height: 1.1;
}
.admin-tile-value span {
  color: var(--muted);
  font-size: 13px;
}
.admin-tile-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}
.admin-spark {
  flex: none;
}
/* « Aperçu »'s first line: the state in a word, a dot of its colour, why under it; tapped, where it is said. */
.admin-state {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 0 12px;
  text-align: left;
  color: var(--text);
}
.admin-state > i {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 22%, transparent);
}
.admin-state.warn > i {
  background: var(--warn);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--warn) 22%, transparent);
}
.admin-state.danger > i {
  background: var(--danger);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--danger) 22%, transparent);
}
.admin-state > span {
  flex: 1;
  display: grid;
  gap: 2px;
}
.admin-state strong {
  font-size: 20px;
}
.admin-state span span {
  color: var(--muted);
  font-size: 14px;
}
.admin-state > .icon {
  color: var(--icon-subtle);
}
/* The errors of 30 days, a square each as the status pages draw them: none in the plain colour, some in orange, many
   in red. */
.admin-strip {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 3px;
  margin-top: 12px;
}
.admin-strip i {
  height: 28px;
  border-radius: 3px;
  background: var(--ok);
}
.admin-strip i.warn {
  background: var(--warn);
}
.admin-strip i.danger {
  background: var(--danger);
}
/* From an invitation to a first film: each step's bar against the first, the share kept between two. */
.admin-funnel {
  display: grid;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.admin-funnel-step {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 10px;
}
.admin-funnel-step span {
  font-size: 15px;
}
.admin-funnel-step strong {
  grid-row: 1;
  grid-column: 2;
  font-variant-numeric: tabular-nums;
}
.admin-funnel-step b {
  grid-column: 1 / -1;
  height: 12px;
  border-radius: 4px;
  background: var(--chart);
}
.admin-funnel-pass {
  padding: 4px 0;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
/* Who needs a hand: a line to the accounts, its icon in the warning's colour, its words saying it. */
.admin-status {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin: 8px 0 0;
  padding: 10px 16px;
  border-radius: 22px;
  background: var(--fill);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.admin-status[hidden] {
  display: none;
}
.admin-status > .icon:first-child {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--warn) 22%, transparent);
  color: var(--warn);
}
.admin-status > span {
  flex: 1;
}
.admin-status-sub {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.admin-status > .icon:last-child {
  color: var(--icon-subtle);
}
/* How the plays went: a ring as Fitness draws one, its legend in figures, the failures in grey bars. */
.admin-ring {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 10px;
}
.admin-ring-middle {
  fill: var(--text);
  font-size: 30px;
  font-weight: 700;
}
.admin-ring-under {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.admin-legend {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.admin-legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 15px;
}
.admin-legend i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.admin-legend b {
  font-variant-numeric: tabular-nums;
}
.admin-divider {
  height: 0.5px;
  margin: 14px 0 12px;
  background: var(--hairline);
}
.admin-mini-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.admin-hbars {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.admin-mini-title + .admin-hbars {
  margin-top: 0;
}
.admin-hbar {
  display: grid;
  grid-template-columns: minmax(0, 186px) 1fr;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}
.admin-hbar-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.admin-hbar-track {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-hbar-fill {
  min-width: 3px;
  height: 14px;
  border-radius: 0 4px 4px 0;
  background: var(--chart);
}
.admin-hbar-fill.neutral {
  background: var(--text);
  opacity: 0.35;
}
.admin-hbar-meter {
  display: flex;
  flex: 1;
  height: 14px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--track);
}
.admin-hbar-meter .admin-hbar-fill {
  border-radius: 4px;
}
.admin-hbar-value {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* The day's use of the base: a gauge to its free limit, orange then red as it nears it. */
.admin-meter-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
}
.admin-meter-head strong {
  font-size: 22px;
}
.admin-meter-head span {
  color: var(--muted);
  font-size: 13px;
}
.admin-meter {
  position: relative;
  height: 10px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--track);
}
.admin-meter i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 5px;
  background: var(--chart);
}
.admin-meter i.warn {
  background: var(--warn);
}
.admin-meter i.danger {
  background: var(--danger);
}
/* « Santé du service »: its state in a word and a dot (green, orange, red), then a meter a limit. */
.admin-health-state {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 8px;
  font-size: 22px;
  font-weight: 700;
}
.admin-health-state i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
}
.admin-health-state.warn i {
  background: var(--warn);
}
.admin-health-state.danger i {
  background: var(--danger);
}
.admin-health-item {
  margin-top: 14px;
}
.admin-health-item .admin-meter-head strong {
  font-size: 15px;
  font-weight: 600;
}
.admin-meter-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--subtle);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) {
  .admin-ring {
    grid-template-columns: 120px 1fr;
    gap: 14px;
  }
  .admin-hbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .admin-card .admin-spark {
    display: none;
  }
}
.health {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.health th,
.health td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.health th {
  color: var(--muted);
  font-weight: 600;
}
.health td:first-child {
  white-space: normal;
  min-width: 160px;
}

/* Title sheet, full screen like Spotify's player: poster colour fading to black */
/* Page sheet, as iOS: below the status bar, rounded on top, the page behind visible above it. */
.sheet {
  --sheet-gap: calc(max(env(safe-area-inset-top), 12px) + 10px);
  position: fixed;
  inset: var(--sheet-gap) 0 0;
  width: 100%;
  max-width: 560px;
  height: calc(100% - var(--sheet-gap));
  max-height: calc(100% - var(--sheet-gap));
  margin: 0 auto;
  padding: 0 22px calc(28px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 14px 14px 0 0;
  background: var(--bg);
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
  isolation: isolate;
}
/* The poster colour on its own layer, of fixed height: painted on the sheet's own background,
   iOS kept the gradient of the first, shorter content until the next scroll. */
.sheet::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 820px;
  background: linear-gradient(to bottom, var(--tint, #3a3a3a), var(--bg));
  pointer-events: none;
}
.sheet:focus {
  outline: none;
}
/* The page behind is darkened by its veil (.sheet-shade, see stepBack): the backdrop only catches touches. */
.sheet::backdrop {
  background: transparent;
}
/* Over the page behind a sheet, a black veil: its opacity alone moves, where a filter on the page repainted its every
   row at each frame. */
.sheet-shade {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
.sheet[open] {
  animation: sheet-up 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}
/* Behind a sheet, the page is a rounded card on black, as on iOS: the page needs its own
   background for its corners to show against the black of the window. */
/* The app scrolls inside this fixed frame rather than the document: on iOS web apps, an element
   fixed to the bottom of a scrolling document (the tab bar) could drift off the bottom edge.
   The frame spans the whole width up to the page's width, gutters included. */
#settings {
  --gutter: 16px;
  position: fixed;
  inset: 0;
  max-width: 592px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) calc(96px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}
html.sheet-open,
html.sheet-open body {
  background: #000;
}
/* The tab bar goes behind the sheet. */
body.sheet-open .dock {
  visibility: hidden;
}
/* The tab bar sits next to the page, out of its transforms; it shows only with the page. */
#settings[hidden] ~ .dock {
  display: none;
}
@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sheet[open] {
    animation: none;
  }
}
/* Stays at the top while scrolling, filled with the poster colour once the page moves. */
.sheet-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  margin: 0 -22px 20px;
  padding: 16px 22px 8px;
  border-radius: 14px 14px 0 0;
  transition: background-color 0.2s;
}
/* Grabber: the sheet can be pulled down to close. */
.sheet-top::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 36px;
  height: 5px;
  margin-left: -18px;
  border-radius: 3px;
  background: var(--grabber);
}
.sheet-top.scrolled {
  background-color: var(--tint, #2a2a2a);
}
.sheet-top .icon {
  width: 28px;
  height: 28px;
}
.sheet-context {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet-media img {
  display: block;
  width: min(78%, 340px);
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 8px;
  background: #0003;
  box-shadow: 0 16px 48px #0009;
}
.sheet-media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #000;
}
.pill[aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
}
.pill {
  margin: 0;
  padding: 10px 16px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  color: var(--text);
  font-size: 15px;
}
.pill .icon {
  width: 20px;
  height: 20px;
}
.sheet-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}
.sheet-title-text {
  flex: 1;
  min-width: 0;
}
.sheet-title-row h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}
.sheet-title-row p {
  margin: 4px 0 0;
  font-size: 16px;
}
/* « + » for the library, as the hero's and the TV's: a plain plus (a check once added) on a round of glass. */
#sheet-add {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--glass);
  box-shadow: var(--glass-edge);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
#sheet-add .icon {
  width: 22px;
  height: 22px;
}
/* The title drawn as the film's own: its logo in place of its name, read by screen readers still (see paintLogo). */
.sheet-logo {
  display: block;
  max-width: min(72%, 320px);
  max-height: 96px;
  margin-bottom: 8px;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 2px 14px #0009);
}
#sheet.has-logo #sheet-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* « Choisir la source »: one row per file, its quality, language and size, where it comes from, a tag on the right. */
.sources-pick {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100% - 64px);
  text-align: left;
}
.sources-pick h2 {
  margin: 0 0 4px;
}
.source-rows {
  list-style: none;
  margin: 12px 0 8px;
  padding: 0;
  overflow-y: auto;
}
.source-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 4px;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-weight: 400;
  text-align: left;
  box-shadow: none;
}
.source-row strong {
  font-size: 15px;
}
.source-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.source-text span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.source-tag {
  font-size: 12px;
  color: var(--muted);
}
/* The person's own server's file (« Sur ton serveur »), said as the first. */
.source-tag.own {
  color: var(--text);
  font-weight: 600;
}
.sources-pick .link {
  display: block;
  margin: 0 auto;
}
.why {
  color: var(--text);
  font-size: 15px;
}
/* Under « Regarder »: what its file is; then the title's actions in a row of rounds, as Netflix's « Ma liste · Évaluer
   · Partager » (« Noter » and « Déjà vu » open the rating window of « À noter »), the source and « Moins comme ça » under
   them. */
.sheet-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.sheet-file .sheet-badges {
  margin: 0;
}
.sheet-actions {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  max-width: 520px;
  gap: 6px;
  margin: 22px 0 4px;
}
.sheet-actions button {
  flex-direction: column;
  justify-content: flex-start;
  gap: 7px;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
}
.sheet-actions .round {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  transition: background-color 0.15s, color 0.15s;
}
.sheet-actions .round .icon {
  width: 24px;
  height: 24px;
}
.sheet-actions button[aria-pressed='true'] .round {
  background: var(--accent);
  color: var(--on-accent);
}
.sheet-actions button[hidden] {
  display: none;
}
.sheet-rate {
  margin: 18px 0 6px;
}
.rate-row {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 8px;
  margin-top: 8px;
}
/* « Vu, sans noter », from a sheet only: on the same line as the ratings. */
.rate-row button[hidden] {
  display: none;
}
/* Ratings: round glass buttons with their label below; a chosen rating turns white. */
.rate-row button {
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  text-align: center;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}
.rate-row .round {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  transition: background-color 0.15s, color 0.15s;
}
.rate-row .round .icon {
  width: 26px;
  height: 26px;
}
.rate-row button[aria-pressed='true'] .round {
  background: var(--accent);
  color: var(--on-accent);
}

/* Sheet cast: round portraits, as Spotify's artist rows */
.cast .person {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 2px;
  flex: none;
  width: 92px;
  text-align: center;
  scroll-snap-align: start;
}
.cast img {
  width: 80px;
  height: 80px;
  margin-bottom: 6px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--fill);
}
/* A person without a photo: a silhouette on frosted glass, as the platform's buttons; the icon in an opaque grey. */
.person-none {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--glass);
  box-shadow: var(--glass-edge);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--icon-muted);
}
.person-none svg {
  width: 36px;
  height: 36px;
}
.person-head .person-none {
  width: 168px;
  height: 168px;
  margin: 0;
}
.person-head .person-none[hidden] {
  display: none;
}
.person-head .person-none svg {
  width: 72px;
  height: 72px;
}
.cast strong {
  font-size: 13px;
  line-height: 1.25;
}
.cast .small {
  font-size: 12px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* The app's windows, as Cal AI's and Apple Music's: a card of frosted glass over the dimmed app, what it is about on the
   left with the round ✕ that closes it, its actions in pills stacked under it. */
.intro {
  width: min(360px, calc(100% - 24px));
  margin: auto;
  padding: 20px 20px 20px 22px;
  border: 0;
  border-radius: 34px;
  background: var(--dialog);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow: inset 0 0 0 0.5px var(--bar-edge), 0 30px 80px #0009;
  color: var(--text);
  text-align: left;
}
.intro::backdrop {
  background: #00000073;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
/* The ✕ stays at hand while a long window scrolls: out of its head (display: contents), first in the window and stuck to
   its top, the title beside it on the same line. */
.dialog-head {
  display: contents;
}
.dialog-heading {
  padding: 4px 44px 0 0;
}
.dialog-head + .cells {
  margin-top: 16px;
}
.dialog-x {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 0 -32px auto;
  padding: 0;
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--glass-edge);
  color: var(--icon-muted);
}
.dialog-x .icon {
  width: 17px;
  height: 17px;
}
.intro .kicker {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.intro-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--glass);
  box-shadow: var(--glass-edge);
}
.intro-icon:empty {
  display: none;
}
.intro-icon .icon {
  width: 24px;
  height: 24px;
}
.intro h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.intro p {
  margin: 10px 0 0;
  line-height: 1.4;
}
.intro .button-stack {
  margin-top: 20px;
}
.intro .button-stack button {
  min-height: 50px;
  padding-block: 0;
  font-size: 16px;
  font-weight: 600;
}
.intro #push-intro-message:empty {
  display: none;
}
/* A confirmation: the question alone, then the action in red over « Annuler » (confirmAction). */
.confirm #confirm-text {
  margin: 4px 4px 0;
  font-size: 16px;
}

/* « Regarder sur ce téléphone »: the source chosen, then the players, on the card of the notifications' offer. */
.watch p {
  margin: 0 0 6px;
}
.watch .watch-state {
  margin-top: 4px;
  color: var(--text);
  font-weight: 700;
}
.watch p:empty {
  display: none;
}
/* « Regarder » while the sources answer: a spinner in place of its play icon. */
#sheet-watch[aria-busy='true'] > .icon,
#import-pick[aria-busy='true'] > .icon,
.hero-watch[aria-busy='true'] > .icon,
.episode[aria-busy='true'] .episode-art > .icon {
  display: none;
}
#sheet-watch[aria-busy='true']::before,
#import-pick[aria-busy='true']::before,
.hero-watch[aria-busy='true']::before,
.episode[aria-busy='true'] .episode-art::after {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: todo-spin 0.8s linear infinite;
}
.episode[aria-busy='true'] .episode-art::after {
  position: relative;
  color: #fff;
  box-shadow: 0 0 0 7px #0009;
  background: #0009;
}
@media (prefers-reduced-motion: reduce) {
  #sheet-watch[aria-busy='true']::before,
  #import-pick[aria-busy='true']::before,
  .hero-watch[aria-busy='true']::before,
  .episode[aria-busy='true'] .episode-art::after {
    animation-duration: 2.4s;
  }
}
/* The import under way: the button keeps its colour, its spinner and its count say it works. */
#import-pick[aria-busy='true'] {
  opacity: 1;
  cursor: progress;
}
.watch-players {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 10px;
}
.watch-players:empty {
  display: none;
}
.watch-players button {
  flex: 1 1 0;
  margin: 0;
  padding-block: 14px;
}
.watch-players button:first-child {
  flex-basis: 100%;
}
/* The platforms that have the title, one a row, and the way to add a source after them. */
.watch-players a.button,
.watch-players a.button ~ button {
  flex-basis: 100%;
  margin: 0;
  padding-block: 14px;
  text-align: center;
}
/* A title found nowhere: the way to Mes sources, in the watch dialog and under « Choisir la source ». */
.sources-pick .add-source {
  width: 100%;
  margin: 0 0 12px;
}
.watch #watch-note a {
  color: var(--text);
}

/* The app's player: the video over black, whatever the theme; the controls over a shade, shown at a tap, gone after a
   few seconds of play; the subtitles above them. */
.viewer {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
  overflow: hidden;
}
.viewer::backdrop {
  background: #000;
}
.viewer-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}
.viewer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.viewer-veil {
  position: absolute;
  inset: 0;
}
.viewer-chrome {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
  background: linear-gradient(to bottom, #000a, #0000 30%, #0000 60%, #000c);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.viewer.chrome .viewer-chrome {
  opacity: 1;
}
.viewer:not(.chrome) .viewer-frame {
  cursor: none;
}
.viewer.chrome .viewer-chrome > * {
  pointer-events: auto;
}
.viewer-top {
  display: flex;
  align-items: center;
  gap: 4px;
}
.viewer .icon-button {
  color: #fff;
}
.viewer-heading {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  display: grid;
  align-content: center;
  width: min(60%, 520px);
  min-height: 44px;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.viewer #viewer-close .on-computer {
  display: none;
}
.viewer-heading strong,
.viewer-heading span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.viewer-heading span {
  color: #fffb;
  font-size: 13px;
}
.viewer-keys {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.viewer .remote-key {
  margin: 0;
  background: #ffffff29;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: #fff;
}
.viewer .remote-key.remote-main {
  background: #fff;
  color: #121212;
}
/* The time played, the bar, the time left, on one line; on a computer, the TV's: the bar, then the time left. */
.viewer-seekbar {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fffc;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
#viewer-left:not(:empty)::before {
  content: '-';
}
/* The time aimed at, a white pill above the bar as on the TV (showScrub). */
.viewer-seek-wrap {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
}
.viewer-scrub {
  position: absolute;
  bottom: calc(100% + 10px);
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  color: #121212;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}
.viewer-scrub[hidden] {
  display: none;
}
/* The TV's bar: rounded, white as far as played, lighter as far as loaded (--played, --buffered: paintSeek). */
#viewer-seek {
  --played: 0%;
  --buffered: 0%;
  --track: linear-gradient(to right, #fff var(--played), #ffffff4d var(--played) var(--buffered), #ffffff38 var(--buffered));
  flex: 1;
  width: auto;
  height: 24px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
#viewer-seek::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--track);
}
#viewer-seek::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--track);
}
#viewer-seek::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}
#viewer-seek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
/* The TV's rounds, bottom right: audio, subtitles, the season's episodes, the next one; casting and the picture in
   picture at the top right on a phone, after them on a computer. */
.viewer-tools {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.viewer-tool {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #ffffff29;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: #fff;
}
.viewer-tool .icon {
  width: 20px;
  height: 20px;
}
.viewer-tool[aria-pressed='true'] {
  background: #fff;
  color: #121212;
}
.viewer-tool[hidden] {
  display: none;
}
/* The quality playing on « Qualité », as on the video sites: 4K, HD. */
.viewer-quality-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  padding: 1px 4px;
  border-radius: 4px;
  background: #fff;
  color: #121212;
  font-size: 9px;
  font-weight: 700;
  line-height: 12px;
  letter-spacing: 0.02em;
}
.viewer-quality-badge:empty {
  display: none;
}
.viewer-corner {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  display: flex;
  gap: 10px;
}
.viewer-source {
  margin: 14px 0 0;
  color: #fffa;
  font-size: 12px;
}
.viewer-none {
  margin: 0;
  color: #fffb;
  font-size: 14px;
}
/* The season's episodes, one a line, the one playing in white. */
.viewer-episodes {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.viewer-episodes button {
  width: 100%;
  margin: 0;
  padding: 11px 16px;
  justify-content: flex-start;
  border-radius: 12px;
  background: #ffffff1a;
  color: #fff;
  font-size: 14px;
  text-align: left;
}
.viewer-episodes button[aria-pressed='true'] {
  background: #fff;
  color: #121212;
}
.viewer-episodes button:disabled {
  opacity: 0.4;
}
.viewer-subs {
  position: absolute;
  right: 0;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  text-align: center;
  pointer-events: none;
  transition: transform 0.25s;
}
.viewer.chrome .viewer-subs {
  transform: translateY(-96px);
}
.viewer-cue {
  max-width: 90%;
  padding: 2px 8px;
  border-radius: 4px;
  /* As chosen in Réglages › Langue et sous-titres (applySubsLook). */
  background: var(--cue-background, rgba(0, 0, 0, 0.65));
  color: var(--cue-color, #ffffff);
  text-shadow: 0 0 2px var(--cue-outline, transparent), 0 0 3px var(--cue-outline, transparent);
  font-size: calc(clamp(16px, 4.6vmin, 30px) * var(--cue-scale, 1));
  font-weight: 600;
  line-height: 1.3;
  white-space: pre-line;
}
/* The lines' look, tried on a still of the dark screen. */
.subs-preview {
  position: relative;
  height: 132px;
  margin: 0 0 12px;
  border-radius: 16px;
  background: linear-gradient(160deg, #3a3a3a, #111111);
  overflow: hidden;
}
.subs-preview .viewer-subs {
  bottom: 16px;
}
.subs-look-label {
  margin: 8px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.subs-look .chips {
  margin-bottom: 4px;
}
/* A trailer's French lines: above YouTube's own controls. */
.player-subs {
  bottom: 14%;
  z-index: 2;
}
/* « Passer le générique » and « Épisode suivant »: over the picture at the bottom right, above the controls, shown with
   or without them. */
.viewer-skip {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 96px);
  z-index: 3;
  gap: 8px;
  margin: 0;
  padding: 12px 18px;
  background: #fffffff2;
  color: #121212;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 24px #0008;
}
.viewer-skip .icon {
  width: 20px;
  height: 20px;
}
.viewer-state {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 80%;
  margin: 0;
  color: #fff;
  font-weight: 600;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.viewer-state[hidden] {
  display: none;
}
.viewer.chrome .viewer-state:not(.busy) {
  display: none;
}
.viewer-spinner {
  display: none;
  width: 44px;
  height: 44px;
  border: 3px solid #fff4;
  border-top-color: #fff;
  border-radius: 50%;
  animation: todo-spin 0.9s linear infinite;
}
.viewer-state.busy .viewer-spinner {
  display: block;
}
.viewer.busy .viewer-keys {
  visibility: hidden;
}
.viewer-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 80%;
  padding: 6px 22px max(18px, env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
  background: #181818f2;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: #fff;
}
.viewer-panel[hidden] {
  display: none;
}
.viewer-panel h3 {
  margin: 16px 0 6px;
}
.viewer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.viewer-list button {
  margin: 0;
  padding: 9px 16px;
  background: #ffffff1f;
  color: #fff;
  font-size: 14px;
}
.viewer-list button[aria-pressed='true'] {
  background: #fff;
  color: #121212;
}
.viewer-panel .secondary {
  background: #ffffff1f;
  color: #fff;
}
.viewer-panel .link {
  display: block;
  margin: 10px auto 0;
  color: #fffb;
}
/* With a mouse, the TV's player: back at the top left; at the bottom, the bar across, then play and ±10 on the left,
   the title in the middle, the rounds on the right, each named on hover; the panel a card above them. */
@media (min-width: 900px) and (hover: hover) {
  .viewer-chrome {
    padding: 34px 40px 30px;
    background: linear-gradient(to bottom, #0009, #0000 22%, #0000 55%, #000d);
  }
  .viewer #viewer-close {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    background: #ffffff29;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
  }
  .viewer #viewer-close .on-phone {
    display: none;
  }
  .viewer #viewer-close .on-computer {
    display: block;
  }
  .viewer-heading {
    top: auto;
    bottom: 30px;
    width: min(36%, 520px);
    min-height: 52px;
  }
  .viewer-heading strong {
    font-size: 17px;
  }
  .viewer-heading span {
    font-size: 14px;
  }
  .viewer-keys {
    position: absolute;
    left: 40px;
    bottom: 30px;
    gap: 14px;
  }
  .viewer .remote-key,
  .viewer .remote-key.remote-main {
    width: 52px;
    height: 52px;
  }
  .viewer .remote-key .icon,
  .viewer .remote-key.remote-main .icon {
    width: 24px;
    height: 24px;
  }
  .viewer .remote-key b {
    font-size: 8px;
  }
  .viewer-seekbar {
    gap: 24px;
    margin-bottom: 24px;
    color: #ffffffe6;
    font-size: 16px;
    font-weight: 600;
  }
  #viewer-time,
  #viewer-left::before {
    display: none;
  }
  #viewer-left {
    min-width: 64px;
    text-align: right;
  }
  /* The bar thin, its knob shown under the mouse, the bar then thicker. */
  #viewer-seek::-webkit-slider-runnable-track {
    height: 8px;
  }
  #viewer-seek::-moz-range-track {
    height: 8px;
  }
  #viewer-seek::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -7px;
    opacity: 0;
    transition: opacity 0.15s;
  }
  #viewer-seek::-moz-range-thumb {
    width: 22px;
    height: 22px;
    opacity: 0;
  }
  #viewer-seek:hover::-webkit-slider-runnable-track,
  #viewer-seek:focus-visible::-webkit-slider-runnable-track {
    height: 12px;
  }
  #viewer-seek:hover::-moz-range-track,
  #viewer-seek:focus-visible::-moz-range-track {
    height: 12px;
  }
  #viewer-seek:hover::-webkit-slider-thumb,
  #viewer-seek:focus-visible::-webkit-slider-thumb {
    margin-top: -5px;
    opacity: 1;
    box-shadow: 0 0 0 6px #ffffff4d;
  }
  #viewer-seek:hover::-moz-range-thumb,
  #viewer-seek:focus-visible::-moz-range-thumb {
    opacity: 1;
    box-shadow: 0 0 0 6px #ffffff4d;
  }
  .viewer-tools {
    gap: 14px;
    margin-top: 0;
  }
  .viewer-tool {
    width: 52px;
    height: 52px;
  }
  .viewer-tool .icon {
    width: 24px;
    height: 24px;
  }
  .viewer-tool::after {
    content: attr(aria-label);
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    color: #121212;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.15s;
    pointer-events: none;
  }
  .viewer-tool:hover::after {
    opacity: 1;
  }
  .viewer-corner > :last-child::after {
    left: auto;
    right: 0;
    transform: none;
  }
  .viewer-corner {
    position: static;
    gap: 14px;
  }
  .viewer.chrome .viewer-subs {
    transform: translateY(-136px);
  }
  .viewer-skip {
    right: 40px;
    bottom: 150px;
  }
  .viewer-panel {
    right: 40px;
    bottom: 140px;
    left: auto;
    width: 380px;
    max-height: calc(100% - 240px);
    border-radius: 24px;
    padding: 6px 22px 18px;
  }
}

/* « Regarder » and, Playglass open on the TV, its round button for the TV beside it, as casting is; alone (on a computer),
   the TV's with its label. */
.watch-row {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin-top: 16px;
}
.watch-row button {
  margin: 0;
  padding-block: 14px;
}
#sheet-watch {
  flex: 1;
}
/* What the file « Regarder » plays is, in small framed words, as Apple's 4K and Dolby Vision. */
.sheet-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}
.sheet-badges[hidden] {
  display: none;
}
.sheet-badges span {
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--subtle);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
/* Beside « Regarder », the round « + » of the library: a circle the size of the actions' rounds and of « Regarder »'s
   height. */
.watch-row #sheet-watch {
  min-height: 52px;
}
.watch-row #sheet-add {
  flex: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
}
.watch-row #sheet-add .icon {
  width: 24px;
  height: 24px;
}

/* A series' episodes on its sheet: its seasons in pills, each episode launched from its row. */
.season-row {
  display: flex;
  gap: 8px;
  margin: 0 -22px 14px;
  padding: 0 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.season-row::-webkit-scrollbar {
  display: none;
}
.season-row .pill {
  flex: none;
}
.episodes {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.episode {
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-weight: 400;
  text-align: left;
}
.episodes li {
  position: relative;
}
.episodes li.with-tv .episode-text {
  padding-right: 40px;
}
/* The episode's TV button, level with its picture. */
.episode-tv {
  position: absolute;
  top: 16px;
  right: -8px;
}
.episode:disabled {
  opacity: 0.55;
  cursor: default;
}
.episode-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
.episode-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.episode-art .icon {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: #0009;
  color: #fff;
}
/* Seen, as on the TV: a tick in the picture's corner. */
.episode-art .icon.episode-seen {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  padding: 3px;
  background: #fff;
  color: #121212;
  stroke-width: 3;
}
.episode-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.episode-text strong {
  font-size: 15px;
  font-weight: 600;
}
.episode-overview {
  grid-column: 1 / -1;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sk-episode {
  width: 100%;
  height: 72px;
}

/* Person sheet */
.cast .person {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-weight: 400;
  box-shadow: none;
}
.person-head {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}
.person-head img {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--fill);
  box-shadow: 0 16px 48px #0009;
}
.person-head h2 {
  margin: 10px 0 0;
  font-size: 28px;
}
.person-head p {
  margin: 0;
}
.person-bio.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.link {
  margin: 0;
  padding: 4px 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  box-shadow: none;
}
.row-button {
  width: 100%;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 400;
  box-shadow: none;
}
.row-button > .icon {
  color: var(--icon-subtle);
}

/* Home: filters on dimmed black, a large title tinted by its poster */
.home {
  margin: calc(-1 * max(16px, env(safe-area-inset-top))) calc(-1 * var(--gutter, 16px)) 0;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter, 16px) 0;
  background: linear-gradient(to bottom, var(--tint, transparent) 0, var(--bg) 640px);
  transition: background 0.4s;
}
/* The home's filters: on a phone under « À la une », held under the status bar as the page scrolls (a dark band once
   stuck, extended over the status bar by its shadow); on a computer, on the greeting's line, left of the Actualiser
   round, not following the scroll (see placeFilters and the media query below). */
.home-top {
  flex-wrap: wrap;
}
.home-filters {
  position: sticky;
  top: 0;
  z-index: 5;
  flex-basis: 100%;
  justify-content: center;
  margin-bottom: 8px;
  padding-top: 8px;
  padding-bottom: 10px;
  transition: background-color 0.2s;
}
.home-filters.stuck {
  background: var(--bg);
  box-shadow: 0 calc(-1 * max(16px, env(safe-area-inset-top))) 0 var(--bg);
}
/* « À la une », as Apple's: the width of the screen from its very top, each title's picture fading into the page, the
   greeting over it; swiped (scroll snapping), its dots below the buttons. Always dark (see the themes). */
.home.with-hero {
  position: relative;
}
.home.with-hero > .top {
  position: absolute;
  z-index: 3;
  top: max(16px, env(safe-area-inset-top));
  left: var(--gutter, 16px);
  right: var(--gutter, 16px);
  margin: 8px 0 0;
}
/* Over « À la une », its dark colours; the filters held at the top (on a phone), the page's. */
.home.with-hero > .top > h1,
.home.with-hero > .top > .todo,
.home.with-hero > .top > .home-filters:not(.stuck) {
  --bg: #000000;
  --elevated: #181818;
  --surface: #242424;
  --surface-2: #2a2a2a;
  --surface-3: #3e3e3e;
  --line: #2a2a2a;
  --text: #ffffff;
  /* The quieter texts: the text's own colour, fainter (they take the tint of what is under them). */
  --muted: #ffffffb3;
  --subtle: #ffffff7a;
  /* The same greys, opaque, for the icons: in a see-through colour their strokes overlap, and each crossing shows. */
  --icon-muted: #b3b3b3;
  --icon-subtle: #7a7a7a;
  --accent: #ffffff;
  --accent-soft: #ffffff;
  --on-accent: #121212;
  --glass: #ffffff24;
  --glass-edge: inset 0 0 0 0.5px #ffffff38;
  --fill: #ffffff1a;
  --pill: #383838;
  --track: #ffffff33;
  --hairline: #ffffff14;
  --bar: #161616d9;
  --bar-edge: #ffffff26;
  --toast-bg: #2a2a2ae6;
  --sk-a: #ffffff0f;
  --sk-b: #ffffff21;
  --star-off: #ffffff47;
  --grabber: #ffffff59;
  --search-bg: #ffffff;
  --scrim: #000000d9;
  --scrim-solid: #000000;
  --ok: #5ad08b;
  --warn: #f3c56b;
  --danger: #ff8d84;
  --chart: #e86fe0;
  --chart-2: #199e70;
  --chart-rest: 0.6;
  --dialog: #2a2a2aa6;
  color: var(--text);
  text-shadow: 0 1px 16px #0006;
}

.hero {
  position: relative;
  margin: calc(-1 * max(16px, env(safe-area-inset-top))) calc(-1 * var(--gutter, 16px)) 4px;
  color: var(--text);
}
.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.hero-track::-webkit-scrollbar {
  display: none;
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
/* The picture and its veil fade out together at the bottom: the page shows through, in either theme. */
.hero-art {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #00000080, transparent 24%, transparent 42%, #000000d9 88%);
  pointer-events: none;
}
.hero-art picture,
.hero-art img {
  display: block;
  width: 100%;
  height: min(150vw, 78vh);
  object-fit: cover;
}
.hero-art img {
  transition: opacity 0.4s;
}
.hero-art img:not(.loaded) {
  opacity: 0;
}
.hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 52px;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0 24px;
  color: #fff;
  text-align: center;
  pointer-events: none;
}
.hero-actions {
  pointer-events: auto;
}
.hero-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #00000073;
  box-shadow: inset 0 0 0 0.5px #ffffff59;
  font-size: 13px;
  font-weight: 600;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.hero-tag[hidden] {
  display: none;
}
.hero-title {
  display: grid;
  justify-items: center;
}
.hero-logo {
  display: none;
  max-width: min(78vw, 320px);
  max-height: 110px;
  object-fit: contain;
}
.has-logo .hero-logo {
  display: block;
}
.has-logo .hero-name {
  display: none;
}
.hero-name {
  max-width: 14em;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px #0008;
}
.hero-facts {
  color: #ffffffd9;
  font-size: 15px;
  font-weight: 600;
}
.hero-summary {
  display: none;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.hero-watch {
  min-width: 200px;
  margin: 0;
  padding: 14px 28px;
  background: #fff;
  color: #000;
  font-size: 17px;
}
.hero-add {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  background: var(--glass);
  color: #fff;
  box-shadow: var(--glass-edge);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.hero-add[hidden] {
  display: none;
}
/* One dot per title, the one shown longer and white; each a target of a finger's size. */
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
}
.hero-dots[hidden],
.hero-arrow {
  display: none;
}
.hero-dots button {
  display: grid;
  place-items: center;
  width: 16px;
  height: 24px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: width 0.3s;
}
.hero-dots button::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: #ffffff59;
  transition:
    width 0.3s,
    background-color 0.3s;
}
.hero-dots button[aria-current='true'] {
  width: 32px;
}
.hero-dots button[aria-current='true']::before {
  width: 22px;
  background: #fff;
}
#hero-message:empty {
  display: none;
}
#hero-message {
  margin: 8px 0 0;
}
/* Category picker: full screen list over a dimmed page */
.categories {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  overflow: hidden;
}
.categories:focus {
  outline: none;
}
/* Only the list scrolls: the blur makes the dialog the containing block of the close button,
   which would otherwise scroll along with it. */
.categories::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: calc(130px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--scrim-solid) 70%);
  pointer-events: none;
}
.categories::backdrop {
  background: transparent;
}
/* The wheel: rows of fixed height snapping to the middle, the padding letting the first and
   the last ones reach it. */
.categories ul {
  height: 100%;
  list-style: none;
  margin: 0;
  padding: calc(50vh - 27px) 16px;
  text-align: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.categories ul::-webkit-scrollbar {
  display: none;
}
.categories li {
  display: grid;
  place-items: center;
  height: 54px;
  scroll-snap-align: center;
}
.categories li button {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 8px 24px;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
  box-shadow: none;
  transition: background-color 0.15s, color 0.15s;
}
.categories li button[aria-current='true'] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.category-close {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  width: 60px;
  height: 60px;
  margin: 0 0 0 -30px;
  padding: 0;
  border-radius: 50%;
}
.category-close .icon {
  width: 28px;
  height: 28px;
}

/* Search results: the poster and text open the title sheet */
.row .row-main {
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 400;
  box-shadow: none;
}

.row .row-main.centered {
  align-items: center;
}
.row-main > .icon {
  flex: none;
  align-self: center;
  color: var(--icon-subtle);
}
.row-main .info {
  display: grid;
  gap: 2px;
}

/* Trailer player: black full screen, the video as large as the screen allows */
.player {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  border: 0;
  background: #000;
  color: #fff;
}
.player[open] {
  display: grid;
  place-content: center;
  justify-items: center;
}
.player::backdrop {
  background: #000;
}
.player-frame iframe {
  display: block;
  width: min(100vw, calc(100vh * 16 / 9));
  aspect-ratio: 16 / 9;
  border: 0;
}
.player-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  z-index: 1;
  background: #ffffff26;
}
.player-close .icon {
  width: 26px;
  height: 26px;
}
#player-note {
  margin: 12px 16px 0;
  text-align: center;
}

/* « En ce moment sur ta TV »: a bar docked right above the tab bar on every tab, as Spotify's
   player, tinted after the poster, the progress along its bottom edge. */
.mini-player {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 16px);
  max-width: 576px;
  margin: 0 auto 8px;
  padding: 8px 14px 20px 8px;
  border-radius: 10px;
  background: var(--tint, var(--surface-2));
  box-shadow: 0 8px 24px #0006;
  color: var(--text);
  text-align: left;
  font-weight: 400;
  overflow: hidden;
  transition: background-color 0.4s;
}
.mini-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-weight: 400;
  box-shadow: none;
}
.mini-player img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}
.mini-info {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}
.mini-info strong,
.mini-detail {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-info strong {
  font-size: 15px;
  font-weight: 600;
}
.mini-detail {
  color: var(--muted);
  font-size: 13px;
}
.mini-toggle {
  display: grid;
  flex: none;
  padding: 6px;
}
.mini-toggle .icon {
  width: 26px;
  height: 26px;
}
.mini-player.ringed {
  padding-bottom: 8px;
}
.mini-player.ringed .mini-bar {
  display: none;
}
.mini-player.ringed .mini-toggle {
  position: relative;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
}
.mini-player.ringed .mini-toggle .icon {
  width: 20px;
  height: 20px;
}
.mini-player.ringed .mini-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--text) var(--played, 0%), var(--track) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}

/* Inside the bar, below its content: rounded as the app's pills. */
.mini-bar {
  position: absolute;
  left: 8px;
  right: 14px;
  bottom: 8px;
  height: 4px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}
.mini-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--text);
}
/* « Prochain épisode »: where the episode under way stopped, at the bottom of its poster. */
/* What is new for a series, on its cover's top as Max's and Netflix's tags: the glass of « À la une »'s. */
.cover-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  max-width: calc(100% - 12px);
  padding: 3px 8px;
  border-radius: 999px;
  background: #00000099;
  box-shadow: inset 0 0 0 0.5px #ffffff59;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cover.ranked .cover-badge {
  left: 46px;
  max-width: calc(100% - 52px);
}
/* Seen, in « Tendances »: the episodes' tick, in the cover's corner. */
.cover .icon.cover-seen {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  color: #121212;
  stroke-width: 3;
}
/* « Reprendre »: landscape cards, the progress along the picture's bottom. */
.cover.wide {
  width: calc(var(--cover, 132px) * 1.8);
}
.cover-art {
  position: relative;
  display: block;
  margin-bottom: 4px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
}
.cover.wide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 0;
}
.cover-progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 4px;
  border-radius: 999px;
  background: #ffffff40;
  overflow: hidden;
}
.cover-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #fff;
}
/* The content and the notices make room for it. */
body.has-player #settings {
  padding-bottom: calc(160px + env(safe-area-inset-bottom));
}
body.has-player .toast {
  bottom: calc(142px + env(safe-area-inset-bottom));
}

/* Notification above the tab bar */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--toast-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), 0 8px 24px #0006;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transform: translateX(-50%);
  animation: toast-in 0.25s ease;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}
.toast[data-kind='error'] {
  border-radius: 16px;
  color: var(--danger);
}
.toast-icon {
  display: grid;
  flex: none;
}
.toast-icon .icon {
  width: 20px;
  height: 20px;
}
.toast[data-kind='progress'] .toast-icon .icon {
  animation: todo-spin 1s linear infinite;
}
.toast-timer {
  flex: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.toast-timer:empty {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .toast,
  .toast[data-kind='progress'] .toast-icon .icon {
    animation: none;
  }
}

.rating {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}
.rating-value {
  color: var(--text);
  font-weight: 600;
}
/* TMDB rating: grey stars, white ones on top cut to the rating's share */
.stars {
  position: relative;
  display: inline-block;
  color: var(--star-off);
  letter-spacing: 1px;
  white-space: nowrap;
}
.stars::after {
  content: '★★★★★';
  position: absolute;
  inset: 0;
  width: var(--fill);
  overflow: hidden;
  color: var(--text);
}

/* Personal match or own rating, the main figure of a sheet */
.match {
  color: var(--text);
  font-weight: 700;
}
/* « Autres avis »: one source per line */
.reviews {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reviews li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.reviews li:last-child {
  border-bottom: 0;
}
.reviews strong {
  color: var(--text);
  font-weight: 600;
}

/* Personal match: a frosted badge on the top left of a poster */
.match-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: #00000059;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}
.match-badge.large {
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  font-size: 14px;
}
.cover,
.sheet-media {
  position: relative;
}
/* On the sheet, the poster is centred and narrower than its box. */
#sheet-match {
  left: calc((100% - min(78%, 340px)) / 2 + 10px);
}
/* The top of a title's sheet, as on the TV: its landscape picture under the bar, fading into the sheet's colour, its
   name and actions over the picture's bottom (see paintBackdrop). Without one, the poster (not .sheet-media img's
   block, which would show an empty picture above it). */
.sheet-media .sheet-backdrop {
  display: none;
}
#sheet.has-backdrop {
  --media-h: min(78vw, 440px);
}
#sheet.has-backdrop::before {
  top: var(--media-h);
}
#sheet.has-backdrop > .sheet-top {
  height: 68px;
  margin-bottom: -68px;
}
#sheet.has-backdrop > .sheet-media {
  height: var(--media-h);
  margin: 0 -22px;
}
#sheet.has-backdrop > .sheet-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #00000080, transparent 28%, transparent 42%, var(--tint, #3a3a3a));
  pointer-events: none;
}
#sheet.has-backdrop .sheet-backdrop {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  object-position: center 25%;
}
#sheet.has-backdrop #sheet-poster {
  display: none;
}
#sheet.has-backdrop #sheet-match {
  top: 80px;
  left: 22px;
}
/* What follows the picture is drawn over it (the picture, positioned, would otherwise cover it). */
#sheet.has-backdrop > .sheet-media ~ * {
  position: relative;
}
#sheet.has-backdrop > .sheet-title-row {
  margin-top: -84px;
}
#sheet.has-backdrop .sheet-title-row h2 {
  font-size: 30px;
  text-shadow: 0 2px 18px #0009;
}

/* Filter bars of Noter, Bibliothèque and Déjà vu: same behaviour as the home's and the settings'. */
.sticky-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding-top: 8px;
  padding-bottom: 10px;
}
/* Only once stuck: before that, the shadow would cover the title just above. */
.sticky-bar.stuck {
  background: var(--bg);
  box-shadow: 0 calc(-1 * max(16px, env(safe-area-inset-top))) 0 var(--bg);
}

/* Skeletons: grey shapes with a slow sheen while content loads; images show it behind them
   until they have arrived. */
.skeleton,
.cover img:not(.loaded),
#sheet-poster:not(.loaded),
.sheet-backdrop:not(.loaded),
.row img:not(.loaded),
.cast img:not(.loaded),
.mini-player img:not(.loaded) {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--sk-a) 25%, var(--sk-b) 45%, var(--sk-a) 65%);
  background-size: 300% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
}
@keyframes skeleton {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton,
  img:not(.loaded) {
    animation: none;
  }
}
.sk-thumb {
  flex: none;
  width: 48px;
  height: 72px;
  border-radius: 4px;
}
.sk-line {
  width: 70%;
  height: 12px;
  margin: 4px 0;
  border-radius: 6px;
}
.sk-line.short {
  width: 40%;
}
.sk-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
}
.sk-title {
  width: 45%;
  height: 20px;
  margin: 24px 0 12px;
}
.sk-hero {
  width: 100%;
  aspect-ratio: 2 / 3;
  margin: 4px 0 28px;
  border-radius: 14px;
}
.sk-person {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

/* Bottom tab bar: icon above label, white when active, over a fade */
/* The mini player and the tab bar share one container fixed at the bottom: the player always
   sits 8px above the bar, whatever the height of the home indicator. */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.dock > * {
  pointer-events: auto;
}
.tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px max(8px, calc((100% - 560px) / 2)) calc(4px + env(safe-area-inset-bottom));
  background: var(--bar);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 0.5px 0 var(--bar-edge);
}
.tabbar button {
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 4px 0;
  border-radius: 0;
  background: transparent;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 600;
  box-shadow: none;
}
.tabbar button[aria-current='page'] {
  color: var(--text);
}
/* Icons in a quiet text, opaque (--icon-subtle, --icon-muted); chosen or under the mouse, the text's colour again. */
.tabbar button:not([aria-current='page']) .icon,
.rate button:not([aria-pressed='true']) .icon,
.vote-button:not([aria-pressed='true']) .icon,
.auth-link:disabled .icon {
  color: var(--icon-subtle);
}
.cat-column .cat:not(:hover):not([aria-pressed='true']) .icon,
#history-about .icon {
  color: var(--icon-muted);
}
.tabbar .icon {
  width: 26px;
  height: 26px;
}
.tabbar button[aria-current='page'] .icon {
  stroke-width: 2.5;
}
/* The remote of Playglass's TV (« Sur ta TV »): the title, its progress, the keys of a remote. */
.remote {
  text-align: center;
}
.remote-art {
  display: flex;
  justify-content: center;
  margin: 8px 0 18px;
}
.remote-art img {
  width: 150px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.remote h2 {
  margin: 0 0 4px;
  font-size: 24px;
}
.remote-progress {
  margin: 22px 0 6px;
}
.remote-bar {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}
.remote-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--text);
}
.remote-times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.remote-keys {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 18px 0 26px;
}
.remote-key {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  color: var(--text);
}
.remote-key .icon {
  width: 28px;
  height: 28px;
}
.remote-key b {
  position: absolute;
  font-size: 10px;
  font-weight: 800;
}
.remote-key.remote-main {
  width: 84px;
  height: 84px;
  background: var(--accent);
  color: var(--on-accent);
}
.remote-key.remote-main .icon {
  width: 36px;
  height: 36px;
}
.remote-key:disabled {
  opacity: 0.35;
}
.remote.from-bar[open] {
  animation: none;
}
.remote-actions {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
}
.remote-actions button {
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}
.remote-actions button[hidden] {
  display: none;
}
.remote-actions .round {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--fill);
}
.remote-actions button[aria-pressed='true'] .round {
  background: var(--accent);
  color: var(--on-accent);
}
.remote-empty {
  padding: 40px 8px 8px;
}
.remote-empty h2 {
  margin: 16px 0 6px;
}
.remote-empty p {
  margin: 0 auto;
  max-width: 300px;
}
#remote-resume {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin: 28px auto 0;
  padding: 12px 18px;
  text-align: left;
}
.remote-resume-text {
  display: grid;
  min-width: 0;
}
.remote-resume-text span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#remote-resume-sub {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.7;
}

/* Lists, as in a phone's settings: grouped rows on a rounded card, a hairline between them from the label on, an icon
   tile, a value and a chevron on the right. Réglages is made of them, and so are the sign-up's steps. */
.cells {
  margin: 0;
  padding: 0;
  border-radius: 28px;
  background: var(--fill);
  color: var(--text);
  line-height: 1.3;
  list-style: none;
  overflow: hidden;
}
.cells + .cells,
.list-field + .cells {
  margin-top: 16px;
}
.cells > li + li > .cell::before,
.fold-list > li + li > .cell::before,
.check-list > .cell + .cell::before {
  content: '';
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  height: 0.5px;
  background: var(--hairline);
}
.cell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
a.cell {
  text-decoration: none;
}
a.cell:active,
button.cell:active,
label.cell:active {
  background: var(--fill);
}
.cell.static.tall {
  align-items: flex-start;
  padding-block: 12px;
}
/* The rows' icons: a grey round each, the icon in white, no colour (the sign-up's numbers are the same). */
.cell-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pill);
  color: var(--text);
}
.cell-icon .icon {
  width: 15px;
  height: 15px;
}
.cell-label {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}
.cell-sub {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}
.cell-value {
  flex: none;
  max-width: 45%;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cell-chevron {
  width: 18px;
  height: 18px;
  margin-right: -4px;
  color: var(--icon-subtle);
}
.cell.empty .cell-label {
  color: var(--subtle);
}
.cell.danger,
.cell.danger .cell-label {
  color: var(--danger);
  font-weight: 600;
}
label.cell {
  cursor: pointer;
}
.cell-pill {
  flex: none;
  margin: 0;
  padding: 7px 12px;
  background: var(--track);
  color: var(--text);
  font-size: 13px;
}
.list-title {
  margin: 24px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.list-footer {
  margin: 8px 0 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.45;
}
.list-footer a {
  color: var(--muted);
}
/* The code of a sign-in e-mail: six boxes, painted from one transparent field laid over them. */
.otp {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-width: 360px;
}
.otp input {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  outline: none;
}
.otp input::selection {
  background: transparent;
}
.otp-box {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 6;
  border: 1px solid var(--surface-3);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.otp:focus-within .otp-box[data-current] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.otp:focus-within .otp-box[data-current]:empty::after {
  content: '';
  width: 2px;
  height: 28px;
  background: var(--text);
  animation: otp-caret 1s steps(1) infinite;
}
@keyframes otp-caret {
  50% {
    opacity: 0;
  }
}
.list-field {
  margin-top: 16px;
}
.list-field label:first-child {
  margin-top: 0;
}
.model {
  display: none;
}

/* Réglages: a list that opens pages. Each page has the way back at its top, a round of glass that stays there while the
   page scrolls, and its title, large, under it. The sign-up's way back is the same. */
.page-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  margin: 0 0 14px;
  pointer-events: none;
}
.page-back,
.setup-bar .setup-back,
.auth-bar .setup-back {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  color: var(--text);
  pointer-events: auto;
}
.page-back .icon,
.setup-back .icon {
  width: 22px;
  height: 22px;
  margin-left: -2px;
}
.page-title {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.15;
}
.page-title:focus {
  outline: none;
}
.page-lead {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}
.page {
  padding-bottom: 24px;
}
/* The text of a page lines up with its lists' text. */
.page > p:not(.page-lead, .list-footer),
.page > div > p:not(.list-footer) {
  margin-inline: 16px;
}
.page > .cells:first-of-type,
.page > .page-title + .cells {
  margin-top: 0;
}
@keyframes page-in {
  from {
    transform: translateX(28%);
    opacity: 0;
  }
}
@keyframes page-back-in {
  from {
    transform: translateX(-12%);
    opacity: 0;
  }
}
.page-in {
  animation: page-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.page-back-in {
  animation: page-back-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 4px 0 0;
  padding: 14px 16px;
  border-radius: 28px;
  background: var(--fill);
  color: var(--text);
  font-weight: 400;
  text-align: left;
}
.source-card {
  margin: 0 0 20px;
}
.source-card .account-text .small {
  white-space: normal;
}
.account-card + .account-card {
  margin-top: 8px;
}
.account-card > .avatar .icon {
  width: 20px;
  height: 20px;
}
.account-card:active {
  background: var(--track);
}
.account-text {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}
.account-text strong {
  font-size: 15px;
  font-weight: 600;
}
.account-text .small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pill);
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}
.avatar.large {
  width: 56px;
  height: 56px;
  font-size: 24px;
}
.profile {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 8px 0 16px;
  text-align: center;
}
.profile strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 2px;
  border-radius: 10px;
  background: var(--fill);
}
.segmented button {
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.segmented button[aria-pressed='true'] {
  background: var(--surface-3);
}
/* Administration's tabs: four across, above its panels. */
.admin-tabs {
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 20px;
}
.admin-tabs button {
  padding-inline: 4px;
  font-size: 13px;
}
.search-field {
  display: flex;
  gap: 8px;
}
.search-field input {
  flex: 1;
}
.search-field button {
  margin: 0;
}
.search-field + .cells {
  margin-top: 12px;
}
.manifest {
  display: block;
  margin-top: 6px;
  word-break: break-all;
}

/* Welcome: the word Playglass, the promise (the marketing site's), the ways in at the bottom. */
.welcome {
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin-inline: auto;
  min-height: calc(100svh - max(16px, env(safe-area-inset-top)) - 24px - env(safe-area-inset-bottom));
  padding: 24px 0 0;
}
.welcome-title {
  display: block;
  width: min(200px, 51%);
  height: auto;
  aspect-ratio: 290 / 184;
  /* Down with its promise, the two in the middle of the space above the ways in. */
  margin: auto auto 0;
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.welcome-text {
  /* The word's canvas keeps room under it for the titles drawn in an arc: the promise comes up into it. */
  margin-top: -14px;
  text-align: center;
}
/* The first opening (welcomeIntro): Playglass alone in the middle, as on the launch image, the rest appearing as it goes up. While
   the device's passkey sheet is open, the title alone, dimmed. */
.welcome > :not(.welcome-title) {
  transition: opacity 0.5s ease 0.3s;
}
/* The word starts as large as on the launch images (api/configure/launch/, kit noir et blanc, made for a title of
   min(290px, 74%)): 0.575 and 0.6 of that one, the title now smaller. */
.welcome.launching .welcome-title {
  transform: translateY(var(--intro-shift, 0)) scale(0.834);
  transition: none;
}
@media (max-width: 600px) {
  .welcome.launching .welcome-title {
    transform: translateY(var(--intro-shift, 0)) scale(0.87);
  }
}
.welcome:is(.launching, .asking) > :not(.welcome-title) {
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.welcome.asking .welcome-title {
  opacity: 0.22;
}
.welcome-lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}
.welcome-lead b {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
/* The terms and the privacy policy, under the sign-in buttons. */
.welcome-legal {
  margin: 14px 0 0;
  color: var(--muted);
  text-align: center;
}
.welcome-legal a {
  color: inherit;
  text-decoration: underline;
}
.welcome-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 32px;
}
.welcome-actions button {
  width: 100%;
  margin: 0;
  padding-block: 15px;
  font-size: 16px;
}
.welcome-actions .link-button {
  padding-block: 10px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}
.welcome-actions form button {
  margin-top: 16px;
}

/* The way in after the welcome, a screen a step (the address, its code, Stremio, Face ID): the way back at the top, the
   title as the sign-up's, the action at the bottom of the screen. */
.auth-step {
  display: flex;
  flex-direction: column;
  max-width: 430px;
  min-height: calc(100svh - max(16px, env(safe-area-inset-top)) - 24px - env(safe-area-inset-bottom));
  margin: 0 auto;
  animation: page-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.auth-step[hidden] {
  display: none;
}
.auth-bar {
  /* Held under the status bar as the sign-up's (.setup-bar): the keyboard scrolls the screen up, the way back stays. */
  position: sticky;
  top: calc(env(safe-area-inset-top) + var(--pan, 0px));
  z-index: 5;
  padding: 4px 0 12px;
  pointer-events: none;
}
.auth-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 16px;
}
.auth-body h1 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 500;
  line-height: 38px;
  letter-spacing: -0.4px;
}
.auth-body .otp {
  margin-top: 8px;
}
.auth-link {
  align-self: flex-start;
  margin: 12px 0 0;
  padding: 8px 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}
.auth-link:disabled {
  color: var(--subtle);
}
.auth-next {
  position: sticky;
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 100%;
  margin-top: auto;
  padding-block: 15px;
  font-size: 16px;
}
.auth-actions {
  display: grid;
  gap: 4px;
  padding: 0;
}
.auth-actions button {
  width: 100%;
  margin: 0;
  padding-block: 15px;
  font-size: 16px;
}
.auth-perks {
  margin: 8px 0 16px;
}

/* The sign-up's steps: one screen each, one bar for all of them, the way back and « Passer » for the optional ones;
   the actions at the bottom of the screen. */
.setup {
  display: flex;
  flex-direction: column;
  max-width: 430px;
  min-height: calc(100svh - max(16px, env(safe-area-inset-top)) - 24px - env(safe-area-inset-bottom));
  margin: 0 auto;
}
.setup-bar {
  position: sticky;
  /* Under the status bar: Safari tints it over the page, it would cut the way back. The keyboard's slide added (--pan). */
  top: calc(env(safe-area-inset-top) + var(--pan, 0px));
  z-index: 5;
  display: flex;
  padding: 4px 0 12px;
  pointer-events: none;
}
/* The bar of the steps, on the line of the way back but scrolling with the screen: only the way back stays. */
.setup-progress-row {
  display: flex;
  align-items: center;
  height: 40px;
  margin: -52px 52px 12px;
}
.setup.finale .setup-progress-row {
  display: none;
}
.setup-progress-row .setup-progress {
  flex: 1;
}
.setup.finale .setup-bar {
  display: none;
}
.setup-bar .setup-back[hidden] {
  display: grid !important;
  visibility: hidden;
}
.setup-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--track);
  overflow: hidden;
}
.setup-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: width 0.35s ease;
}
/* « Passer », under « Continuer » on the steps one can skip. */
/* The buttons stand out from the list as in the prototype: from 120 px above them, the list fades into the background,
   then the background to the bottom edge, across the whole width. */
.setup-foot {
  position: sticky;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 1;
  display: grid;
  margin-top: auto;
}
.setup-foot::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -120px;
  right: calc(50% - 50vw);
  /* Down past the bottom edge, whatever Safari's bar below takes (within the page's own bottom padding). */
  bottom: calc(-96px - env(safe-area-inset-bottom));
  left: calc(50% - 50vw);
  background: linear-gradient(to bottom, transparent, var(--bg) 120px);
  pointer-events: none;
}
html:has(#setup:not([hidden])) body {
  overflow-x: clip;
}
.setup-foot .setup-next {
  position: static;
  margin: 0;
}
/* At the end of the scroll, the last of the screen above the fade. */
.setup-step > :has(+ .setup-foot) {
  margin-bottom: 96px;
}
/* « Passer » (and « Plus tard » of Face ID): a button's size, without its fill, its text secondary. */
.setup-skip,
.auth-actions .link-button {
  width: 100%;
  margin: 4px 0 0;
  padding-block: 15px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}
.setup-step {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 0 0;
  animation: page-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.setup-step h1 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 500;
  line-height: 38px;
  letter-spacing: -0.4px;
}
/* The screens of a generated title (Sous-titres, Genres, the count, « Pour toi »): centred under it. */
.setup-step:is([data-step='language'], [data-step='genres'], [data-step='preparing'], [data-step='done']) :is(h1, .setup-lead) {
  text-align: center;
}
.setup-art {
  position: relative;
  margin: 8px auto 20px;
}
.setup-art canvas {
  position: absolute;
  pointer-events: none;
}
.setup-step h1:focus {
  outline: none;
}
.setup-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.setup-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}
.setup-step .cells {
  margin: 4px 0 8px;
}
.setup-step .list-title {
  margin-top: 16px;
}
/* « Continuer », at the bottom of the screen, and over a long list as it scrolls. */
.setup-next {
  position: sticky;
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 100%;
  margin-top: auto;
  padding-block: 15px;
  font-size: 16px;
}

/* « Tes addons »: Stremio's form and the servers' connectors open inside their card, under its row; the field, always
   there. */
.fold-body {
  border-top: 0.5px solid var(--hairline);
}
#setup-stremio-box,
.fold-form {
  padding: 0 16px 16px;
}
.fold-form .button-stack {
  margin: 12px 0 0;
}
.fold-form .list-field {
  margin-top: 12px;
}
#setup-stremio-box .button-stack {
  margin: 12px 0 0;
}
.fold-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.setup-step[data-step='sources'] .key-field + .small:empty {
  display: none;
}
.setup-step[data-step='sources'] .list-footer a {
  color: var(--text);
}
.setup-step [aria-expanded='true'] .cell-chevron {
  transform: rotate(180deg);
}

/* A key: its three steps numbered on a card, the field showing the key pasted, the two buttons. */
.key-steps {
  margin: 0 0 12px;
  padding: 6px 16px;
  border-radius: 28px;
  background: var(--fill);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
  counter-reset: key-step;
}
.key-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  counter-increment: key-step;
}
.key-steps li::before {
  content: counter(key-step);
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pill);
  font-size: 13px;
}
.key-steps em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}
.key-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px 0 16px;
  border-radius: 999px;
  background: var(--fill);
  /* 16 px as every field: under it, iOS zooms the whole page in on the focus, its sides off the screen. */
  font-size: 16px;
}
.key-field:focus-within {
  outline: 2px solid var(--accent);
}
.key-text,
.source-text {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-overflow: ellipsis;
}
.key-text::placeholder,
.source-text::placeholder {
  color: var(--muted);
}
.key-text:focus-visible,
.source-text:focus-visible {
  outline: none;
}
.key-check {
  display: none;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ok);
  color: #121212;
}
.key-check .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}
.key-field.verified .key-check {
  display: grid;
}
.key-message:empty {
  display: none;
}
.key-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}
/* In Réglages, the page of a key holds its buttons at the bottom of the screen, as the sign-up does. */
.key-page:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - max(16px, env(safe-area-inset-top)) - 96px - env(safe-area-inset-bottom));
  padding-bottom: 0;
}
.key-actions > * {
  width: 100%;
  margin: 0;
  padding-block: 15px;
  font-size: 16px;
}
.key-actions .setup-next {
  position: static;
}

/* « Tes genres »: a row each, liked less on the left, liked on the right; the row or its name touched, liked. Liked
   less, the row faded and its name struck. */
.genre-votes {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.genre-vote {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 6px 6px 6px 16px;
  border-radius: 24px;
  background: var(--fill);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
.genre-name {
  flex: 1;
  min-width: 0;
}
.genre-vote {
  cursor: pointer;
}
.genre-vote.down {
  opacity: 0.45;
}
.genre-vote.down .genre-name {
  text-decoration: line-through;
}
.vote-button {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--fill);
  color: var(--subtle);
}
.vote-button .icon {
  width: 17px;
  height: 17px;
}
.vote-button[data-side='up'][aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
}
.vote-button[data-side='down'][aria-pressed='true'] {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  color: var(--text);
}

/* « Tes affiches »: the search, three posters a row, a tick on those chosen. */
.searchbar.poster-search {
  border-radius: 999px;
  background: var(--fill);
  color: var(--muted);
}
.poster-search input {
  color: var(--text);
}
.poster-search input::placeholder {
  color: var(--muted);
}
.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 16px;
}
.poster-pick {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--fill);
}
.poster-pick img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster-pick[aria-pressed='true']::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px var(--accent);
}
.poster-check {
  position: absolute;
  top: 6px;
  right: 6px;
  display: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.poster-check .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}
.poster-pick[aria-pressed='true'] .poster-check {
  display: grid;
}

/* « On prépare tes recos »: the count, its title and the spinner in the middle of the screen. The count's digits are
   symbols of chiffres.svg, each in a box of the same width so that the number never moves. */
.setup-step[data-step='preparing'] {
  justify-content: center;
  text-align: center;
}
.setup-count {
  width: calc(333 / 345 * 100%);
  aspect-ratio: 333 / 166;
  margin: auto auto 20px;
}
.setup-count canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.setup-spinner {
  width: 24px;
  height: 24px;
  margin: 16px auto auto;
  border: 2.5px solid var(--track);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: setup-spin 0.9s linear infinite;
}
@keyframes setup-spin {
  to {
    transform: rotate(360deg);
  }
}
.setup-step[data-step='preparing'] .setup-next {
  margin-top: 0;
}

/* « On prépare » to « Pour toi » (leavePreparing): the count grows and fades, then « Pour toi » and what the recos come
   from, a line after the other. « Pour toi » to the home (throughTunnel): « Pour toi » fades; the tunnel, full screen
   over everything, opens from the middle, then zooms into its far square, as dark as the screen, and fades on the home. */
.setup-step[data-step='preparing'].leaving .setup-count {
  opacity: 0;
  transform: scale(1.6);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s;
}
.setup-step[data-step='preparing'].leaving > :not(.setup-count) {
  opacity: 0;
  transition: opacity 0.3s;
}
.setup-step[data-step='done'].arriving {
  animation: none;
}
/* The block as one, the title, its line, the lines' card, then « Commencer », each a little after the other. */
.setup-step[data-step='done'].arriving :is(h1, .setup-lead, .setup-recap, .setup-foot) {
  animation: recap-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.setup-step[data-step='done'].arriving .setup-lead {
  animation-delay: 0.08s;
}
.setup-step[data-step='done'].arriving .setup-recap {
  animation-delay: 0.16s;
}
.setup-step[data-step='done'].arriving .setup-foot {
  animation-delay: 0.3s;
}
@keyframes recap-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
.tunnel-veil {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: #121212;
}
/* The DA's grain on the film: a fine noise laid over it, lighter on the pink, lost in the dark. */
.tunnel-veil::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.12;
}
.tunnel-veil video {
  display: block;
  will-change: transform, opacity;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tunnel-veil.opening video {
  animation: tunnel-open 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
/* Its far square is 30 % of the film: grown 4.5 times, it is past the edges of the screen. */
.tunnel-veil.zooming {
  background: transparent;
}
.tunnel-veil.zooming video {
  animation: tunnel-zoom 0.9s cubic-bezier(0.5, 0, 0.75, 0) both;
}
@keyframes tunnel-zoom {
  55% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: scale(4.5);
  }
}
@keyframes tunnel-open {
  from {
    opacity: 0;
    transform: scale(0.08);
  }
  40% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.setup-step[data-step='done'].diving > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}
.from-tunnel {
  animation: from-tunnel 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
/* A fade only: a transform would move the tab bar, held fixed inside it. */
@keyframes from-tunnel {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* « Pour toi »: what the first recos come from and « Commencer » at the bottom. */
.setup-step[data-step='done'] {
  animation: none;
}
.setup-recap .cell-label {
  flex: none;
}
.setup-recap .cell-value {
  flex: 1;
  min-width: 0;
  margin-left: auto;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* In the middle of the space above « Commencer ». */
.setup-step[data-step='done'] .setup-done {
  margin: auto 0;
  padding-bottom: 96px;
}
.setup-step[data-step='done'] h1 {
  margin-bottom: 12px;
}
.setup-step[data-step='done'] .setup-lead {
  margin-bottom: 28px;
}
.setup-recap .reco-marquee {
  text-overflow: clip;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.reco-track {
  display: inline-flex;
  animation: reco-marquee linear infinite;
}
.reco-track > span {
  padding-right: 0.3em;
}
@keyframes reco-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* The trial of the sign-up (/configure/essai): a discreet mark at the top, the screens shorter by as much; its end. */
.trial-badge {
  width: fit-content;
  margin: 0 auto 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
html.trial .welcome,
html.trial .setup,
.trial-end {
  min-height: calc(100svh - max(16px, env(safe-area-inset-top)) - 24px - env(safe-area-inset-bottom) - 34px);
}
.trial-end {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.trial-end h1 {
  margin-top: auto;
}
.trial-end button {
  width: 100%;
  margin-top: auto;
  padding-block: 15px;
  font-size: 16px;
}

/* A single choice: a radio at the end of its row, filled when chosen. */
.cell-radio {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  /* Not chosen: a ring alone, on nothing. */
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--track);
  transition: background 0.15s;
}
/* Chosen: a white round with its tick. */
.cell[aria-pressed='true'] .cell-radio {
  position: relative;
  background: var(--accent);
  box-shadow: none;
}
.cell[aria-pressed='true'] .cell-radio::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 8.5px;
  width: 5px;
  height: 9px;
  border: solid var(--on-accent);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
/* On or off, on a row that is a button (the notifications): the same switch, drawn. */
.cell-toggle {
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), inset 0 0 0 1.5px var(--track);
  transition: background 0.15s;
}
.cell-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.3, 0.7, 0.4, 1.2);
}
.cell[aria-checked='true'] .cell-toggle {
  background: var(--accent);
  box-shadow: none;
}
.cell[aria-checked='true'] .cell-toggle::after {
  background: var(--on-accent);
  transform: translateX(20px);
}
label.cell:active,
button.cell[role='switch']:active {
  background: transparent;
}

/* Actions are the app's buttons, apart from the lists: pills on frosted glass (the main one in white), full width,
   stacked under the list they act on. */
.button-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.button-stack:empty {
  display: none;
}
.button-stack button,
.button-stack a.button {
  width: 100%;
  margin: 0;
  padding-block: 14px;
}
/* A link that is the step's action (« Ouvrir Plex »), not ready yet. */
a.button:not([href]) {
  opacity: 0.5;
  pointer-events: none;
}
.secondary.danger {
  color: var(--danger);
}
.button-stack + .list-footer,
.button-stack + .small {
  margin-top: 10px;
}

/* Search and Library on a computer, as on the TV: the categories in a column beside the grid (the chip and its wheel,
   on a phone). */
.cat-column {
  display: none;
}

/* Réglages › Historique: its search and its « À noter » filter on one line, under Films and Séries. */
.history-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
}
.history-tools .searchbar {
  flex: 1;
  margin: 0;
}
.history-tools .chip {
  flex: none;
}
.row > button.compact {
  flex: none;
  margin: 0;
  padding: 8px 14px;
  font-size: 13px;
}

/* The home's rows: their title, and the menu that hides one (on the TV too). « Idées pour ce soir » chooses its mood here. */
.shelf-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shelf-head .section-title {
  flex: 1;
  min-width: 0;
}
.shelf-arrow .icon {
  width: 20px;
  height: 20px;
}
/* A row's title that leads somewhere (« Tendances de la semaine »): the title itself, a chevron after it. */
.shelf-link {
  gap: 2px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  box-shadow: none;
}
.shelf-link .icon {
  width: 22px;
  height: 22px;
  color: var(--icon-muted);
}
/* The arrows of a row: wide screens only (see below). */
.shelf-arrow {
  display: none;
}
/* The home's rows: « Masquer » at the end of a row's title (the « i » of « Pour toi » the same), quiet beside it; the
   rows hidden at the home's foot. */
.shelf-hide {
  flex: none;
  padding: 6px;
  color: var(--icon-subtle);
}
.shelf-hide .icon {
  width: 18px;
  height: 18px;
}
.home-hidden {
  display: block;
  margin: 8px auto 24px;
  color: var(--muted);
  font-size: 14px;
}
/* How the recommendations are made, in a window: its lines read as a list. */
.about .cells {
  text-align: left;
}
#history-about {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}
#history-about .icon {
  width: 16px;
  height: 16px;
}
/* Wider screens, the same app laid out for the room: the page spans the screen (the home's tint, the rows running to
   its edges), its content in a column of 1280 px at most, the settings in a reading column, the sheets windows in the
   middle. From 900 px the tabs go across the top and the title's sheet has its poster beside the text. */
@media (min-width: 700px) {
  /* A sheet's buttons on one line, as on the TV: « Regarder » as wide as its words, the trailer named, then the library,
     the rating, the TV and « Plus » in rounds of an icon alone (placeSheetActions moves them there). */
  .watch-row {
    flex-wrap: wrap;
    align-items: center;
    max-width: none;
  }
  #sheet-watch {
    flex: none;
    padding-inline: 28px;
  }
  .watch-row .sheet-actions {
    display: contents;
  }
  .watch-row .sheet-actions button {
    flex-direction: row;
    gap: 0;
    padding: 0;
  }
  .watch-row .sheet-actions button > span:not(.round) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .watch-row #sheet-play {
    order: 1;
    gap: 8px;
    padding: 0 22px 0 18px;
    border-radius: 999px;
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge);
    font-size: 15px;
    min-height: 52px;
  }
  .watch-row #sheet-play .round {
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .watch-row #sheet-play > span:not(.round) {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
  .watch-row #sheet-add {
    order: 2;
  }
  .watch-row #sheet-rate {
    order: 3;
  }
  .watch-row #sheet-play-tv {
    order: 4;
  }
  .watch-row #sheet-plus {
    order: 5;
  }
  #settings {
    --gutter: 28px;
    max-width: none;
  }
  .view[data-view='settings'] {
    max-width: 680px;
    margin-inline: auto;
  }
  .view > p,
  .view[data-view='add'] .searchbar {
    max-width: 680px;
  }
  /* Bars held at the top: as wide as the rows passing under them. */
  .sticky-bar {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }
  .sheet {
    inset: 0;
    width: min(560px, calc(100% - 48px));
    max-width: none;
    height: min(880px, calc(100% - 64px));
    max-height: calc(100% - 64px);
    margin: auto;
    border-radius: 16px;
    box-shadow: 0 32px 96px #000c;
  }
  .sheet-top {
    border-radius: 16px 16px 0 0;
  }
  /* A window is not pulled down: no grabber. */
  .sheet-top::before {
    display: none;
  }
  .sheet[open] {
    animation: sheet-in 0.26s ease-out;
  }
  .watch {
    width: min(400px, calc(100% - 32px));
  }
  .library-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 24px 16px;
  }
  .shelf-arrow:disabled {
    opacity: 0.3;
  }
  /* « À la une »: the title's landscape picture across the screen, its words at the bottom left over the rows' edge,
     the arrows at the sides under the mouse. */
  .hero-art picture,
  .hero-art img {
    height: clamp(420px, 72vh, 760px);
    object-position: center 22%;
  }
  .hero-art::after {
    background:
      linear-gradient(to bottom, #000000a6, transparent 26%),
      linear-gradient(to right, #000000b3, transparent 62%),
      linear-gradient(to top, #000000a6, transparent 55%);
  }
  .hero-text {
    left: var(--gutter);
    right: auto;
    bottom: 76px;
    width: min(560px, 62%);
    justify-items: start;
    padding: 0;
    text-align: left;
  }
  .hero-title {
    justify-items: start;
  }
  .hero-logo {
    max-width: 420px;
    max-height: 150px;
    object-position: left bottom;
  }
  .hero-name {
    font-size: 48px;
  }
  .hero-dots {
    bottom: 30px;
  }
  .hero-arrow {
    position: absolute;
    top: 45%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: -24px 0 0;
    padding: 0;
    background: #00000066;
    color: #fff;
    box-shadow: inset 0 0 0 0.5px #ffffff38;
    opacity: 0;
    transition: opacity 0.2s;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
  }
  .hero-arrow[hidden] {
    display: none;
  }
  #hero-prev {
    left: 20px;
  }
  #hero-next {
    right: 20px;
  }
  .hero:hover .hero-arrow,
  .hero-arrow:focus-visible {
    opacity: 1;
  }
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}
@media (min-width: 700px) and (hover: hover) and (pointer: fine) {
  .shelf-arrow {
    display: inline-grid;
    flex: none;
    padding: 6px;
    color: var(--text);
  }
}
/* A computer, as the TV: the tabs a transparent rail down the left side, their icons alone (the current one on a round,
   the name on hover), the page beside it but « À la une » running under it, from the screen's edge; the home's filters
   and its refresh at the top right of « À la une », staying there as the page scrolls; the greeting steps aside. */
@media (min-width: 900px) {
  :root {
    --rail: 88px;
  }
  #settings {
    --cover: 160px;
    /* A margin of the screen's width, as Netflix's: the rows run to the right edge, nothing centred in a column. */
    --gutter: max(40px, 4vw);
    padding-left: calc(var(--rail) + var(--gutter));
  }
  .dock {
    left: var(--rail);
  }
  /* The home's tint runs under the rail too, as « À la une » does: no seam at the rail's edge. */
  .home {
    margin-left: calc(-1 * (var(--rail) + var(--gutter)));
    padding-left: calc(var(--rail) + var(--gutter));
  }
  .home.with-hero > .hero {
    margin-left: calc(-1 * (var(--rail) + var(--gutter)));
  }
  .hero-text,
  .home.with-hero > .top {
    left: calc(var(--rail) + var(--gutter));
  }
  .hero-dots {
    left: var(--rail);
  }
  #hero-prev {
    left: calc(var(--rail) + 20px);
  }
  .tabbar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  /* Over « À la une » (see paintScroll), its colours are the hero's, dark in either theme. */
  .tabbar.over-hero {
  --bg: #000000;
  --elevated: #181818;
  --surface: #242424;
  --surface-2: #2a2a2a;
  --surface-3: #3e3e3e;
  --line: #2a2a2a;
  --text: #ffffff;
  /* The quieter texts: the text's own colour, fainter (they take the tint of what is under them). */
  --muted: #ffffffb3;
  --subtle: #ffffff7a;
  /* The same greys, opaque, for the icons: in a see-through colour their strokes overlap, and each crossing shows. */
  --icon-muted: #b3b3b3;
  --icon-subtle: #7a7a7a;
  --accent: #ffffff;
  --accent-soft: #ffffff;
  --on-accent: #121212;
  --glass: #ffffff24;
  --glass-edge: inset 0 0 0 0.5px #ffffff38;
  --fill: #ffffff1a;
  --pill: #383838;
  --track: #ffffff33;
  --hairline: #ffffff14;
  --bar: #161616d9;
  --bar-edge: #ffffff26;
  --toast-bg: #2a2a2ae6;
  --sk-a: #ffffff0f;
  --sk-b: #ffffff21;
  --star-off: #ffffff47;
  --grabber: #ffffff59;
  --search-bg: #ffffff;
  --scrim: #000000d9;
  --scrim-solid: #000000;
  --ok: #5ad08b;
  --warn: #f3c56b;
  --danger: #ff8d84;
  --chart: #e86fe0;
  --chart-2: #199e70;
  --chart-rest: 0.6;
  --dialog: #2a2a2aa6;
  }
  .tabbar button {
    flex: none;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
  }
  .tabbar button > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .tabbar button[aria-current='page'] {
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge);
  }
  .key-page:not([hidden]) {
    min-height: 0;
  }
  .hero-summary {
    display: -webkit-box;
    max-width: 520px;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #ffffffd9;
    font-size: 15px;
    line-height: 1.45;
  }

  .tabbar .icon {
    width: 24px;
    height: 24px;
  }
  .browse {
    display: flex;
    align-items: flex-start;
    gap: 28px;
  }
  .browse > .grid {
    flex: 1;
    min-width: 0;
  }
  .cat-column {
    position: sticky;
    top: 72px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: none;
    width: 230px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .cat-column:empty {
    display: none;
  }
  .cat-column .cat {
    justify-content: flex-start;
    margin: 0;
    padding: 11px 18px;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cat-column .cat:hover {
    color: var(--text);
  }
  .cat-column .cat[aria-pressed='true'] {
    background: var(--fill);
    color: var(--text);
  }
  .chips .chip-category {
    display: none;
  }
  .home-top {
    flex-wrap: nowrap;
  }
  .home-top .home-filters {
    position: static;
    flex-basis: auto;
    margin: 0;
    padding: 0;
  }
  .mini-player {
    margin-bottom: 16px;
  }
  .toast {
    bottom: 24px;
  }
  /* The episodes as Netflix's: the picture on the left, the name and its length on one line beside it, the summary under
     them, the row lit under the mouse. */
  .episodes {
    gap: 4px;
    margin-inline: -12px;
  }
  .episode {
    grid-template-columns: 208px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 8px 20px;
    padding: 12px;
    border-radius: 12px;
    transition: background-color 0.15s;
  }
  .episode:not(:disabled):hover {
    background: var(--fill);
  }
  .episode-art {
    grid-row: 1 / 3;
  }
  .episode-text {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-top: 4px;
  }
  .episode-text strong {
    font-size: 16px;
  }
  .episode-text .small {
    flex: none;
  }
  .episode-overview {
    grid-column: 2;
    -webkit-line-clamp: 3;
    line-height: 1.4;
  }
  .episodes li.with-tv .episode-text {
    padding-right: 48px;
  }
  .episode-tv {
    top: 14px;
    right: 8px;
  }
  /* The title's sheet: wider, its picture across the window, its name and actions at the picture's bottom left. */
  #sheet {
    width: min(940px, calc(100% - 64px));
    padding: 0 36px 36px;
  }
  #sheet > .sheet-top {
    margin-inline: -36px;
    padding-inline: 28px;
  }
  #sheet.has-backdrop {
    --media-h: min(500px, 58vh);
  }
  #sheet.has-backdrop > .sheet-media {
    margin-inline: -36px;
  }
  #sheet.has-backdrop > .sheet-media::after {
    background: linear-gradient(to bottom, #00000080, transparent 28%, transparent 42%, var(--tint, #3a3a3a)),
      linear-gradient(to right, #00000073, transparent 60%);
  }
  #sheet.has-backdrop #sheet-match {
    left: 36px;
  }
  #sheet.has-backdrop > .sheet-title-row {
    margin-top: -140px;
  }
  #sheet.has-backdrop > .sheet-title-row {
    max-width: 520px;
  }
  #sheet.has-backdrop .sheet-title-row h2 {
    font-size: 38px;
  }
}
/* With a mouse: what can be clicked answers the pointer. */
@media (hover: hover) and (pointer: fine) {
  .cover img,
  .hero-art img {
    transition: filter 0.2s;
  }
  .cover:hover img,
  .hero-art:hover img {
    filter: brightness(1.12);
  }
  button.cell:hover,
  .row-main:hover {
    background: var(--fill);
  }
  .tabbar button:hover {
    color: var(--text);
  }
}
/* Transparency reduced (iOS, macOS): no blur, the glass and the bars opaque. */
@media (prefers-reduced-transparency: reduce) {
  * {
    --glass: var(--surface-2);
    --dialog: var(--elevated);
    --bar: var(--elevated);
    --toast-bg: var(--surface-2);
    --scrim: var(--scrim-solid);
  }
  *,
  *::before,
  *::after,
  ::backdrop {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
/* The launch screen of the installed app, as iOS's own image (configure.mjs), held a moment then faded (script.mjs). */
#launch { display: none; }
@media (display-mode: standalone) {
  /* The word alone, as wide as on the device's launch image (the welcome's title at its launching scale): the same
     place on every iPhone and iPad, whichever way. */
  #launch { --launch-word: calc(0.575 * 290px); display: block; position: fixed; inset: 0; z-index: 10000;
    background: #121212 url(/configure/launch/launch-word.png?v=3) center / var(--launch-word) auto no-repeat; transition: opacity .45s ease; }
  #launch[data-out] { opacity: 0; pointer-events: none; }
  /* The word over it (script.mjs, launchAway), as large as on the image: the welcome's title at its launching scale. */
  #launch > canvas { position: absolute; left: 50%; top: 50%; width: var(--launch-word); aspect-ratio: 290 / 184;
    transform: translate(-50%, -50%); }
  #launch[data-playing] { background: #121212; }
}
@media (display-mode: standalone) and (max-width: 600px) {
  #launch { --launch-word: calc(0.6 * min(290px, 0.74 * (100vw - 32px))); }
}
