/* Stream : règles visuelles dans DIRECTION_ARTISTIQUE.md, ergonomie dans RECHERCHE_UX.md */
:root {
  --bg: #141414;
  --modal: #181818;
  --s1: #202020;
  --s2: #2a2a2a;
  --s3: #3a3a3a;
  --text: #fff;
  --text-2: #e8e8e8;
  --muted: #b3b3b3;     /* 9,3:1 sur le fond */
  --dim: #8c8c8c;       /* 5,3:1 */
  --red: #e3101c;
  --red-2: #f6121d;
  --green: #46d369;
  --glass: rgba(22, 22, 22, .72);
  --glass-line: rgba(255, 255, 255, .1);
  /* arrondis concentriques : intérieur = extérieur - marge */
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 12px;
  --r-md: 14px;
  --r-lg: 20px;
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 4%;
  --per: 6;
  --gap: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.45 "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
#page { overflow-x: clip; position: relative; z-index: 1; }

/* fond ambiant : deux images de la page, très floues et très atténuées, sous un voile sombre (même effet que la fiche) */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient img {
  position: absolute; width: 38vw; height: 38vh; object-fit: cover; opacity: 0;
  transform: scale(2.4); filter: blur(46px) saturate(1.5); transition: opacity 1.2s var(--ease);
}
.ambient img.a { left: 2vw; top: 42vh; transform-origin: left top; }
.ambient img.b { right: 2vw; top: 30vh; transform-origin: right top; }
.ambient img.on { opacity: .26; }
.ambient::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,.15) 0%, rgba(20,20,20,.45) 100%); }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.grow { flex: 1; }
.ic { width: 1.2em; height: 1.2em; flex: none; display: block; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: var(--r-xs); }
.tile:focus-visible { outline: none; }
.count, .n { font-variant-numeric: tabular-nums; }

/* transitions de page (API View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--ease); }

/* anneau de chargement */
.ring { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--red); border-radius: 50%; animation: rot .8s linear infinite; vertical-align: -2px; }
.ring.big { width: 44px; height: 44px; border-width: 3px; }
@keyframes rot { to { transform: rotate(360deg); } }

/* surfaces flottantes : verre dépoli, uniquement pour ce qui flotte au-dessus du contenu */
.glass { background: var(--glass); border: 1px solid var(--glass-line); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .glass, .menu, .list-pop, .topnav.solid, .m-close {
    -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  }
}

/* ------------------------------------------------------------ champs et boutons */
input, select {
  font: inherit; color: var(--text); background: var(--s2); border: 1px solid transparent; border-radius: var(--r-sm);
  padding: 10px 12px; outline: none; min-width: 0; font-size: 15px; transition: border-color .2s, background .2s;
}
select option { background: var(--s1); }
input:focus, select:focus { border-color: rgba(255,255,255,.4); background: #323232; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.hint { margin: -4px 0 2px; font-size: 13px; color: var(--dim); }
.hint a { color: var(--muted); }
.error { color: #f0a050; margin: 0; font-size: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: var(--r); cursor: pointer; white-space: nowrap;
  background: rgba(109,109,110,.55); color: #fff; padding: 8px 16px; font-size: 15px; font-weight: 600; min-height: 38px;
  transition: background .2s, transform .25s var(--spring);
}
.btn:hover { background: rgba(109,109,110,.35); }
.btn:active, .hbtn:active, .circle:active, .btn-red:active { transform: scale(.96); }
.btn .ic { width: 18px; height: 18px; }
.btn.white { background: #fff; color: #000; }
.btn.white:hover { background: rgba(255,255,255,.8); }
.btn.small { font-size: 13.5px; padding: 6px 13px; min-height: 32px; border-radius: var(--r-sm); }
.btn.plain { background: none; color: var(--muted); font-weight: 500; padding-left: 6px; padding-right: 6px; }
.btn.plain:hover { color: #fff; background: rgba(255,255,255,.06); }
.btn-red { background: var(--red); color: #fff; border: 0; border-radius: var(--r); padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 10px; transition: background .2s, transform .25s var(--spring); }
.btn-red:hover { background: var(--red-2); }
.btn-red:disabled { opacity: .7; cursor: progress; }

/* boutons de la bannière et de la fiche */
.hbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 0; border-radius: var(--r); min-height: 46px;
  padding: 0 26px 0 20px; font-size: 17px; font-weight: 700; cursor: pointer; transition: background .2s, transform .25s var(--spring);
}
.hbtn .ic { width: 24px; height: 24px; }
.hbtn.play { background: #fff; color: #000; }
.hbtn.play:hover { background: rgba(255,255,255,.82); }
.hbtn.grey { background: rgba(109,109,110,.55); color: #fff; }
.hbtn.grey:hover { background: rgba(109,109,110,.35); }
.hbtn.grey .ic { width: 21px; height: 21px; }
.hbtn.on .ic { color: var(--green); }

/* cercles (actions des vignettes) */
.circle {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); background: rgba(30,30,30,.55);
  display: inline-grid; place-items: center; cursor: pointer; padding: 0; color: #fff; flex: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .2s, transform .25s var(--spring);
}
.circle:hover { border-color: #fff; transform: scale(1.08); }
.circle .ic { width: 16px; height: 16px; }
.circle.white { background: #fff; border-color: #fff; color: #000; }

/* ------------------------------------------------------------ logo */
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 25px; letter-spacing: -.04em; color: #fff; text-decoration: none; flex: none; }
.wordmark i { width: 8px; height: 24px; background: var(--red); display: block; border-radius: 3px; }

/* ------------------------------------------------------------ connexion */
.setup { min-height: 100vh; background: #000; display: flex; flex-direction: column; align-items: center; padding: 0 16px 60px; }
.setup-top { width: 100%; padding: 22px 3%; }
.setup-card { width: min(450px, 100%); background: #0e0e0e; border: 1px solid #1f1f1f; border-radius: var(--r-lg); padding: 46px 52px 52px; display: grid; gap: 12px; margin-top: 20px; }
.setup-card h1 { margin: 0 0 4px; font-size: 32px; letter-spacing: -.02em; }
.setup-card .lead { margin: 0 0 10px; color: var(--muted); }
.setup-card input { background: #242424; padding: 14px 16px; border-radius: var(--r); }

/* ------------------------------------------------------------ barre du haut */
.topnav {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 68px; display: flex; align-items: center; gap: 34px;
  padding: 0 var(--gutter); background-color: transparent; transition: background-color .4s;
}
/* en haut de page : dégradé sombre qui déborde sous la barre et s'efface sans ligne de coupure */
.topnav::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.7) 35%, rgba(0,0,0,.35) 65%, rgba(0,0,0,.1) 85%, transparent 100%);
  transition: opacity .4s;
}
/* dès qu'on défile : voile plus léger, sans bordure */
.topnav.solid { background-color: rgba(20,20,20,.9); }
.topnav.solid::before { opacity: 0; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) { .topnav.solid { background-color: rgba(20,20,20,.55); } }
.links { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav-link { background: none; border: 0; color: var(--text-2); font-size: 14.5px; padding: 6px 12px; border-radius: var(--r-sm); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .2s, color .2s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link.active { color: #fff; font-weight: 700; background: rgba(255,255,255,.12); cursor: default; }
.nav-link.drop, .menu button.drop { color: #fff; box-shadow: inset 0 0 0 2px var(--red); }
.menu-wrap { position: relative; }
.menu {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 250px; max-height: 70vh; overflow-y: auto; display: none;
  background: rgba(18,18,18,.96); border: 1px solid var(--glass-line); border-radius: var(--r-md); padding: 6px; z-index: 50;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
/* menus presque opaques : le flou ne s'applique pas partout (dans la fiche notamment), le texte du dessous ne doit jamais transparaître */
.menu { background: rgba(22,22,22,.98); }
.menu.open { display: block; animation: drop .22s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.menu.right { left: auto; right: 0; }
.menu h6 { margin: 10px 12px 4px; font-size: 12px; font-weight: 500; color: var(--dim); }
.menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: var(--r-sm);
  padding: 8px 12px; cursor: pointer; font-size: 14px; color: var(--text-2); min-height: 34px;
}
.menu button:hover { background: rgba(255,255,255,.08); color: #fff; }
.menu button.active { color: #fff; font-weight: 700; background: rgba(255,255,255,.06); }
.menu button .n { margin-left: auto; color: var(--dim); font-size: 12.5px; }
.menu button .x { color: var(--dim); padding: 0 6px; border-radius: var(--r-xs); }
.menu button .x:hover { color: #fff; background: rgba(255,255,255,.12); }
.menu hr { border: 0; border-top: 1px solid var(--glass-line); margin: 6px 4px; }
.menu .small-only { display: none; }
.menu-user { padding: 8px 12px 10px; font-size: 13px; color: var(--dim); }
.menu-user b { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.only-small { display: none; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.status { font-size: 13px; color: var(--muted); white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.nav-btn { display: inline-grid; place-items: center; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; border-radius: var(--r-sm); }
.nav-btn .ic { width: 22px; height: 22px; }
.search-box {
  display: flex; align-items: center; gap: 8px; height: 38px; width: clamp(200px, 20vw, 300px); padding: 0 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r);
  transition: background .2s, border-color .2s;
}
.search-box:focus-within { background: rgba(0,0,0,.6); border-color: rgba(255,255,255,.75); }
/* le cadre arrondi signale déjà le focus : pas de contour carré en plus sur le champ */
.search-box input:focus-visible, .tag-editor input:focus-visible { outline: none; }
.search-box .ic { width: 18px; height: 18px; color: var(--muted); }
.search-box input { border: 0; background: transparent; padding: 0; height: 100%; flex: 1; font-size: 14px; border-radius: 0; }
.search-box input::placeholder { color: var(--dim); }
.search-box input:focus { background: transparent; border: 0; }
.search-toggle { display: none; }
.profile { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 0; }
.avatar { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; font-weight: 700; font-size: 15px; background: #2a7ae2; color: #fff; }
.caret { width: 0; height: 0; border: 5px solid transparent; border-top-color: #fff; border-bottom: 0; transition: transform .25s var(--ease); }
.profile[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* ------------------------------------------------------------ bannière */
.hero { position: relative; height: 56.25vw; max-height: 80vh; min-height: 440px; overflow: hidden; margin-bottom: -6vw; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-bg img.poster-bg { filter: blur(40px) brightness(.5); transform: scale(1.25); }
.hero-poster { position: absolute; right: 9%; top: 50%; transform: translateY(-56%); height: 62%; border-radius: var(--r-md); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.hero-shade { position: absolute; inset: 0;
  background: linear-gradient(77deg, rgba(0,0,0,.62) 0%, transparent 85%),
              linear-gradient(180deg, transparent 45%, rgba(20,20,20,.3) 62%, rgba(20,20,20,.75) 82%, var(--bg) 100%); }
.hero-content { position: absolute; left: var(--gutter); bottom: 34%; width: 40%; display: grid; gap: 14px; }
.hero-kind { font-size: 13px; letter-spacing: .3em; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.hero-title { margin: 0; font-size: clamp(34px, 4.8vw, 76px); line-height: .98; font-weight: 700; letter-spacing: -.035em; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero-overview { margin: 0; font-size: clamp(14.5px, 1.25vw, 19px); line-height: 1.4; text-shadow: 0 1px 8px rgba(0,0,0,.5);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.hero-resume { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text-2); }
.hero-resume .progress { width: 160px; margin: 0; flex: none; }
.meta-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.meta-line .rate { color: var(--green); font-weight: 600; }
.meta-line .q { border: 1px solid rgba(255,255,255,.4); padding: 0 6px; font-size: 11.5px; line-height: 18px; font-weight: 700; border-radius: var(--r-xs); }

/* ------------------------------------------------------------ rangées */
.rows { position: relative; z-index: 2; padding-bottom: 50px; }
.rows.no-hero { padding-top: 100px; }
.row-block { margin: 0 0 3vw; position: relative; }
.row-head { display: flex; align-items: baseline; gap: 14px; padding: 0 var(--gutter); margin-bottom: 10px; }
.row-head h2 { margin: 0; font-size: clamp(17px, 1.45vw, 23px); font-weight: 700; letter-spacing: -.01em; color: var(--text-2); }
.row-head h2 a { text-decoration: none; }
.row-head h2 a:hover { color: #fff; }
.see-all { background: none; border: 0; color: var(--dim); font-size: 13.5px; cursor: pointer; padding: 2px 6px; border-radius: var(--r-xs); }
.see-all:hover { color: #fff; background: rgba(255,255,255,.08); }
.slider { position: relative; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 6px var(--gutter) 10px; scrollbar-width: none; scroll-behavior: smooth;
}
.track::-webkit-scrollbar { display: none; }
/* flèches latérales sur la hauteur des images, toujours visibles */
.arrow {
  --tile-w: calc((100vw - 8% - (var(--per) - 1) * var(--gap)) / var(--per));
  position: absolute; top: 6px; height: calc(var(--tile-w) * 9 / 16); width: calc(var(--gutter) - 6px); min-width: 30px; z-index: 5;
  border: 0; background: rgba(20,20,20,.5); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: background .2s;
}
.posters .arrow { height: calc(var(--tile-w) * 3 / 2); }
.arrow.prev { left: 0; border-radius: 0 var(--r) var(--r) 0; }
.arrow.next { right: 0; border-radius: var(--r) 0 0 var(--r); }
.arrow .ic { width: 28px; height: 28px; transition: transform .25s var(--spring); }
.arrow:hover { background: rgba(20,20,20,.78); }
.arrow:hover .ic { transform: scale(1.25); }
.arrow:disabled { visibility: hidden; }
.row-block.no-scroll .arrow { display: none; }
.empty-row { margin: 0 var(--gutter); color: var(--dim); font-size: 14px; }
.home-foot { padding: 10px var(--gutter) 0; }

/* ------------------------------------------------------------ vignettes */
.tile { position: relative; cursor: pointer; scroll-snap-align: start; min-width: 0; }
.tile-img {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--s1);
  transition: transform .4s var(--spring), box-shadow .4s var(--ease);
}
.tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-img img.blur { filter: blur(16px) brightness(.55); transform: scale(1.2); }
.tile-img img.fg { right: auto; width: 37.5%; }
.tile:hover .tile-img { transform: translateY(-4px) scale(1.035); box-shadow: 0 14px 30px rgba(0,0,0,.55); }
.tile:focus-visible .tile-img { box-shadow: 0 0 0 2px #fff; }
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 12px; background: linear-gradient(160deg, #2c2c2c, #1d1d1d); }
.ph b { font-size: clamp(14px, 1.15vw, 18px); line-height: 1.1; font-weight: 700; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ph small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.ribbon { position: absolute; left: 8px; bottom: 8px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-xs); }
.tile-actions { position: absolute; inset: auto 8px 8px auto; display: flex; gap: 6px; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .3s var(--spring); }
/* survol, ou focus au clavier seulement (:focus-visible) : un clic souris ne les laisse plus affichés */
.tile:hover .tile-actions, .tile:focus-visible .tile-actions, .tile:has(:focus-visible) .tile-actions { opacity: 1; transform: none; }
.tile-actions .circle { width: 34px; height: 34px; }
.circle.on { border-color: #fff; }
@media (hover: none) { .tile-actions { opacity: 1; transform: none; } }
.progress { height: 4px; background: rgba(255,255,255,.18); margin: 6px 2px 0; border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--red); border-radius: 99px; }
.tile-body { padding: 8px 2px 0; min-width: 0; }
.tile-title { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sub { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; font-variant-numeric: tabular-nums; }
.tile-sub .hl { color: var(--muted); font-weight: 600; }
.tile.dragging { opacity: .35; }
.posters .tile-img { aspect-ratio: 2 / 3; }
.posters { --per: 8; }

/* ------------------------------------------------------------ pages de catégorie / recherche */
.page-head { display: flex; align-items: center; gap: 18px; padding: 100px var(--gutter) 22px; flex-wrap: wrap; }
.page-head.under-hero { padding-top: 0; }
.page-head h1 { margin: 0; font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; letter-spacing: -.03em; }
.page-head .count { color: var(--dim); font-size: 14px; }
.page-head .tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-head .tools.end { margin-left: auto; }
.dd { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22); color: #fff; padding: 6px 32px 6px 13px; font-size: 14px; font-weight: 600; border-radius: var(--r-sm); min-height: 34px;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(-45deg, transparent 50%, #fff 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.dd:hover, .dd:focus { background-color: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }
.dd.on { background-color: #fff; color: #000; border-color: #fff; background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(-45deg, transparent 50%, #000 50%); }
.grid { display: grid; grid-template-columns: repeat(var(--per), minmax(0, 1fr)); gap: 26px var(--gap); padding: 0 var(--gutter) 80px; }
.empty-state { padding: 40px var(--gutter); color: var(--muted); font-size: 16px; }
.empty-state .btn { margin-top: 14px; }
.loading { display: grid; place-items: center; min-height: 70vh; }

/* ------------------------------------------------------------ fiche détail (teinte ambiante tirée de l'image) */
.m-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.66); overflow-y: auto; padding: 32px 16px 60px; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; width: min(860px, 100%); margin: 0 auto; background: var(--modal); border-radius: var(--r-lg); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
/* animation seulement à l'ouverture, pas quand la fiche se met à jour (épisode coché, etc.) */
.m-wrap.opening { animation: fade .25s var(--ease); }
.m-wrap.opening .modal { animation: rise .35s var(--spring); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.m-ambient { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.m-ambient img { position: absolute; left: -10%; top: 20%; width: 120%; height: 100%; object-fit: cover; filter: blur(90px) saturate(1.5); opacity: .22; }
.m-close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--glass-line);
  background: rgba(20,20,20,.7); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .25s var(--spring); }
.m-close:hover { transform: scale(1.08); }
.m-close .ic { width: 19px; height: 19px; }
/* la bannière (et son menu « Plus ») passe au-dessus du corps de la fiche, sinon le texte recouvre le menu */
.m-hero { position: relative; aspect-ratio: 16 / 9; z-index: 2; }
.m-media { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--s1); }
.m-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.m-media > img.poster-bg { filter: blur(36px) brightness(.5); transform: scale(1.25); }
.m-media > img.hero-poster { inset: auto; width: auto; right: 6%; top: 42%; height: 70%; transform: translateY(-55%); border-radius: var(--r-md); }
.m-media .ph b { font-size: 40px; }
.m-shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--modal) 0%, rgba(24,24,24,.4) 35%, transparent 60%); }
.m-hero-content { position: absolute; left: 60px; right: 60px; bottom: 7%; display: grid; gap: 18px; z-index: 3; }
.m-hero-content h1 { margin: 0; font-size: clamp(30px, 3.8vw, 48px); line-height: 1; font-weight: 700; letter-spacing: -.035em; text-shadow: 0 2px 14px rgba(0,0,0,.4); max-width: 80%; }
.m-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.m-actions .hbtn { min-height: 44px; font-size: 16px; padding: 0 20px 0 16px; }
.m-actions .menu { top: calc(100% + 8px); left: 0; }
/* minmax(0, …) et min-width: 0 : un nom de fichier très long est coupé (« … ») au lieu d'élargir toute la fiche */
.m-body { position: relative; z-index: 1; padding: 28px 60px 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.m-body > *, .m-cols > *, .m-section, .folder, .file { min-width: 0; }
.m-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; }
.m-side { overflow-wrap: anywhere; }
.m-overview { margin: 14px 0 0; font-size: 15.5px; line-height: 1.6; }
.m-next { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.m-next b { color: #fff; }
.m-side { display: grid; gap: 9px; font-size: 14px; align-content: start; line-height: 1.45; }
.m-side .k { color: #7a7a7a; }
.m-side a { text-decoration: none; }
.m-side a:hover { text-decoration: underline; }
.m-section { background: rgba(255,255,255,.035); border-radius: var(--r-md); padding: 0 18px; }
.m-section + .m-section { margin-top: 10px; }
.m-section > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; padding: 16px 0; font-size: 18px; font-weight: 700; }
.m-section > summary::-webkit-details-marker { display: none; }
.m-section > summary::after { content: "+"; margin-left: auto; font-size: 24px; font-weight: 400; color: var(--muted); line-height: 1; transition: transform .3s var(--spring); }
.m-section[open] > summary::after { transform: rotate(45deg); }
.m-section[open] { padding-bottom: 14px; }
.m-section > summary .sum { font-size: 14px; font-weight: 400; color: var(--dim); }
.m-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 6px; }
.tag-editor { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--s2); padding: 6px; min-height: 44px; border-radius: var(--r-sm); }
.tag-editor input { border: 0; background: transparent; padding: 4px; flex: 1; min-width: 90px; font-size: 14px; }
.tag-editor input:focus { background: transparent; border: 0; }
.tag { font-size: 13px; padding: 4px 9px; background: var(--s3); color: #fff; border: 0; border-radius: var(--r-xs); cursor: pointer; }
.tag:hover { background: #4a4a4a; }
.tag .rm { margin-left: 6px; color: var(--muted); }
.orig { word-break: break-all; color: var(--dim); font-size: 13px; margin: 0 0 12px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.sec-head .muted { color: var(--muted); font-size: 16px; font-weight: 600; }
.sec-head select { background: var(--s3); font-weight: 600; font-size: 15px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-sm); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; grid-auto-flow: column; margin-bottom: 12px; }
.switch input { width: 16px; height: 16px; accent-color: var(--red); }

/* épisodes */
.ep-row { display: grid; grid-template-columns: 36px 148px 1fr auto; gap: 18px; align-items: center; padding: 14px; border-radius: var(--r-md); cursor: pointer; transition: background .2s; }
.ep-row + .ep-row { margin-top: 4px; }
.ep-row:hover { background: rgba(255,255,255,.06); }
.ep-row.next { background: rgba(255,255,255,.09); }
.ep-num { font-size: 24px; color: #d2d2d2; text-align: center; font-variant-numeric: tabular-nums; }
.ep-thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--r-sm); overflow: hidden; background: var(--s2); }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-thumb .ph b { font-size: 13px; }
.ep-play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; background: rgba(0,0,0,.25); }
.ep-play span { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #fff; background: rgba(20,20,20,.5); display: grid; place-items: center; }
.ep-play .ic { width: 17px; height: 17px; }
.ep-row:hover .ep-play, .ep-row:focus-visible .ep-play { opacity: 1; }
.ep-thumb .progress { position: absolute; left: 8px; right: 8px; bottom: 7px; margin: 0; }
.ep-text { min-width: 0; }
.ep-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 16px; }
.ep-head span { font-weight: 400; color: var(--text-2); font-size: 14.5px; white-space: nowrap; }
.ep-next { font-size: 11.5px; font-weight: 700; color: var(--red-2); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px; }
.ep-text p { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ep-row.seen .ep-num { color: #777; }
.seen-btn { background: none; border: 1.5px solid rgba(255,255,255,.4); color: transparent; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; padding: 0; transition: border-color .2s, transform .25s var(--spring); }
.seen-btn:hover { border-color: #fff; color: rgba(255,255,255,.5); transform: scale(1.08); }
.seen-btn .ic { width: 15px; height: 15px; }
.seen-btn.on { border-color: rgba(255,255,255,.75); color: #fff; }

/* fichiers */
.folder { margin-top: 4px; }
.folder > summary { padding: 10px 0; cursor: pointer; font-weight: 600; font-size: 14px; display: flex; gap: 10px; align-items: baseline; color: var(--text-2); }
.folder > summary .dim { font-weight: 400; margin-left: auto; font-size: 13px; color: var(--dim); }
.file { display: flex; align-items: center; gap: 14px; padding: 9px 10px; border-radius: var(--r-sm); transition: background .2s; }
.file[data-action] { cursor: pointer; }
.file:hover { background: rgba(255,255,255,.06); }
.file .ext { width: 40px; flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: var(--dim); }
.file .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.file .fn small { color: var(--dim); margin-left: 8px; font-size: 12px; }
.file .sz { font-size: 13px; color: var(--dim); flex: none; font-variant-numeric: tabular-nums; }
.file.seen .fn { color: var(--dim); }
.file .acts { display: flex; gap: 6px; flex: none; align-items: center; }
.ibtn { background: none; border: 0; color: var(--muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.ibtn:hover { background: rgba(255,255,255,.1); color: #fff; }
.ibtn .ic { width: 16px; height: 16px; }

/* changer l'affiche */
.art-search { background: rgba(255,255,255,.05); padding: 18px; display: grid; gap: 14px; border-radius: var(--r-lg); }
.art-search .row input { flex: 1; }
.art-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.art-res { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.art-res .im { aspect-ratio: 2/3; background: var(--s2); display: grid; place-items: center; overflow: hidden; border-radius: var(--r); transition: transform .35s var(--spring), box-shadow .2s; color: var(--dim); font-size: 12px; }
.art-res:hover .im, .art-res:focus-visible .im { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 0 2px #fff; }
.art-results.sq .art-res .im { aspect-ratio: 1; }
.art-res img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-res span { display: block; font-size: 13px; padding-top: 7px; line-height: 1.25; }
.art-res small { display: block; font-size: 12px; color: var(--dim); }

/* fenêtre « Ajouter à une liste » */
.list-pop { position: fixed; z-index: 80; width: 290px; background: rgba(18,18,18,.96); border: 1px solid var(--glass-line); border-radius: var(--r-md); padding: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.6); animation: drop .22s var(--ease); }
.list-pop { background: rgba(22,22,22,.98); }
.list-pop h6 { margin: 6px 10px 8px; font-size: 12.5px; color: var(--dim); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-pop > button { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; border-radius: var(--r-sm); padding: 8px 10px; cursor: pointer; text-align: left; font-size: 14px; color: var(--text-2); min-height: 38px; }
.list-pop > button:hover { background: rgba(255,255,255,.08); color: #fff; }
.list-pop .box { width: 20px; height: 20px; border: 1.5px solid var(--dim); border-radius: var(--r-xs); display: grid; place-items: center; flex: none; transition: background .2s, border-color .2s; }
.list-pop .box .ic { width: 13px; height: 13px; opacity: 0; }
.list-pop .box.on { background: #fff; border-color: #fff; color: #000; }
.list-pop .box.on .ic { opacity: 1; }
.list-pop .lname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-pop .n { color: var(--dim); font-size: 12.5px; }
.list-pop .new { display: flex; gap: 6px; padding: 10px 4px 4px; border-top: 1px solid var(--glass-line); margin-top: 6px; }
.list-pop .new input { flex: 1; padding: 7px 10px; font-size: 14px; }

/* ------------------------------------------------------------ réglages, notifications */
dialog { border: 1px solid var(--glass-line); border-radius: var(--r-lg); background: var(--modal); color: var(--text); padding: 0; width: min(540px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
dialog[open] { animation: rise .35s var(--spring); }
dialog::backdrop { background: rgba(0,0,0,.66); }
.settings { padding: 30px 32px; display: grid; gap: 12px; }
.settings h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.02em; }
.settings fieldset { border: 0; background: rgba(255,255,255,.04); border-radius: var(--r-md); padding: 14px 16px; margin: 6px 0 0; }
.settings legend { font-size: 14px; color: var(--muted); padding: 0; float: left; width: 100%; margin-bottom: 10px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; clear: both; }
.checks label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.checks input { width: 16px; height: 16px; accent-color: var(--red); }
.toasts { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 90; width: min(480px, calc(100vw - 32px)); }
.toast { background: #ececec; color: #141414; padding: 12px 18px; border-radius: var(--r-md); font-size: 14.5px; box-shadow: 0 10px 30px rgba(0,0,0,.5); display: flex; gap: 10px; align-items: center; animation: rise .35s var(--spring); }
.toast a { color: #141414; font-weight: 700; }
.toast.error { background: #c4501a; color: #fff; }
.toast.error a { color: #fff; }
.toast .ring { border-color: rgba(0,0,0,.15); border-top-color: var(--red); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1400px) { :root { --per: 5; } .posters { --per: 7; } }
@media (max-width: 1100px) { :root { --per: 4; } .posters { --per: 6; } .hero-content { width: 52%; } .status .lbl { display: none; } }
@media (max-width: 900px) {
  .links .nav-link.big-only, #menu-btn .big-only { display: none; }
  .only-small { display: inline; }
  .menu .small-only { display: block; }
  .hero-content { width: 80%; }
  .hero-poster { display: none; }
  .m-cols, .m-fields { grid-template-columns: 1fr; }
  .m-hero-content { left: 28px; right: 28px; }
  .m-body { padding: 22px 28px 36px; gap: 28px; }
  .status { display: none; }
  .posters { --per: 5; }
  .search-toggle { display: inline-grid; }
  .search-box { display: none; }
  .search-box.open { display: flex; position: absolute; left: var(--gutter); right: var(--gutter); top: 15px; width: auto; z-index: 3; background: rgba(10,10,10,.95); }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; --per: 2; --gap: 8px; }
  .posters { --per: 3; }
  .topnav { gap: 12px; height: 58px; }
  .wordmark { font-size: 21px; }
  .wordmark i { height: 20px; width: 7px; }
  .hero { min-height: 440px; height: 72vh; margin-bottom: 0; }
  .hero-content { width: auto; right: var(--gutter); bottom: 8%; }
  .hbtn { font-size: 15px; padding: 0 18px 0 14px; }
  .m-actions .hbtn.grey .lbl { display: none; }
  .ep-row { grid-template-columns: 110px 1fr; }
  .ep-num, .ep-row .seen-btn { display: none; }
  .m-wrap { padding: 0; }
  .modal { border-radius: 0; }
  .m-media { border-radius: 0; }
  .checks { grid-template-columns: 1fr; }
  .arrow { display: none; }
  .setup-card { padding: 30px 22px; background: transparent; border: 0; }
}

/* ------------------------------------------------------------ version iPhone (backend.js ajoute .web-app) */
.web-only { display: none; }
.web-app .web-only { display: block; }
.web-app .vlc-only, .web-app [data-action="play-all"] { display: none !important; }
/* encoches et barres système de l'iPhone en mode plein écran */
.topnav { padding-top: env(safe-area-inset-top, 0px); height: calc(68px + env(safe-area-inset-top, 0px)); }
.toasts { bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
.m-wrap { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 700px) {
  .topnav { height: calc(58px + env(safe-area-inset-top, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .m-wrap { padding-top: env(safe-area-inset-top, 0px); }
  .m-close { top: calc(16px + env(safe-area-inset-top, 0px)); }
}
/* iOS zoome sur les champs en dessous de 16 px : on les garde à 16 px sur écran tactile */
@media (hover: none) and (pointer: coarse) { input, select, .search-box input { font-size: 16px; } }

/* ------------------------------------------------------------ éléments communs ajoutés pour le téléphone */
.hero-card { display: contents; }            /* ordinateur : le conteneur s'efface, la bannière reste telle quelle */
.hero-card-img, .hero-genres, .mobile-only, .tabbar { display: none; }
/* la bannière se fond dans le fond de page (plus de bande visible à la jonction avec les rangées) */
.hero-bg, .hero-shade, .hero-poster { -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
.back-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; flex: none;
  display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .25s var(--spring);
}
.back-btn:hover { background: rgba(255,255,255,.2); }
.back-btn .ic { width: 20px; height: 20px; }

/* ============================================================ téléphone : interface allégée, façon application */
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  /* barre du haut : logo, recherche, compte ; la navigation passe dans la barre d'onglets */
  .topnav { gap: 10px; }
  .topnav.solid { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgba(20,20,20,.97); }
  .topnav:has(.menu.open) { z-index: 50; }
  .links .nav-link { display: none; }
  .nav-right { gap: 6px; margin-right: -4px; }
  .profile .caret { display: none; }

  /* barre d'onglets en bas */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(16,16,16,.97); border-top: 1px solid var(--glass-line);
    padding: 4px max(6px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
  }
  .tabbar button { background: none; border: 0; color: var(--dim); display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 10.5px; min-height: 50px; cursor: pointer; }
  .tabbar button.active { color: #fff; font-weight: 600; }
  .tabbar .ic { width: 23px; height: 23px; }
  #page { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  /* à la une : une grande affiche centrée, Lecture + Ma liste */
  .hero { height: auto; min-height: 0; max-height: none; margin: 0; overflow: visible; padding: calc(70px + env(safe-area-inset-top, 0px)) var(--gutter) 22px; }
  .hero-bg { overflow: hidden; }
  .hero-bg img { filter: blur(34px) brightness(.5) saturate(1.4); transform: scale(1.25); }
  .hero-poster { display: none; }
  /* l'affiche en haut de la carte, les infos et boutons dessous : rien ne recouvre le titre imprimé sur l'affiche */
  .hero-card {
    display: block; position: relative; margin: 0 auto; width: min(100%, calc(56vh * 2 / 3));
    border-radius: 16px; overflow: hidden; background: rgba(28,28,28,.92); box-shadow: 0 18px 44px rgba(0,0,0,.6); cursor: pointer;
  }
  .hero-card-img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
  .hero-content { position: static; width: auto; padding: 12px 12px 12px; gap: 10px; justify-items: center; text-align: center; }
  .hero-kind, .hero-overview, .hero .meta-line, .desktop-only { display: none !important; }
  .hero.has-poster .hero-title { display: none; }          /* l'affiche porte déjà le titre */
  .hero-title { font-size: 26px; }
  .hero-genres { display: block; font-size: 13.5px; color: var(--text-2); }
  .hero-resume { justify-content: center; font-size: 13px; }
  .hero-resume .progress { width: 90px; }
  .mobile-only { display: inline-flex; }
  .hero-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
  .hero-actions .hbtn { min-height: 42px; font-size: 15.5px; padding: 0 10px; gap: 8px; border-radius: 10px; }
  .hero-actions .hbtn .ic { width: 20px; height: 20px; }
  .hero-actions .hbtn.play:only-child { grid-column: 1 / -1; }

  /* rangées : affiches seules, sans texte ni boutons par-dessus */
  .rows { padding-bottom: 20px; }
  .rows.no-hero { padding-top: calc(66px + env(safe-area-inset-top, 0px)); }
  .page-head { padding-top: calc(70px + env(safe-area-inset-top, 0px)); gap: 10px 12px; }
  .page-head h1 { font-size: 24px; }
  .page-head .tools.end { margin-left: 0; }
  .row-block { margin-bottom: 24px; }
  .row-head { margin-bottom: 8px; }
  .row-head h2 { font-size: 17px; }
  .posters .track { --per: 3.3; }       /* la 4e affiche dépasse : on voit qu'on peut faire défiler */
  .posters .grid { --per: 3; }
  .track { --gap: 8px; padding-top: 2px; padding-bottom: 4px; }
  .tile-body, .tile-actions { display: none !important; }
  .tile-img { border-radius: 8px; }
  .tile:hover .tile-img { transform: none; box-shadow: none; }
  .ribbon { left: 5px; bottom: 5px; font-size: 9.5px; padding: 2px 6px; border-radius: 4px; }
  .progress { height: 3px; margin-top: 5px; }
  .grid { gap: 10px 8px; padding-bottom: 30px; }

  /* menus et choix de liste : panneaux qui montent du bas, toujours dans l'écran */
  .menu, .menu.right, .m-actions .menu {
    position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    min-width: 0; max-height: 72vh; border-radius: 18px; padding: 8px; z-index: 70;
    box-shadow: 0 0 0 100vmax rgba(0,0,0,.55);     /* assombrit le reste de l'écran ; toucher à côté ferme le panneau */
  }
  .menu.open { animation: sheet .28s var(--ease); }
  .menu button { min-height: 46px; font-size: 16px; padding: 10px 14px; }
  .menu-user { padding: 10px 14px; }
  .list-pop {
    left: 8px !important; right: 8px; top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: auto; border-radius: 18px; padding: 8px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); animation: sheet .28s var(--ease);
  }
  .list-pop > button { min-height: 48px; font-size: 16px; }

  /* fiche : feuille plein écran qui se ferme en glissant vers le bas */
  .m-wrap { padding: calc(10px + env(safe-area-inset-top, 0px)) 0 0; background: rgba(0,0,0,.7); }
  /* pas de will-change ni de transform au repos : ils ancreraient le panneau « Plus » à la fiche au lieu de l'écran */
  .modal { border-radius: 18px 18px 0 0; min-height: calc(100vh - 10px - env(safe-area-inset-top, 0px)); }
  .modal::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.5); transform: translateX(-50%); z-index: 6; }
  .m-close { top: 14px; right: 12px; width: 34px; height: 34px; }
  .m-hero { aspect-ratio: auto; }
  .m-media { position: relative; aspect-ratio: 16 / 9; border-radius: 18px 18px 0 0; }
  .m-hero-content { position: static; padding: 16px 16px 0; gap: 14px; }
  .m-hero-content h1 { font-size: 25px; max-width: none; text-shadow: none; }
  .m-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .m-actions .hbtn.play { grid-column: 1 / -1; width: 100%; min-height: 46px; border-radius: 10px; justify-content: center; }
  .m-actions .hbtn.grey, .m-actions .menu-wrap .hbtn {
    flex-direction: column; gap: 5px; width: 100%; min-height: 58px; padding: 6px 2px; background: none; border-radius: 10px;
    font-size: 12px; font-weight: 500; color: var(--text-2);
  }
  .m-actions .hbtn.grey:active { background: rgba(255,255,255,.08); }
  .m-actions .hbtn.grey .lbl { display: inline; }
  .m-actions .hbtn.grey .ic { width: 24px; height: 24px; }
  .m-body { padding: 18px 16px calc(36px + env(safe-area-inset-bottom, 0px)); gap: 26px; }
  .m-section { padding: 0 14px; }
}
@keyframes sheet { from { transform: translateY(105%); } }

/* réglage système « réduire les animations » (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
