/* Radar YouTube : thème sombre. */
:root {
  --page: #08090c;
  --surface: #0f1116;
  --surface-2: #151820;
  --surface-3: #1c2029;
  --line: #20242e;
  --line-strong: #2e3441;
  --ink: #eceef3;
  --ink-2: #a0a7b6;
  --ink-3: #6c7385;
  --accent: #ff4757;
  --accent-strong: #ff2e43;
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 71, 87, .12);
  --link: #8ab4ff;
  /* Niveaux de score : toujours accompagnés du texte du score. */
  --good: #34d27b;
  --warning: #f5b83d;
  --serious: #ff8a4c;
  --critical: #ff4757;
  --good-soft: rgba(52, 210, 123, .13);
  --serious-soft: rgba(255, 138, 76, .14);
  --critical-soft: rgba(255, 71, 87, .16);
  --ok-bg: rgba(52, 210, 123, .1);
  --ok-ink: #5fe39a;
  --err-bg: rgba(255, 71, 87, .1);
  --err-ink: #ff8a95;
  --info-bg: rgba(138, 180, 255, .08);
  --flag-bg: rgba(255, 138, 76, .06);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px -18px rgba(0, 0, 0, .8);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 85% -200px, rgba(255, 71, 87, .07), transparent 70%),
    radial-gradient(900px 420px at -10% -160px, rgba(138, 180, 255, .05), transparent 70%),
    var(--page);
  background-attachment: fixed;
  color: var(--ink);
  font: 14px/1.5 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
code { font: 12.5px var(--mono); background: var(--surface-3); color: var(--ink); padding: 1px 6px; border-radius: 5px; }
h1 { font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -.02em; margin: 0; }
h2 { font-size: 15px; font-weight: 620; letter-spacing: -.01em; margin: 0; }
strong { font-weight: 620; }
::selection { background: rgba(255, 71, 87, .35); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-2); margin: 0; }
.small { font-size: 12.5px; }
.error { color: var(--err-ink); }
.nowrap { white-space: nowrap; }

/* En-tête */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 9, 12, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 680; color: var(--ink); font-size: 15.5px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  position: relative; width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 1.5px solid rgba(255, 71, 87, .55);
  background: radial-gradient(circle, var(--accent) 0 3px, transparent 3.5px), radial-gradient(circle, transparent 0 6px, rgba(255, 71, 87, .35) 6.5px 7.5px, transparent 8px);
  font-size: 0;
}
.brand-mark::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 71, 87, .55), transparent 30%);
  animation: sweep 3.2s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brand-mark::after { animation: none; } }

.nav { display: flex; gap: 2px; flex: 1; }
.nav a { color: var(--ink-2); padding: 7px 12px; border-radius: 8px; font-weight: 520; }
.nav a:hover { text-decoration: none; color: var(--ink); background: var(--surface-2); }
.nav a.active { color: var(--ink); background: var(--surface-3); }
.refresh-form { margin: 0; }

/* Boutons */
.btn {
  font: inherit; font-weight: 580; cursor: pointer; border-radius: var(--radius-sm); padding: 8px 15px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; transition: background .15s, border-color .15s, filter .15s;
}
.btn:hover { background: var(--surface-3); border-color: #3c4352; text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(180deg, #ff5a68, var(--accent-strong)); border-color: transparent; color: var(--accent-ink);
  box-shadow: 0 6px 18px -8px rgba(255, 46, 67, .7);
}
.btn-primary:hover { background: linear-gradient(180deg, #ff6b78, #ff3a4e); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); padding: 7px 11px; }
.btn-ghost:hover { color: var(--err-ink); background: var(--err-bg); border-color: transparent; }

/* Bandeaux */
.banner { margin: 20px 0 0; padding: 11px 15px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.banner-info { background: var(--info-bg); border-color: rgba(138, 180, 255, .18); color: #c9daff; }
.banner-ok { background: var(--ok-bg); color: var(--ok-ink); border-color: rgba(52, 210, 123, .25); }
.banner-err { background: var(--err-bg); color: var(--err-ink); border-color: rgba(255, 71, 87, .28); }

/* En-tête de page */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.page-head .muted { margin-top: 4px; }
.page-head .filters { margin: 0; }

/* Filtres */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 0; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 3px; flex-wrap: wrap; gap: 2px; }
.seg a { padding: 5px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 540; font-size: 13px; }
.seg a:hover { text-decoration: none; color: var(--ink); background: var(--surface-2); }
.seg a.on { background: var(--surface-3); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong) inset; }

/* Chiffres clés */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; }
.tile {
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.tile-label { color: var(--ink-3); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.tile-value { font-size: 30px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 6px; line-height: 1.1; }
.tile-value-sm { font-size: 18px; letter-spacing: -.01em; padding-top: 8px; }
.tile-hot { border-color: rgba(255, 71, 87, .35); background: linear-gradient(180deg, rgba(255, 71, 87, .1), var(--surface)); }
.tile-hot .tile-value { color: #ff7a87; }

/* Cartes et tableaux */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 20px 0 0; overflow: hidden; box-shadow: var(--shadow); }
.card-head { padding: 18px 20px 14px; display: grid; gap: 4px; }
.card-head .muted { font-size: 13px; }
.card > p { padding: 0 20px 16px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 12px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
th {
  font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em;
  background: rgba(255, 255, 255, .015); white-space: nowrap;
}
td { font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
.num { text-align: right; white-space: nowrap; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--surface-2); }
td a { color: var(--ink); }
td a:hover { color: var(--link); }
.row-flag { background: var(--flag-bg); box-shadow: 3px 0 0 var(--serious) inset; }
.flag { color: #ffb48a; margin: 6px 0 0 124px; }
.actions { text-align: right; }
.actions form { margin: 0; }

/* Cellule vidéo */
.video { display: flex; gap: 14px; align-items: center; min-width: 300px; }
.video-text { min-width: 0; display: grid; gap: 3px; }
.video-title { color: var(--ink); font-weight: 540; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-title:hover { color: #fff; }
.video .muted a { color: var(--ink-2); }
.video .muted a:hover { color: var(--link); }
.thumb {
  width: 110px; height: 62px; border-radius: 8px; object-fit: cover; flex: none;
  background: var(--surface-3); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
}
.thumb-empty { display: grid; place-items: center; color: var(--ink-3); font-weight: 600; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.avatar-lg { width: 64px; height: 64px; font-size: 24px; box-shadow: 0 0 0 3px var(--surface-3); }
.avatar-empty { display: grid; place-items: center; background: var(--accent-soft); color: #ff8a95; font-weight: 650; }
.channel-head { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.channel-head .muted { margin-top: 4px; }

/* Badge de score : le niveau est porté par la pastille + le texte, jamais par la couleur seule. */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-weight: 640; font-size: 12.5px; background: var(--surface-3); color: var(--ink); white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05) inset;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.badge-x10 { background: var(--critical-soft); color: #ff8f9a; }
.badge-x10 .badge-dot { background: var(--critical); box-shadow: 0 0 8px var(--critical); }
.badge-x3 { background: var(--serious-soft); color: #ffb08a; }
.badge-x3 .badge-dot { background: var(--serious); }
.badge-up { background: var(--good-soft); color: #7ee6aa; }
.badge-up .badge-dot { background: var(--good); }
.badge-flat .badge-dot { background: #4a5160; }
.badge-down { color: var(--ink-3); font-weight: 520; background: transparent; }
.badge-down .badge-dot { background: transparent; border: 1.5px solid #4a5160; }
.badge-na { color: var(--ink-3); font-weight: 520; background: transparent; }
.badge-na .badge-dot { display: none; }

/* Formulaires */
input[type="text"], input[type="password"], select, textarea {
  font: inherit; color: var(--ink); background: var(--page); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 9px 12px; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(255, 71, 87, .7); box-shadow: 0 0 0 3px rgba(255, 71, 87, .18); }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.add-form { display: flex; gap: 8px; padding: 0 20px 18px; flex-wrap: wrap; }
.add-form input { flex: 1; min-width: 220px; }
.demo-form { padding: 0 20px 18px; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.empty { text-align: center; padding: 56px 16px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); margin-top: 20px; }
.empty p { margin: 0 0 14px; color: var(--ink-2); }
.empty-inline { color: var(--ink-3); padding: 4px 20px 20px; margin: 0; }
.footer { color: var(--ink-3); font-size: 12px; padding-top: 32px; padding-bottom: 40px; }

/* Connexion */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; margin: 0; box-shadow: 0 30px 80px -30px rgba(255, 71, 87, .25), var(--shadow); }
.login-card .card-head { padding: 24px 22px 8px; gap: 10px; }
.login-card h1 { font-size: 17px; }
.login-banner { margin: 8px 22px 0; }
.login-body { display: grid; gap: 8px; padding: 12px 22px 22px; }
.login-body .btn { margin-top: 8px; justify-content: center; }

/* État des alertes */
.status { color: var(--ink-3); white-space: nowrap; }
.status-on { color: var(--ok-ink); font-weight: 580; }
.table-scroll + .demo-form { padding-top: 16px; border-top: 1px solid var(--line); }

/* Réglages des alertes */
.settings { margin: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 18px; padding: 0 20px 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field-label { font-weight: 580; font-size: 13px; }
.hint { color: var(--ink-3); font-size: 12px; }
.fields input[type="text"], .fields input[type="password"], .fields select, .fields textarea { width: 100%; }
.fields textarea { resize: vertical; min-height: 70px; }
.check { display: flex; gap: 9px; align-items: center; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.smtp { border-top: 1px solid var(--line); }
.smtp summary { cursor: pointer; padding: 14px 20px; font-weight: 580; color: var(--ink-2); }
.smtp summary:hover { color: var(--ink); }
.smtp > p { padding: 0 20px 14px; }
.form-actions { display: flex; justify-content: flex-end; padding: 20px 0 0; }
.card > p.small { padding: 12px 20px 16px; }

/* Tableaux triables */
.sortable th[aria-sort] { padding: 0; }
.sortable th[aria-sort] button {
  font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; background: none; border: 0;
  cursor: pointer; width: 100%; padding: 11px 12px; text-align: inherit; white-space: nowrap;
  display: inline-flex; gap: 5px; align-items: center;
}
.sortable th.num[aria-sort] button { justify-content: flex-end; }
.sortable th[aria-sort]:first-child button { padding-left: 20px; }
.sortable th[aria-sort]:last-child button { padding-right: 20px; }
.sortable th[aria-sort] button:hover { color: var(--ink); }
.sortable th[aria-sort] button::after { content: "↕"; opacity: .4; font-size: 10px; }
.sortable th[aria-sort="ascending"] button::after { content: "▲"; opacity: 1; color: var(--accent); }
.sortable th[aria-sort="descending"] button::after { content: "▼"; opacity: 1; color: var(--accent); }
.sortable th[aria-sort="ascending"], .sortable th[aria-sort="descending"] { color: var(--ink); }
.sortable th[aria-sort] button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Accès rapide aux chaînes */
.channel-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 4px 13px 4px 4px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); max-width: 100%;
  transition: border-color .15s, background .15s, transform .15s;
}
.chip:hover { background: var(--surface-3); text-decoration: none; border-color: rgba(255, 71, 87, .45); transform: translateY(-1px); }
.chip .avatar { width: 28px; height: 28px; font-size: 13px; }
.chip-name { font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-meta { color: var(--ink-3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip-error { color: var(--err-ink); }

/* Barre de défilement */
* { scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid var(--page); }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-value { font-size: 24px; }
  .tile-value-sm { font-size: 16px; }
  .refresh-form { margin-left: auto; }
  .topbar-inner { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .flag { margin-left: 0; }
  .thumb { width: 80px; height: 45px; }
  .video { min-width: 240px; }
  h1 { font-size: 21px; }
}

/* Langue des chaînes */
.lang-form { margin: 0; display: flex; gap: 6px; align-items: center; }
.lang-form select { padding: 6px 30px 6px 10px; font-size: 13px; min-width: 170px; }

/* Tableaux à nombreuses colonnes */
.dense th, .dense td { padding-left: 8px; padding-right: 8px; }
.dense.sortable th[aria-sort] button { padding-left: 8px; padding-right: 8px; }
.dense th:first-child, .dense td:first-child, .dense.sortable th[aria-sort]:first-child button { padding-left: 20px; }
.dense th:last-child, .dense td:last-child, .dense.sortable th[aria-sort]:last-child button { padding-right: 20px; }
.dense .video { min-width: 250px; gap: 12px; }
.dense .thumb { width: 88px; height: 50px; }
.dense .flag { margin-left: 100px; }

/* Page vidéo */
.crumbs { margin: 24px 0 0; }
.video-head { display: flex; gap: 20px; align-items: flex-start; margin-top: 12px; flex-wrap: wrap; }
.video-head-thumb { flex: none; width: 320px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: var(--surface-3); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); display: grid; place-items: center; }
.video-head-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-head-text { flex: 1; min-width: 260px; display: grid; gap: 8px; }
.video-head-text h1 { font-size: 22px; }
.video-head-text p { margin: 0; }
.banner-hot { background: var(--serious-soft); color: #ffb48a; border-color: rgba(255, 138, 76, .3); }
.tiles-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile-sub { color: var(--ink-3); font-size: 12px; margin-top: 6px; }
.tile .badge { font-size: 15px; padding: 4px 12px; }

.chart-wrap { padding: 8px 20px 34px 64px; }
.chart { margin: 0; }
.chart-plot { position: relative; height: 280px; }
.chart-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .line-main { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .line-ref { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.chart-y, .chart-x { position: absolute; color: var(--ink-3); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-y { right: calc(100% + 10px); transform: translateY(-50%); }
.chart-x { top: calc(100% + 8px); transform: translateX(-50%); }
.chart-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); }
.line-main-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 71, 87, .25); }
.line-ref-dot { background: var(--ink-3); }
.chart-marker { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed var(--warning); }
.chart-marker::after { content: ""; position: absolute; left: -6px; top: -4px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--warning); box-shadow: 0 0 0 3px rgba(245, 184, 61, .25); }
.legend { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; }
.legend::before { content: ""; width: 18px; height: 0; border-top: 2.5px solid var(--accent); }
.legend-ref::before { border-top: 2px dashed var(--ink-3); }
.legend-marker::before { width: 0; height: 12px; border-top: 0; border-left: 1.5px dashed var(--warning); }

.changes { list-style: none; margin: 0; padding: 0 20px 8px; }
.change { border-top: 1px solid var(--line); padding: 14px 0; display: grid; gap: 10px; }
.change:first-child { border-top: 0; padding-top: 0; }
.change-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.change-titles { display: grid; gap: 6px; }
.change-titles s { color: var(--ink-3); }
.tag { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  padding: 1px 7px; border-radius: 5px; background: var(--surface-3); color: var(--ink-2); margin-right: 4px; }
.tag-new { background: var(--good-soft); color: #7ee6aa; }
.change-thumbs { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.change-thumbs figure { margin: 0; display: grid; gap: 4px; }
.change-thumbs img { width: 240px; max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.change-thumbs figcaption { color: var(--ink-3); font-size: 12px; }
.change-arrow { color: var(--ink-3); font-size: 20px; }
.change-effect { margin: 0; color: var(--ink-2); }
.change-effect .up { color: var(--ok-ink); }
.change-effect .down { color: var(--err-ink); }

/* Mini-courbes */
.rate { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.spark { display: block; flex: none; }
.spark-line { fill: none; stroke: var(--link); stroke-width: 1.5; stroke-linejoin: round; }
.spark-area { fill: rgba(138, 180, 255, .12); stroke: none; }
.thumb-link { flex: none; display: block; border-radius: 8px; }
.thumb-link:hover .thumb { box-shadow: 0 0 0 2px var(--accent); }

@media (max-width: 1100px) { .tiles-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .tiles-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-head-thumb { width: 100%; }
  .chart-plot { height: 200px; }
  .chart-wrap { padding: 8px 14px 30px 48px; }
  .spark { display: none; }
}

/* Page Analyses */
.inline-form { display: inline; margin: 0; }
.btn-xs { padding: 3px 9px; font-size: 12px; font-weight: 550; }
.more { border-top: 1px solid var(--line); }
.more > summary { cursor: pointer; padding: 13px 20px; color: var(--ink-2); font-weight: 560; }
.more > summary:hover { color: var(--ink); }
.ignored-list { list-style: none; margin: 0; padding: 0 20px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ignored-list li { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-strong); }
.mini-thumbs { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.mini-thumbs img { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; }
.effect-up { color: var(--ok-ink); }
.effect-down { color: var(--err-ink); }

.heat { table-layout: fixed; min-width: 760px; }
.heat th[scope="row"] { text-align: left; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink-2); width: 130px; background: transparent; }
.heat-cell { text-align: center; padding: 10px 6px; border-left: 1px solid var(--line); }
.heat-cell strong { display: block; font-size: 14px; font-weight: 640; }
.heat-n { display: block; font-size: 11px; color: var(--ink-3); }
.heat-h3 { background: rgba(52, 210, 123, .30); }
.heat-h2 { background: rgba(52, 210, 123, .18); }
.heat-h1 { background: rgba(52, 210, 123, .08); }
.heat-c1 { background: rgba(255, 138, 76, .08); }
.heat-c2 { background: rgba(255, 138, 76, .18); }
.heat-none strong { color: var(--ink-3); font-weight: 500; }
.heat-sum { border-left: 2px solid var(--line-strong); }
.heat-total th, .heat-total td { border-top: 2px solid var(--line-strong); }
.heat tbody tr:hover { background: transparent; }

/* Ma chaîne */
.tag-mine { background: var(--accent-soft); color: #ff8f9a; margin-left: 6px; vertical-align: middle; }
.chip .tag-mine { margin-left: -2px; }
.row-mine { background: rgba(255, 71, 87, .06); box-shadow: 3px 0 0 var(--accent) inset; }
.vs { color: var(--ink-3); }
.vs-up { color: var(--ok-ink); }
.vs-down { color: var(--err-ink); }
.btn-mine:hover { color: var(--ink); background: var(--surface-3); }
.page-head .channel-head { margin-top: 0; }
