/* =========================================================
   analysis.css — pages « Analyse » (views/analysis.js, préfixe .tp-an-) et « Suivi » (views/tracking.js, préfixe .tp-tk-).
   Analyse : sobre, dans l'esprit de YouTube Studio. Pas de pastille d'icône, pas de carte colorée, pas d'ombre, pas
   d'effet au survol qui soulève les blocs. Surfaces pleines (--tp-surface) sans contour, filets fins entre les éléments,
   titres de section en texte simple, chiffres en grand sur une seule rangée.
   Couleur : seulement celle de la donnée, le code des étiquettes du site (app.css .tp-vcard__tags) — vues / vidéos longues
   vert, Shorts rose, abonnés bleu, rythme et jours violet, dernière publication orange, score ×N gris / jaune (×2) /
   orange (×5) / rouge (×10). Icônes au trait teintées, texte en variante claire (≥ 4,5:1 sur #212121), barres en aplat.
   Jamais de fond coloré derrière une icône, de bordure gauche colorée ni de dégradé.
   Cartes vidéo, tags, filtres, popovers, modales, états vides et squelettes viennent de app.css.
   ========================================================= */

/* ---------- Shared bits ---------- */
.tp-an {
  --an-rule: color-mix(in srgb, var(--tp-text) 12%, transparent); /* thin rules between figures / rows */
  --an-track: color-mix(in srgb, var(--tp-text) 12%, transparent); /* empty part of a bar */
  --an-radius: 12px;
  /* Data colours: text / icon variant (light, ≥ 4,5:1 on the dark surfaces) and bar fill. */
  --an-green: #4ade80;  --an-green-fill: #22c55e;   /* views, long videos */
  --an-pink: #f472b6;   --an-pink-fill: #ec4899;    /* Shorts */
  --an-blue: #60a5fa;   --an-blue-fill: #3b82f6;    /* subscribers */
  --an-violet: #a78bfa; --an-violet-fill: #8b5cf6;  /* rhythm, weekdays */
  --an-orange: #fb923c; --an-orange-fill: #f97316;  /* last upload ; score ×5 */
  --an-yellow: #facc15; --an-yellow-fill: #eab308;  /* score ×2 */
  --an-red: #f87171;    --an-red-fill: #ef4444;     /* score ×10 */
  --an-gray-fill: #717171;                          /* score below ×2 */
}
.tp-an-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp-an-head__sub { color: var(--tp-text-subtle); font-size: 13px; line-height: 18px; }
.tp-an .tp-section { margin-top: 40px; }
.tp-an .tp-section__head { margin-bottom: 12px; }
.tp-an .tp-section__title { font-size: 20px; line-height: 28px; font-weight: 700; }
.tp-an-sec { scroll-margin-top: 16px; }
.tp-an-sec .tp-section__title:focus { outline: none; }
.tp-an-sec .tp-section__title:focus-visible { outline: 2px solid var(--tp-accent-hover); outline-offset: 4px; border-radius: var(--tp-radius-xs); }

.tp-an-wait {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--tp-text-subtle); font-size: 13px; line-height: 18px;
}

.tp-an-meter { position: relative; display: block; height: 4px; overflow: hidden; border-radius: 2px; background: var(--an-track); }
.tp-an-meter > span {
  position: absolute; top: 0; bottom: 0; left: 0; border-radius: inherit; background: var(--tp-accent);
  transition: width 600ms var(--tp-ease-out);
}
.tp-an-meter--sm { height: 4px; }

/* Pro: one plain line (title, text, button). */
.tp-an-lock {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; padding: 12px 16px;
  border: 1px solid var(--an-rule); border-radius: var(--an-radius);
}
.tp-an-lock__main { flex: 1 1 220px; min-width: 0; }
.tp-an-lock__title { color: var(--tp-text-strong); font-weight: 500; }
.tp-an-lock__text { color: var(--tp-text-subtle); font-size: 13px; line-height: 18px; }

.tp-an-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; color: var(--tp-text-subtle); font-size: 13px; line-height: 18px;
}

/* ---------- Loading skeletons ---------- */
.tp-an-loading .tp-vgrid { margin-top: 24px; }
.tp-an-hero--skeleton { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.tp-an-hero--skeleton .tp-an-hero__main { display: flex; flex: 1; flex-direction: column; gap: 10px; }
.tp-an-skel-avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; }
.tp-an-skel-avatar--md { width: 36px; height: 36px; }
.tp-an-skel-title { width: 40%; height: 22px; }
.tp-an-skel-num { display: block; width: 60%; height: 26px; margin-top: 10px; border-radius: var(--tp-radius-xs); }
.tp-an-skel-mini { display: block; aspect-ratio: 16 / 9; border-radius: 8px; }
.tp-an-loading .tp-an-stat { min-height: 104px; }

/* ---------- Channel picker (no channel + « Autre chaîne ») ---------- */
.tp-an-picker { display: flex; flex-direction: column; gap: 6px; }
.tp-an-picker__row { display: flex; } /* the site's YouTube search bar (searchbar.css, --fit) */
.tp-an-picker__row > .tp-ytsb { flex: 1 1 auto; }
.tp-an-picker__results:empty { display: none; }
.tp-an-picker__note { display: flex; align-items: center; gap: 8px; padding: 8px 2px; color: var(--tp-text-subtle); font-size: 13px; line-height: 18px; }
.tp-an-picker__note--error { color: var(--tp-coral-text); }
.tp-an-results { display: flex; flex-direction: column; gap: 2px; max-height: 360px; margin-top: 4px; overflow-y: auto; list-style: none; }
.tp-an-result {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px; border-radius: 8px;
}
.tp-an-result:hover { background: var(--tp-hover); }
.tp-an-result__main { display: flex; flex: 1 1 160px; flex-direction: column; min-width: 0; }
.tp-an-result__name, .tp-an-result__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-an-result__name { color: var(--tp-text-strong); font-weight: 500; }
.tp-an-result__meta { color: var(--tp-text-subtle); font-size: 12px; line-height: 16px; }
.tp-an-result__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tp-pop--an-picker .tp-field__hint { margin-top: 10px; }

/* No channel linked: one search bar for any channel, « Associer ma chaîne » discreet under it. */
.tp-an-link { max-width: 720px; margin: 8px auto 0; padding: 24px; }
.tp-an-link__main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tp-an-link__title { display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 28px; font-weight: 700; }
.tp-an-link__title .tp-icon { width: 20px; height: 20px; flex: none; color: var(--tp-text-subtle); }
.tp-an-link__mine { font-size: 13px; line-height: 18px; }
.tp-an-link__mine .tp-link { color: var(--tp-text-subtle); font-weight: 500; }
.tp-an-link__mine .tp-link:hover { color: var(--tp-text-strong); }

/* Hero « Analyse n'importe quelle chaîne » (searchbar.css .tp-sbhero): no channel, and the « Analyser une autre chaîne »
   window. No channel: the hero's title replaces the page head (kept for screen readers). */
.tp-an--hero > .tp-page-head {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tp-an-find .tp-an-picker__results { margin-top: 8px; text-align: left; }
.tp-an-find .tp-an-link__mine { margin-top: 16px; }
.tp-an-heromodal .tp-sbhero { padding: 8px 0 12px; margin-bottom: 0; }
.tp-an-heromodal .tp-sbhero__title { font-size: 38px; line-height: 44px; }
@media (max-width: 599px) {
  .tp-an-heromodal .tp-sbhero__title { font-size: 26px; line-height: 32px; }
}

/* ---------- Channel header: one panel (like the top card of YouTube Studio) ---------- */
.tp-an-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin: 4px 0 16px; padding: 20px 24px;
  border-radius: var(--an-radius); background: var(--tp-surface);
}
.tp-an-hero > .tp-avatar--lg { width: 72px; height: 72px; }
.tp-an-hero > .tp-avatar--lg.tp-avatar--fallback { font-size: 26px; }
.tp-an-hero__main { display: flex; flex: 1 1 320px; flex-direction: column; gap: 2px; min-width: 0; }
.tp-an-hero__name { font-size: 22px; line-height: 30px; font-weight: 700; overflow-wrap: anywhere; }
.tp-an-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; color: var(--tp-text-subtle); font-size: 14px; line-height: 20px; }
.tp-an-hero__sample { margin-top: 4px; color: var(--tp-text); font-size: 13px; line-height: 18px; }
.tp-an-hero__source { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin-top: 2px; color: var(--tp-text-subtlest); font-size: 12px; line-height: 16px; }
.tp-an-hero__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.tp-an-hero__side > .tp-button .tp-icon { width: 16px; height: 16px; }
.tp-an-hero__level { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; }
.tp-an-level { color: var(--tp-text-subtle); font-size: 13px; line-height: 18px; }
.tp-an-partial { margin-bottom: 14px; }

/* ---------- On this page: neutral chips ---------- */
.tp-an-toc { margin: 0 0 24px; }
.tp-an-toc__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tp-an-toc li { display: flex; flex: none; }
.tp-an-toc__link {
  min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--tp-hover); color: var(--tp-text);
  font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background-color var(--tp-dur) var(--tp-ease), color var(--tp-dur) var(--tp-ease);
}
.tp-an-toc__link:hover { background: var(--tp-hover-strong); color: var(--tp-text-strong); }
.tp-an-toc__link.is-active { background: var(--tp-text); color: var(--tp-bg); }
.tp-an-toc__link:focus-visible { outline: 2px solid var(--tp-accent); outline-offset: 2px; }

/* ---------- Sections: clearly apart (a thin rule above each title) ---------- */
.tp-an .tp-an-sec { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--an-rule); }

/* ---------- Key figures: cards in a 3 × 2 grid ---------- */
.tp-an .tp-an-sec--stats { margin-top: 16px; padding-top: 0; border-top: 0; }
.tp-an-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.tp-an-stat {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 20px 18px;
  border-radius: var(--an-radius); background: var(--tp-surface);
}
.tp-an-stat__label { display: flex; align-items: flex-start; gap: 8px; color: var(--tp-text-subtle); font-size: 14px; line-height: 20px; font-weight: 500; }
.tp-an-stat__label .tp-icon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--an-c, var(--tp-text-subtle)); }
.tp-an-stat__value { margin-top: 4px; color: var(--an-c, var(--tp-text-strong)); font-size: 30px; line-height: 38px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* Each card in the colour of its data (icon + figure). */
.tp-an-stat--subs { --an-c: var(--an-blue); }
.tp-an-stat--long { --an-c: var(--an-green); }
.tp-an-stat--short { --an-c: var(--an-pink); }
.tp-an-stat--rhythm { --an-c: var(--an-violet); }
.tp-an-stat--last { --an-c: var(--an-orange); }
.tp-an-stat--score-yellow { --an-c: var(--an-yellow); }
.tp-an-stat--score-orange { --an-c: var(--an-orange); }
.tp-an-stat--score-red { --an-c: var(--an-red); }
@media (max-width: 900px) { .tp-an-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Insights: cards in a grid (category in text, bold sentence, detail) ---------- */
.tp-an-insights { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; list-style: none; }
.tp-an-insight {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 20px 18px;
  border-radius: var(--an-radius); background: var(--tp-surface);
}
.tp-an-insight__cat { color: var(--tp-text-subtle); font-size: 12px; line-height: 16px; font-weight: 600; }
/* Category in the colour of the figures it comes from: format = views (green), rhythm and day = violet, titles = score (yellow). */
.tp-an-insight__cat--format { color: var(--an-green); }
.tp-an-insight__cat--rhythm, .tp-an-insight__cat--day { color: var(--an-violet); }
.tp-an-insight__cat--titles { color: var(--an-yellow); }
.tp-an-insight__head { color: var(--tp-text-strong); font-size: 16px; line-height: 22px; font-weight: 600; }
.tp-an-insight__text { color: var(--tp-text-subtle); font-size: 13px; line-height: 19px; }

/* ---------- Formats + rhythm (secondary, bottom of the page): one compact panel ---------- */
.tp-an .tp-an-sec--minor { margin-top: 48px; }
.tp-an-sec--minor .tp-section__head { margin-bottom: 8px; }
.tp-an .tp-an-sec--minor .tp-section__title { font-size: 16px; line-height: 22px; font-weight: 500; }
.tp-an-sec--minor .tp-an-head__sub { font-size: 12px; line-height: 16px; }
.tp-an-formats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); overflow: hidden;
  border-radius: var(--an-radius); background: var(--tp-surface);
}
.tp-an-format {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0 0 -1px -1px; padding: 12px 16px 14px;
  border-left: 1px solid var(--an-rule); border-bottom: 1px solid var(--an-rule);
}
.tp-an-format__head { display: flex; align-items: center; gap: 6px; }
.tp-an-format__head h3 { min-width: 0; color: var(--tp-text-subtle); font-size: 13px; line-height: 18px; font-weight: 500; }
/* Long videos green, Shorts pink, rhythm violet: the title in its colour, the bar under the figure filled with it. */
.tp-an-format--long .tp-an-format__head h3 { color: var(--an-green); }
.tp-an-format--short .tp-an-format__head h3 { color: var(--an-pink); }
.tp-an-format--rhythm .tp-an-format__head h3 { color: var(--an-violet); }
.tp-an-meter--long > span { background: var(--an-green-fill); }
.tp-an-meter--short > span { background: var(--an-pink-fill); }
.tp-an-format__head .tp-count { height: 18px; min-width: 18px; line-height: 18px; font-size: 11px; }
.tp-an-format__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.tp-an-format__big > span { color: var(--tp-text-strong); font-size: 18px; line-height: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tp-an-format__big small { color: var(--tp-text-subtle); font-size: 12px; }
.tp-an-format__none { color: var(--tp-text-subtle); font-size: 12px; line-height: 16px; }
.tp-an-format .tp-an-lock { margin-top: 4px; padding: 8px 10px; }
.tp-an-format .tp-an-lock__title { font-size: 13px; }
.tp-an-format .tp-an-lock__text { font-size: 12px; line-height: 16px; }
.tp-an-dl { display: flex; flex-direction: column; margin: 0; }
.tp-an-dl__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; }
.tp-an-dl dt { color: var(--tp-text-subtle); font-size: 12px; line-height: 16px; }
.tp-an-dl dd { margin: 0; color: var(--tp-text-strong); font-size: 12px; line-height: 16px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.tp-an-dl dd .tp-tag { height: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; }

/* Length and shape of the titles (last column) */
.tp-an-tlen__sub { color: var(--tp-text); font-size: 12px; line-height: 16px; }
.tp-an-tlen__hint { color: var(--tp-text-subtle); font-size: 11px; line-height: 15px; }
.tp-an-shapes { display: flex; flex-direction: column; gap: 5px; margin: 2px 0; list-style: none; }
.tp-an-shape { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; }
.tp-an-shape__label { color: var(--tp-text-subtle); font-size: 12px; line-height: 16px; }
.tp-an-shape__pct { color: var(--tp-text-strong); font-size: 12px; line-height: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tp-an-shape .tp-an-meter { grid-column: 1 / -1; height: 3px; }
.tp-an-shape .tp-an-meter > span { background: color-mix(in srgb, var(--tp-text) 55%, transparent); } /* a share, not a score: neutral */

/* Weekday bars (Pro) */
.tp-an-days { position: relative; margin-top: 4px; }
.tp-an-days__bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; height: 64px; list-style: none; }
.tp-an-day { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; border-radius: var(--tp-radius-xs); cursor: default; }
.tp-an-day:focus-visible { outline: 2px solid var(--tp-accent-hover); outline-offset: 2px; }
.tp-an-day__bar { position: relative; display: flex; align-items: flex-end; width: 100%; max-width: 22px; flex: 1; }
/* Weekdays violet (the rhythm colour), muted; the best day in full violet. */
.tp-an-day__bar > span { width: 100%; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--an-violet-fill) 45%, var(--tp-surface)); }
.tp-an-day.is-best .tp-an-day__bar > span { background: var(--an-violet); }
.tp-an-day.is-hot .tp-an-day__bar > span { background: color-mix(in srgb, var(--an-violet-fill) 70%, var(--tp-surface)); }
.tp-an-day.is-best.is-hot .tp-an-day__bar > span { background: #c4b5fd; }
.tp-an-day__label { color: var(--tp-text-subtle); font-size: 10px; line-height: 12px; }
.tp-an-day.is-best .tp-an-day__label { color: var(--an-violet); font-weight: 700; }
.tp-an-days__note { margin-top: 4px; color: var(--tp-text-subtle); font-size: 12px; line-height: 16px; }
.tp-an-days__note strong { color: var(--an-violet); font-weight: 600; }
.tp-an-tip {
  position: absolute; z-index: 5; max-width: 220px; padding: 5px 8px; border-radius: 4px;
  background: #616161; color: #fff; font-size: 12px; line-height: 16px; pointer-events: none; white-space: nowrap;
}

/* ---------- Videos (tabs + grid) ---------- */
.tp-an-vtabs { margin-bottom: 12px; }
.tp-an-vpanel__lead { margin-bottom: 12px; color: var(--tp-text-subtle); font-size: 13px; line-height: 18px; }
/* My own videos: « Pas pour moi » makes no sense there. */
.tp-an-grid--own [data-action="hide"] { display: none; }

/* ---------- Titles ---------- */
.tp-an-titles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.tp-an-card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 20px;
  border-radius: var(--an-radius); background: var(--tp-surface);
}
.tp-an-card__title { font-size: 16px; line-height: 22px; font-weight: 500; }
.tp-an-card__hint { margin-top: -8px; color: var(--tp-text-subtle); font-size: 12px; line-height: 16px; }
/* Words that work: one line per word (word, a plain bar, ×score, how many videos); a click searches ideas. */
.tp-an-wlist { display: flex; flex-direction: column; list-style: none; }
.tp-an-wrow {
  display: grid; grid-template-columns: minmax(0, 9em) minmax(40px, 1fr) 3.5em 6.5em; align-items: center; gap: 12px;
  min-height: 36px; padding: 0 8px; margin: 0 -8px; border-radius: 8px; color: var(--tp-text-strong); text-decoration: none;
  transition: background-color var(--tp-dur) var(--tp-ease);
}
.tp-an-wrow:hover { background: var(--tp-hover); color: var(--tp-text-strong); text-decoration: none; }
.tp-an-wrow:focus-visible { outline: 2px solid var(--tp-accent); outline-offset: 0; }
.tp-an-wrow__w { overflow: hidden; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.tp-an-wrow__bar { position: relative; display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--an-track); }
.tp-an-wrow__bar > span { position: absolute; top: 0; bottom: 0; left: 0; border-radius: inherit; background: var(--an-wc-fill, var(--an-gray-fill)); }
.tp-an-wrow__x { color: var(--an-wc, var(--tp-text-strong)); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
/* Same scale as the ×N tag: below ×2 grey, ×2 yellow, ×5 orange, ×10 red. */
.tp-an-wrow--yellow { --an-wc: var(--an-yellow); --an-wc-fill: var(--an-yellow-fill); }
.tp-an-wrow--orange { --an-wc: var(--an-orange); --an-wc-fill: var(--an-orange-fill); }
.tp-an-wrow--red { --an-wc: var(--an-red); --an-wc-fill: var(--an-red-fill); }
.tp-an-wrow__n { color: var(--tp-text-subtle); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
/* No score: word and count only. */
.tp-an-wrow:not(:has(.tp-an-wrow__bar)) { grid-template-columns: minmax(0, 1fr) auto; }
.tp-an-wweak { padding-top: 10px; border-top: 1px solid var(--an-rule); color: var(--tp-text-subtle); font-size: 13px; line-height: 20px; }
.tp-an-wweak__k { color: var(--tp-text); font-weight: 500; }
.tp-an-wweak__w { color: var(--tp-text); text-decoration: none; }
.tp-an-wweak__w:hover { color: var(--tp-text-strong); text-decoration: underline; }
.tp-an-wweak__x { color: var(--an-red); font-variant-numeric: tabular-nums; } /* fewer views than usual: the « À éviter » red */

/* What works in the titles: one sentence per shape that makes a real difference, with a verdict. */
.tp-an-forms { display: flex; flex-direction: column; gap: 4px; list-style: none; }
.tp-an-form { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.tp-an-form + .tp-an-form { border-top: 1px solid var(--an-rule); }
.tp-an-form__dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; }
.tp-an-form__dot--do { background: var(--an-green-fill); }
.tp-an-form__dot--avoid { background: var(--an-red-fill); }
.tp-an-form__main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.tp-an-form__label { color: var(--tp-text-strong); font-size: 14px; line-height: 20px; font-weight: 500; }
.tp-an-form__detail { color: var(--tp-text-subtle); font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
/* Verdict: a small pill, its colour lightly tinted behind clear text (≥ 7:1). */
.tp-an-form__verdict {
  flex: none; padding: 1px 10px; border-radius: 999px; font-size: 13px; line-height: 20px; font-weight: 700; white-space: nowrap;
}
.tp-an-form__verdict--do { background: color-mix(in srgb, var(--an-green-fill) 16%, transparent); color: var(--an-green); }
.tp-an-form__verdict--avoid { background: color-mix(in srgb, var(--an-red-fill) 16%, transparent); color: var(--an-red); }
.tp-an-forms__flat { color: var(--tp-text-subtle); font-size: 13px; line-height: 18px; }
@media (max-width: 699px) {
  .tp-an-wrow { grid-template-columns: minmax(0, 7em) minmax(30px, 1fr) 3.2em auto; gap: 8px; }
}

/* ---------- Similar channels ---------- */
.tp-an-kwline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--tp-text-subtle); font-size: 13px; }
.tp-an-kwline > span { margin-right: 2px; }
/* Topics and badges: neutral chips (no colour coding). */
.tp-an-kwline .tp-tag, .tp-an-sim__kws .tp-tag, .tp-an-sim__badges .tp-tag { --tp-tag-bg: var(--tp-hover); --tp-tag-fg: var(--tp-text); }
.tp-an-kwline .tp-tag--link:hover { --tp-tag-bg: var(--tp-hover-strong); }
.tp-an-sims { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; align-items: stretch; }
.tp-an-sim {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border-radius: var(--an-radius);
  background: var(--tp-surface);
}
.tp-an-sim--skeleton { gap: 12px; }
.tp-an-sim__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tp-an-sim__id { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.tp-an-sim__name { overflow: hidden; color: var(--tp-text-strong); font-size: 16px; line-height: 22px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.tp-an-sim__meta { overflow: hidden; color: var(--tp-text-subtle); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.tp-an-sim__badges, .tp-an-sim__kws { display: flex; flex-wrap: wrap; gap: 5px; }
/* One reason, on one line (the full text in its title). */
.tp-an-sim__reason { overflow: hidden; color: var(--tp-text); font-size: 13px; line-height: 19px; text-overflow: ellipsis; white-space: nowrap; }
.tp-an-sim__vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; }
/* Actions: « Suivre » on its own line, « Analyser » and « Voir la chaîne » side by side (never one alone, shifted). */
.tp-an-sim__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: auto; padding-top: 4px; }
.tp-an-sim__actions > :first-child { grid-column: 1 / -1; }
.tp-an-sim__actions > .tp-button { justify-content: center; width: 100%; min-width: 0; }
.tp-an-follow { max-width: 100%; }
.tp-an-follow__text { overflow: hidden; text-overflow: ellipsis; }
.tp-an-sim--more { align-items: center; justify-content: center; text-align: center; }
.tp-an-sim--more .tp-an-sim__name { white-space: normal; }

.tp-an-mini { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: var(--tp-text); text-decoration: none; }
.tp-an-mini:hover { color: var(--tp-text-strong); text-decoration: none; }
.tp-an-mini__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--tp-surface-3); }
.tp-an-mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tp-an-mini__score { position: absolute; left: 4px; bottom: 4px; }
.tp-an-mini__score .tp-tag { height: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; }
.tp-an-mini__title { overflow: hidden; font-size: 12px; line-height: 16px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Similar channels v2 (similar.js): size filters, cards, one action ---------- */
/* Score of a mini video: a dark label on the thumbnail, like YouTube's duration. */
.tp-an-mini__score:not(:has(.tp-tag)) {
  padding: 1px 4px; border-radius: 4px; background: rgba(0, 0, 0, 0.8); color: #fff; font-size: 11px; line-height: 15px; font-weight: 500;
}
/* From ×2: the aplat of the site's ×N tag (yellow + dark text, orange, red), bold. */
.tp-an-mini__score--yellow:not(:has(.tp-tag)) { background: #eab308; color: #1a1300; font-weight: 700; }
.tp-an-mini__score--orange:not(:has(.tp-tag)) { background: #c2410c; font-weight: 700; }
.tp-an-mini__score--red:not(:has(.tp-tag)) { background: #dc2626; font-weight: 700; }
/* Chips: neutral, the pressed one inverted (YouTube filter chips). */
.tp-an-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px;
  background: var(--tp-hover); color: var(--tp-text); font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; cursor: pointer;
}
.tp-an-chip:hover { background: var(--tp-hover-strong); }
.tp-an-chip.is-on { background: var(--tp-text); color: var(--tp-bg); }
.tp-an-chip:focus-visible { outline: 2px solid var(--tp-accent); outline-offset: 2px; }
.tp-an-simbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.tp-an-simbar__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.tp-an-sim__head { position: relative; }
.tp-an-sim__name a { color: inherit; text-decoration: none; }
.tp-an-sim__name a:hover { text-decoration: underline; }
.tp-an-sim__menu {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; margin: -4px -6px 0 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--tp-text-subtle); font-size: 20px; line-height: 1; cursor: pointer;
}
.tp-an-sim__menu:hover { background: var(--tp-hover); color: var(--tp-text); }
.tp-an-sim__menu:focus-visible { outline: 2px solid var(--tp-accent); outline-offset: 1px; }
.tp-an-simempty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; color: var(--tp-text-subtle); font-size: 14px; line-height: 20px; }
.tp-an-simfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.tp-an-simfoot__note { color: var(--tp-text-subtle); font-size: 12px; line-height: 17px; }
.tp-an-simfb { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; list-style: none; }
.tp-an-simfb__opt {
  width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--tp-text); font: inherit; font-size: 14px;
  text-align: left; cursor: pointer;
}
.tp-an-simfb__opt:hover, .tp-an-simfb__opt:focus-visible { background: var(--tp-hover); outline: none; }
@media (max-width: 640px) {
  .tp-an-simbar { flex-direction: column; align-items: stretch; }
  .tp-an-chip { min-height: 30px; padding: 0 10px; font-size: 13px; }
}

/* « Suivre dans un dossier » popover */
.tp-an-folders { display: flex; flex-direction: column; gap: 2px; margin: 8px -6px; list-style: none; }
.tp-an-folder {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; border-radius: var(--tp-radius-sm);
  background: none; color: var(--tp-text); text-align: left;
}
.tp-an-folder:hover, .tp-an-folder:focus-visible { background: var(--tp-hover-strong); color: var(--tp-text-strong); }
.tp-an-folder__name { flex: 1; min-width: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.tp-an-folder__n { color: var(--tp-text-subtlest); font-size: 12px; white-space: nowrap; }
.tp-an-folder__check {
  display: grid; place-items: center; width: 20px; height: 20px; flex: none; border: 1px solid var(--tp-border-input); border-radius: 6px; color: transparent;
  transition: background-color var(--tp-dur) var(--tp-ease), transform 200ms var(--tp-spring);
}
.tp-an-folder__check .tp-icon { width: 13px; height: 13px; }
.tp-an-folder.is-on .tp-an-folder__check { border-color: var(--tp-accent-edge); background: var(--tp-accent); color: var(--tp-accent-text); }

/* ---------- Similar ideas ---------- */
.tp-an-ideasbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.tp-an-ideasbar__filters { flex: 1 1 320px; min-width: 0; }
.tp-an-count { min-height: 32px; display: flex; align-items: center; color: var(--tp-text-subtle); }
.tp-an-count strong { margin-right: 4px; }
.tp-an-ideastate:empty { display: none; }
.tp-an-more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 22px; text-align: center; }
.tp-an-more .tp-button { max-width: 100%; white-space: normal; }
.tp-an-more__hint { max-width: 560px; color: var(--tp-text-subtlest); font-size: 12px; line-height: 16px; }
.tp-an-more__warn { display: flex; align-items: center; gap: 6px; color: var(--tp-sun-text); font-size: 12px; line-height: 16px; }
.tp-an-progress { display: flex; align-items: center; gap: 10px; color: var(--tp-text-subtle); font-size: 13px; }
.tp-an-progress .tp-an-meter { width: 140px; }

/* =========================================================
   Suivi (#/suivi)
   ========================================================= */
.tp-tk-usage {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid var(--tp-line); border-radius: 999px;
  background: var(--tp-surface); color: var(--tp-text-strong); font-size: 13px; font-weight: 800; box-shadow: var(--tp-shadow-raised);
  font-variant-numeric: tabular-nums;
}
.tp-tk-usage .tp-icon { color: var(--tp-purple); }
.tp-tk-usage.is-full { border-color: var(--tp-sun-edge); color: var(--tp-sun-text); }
.tp-tk-usage.is-full .tp-icon { color: var(--tp-sun); }

.tp-tk-focus { flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.tp-tk-focus .tp-alert__body { flex: 1 1 220px; }
.tp-tk-focus__thumb { width: 96px; height: 54px; flex: none; border: 1px solid var(--tp-line); border-radius: var(--tp-radius-sm); object-fit: cover; background: var(--tp-surface-3); }

/* Add panel */
.tp-tk-add { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.tp-tk-add__title { display: flex; align-items: center; gap: 8px; font-family: var(--tp-font); font-size: 17px; line-height: 22px; font-weight: 800; }
.tp-tk-add__title .tp-icon { color: var(--tp-mint); }
.tp-tk-add__form { display: flex; gap: 8px; }
.tp-tk-add__field { flex: 1; }
.tp-tk-add__field .tp-input { min-height: 40px; }
.tp-tk-add__form > .tp-button { min-height: 40px; }
.tp-tk-add__sources { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-tk-add__chev { transition: transform 220ms var(--tp-spring); }
[data-act="toggle-latest"].is-open .tp-tk-add__chev { transform: rotate(180deg); }
.tp-tk-latest { animation: tp-pop-in 220ms var(--tp-spring); }
.tp-tk-latest__lead { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--tp-text-subtle); font-size: 13px; font-weight: 700; }
.tp-tk-latest__lead .tp-icon { color: var(--tp-sky); }
.tp-tk-published:empty { display: none; }
.tp-tk-published { padding-top: 10px; border-top: 1px solid var(--tp-border); }
.tp-tk-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 8px; list-style: none; }
.tp-tk-pick {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 8px; border: 1px solid var(--tp-line); border-radius: var(--tp-radius);
  background: var(--tp-surface-2);
}
.tp-tk-pick__thumb {
  display: block; width: 72px; height: 40px; flex: none; overflow: hidden; border: 1px solid var(--tp-line); border-radius: var(--tp-radius-xs);
  background: var(--tp-surface-3);
}
.tp-tk-pick__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tp-tk-pick__main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.tp-tk-pick__title { overflow: hidden; color: var(--tp-text-strong); font-size: 13px; line-height: 18px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.tp-tk-pick__meta { overflow: hidden; color: var(--tp-text-subtlest); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.tp-tk-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--tp-text-subtle); font-size: 13px; line-height: 18px; }
.tp-tk-note--error { color: var(--tp-coral-text); }

/* List */
.tp-tk-sort { display: inline-flex; align-items: center; gap: 8px; color: var(--tp-text-subtle); font-size: 13px; font-weight: 700; white-space: nowrap; }
.tp-tk-sort .tp-select { width: auto; }
.tp-tk-sort[hidden] { display: none; }
.tp-tk-list { display: flex; flex-direction: column; gap: 12px; }
.tp-tk-item {
  position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr) 150px minmax(170px, 240px) auto;
  grid-template-areas: "thumb main nums chart actions"; align-items: center; gap: 12px 16px; padding: 12px;
  border: 1px solid var(--tp-line); border-radius: var(--tp-radius-lg); background: var(--tp-surface); box-shadow: var(--tp-shadow-pop);
  transition: transform 220ms var(--tp-spring), box-shadow 200ms var(--tp-ease), opacity 160ms var(--tp-ease);
}
.tp-tk-item:hover { box-shadow: var(--tp-shadow-pop-lg); }
.tp-tk-item.is-leaving { opacity: 0; transform: translateX(16px) scale(0.98); }
.tp-tk-item.is-flash { animation: tp-tk-flash 1.4s var(--tp-ease-out) 1; }
@keyframes tp-tk-flash {
  0%, 30% { box-shadow: 0 0 0 2px var(--tp-mint), var(--tp-shadow-pop); transform: translateY(-1px); }
  100% { box-shadow: var(--tp-shadow-pop); transform: none; }
}
.tp-tk-item.is-unavailable .tp-tk-item__thumb img { filter: grayscale(1) brightness(0.7); }
.tp-tk-item--skeleton { min-height: 118px; }
.tp-tk-skel-thumb { display: block; grid-area: thumb; aspect-ratio: 16 / 9; border-radius: var(--tp-radius-sm); }
.tp-tk-item--skeleton .tp-tk-item__main { display: flex; flex-direction: column; gap: 10px; }
.tp-tk-skel-chart { display: block; grid-column: 3 / 5; height: 56px; border-radius: var(--tp-radius-sm); }

.tp-tk-item__thumb {
  grid-area: thumb; position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius-sm); background: var(--tp-surface-3);
}
.tp-tk-item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--tp-ease-out); }
.tp-tk-item:hover .tp-tk-item__thumb img { transform: scale(1.04); }
.tp-tk-item__thumb.is-broken { background: var(--tp-surface-3); }
.tp-tk-item__dur {
  position: absolute; right: 4px; bottom: 4px; padding: 0 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.78); color: #fff;
  font-size: 11px; line-height: 16px; font-weight: 800;
}
.tp-tk-item__main { grid-area: main; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tp-tk-item__title { font-size: 15px; line-height: 20px; font-weight: 800; }
.tp-tk-item__title a {
  display: -webkit-box; overflow: hidden; color: var(--tp-text-strong); text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}
.tp-tk-item__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tp-tk-item__tags { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.tp-tk-cardtag { max-width: 220px; }
.tp-tk-item__meta { color: var(--tp-text-subtlest); font-size: 12px; line-height: 16px; }
.tp-tk-status { display: inline-flex; align-items: center; gap: 5px; }
.tp-tk-status .tp-icon { width: 13px; height: 13px; }
.tp-tk-status--warn { color: var(--tp-sun-text); }
.tp-tk-item__nums { grid-area: nums; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tp-tk-views { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.tp-tk-views__num { color: var(--tp-text-strong); font-family: var(--tp-font); font-size: 24px; line-height: 28px; font-weight: 800; white-space: nowrap; }
.tp-tk-views__unit { color: var(--tp-text-subtle); font-size: 13px; font-weight: 700; }
.tp-tk-gains { display: flex; flex-wrap: wrap; gap: 4px; }
.tp-tk-item__chart { grid-area: chart; min-width: 0; }
.tp-tk-item__actions { grid-area: actions; display: flex; flex-direction: column; gap: 2px; }
.tp-tk-item__actions .tp-icon-btn:disabled { opacity: 0.4; cursor: default; }

/* Views chart (sparkline in a row, large chart in the modal) */
.tp-tk-chart {
  position: relative; height: 64px; padding: 6px; border: 1px solid var(--tp-line); border-radius: var(--tp-radius);
  background: var(--tp-bg-sunken); cursor: crosshair; touch-action: pan-y;
}
.tp-tk-chart:focus-visible { outline: 2px solid var(--tp-accent-hover); outline-offset: 2px; }
.tp-tk-chart--empty {
  display: grid; place-items: center; padding: 6px 10px; color: var(--tp-text-subtlest); font-size: 12px; line-height: 16px;
  text-align: center; cursor: default; border-style: dashed;
}
.tp-tk-chart__plot { position: absolute; inset: 9px 10px; }
.tp-tk-chart__note {
  position: absolute; inset: 0 24px 0 10px; display: grid; place-items: center; color: var(--tp-text-subtlest); font-size: 11px; line-height: 14px;
  text-align: center; pointer-events: none;
}
.tp-tk-chart__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tp-tk-chart__area { fill: var(--tp-accent); opacity: 0.14; }
.tp-tk-chart__line { fill: none; stroke: var(--tp-accent); stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; }
.tp-tk-chart__grid line { stroke: var(--tp-border); stroke-width: 1px; }
.tp-tk-chart__dot {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 1px solid var(--tp-bg-sunken); border-radius: 50%;
  background: var(--tp-accent); pointer-events: none;
}
.tp-tk-chart__dot--hover { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--tp-text-strong); border-color: var(--tp-accent); }
.tp-tk-chart__cross { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 1.5px dashed var(--tp-text-subtlest); pointer-events: none; }
.tp-tk-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-3); box-shadow: var(--tp-shadow-pop);
  pointer-events: none; white-space: nowrap;
}
.tp-tk-chart__tip strong { color: var(--tp-text-strong); font-size: 14px; line-height: 18px; font-variant-numeric: tabular-nums; }
.tp-tk-chart__tip span { color: var(--tp-text-subtle); font-size: 12px; line-height: 16px; }
.tp-tk-chart__tip [data-tip-gain] { color: var(--tp-green-text); }
.tp-tk-chart--lg { height: 260px; padding: 10px; }
.tp-tk-chart--lg .tp-tk-chart__plot { inset: 14px; }
.tp-tk-chart--lg .tp-tk-chart__line { stroke-width: 2.5px; }

/* Large chart modal */
.tp-tk-big { display: flex; flex-direction: column; gap: 14px; }
.tp-tk-big__title { color: var(--tp-text-strong); font-weight: 800; overflow-wrap: anywhere; }
.tp-tk-big__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 8px; list-style: none; }
.tp-tk-big__stats li {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--tp-line); border-radius: var(--tp-radius);
  background: var(--tp-surface-2);
}
.tp-tk-big__stats span { color: var(--tp-text-subtle); font-size: 12px; font-weight: 700; }
.tp-tk-big__stats strong { color: var(--tp-text-strong); font-family: var(--tp-font); font-size: 20px; line-height: 26px; font-weight: 800; }
.tp-tk-big__frame { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; margin-top: 30px; }
.tp-tk-big__y { display: flex; flex-direction: column; justify-content: space-between; padding: 22px 0 36px; color: var(--tp-text-subtlest); font-size: 11px; line-height: 14px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.tp-tk-big__y.is-single { justify-content: center; } /* one reading: one label, level with the point */
.tp-tk-big__plot { min-width: 0; }
.tp-tk-big__x { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; color: var(--tp-text-subtlest); font-size: 11px; line-height: 14px; font-weight: 700; }
.tp-tk-big__table summary { color: var(--tp-accent-hover); font-weight: 700; cursor: pointer; }
.tp-tk-big__scroll { max-height: 260px; margin-top: 8px; overflow: auto; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); }
.tp-tk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tp-tk-table th, .tp-tk-table td { padding: 6px 10px; border-bottom: 1px solid var(--tp-border); text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tp-tk-table thead th { position: sticky; top: 0; background: var(--tp-surface-2); color: var(--tp-text-subtlest); font-size: 12px; }
.tp-tk-table tbody th { color: var(--tp-text); font-weight: 700; }
.tp-tk-table td { color: var(--tp-text-strong); }
.tp-tk-up { color: var(--tp-green-text); font-weight: 800; }
.tp-tk-big__note { color: var(--tp-text-subtlest); font-size: 12px; line-height: 16px; }

/* « Lier à une carte » popover */
.tp-tk-cp__search { margin-bottom: 8px; }
.tp-tk-cp { display: flex; flex-direction: column; gap: 2px; max-height: 300px; margin: 0 -6px; overflow-y: auto; list-style: none; }
.tp-tk-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); text-align: left;
}
.tp-tk-cp__item:hover, .tp-tk-cp__item:focus-visible { background: var(--tp-hover-strong); }
.tp-tk-cp__item.is-on { background: var(--tp-selected); }
.tp-tk-cp__item .tp-spinner { width: 12px; height: 12px; border-width: 2px; }
.tp-tk-cp__title { max-width: 100%; overflow: hidden; color: var(--tp-text-strong); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.tp-tk-cp__board { color: var(--tp-text-subtlest); font-size: 12px; line-height: 16px; }
.tp-tk-cp__none { padding: 8px 10px; color: var(--tp-text-subtlest); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .tp-tk-item {
    grid-template-columns: 148px minmax(0, 1fr) auto;
    grid-template-areas: "thumb main actions" "nums chart chart";
  }
  .tp-tk-skel-chart { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .tp-an-link { padding: 18px 16px; }
  .tp-an-hero { align-items: flex-start; gap: 12px 14px; padding: 16px; }
  /* The row scrolls (so it clips): 4 px above and below for the focus rings, given back by the negative margin. */
  .tp-an-toc__list { flex-wrap: nowrap; margin: -4px -16px; padding: 4px 16px; overflow-x: auto; scrollbar-width: none; }
  .tp-an-toc__list::-webkit-scrollbar { display: none; }
  .tp-an-stats { gap: 8px; }
  .tp-an-stat__label { gap: 6px; font-size: 13px; line-height: 18px; }
  .tp-an-stat__label .tp-icon { width: 16px; height: 16px; }
  .tp-an-hero > .tp-avatar--lg { width: 56px; height: 56px; }
  .tp-an-hero__main { flex-basis: 200px; }
  .tp-an-hero__side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .tp-an-hero__level { justify-content: flex-start; }
  .tp-an-hero__name { font-size: 20px; line-height: 28px; }
  .tp-an .tp-section__title { font-size: 18px; line-height: 24px; }
  .tp-an-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-an-stat { padding: 12px 14px 14px; }
  .tp-an-stat__value { font-size: 20px; line-height: 28px; }
  .tp-an-insight { padding: 12px 14px; }
  .tp-an-card { padding: 14px; }
  .tp-an-sims { grid-template-columns: minmax(0, 1fr); }
  .tp-tk-add__form { flex-direction: column; }
  .tp-tk-focus__thumb { display: none; }
  .tp-tk-item {
    grid-template-columns: 112px minmax(0, 1fr) auto;
    grid-template-areas: "thumb main actions" "nums nums nums" "chart chart chart";
    gap: 10px 12px; padding: 10px;
  }
  .tp-tk-item__nums { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .tp-tk-item__title { font-size: 14px; line-height: 19px; }
  .tp-tk-item__tags .tp-tag--channel { display: none; }
  .tp-tk-big__frame { margin-top: 24px; }
  .tp-tk-chart--lg { height: 200px; }
}
@media (max-width: 420px) {
  .tp-an-sim__vids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-an-sim__vids li:nth-child(3) { display: none; }
  .tp-tk-item { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .tp-tk-item__actions { flex-direction: column; }
}

/* « Vidéos par semaine » : long videos and Shorts side by side in one card */
.tp-an-stat__split { display: flex; gap: 28px; }
.tp-an-stat__part { display: flex; flex-direction: column; }
.tp-an-stat__part small { color: var(--tp-text-subtle); font-size: 12px; line-height: 16px; }
.tp-an-stat__part small { white-space: nowrap; }
@media (max-width: 600px) { .tp-an-stat__split { gap: 16px; } }

/* ---------- No channel yet: an example under the hero (the page's own blocks, read only, dimmed) ---------- */
.tp-an-demo { max-width: none; margin: 40px 0 0; /* full width, like the analysis of a channel */ padding-top: 24px; border-top: 1px solid var(--an-rule); }
.tp-an-demo__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 14px; }
.tp-an-demo__tag {
  padding: 2px 8px; border: 1px solid var(--an-rule); border-radius: 6px; color: var(--tp-text-subtle);
  font-size: 12px; line-height: 16px; font-weight: 500;
}
/* Dimmed and fading out at the bottom: a preview, not the real thing. Nothing inside reacts (inert). */
.tp-an-demo__body {
  opacity: 0.62; user-select: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 110px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 110px), transparent);
}
.tp-an-demo__title { margin: 24px 0 10px; color: var(--tp-text-strong); font-size: 16px; line-height: 22px; font-weight: 600; }
.tp-an-demo .tp-an-sims { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tp-an-demo .tp-an-sim__menu, .tp-an-demo .tp-an-sim__actions { display: none; }
.tp-an-demo__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
@media (max-width: 699px) {
  .tp-an-demo { margin-top: 28px; padding-top: 18px; }
  .tp-an-demo .tp-an-sims { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tp-an-demo .tp-an-sim { padding: 12px 14px; }
}

/* Brighter colours (the user found them too dark): solid vivid fills instead of dark tints. */
.tp-an .tp-an-day__bar > span { background: #a78bfa; opacity: 1; }
.tp-an .tp-an-day.is-hot .tp-an-day__bar > span { background: #b79cfc; opacity: 1; }
.tp-an .tp-an-day.is-best .tp-an-day__bar > span { background: #d8b4fe; opacity: 1; }
.tp-an .tp-an-form__verdict--do { background: #16a34a; color: #fff; }
.tp-an .tp-an-form__verdict--avoid { background: #dc2626; color: #fff; }
.tp-an .tp-an-format .tp-tag, .tp-an .tp-an-stat .tp-tag { border: 0; color: #fff; font-weight: 700; }
.tp-an .tp-an-format .tp-tag--yellow, .tp-an .tp-an-stat .tp-tag--yellow { background: #eab308; color: #1a1300; }
.tp-an .tp-an-format .tp-tag--orange, .tp-an .tp-an-stat .tp-tag--orange { background: #ea580c; }
.tp-an .tp-an-format .tp-tag--red, .tp-an .tp-an-stat .tp-tag--red { background: #dc2626; }
.tp-an .tp-an-format .tp-tag--gray, .tp-an .tp-an-stat .tp-tag--gray { background: #4b4b4b; }

/* ---------- Vue d'ensemble façon ViewStats (channelytics.js) ----------
   Values measured on viewstats.com/@soush/channelytics (2026-10-31, computed styles): Inter 14/500 for most text,
   cards #212122 with a 1px #484b4f border and radius 10, text #ecedee / #d1cfcf / muted #747575, positive figures
   green #41b616, negative red #ff0000, change pills with dark text (radius 36), chips #d1cfcf on / white 10 % off,
   table head row #484b4f. Long videos in the accent colour, Shorts in #d1cfcf (bars, ring, legend). */
.tp-cy {
  --cy-card: #212122; --cy-line: #484b4f; --cy-text: #ecedee; --cy-soft: #d1cfcf; --cy-muted: #747575;
  --cy-up: #41b616; --cy-down: #ff0000; --cy-short: #d1cfcf;
  position: relative; /* the page's one tooltip (.tp-cy-tip, last child) is placed against it */
  display: flex; flex-direction: column; gap: 16px; color: var(--cy-text); font-family: "Inter", "Segoe UI", Arial, sans-serif;
}
.tp-cy .tp-button { font-family: inherit; }
.tp-cy-card { min-width: 0; padding: 16px 20px; border: 1px solid var(--cy-line); border-radius: 10px; background: var(--cy-card); }
.tp-cy-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.tp-cy-card__title { margin: 0; color: var(--cy-soft); font-size: 16px; line-height: 24px; font-weight: 500; }
.tp-cy-card__sub { margin: 2px 0 12px; color: var(--cy-muted); font-size: 12px; line-height: 16px; }
.tp-cy-empty { margin: 8px 0; color: var(--cy-muted); font-size: 14px; }

/* Header: avatar, name, @handle · N vidéos | Abonnés | Vues totales; buttons under it */
.tp-cy-head { padding: 20px 24px; }
.tp-cy-head__top { display: flex; align-items: center; gap: 20px; }
.tp-cy-head__avatar { flex: none; display: block; width: 88px; height: 88px; overflow: hidden; border-radius: 10px; background: #272727; }
.tp-cy-head__avatar .tp-avatar { width: 88px; height: 88px; border-radius: 0; font-size: 28px; }
.tp-cy-head__id { flex: 1 1 auto; min-width: 0; }
.tp-cy-head__name { margin: 0; color: #ffffff; font-size: 28px; line-height: 34px; font-weight: 700; overflow-wrap: anywhere; }
.tp-cy-head__meta { margin: 4px 0 0; color: var(--cy-soft); font-size: 18px; line-height: 27px; font-weight: 500; }
.tp-cy-head__stats { display: flex; flex: none; }
.tp-cy-head__stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 28px; }
.tp-cy-head__stat + .tp-cy-head__stat { border-left: 1px solid var(--cy-line); }
.tp-cy-head__label { color: #ffffff; font-size: 18px; line-height: 28px; font-weight: 300; }
.tp-cy-head__value { color: #ffffff; font-size: 22px; line-height: 33px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp-cy-head__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--cy-line); }

/* Period: chips like YouTube's filter chips */
.tp-cy-bar-row { display: flex; justify-content: flex-end; }
.tp-cy-periods { display: inline-flex; gap: 6px; }
.tp-cy-period {
  height: 36px; padding: 0 16px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: var(--cy-soft);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.tp-cy-period:hover { background: rgba(255, 255, 255, 0.16); }
.tp-cy-period.is-on { background: var(--cy-soft); color: #191919; }
.tp-cy-period:focus-visible { outline: 2px solid var(--cy-soft); outline-offset: 2px; }
/* Period bar: presets, then « Mois » and « Dates » (they open the picker under the bar) */
.tp-cy-bar-row .tp-cy-periods { flex-wrap: wrap; justify-content: flex-end; }
.tp-cy-periods__sep { align-self: center; width: 1px; height: 22px; margin: 0 4px; background: var(--cy-line); }
.tp-cy-period--pick { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; }
.tp-cy-period--pick .tp-icon { width: 16px; height: 16px; flex: none; }
.tp-cy-period--pick .tp-icon:last-child { transition: transform 160ms ease; }
.tp-cy-period--pick.is-open .tp-icon:last-child { transform: rotate(180deg); }
.tp-cy-period--pick.is-open:not(.is-on) { background: rgba(255, 255, 255, 0.16); }
.tp-cy-pick { display: grid; gap: 14px; margin-top: 10px; animation: tp-cy-pick-in 160ms ease-out; }
@keyframes tp-cy-pick-in { from { opacity: 0; transform: translateY(-4px); } }
.tp-cy-pick__head { display: grid; gap: 4px; }
.tp-cy-pick__hint { margin: 0; color: var(--cy-muted); font-size: 13px; line-height: 18px; }
.tp-cy-pick__year { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; }
.tp-cy-pick__y { color: var(--cy-soft); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-cy-pick__months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.tp-cy-mchip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; height: 52px; padding: 0 2px;
  border: 1px solid transparent; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: var(--cy-soft);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color 120ms ease, transform 120ms ease;
}
.tp-cy-mchip span { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.tp-cy-mchip small { color: var(--cy-muted); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tp-cy-mchip:hover { background: rgba(255, 255, 255, 0.16); }
.tp-cy-mchip:active { transform: scale(0.96); }
.tp-cy-mchip:focus-visible { outline: 2px solid var(--cy-soft); outline-offset: 2px; }
.tp-cy-mchip.is-empty { color: var(--cy-muted); }
.tp-cy-mchip.is-on { background: var(--cy-soft); color: #191919; }
.tp-cy-mchip.is-on small { color: #4d4d4d; }
.tp-cy-mchip.is-off { background: none; border-color: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.22); cursor: default; }
.tp-cy-pick__foot { display: flex; justify-content: flex-end; gap: 8px; }
.tp-cy-pick__dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.tp-cy-pick__field { display: grid; gap: 4px; color: var(--cy-muted); font-size: 12px; font-weight: 500; }
.tp-cy-pick__field input {
  height: 36px; padding: 0 10px; border: 1px solid var(--cy-line); border-radius: 10px; background: rgba(255, 255, 255, 0.06);
  color: #ffffff; font: inherit; font-size: 14px; color-scheme: dark;
}
.tp-cy-pick__field input:focus-visible { outline: 2px solid var(--cy-soft); outline-offset: 1px; }
.tp-cy-formats__sub { margin-top: -8px; }
/* Charts « par mois » : a click picks the month (Ctrl / Maj : with the others); the months picked stay lit. */
.tp-cy-col[data-cy-month] { cursor: pointer; }
.tp-cy-col.is-picked .tp-cy-hit { fill: rgba(255, 255, 255, 0.07); }
@media (max-width: 700px) {
  .tp-cy-pick__year { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tp-cy-pick__months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .tp-cy-pick { animation: none; } }

.tp-cy-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 16px; align-items: start; }
.tp-cy-main, .tp-cy-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Figures of the period */
.tp-cy-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tp-cy-kpi { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 28px; }
.tp-cy-kpi__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tp-cy-kpi__label { color: var(--cy-soft); font-size: 18px; line-height: 27px; font-weight: 600; }
.tp-cy-kpi__sub { color: var(--cy-muted); font-size: 12px; line-height: 18px; font-weight: 500; text-transform: uppercase; }
.tp-cy-kpi__fig { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tp-cy-kpi__value { color: #ffffff; font-size: 28px; line-height: 34px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-cy-delta {
  display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 10px 0 6px; border-radius: 36px;
  color: #191919; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tp-cy-delta .tp-icon { width: 14px; height: 14px; stroke-width: 3; }
.tp-cy-delta--up { background: var(--cy-up); }
.tp-cy-delta--down { background: var(--cy-down); }
.tp-cy-delta--flat { padding: 0 10px; background: rgba(255, 255, 255, 0.1); color: var(--cy-soft); }

/* Charts */
.tp-cy-legends { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tp-cy-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--cy-muted); font-size: 12px; font-weight: 500; }
.tp-cy-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.tp-cy-dot--long { background: var(--tp-accent); }
.tp-cy-dot--short { background: var(--cy-short); }
.tp-cy-bar--long { fill: var(--tp-accent); }
.tp-cy-bar--short { fill: var(--cy-short); }
.tp-cy-plot { display: flex; gap: 8px; }
.tp-cy-plot__area { position: relative; flex: 1 1 auto; min-width: 0; height: 240px; }
.tp-cy-plot__area--month { height: 180px; }
.tp-cy-plot__area svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tp-cy-plot__y { position: relative; flex: none; width: 44px; }
.tp-cy-plot__y span { position: absolute; left: 0; transform: translateY(-50%); color: var(--cy-muted); font-size: 11px; line-height: 14px; font-variant-numeric: tabular-nums; }
.tp-cy-plot__x { position: relative; height: 18px; margin: 8px 52px 0 0; }
.tp-cy-plot__x span { position: absolute; top: 0; transform: translateX(-50%); color: var(--cy-muted); font-size: 11px; line-height: 14px; white-space: nowrap; }
.tp-cy-plot__x span:first-child { transform: none; }
.tp-cy-plot__x span:last-child { transform: translateX(-100%); }
.tp-cy-grid { stroke: #3c3c3d; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tp-cy-axis { stroke: var(--cy-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tp-cy-tip {
  position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 2px; width: max-content; max-width: 220px;
  padding: 8px 10px; border-radius: 10px; background: var(--cy-line); color: #f1f1f1; font-size: 12px; line-height: 16px;
  transform: translate(-50%, -100%); pointer-events: none;
}
.tp-cy-tip[hidden] { display: none; }
.tp-cy-tip strong { display: -webkit-box; overflow: hidden; font-weight: 500; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tp-cy-tip span { color: #cfcfcf; }
.tp-cy-line { fill: none; stroke: var(--tp-accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.tp-cy-area { fill: var(--tp-accent); opacity: 0.14; }
.tp-cy-mdot { fill: var(--tp-accent); }
.tp-cy-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Latest video */
.tp-cy-last .tp-cy-card__title { margin-bottom: 12px; }
.tp-cy-last__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #2c2d2f; }
.tp-cy-last__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-cy-last__thumb.is-short img { object-fit: contain; }
.tp-cy-last__title {
  display: -webkit-box; margin-top: 10px; overflow: hidden; color: #ffffff; font-size: 16px; line-height: 24px; font-weight: 600;
  text-decoration: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tp-cy-last__title:hover { text-decoration: underline; }
.tp-cy-last__age { margin: 2px 0 8px; color: var(--cy-muted); font-size: 12px; line-height: 16px; }
.tp-cy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid #3c3c3d; color: #ffffff; font-size: 16px; font-weight: 300; }
.tp-cy-row > span:last-child { color: #ffffff; font-weight: 500; font-variant-numeric: tabular-nums; }
.tp-cy-score { height: 20px; padding: 0 6px; font-size: 12px; line-height: 20px; }

/* Long videos and Shorts: two figures with a colour bar, the ring beside them */
.tp-cy-mix .tp-cy-card__title { margin-bottom: 0; }
.tp-cy-mix__body { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tp-cy-mix__figs { display: flex; flex-direction: column; gap: 14px; }
.tp-cy-mix__fig { display: flex; flex-direction: column; padding-left: 10px; border-left: 3px solid var(--tp-accent); }
.tp-cy-mix__fig--short { border-left-color: var(--cy-short); }
.tp-cy-mix__label { color: var(--cy-muted); font-size: 12px; line-height: 16px; }
.tp-cy-mix__value { color: #ffffff; font-size: 22px; line-height: 33px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp-cy-ring { flex: none; width: 120px; height: 120px; }
.tp-cy-ring circle { fill: none; stroke-width: 14; }
.tp-cy-ring__short { stroke: var(--cy-short); }
.tp-cy-ring__long { stroke: var(--tp-accent); }

/* Table of the videos of the period: rows in alternating greys, average and total at the bottom */
.tp-cy-table { padding: 0; overflow: hidden; }
.tp-cy-table .tp-cy-card__head { margin: 0; padding: 16px 20px 12px; }
.tp-cy-table .tp-cy-empty { padding: 0 20px 16px; }
.tp-cy-scroll { overflow-x: auto; }
.tp-cy-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.tp-cy-table th { padding: 14px 16px; color: #ffffff; font-weight: 700; text-align: left; white-space: nowrap; }
.tp-cy-table thead th { background: var(--cy-line); }
.tp-cy-table td { padding: 10px 16px; color: #ffffff; font-weight: 500; vertical-align: middle; }
.tp-cy-table tbody tr:nth-child(even) td { background: #2c2d2f; }
.tp-cy-table tbody tr:hover td { background: #35363a; }
.tp-cy-table tfoot th, .tp-cy-table tfoot td { border-top: 1px solid var(--cy-line); font-weight: 700; }
.tp-cy-table .tp-cy-td--date, .tp-cy-table .tp-cy-td--fmt { color: var(--cy-soft); white-space: nowrap; }
.tp-cy-table .tp-cy-td--num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-cy-td--video { width: 100%; min-width: 260px; }
.tp-cy-td--video a { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.tp-cy-td--video a:hover .tp-cy-td__title { text-decoration: underline; }
.tp-cy-td__thumb { flex: none; width: 64px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #2c2d2f; }
.tp-cy-td__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-cy-td__title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.tp-cy-more { display: flex; justify-content: center; padding: 12px; border-top: 1px solid var(--cy-line); }

@media (max-width: 1099px) {
  .tp-cy-grid2 { grid-template-columns: minmax(0, 1fr); }
  .tp-cy-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 799px) {
  .tp-cy-head__top { flex-wrap: wrap; }
  .tp-cy-head__stats { width: 100%; }
  .tp-cy-head__stat { flex: 1; padding: 0 12px; }
  .tp-cy-kpis, .tp-cy-months, .tp-cy-side { grid-template-columns: minmax(0, 1fr); }
  .tp-cy-bar-row { justify-content: flex-start; }
}
@media (max-width: 599px) {
  .tp-cy-head { padding: 16px; }
  .tp-cy-head__avatar, .tp-cy-head__avatar .tp-avatar { width: 64px; height: 64px; }
  .tp-cy-head__name { font-size: 22px; line-height: 28px; }
  .tp-cy-card { padding: 14px 16px; }
  .tp-cy-td--fmt { display: none; }
}

/* ---------- Onglets, tableaux, jauges, jour × heure (channelytics.js v2) ---------- */
/* Less empty space above the search (no channel): smaller hero, the example right under it */
.tp-an .tp-sbhero { padding-top: 8px; margin-bottom: 16px; }
.tp-an .tp-sbhero__title { font-size: 40px; line-height: 46px; }
.tp-an .tp-an-demo { margin-top: 24px; padding-top: 16px; }
.tp-an-vpanel__lead { display: none; } /* no sentence above the video cards */

/* Header: name, @handle, buttons under the name; tabs at the bottom of the card (ViewStats) */
.tp-cy-head { padding-bottom: 16px; }
.tp-cy-head__actions { margin-top: 12px; padding-top: 0; border-top: 0; }
/* Abonnés and Vues totales sit on the left, right after the name (not pushed to the far right) */
.tp-cy-head__id { flex: 0 1 auto; }
.tp-cy-head__stats { margin-left: 12px; border-left: 1px solid var(--cy-line); }
.tp-cy-head__stat { align-items: flex-start; }
.tp-cy-tabs { display: flex; gap: 8px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.tp-cy-tabs::-webkit-scrollbar { display: none; }
.tp-cy-tab {
  flex: 1 0 auto; min-width: 130px; height: 44px; padding: 0 16px; border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, 0.1); color: var(--cy-soft); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.tp-cy-tab:hover { background: rgba(255, 255, 255, 0.16); }
.tp-cy-tab.is-on { background: var(--cy-soft); color: #191919; }
.tp-cy-panel { display: flex; flex-direction: column; gap: 16px; }
.tp-cy-panel[hidden] { display: none; }
.tp-cy-part { display: flex; flex-direction: column; gap: 16px; }
.tp-cy-panel .tp-an-sec { margin-top: 8px; }

/* Main column as tall as the side column: the chart takes the height left */
.tp-cy-grid2 { align-items: stretch; }
.tp-cy-main .tp-cy-chart { display: flex; flex: 1 1 auto; flex-direction: column; }
.tp-cy-plot--grow { flex: 1 1 auto; min-height: 240px; }
.tp-cy-plot--grow .tp-cy-plot__area { height: auto; min-height: 240px; }
.tp-cy-plot--month .tp-cy-plot__area { height: 180px; }
.tp-cy-grid2--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.tp-cy-grid2--even > .tp-cy-months { display: contents; }
.tp-cy-grid2--even:has(> .tp-cy-months) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
.tp-cy-grid2--heat { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.tp-cy-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Hover on charts: only the bar or the point itself is hovered (markAt in channelytics.js), then it is highlighted,
   the others dimmed, a guide line on the month line */
.tp-cy-hit { fill: transparent; }
.tp-cy-col { cursor: default; }
.tp-cy-col[data-cy-href] { cursor: pointer; }
.tp-cy-bar { transition: opacity 120ms; }
.tp-cy-plot__area.has-hot .tp-cy-col .tp-cy-bar { opacity: 0.55; }
.tp-cy-plot__area.has-hot .tp-cy-col.is-hot .tp-cy-bar { opacity: 1; }
.tp-cy-col.is-hot .tp-cy-hit { fill: rgba(255, 255, 255, 0.04); }
.tp-cy-guide { stroke: transparent; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tp-cy-col--line.is-hot .tp-cy-guide { stroke: var(--cy-line); }
.tp-cy-col--line.is-hot .tp-cy-mdot { r: 6; }
.tp-cy-plot--centered + .tp-cy-plot__x span, .tp-cy-plot--centered ~ .tp-cy-plot__x span { transform: translateX(-50%); }
.tp-cy-plot--centered ~ .tp-cy-plot__x span:first-child, .tp-cy-plot--centered ~ .tp-cy-plot__x span:last-child { transform: translateX(-50%); }
.tp-cy-mix__sub { color: var(--cy-muted); font-size: 12px; line-height: 16px; }

/* Small tables (Formats, words, forms) */
.tp-cy-mini { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.tp-cy-mini th, .tp-cy-mini td { padding: 9px 8px; border-top: 1px solid #3c3c3d; text-align: left; vertical-align: middle; }
.tp-cy-mini thead th { border-top: 0; color: var(--cy-muted); font-size: 12px; font-weight: 500; }
.tp-cy-mini thead th .tp-cy-dot { margin-right: 6px; }
.tp-cy-mini tbody th { color: var(--cy-soft); font-weight: 500; }
.tp-cy-mini tbody th small { display: block; color: var(--cy-muted); font-size: 12px; font-weight: 400; }
.tp-cy-mini td { color: #ffffff; font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-cy-mini .tp-cy-td--num { text-align: right; }
.tp-cy-mini tr.is-weak { opacity: 0.55; }
/* Everything with details on hover (data-tip-t, one tooltip for the page) is lit while hovered: rows, cells, chips */
.tp-cy [data-tip-t] { cursor: default; }
.tp-cy button [data-tip-t], .tp-cy a [data-tip-t] { cursor: inherit; }
.tp-cy tr.is-hot, .tp-cy td.is-hot, .tp-cy-row.is-hot { background: rgba(255, 255, 255, 0.05); }
.tp-cy-rows tbody tr.is-hot.is-weak { opacity: 1; }
.tp-cy-chip.is-hot { background: rgba(255, 255, 255, 0.18); }
.tp-cy-kpi.is-hot { border-color: #6a6d71; }
.tp-cy-meter-cell { width: 45%; }
.tp-cy-meter { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.tp-cy-meter + .tp-cy-meter { margin-top: 4px; }
.tp-cy-meter__bar { display: block; height: 100%; border-radius: 4px; }
.tp-cy-meter__bar--long { background: var(--tp-accent); }
.tp-cy-meter__bar--short { background: var(--cy-short); }
.tp-cy-meter__bar--red { background: var(--tp-score-red, #ff1f3d); }
.tp-cy-meter__bar--orange { background: var(--tp-score-orange, #ff8a00); }
.tp-cy-meter__bar--yellow { background: var(--tp-score-yellow, #ffe01a); }
.tp-cy-meter__bar--gray { background: #5b5d61; }
.tp-cy-forms__x small { display: block; color: var(--cy-muted); font-weight: 500; }
.tp-cy-figs { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-bottom: 12px; }
.tp-cy-fig { display: flex; flex-direction: column; }
.tp-cy-fig span { color: var(--cy-muted); font-size: 12px; line-height: 18px; }
.tp-cy-fig strong { color: #ffffff; font-size: 20px; line-height: 28px; font-weight: 700; }
.tp-cy-lock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px dashed var(--cy-line); border-radius: 10px; color: var(--cy-soft); font-size: 14px; }

/* Table tools: title search + format chips; sortable headers */
.tp-cy-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tp-cy-search { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: var(--cy-muted); }
.tp-cy-search .tp-icon { width: 16px; height: 16px; }
.tp-cy-search input { width: 200px; border: 0; background: none; color: #ffffff; font: inherit; font-size: 14px; outline: none; }
.tp-cy-search input::placeholder { color: var(--cy-muted); }
.tp-cy-sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: inherit; cursor: pointer; }
.tp-cy-sort .tp-icon { width: 14px; height: 14px; stroke-width: 3; }
.tp-cy-sort:hover, .tp-cy-sort.is-on { color: #ffffff; }
.tp-cy-table th.tp-cy-td--num .tp-cy-sort { flex-direction: row-reverse; }
.tp-cy-days tr.is-best td { color: var(--cy-up); }

/* Publishing: 4 small figures; day × hour grid */
.tp-cy-kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tp-cy-kpi--small { align-items: center; padding: 18px 20px; }
.tp-cy-kpi--small .tp-cy-kpi__label { font-size: 14px; line-height: 20px; }
.tp-cy-kpi--small .tp-cy-kpi__value { font-size: 20px; line-height: 28px; }
.tp-cy-heat { position: relative; display: flex; flex-direction: column; gap: 4px; }
.tp-cy-heat__row { display: grid; grid-template-columns: 44px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.tp-cy-heat__row--hours span { color: var(--cy-muted); font-size: 11px; line-height: 14px; }
.tp-cy-heat__day { color: var(--cy-soft); font-size: 12px; text-transform: capitalize; }
.tp-cy-heat__cell { display: block; aspect-ratio: 1; min-height: 14px; border-radius: 3px; background: rgba(255, 255, 255, 0.05); }
.tp-cy-heat__cell--1 { background: color-mix(in srgb, var(--tp-accent) 30%, #212122); }
.tp-cy-heat__cell--2 { background: color-mix(in srgb, var(--tp-accent) 52%, #212122); }
.tp-cy-heat__cell--3 { background: color-mix(in srgb, var(--tp-accent) 76%, #212122); }
.tp-cy-heat__cell--4 { background: var(--tp-accent); }
.tp-cy-heat__cell.is-hot { outline: 2px solid #ffffff; outline-offset: -1px; }

@media (max-width: 1099px) {
  .tp-cy-grid2--even, .tp-cy-grid2--even:has(> .tp-cy-months), .tp-cy-grid2--heat { grid-template-columns: minmax(0, 1fr); }
  .tp-cy-kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .tp-an .tp-sbhero__title { font-size: 28px; line-height: 34px; }
  .tp-cy-tab { min-width: 0; }
  .tp-cy-search input { width: 140px; }
  .tp-cy-heat__row { grid-template-columns: 32px repeat(24, minmax(0, 1fr)); gap: 2px; }
}
/* Score tags of the analysis: the same vivid colours as on the video cards (da/ecran.css --tp-score-*) */
.tp-cy .tp-tag--score { border: 0; border-radius: 6px; color: #ffffff; font-weight: 700; }
.tp-cy .tp-tag--score.tp-tag--red { background: var(--tp-score-red, #ff1f3d); color: #ffffff; }
.tp-cy .tp-tag--score.tp-tag--orange { background: var(--tp-score-orange, #ff8a00); color: #140a00; }
.tp-cy .tp-tag--score.tp-tag--yellow { background: var(--tp-score-yellow, #ffe01a); color: #141100; }
.tp-cy .tp-tag--score.tp-tag--gray { background: var(--tp-score-gray, #4b5563); color: #ffffff; }
.tp-cy-days td:first-child { text-transform: capitalize; }

/* ---------- Page d'une vidéo (channelytics.js videoPanelHTML) ---------- */
.tp-cy-bar-row--video { flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.tp-cy-video__nav { display: flex; gap: 8px; }
.tp-cy-video { display: grid; grid-template-columns: minmax(240px, 420px) minmax(0, 1fr); gap: 24px; align-items: start; padding: 20px; }
.tp-cy-video__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #2c2d2f; }
.tp-cy-video__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-cy-video__thumb.is-short img { object-fit: contain; }
.tp-cy-video__title { margin: 0; color: #ffffff; font-size: 22px; line-height: 30px; font-weight: 700; overflow-wrap: anywhere; }
.tp-cy-video__meta { margin: 6px 0 0; color: var(--cy-soft); font-size: 15px; line-height: 22px; font-weight: 500; }
.tp-cy-video__label { margin: 16px 0 8px; color: var(--cy-soft); font-size: 14px; line-height: 20px; font-weight: 500; }
.tp-cy-video__desc { margin: 0; color: var(--cy-soft); font-size: 14px; line-height: 21px; white-space: pre-line; overflow-wrap: anywhere; }
.tp-cy-grid2--video { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); }
.tp-cy-row small { margin-left: 8px; color: var(--cy-soft); font-size: 14px; font-weight: 400; }
.tp-cy-cap { text-transform: capitalize; }
.tp-cy-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tp-cy-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); color: var(--cy-soft); font-size: 13px; font-weight: 500; }
.tp-cy-chip .tp-cy-score { height: 20px; }
/* A bar marked as the current one (barsSVG it.on) */
.tp-cy-bar--this { fill: #ffffff; }
.tp-cy-plot__area.has-hot .tp-cy-col.is-on .tp-cy-bar { opacity: 1; }
.tp-cy-col[data-cy-video] .tp-cy-bar { cursor: pointer; }
/* Buttons that open a video page (latest video, table rows) look like the former links */
.tp-cy-last__thumb, .tp-cy-last__title, .tp-cy-td__open { padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.tp-cy-last__thumb { width: 100%; background: #2c2d2f; }
.tp-cy-last__title { width: 100%; }
.tp-cy-td__wrap { display: flex; align-items: center; gap: 8px; }
.tp-cy-td__open { display: flex; flex: 1 1 auto; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.tp-cy-td__open:hover .tp-cy-td__title { text-decoration: underline; }
.tp-cy-td__yt { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--cy-muted); opacity: 0; }
.tp-cy-td__yt .tp-icon { width: 15px; height: 15px; }
.tp-cy-table tr:hover .tp-cy-td__yt, .tp-cy-td__yt:focus-visible { opacity: 1; }
.tp-cy-td__yt:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
@media (hover: none) { .tp-cy-td__yt { opacity: 1; } }
@media (max-width: 1099px) {
  .tp-cy-grid2--video { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 799px) {
  .tp-cy-video { grid-template-columns: minmax(0, 1fr); }
}

/* Tooltip v3: beside the pointer (channelytics.js bindCy), with the videos concerned (thumbnail, title, views · score) */
.tp-cy-tip { transform: none; padding: 10px 12px; border: 1px solid #3c3c3d; background: #111111; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.tp-cy-tip strong { color: var(--cy-soft); font-size: 12px; font-weight: 500; }
.tp-cy-tip > span { color: #ffffff; font-size: 14px; line-height: 20px; font-weight: 700; }
.tp-cy-tip.is-rich { width: 300px; max-width: 300px; }
.tp-cy-tip__videos { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid #2c2d2f; list-style: none; }
.tp-cy-tip__videos li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tp-cy-tip__thumb { flex: none; width: 96px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #2c2d2f; }
.tp-cy-tip__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-cy-tip__thumb.is-short img { object-fit: contain; }
.tp-cy-tip__vt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp-cy-tip__vt b { display: -webkit-box; overflow: hidden; color: #ffffff; font-size: 12px; line-height: 16px; font-weight: 600; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tp-cy-tip__vt small { color: var(--cy-muted); font-size: 11px; line-height: 14px; }
.tp-cy-tip__more { color: var(--cy-muted); font-size: 11px; }
.tp-cy-tip__videos li.is-on { margin: -4px -6px; padding: 4px 6px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); } /* the video of the page */

/* ---------- Channel search results, ViewStats style (views/analysis.js bindPicker) ----------
   Rows: avatar 50 px (radius 10), name 15 px, « @handle · subscribers » 12 px; the whole row opens the analysis.
   Loading: skeleton rows (grey square + two bars) that pulse. On the Analyse page the list opens OVER the page (absolute,
   under the bar): the page under it never moves; elsewhere (window, popover) it stays in the flow. */
.tp-an-picker__results[hidden] { display: none; }
.tp-an-result { gap: 12px; padding: 12px; border-radius: 10px; }
.tp-an-result:hover { background: rgba(255, 255, 255, 0.06); }
.tp-an-result .tp-avatar { flex: none; width: 50px; height: 50px; border-radius: 10px; font-size: 18px; }
.tp-an-result__name { color: #d1cfcf; font-size: 15px; line-height: 22px; font-weight: 400; }
.tp-an-result__meta { color: #ecedee; font-size: 12px; line-height: 18px; }
.tp-an-result--pick { padding: 0; }
.tp-an-result__btn {
  display: flex; flex: 1 1 auto; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 0; border-radius: 10px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.tp-an-result__btn:focus-visible { outline: 2px solid var(--tp-accent); outline-offset: -2px; }
.tp-an-result--skeleton:hover { background: none; }
.tp-an-result__sk-av { flex: none; width: 50px; height: 50px; border-radius: 10px; background: #2c2d2f; animation: tp-an-sk 1.2s ease-in-out infinite; }
.tp-an-result__sk { display: block; width: 60%; height: 12px; border-radius: 6px; background: #2c2d2f; animation: tp-an-sk 1.2s ease-in-out infinite; }
.tp-an-result__sk + .tp-an-result__sk { width: 40%; height: 10px; margin-top: 8px; }
.tp-an-result__sk--short { width: 40%; }
@keyframes tp-an-sk { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .tp-an-result__sk-av, .tp-an-result__sk { animation: none; } }
.tp-an-results--more { margin-top: 0; }

.tp-an .tp-an-find .tp-an-picker { position: relative; }
.tp-an .tp-an-find .tp-an-picker__results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; max-height: min(460px, 60vh); margin: 0; padding: 4px;
  overflow-y: auto; border: 1px solid #303030; border-radius: 10px; background: #212122; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}
.tp-an .tp-an-find .tp-an-picker__results .tp-an-results { max-height: none; margin: 0; overflow: visible; }
.tp-an .tp-an-find .tp-an-picker__note { padding: 12px; }

/* Narrow analysis (small window, side panel open): the header stacks, the figures stack, words never break in two.
   Container query on the analysis itself, not on the screen (the sidebar takes part of it). */
.tp-cy { container: tp-cy / inline-size; }
.tp-cy-head__name, .tp-cy-video__title { overflow-wrap: break-word; word-break: normal; }
.tp-cy-kpi__label, .tp-cy-kpi__sub { overflow-wrap: normal; word-break: normal; hyphens: none; }
@container tp-cy (max-width: 980px) {
  .tp-cy-head__top { flex-wrap: wrap; }
  .tp-cy-head__id { flex: 1 1 220px; }
  .tp-cy-head__stats { flex: 1 1 100%; justify-content: flex-start; margin-left: 0; border-left: 0; }
  .tp-cy-head__stat { align-items: flex-start; padding: 0 24px 0 0; }
  .tp-cy-head__stat + .tp-cy-head__stat { padding-left: 24px; }
  .tp-cy-kpi { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; }
  .tp-cy-kpi__fig { flex-direction: row; align-items: center; gap: 10px; }
}
@container tp-cy (max-width: 640px) {
  .tp-cy-kpis { grid-template-columns: minmax(0, 1fr); }
  .tp-cy-tabs { gap: 6px; }
  .tp-cy-tab { min-width: 0; padding: 0 12px; }
}

/* ---------- Page d'une vidéo, lisible d'un coup d'œil (31/10/2026) ----------
   The score said in words under the title, its figures big in the same card, then its videos before / after as a
   list with thumbnails (a bar chart of dates was unreadable). One colour code on the page, the change pills of the
   overview: green = more than usual, red = less, grey = as usual. */
.tp-cy-verdict { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; color: var(--cy-soft); font-size: 18px; line-height: 26px; font-weight: 600; }
.tp-cy-verdict .tp-icon { flex: none; width: 22px; height: 22px; stroke-width: 3; }
.tp-cy-verdict--up { color: var(--cy-up); }
.tp-cy-verdict--down { color: #ff4e45; }
.tp-cy-vstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--cy-line); }
.tp-cy-vstat { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0 20px; }
.tp-cy-vstat:first-child { padding-left: 0; }
.tp-cy-vstat + .tp-cy-vstat { border-left: 1px solid var(--cy-line); }
.tp-cy-vstat dt { color: var(--cy-soft); font-size: 15px; line-height: 22px; font-weight: 500; }
.tp-cy-vstat dd { margin: 0; }
.tp-cy-vstat__value { color: #ffffff; font-size: 30px; line-height: 38px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-cy-vstat__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--cy-soft); font-size: 14px; line-height: 20px; font-weight: 400; }
.tp-cy-video .tp-cy-head__actions { margin-top: 18px; padding-top: 0; border-top: 0; }
.tp-cy-video .tp-cy-delta, .tp-cy-near .tp-cy-delta { height: 26px; font-size: 14px; font-weight: 600; }
.tp-cy-delta--plain { padding: 0 10px; }
.tp-cy-card__note { color: var(--cy-soft); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-cy-panel[data-cy-panel="video"] .tp-cy-card__title { color: #ffffff; font-size: 18px; line-height: 26px; font-weight: 600; }
@container tp-cy (max-width: 980px) {
  .tp-cy-vstats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .tp-cy-vstat:nth-child(odd) { padding-left: 0; border-left: 0; }
}
.tp-cy-near__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.tp-cy-near__list li + li { border-top: 1px solid #2f3032; }
.tp-cy-near__row {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(120px, 34%) 64px; align-items: center; gap: 14px;
  width: 100%; padding: 8px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left;
}
button.tp-cy-near__row { cursor: pointer; }
button.tp-cy-near__row:hover { background: rgba(255, 255, 255, 0.05); }
button.tp-cy-near__row:focus-visible { outline: 2px solid var(--tp-accent); outline-offset: -2px; }
.tp-cy-near__row.is-on { background: rgba(255, 255, 255, 0.09); }
.tp-cy-near__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #2c2d2f; }
.tp-cy-near__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-cy-near__thumb.is-short img { object-fit: contain; }
.tp-cy-near__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tp-cy-near__txt b { display: -webkit-box; overflow: hidden; color: #ffffff; font-size: 15px; line-height: 21px; font-weight: 600; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tp-cy-near__txt small { color: var(--cy-soft); font-size: 13px; line-height: 18px; font-weight: 400; }
.tp-cy-near__row.is-on small { color: #ffffff; font-weight: 600; }
.tp-cy-near__views { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tp-cy-near__bar { flex: 1 1 auto; height: 10px; overflow: hidden; border-radius: 5px; background: #2c2d2f; }
.tp-cy-near__bar i { display: block; height: 100%; border-radius: 5px; background: var(--tp-accent); }
.tp-cy-near--short .tp-cy-near__bar i { background: var(--cy-short); }
.tp-cy-near__row.is-on .tp-cy-near__bar i:not([class]) { background: #ffffff; }
/* The bar in the colour of its score (same code as the pills); without scores (compliance mode) the format colour */
.tp-cy-near__bar i.is-up { background: var(--cy-up); }
.tp-cy-near__bar i.is-down { background: var(--cy-down); }
.tp-cy-near__bar i.is-flat { background: #8e8e8e; }
.tp-cy-near__n { flex: none; width: 56px; color: #ffffff; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.tp-cy-near__score { display: flex; justify-content: flex-end; }
@container tp-cy (max-width: 640px) {
  .tp-cy-near__row { grid-template-columns: 88px minmax(0, 1fr) 64px; gap: 10px; }
  .tp-cy-near__views { grid-column: 2 / 3; }
  .tp-cy-near__score { grid-column: 3; grid-row: 1; }
}
