/* =========================================================
   tracking.css — page « Suivi » (#/suivi, views/tracking.js, préfixe .tp-trk-), mise en page de l'onglet « Contenu »
   de YouTube Studio en thème Écran : traits fins, texte clair / gris, une seule couleur d'accent (dernier point d'une
   courbe), aucune pastille d'icône, aucun dégradé, aucune ombre. Jetons --tp-* seulement. Seule couleur de fond :
   l'étiquette du score ×N (ui.tagHTML + outlierColor), la même que partout sur le site (cartes vidéo, Analyse).
   Autonome : ne dépend d'aucune règle d'analysis.css (courbes .tp-trk-chart, tableau des relevés .tp-trk-rtable,
   choix d'une carte .tp-trk-cp). Petite courbe d'une ligne .tp-trk-spark, grande courbe .tp-trk-bigchart.
   Sous 720 px : plus de tableau, une ligne par vidéo (miniature, titre, chaîne, « [×1,7] 1,2 M vues · +12 k en 24 h », ⋮),
   puces de filtres qui passent à la ligne, aucun défilement horizontal de la page.
   Chargé après analysis.css, avant da/ecran.css (index.html).
   ========================================================= */

/* ---------- En-tête ---------- */
.tp-trk-head { margin-bottom: 20px; }
.tp-trk-head__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: 36px; }
.tp-trk-head__title { min-width: 0; font-size: 24px; line-height: 32px; font-weight: 700; }
.tp-trk-head__side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.tp-trk-usage { color: var(--tp-text-subtle); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-trk-usage.is-full { color: var(--tp-text-strong); font-weight: 700; }
.tp-trk-head__sub { margin-top: 4px; color: var(--tp-text-subtle); font-size: 14px; line-height: 20px; }
.tp-trk-head .tp-trk-source { margin-top: 8px; }

/* ---------- Barre d'ajout ---------- */
.tp-trk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 900px; }
.tp-trk-bar__field { flex: 1 1 340px; }
.tp-trk-bar__field .tp-input { min-height: 40px; border-radius: 20px; }
.tp-trk-bar > .tp-button { min-height: 40px; }
.tp-trk-bar > .tp-button .tp-icon { margin-right: -4px; }
.tp-trk-bar__msg { margin-top: 8px; }

/* Bandeau « Vidéo non suivie » (#/suivi?video=<id> d'une vidéo pas encore suivie) */
.tp-trk-focus {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; max-width: 900px; margin-top: 16px; padding: 12px 16px;
  border: 1px solid var(--tp-line); border-radius: var(--tp-radius);
}
.tp-trk-focus__thumb { width: 96px; height: 54px; flex: none; border-radius: var(--tp-radius-sm); object-fit: cover; background: var(--tp-surface-3); }
.tp-trk-focus__text { flex: 1 1 240px; min-width: 0; color: var(--tp-text-subtle); font-size: 14px; line-height: 20px; }
.tp-trk-focus__text strong { color: var(--tp-text-strong); font-weight: 500; }

/* ---------- Filtres (puces) ---------- */
.tp-trk-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 28px 0 4px; }
.tp-trk-filters[hidden] { display: none; }
.tp-trk-filters__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-width: 0; }
.tp-trk-seg { flex-wrap: nowrap; gap: 8px; }
.tp-trk-seg .tp-seg__opt span { white-space: nowrap; }
/* Count inside a chip: a <small> (base.css styles every span of .tp-seg__opt as the chip itself). */
.tp-trk-seg__n { margin-left: 6px; font-size: inherit; font-weight: inherit; opacity: 0.7; font-variant-numeric: tabular-nums; }
.tp-trk-seg .tp-seg__opt:has(input:disabled) { cursor: default; opacity: 0.45; }
.tp-trk-seg .tp-seg__opt input:disabled { cursor: default; }
.tp-trk-seg .tp-seg__opt:has(input:disabled):hover span { background: var(--tp-surface-3); color: var(--tp-text); }
.tp-trk-filters__q { flex: 0 1 300px; min-width: 200px; margin-left: auto; }
.tp-trk-filters__q .tp-input { min-height: 32px; border-radius: 16px; }
.tp-trk-sortsel { display: none; align-items: center; gap: 8px; color: var(--tp-text-subtle); font-size: 13px; white-space: nowrap; }
.tp-trk-sortsel .tp-select { width: auto; }

/* ---------- Tableau ---------- */
.tp-trk-list { margin-top: 4px; }
.tp-trk-table { width: 100%; border-collapse: collapse; }
.tp-trk-th {
  height: 42px; padding: 12px 8px; border-bottom: 1px solid var(--tp-line); color: var(--tp-text-subtle); font-size: 13px; line-height: 18px;
  font-weight: 500; text-align: left; white-space: nowrap; vertical-align: bottom;
}
.tp-trk-th:first-child { padding-left: 0; }
.tp-trk-th.tp-trk-num { text-align: right; }
/* The sort button keeps the height of a line of text, arrow or not: the header never moves when a column is sorted. */
.tp-trk-th__btn {
  display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0; border: 0; border-radius: var(--tp-radius-xs);
  background: none; color: inherit; font: inherit; line-height: 18px; vertical-align: top; cursor: pointer;
}
.tp-trk-th__btn:hover, .tp-trk-th__btn.is-sorted { color: var(--tp-text-strong); }
.tp-trk-th__arrow { width: 16px; height: 16px; flex: none; }
.tp-trk-row { border-bottom: 1px solid var(--tp-line); }
.tp-trk-row:hover { background: color-mix(in srgb, var(--tp-text) 4%, transparent); }
.tp-trk-row.is-flash { animation: tp-trk-flash 1.6s ease-out 1; }
@keyframes tp-trk-flash {
  from { background: color-mix(in srgb, var(--tp-text) 12%, transparent); }
  to { background: transparent; }
}
.tp-trk-cell { padding: 12px 8px; color: var(--tp-text); font-size: 14px; line-height: 20px; vertical-align: top; }
.tp-trk-cell:first-child { padding-left: 0; }
.tp-trk-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-trk-muted { color: var(--tp-text-subtlest); }
.tp-trk-cell--video { width: 100%; min-width: 300px; }
.tp-trk-cell--spark { width: 128px; padding-top: 18px; }
.tp-trk-cell--menu { width: 48px; padding: 8px 0 0 4px; }
.tp-trk-cell--menu .tp-icon-btn { color: var(--tp-text-subtle); }
.tp-trk-row:hover .tp-trk-cell--menu .tp-icon-btn, .tp-trk-cell--menu .tp-icon-btn:focus-visible { color: var(--tp-text-strong); }
/* Score ×N: the site's coloured tag, level with the figures of the row. */
.tp-trk-cell--score .tp-trk-score { vertical-align: top; }

.tp-trk-vid { display: flex; gap: 16px; min-width: 0; }
.tp-trk-vid__thumb {
  position: relative; display: block; flex: none; width: 120px; height: 68px; overflow: hidden; border-radius: var(--tp-radius-sm);
  background: var(--tp-surface-3);
}
.tp-trk-vid__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-trk-vid__dur {
  position: absolute; right: 4px; bottom: 4px; padding: 0 4px; border-radius: var(--tp-radius-xs); background: var(--tp-bg);
  color: var(--tp-text-strong); font-size: 12px; line-height: 18px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.tp-trk-vid__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 1px; }
.tp-trk-vid__title {
  display: -webkit-box; overflow: hidden; color: var(--tp-text-strong); font-size: 14px; line-height: 20px; font-weight: 500;
  text-decoration: none; overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tp-trk-vid__title:hover { text-decoration: underline; text-underline-offset: 2px; }
.tp-trk-vid__chan { overflow: hidden; color: var(--tp-text-subtle); font-size: 13px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
/* Room for the focus ring of the link inside the clipping (ellipsis) box, without moving the text. */
.tp-trk-vid__chan { margin: -4px; padding: 4px; }
.tp-trk-vid__chan a { color: inherit; text-decoration: none; }
.tp-trk-vid__chan a:hover { color: var(--tp-text-strong); }
/* Only an abnormal state (first reading, unavailable, paused): the usual « Relevé il y a … » is in the Vues tooltip. */
.tp-trk-vid__status { color: var(--tp-text-subtlest); font-size: 12px; line-height: 16px; }
.tp-trk-vid__mobile { display: none; color: var(--tp-text-subtle); font-size: 12px; line-height: 20px; }
/* « [×1,7] 774 k vues · +5,4 k en 24 h » : the tag starts the line, the text follows it on the same line. */
.tp-trk-vid__mobile .tp-tag { margin-right: 6px; vertical-align: top; }
.tp-trk-row.is-unavailable .tp-trk-vid__thumb img { opacity: 0.35; }
.tp-trk-row.is-unavailable .tp-trk-vid__title { color: var(--tp-text-subtle); }

/* ---------- Courbes (petite et grande) ---------- */
.tp-trk-chart { position: relative; cursor: crosshair; touch-action: pan-y; }
.tp-trk-chart__plot { position: absolute; inset: 0; }
.tp-trk-chart__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tp-trk-chart__area { fill: var(--tp-accent); opacity: 0.08; }
.tp-trk-chart__line { fill: none; stroke: var(--tp-accent); stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; }
.tp-trk-chart__grid line { stroke: var(--tp-line); stroke-width: 1px; }
.tp-trk-chart__dot {
  position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--tp-accent); pointer-events: none;
}
.tp-trk-chart__dot--hover { width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid var(--tp-bg); background: var(--tp-text-strong); }
.tp-trk-chart__cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--tp-text-subtlest); pointer-events: none; }
.tp-trk-chart__note {
  position: absolute; inset: 0 24px 0 0; display: grid; place-items: center; color: var(--tp-text-subtlest); font-size: 12px; line-height: 16px;
  text-align: center; pointer-events: none;
}
/* Tooltip: surface of the menus, neutral text (never green). */
.tp-trk-chart__tip {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 6; display: flex; flex-direction: column; gap: 1px; min-width: 150px; padding: 6px 10px;
  border: 1px solid var(--tp-line); border-radius: var(--tp-radius-sm); background: var(--tp-surface-2); pointer-events: none; white-space: nowrap;
}
.tp-trk-chart__tip strong { color: var(--tp-text-strong); font-size: 14px; line-height: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tp-trk-chart__tip span { color: var(--tp-text-subtle); font-size: 12px; line-height: 16px; }
.tp-trk-chart--empty { display: grid; place-items: center; cursor: default; }

/* Petite courbe d'une ligne : trait seul en gris, dernier point à la couleur d'accent */
.tp-trk-spark { width: 112px; height: 32px; }
.tp-trk-spark .tp-trk-chart__plot { inset: 3px 4px; }
.tp-trk-spark .tp-trk-chart__line { stroke: var(--tp-text-subtle); stroke-width: 1.5px; }
.tp-trk-spark .tp-trk-chart__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.tp-trk-spark .tp-trk-chart__dot--hover { width: 8px; height: 8px; margin: -4px 0 0 -4px; border: 0; }
.tp-trk-spark .tp-trk-chart__cross { top: -2px; bottom: -2px; border-left-color: var(--tp-line); }
/* No curve yet, or a single reading (« 1 relevé »): grey text, never a lone dot. */
.tp-trk-chart--empty.tp-trk-spark { display: flex; align-items: center; color: var(--tp-text-subtlest); font-size: 12px; line-height: 14px; text-align: left; }
.tp-trk-spark:focus-visible { outline: 2px solid var(--tp-text-strong); outline-offset: 2px; border-radius: var(--tp-radius-xs); }

/* États de la liste */
.tp-trk-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 0; border-top: 1px solid var(--tp-line); }
.tp-trk-empty__title { color: var(--tp-text-strong); font-size: 16px; line-height: 22px; font-weight: 500; }
.tp-trk-empty__text { max-width: 640px; color: var(--tp-text-subtle); font-size: 14px; line-height: 20px; }
.tp-trk-skel__row { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--tp-line); }
.tp-trk-skel__thumb { display: block; flex: none; width: 120px; height: 68px; border-radius: var(--tp-radius-sm); }
.tp-trk-skel__lines { display: flex; flex: 1; flex-direction: column; gap: 10px; max-width: 420px; padding-top: 4px; }
.tp-trk-skel__chart { display: block; height: 280px; margin-top: 28px; border-radius: var(--tp-radius); }
.tp-trk-note { max-width: 900px; margin-top: 16px; color: var(--tp-text-subtlest); font-size: 12px; line-height: 18px; }
.tp-trk-note--score { margin-top: 4px; }

/* ---------- « Ajouter depuis… » (popover) ---------- */
.tp-pop--trk-from .tp-menu__item > span:first-of-type { flex: 1; min-width: 0; }
.tp-trk-from__n { color: var(--tp-text-subtle); font-variant-numeric: tabular-nums; }
.tp-trk-from__chev { color: var(--tp-text-subtle); }
.tp-menu__item.tp-trk-from__off, .tp-menu__item.tp-trk-from__off:hover { background: none; color: var(--tp-text-subtlest); cursor: default; }
.tp-trk-from__off .tp-icon, .tp-trk-from__off .tp-trk-from__n { color: var(--tp-text-subtlest); }
.tp-trk-pickbox { max-height: min(440px, 70vh); overflow-y: auto; }
.tp-trk-picks { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.tp-trk-pick { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.tp-trk-pick__thumb { flex: none; width: 96px; height: 54px; overflow: hidden; border-radius: var(--tp-radius-sm); background: var(--tp-surface-3); }
.tp-trk-pick__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-trk-pick__main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.tp-trk-pick__title {
  display: -webkit-box; overflow: hidden; color: var(--tp-text-strong); font-size: 14px; line-height: 18px; font-weight: 500;
  overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tp-trk-pick__meta { overflow: hidden; color: var(--tp-text-subtle); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.tp-trk-pick__done { flex: none; color: var(--tp-text-subtle); font-size: 13px; }
.tp-trk-pnote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--tp-text-subtle); font-size: 14px; line-height: 20px; }

/* ---------- « Lier à une carte » (menu ⋮ d'une ligne, bouton du détail) ---------- */
.tp-trk-cp__search { margin-bottom: 8px; }
.tp-trk-cp { display: flex; flex-direction: column; gap: 2px; max-height: 300px; margin: 0 -6px; padding: 0; overflow-y: auto; list-style: none; }
.tp-trk-cp__item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding: 6px 10px; border: 0; border-radius: var(--tp-radius-sm);
  background: none; color: var(--tp-text); font: inherit; text-align: left; cursor: pointer;
}
.tp-trk-cp__item:hover, .tp-trk-cp__item:focus-visible { background: var(--tp-hover-strong); }
.tp-trk-cp__item.is-on { background: var(--tp-selected); }
.tp-trk-cp__item .tp-spinner { width: 12px; height: 12px; border-width: 2px; }
.tp-trk-cp__title { max-width: 100%; overflow: hidden; color: var(--tp-text-strong); font-size: 14px; line-height: 20px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.tp-trk-cp__board { color: var(--tp-text-subtlest); font-size: 12px; line-height: 16px; }
.tp-trk-cp__none { padding: 8px 10px; color: var(--tp-text-subtlest); font-size: 13px; }

/* ---------- Détail d'une vidéo (#/suivi?video=<id>) ---------- */
.tp-trk-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--tp-text-subtle); font-size: 14px; line-height: 20px;
  font-weight: 500; text-decoration: none;
}
.tp-trk-back:hover { color: var(--tp-text-strong); text-decoration: none; }
.tp-trk-dhead { display: flex; align-items: flex-start; gap: 24px; }
.tp-trk-dhead__thumb {
  display: block; flex: none; width: 320px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--tp-radius);
  background: var(--tp-surface-3);
}
.tp-trk-dhead__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-trk-dhead.is-unavailable .tp-trk-dhead__thumb img { opacity: 0.35; }
.tp-trk-dhead__main { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.tp-trk-dhead__main > .tp-skeleton { max-width: 420px; }
.tp-trk-dhead__title { font-size: 20px; line-height: 28px; font-weight: 700; overflow-wrap: anywhere; }
.tp-trk-dhead__title a { color: var(--tp-text-strong); text-decoration: none; }
.tp-trk-dhead__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tp-trk-dhead__chan { color: var(--tp-text-subtle); font-size: 14px; line-height: 20px; }
.tp-trk-dhead__chan a { color: var(--tp-text-strong); font-weight: 500; text-decoration: none; }
.tp-trk-dhead__chan a:hover { text-decoration: underline; }
.tp-trk-dhead__meta { color: var(--tp-text-subtle); font-size: 13px; line-height: 18px; }
.tp-trk-dhead__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tp-trk-mine { color: var(--tp-text-subtle); font-weight: 400; }

.tp-trk-stats { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 28px 0 0; padding: 16px 0; border-top: 1px solid var(--tp-line); border-bottom: 1px solid var(--tp-line); }
.tp-trk-stat dt { color: var(--tp-text-subtle); font-size: 13px; line-height: 18px; }
.tp-trk-stat dd { display: flex; align-items: center; min-height: 32px; margin: 2px 0 0; color: var(--tp-text-strong); font-size: 24px; line-height: 32px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tp-trk-stat dd.tp-trk-muted { color: var(--tp-text-subtlest); }
.tp-trk-stat .tp-trk-score--stat { height: 28px; padding: 0 10px; font-size: 18px; line-height: 28px; }

.tp-trk-chartbox { margin-top: 24px; }
.tp-trk-chartbox__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tp-trk-chartbox__title { font-size: 16px; line-height: 22px; font-weight: 500; }
.tp-trk-chartframe { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
/* Y labels at the height of their grid line (--y = 0 top … 1 bottom of the plot: 14 px inset, x axis 24 px below). */
.tp-trk-chartframe__y {
  position: relative; min-width: 32px; color: var(--tp-text-subtlest); font-size: 12px; line-height: 14px; text-align: right;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tp-trk-chartframe__ywidth { display: block; height: 0; overflow: hidden; visibility: hidden; }
.tp-trk-chartframe__ytick { position: absolute; right: 0; top: calc(14px + (100% - 52px) * var(--y)); transform: translateY(-50%); }
.tp-trk-chartframe__plot { min-width: 0; }
.tp-trk-chartframe__x { position: relative; height: 18px; margin-top: 6px; color: var(--tp-text-subtlest); font-size: 12px; line-height: 18px; white-space: nowrap; }
.tp-trk-chartframe__xtick { position: absolute; top: 0; transform: translateX(-50%); }
.tp-trk-chartframe__xtick.is-start { transform: none; }
.tp-trk-chartframe__xtick.is-end { transform: translateX(-100%); }
.tp-trk-bigchart { height: 280px; }
.tp-trk-bigchart .tp-trk-chart__plot { inset: 14px 0; }
.tp-trk-bigchart.tp-trk-chart--empty { border: 1px dashed var(--tp-line); border-radius: var(--tp-radius); color: var(--tp-text-subtlest); font-size: 13px; }
.tp-trk-bigchart:focus-visible { outline: 2px solid var(--tp-text-strong); outline-offset: 4px; }

.tp-trk-readings { margin-top: 20px; }
.tp-trk-readings summary { color: var(--tp-text-strong); font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; }
.tp-trk-readings__scroll { max-height: 320px; margin-top: 8px; overflow: auto; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); }
.tp-trk-rtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.tp-trk-rtable th, .tp-trk-rtable td { padding: 6px 12px; border-bottom: 1px solid var(--tp-line); text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tp-trk-rtable thead th { position: sticky; top: 0; background: var(--tp-surface); color: var(--tp-text-subtle); font-size: 12px; font-weight: 500; }
.tp-trk-rtable tbody th { color: var(--tp-text); font-weight: 400; }
.tp-trk-rtable td { color: var(--tp-text-strong); }
.tp-trk-rtable tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Téléphone : une ligne par vidéo ---------- */
@media (max-width: 719px) {
  .tp-trk-head__title { font-size: 22px; line-height: 28px; }
  .tp-trk-bar__field { flex-basis: 100%; }
  .tp-trk-bar > .tp-button { flex: 1 1 auto; }
  .tp-trk-filters { gap: 10px 12px; margin-top: 20px; }
  /* The chips go to the next line (never a row scrolling out of sight). */
  .tp-trk-filters__chips { flex: 1 1 100%; flex-wrap: wrap; gap: 10px 16px; }
  .tp-trk-seg { flex-wrap: wrap; }
  .tp-trk-filters__q { flex: 1 1 160px; min-width: 0; max-width: none; margin-left: 0; }
  .tp-trk-sortsel { display: inline-flex; }
  .tp-trk-table, .tp-trk-table tbody { display: block; }
  .tp-trk-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tp-trk-row { display: flex; align-items: flex-start; }
  .tp-trk-row:hover { background: none; }
  .tp-trk-cell { display: none; }
  .tp-trk-cell--video { display: block; flex: 1; min-width: 0; padding: 12px 0; }
  .tp-trk-cell--menu { display: block; flex: none; width: auto; padding: 6px 0 0 4px; }
  .tp-trk-vid { gap: 12px; }
  .tp-trk-vid__mobile { display: block; }
  .tp-trk-dhead { flex-direction: column; gap: 16px; }
  .tp-trk-dhead__thumb { width: 100%; max-width: 480px; }
  .tp-trk-stats { gap: 12px 28px; margin-top: 20px; }
  .tp-trk-stat dd { min-height: 24px; font-size: 18px; line-height: 24px; }
  .tp-trk-stat .tp-trk-score--stat { height: 24px; font-size: 15px; line-height: 24px; }
  .tp-trk-bigchart { height: 200px; }
  .tp-trk-chartframe { gap: 8px; }
  .tp-trk-chartframe__y { min-width: 0; }
  /* At most three dates under the chart on a phone. */
  .tp-trk-chartframe__x .tp-trk-chartframe__xtick:nth-child(even):not(:last-child) { display: none; }
}

/* ---------- Hors de la page : bouton « Suivre la vidéo » des cartes vidéo (ui.js) ----------
   Vidéo suivie = bouton en puce active du thème (fond clair, icône sombre), aucune couleur. :root[data-da] passe devant
   da/ecran.css (chargé après). Références d'une carte : l'état actif de base.css (icône à la couleur d'accent,
   aria-pressed), le même que le bouton « couverture » de la même ligne. */
:root[data-da] .tp-vcard__act.is-on,
:root[data-da] .tp-vcard__act.is-on:hover { border-color: transparent; background: var(--tp-text-strong); color: var(--tp-bg); }
/* « Dans ton tableau » + « Suivie » (ui.js .tp-vcard__state): one block that wraps as a whole, same look as the links
   of the line (app.css .tp-vcard__line > .tp-tag[data-action]); the cards of a row keep the same height. */
.tp-vcard .tp-vcard__line > .tp-vcard__state { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 8px; max-width: 100%; white-space: nowrap; }
.tp-vcard .tp-vcard__line > .tp-vcard__state > .tp-tag[data-action] {
  height: 20px; gap: 4px; padding: 0; border: 0; background: none; color: var(--tp-accent-hover); font-size: 13px; line-height: 20px; font-weight: 500;
}
.tp-vcard .tp-vcard__line > .tp-vcard__state > .tp-tag[data-action] .tp-icon { display: inline-block; width: 14px; height: 14px; }
.tp-vcard .tp-vcard__line > .tp-vcard__state > .tp-tag[data-action]:hover { color: var(--tp-text-strong); filter: none; text-decoration: none; }
.tp-vgrid--thumbs .tp-vcard .tp-vcard__line > .tp-vcard__state > .tp-tag[data-action] { height: 18px; font-size: 12px; line-height: 18px; }
.tp-vcard__act[aria-busy="true"],
.tp-cdrp__track[aria-busy="true"] { cursor: progress; opacity: 0.6; }

/* ---------- Tablette (720 à 1023 px) : le tableau tient dans la largeur (sans la colonne « Tendance ») ---------- */
@media (min-width: 720px) and (max-width: 1023px) {
  .tp-trk-th--spark, .tp-trk-cell--spark { display: none; }
  .tp-trk-cell--video { min-width: 220px; }
}
