/* Nouvelle interface, à l'essai (nouvelle.js). Tout est sous body.nouv : sans
   l'interrupteur, rien de ce fichier ne s'applique. Mêmes couleurs que le site
   (les jetons de index.html), mêmes règles que la maquette validée :
   barre du haut | Ma télé | pays à gauche, catégories en pastilles, chaîne à droite. */

body.nouv .workspace > :not(#stage) { display: none !important; }
body:not(.nouv) #nv { display: none; }
#nv {
  position: fixed; inset: 0; z-index: 10; overflow-y: auto; background: var(--ink-050); color: var(--fg-100);
  font-family: var(--font); font-size: 14px; line-height: 20px;
}
#nv button { font: inherit; color: inherit; cursor: pointer; }
#nv :focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; border-radius: 8px; }

/* ── Barre du haut ── */
.nvtop {
  position: sticky; top: 0; z-index: 3; height: 72px; display: flex; align-items: center; gap: 20px;
  padding: 0 max(32px, env(safe-area-inset-right, 0px)) 0 max(32px, env(safe-area-inset-left, 0px));
  background: var(--ink-050); border-bottom: 1px solid var(--line-soft);
}
.nvmarque { display: flex; align-items: center; gap: 10px; margin-right: 16px; }
.nvmarque b { font-weight: 700; font-size: 17px; font-stretch: 112%; letter-spacing: -0.01em; }
.nvnav { display: flex; gap: 4px; }
.nvnav button { white-space: nowrap; flex-shrink: 0; height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: none; color: var(--fg-070); font-size: 15px; }
.nvnav button:hover { color: var(--fg-100); }
.nvnav button[aria-current="page"] { background: var(--accent); color: #fff; font-weight: 600; }
.nvsearch { margin-left: auto; position: relative; width: 260px; }
.nvsearch svg { position: absolute; left: 13px; top: 9px; width: 16px; height: 16px; color: var(--fg-045); }
.nvsearch input { width: 100%; height: 34px; padding: 0 12px 0 38px; border-radius: 999px; border: 1px solid transparent; background: var(--ink-100); color: var(--fg-100); font: inherit; }
.nvsearch input:focus { outline: none; border-color: var(--line-strong); }
.nvcompte { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; }
.nvcompte i { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 12px; }
.nvcompte span { color: var(--fg-070); font-size: 13px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nvmain { padding: 28px max(48px, env(safe-area-inset-right, 0px)) 32px max(48px, env(safe-area-inset-left, 0px)); }
.nvhead h1 { margin: 0; font-size: clamp(40px, 4.2vw, 64px); line-height: .98; font-weight: 700; font-stretch: 125%; letter-spacing: -0.04em; }
.nvhead p { margin: 10px 0 0; color: var(--fg-070); font-size: 15px; }
.nvhead p strong { color: var(--accent-light); font-weight: 500; }
.nvnote { color: var(--fg-045); margin: 12px 0; }

/* Tuiles de logo : le logo d'origine sur un fond neutre, ou le nom sur la teinte de la chaîne. */
.nvlogo { width: 72px; height: 48px; flex: none; border-radius: 10px; display: grid; place-items: center; overflow: hidden;
  background: hsl(var(--h, 220) 42% 17%); color: hsl(var(--h, 220) 85% 80%); font-weight: 700; font-size: 11px; font-stretch: 88%; text-align: center; padding: 4px; }
.nvlogo.img { background: #101216; padding: 7px; }
.nvlogo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nvbar { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--fg-045); font-size: 11px; font-variant-numeric: tabular-nums; }
.nvbar i { flex: 1; max-width: 260px; height: 3px; border-radius: 3px; background: var(--ink-300); position: relative; overflow: hidden; }
.nvbar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--accent-bar); }
.nvq { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; border: 1px solid transparent; font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1; vertical-align: middle; }
.nvq--4k, .nvq--uhd { background: var(--accent); color: #fff; }
.nvq--fhd { background: rgba(90, 150, 255, .16); border-color: var(--accent-light); color: var(--accent-light); }
.nvq--hd { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: var(--fg-100); }
.nvq--sd { border-color: var(--line-strong); color: var(--fg-070); }
.nvfiche p .nvq, .nvptop__kicker .nvq { margin-left: 8px; }
.nvtuile__haut { position: relative; }
.nvtuile__haut .nvq { position: absolute; top: 10px; right: 10px; }
.nvtuile__haut .nvq--hd, .nvtuile__haut .nvq--sd { background: rgba(0, 0, 0, .55); }
.nvgrand__txt h2 .nvq { margin-left: 6px; vertical-align: 6px; }
.nvrec b .nvq { margin-left: 4px; height: 17px; padding: 0 5px; font-size: 10px; }
.nvptop__kicker .nvq { letter-spacing: .06em; }
.nvchip { padding: 0 5px; height: 16px; line-height: 16px; border-radius: 4px; background: var(--ink-200); color: var(--fg-070); font-size: 10px; font-weight: 600; }
.nvpill { display: inline-block; padding: 0 8px; height: 22px; line-height: 22px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.nvpill.warn { background: #2b2414; color: #f2c36b; }
.nvprim { height: 40px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--accent); color: #fff !important; font-weight: 600; }
.nvprim:hover { background: #2a5fdb; }
.nvghost { height: 40px; padding: 0 16px; border-radius: 999px; background: none; border: 1px solid var(--line); }
.nvghost:hover { border-color: var(--line-strong); }

/* ── Ma télé ── */
.nvhome { display: flex; flex-direction: column; gap: 24px; }
.nvalerte { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #2b2414; }
.nvalerte > span:nth-child(2) { flex: 1; color: var(--fg-070); }
.nvalerte b { color: var(--fg-100); }
.nvreprise { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.nvgrand { border-radius: 16px; background: hsl(var(--h) 34% 12%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); overflow: hidden; min-height: 240px; }
.nvgrand__logo { display: grid; place-items: center; background: hsl(var(--h) 30% 9%); }
.nvgrand__logo .nvlogo { width: 200px; height: 120px; }
.nvgrand__txt { padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nvgrand__txt small { color: var(--fg-045); }
.nvgrand__txt h2 { margin: 0; font-size: 26px; font-stretch: 112%; letter-spacing: -0.02em; }
.nvgrand__txt p { margin: 0; color: var(--fg-070); }
.nvgrand__txt .nvprim { margin-top: auto; align-self: flex-start; }
.nvavant { background: var(--ink-100); border-radius: 16px; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.nvavant h2 { margin: 0 0 8px 6px; font-size: 15px; }
.nvrec { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 6px; border-radius: 10px; border: 0; background: none; text-align: left; }
.nvrec:hover { background: var(--ink-200); }
.nvrec .nvlogo { width: 64px; height: 42px; }
.nvrec > span { min-width: 0; display: grid; }
.nvrec small { color: var(--fg-045); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvsect { display: flex; align-items: baseline; gap: 12px; margin-bottom: -8px; }
.nvsect h2 { margin: 0; font-size: 20px; font-weight: 700; font-stretch: 112%; }
.nvsect h2 + .nvcompteur { margin-left: 0; }
/* Favoris en liste */
.nvfavliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 12px; }
.nvfl { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px 14px; border: 0; border-radius: 14px; background: var(--ink-100); text-align: left; overflow: hidden; }
.nvfl:hover, .nvfl:focus-visible { background: var(--ink-200); }
.nvfl .nvlogo { width: 56px; height: 36px; font-size: 10px; }
.nvfl__txt { min-width: 0; display: grid; }
.nvfl__txt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvfl__txt b .nvq { height: 17px; padding: 0 5px; font-size: 10px; margin-left: 4px; }
.nvfl__txt small { color: var(--fg-045); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvfl__barre { position: absolute; left: 82px; right: 14px; bottom: 8px; height: 2px; background: rgba(255, 255, 255, .08); }
.nvfl__barre::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--accent); }
.nvsect button { margin-left: auto; background: none; border: 0; color: var(--accent-light) !important; }
.nvcompteur { margin-left: auto; color: var(--fg-045); }
.nvtuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.nvtuiles.petites { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.nvtuile { border: 0; text-align: left; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  background: hsl(var(--h) 34% 12%); transition: background .15s, transform .15s; }
.nvtuile:hover, .nvtuile:focus-visible { background: hsl(var(--h) 40% 16%); transform: translateY(-2px); }
.nvtuile .nvlogo { width: 84px; height: 54px; }
.nvtuile .nvlogo.img { background: rgba(0, 0, 0, .3); }
.nvtuile b { font-size: 16px; line-height: 21px; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nvtuile small { color: var(--fg-045); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvtuile small span, .nvrang__suite small span { color: var(--accent-light); }

/* ── Chaînes ── */
.nvchaines { display: grid; grid-template-columns: 210px minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.nvpays { position: sticky; top: 100px; max-height: calc(100vh - 124px); overflow-y: auto; background: var(--ink-100); border-radius: 16px; padding: 18px 10px; display: flex; flex-direction: column; gap: 2px; }
.nvpays h2 { margin: 0 0 8px 12px; font-size: 12px; font-weight: 400; color: var(--fg-045); }
.nvpays .nvcat + h2 { margin-top: 18px; }
.nvcat { flex: none; display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 8px; border: 0; background: none; color: var(--fg-070); text-align: left; font-weight: 700; font-stretch: 112%; letter-spacing: .02em; }
.nvcat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nvcat:hover { background: var(--ink-200); color: var(--fg-100); }
.nvcat[aria-pressed="true"] { background: var(--accent); color: #fff; }
.nvcat.lien { color: var(--accent-light); font-weight: 500; font-stretch: 100%; letter-spacing: 0; margin-top: 12px; }
.nvtitre { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 14px; }
.nvtitre:disabled { cursor: default; }
.nvtitre svg { width: .42em; height: .42em; color: var(--accent-light); }
.nvpastilles { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 18px 0 6px; }
.nvpastilles button { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ink-100); color: var(--fg-070); }
.nvpastilles button:hover { background: var(--ink-200); }
.nvpastilles button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.nvrangs { margin-top: 10px; }
.nvrang { display: grid; grid-template-columns: 80px minmax(0, 1fr) 160px 40px; gap: 18px; align-items: center; min-height: 92px; padding: 14px 12px; margin: 0 -12px; border-radius: 14px; cursor: pointer; }
.nvrang + .nvrang { box-shadow: 0 -1px 0 var(--line-soft); }
.nvrang:hover { background: #101216; }
.nvrang[aria-selected="true"] { background: var(--accent-soft); box-shadow: none; }
.nvrang[aria-selected="true"] + .nvrang { box-shadow: none; }
.nvrang .nvlogo { width: 80px; height: 52px; }
.nvrang__prog { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nvrang__prog small { display: flex; gap: 8px; align-items: center; color: var(--fg-045); font-size: 12px; }
.nvrang__prog small span:first-child { color: var(--fg-070); font-weight: 500; }
.nvrang__prog b { font-size: 16px; line-height: 21px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nvrang__suite { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: var(--fg-070); }
.nvrang__suite small { color: var(--fg-045); font-size: 12px; }
.nvrang__suite > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvlire { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #fff !important; opacity: 0; transition: opacity .15s; }
.nvrang:hover .nvlire, .nvrang:focus-within .nvlire, .nvrang[aria-selected="true"] .nvlire { opacity: 1; }
.nvfiche { position: sticky; top: 100px; border-radius: 14px; overflow: hidden; background: hsl(var(--h) 34% 11%); }
.nvfiche__ecran { aspect-ratio: 16 / 9; display: grid; place-items: center; background: hsl(var(--h) 30% 8%); position: relative; }
.nvfiche__ecran .nvlogo { width: 180px; height: 110px; }
.nvlive { position: absolute; left: 12px; top: 12px; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; line-height: 22px; }
.nvfiche__corps { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.nvfiche h2 { margin: 0; font-size: 24px; line-height: 28px; font-stretch: 112%; letter-spacing: -0.02em; }
.nvfiche p { margin: -6px 0 0; color: var(--fg-045); font-size: 13px; }
.nvfiche h3 { margin: 6px 0 0; font-size: 15px; }
.nvactions { display: flex; flex-wrap: wrap; gap: 8px; }
.nvactions .nvprim { flex: 1; }
.nvghost[aria-pressed="true"] { color: var(--accent-light); }
.nvepg { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); color: var(--fg-070); }
.nvepg.on { border-top: 0; color: var(--fg-100); }
.nvepg.on time { color: var(--accent-light); }
.nvepg b { font-weight: 500; }
.nvindex { position: fixed; inset: 0; z-index: 15; background: var(--ink-000); overflow-y: auto; padding: 32px 48px 64px; }
.nvindex__haut { display: flex; justify-content: space-between; align-items: center; color: var(--accent-light); margin-bottom: 28px; }
.nvindex__liste { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.nvindex__liste button { border: 0; background: none; padding: 0; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.12; font-weight: 700; font-stretch: 118%; letter-spacing: -0.035em; color: var(--fg-070) !important; }
.nvindex__liste button:hover { color: var(--fg-100) !important; }
.nvindex__liste button[aria-pressed="true"] { color: var(--accent-light) !important; }

/* ── Films ── */
.nfgrille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; margin-top: 16px; }
.nvliste .nvsect { margin: 28px 0 0; }
.nfrangee { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 16px; }
.nfposter { border: 0; background: none; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 6px; min-width: 0; border-radius: 12px; }
.nfaffiche { aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; position: relative; display: grid; place-items: end start; padding: 12px;
  background: hsl(var(--h) 38% 16%); }
.nfaffiche img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nfaffiche b { position: relative; font-weight: 700; font-stretch: 80%; font-size: 18px; line-height: 19px; text-transform: uppercase; color: hsl(var(--h) 90% 92%); }
.nfaffiche i { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .55); }
.nfaffiche i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--accent-bar); }
.nfposter[aria-selected="true"] .nfaffiche { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.nfposter:hover .nfaffiche { filter: brightness(1.12); }
.nfposter .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nfposter .m { color: var(--fg-045); font-size: 12px; margin-top: -4px; }
.nffiche__haut { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: end; padding: 20px 20px 0; }
.nffiche__haut h2 { margin: 0 0 4px; }
.nffiche__haut p { margin: 0; color: var(--fg-045); font-size: 13px; }
/* ── Replay ── */
.nrreplay { grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1.2fr); }
.nrchaine { grid-template-columns: 80px minmax(0, 1fr) !important; min-height: 76px; }
.nremissions { position: sticky; top: 100px; max-height: calc(100vh - 124px); overflow-y: auto; background: var(--ink-100); border-radius: 14px; padding: 20px; }
.nremissions h2 { margin: 0; font-size: 24px; font-stretch: 112%; letter-spacing: -0.02em; }
.nremi { width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 8px; border: 0; border-top: 1px solid var(--line-soft); background: none; text-align: left; border-radius: 10px; }
.nremi:hover { background: var(--ink-200); }
.nremi time { color: var(--fg-070); }
.nremi b { display: block; font-weight: 600; }
.nremi small { color: var(--fg-045); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nvpill.rev { background: var(--accent-soft); color: var(--accent-light); }

/* ── Compte ── */
.nvpanneaux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.nvpanneau { background: var(--ink-100); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.nvpanneau h2 { margin: 0; font-size: 16px; }
.nvpanneau .nvnote { margin: -8px 0 0; }
.nvfiche2 { margin: 0; display: grid; }
.nvfiche2 div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--ink-200); }
.nvfiche2 div:first-child { border-top: 0; padding-top: 0; }
.nvfiche2 dt { color: var(--fg-045); }
.nvfiche2 dd { margin: 0; text-align: right; }
.nvfiche2 small { display: block; color: var(--fg-045); font-size: 12px; }
.nvpill.ok { background: #13261f; color: #6fd3a0; }
.nvform { display: flex; flex-direction: column; gap: 14px; }
.nvform h3 { margin: 4px 0 -4px; font-size: 13px; font-weight: 600; color: var(--fg-070); }
.nvchamp { display: grid; gap: 6px; }
.nvchamp span { font-size: 12px; color: var(--fg-070); }
.nvchamp input { height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink-200); color: var(--fg-100); font: inherit; }
.nvchamp input:focus { outline: none; border-color: var(--accent-light); }
.nvchamp input:disabled { color: var(--fg-045); }
.nverreur { margin: 0; color: #ff8a80; font-size: 13px; }
.nvok { margin: 0; color: #7ee2a8; font-size: 13px; }
.nvform .nvpastilles { padding: 0; flex-wrap: wrap; overflow: visible; }
.nvform .nvpastilles button:not([aria-pressed="true"]) { background: var(--ink-200); }
a.nvghost { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.nvsource { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 0; background: var(--ink-200); text-align: left; }
.nvsource[aria-pressed="true"] { background: var(--accent-soft); }
.nvpoint { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink-400); flex: none; display: grid; place-items: center; }
.nvsource[aria-pressed="true"] .nvpoint { border-color: var(--accent-light); }
.nvsource[aria-pressed="true"] .nvpoint::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light); }
.nvsource span:last-child { display: grid; }
.nvsource small { color: var(--fg-045); font-size: 12px; }
.nvinter { display: flex; align-items: flex-start; gap: 12px; border: 0; background: none; padding: 0; text-align: left; }
.nvinter span:last-child { display: grid; }
.nvinter small { color: var(--fg-045); font-size: 12px; margin-top: 2px; }
.nvsw { width: 34px; height: 20px; border-radius: 999px; background: var(--ink-300); position: relative; flex: none; margin-top: 1px; transition: background .16s; }
.nvsw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg-070); transition: transform .16s; }
.nvinter[aria-pressed="true"] .nvsw { background: var(--accent); }
.nvinter[aria-pressed="true"] .nvsw::after { transform: translateX(14px); background: #fff; }
.nvghost.danger { color: #ef7b8f !important; border-color: #4a2a31; }

/* ── Tablette et téléphone ── */
@media (max-width: 1180px) {
  .nvchaines { grid-template-columns: 180px minmax(0, 1fr) 300px; gap: 24px; }
  .nvrang { grid-template-columns: 72px minmax(0, 1fr) 40px; }
  .nvrang__suite { display: none; }
  .nvsearch { width: 180px; }
}
@media (max-width: 900px) {
  .nvtop { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .nvnav { order: 3; width: 100%; overflow-x: auto; }
  .nvsearch { width: auto; flex: 1; margin-left: 0; }
  .nvcompte span { display: none; }
  .nvmain { padding: 20px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px)); }
  .nvhead h1 { font-size: 40px; }
  .nvreprise, .nvgrand { grid-template-columns: minmax(0, 1fr); }
  .nvgrand__logo { min-height: 140px; }
  .nvtuiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nvtuiles.petites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nvchaines { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nvpays { position: static; flex-direction: row; overflow-x: auto; max-height: none; padding: 0; background: none; gap: 6px; }
  .nvpays h2 { display: none; }
  .nvpays .nvcat { background: var(--ink-100); border-radius: 999px; }
  .nvfiche { display: none; }
  .nvrang { grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 12px; }
  .nvrang .nvlogo { width: 64px; height: 42px; }
  .nvlire { opacity: 1; }
  .nvindex { padding: 20px 16px 64px; }
  .nvpanneaux { grid-template-columns: minmax(0, 1fr); }
  .nrreplay { grid-template-columns: minmax(0, 1fr); }
  .nremissions { position: static; max-height: none; }
  .nfgrille, .nfrangee { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nffiche { display: none; }
}
/* ── Lecture ── */
.nvptop, .nvseek, .nvattente, .nvsaut { display: none; }
body.nouv .nvptop { display: flex; align-items: center; }
body.nouv.fs:not(.nvcine) .nvptop { display: none; }
.nvptop__titre { display: none; }
.nvptop__retour { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 10px; border-radius: 999px; border: 0; background: var(--ink-100); color: var(--fg-100); font: 600 14px var(--font); cursor: pointer; }
.nvptop__retour:hover { background: var(--ink-200); }
.nvptop__retour svg { width: 18px; height: 18px; }
body.nouv .stage { padding: 20px 28px 24px; gap: 20px; background: var(--ink-000); }
body.nouv .stage__main { gap: 14px; justify-content: flex-start; }
body.nouv .stage__main video { max-height: calc(100vh - 250px); }
body.nouv .screen { border: 0; border-radius: 16px; }
body.nouv .playing { gap: 6px; padding: 0 4px; }
body.nouv .playing .name { font-size: clamp(24px, 2.8vw, 36px); font-weight: 700; }
body.nouv .playing .prog { color: var(--fg-070); }
body.nouv .controls { border: 0; background: var(--ink-100); padding: 8px 14px; }
body.nouv .zap { border: 0; border-radius: 14px; background: var(--ink-100); }
body.nouv .zap__titre { font-size: 18px; font-weight: 700; font-stretch: 112%; }

/* Replay et films : plein cadre, titre et commandes posés sur l'image. */
body.nouv.nvcine #stage { padding: 0; gap: 0; background: #000; }
body.nouv.nvcine:not(.nvdirect) #stage .zap, body.nouv.nvcine:not(.nvdirect) #zapPrev, body.nouv.nvcine:not(.nvdirect) #zapNext,
body.nouv.nvcine:not(.nvdirect) #zapToggle, body.nouv.nvcine #ctlProg, body.nouv.nvdirect .nvsaut { display: none !important; }
body.nouv.nvcine #stage .stage__main { position: relative; height: 100vh; gap: 0; }
body.nouv.nvcine #stage .screen { position: absolute; inset: 0; border: 0; border-radius: 0; background: #000; }
body.nouv.nvcine #stage video { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; }
body.nouv.nvcine #stage .debit { z-index: 5; top: 28px; right: 44px; bottom: auto; }
body.nouv.nvcine .nvptop { position: absolute; z-index: 3; left: 0; right: 0; top: 0; flex-direction: column; align-items: flex-start; gap: 26px;
  padding: 28px 44px 110px; background: linear-gradient(to bottom, rgba(0, 0, 0, .85), rgba(0, 0, 0, .5) 55%, transparent); pointer-events: none; }
body.nouv.nvcine .nvptop > * { pointer-events: auto; }
body.nouv.nvcine .nvptop__retour { background: rgba(255, 255, 255, .1); backdrop-filter: blur(12px); }
body.nouv.nvcine .nvptop__retour:hover { background: rgba(255, 255, 255, .18); }
body.nouv.nvcine .nvptop__titre { display: grid; gap: 8px; max-width: 780px; }
.nvptop__kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light); }
.nvptop__titre h1 { margin: 0; font-size: clamp(32px, 4vw, 56px); font-weight: 700; font-stretch: 112%; letter-spacing: -0.025em; line-height: 1.02; color: #fff; text-wrap: balance; }
.nvptop__meta { margin: 2px 0 0; font-size: 15px; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; }
.nvptop__desc { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .6); max-width: 620px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nvptop__desc:empty, .nvptop__meta:empty, .nvptop__etat:empty { display: none; }
.nvptop__etat { margin: 4px 0 0; font-size: 14px; color: #ffb4a8; }
body.nouv.nvcine #stage .playing { display: flex; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; top: auto; flex-direction: column; gap: 10px;
  padding: 110px 44px 26px; background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .55) 55%, transparent); opacity: 1; transform: none; }
body.nouv.nvcine #stage .playing .live, body.nouv.nvcine #stage .playing .name, body.nouv.nvcine #stage .playing .prog { display: none; }
body.nouv.nvcine #stage .controls { display: flex; height: auto; margin: 0; padding: 0; gap: 4px; background: none; border: 0; }
body.nouv.nvcine #stage .ctl { color: #fff; padding: 9px; }
body.nouv.nvcine #stage .ctl:hover { background: rgba(255, 255, 255, .12); }
body.nouv.nvcine #stage .ctl svg { width: 24px; height: 24px; }
body.nouv.nvcine #playPause { width: 52px; height: 52px; background: #fff; color: #000 !important; margin-right: 8px; }
body.nouv.nvcine #playPause:hover { background: rgba(255, 255, 255, .85); }
body.nouv.nvcine .nvsaut { display: inline-grid; }
/* Direct : la barre suit le programme, sans curseur ; la liste de zapping se pose sur l'image, à droite. */
body.nouv.nvdirect .nvseek__piste { cursor: default; pointer-events: none; }
body.nouv.nvdirect .nvseek__fait { background: var(--accent-light); }
body.nouv.nvdirect .nvseek__t:first-child { text-align: left; }
.nvdirect__pastille { display: inline-block; margin-right: 8px; padding: 3px 9px; border-radius: 6px; background: #e5484d; color: #fff; font-size: 11px; letter-spacing: .12em; vertical-align: 1px; }
body.nouv.nvdirect #stage .zap { position: absolute; z-index: 4; right: 28px; top: 96px; bottom: 150px; width: 340px;
  background: rgba(14, 15, 18, .78); backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .06); border-radius: 16px; transition: opacity .35s ease; }
body.nouv.nvdirect.sans-zap #stage .zap, body.nouv.nvdirect.zap-vide #stage .zap { display: none; }
body.nouv.nvdirect.nv-calme #stage .zap { opacity: 0; pointer-events: none; }
body.nouv.nvdirect #stage .zap__ligne { background: none; }
body.nouv.nvdirect #stage .zap__ligne:hover { background: rgba(255, 255, 255, .07); }
body.nouv.nvdirect #stage .zap__ligne[aria-current="true"] { background: rgba(80, 140, 255, .2); }
body.nouv.nvdirect #zapPrev { margin-left: 10px; }
@media (max-width: 1150px) { body.nouv.nvdirect #stage .zap { width: 280px; } }
body.nouv.nvcine .nvsaut svg { width: 28px !important; height: 28px !important; }
body.nouv.nvcine #mute { margin-left: 10px; }
body.nouv.nvcine .nvseek { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; gap: 14px; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; }
.nvseek__t:last-child { text-align: right; }
.nvseek__piste { position: relative; height: 20px; cursor: pointer; touch-action: none; }
.nvseek__piste::before, .nvseek__charge, .nvseek__fait { content: ""; position: absolute; left: 0; top: 8px; height: 4px; border-radius: 4px; transition: height .15s, top .15s; }
.nvseek__piste::before { right: 0; background: rgba(255, 255, 255, .2); }
.nvseek__charge { width: var(--c, 0%); background: rgba(255, 255, 255, .32); }
.nvseek__fait { width: var(--p, 0%); background: var(--accent); }
.nvseek__bouton { position: absolute; top: 3px; left: var(--p, 0%); width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translateX(-50%) scale(0); transition: transform .15s; }
.nvseek__piste:hover::before, .nvseek__piste:hover .nvseek__charge, .nvseek__piste:hover .nvseek__fait,
.nvseek__piste.glisse::before, .nvseek__piste.glisse .nvseek__charge, .nvseek__piste.glisse .nvseek__fait { top: 7px; height: 6px; }
.nvseek__piste:hover .nvseek__bouton, .nvseek__piste.glisse .nvseek__bouton, .nvseek__piste:focus-visible .nvseek__bouton { transform: translateX(-50%) scale(1); }
/* Attente : le fournisseur prépare l'émission. */
body.nouv.nvcine.nv-attente .nvattente { display: grid; position: absolute; z-index: 2; inset: 0; place-content: center; justify-items: center; gap: 18px; pointer-events: none; }
.nvattente__anneau { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--accent-light); animation: nvtourne 0.9s linear infinite; }
.nvattente p { margin: 0; max-width: 360px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .7); }
@keyframes nvtourne { to { transform: rotate(360deg); } }
/* Sans geste depuis trois secondes, tout s'efface et le pointeur avec. */
body.nouv.nvcine .nvptop, body.nouv.nvcine #stage .playing { transition: opacity .35s ease; }
body.nouv.nvcine.nv-calme .nvptop, body.nouv.nvcine.nv-calme #stage .playing { opacity: 0; pointer-events: none; }
body.nouv.nvcine.nv-calme .nvptop > * { pointer-events: none; }
body.nouv.nvcine.nv-calme #stage { cursor: none; }
@media (max-width: 900px) {
  body.nouv.nvcine .nvptop { padding: 16px 18px 70px; gap: 14px; }
  body.nouv.nvcine #stage .playing { padding: 70px 18px 16px; }
  .nvptop__desc { display: none; }
  body.nouv.nvcine #volume { display: none; }
  body.nouv.nvdirect #stage .zap { display: none; }
}

/* ── Téléviseur (body.nvtv) ──
   La page est rendue à 1152 px de large puis ramenée à l'écran (zoom posé par
   nouvelle.js) ; --nvh est la hauteur visible dans cette échelle. Le focus de la
   télécommande doit se voir de loin : fond clair, contour blanc. */
body.nvtv #nv { inset: auto; top: 0; left: 0; width: 1152px; height: var(--nvh, 648px); scroll-padding: 96px 0 32px; }
body.nvtv #nv button, body.nvtv #nv a { cursor: none; }
body.nvtv .nvsearch { display: none; }
body.nvtv .nvcompte { margin-left: auto; }
body.nvtv .nvtop { height: 68px; }
body.nvtv .nvnav button { height: 42px; font-size: 17px; padding: 0 18px; }
body.nvtv .nvmain { padding: 22px 36px 40px; }
body.nvtv .nvhead h1 { font-size: 48px; line-height: 52px; }
body.nvtv #nv :focus { outline: 3px solid #fff; outline-offset: 3px; border-radius: 12px; }
body.nvtv #nv :focus:not(:focus-visible) { outline: 3px solid #fff; }
body.nvtv #nv .nvnav button:focus { background: #fff; color: #08090b; }
body.nvtv .nvcat:focus, body.nvtv .nvpastilles button:focus, body.nvtv .nvghost:focus, body.nvtv .nvprim:focus { background: #fff !important; color: #08090b !important; }
body.nvtv .nvrang:focus, body.nvtv .nrchaine:focus { background: var(--accent-soft); outline-offset: -3px; }
body.nvtv .nvfl:focus, body.nvtv .nvtuile:focus, body.nvtv .nremi:focus { background: var(--ink-300); }
body.nvtv #nv .nfposter:focus { outline: 0; }
body.nvtv .nfposter:focus .nfaffiche { outline: 4px solid #fff; outline-offset: 3px; }
/* Colonnes à la hauteur de l'écran : chacune défile pour elle-même. */
body.nvtv .nvpays { top: 84px; max-height: calc(var(--nvh, 648px) - 104px); }
body.nvtv .nvfiche, body.nvtv .nffiche, body.nvtv .nremissions { position: sticky; top: 84px; max-height: calc(var(--nvh, 648px) - 104px); overflow-y: auto; }
body.nvtv .nvchaines { grid-template-columns: 200px minmax(0, 1fr) 300px; gap: 24px; }
body.nvtv .nvrang { grid-template-columns: 72px minmax(0, 1fr) 40px; min-height: 76px; }
body.nvtv .nvrang__suite { display: none; }
body.nvtv .nvrang b { font-size: 18px; }
/* Une ligne qui change (focus, choix) ne fait repeindre qu'elle ; les lignes hors
   de l'écran ne sont ni mises en page ni peintes. Sur un téléviseur, c'est ce qui
   rend la télécommande vive dans une liste de plusieurs centaines de chaînes. */
body.nvtv .nvrang, body.nvtv .nvfl, body.nvtv .nremi, body.nvtv .nrchaine { contain: layout paint; }
body.nvtv .nvrang { content-visibility: auto; contain-intrinsic-size: auto 76px; }
body.nvtv .nvcat { height: 44px; font-size: 16px; }
body.nvtv .nvpastilles button { height: 42px; font-size: 16px; }
body.nvtv .nvfl__txt b { font-size: 17px; }
body.nvtv .nvfl__txt small { font-size: 14px; }

@media (prefers-reduced-motion: reduce) { #nv * { transition: none !important; } }
