@charset "utf-8";
/* Concept : interface noir et blanc, seules les affiches gardent leurs couleurs */
:root {
  --bg: #000;
  --fg: #fff;
  --dim: #8c8c8c;
  --line: #262626;
  --panel: #0d0d0d;
  --s0: #070707;
  --s1: #151515;
  --acc: var(--fg);
  --on-acc: var(--bg);
  --grn: #86efac; --sky: #7dd3fc; --red: #f87171;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* animations */
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.04); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
#app.enter { animation: pageIn .45s var(--ease) both; }

/* en-tête */
header.top { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: rgba(0,0,0,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; max-width: none; margin: 0; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.logo { font-family: var(--display); font-weight: 900; font-size: 32px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; transition: opacity .2s; }
.logo:hover { opacity: .7; }
nav { display: flex; gap: 20px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
nav a { position: relative; padding: 4px 0; display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
nav a svg { width: 16px; height: 16px; flex: none; }
.chip .fl { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 4px; background: currentColor; font-family: var(--mono); font-size: 10px; font-weight: 700; line-height: 1; vertical-align: -3px; }
.chip .fl b { color: var(--on-acc); font: inherit; }
.chip.on .fl { background: var(--bg); }
.chip.on .fl b { color: var(--fg); }
.chip svg.gl { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
nav a:hover, nav a.on { color: var(--fg); }
nav a:hover::after, nav a.on::after { transform: scaleX(1); }
.search { margin-left: auto; margin-right: 90px; position: relative; width: clamp(220px, 28vw, 380px); transition: width .3s var(--ease); }
.search:focus-within { width: clamp(260px, 34vw, 460px); }
.search::before { content: ""; position: absolute; z-index: 1; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background: var(--dim); pointer-events: none; transition: background .25s; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat; }
.search:focus-within::before { background: var(--acc); }
.search input[type=text] { width: 100%; background: var(--panel); border: 1px solid var(--line); padding: 13px 16px 13px 44px; outline: none; font-size: 15px; letter-spacing: .02em; transition: border-color .25s, background .25s, box-shadow .25s; }
.search input[type=text]:hover { border-color: #3a3a3a; }
.search input[type=text]:focus { border-color: var(--acc); background: var(--bg); box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.search input[type=text]::placeholder { color: var(--dim); }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--acc); background: var(--acc); color: var(--on-acc); padding: 11px 22px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; border-radius: 0; transition: background .2s, color .2s, transform .15s; }
.btn:hover { background: transparent; color: var(--fg); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--fg); }
.btn.ghost:hover { background: var(--acc); color: var(--on-acc); }
.btn.small { padding: 7px 14px; font-size: 12px; }
/* boutons Télécharger : vert clair */
.btn .dlic { width: 1.15em; height: 1.15em; flex: none; }
.btn[data-dlopen], .btn[data-godl], .btn[data-reqdl], .btn[data-dlchoose] { background: #86efac; border-color: var(--grn); color: #052e16; }
.btn[data-dlopen]:hover, .btn[data-godl]:hover, .btn[data-reqdl]:hover, .btn[data-dlchoose]:hover { background: transparent; border-color: var(--grn); color: var(--grn); }
.btn.danger { border-color: #555; color: var(--dim); background: transparent; }
.btn.danger:hover { border-color: var(--acc); color: var(--fg); }

/* hero */
.hero { position: relative; min-height: 460px; display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); overflow: hidden; }
.hslide { grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.hslide.on { z-index: 1; opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
.hslide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.65)); }
.hdots { position: absolute; z-index: 3; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 4px; }
.hdots button { background: none; border: 0; padding: 10px 4px; cursor: pointer; }
.hdots button::before { content: ""; display: block; width: 28px; height: 3px; background: #555; transition: background .3s, width .3s var(--ease); }
.hdots button:hover::before { background: #aaa; }
.hdots button.on::before { background: var(--acc); width: 40px; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; opacity: .8; image-rendering: auto; }
.hslide.on .bg { animation: heroZoom 1.4s var(--ease) both; }
.hero .wrap { position: relative; z-index: 1; padding-block: 48px; width: 100%; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1); } }
.hslide.on .tags, .hslide.on h1, .hslide.on p, .hslide.on .row { animation: heroIn .55s var(--ease) both; }
.hslide.on h1 { animation-delay: .06s; }
.hslide.on p { animation-delay: .12s; }
.hslide.on .row { animation-delay: .18s; }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(48px, 9vw, 112px); line-height: .92; margin: 0 0 14px; text-transform: uppercase; text-wrap: balance; max-width: 14ch; }
.hero p { max-width: 58ch; color: #cfcfcf; margin: 0 0 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 14px; font-family: var(--mono); font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.tags span + span::before { content: "/"; margin-right: 14px; color: #444; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* listes et grilles */
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 36px 18px; }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: 30px; text-transform: uppercase; letter-spacing: .03em; margin: 0; }
.more { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); transition: color .2s; }
.more:hover { color: var(--fg); }
.listhead { padding-block: 44px 0; }
.listhead h1 { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 7vw, 88px); line-height: .95; text-transform: uppercase; margin: 0 0 8px; }
.listhead .note { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: transparent; padding: 5px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; cursor: pointer; color: var(--dim); border-radius: 0; transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--fg); border-color: var(--dim); }
.chip.on { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 16px; padding-bottom: 20px; }
.rail-sec { padding-bottom: 12px; }
#app > .rail-sec:last-child { padding-bottom: 20px; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: 16px; padding: 14px 16px 22px; margin: -14px -16px -10px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.rail .card { flex: 0 0 168px; scroll-snap-align: start; }
.card { display: block; min-width: 0; animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.poster { aspect-ratio: 2 / 3; background: var(--panel); border: 1px solid var(--line); overflow: hidden; position: relative; }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease), filter .35s ease; }
.card .poster { transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
@media (hover: hover) {
  .card:hover .poster { transform: translateY(-5px); border-color: var(--acc); box-shadow: 0 12px 30px rgba(255,255,255,.08); }
  .card:hover .poster img { transform: scale(1.05); filter: brightness(.75); }
}
.card:active .poster { transform: scale(.97); border-color: var(--acc); }
.poster .lang, .tags .lang { font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; background: #fff; color: #000; line-height: 1; white-space: nowrap; }
.poster .lang { position: absolute; z-index: 1; top: 8px; left: 8px; font-size: 10px; padding: 4px 6px; }
.tags .lang { font-size: 12px; padding: 5px 8px; font-weight: 700; }
.tags .lang::before, .tags .lang + span::before { content: none !important; }
.langpick { display: flex; gap: 10px; flex-wrap: wrap; }
.langchips { margin-top: 10px; align-items: center; }
.chiplbl { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-right: 4px; }
.chk { cursor: pointer; display: inline-flex; }
.chk input { position: absolute; opacity: 0; pointer-events: none; }
.chk i { font-style: normal; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; border: 1px solid var(--line); padding: 9px 16px; color: var(--dim); transition: color .2s, border-color .2s, background .2s; }
.chk input:checked + i { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.chk input:focus-visible + i { outline: 2px solid var(--fg); outline-offset: 3px; }
label.f > span.lbl, .f > span.lbl { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 6px; }
.poster .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 64px; font-weight: 900; color: #2a2a2a; }
.card .meta { padding-top: 10px; }
.card .meta b { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta span { font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* vide */
.empty { padding: 96px 0; max-width: 560px; }
.empty h1 { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 8vw, 88px); line-height: .95; text-transform: uppercase; margin: 0 0 16px; }
.empty p { color: var(--dim); margin: 0 0 28px; }

/* fiche */
.detail { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.detail .bg { position: absolute; inset: 0; background-size: cover; background-position: center top; opacity: .35; animation: kenburns 28s ease-in-out infinite alternate; }
.detail::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, rgba(0,0,0,.4)); }
.detail .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 40px; padding-block: 56px; }
.detail .poster { width: 100%; animation: riseIn .6s var(--ease) both; }
.detail .wrap > div:last-child { animation: riseIn .6s var(--ease) .1s both; }
.detail h1 { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 7vw, 88px); line-height: .95; text-transform: uppercase; margin: 0 0 6px; text-wrap: balance; }
.detail .orig { font-family: var(--mono); font-size: 13px; color: var(--dim); margin-bottom: 18px; }
.detail p.ov { max-width: 66ch; color: #d6d6d6; margin: 0 0 24px; }
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.cast div { padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.cast b { display: block; font-weight: 500; font-size: 14px; }
.cast span { font-size: 13px; color: var(--dim); }
/* acteurs dans les résultats de recherche */
.actres { padding-top: 26px; }
.actres h3 { margin: 0 0 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; }
.actchips { display: flex; flex-wrap: wrap; gap: 10px; }
.actchip { display: flex; align-items: center; gap: 12px; max-width: 100%; padding: 8px 16px 8px 8px; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s, background .2s; }
.actchip:hover { border-color: var(--acc); background: var(--s1); }
.actchip .ai { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg); font-family: var(--display); font-weight: 900; font-size: 20px; }
.actchip .at { min-width: 0; }
.actchip .at b { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actchip .at small { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.castlink { display: block; }
.castlink:hover b { text-decoration: underline; text-underline-offset: 3px; }
/* page acteur */
.actor { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; padding-block: 44px 40px; align-items: start; }
.actphoto { aspect-ratio: 2 / 3; background: var(--panel); border: 1px solid var(--line); overflow: hidden; position: relative; }
.actphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.actphoto .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 88px; font-weight: 900; color: #2a2a2a; }
.actmain { min-width: 0; }
.actor h1 { font-family: var(--display); font-weight: 900; font-size: clamp(38px, 6vw, 72px); line-height: .95; text-transform: uppercase; margin: 14px 0 6px; overflow-wrap: anywhere; }
.actnative { margin: 0 0 6px; font-size: 18px; color: var(--dim); letter-spacing: .04em; }
.actnative:empty { display: none; }
.actmain .note { margin: 0; }
.actfacts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; margin: 22px 0 0; font-size: 14px; }
.actfacts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.actfacts dd { margin: 0; }
.actfacts a { text-decoration: underline; text-underline-offset: 3px; }
.actbio { margin: 22px 0 0; max-width: 70ch; line-height: 1.65; color: #cfcfcf; white-space: pre-line; }
.actbio.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.actmore { margin-top: 8px; font-size: 13px; }
.acard .role { display: block; padding-top: 3px; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .actor { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding-block: 24px 28px; }
  .actphoto .ph { font-size: 44px; }
  .actor h1 { margin-top: 10px; }
  .actbio { grid-column: 1 / -1; }
}
.seasons { padding-bottom: 72px; scroll-margin-top: 72px; }
details.season { border-top: 1px solid var(--line); }
details.season:last-child { border-bottom: 1px solid var(--line); }
details.season summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .03em; transition: padding .25s var(--ease); }
details.season summary:hover { padding-left: 8px; }
details.season summary::-webkit-details-marker { display: none; }
details.season summary .sm { display: flex; align-items: center; gap: 16px; }
details.season summary .sm::after { content: "+"; font-family: var(--mono); font-size: 22px; font-weight: 400; transition: transform .3s var(--ease); }
details.season[open] summary .sm::after { transform: rotate(45deg); }
details.season summary i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .06em; }
.seasonpick { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 0 16px; }
.seasonpick .seasonall { display: none; }
.seasonpick.open .seasonall { display: flex; }
.seasonpick .seasontog .sl { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.seasons.multi details.season { display: none; }
.seasons.multi details.season.cur { display: block; border-bottom: 1px solid var(--line); }
.seasons.multi details.season summary { pointer-events: none; cursor: default; padding-left: 0; }
.seasons.multi details.season summary .sm::after { content: none; }
.ep { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
details.season[open] .ep { animation: riseIn .45s var(--ease) both; animation-delay: calc(var(--k, 0) * 35ms); }
.ep .n { font-family: var(--mono); color: var(--dim); font-size: 13px; padding-top: 3px; }
.ep b { font-weight: 500; display: block; }
.ep small { color: var(--dim); display: block; max-width: 70ch; }
.ep small.d { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin: 2px 0 4px; color: #b5b5b5; }
.ep .act { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ep .off { font-family: var(--mono); font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: .06em; padding-top: 4px; }
.ep .act .off { padding-top: 0; }

/* connexion */
.authbox { max-width: 420px; padding-block: 72px 96px; display: grid; gap: 18px; }
.authbox h1 { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 7vw, 72px); text-transform: uppercase; line-height: .95; margin: 0; }
.authbox .lead { color: var(--dim); margin: 0; }
.authbox.shake { animation: shake .4s; }
pre.code { background: var(--panel); border: 1px solid var(--line); padding: 14px; margin: 0; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-all; }

/* éditeur */
.page { padding-block: 40px 80px; }
.page h1 { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 6vw, 72px); text-transform: uppercase; line-height: .95; margin: 0 0 8px; }
.page .lead { color: var(--dim); margin: 0 0 28px; max-width: 60ch; }
.findbox { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.findbox input { flex: 1 1 260px; min-width: 0; }
input[type=text], input[type=password], input[type=number], input[type=url], textarea, select { background: var(--panel); border: 1px solid var(--line); padding: 11px 12px; width: 100%; border-radius: 0; outline: none; transition: border-color .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--acc); }
textarea { resize: vertical; min-height: 110px; }
label.f { display: block; min-width: 0; }
label.f > span { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 6px; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin-bottom: 36px; }
.results button { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; min-width: 0; animation: cardIn .45s var(--ease) both; }
.results .poster { transition: border-color .2s; }
.results button:hover .poster { border-color: var(--acc); }
.results b { display: block; font-weight: 500; font-size: 13px; margin-top: 6px; line-height: 1.3; }
.results span { font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.form { border-top: 1px solid var(--line); padding-top: 28px; display: grid; gap: 18px; }
.form .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.form h3 { font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: .03em; margin: 14px 0 0; }
.preview { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start; }
.tpl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.tpl textarea, .srcbox { min-height: 84px; font-family: var(--mono); font-size: 13px; }
.epedit { border: 1px solid var(--line); margin-top: 10px; }
.epedit summary { padding: 12px 14px; cursor: pointer; font-weight: 500; display: flex; justify-content: space-between; gap: 12px; }
.epedit summary i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.bulk { padding: 12px 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.bulk textarea { min-height: 110px; font-family: var(--mono); font-size: 12px; white-space: pre; overflow-x: auto; }
.bulkrow { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.bulkrow input { width: 110px; }
.eprow { display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px; align-items: start; padding: 8px 14px; border-top: 1px solid var(--line); }
.eprow .n { font-family: var(--mono); color: var(--dim); font-size: 12px; padding-top: 9px; }
.eprow .t { font-size: 13px; padding-top: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eprow textarea { min-height: 38px; height: 38px; padding: 8px 10px; font-family: var(--mono); font-size: 12px; line-height: 1.5; }
.bar { position: sticky; bottom: 0; background: rgba(0,0,0,.94); border-top: 1px solid var(--line); padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 12px; flex-wrap: wrap; z-index: 10; margin-top: 8px; }
.note { font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* lecteur */
dialog#player { width: min(1100px, 96vw); max-width: 96vw; padding: 0; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
dialog#player[open] { animation: dialogIn .3s var(--ease) both; }
dialog#player::backdrop { background: rgba(0,0,0,.88); }
dialog#player[open]::backdrop { animation: fadeIn .3s ease both; }
.phead { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.phead b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 40%; }
.fsb { display: inline-block; margin-left: 8px; padding: 0 6px 0 0; border: 1px solid #fcd34d; color: #fcd34d; background: rgba(252, 211, 77, .1); font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; vertical-align: 1px; white-space: nowrap; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; }
.fsb b { display: inline-block; margin-right: 6px; padding: 0 5px; background: #fcd34d; color: #000; font-weight: 800; }
.chip.on .fsb { border-color: currentColor; color: inherit; background: transparent; }
.chip.on .fsb b { background: var(--on-acc); color: var(--acc); }
.srcone { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 16px; border: 1px solid var(--line); border-left: 3px solid var(--acc); background: var(--panel); color: var(--fg); font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
@media (min-width: 721px) { .srcone { width: auto; } }
.srcone .fsb { max-width: none; }
.srcnm { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; min-width: 0; line-height: 1.2; text-align: left; }
.srcnm .fsb { margin-left: 0; vertical-align: baseline; }
#psrc .chip { align-items: center; }
.srctoggle .nm .fsb { max-width: 24ch; }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.pframe { aspect-ratio: 16 / 9; background: var(--s0); position: relative; overflow: hidden; }
.pstage { position: absolute; inset: 0; transform-origin: center center; }
.pstage iframe { width: 100%; height: 100%; border: 0; display: block; }
.pload { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(ellipse at center, var(--s1) 0%, var(--bg) 70%); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s, visibility .35s; }
.pload.on { opacity: 1; visibility: visible; }
.pspin { width: 46px; height: 46px; border: 3px solid #262626; border-top-color: #fff; border-radius: 50%; animation: pspin .8s linear infinite; }
.plbl { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.pslow { pointer-events: auto; animation: tipIn .35s ease both; }
.pslow[hidden] { display: none; }
@keyframes pspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pspin { animation-duration: 2.4s; } }
.hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.hbtn .hi { width: 16px; height: 16px; flex: 0 0 auto; }
.hbtn .fi { display: inline-flex; }
@media (max-width: 720px) {
  dialog#player .phead .row { justify-content: flex-end; }
  dialog#player .phead .row .btn { flex: 0 0 auto; width: 42px; min-height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
  dialog#player .phead .row .btn > span:not(.fi), dialog#player .phead .row .btn > .lbl { display: none; }
  dialog#player .phead .row .btn svg { width: 18px; height: 18px; margin: 0; }
}
.fsbar, .fswake { display: none; }
.pframe.fsui .fsbar { display: flex; align-items: center; gap: 6px; position: absolute; z-index: 6; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; transform: translate(-50%, -10px); background: rgba(0,0,0,.82); border: 1px solid var(--line); padding: 6px 8px 6px 12px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); backdrop-filter: blur(6px); }
.pframe.fsui.bar .fsbar { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.fsbar span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-right: 4px; }
.fsbar button { background: transparent; border: 1px solid var(--line); color: var(--dim); padding: 7px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; border-radius: 0; transition: color .2s, background .2s, border-color .2s; }
.fsbar button:hover { color: var(--fg); border-color: var(--dim); }
.fsbar button.on { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.pframe.fsui:not(.bar) .fswake { display: block; position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 56px; }
.pframe:fullscreen { width: 100%; height: 100%; margin: 0 !important; aspect-ratio: auto; background: var(--bg); }
.pframe:-webkit-full-screen { width: 100%; height: 100%; margin: 0 !important; aspect-ratio: auto; background: var(--bg); }
dialog#player.wide { position: fixed; inset: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; border: 0; overflow: hidden; }
dialog#player.wide .pframe { width: 100%; height: 100%; aspect-ratio: auto; }
dialog#player.wide .phead { position: absolute; z-index: 2; top: 0; left: 0; right: 0; border: 0; background: linear-gradient(rgba(0,0,0,.8), transparent); opacity: 0; transition: opacity .2s; padding-top: max(10px, env(safe-area-inset-top, 0px)); }
dialog#player.wide:hover .phead, dialog#player.wide .phead:focus-within { opacity: 1; }

/* pied */
footer { margin-top: 2px; border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; color: var(--dim); font-size: 13px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer button, footer a { background: none; border: 0; padding: 0; cursor: pointer; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
footer button:hover, footer a:hover { color: var(--fg); }
.setbtn { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); color: var(--dim); transition: color .2s, border-color .2s, background .2s; }
.setbtn svg { width: 20px; height: 20px; }
.setbtn:hover { color: var(--fg); border-color: var(--dim); }
.setbtn.on { color: var(--on-acc); background: var(--acc); border-color: var(--acc); }
@media (max-width: 720px) { .setbtn { display: none; } }
@media (min-width: 721px) { #nav-set { display: none; } .search { margin-right: 14px; } }
html.notips #ptip { display: none !important; }
html.noanim *, html.noanim *::before, html.noanim *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
/* sans animations : tout s'affiche normalement, directement dans son état final (les logos « dessinés » restaient invisibles) */
html.noanim .mllogo path, html.noanim .mllogo rect, html.noanim .rqlogo path { stroke-dashoffset: 0 !important; }
html.noanim .hlbox::before, html.noanim .hlbox::after, html.noanim .mlbell::after { display: none !important; }
/* badges des affiches cachés depuis les paramètres (la fiche n'est pas touchée) */
html.hb-lang .poster .lang, html.hb-live .poster .live, html.hb-new .poster .new, html.hb-nov .poster .nov { display: none !important; }

/* ===== Paramètres (refonte, même style que Ma liste / Calendrier) ===== */
#setroot { padding-bottom: 72px; }
.stbody { display: grid; gap: 30px; max-width: 760px; padding-block: 26px 0; }
.stsec { display: grid; gap: 10px; }
.stlbl { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.stlbl::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.stnote { margin: 0 0 4px; color: var(--dim); font-size: 14px; line-height: 1.5; max-width: 62ch; }
.stcard { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); background: transparent; animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); transition: border-color .25s, background .25s, transform .3s var(--ease); }
.stcard:hover { border-color: var(--acc); background: var(--panel); transform: translateX(5px); }
.stcard .sti { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--dim); transition: background .25s, color .25s, border-color .25s; }
.stcard .sti svg { width: 21px; height: 21px; }
.stcard:hover .sti { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.stcard .stt { flex: 1; min-width: 0; }
.stcard .stt b { display: block; font-size: 15px; line-height: 1.25; }
.stcard .stt small { display: block; margin-top: 3px; color: var(--dim); font-size: 13px; line-height: 1.45; }
.stcard .btn { flex: none; }
.stbody .spanel { background: transparent; }
.stbody .spanel.soon { border-style: dashed; }
.stbadge { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; }
.stpvbox { position: sticky; top: 90px; }
.stpv { width: 150px; background: linear-gradient(160deg, var(--s1), var(--s0) 70%); display: grid; place-items: end start; }
.stpv .stpvt { padding: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.stlist { display: grid; gap: 10px; }
.stbtns { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
@media (max-width: 720px) {
  .stcard { padding: 12px; gap: 12px; }
  .stcard:hover { transform: none; }
  .stcard .sti { width: 40px; height: 40px; }
  .stbadge { grid-template-columns: minmax(0, 1fr); }
  .stpvbox { position: static; }
}
@media (prefers-reduced-motion: reduce) { .stcard { animation: none; } }
/* page Paramètres (ancienne) */
.sset { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 80px; }
.sset > .spanel { max-width: 760px; }
.listhead.sethead { padding-top: 16px; }
.spanel { border: 1px solid var(--line); background: var(--s0); }
.spanel .sh { margin: 0; padding: 18px 20px 4px; font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .03em; }
.spanel > .note { margin: 0; padding: 0 20px 14px; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.srow:last-child { border-bottom: 0; }
.srow b { display: block; font-size: 15px; }
.srow small { display: block; margin-top: 3px; color: var(--dim); font-size: 13px; line-height: 1.45; }
.sw { flex: 0 0 auto; position: relative; width: 48px; height: 28px; padding: 0; border: 1px solid var(--dim); background: transparent; border-radius: 0; cursor: pointer; transition: background .2s, border-color .2s; }
.sw i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--dim); transition: transform .2s var(--ease), background .2s; }
.sw.on { background: var(--acc); border-color: var(--acc); }
.sw.on i { transform: translateX(20px); background: var(--bg); }
.crow { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-top: 1px solid var(--line); }
.crow .cn { width: 22px; font-family: var(--mono); color: var(--dim); }
.crow .cl { flex: 1; min-width: 0; }
.crow .btn:disabled { opacity: .3; pointer-events: none; }
.spanel > .row { padding: 14px 20px; border-top: 1px solid var(--line); }
.spanel.soon { border-style: dashed; }
.spanel.soon .note { padding-bottom: 18px; }
#count { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
#count svg { width: 16px; height: 16px; flex: none; }
footer .flist { list-style: none; margin: 0; padding: 0; }
footer .flist li::before { content: "\2022  "; }
footer .uplinks { color: var(--dim); font-weight: 900; font-size: .9em; white-space: nowrap; }
footer .uplinks a, footer .uplinks .upd { color: var(--fg); font-weight: 900; background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 900; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; transition: color .2s, text-decoration-color .2s; }
footer .uplinks a:hover, footer .uplinks .upd:hover, footer .uplinks .upd[aria-expanded="true"] { color: var(--acc); text-decoration-color: var(--acc); }
.discpop { position: fixed; z-index: 90; display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; background: var(--panel); border: 1px solid var(--acc); box-shadow: 0 14px 34px rgba(0,0,0,.6); animation: discIn .18s var(--ease) both; }
.discpop span { font-family: var(--mono); font-weight: 900; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.discpop b { font-family: var(--mono); font-weight: 900; font-size: 14px; color: var(--fg); }
@keyframes discIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
footer .copy { max-width: 1280px; margin: 28px auto 0; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--dim); }

/* ===== Panneau admin (refonte, même style que Paramètres / Ma liste / Calendrier) ===== */
#panroot { padding-bottom: 72px; }
.pnl button > *, .pnl .btn > * { pointer-events: none; }
.pnl .btn svg { width: 16px; height: 16px; flex: none; }
.pnquick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 24px; animation: riseIn .6s .1s var(--ease) both; }
.pnrole { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 6px 12px; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.pnrole svg { width: 14px; height: 14px; }
.pnrole.head { border-color: var(--sky); color: var(--sky); }
.pnsync { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.pnsync i { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.pnsync.on i { background: #86efac; box-shadow: 0 0 0 4px rgba(134, 239, 172, .15); }
.pntabs { --n: 3; --i: 0; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); max-width: 920px; border: 1px solid var(--line); animation: riseIn .6s .12s var(--ease) both; }
.pnind { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% / var(--n)); background: var(--acc); transform: translateX(calc(var(--i) * 100%)); transition: transform .45s var(--ease); z-index: 0; }
.pnt { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 15px 14px; background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; color: var(--dim); cursor: pointer; text-align: left; transition: color .3s; }
.pnt:first-of-type { border-left: 0; }
.pnt svg { width: 24px; height: 24px; flex: none; transition: transform .4s var(--ease); }
.pnt:hover svg { transform: scale(1.12) rotate(-6deg); }
.pnt .l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.pnt em { position: absolute; top: 6px; right: 8px; font-style: normal; font-family: var(--mono); font-size: 10px; line-height: 1; opacity: .7; }
.pnt.on { color: var(--on-acc); }
.pnt:not(.on):hover { color: var(--fg); }
.pnbody { display: grid; gap: 18px; max-width: 920px; padding-block: 26px 0; }
.pnc { display: grid; border: 1px solid var(--line); animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); transition: border-color .25s; }
.pnc:hover { border-color: #3a3a3a; }
.pnc > * { min-width: 0; }
.pnch { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.pnci { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--dim); transition: background .25s, color .25s, border-color .25s; }
.pnci svg { width: 21px; height: 21px; }
.pnc:hover .pnci { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.pnct { min-width: 0; }
.pnct b { display: block; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; }
.pnct small b { display: inline; font: inherit; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--fg); }
.pnct small { display: block; margin-top: 3px; color: var(--dim); font-size: 13px; line-height: 1.45; }
.pncb { display: grid; gap: 14px; padding: 18px 20px 20px; }
.pncb > .note, .pncb .note { margin: 0; }
.pncbi { display: grid; gap: 14px; }
.pnpill { display: inline-block; margin-left: 10px; padding: 2px 8px; vertical-align: 3px; border: 1px solid var(--line); font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .08em; color: var(--dim); }
.pnpill.on { border-color: var(--grn); color: var(--grn); }
.pnkv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pnkv > div { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); }
.pnkv span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.pnkv b { font-size: 14px; overflow-wrap: anywhere; }
.pnseg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pnopt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; background: transparent; border: 1px solid var(--line); border-radius: 0; color: var(--dim); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .15s; }
.pnopt:active { transform: scale(.98); }
.pnopt svg { width: 22px; height: 22px; flex: none; }
.pnopt b { display: block; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: inherit; }
.pnopt small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: inherit; opacity: .75; }
.pnopt:hover { border-color: var(--acc); color: var(--fg); }
.pnopt.on { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.pn3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.pnstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.pnst { display: grid; gap: 6px; padding: 14px 14px 12px; border: 1px solid var(--line); transition: border-color .25s, background .25s, transform .3s var(--ease); }
.pnst:hover { border-color: var(--acc); background: var(--panel); transform: translateY(-3px); }
.pnst svg { width: 18px; height: 18px; color: var(--dim); transition: color .25s; }
.pnst:hover svg { color: var(--sky); }
.pnst b { font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1; }
.pnst span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.pnhl { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pnhl b { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; }
.pnhl span { font-family: var(--mono); font-size: 12px; color: var(--dim); }
@keyframes pnfill { from { width: 0; } }
.pnbar { height: 6px; background: var(--line); overflow: hidden; }
.pnbar i { display: block; height: 100%; background: var(--acc); animation: pnfill .9s var(--ease) both; }
.pntodo { display: flex; flex-wrap: wrap; gap: 8px; }
.pntd { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.pntd svg { width: 14px; height: 14px; flex: none; color: var(--fg); }
.pntops { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.pntop { display: grid; gap: 10px; align-content: start; padding: 14px; border: 1px solid var(--line); }
.pntop h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.pntop h4 svg { width: 14px; height: 14px; }
.pnbr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13px; }
.pnbr > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnbr em { font-style: normal; font-family: var(--mono); color: var(--dim); }
.pnbr .pnbar { grid-column: 1 / -1; height: 4px; }
.pnrecent { border: 1px solid var(--line); }
.pnrec { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); transition: background .2s; }
.pnrec:last-child { border-bottom: 0; }
.pnrec:hover { background: var(--panel); }
.pnrec .pi { flex: none; width: 34px; height: 50px; background: var(--s1) center / cover no-repeat; }
.pnrec .pt { flex: 1; min-width: 0; }
.pnrec .pt b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnrec .pt small { display: block; color: var(--dim); font-family: var(--mono); font-size: 11px; }
.pnrec svg { flex: none; width: 16px; height: 16px; color: var(--dim); }
.pnl .jrow { align-items: center; padding: 10px 14px; }
.pnl .jic { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--dim); }
.pnl .jic svg { width: 14px; height: 14px; }
.pnl .jlist { max-height: 380px; }
.pnl .srcrow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.pnl .srcrow:hover { border-color: var(--acc); background: var(--panel); }
.pnl .srcn { width: 22px; font-family: var(--mono); color: var(--dim); }
.pnl .srcnm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pnsrc { display: grid; gap: 6px; max-width: 560px; }
@media (max-width: 720px) {
  .pnt { flex-direction: column; justify-content: center; gap: 4px; padding: 12px 4px; text-align: center; }
  .pnt .l { font-size: 13px; letter-spacing: .02em; max-width: 100%; }
  .pnt em { display: none; }
  .pnrole { margin-left: 0; }
  .pnch { padding: 14px 14px; }
  .pncb { padding: 16px 14px 18px; }
  .pnst b { font-size: 34px; }
}
@media (max-width: 480px) { .pnseg { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pnc, .pnquick, .pntabs, .pnbar i { animation: none; } }

/* ===== Bouton Lire des épisodes (refonte) ===== */
.ep .act .btn.eplay[data-playep] { position: relative; display: inline-flex; align-items: stretch; gap: 0; padding: 0; min-width: 150px; min-height: 50px; overflow: hidden; font-size: 15px; letter-spacing: .12em; }
.ep .act .btn.eplay .pi { flex: none; width: 50px; display: grid; place-items: center; background: var(--bg); color: var(--fg); transition: background .25s, color .25s, transform .3s var(--ease); }
.ep .act .btn.eplay .pi svg { width: 18px; height: 18px; margin-left: 2px; transition: transform .3s var(--ease); }
.ep .act .btn.eplay .t { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 24px; }
.ep .act .btn.eplay:hover .pi { background: var(--acc); color: var(--on-acc); }
.ep .act .btn.eplay:hover .pi svg { transform: scale(1.2); }
.ep.next .act .btn.eplay { background: #7dd3fc; border-color: var(--sky); color: #082f49; }
.ep.next .act .btn.eplay .pi { background: #082f49; color: var(--sky); }
.ep.next .act .btn.eplay:hover { background: transparent; color: var(--sky); }
.ep.next .act .btn.eplay:hover .pi { background: #7dd3fc; color: #082f49; }
@media (max-width: 720px) { .ep .act .btn.eplay[data-playep] { flex: 1 1 auto; min-height: 52px; } }

/* ===== Pied de page : boutons admin + volet ===== */
body.admin .btn.admin-only { display: inline-flex !important; }
footer .links .btn { text-decoration: none; padding: 11px 22px; }
footer .links .btn svg { width: 18px; height: 18px; flex: none; }
footer .links .btn:not(.ghost) { color: var(--on-acc); }
footer .links .btn:not(.ghost):hover { color: var(--fg); }
footer .links .btn.ghost { color: var(--fg); }
footer .links .btn.ghost:hover { color: var(--on-acc); }
.volet { position: fixed; inset: 0; z-index: 96; }
.volet[hidden] { display: none; }
.vo-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.volet.show .vo-back { opacity: 1; }
.vo-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%); display: flex; flex-direction: column; background: var(--s0); border-left: 1px solid #3a3a3a; box-shadow: -24px 0 60px rgba(0, 0, 0, .7); transform: translateX(100%); transition: transform .4s var(--ease); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.volet.show .vo-panel { transform: none; }
.vo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.vo-head b { display: block; font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: .03em; text-transform: uppercase; line-height: 1; }
.vo-head small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.vo-x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); border-radius: 0; color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.vo-x:hover { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.vo-list { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 8px; padding: 16px 20px 24px; }
.vo-lbl { margin: 8px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.vo-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; background: transparent; border: 1px solid var(--line); border-radius: 0; color: var(--fg); text-align: left; text-decoration: none; cursor: pointer; transition: border-color .25s, background .25s, transform .3s var(--ease); }
.vo-item[hidden] { display: none; }
.vo-item:hover { border-color: var(--acc); background: var(--panel); transform: translateX(4px); }
.vo-item .ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--dim); transition: background .25s, color .25s, border-color .25s; }
.vo-item .ic svg { width: 20px; height: 20px; }
.vo-item:hover .ic { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.vo-item .tx { flex: 1; min-width: 0; }
.vo-item .tx b { display: block; font-size: 15px; line-height: 1.25; }
.vo-item .tx small { display: block; margin-top: 2px; color: var(--dim); font-size: 12px; line-height: 1.4; }
.vo-item .ar { flex: none; color: var(--dim); transition: transform .25s var(--ease), color .25s; }
.vo-item:hover .ar { transform: translateX(3px); color: var(--fg); }
.vo-item.danger { border-color: #3a3a3a; }
.vo-item.danger .tx b { color: var(--dim); }
.vo-item.danger:hover .tx b { color: var(--fg); }
.volet.show .vo-item { animation: rmitem .45s calc(120ms + var(--i, 0) * 60ms) var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .vo-panel, .vo-back { transition: opacity .15s; } .volet.show .vo-item { animation: none; } }

/* ===== Bouton Partager des fiches ===== */
.btn.share { position: relative; overflow: visible; }
.btn.share svg { width: 18px; height: 18px; flex: none; }
.btn.share .shok { display: none; }
.btn.share .shic .c { transform-box: fill-box; transform-origin: center; }
.btn.share.go .shic .c { animation: shnode .55s var(--ease) both; }
.btn.share.go .shic .c:nth-of-type(2) { animation-delay: .08s; }
.btn.share.go .shic .c:nth-of-type(3) { animation-delay: .16s; }
@keyframes shnode { 0% { transform: scale(1); } 40% { transform: scale(1.7); } 100% { transform: scale(1); } }
.btn.share::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--sky); opacity: 0; pointer-events: none; }
.btn.share.go::after { animation: shring .8s ease-out; }
@keyframes shring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3, 1.9); } }
.btn.share.ok { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.btn.share.ok .shic { display: none; }
.btn.share.ok .shok { display: block; animation: shpop .5s var(--ease) both; }
@keyframes shpop { 0% { transform: scale(.3) rotate(-25deg); opacity: 0; } 60% { transform: scale(1.3) rotate(6deg); opacity: 1; } 100% { transform: none; } }
.shp { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; background: #7dd3fc; pointer-events: none; transform: translate(-50%, -50%); animation: shp .75s ease-out forwards; }
.shp:nth-child(3n) { background: #86efac; }
.shp:nth-child(3n+1) { background: var(--acc); }
@keyframes shp { to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(200deg) scale(.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn.share.go .shic .c, .btn.share.go::after, .shp, .btn.share.ok .shok { animation: none; } .shp { display: none; } }

.admin-only { display: none !important; }
body.admin .admin-only { display: revert !important; }
body.admin nav a.admin-only { display: inline-flex !important; }
@media (min-width: 721px) { header.top nav { margin-left: 32px; } }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--acc); color: var(--on-acc); padding: 10px 20px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s; z-index: 400; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 720px) {
  /* en-tête : logo à gauche, menu à droite, recherche pleine largeur dessous */
  header.top .wrap { flex-wrap: wrap; gap: 6px 12px; min-height: 0; padding-top: 10px; padding-bottom: 12px; }
  .logo { font-size: 26px; }
  nav { margin-left: auto; gap: 18px; font-size: 12px; }
  nav a { padding: 8px 0; }
  .search { order: 3; flex: 1 0 100%; width: 100%; margin-left: 0; margin-right: 0; }
  .search input[type=text] { font-size: 16px; padding: 12px 14px 12px 42px; }
  .search:focus-within { width: 100%; }
  .search input[type=text]:focus { border-color: var(--acc); }

  /* boutons plus faciles à toucher */
  .btn { min-height: 44px; padding: 10px 18px; }
  .btn.small { min-height: 38px; padding: 8px 14px; }
  .chip { padding: 8px 14px; }
  .hero .row, .detail .row { gap: 10px; }
  .hero .row .btn, .detail .row .btn { flex: 1 1 140px; }

  /* accueil */
  .hero { min-height: 0; }
  .hero .wrap { padding-top: 150px; padding-bottom: 40px; }
  .hero h1 { font-size: 44px; margin-bottom: 12px; }
  .hero p { margin-bottom: 20px; font-size: 15px; }
  .section-head { padding-top: 28px; padding-bottom: 14px; }
  .section-head h2 { font-size: 24px; }
  .listhead { padding-top: 28px; }
  .listhead h1 { font-size: 44px; }
  .rail { gap: 12px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail .card { flex-basis: 128px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 20px 12px; padding-bottom: 16px; }
  .card .meta b { font-size: 14px; }
  .card .meta span { font-size: 11px; }
  #app > .rail-sec:last-child { padding-bottom: 16px; }

  /* fiche */
  .detail .wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; padding-bottom: 32px; }
  .detail .poster { width: 150px; max-width: 150px; }
  .detail h1 { font-size: 40px; }
  .detail p.ov { font-size: 15px; margin-bottom: 20px; }
  .cast { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); column-gap: 14px; }
  .seasons { padding-bottom: 48px; }
  details.season summary { font-size: 20px; padding: 16px 0; }
  details.season summary:hover { padding-left: 0; }
  .ep { grid-template-columns: 30px minmax(0, 1fr); gap: 4px 12px; }
  .ep .act, .seasons.dlmode .ep .dlact { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; }

  /* éditeur */
  .page { padding-top: 28px; padding-bottom: 64px; }
  .findbox .btn { flex: 1 1 auto; }
  .form { gap: 16px; }
  .preview { grid-template-columns: 90px minmax(0, 1fr); }
  .tpl { grid-template-columns: minmax(0, 1fr); }
  .tpl .btn { width: 100%; }
  .bulk { padding: 12px; }
  .bulkrow .btn { flex: 1 1 auto; }
  .epedit summary { padding: 12px; }
  .eprow { grid-template-columns: 30px minmax(0, 1fr); padding: 8px 12px; }
  .eprow .t { grid-column: 2; }
  .eprow textarea { grid-column: 1 / -1; }
  .bar .btn { flex: 1 1 auto; }

  /* lecteur */
  dialog#player { width: 100vw; max-width: 100vw; border-left: 0; border-right: 0; }
  .phead { padding: 10px 12px; gap: 8px; }
  .phead b { max-width: 100%; flex: 1 0 100%; }
  .srcs { flex: 1 0 100%; }
  .phead .row { flex: 1 0 100%; gap: 8px; }
  .phead .row .btn { flex: 1 1 auto; min-height: 38px; padding: 8px 6px; font-size: 11px; letter-spacing: .03em; }

  /* pied de page */
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* lecteur plein écran façon streaming */
dialog#player { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; border: 0; display: none; flex-direction: column; overflow: hidden; }
dialog#player[open] { display: flex; }
dialog#player .phead { flex-wrap: nowrap; gap: 16px; padding: max(10px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--bg); }
.phead .pt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.phead .pt b { max-width: 100%; font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .03em; }
.phead .pt small { color: var(--dim); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phead .pt small:empty { display: none; }
.phead .row { flex: 0 0 auto; flex-wrap: nowrap; }
dialog#player .pframe { flex: 1; min-height: 0; aspect-ratio: auto; background: var(--bg); }
dialog#player:not(.wide) .pframe { margin-left: env(safe-area-inset-left, 0px); margin-right: env(safe-area-inset-right, 0px); }
.pbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); background: var(--s0); }
.pbar .ptip { --c: var(--fg); position: relative; flex: 0 0 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 58px; overflow: hidden; background: var(--s0); border: 1px solid var(--line); border-left: 3px solid var(--c); font-size: 13px; color: var(--dim); transition: border-color .3s; }
.ptip .tico { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); transition: color .3s, background .3s, border-color .3s; }
.ptip .tico svg { width: 19px; height: 19px; }
.ptip .tbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.ptip #tlbl { color: var(--c); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: color .3s; }
.ptip p { margin: 0; color: #cfcfcf; animation: tipIn .35s ease both; }
.ptip b { color: var(--fg); font-family: var(--mono); font-size: 11px; padding: 1px 5px; border: 1px solid var(--line); background: var(--s1); }
.ptip a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.ptip .tnav { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.ptip .tdots { display: flex; gap: 5px; }
.ptip .tdots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .25s, transform .25s; }
.ptip .tdots i.on { background: var(--c); transform: scale(1.35); }
.ptip .tprog { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, rgba(255,255,255,.15), rgba(255,255,255,.75) 70%, #fff); box-shadow: 0 0 6px 1px rgba(255,255,255,.55), 0 0 16px 2px rgba(255,255,255,.22); }
.ptip .tprog::after { content: ""; position: absolute; right: -1px; top: -2px; width: 14px; height: 6px; background: radial-gradient(ellipse at center, #fff 0%, rgba(255,255,255,.6) 35%, transparent 72%); filter: blur(.6px); }
.ptip .tprog.run { animation: tipProg 9s linear forwards; }
@keyframes tipIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes tipProg { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ptip p { animation: none; } .ptip .tprog.run { animation: none; } }
@media (max-width: 600px) { .ptip .tdots { display: none; } .pbar .ptip { gap: 10px; padding: 9px 10px; } .ptip .tico { width: 32px; height: 32px; } }
.tbtn { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--dim); cursor: pointer; border-radius: 0; transition: color .2s, border-color .2s; }
.tbtn svg { width: 16px; height: 16px; }
.tbtn:hover { color: var(--fg); border-color: var(--dim); }
.pbar .pl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.pbar .srcs { flex: 0 1 auto; }
/* Mobile, plus de 3 serveurs : un seul bouton qui déroule la liste */
.srctoggle { display: none; }
@media (max-width: 720px) {
  .pbar .pl { flex: 1 0 100%; width: 100%; }
  .pbar .pl .srcs.many { flex: 1 0 100%; width: 100%; }
  .srcs.many .srctoggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 14px 16px; border: 1px solid var(--acc); background: transparent; color: var(--fg); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; cursor: pointer; border-radius: 0; text-align: left; }
  .srctoggle .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
  .srctoggle .cnt { font-family: var(--mono); color: var(--dim); }
  .srctoggle svg { width: 14px; height: 14px; flex: none; transition: transform .25s var(--ease); }
  .srctoggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .srcs.many:not(.open) .chip { display: none; }
  .srcs.many.open .chip { flex: 1 1 calc(50% - 6px); padding: 13px 14px; text-align: left; }
}
.pbar .pone { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; font-size: 13px; color: var(--dim); }
.pbar .pone a { color: var(--fg); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
#pone, #pone2 { gap: 8px; padding: 8px 12px; border: 1px solid var(--acc); }
#pone > svg, #pone2 > svg { width: 16px; height: 16px; flex: none; color: var(--fg); }
.rbtn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--acc); background: transparent; color: var(--fg); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border-radius: 0; transition: background .2s, color .2s; }
.rbtn:hover { background: var(--acc); color: var(--on-acc); }
.rbtn svg { width: 15px; height: 15px; flex: none; }
.pbar .pone .repok { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--grn); color: var(--grn); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
/* fenêtre de signalement */
dialog#reportdlg { width: min(460px, 94vw); padding: 0; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
dialog#reportdlg[open] { animation: dialogIn .3s var(--ease) both; }
dialog#reportdlg::backdrop { background: rgba(0,0,0,.85); }
.rbox h2 { font-size: clamp(30px, 7vw, 42px); }
.rbox .what { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--dim); overflow-wrap: anywhere; }
.ropts { display: grid; gap: 10px; }
.ropt { display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 14px; text-align: left; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: inherit; cursor: pointer; border-radius: 0; transition: border-color .2s, background .2s; }
.ropt:hover:not(:disabled) { border-color: var(--acc); background: var(--s1); }
.ropt:disabled { opacity: .5; cursor: wait; }
.ropt svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.ropt b { display: block; font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ropt small { display: block; margin-top: 3px; font-size: 13px; color: var(--dim); }
.rbox .rpmsg { min-height: 1.3em; font-size: 14px; }
.rbox .rpmsg.ok { color: var(--grn); font-weight: 700; }
.rbox .rpmsg.err { color: #ff8a8a; }
.pbar .pn { display: flex; gap: 8px; margin-left: auto; }
.pbar .btn:disabled { opacity: .3; pointer-events: none; }
dialog#player.wide .pbar { display: none; }
#peplist svg { width: 16px; height: 16px; flex: 0 0 auto; }
#pprev, #pnext { gap: 9px; white-space: nowrap; }
#pprev svg, #pnext svg { width: 15px; height: 15px; flex: 0 0 auto; transition: transform .25s var(--ease); }
#pprev:hover:not(:disabled) svg { transform: translateX(-4px); }
#pnext:hover:not(:disabled) svg { transform: translateX(4px); }
#pprev:active:not(:disabled) svg { transform: translateX(-7px); }
#pnext:active:not(:disabled) svg { transform: translateX(7px); }
#pprev:disabled, #pnext:disabled { opacity: .35; cursor: not-allowed; }

/* panneau « Épisodes » dans le lecteur */
.peps { position: absolute; z-index: 6; top: 0; right: 0; bottom: 0; width: min(400px, 100%); display: flex; flex-direction: column; background: rgba(5,5,5,.97); border-left: 1px solid var(--line); animation: epsIn .25s var(--ease) both; }
.peps[hidden] { display: none; }
@keyframes epsIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.peps .eh { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(14px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px 16px; border-bottom: 1px solid var(--line); }
.peps .eh b { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .03em; }
.peps .es { flex: 0 0 auto; display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.peps .es::-webkit-scrollbar { display: none; }
.peps .es .chip { flex: 0 0 auto; white-space: nowrap; }
.peps .el { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); scrollbar-width: thin; scrollbar-color: #333 transparent; }
.epi { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px 16px; color: var(--fg); cursor: pointer; border-radius: 0; transition: background .2s, color .2s; }
.epi:hover { background: var(--s1); }
.epi .en { flex: 0 0 auto; min-width: 2.2ch; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.epi .et { flex: 1; min-width: 0; font-size: 14px; }
.epi .ec { flex: 0 0 auto; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.epi.on { background: var(--acc); color: var(--on-acc); }
.peps .eht { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.peps .eht small { color: var(--dim); font-size: 12px; font-family: var(--mono); letter-spacing: .04em; }
.eprog { flex: 0 0 auto; height: 3px; background: var(--line); }
.eprog > i { display: block; height: 100%; width: 0; background: #86efac; transition: width .45s var(--ease); }
.peps .es .chip small { font-family: var(--mono); font-size: 10px; opacity: .6; margin-left: 6px; }
.peps .ef { flex: 0 0 auto; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.peps .ef[hidden] { display: none; }
.peps .ef input { width: 100%; box-sizing: border-box; background: var(--s0); border: 1px solid var(--line); color: var(--fg); padding: 9px 12px; font: inherit; font-size: 13px; border-radius: 0; outline: 0; transition: border-color .2s; }
.peps .ef input:focus { border-color: var(--dim); }
.epi .ei { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--dim); transition: color .2s, border-color .2s, background .2s; }
.epi .ei svg { width: 14px; height: 14px; }
.epi.seen .ei { color: var(--grn); border-color: color-mix(in srgb, var(--grn) 40%, transparent); background: color-mix(in srgb, #86efac 10%, transparent); }
.epi.on .ei { color: var(--on-acc); border-color: var(--bg); background: transparent; }
.epi.next { box-shadow: inset 3px 0 0 var(--sky); }
.epi.next .ei { color: var(--sky); border-color: var(--sky); }
.epi.next .ec { color: var(--sky); }
.epi.on .ec { font-weight: 700; }
.peps .el .epi { animation: tipIn .3s ease both; }
@media (prefers-reduced-motion: reduce) { .peps .el .epi { animation: none; } }
.epi.on .en { color: #444; }
dialog#player.wide { display: flex; }

/* recherche : suggestions sous la barre, sans filtres */
.sugg { position: absolute; top: calc(100% + 8px); right: 0; width: min(400px, 92vw); background: var(--s0); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.7); z-index: 30; max-height: 70vh; overflow-y: auto; }
.sugg[hidden] { display: none; }
.sg { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); transition: background .15s; }
.sg:hover, .sg:focus-visible { background: var(--s1); }
.sgp { flex: 0 0 40px; aspect-ratio: 2 / 3; background: var(--panel); overflow: hidden; }
.sgp img { width: 100%; height: 100%; object-fit: cover; }
.sgt { min-width: 0; display: flex; flex-direction: column; }
.sgt b { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgt small { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.sg.all { justify-content: center; font-size: 13px; color: var(--dim); border-bottom: 0; }
.sgn { margin: 0; padding: 14px 12px; color: var(--dim); font-size: 14px; }
/* demande : titre confirmé via TMDB */
.rqwrap { position: relative; }
.sugg.tsug { left: 0; right: 0; width: auto; top: calc(100% + 4px); max-height: 340px; }
.tsug .sg { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.tsug .sg:hover, .tsug .sg.on { background: var(--s1); }
.tsug .sgt { flex: 1; }
.tsug .sgt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tsug .sgn.err { color: #f0a0a0; }
#reqok { margin: 0; min-height: 1.4em; }
#reqok.ok { color: var(--grn); }
input[readonly].auto { color: var(--dim); cursor: not-allowed; }
@media (max-width: 720px) {
  .sugg { left: 0; right: 0; width: auto; }
  dialog#player .phead { gap: 8px; }
  .phead .pt b { font-size: 19px; }
  .pbar .pn { width: 100%; }
  .pbar .pn .btn { flex: 1 1 0; }
  .pbar .pn #peplist { flex: 0 0 auto; padding-inline: 14px; }
  #peplist span { display: none; }
}

/* flèches de défilement (PC) */
.railwrap { position: relative; }
.arw { display: none; position: absolute; top: 50%; z-index: 6; width: 48px; height: 128px; padding: 0; border: 0; border-radius: 0; align-items: center; justify-content: center; color: rgba(255,255,255,.9); background: linear-gradient(to bottom, rgba(23,23,23,.95), rgba(0,0,0,.95), rgba(23,23,23,.95)); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 25px 50px -12px rgba(0,0,0,.7); cursor: pointer; opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease), color .3s, box-shadow .3s; }
.arw svg { width: 28px; height: 28px; }
.arw.prev { left: 8px; transform: translateY(-50%) translateX(-8px); }
.arw.next { right: 8px; transform: translateY(-50%) translateX(8px); }
.railwrap:hover .arw, .arw:focus-visible { opacity: 1; transform: translateY(-50%); }
.arw:hover { color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.45), 0 25px 50px -12px rgba(0,0,0,.7); }
.arw.off { opacity: 0 !important; pointer-events: none; }
.railwrap .arw { top: 41%; }
@media (min-width: 768px) { .arw { display: flex; } }

/* pas de défilement de la page derrière le lecteur */
html.lock, html.lock body { overflow: hidden; }
html:has(dialog#player[open]), html:has(dialog#player[open]) body { overflow: hidden; }
dialog#player { overflow: hidden; scrollbar-width: none; overscroll-behavior: contain; }
dialog#player::-webkit-scrollbar { display: none; }

/* rangées : pas de barre de défilement visible (flèches, molette et doigt suffisent) */
.rail { scrollbar-width: none; -ms-overflow-style: none; }
.rail::-webkit-scrollbar { display: none; }

/* reprendre */
.card .poster .rdel { position: absolute; z-index: 2; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s, background .2s; }
.card:hover .rdel, .card .rdel:focus-visible { opacity: 1; }
.card .rdel:hover { background: var(--bg); }
@media (hover: none) { .card .poster .rdel { opacity: 1; } }
button.more { background: none; border: 0; padding: 0; cursor: pointer; }
.card .poster .rtag { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 7px 10px; background: #fff; color: #000; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* écrans de chargement : cartes grises animées */
.sk { background: linear-gradient(100deg, var(--panel) 30%, var(--s1) 50%, var(--panel) 70%) 0 0 / 250% 100%; animation: skShine 1.4s linear infinite; border-radius: 0; }
@keyframes skShine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-hero { height: clamp(260px, 46vh, 460px); border-bottom: 1px solid var(--line); }
.sk-h { width: 180px; height: 26px; margin: 28px 0 16px; }
.sk-h.big { width: 240px; height: 40px; margin: 32px 0 20px; }
.sk-rail { display: flex; gap: 16px; overflow: hidden; }
.skc { flex: 0 0 168px; min-width: 0; display: grid; gap: 8px; align-content: start; }
.grid .skc { flex: none; }
.skc .poster { border-color: transparent; }
.sk-l { height: 12px; width: 85%; }
.sk-l.s { width: 50%; }
.sk-row { height: 74px; margin-bottom: 8px; }
.sk-detail { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; padding-block: 40px; }
.sk-detail .skposter { aspect-ratio: 2 / 3; }
.sk-col { display: grid; gap: 14px; align-content: start; }
.sk-col .sk-l { width: 100%; height: 14px; }
.sk-col .sk-l.t { width: 60%; height: 38px; }
.sk-col .sk-l.s { width: 40%; }
.sk-col .sk-btn { width: 160px; height: 44px; }
@media (max-width: 720px) { .sk-detail { grid-template-columns: minmax(0, 1fr); } .sk-detail .skposter { max-width: 220px; } .skc { flex-basis: 140px; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* barre d'onglets du bas : seulement dans l'appli installée, sur mobile */
.tabbar { display: none; }
@media (max-width: 720px) {
  html.standalone body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  html.standalone .tabbar { display: flex; position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; gap: 0; padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); background: rgba(0,0,0,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
  .tabbar a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 9px 2px 8px; color: var(--dim); position: relative; transition: color .2s; -webkit-tap-highlight-color: transparent; }
  .tabbar a::after { content: ""; position: absolute; left: 28%; right: 28%; top: -1px; bottom: auto; height: 2px; background: var(--acc); transform: scaleX(0); transition: transform .25s var(--ease); }
  .tabbar a.on { color: var(--fg); }
  .tabbar a.on::after { transform: scaleX(1); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a span { line-height: 1; white-space: nowrap; }
  html.standalone .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  html.standalone .bar { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
}

/* petit onglet « Demande » : faire une demande ou voir les demandes en cours */
.reqmenu { position: fixed; inset: 0; z-index: 95; }
.reqmenu[hidden] { display: none; }
.rm-back { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s ease; }
.reqmenu.show .rm-back { opacity: 1; }
.rm-card { position: absolute; width: 340px; background: var(--s0); border: 1px solid #3a3a3a; box-shadow: 0 24px 60px rgba(0,0,0,.7); overflow: hidden; opacity: 0; transform: translateY(-10px) scale(.94); transform-origin: 30px -10px; filter: blur(6px); transition: opacity .22s ease, transform .4s cubic-bezier(.2,.9,.3,1.25), filter .3s ease; }
.reqmenu.show .rm-card { opacity: 1; transform: none; filter: none; }
.rm-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); transform: translateX(-100%); }
.reqmenu.show .rm-card::before { animation: rmsweep .9s .1s ease-out both; }
@keyframes rmsweep { to { transform: translateX(100%); } }
.rm-title { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 16px 18px 12px; }
.rm-opt { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); transition: background .25s; -webkit-tap-highlight-color: transparent; }
.reqmenu.show .rm-opt { animation: rmitem .45s calc(120ms + var(--i, 0) * 80ms) var(--ease) both; }
@keyframes rmitem { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.rm-opt .ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); transition: background .25s, color .25s, border-color .25s, transform .35s cubic-bezier(.2,.9,.3,1.4); }
.rm-opt .ic svg { width: 20px; height: 20px; }
.rm-opt b { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; }
.rm-opt small { display: block; margin-top: 3px; font-size: 12px; color: var(--dim); }
.rm-opt .ar { margin-left: auto; font-family: var(--mono); font-size: 18px; opacity: .5; transition: transform .3s var(--ease), opacity .3s; }
.rm-opt:hover, .rm-opt:focus-visible { background: var(--s1); }
.rm-opt:hover .ic, .rm-opt:focus-visible .ic { background: var(--acc); color: var(--on-acc); border-color: var(--acc); transform: rotate(-8deg) scale(1.08); }
.rm-opt:hover .ar, .rm-opt:focus-visible .ar { transform: translateX(5px); opacity: 1; }
@media (max-width: 720px) {
  .rm-card { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto !important; border-width: 1px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); transform: translateY(100%); transform-origin: bottom; filter: none; }
  .reqmenu.show .rm-card { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .rm-card, .rm-back { transition: opacity .15s; transform: none !important; filter: none; } .reqmenu.show .rm-opt, .reqmenu.show .rm-card::before { animation: none; } }
/* plateformes et demandes */
/* plateformes : le nom s'écrit dans le style de la marque (pas de logo) */
.wm { display: inline-block; font-family: var(--display); font-weight: 900; letter-spacing: .05em; text-transform: uppercase; line-height: 1; white-space: nowrap; color: var(--pc, var(--fg)); }
.platrow { flex-direction: column; align-items: flex-start; gap: 8px; }
.platall { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; animation: platin .2s ease-out; }
@keyframes platin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.chip.plattab { display: inline-flex; align-items: center; gap: 10px; }
.chip.plattab.has, .chip.plattab.open { color: var(--fg); border-color: var(--dim); }
.chip.plattab .platcur .wm { font-size: 15px; }
.chip.plattab .caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.chip.plattab.open .caret { transform: translateY(1px) rotate(-135deg); }
.chip.pchip { padding: 6px 14px; display: inline-flex; align-items: center; min-height: 34px; }
.chip.pchip .wm { font-size: 18px; }
.chip.pchip:hover { border-color: var(--pc, var(--dim)); }
.chip.pchip.on { background: var(--s1); border-color: var(--pc, var(--acc)); box-shadow: inset 0 0 0 1px var(--pc, var(--fg)); }
.jlist { border: 1px solid var(--line); max-height: 340px; overflow-y: auto; }
.jrow { display: flex; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.jrow:last-child { border-bottom: 0; }
.jrow .jt { font-family: var(--mono); font-size: 11px; color: var(--dim); white-space: nowrap; padding-top: 2px; }
.jrow .jb { min-width: 0; overflow-wrap: anywhere; }
.jrow .jb small { color: var(--dim); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.stat { border: 1px solid var(--line); padding: 10px 12px; }
.stat b { display: block; font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; }
.stat span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.plats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 12px; }
.plats .plbl { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.plats .wm { font-size: 26px; }
.rqh { font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .03em; margin: 28px 0 12px; }
.rqrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 8px; }
.rqt { flex: 1 1 200px; min-width: 0; }
.rqt b { display: block; overflow-wrap: anywhere; }
.rqt span { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.rqs { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; line-height: 1; border: 1px solid var(--line); color: var(--dim); }
.rqs.ok { background: #86efac; border-color: var(--grn); color: #052e16; }
.rqa { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 0 100%; padding-top: 4px; border-top: 1px dashed var(--line); }
.rqp { width: 48px; aspect-ratio: 2 / 3; flex: none; background: var(--panel); overflow: hidden; }
.rqp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rqt small { display: block; font-size: 12px; color: var(--dim); }
.rqsearch { position: relative; flex: 1 1 260px; min-width: 0; }
.rqsearch input[type=text] { width: 100%; }
.rqadd { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.rqadd input[type=number] { width: 80px; }

/* proposition d'installer l'appli (même style que le message d'accueil) */
.pwa { position: fixed; z-index: 30; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: min(420px, calc(100vw - 24px)); background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-top: 2px solid var(--acc); padding: 18px 44px 18px 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; box-shadow: 0 18px 40px rgba(0,0,0,.7); animation: pwaIn .45s var(--ease) both; }
.pwa[hidden] { display: none; }
@keyframes pwaIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pwaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 50% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } }
.pwa .pi { width: 46px; height: 46px; display: grid; place-items: center; background: var(--acc); color: var(--on-acc); animation: pwaPulse 2.4s ease-in-out infinite; }
.pwa .pi svg { width: 24px; height: 24px; }
.pwa .pt { display: grid; gap: 5px; align-self: center; }
.pwa .ptag { justify-self: start; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: var(--acc); color: var(--on-acc); padding: 3px 6px; line-height: 1; }
.pwa h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1; text-transform: uppercase; }
.pwa p { grid-column: 1 / -1; margin: 6px 0 0; color: #cfcfcf; font-size: 14px; }
.pwa .row { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 10px; }
.pwa .row .btn svg { width: 16px; height: 16px; flex: none; }
.pwa .px { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; color: var(--dim); font-size: 24px; line-height: 1; cursor: pointer; }
.pwa .px:hover { color: var(--fg); }
@media (max-width: 720px) { .pwa { right: 12px; left: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .pwa, .pwa .pi { animation: none; } }

/* message d'accueil */
dialog#welcome { width: min(520px, 94vw); padding: 0; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
dialog#welcome[open] { animation: dialogIn .3s var(--ease) both; }
dialog#welcome::backdrop { background: rgba(0,0,0,.85); }
.wbox { padding: 32px 28px 28px; display: grid; gap: 16px; }
.wbox h2 { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 8vw, 48px); line-height: .95; text-transform: uppercase; margin: 0; }
.wbox p { margin: 0; color: #cfcfcf; }
.wbox .beta { justify-self: start; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: var(--acc); color: var(--on-acc); padding: 4px 8px; line-height: 1; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border: 1px solid var(--line); padding: 12px 14px; font-size: 14px; }
.contact b { font-family: var(--mono); font-weight: 500; }
.wbox .btn { justify-self: start; }
footer .wrap.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; align-items: start; justify-content: stretch; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.about h3 { font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; color: var(--fg); margin: 0 0 8px; }
.about p { margin: 0 0 12px; max-width: 60ch; }
.about .btn { text-decoration: none; }
.about .mail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-family: var(--mono); font-size: 12px; margin-top: 12px; word-break: break-all; }

/* badge « En cours » (séries toujours diffusées) */
.live { font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; background: #000; color: #fff; border: 1px solid #fff; line-height: 1; white-space: nowrap; }
.poster .live { position: absolute; z-index: 1; top: 8px; right: 8px; font-size: 10px; padding: 4px 6px; }
.tags .live { font-size: 12px; padding: 4px 8px; font-weight: 700; }
.tags .live::before, .tags .live + span::before { content: none !important; }

/* le badge « En cours » passe sous le badge de langue (mobile et PC) */
.poster .live { left: 8px; right: auto; }
.poster .lang + .live { top: 30px; }
.tags .lang { margin-right: 100%; }
.tags .live { margin-right: 100%; }

/* badge « Nouvel épisode » */
.new { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: #fff; color: #000; line-height: 1; white-space: nowrap; }
.new i { width: 5px; height: 5px; border-radius: 50%; background: #000; flex: 0 0 auto; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.poster .new { position: absolute; z-index: 1; top: 8px; left: 8px; font-size: 10px; padding: 4px 6px; }
.poster .lang + .new, .poster .live + .new { top: 30px; }
.poster .lang + .live + .new { top: 52px; }
.tags .new { font-size: 12px; padding: 5px 8px; margin-right: 100%; }
.tags .new::before, .tags .new + span::before { content: none !important; }
/* badge « Nouvelle série » / « Nouveau » (placé sous les autres badges) */
.nov { display: inline-flex; align-items: center; font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: #fde68a; color: #422006; line-height: 1; white-space: nowrap; }
.poster .nov { position: absolute; z-index: 1; left: 8px; font-size: 10px; padding: 4px 6px; }
.tags .nov { font-size: 12px; padding: 5px 8px; margin-right: 100%; }
.tags .nov::before, .tags .nov + span::before { content: none !important; }
/* badge « K-drama » (fiche) */
.kd { display: inline-flex; align-items: center; font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: #fbcfe8; color: #500724; line-height: 1; white-space: nowrap; }
.kd-J { background: #bfdbfe; color: #172554; }
.kd-C { background: #fecaca; color: #450a0a; }
.kd-T { background: #a7f3d0; color: #022c22; }
.tags .kd { font-size: 12px; padding: 5px 8px; margin-right: 100%; }
.tags .kd::before, .tags .kd + span::before { content: none !important; }
.ep b .new { font-size: 10px; padding: 4px 6px; margin-left: 8px; vertical-align: middle; }

/* épisodes vus */
.ep.seen .n, .ep.seen b { color: var(--dim); }
.btn.ghost.on { background: var(--acc); color: var(--on-acc); }
.btn.ghost.on:hover { background: transparent; color: var(--fg); }
.seasonbar { padding: 0 0 14px; }

/* onglet Regarder / Télécharger */
.tabs { display: inline-flex; border: 1px solid var(--line); }
.tab { background: transparent; border: 0; padding: 8px 18px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); cursor: pointer; border-radius: 0; transition: background .2s, color .2s; }
.tab + .tab { border-left: 1px solid var(--line); }
.tab:hover { color: var(--fg); }
.tab.on { background: var(--acc); color: var(--on-acc); }
.dlbar, .dlonly, .ep .dlact, .dlstat { display: none; }
.seasons.dlmode .seasonbar, .seasons.dlmode .ep .act { display: none; }
.seasons.dlmode .dlbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 14px; }
.seasons.dlmode .dlonly { display: block; padding-bottom: 14px; }
.seasons.dlmode .ep .dlact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
/* ===== fiche : épisodes & téléchargement ===== */
.sprog { height: 3px; background: var(--line); margin: 0 0 14px; }
.sprog i { display: block; height: 100%; width: 0; background: #86efac; transition: width .45s var(--ease); }
.seasons.dlmode .sprog { display: none; }
.ep { padding-left: 12px; padding-right: 12px; transition: background .2s; }
@media (hover: hover) { .ep:hover { background: var(--s0); } }
.ep .n { font-size: 15px; font-weight: 700; }
.ep small:not(.d) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; line-height: 1.5; }
.ep small:not(.d).open { -webkit-line-clamp: unset; display: block; }
.ep.next { box-shadow: inset 3px 0 0 var(--sky); background: linear-gradient(90deg, rgba(125,211,252,.08), transparent 55%); }
.ep.next .n { color: var(--sky); }
.ep.next b::after { content: "À suivre"; margin-left: 8px; padding: 3px 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #082f49; background: #7dd3fc; vertical-align: middle; }
.seasons.dlmode .ep.next { box-shadow: none; background: none; }
.seasons.dlmode .ep.next .n { color: var(--dim); }
.seasons.dlmode .ep.next b::after { content: none; }
.ep .act .off { padding: 5px 8px; border: 1px dashed #333; }
.seenbtn { display: inline-flex; align-items: center; gap: 6px; }
.seenbtn .dlic { width: 14px; height: 14px; }
.seenbtn.on { background: transparent; color: var(--grn); border-color: color-mix(in srgb, var(--grn) 45%, transparent); }
.seenbtn.on:hover { background: transparent; color: var(--grn); }
.dlm { margin-left: 4px; padding: 2px 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; background: rgba(5,46,22,.14); }
.seasons.dlmode .dlstat { display: flex; align-items: center; gap: 8px; padding: 0 0 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--dim); }
.dlstat i { width: 8px; height: 8px; border-radius: 50%; background: #444; }
.dlstat i.all { background: #86efac; } .dlstat i.part { background: #fcd34d; }
.seasons.dlmode .dlbar { padding: 12px; margin-bottom: 14px; border: 1px solid color-mix(in srgb, var(--grn) 35%, transparent); background: color-mix(in srgb, #86efac 6%, transparent); }
.seasons.dlmode .ep .dlact .off { font-size: 11px; }
.epi.seen .et { color: var(--dim); }
.epi.seen.on .et { color: var(--on-acc); }
/* fenêtre de téléchargement */
.dlmodal { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.8); display: grid; place-items: center; padding: 16px; }
.dlmodal[hidden] { display: none; }
.dlcard { position: relative; width: 100%; max-width: 480px; background: var(--bg); border: 1px solid var(--acc); padding: 28px 24px 24px; }
.dlcard h3 { margin: 0 32px 14px 0; font-size: 16px; line-height: 1.3; }
.dlx { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; background: transparent; border: 0; color: var(--fg); font-size: 26px; line-height: 1; cursor: pointer; }
.dlmeta { display: flex; gap: 24px; margin-bottom: 14px; }
.dlmeta[hidden] { display: none; }
.dlmeta span { font-size: 15px; font-weight: 700; }
.dlmeta i { display: block; font-style: normal; font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
.dllink { border: 1px solid var(--line); padding: 12px; font-size: 13px; word-break: break-all; user-select: all; color: var(--dim); margin-bottom: 16px; }
.dlbtns { display: flex; gap: 10px; flex-wrap: wrap; }
.dlad { border: 1px dashed var(--dim); padding: 16px; margin-bottom: 4px; }
.dlad[hidden], .dllink[hidden], .dlbtns[hidden] { display: none; }
.dlad p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #cfcfcf; }
.dlad p b { color: var(--fg); }
.dlad .btn { width: 100%; }
.dlad .btn[disabled] { opacity: .5; cursor: wait; }
#refreshall:disabled { opacity: .5; cursor: wait; }
.dlbtns .btn { flex: 1; text-align: center; justify-content: center; }
@keyframes dlfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dlpop { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes dlitem { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dlmodal { animation: dlfade .2s ease-out; backdrop-filter: blur(4px); }
.dlmodal:not([hidden]) .dlcard { animation: dlpop .28s cubic-bezier(.2,.9,.3,1.2); }
.dlmodal:not([hidden]) .dlcard > * { animation: dlitem .3s ease-out backwards; }
.dlmodal:not([hidden]) .dlcard > :nth-child(3) { animation-delay: .05s; }
.dlmodal:not([hidden]) .dlcard > :nth-child(4) { animation-delay: .1s; }
.dlmodal:not([hidden]) .dlcard > :nth-child(5) { animation-delay: .15s; }
.dlx { transition: transform .2s; }
.dlx:hover { transform: rotate(90deg); }
.dllink { transition: border-color .2s, color .2s; }
.dllink:hover { border-color: var(--acc); color: var(--fg); }
.dlbtns .btn { transition: transform .15s, background .2s, color .2s; }
.dlbtns .btn:active { transform: scale(.96); }
.dlbtns .btn.ok { background: var(--acc); color: var(--on-acc); animation: dlpop .25s ease-out; }
@media (prefers-reduced-motion: reduce) { .dlmodal, .dlcard, .dlcard > * { animation: none !important; } }
/* bouton Lire des épisodes : bien plus grand */
.ep .act .btn[data-playep] { padding: 13px 34px; font-size: 16px; min-width: 130px; min-height: 48px; }
.sres .card { animation: none; }
@media (max-width: 720px) {
  .ep .act .btn[data-playep] { flex: 1 1 auto; min-height: 52px; font-size: 17px; padding: 14px 28px; }
}
.burger { display: none; }
@media (max-width: 720px) {
  .burger { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--acc); border-radius: 0; cursor: pointer; transition: background .2s, color .2s; }
  .burger svg { width: 22px; height: 22px; }
  .burger .x { display: none; }
  header.top.open .burger .x { display: block; }
  header.top.open .burger .b { display: none; }
  header.top.open .burger { background: var(--acc); color: var(--on-acc); }
  header.top nav { display: none; order: 2; flex: 1 0 100%; flex-direction: column; gap: 0; margin-left: 0; font-size: 14px; border-top: 1px solid var(--line); }
  header.top.open nav { display: flex; animation: fadeIn .2s ease both; }
  header.top nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  header.top nav a::after { display: none; }
  header.top nav a.on { color: var(--fg); }
}

/* Sélection de l'équipe : même langage que le hero (noir, mono, filets fins, pas de couleur) */
.team { padding-top: 8px; padding-bottom: 40px; }
.teambox { position: relative; overflow: hidden; border: 1px solid var(--line); min-height: 300px; display: flex; align-items: flex-end; background: var(--panel); }
.teambox .bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; opacity: .8; }
.teambox::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.65)); }
.teambox .in { position: relative; z-index: 1; padding: 32px; width: 100%; }
.teambox .tags { margin-bottom: 14px; }
.teambox h2 { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 6vw, 72px); line-height: .95; margin: 0 0 14px; text-transform: uppercase; text-wrap: balance; max-width: 16ch; }
.teambox p { max-width: 58ch; color: #cfcfcf; margin: 0 0 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.teambox.empty { min-height: 0; border-style: dashed; }
.teambox.empty::after { display: none; }
.teambox.empty p { margin-bottom: 16px; }
.teambox.edit { min-height: 0; }
.teambox.edit::after { display: none; }
.teambox.edit .in { max-width: 620px; display: grid; gap: 14px; }
.teambox.edit .tags { margin-bottom: 0; }
.teambox.edit select, .teambox.edit textarea { width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; }
.teambox.edit textarea { min-height: 90px; resize: vertical; }
.heroedit-btn { position: absolute; top: 16px; right: 16px; z-index: 5; }
.herorow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; }
.herorow .n { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.herorow .btn:disabled { opacity: .3; pointer-events: none; }
.teambox.edit label { display: grid; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 700px) { .teambox { min-height: 260px; } .teambox .in { padding: 22px 16px; } }
/* calendrier des K-dramas */
.calbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 24px 8px; }
/* écrans moyens : texte + icône gardés, un peu plus serrés pour laisser de la place à la recherche */
@media (min-width: 721px) and (max-width: 1000px) {
  nav { gap: 12px; font-size: 12px; letter-spacing: .04em; }
  nav a { gap: 5px; }
  nav a svg { width: 15px; height: 15px; }
}
.calbar .btn:disabled { opacity: .3; pointer-events: none; }
.calbar .calrange { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-left: auto; }
.calday { border-top: 1px solid var(--line); padding-block: 18px 6px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 24px; }
.calday:last-child { border-bottom: 1px solid var(--line); }
.calday h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.calday h3 small { display: block; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; color: var(--dim); margin-top: 4px; }
.calday.today h3::before { content: "Aujourd'hui"; display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; background: var(--acc); color: var(--on-acc); padding: 4px 6px; margin-bottom: 6px; line-height: 1; }
.calday.today h3 { display: block; }
.calday .none { margin: 0; color: var(--dim); font-size: 14px; padding-bottom: 12px; }
.calrows { display: grid; gap: 8px; padding-bottom: 12px; }
.calrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--line); padding: 8px; transition: border-color .2s, background .2s; }
.calrow:hover { border-color: var(--dim); background: var(--panel); }
.calrow .cp { width: 48px; aspect-ratio: 2 / 3; background: var(--panel); overflow: hidden; }
.calrow .cp img { width: 100%; height: 100%; object-fit: cover; }
.calrow .ct { min-width: 0; }
.calrow .ct b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calrow .ct span { display: block; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.calrow .ok { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #86efac; color: #052e16; padding: 4px 6px; line-height: 1; white-space: nowrap; }
@media (max-width: 720px) {
  .calday { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .calday h3 { font-size: 22px; }
  .calbar .calrange { margin-left: 0; flex: 1 0 100%; }
}

/* animation « + Ma liste » : petit rebond, onde et étincelles quand on ajoute un titre */
.btn[data-list] { position: relative; }
.btn[data-list].pop { animation: listpop .6s cubic-bezier(.2, .9, .3, 1.4); }
.btn[data-list].pop::after { content: ""; position: absolute; inset: -1px; border: 2px solid var(--acc); pointer-events: none; animation: listring .6s ease-out forwards; }
.btn[data-list] .spark { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); pointer-events: none; animation: listspark .6s ease-out forwards; }
@keyframes listpop { 0% { transform: scale(1); } 30% { transform: scale(.92); } 60% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes listring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.3, 1.9); } }
@keyframes listspark { from { opacity: 1; transform: translate(-50%, -50%) rotate(var(--a)) translateX(8px); } to { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateX(52px); } }

/* bandeau d'annonce (modifiable depuis /panel) */
.ann { position: relative; z-index: 21; display: flex; align-items: center; gap: 14px; padding: max(10px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--acc); color: var(--on-acc); font-size: 14px; line-height: 1.4; animation: annIn .4s var(--ease) both; }
.ann[hidden] { display: none; }
.ann .atag { flex: none; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--bg); color: var(--fg); padding: 4px 6px; line-height: 1; }
.ann .atx { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ann .atx a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; white-space: nowrap; }
.ann .ax { flex: none; width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; opacity: .65; transition: opacity .2s, transform .2s; }
.ann .ax:hover { opacity: 1; transform: rotate(90deg); }
.ann.k-new { background: #86efac; color: #052e16; }
.ann.k-new .atag { background: #052e16; color: var(--grn); }
.ann.k-maint { background: #fde68a; color: #422006; }
.ann.k-maint .atag { background: #422006; color: #fde68a; }
.ann.prev { animation: none; border: 1px solid var(--line); padding: 10px 12px; }
@keyframes annIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ann { animation: none; } }
@media (prefers-reduced-motion: reduce) { .btn[data-list] .spark { display: none; } }

/* fenêtre de téléchargement, version refaite : étiquette, titre, tuiles (qualité / taille / hébergeur), étapes, lien */
.dlmodal { place-items: center; }
.dlcard { max-width: 520px; padding: 22px 24px 24px; background: var(--s0); border: 1px solid #3a3a3a; border-top: 2px solid var(--grn); box-shadow: 0 30px 80px rgba(0,0,0,.8); }
.dlhead { display: flex; align-items: center; margin: 0 40px 14px 0; }
.dltag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: #86efac; color: #052e16; padding: 5px 8px; line-height: 1; }
.dltag .dlic { width: 14px; height: 14px; }
.dlcard h3 { margin: 0 0 18px; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 5vw, 34px); line-height: 1; text-transform: uppercase; letter-spacing: .02em; text-wrap: balance; overflow-wrap: anywhere; }
.dlmeta { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 18px; }
.dlmeta .dlt { border: 1px solid var(--line); background: var(--panel); padding: 10px 12px; min-width: 0; }
.dlmeta .dlt i { display: block; font-style: normal; font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.dlmeta .dlt b { display: block; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.dlsteps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 8px; }
.dlsteps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; transition: color .25s, border-color .25s; }
.dlsteps li i { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid currentColor; font-style: normal; font-size: 11px; }
.dlsteps li.on { color: var(--fg); border-color: var(--acc); }
.dlsteps li.done { color: var(--grn); border-color: rgba(134,239,172,.4); }
.dlad { display: grid; gap: 14px; padding: 18px; border: 1px dashed #555; margin-bottom: 0; }
.dlad .adt { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.dlad .adt svg { width: 18px; height: 18px; flex: none; }
.dlad p { margin: 0; }
.dllink { margin-bottom: 12px; padding: 14px; background: var(--panel); font-family: var(--mono); font-size: 12px; color: #cfcfcf; }
.dlbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dlbtns[hidden] { display: none; }
#dlm-open { background: #86efac; border-color: var(--grn); color: #052e16; }
#dlm-open:hover { background: transparent; color: var(--grn); }
#dlm-open .dlic { width: 1.1em; height: 1.1em; }
.dlfoot { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--dim); }
@keyframes dlsheet { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .dlmodal { place-items: end stretch; padding: 0; }
  .dlcard { max-width: none; border-left: 0; border-right: 0; border-bottom: 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); max-height: 92vh; max-height: 92dvh; overflow-y: auto; }
  .dlmodal:not([hidden]) .dlcard { animation: dlsheet .32s var(--ease); }
  .dlbtns { grid-template-columns: 1fr; }
  .dlsteps li { padding: 9px 10px; }
}

/* chargement du profil acteur : puzzle qui s'assemble */
.pzl { display: flex; align-items: center; gap: 18px; padding: 22px 0 6px; }
.pzl svg { flex: none; width: 84px; height: 84px; overflow: visible; }
.pzp { fill: #fff; stroke: #000; stroke-width: 1.4; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; animation: pzfly 2.8s cubic-bezier(.2, .9, .3, 1) infinite both; }
.pz-b { fill: #bdbdbd; animation-delay: .12s; }
.pz-c { fill: #8c8c8c; animation-delay: .24s; }
.pz-d { fill: var(--grn); animation-delay: .36s; }
@keyframes pzfly {
  0% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.6); }
  20% { opacity: 1; }
  42% { opacity: 1; transform: none; }
  49% { transform: scale(1.08); }
  56% { transform: none; }
  84% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.6); }
}
.pzt b { display: block; font-weight: 700; font-size: 15px; }
.pzt small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }

/* ===== Notifications : cloche dans l'en-tête, boîte déroulante, bouton de la fiche ===== */
.notifwrap { position: relative; flex: 0 0 auto; }
.nbell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: 0; color: var(--dim); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.nbell svg { width: 20px; height: 20px; }
.nbell:hover { color: var(--fg); border-color: var(--dim); }
.nbell.on { color: var(--on-acc); background: var(--acc); border-color: var(--acc); }
.nbell .nbadge { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; background: var(--acc); color: var(--on-acc); border: 2px solid var(--bg); font-family: var(--mono); font-size: 10px; font-weight: 700; line-height: 1; }
.nbell.on .nbadge { background: var(--bg); color: var(--fg); border-color: var(--acc); }
.nbell .nbadge[hidden] { display: none; }
.nbox { position: absolute; z-index: 30; top: calc(100% + 12px); right: 0; width: min(400px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 110px)); max-height: min(560px, calc(100dvh - 110px)); overflow: hidden; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--acc); box-shadow: 0 18px 50px rgba(0,0,0,.7); animation: dialogIn .22s var(--ease) both; }
.nbox[hidden] { display: none; }
.nbox .nh { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.nbox .nh h2 { margin: 0; flex: 1; font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.nbox .nh button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); padding: 6px 10px; font-size: 12px; color: var(--dim); cursor: pointer; transition: color .2s, border-color .2s; }
.nbox .nh button:hover { color: var(--fg); border-color: var(--acc); }
.nbox .nh button svg { width: 15px; height: 15px; flex: none; }
.nbox .nl2 { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.nbox .nh, .nbox .nf { flex: none; }
.nitem { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--fg); transition: background .2s; }
.nitem:last-child { border-bottom: 0; }
.nitem.lk:hover { background: var(--panel); }
.nitem .nstretch { position: absolute; inset: 0; z-index: 1; }
.nitem .nx, .nitem .nt .nlink { position: relative; z-index: 2; }
.nitem.unread { background: var(--panel); }
.nitem.unread::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acc); }
.nitem .ni { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--fg); }
.nitem .ni svg { width: 18px; height: 18px; }
.nitem .nt { min-width: 0; }
.nitem .nt b { display: block; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.nitem .nt p { margin: 3px 0 0; color: #c4c4c4; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.nitem .nt small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .04em; }
.nitem .nt .nlink { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.nitem .nx { background: none; border: 0; color: var(--dim); width: 28px; height: 28px; display: grid; place-items: center; cursor: pointer; opacity: .6; transition: opacity .2s, color .2s; }
.nitem .nx:hover { opacity: 1; color: var(--fg); }
.nitem .nx svg { width: 15px; height: 15px; }
.nempty { display: grid; justify-items: center; gap: 8px; padding: 36px 24px 40px; text-align: center; color: var(--dim); }
.nempty svg { width: 34px; height: 34px; color: var(--dim); }
.nempty b { color: var(--fg); font-weight: 700; }
.nempty p { margin: 0; font-size: 14px; max-width: 280px; }
.nbox .nf { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .04em; }
.nbox .nf button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nbox .nf button:hover { color: var(--fg); }
/* bouton « Notifier pour un nouvel épisode » (fiche) */
.btn[data-notify] svg { width: 1.2em; height: 1.2em; flex: none; }
.btn[data-notify].on .off, .btn[data-notify]:not(.on) .onl { display: none; }
@media (min-width: 721px) { .search { margin-right: 0; width: clamp(190px, 23vw, 360px); flex-shrink: 1; min-width: 0; } nav a { white-space: nowrap; } }
@media (min-width: 721px) and (max-width: 1000px) { header.top .wrap { gap: 14px; } .nbell { width: 40px; height: 40px; } }
@media (max-width: 720px) {
  .notifwrap { order: 1; margin-left: auto; position: static; }
  .burger { order: 2; margin-left: 0 !important; }
  .hero .row .btn[data-notify], .detail .row .btn[data-notify] { flex: 1 1 100%; }
  .nbox { left: 12px; right: 12px; width: auto; top: 100%; margin-top: 6px; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); }
}
/* envoi d'infos (Head admin) */
.hsend { display: grid; gap: 12px; }
.hsend .hl { display: flex; align-items: center; gap: 8px; }
.hsend .hl svg, .hsent .hl svg { width: 18px; height: 18px; flex: none; }
.hsent { display: grid; gap: 4px; }
.hsent .hrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hsend .btn svg, .hsent .hrow .btn svg { width: 16px; height: 16px; flex: none; }
.hsent .hrow .btn { white-space: nowrap; }
.hsent .hrow .ni { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); }
.hsent .hrow .ni svg { width: 16px; height: 16px; }
.hsent .hrow b { display: block; overflow-wrap: anywhere; }
.hsent .hrow span { display: block; font-size: 13px; color: var(--dim); overflow-wrap: anywhere; }
#btn-info { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--fg); letter-spacing: .04em; }
#btn-info svg { width: 16px; height: 16px; flex: none; }
.about .btn svg { width: 18px; height: 18px; flex: none; }
footer #btn-install { background: var(--acc); color: var(--on-acc); border: 1px solid var(--acc); padding: 11px 22px; text-decoration: none; }
footer #btn-install:hover { background: transparent; color: var(--fg); }
footer #btn-install[hidden] { display: none; }
footer #btn-install svg { width: 18px; height: 18px; flex: none; }
footer .about .flist li, footer .about p.dev { font-weight: 800; }
/* barre du lecteur : tout le rectangle « Besoin d'une autre source / d'un lien » est cliquable, et les rectangles se rangent du plus grand au plus petit */
.pbar .ptip { order: -2; }
.pbar .pl { order: -1; }
.pbar .pn { order: 10; }
#pone, #pone2 { position: relative; cursor: pointer; transition: background .2s, color .2s; }
#pone:hover, #pone2:hover { background: var(--acc); color: var(--on-acc); }
#pone:hover > svg, #pone2:hover > svg, #pone:hover a, #pone2:hover a { color: var(--on-acc); }
#pone:focus-within, #pone2:focus-within { outline: 2px solid var(--fg); outline-offset: 3px; }
#pdemande::after, #pdemande2::after { content: ""; position: absolute; inset: 0; }
.lksel { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.lksel select { width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); border-radius: 0; font-size: 13px; }
.lkhost { display: grid; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.lkhost:last-child { border-bottom: 0; }
.lkhost > b { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.lkchips { display: flex; flex-wrap: wrap; gap: 6px; }
.lkchip { border: 1px solid var(--line); background: transparent; padding: 3px 9px; font-size: 12px; cursor: pointer; border-radius: 0; }
.lkchip:hover { border-color: var(--acc); }
.lkrow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.lkrow:last-child { border-bottom: 0; }
.lkrow .lkh { font-family: var(--mono); font-size: 11px; color: var(--dim); min-width: 74px; }
.lkrow .lkb { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lkrow .lkb small { color: var(--dim); }
/* ===== Ma liste (refonte) ===== */
#mlroot { padding-bottom: 20px; }
.mlhero { position: relative; overflow: hidden; isolation: isolate; padding: 44px 0 6px; }
.mlhero::before, .mlhero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.mlhero::before { width: 560px; height: 560px; left: -160px; top: -300px; background: radial-gradient(closest-side, rgba(125, 211, 252, .17), transparent); animation: mlfloat 15s ease-in-out infinite alternate; }
.mlhero::after { width: 480px; height: 480px; right: -140px; top: -260px; background: radial-gradient(closest-side, rgba(255, 255, 255, .08), transparent); animation: mlfloat 19s ease-in-out infinite alternate-reverse; }
@keyframes mlfloat { to { transform: translate(140px, 70px) scale(1.18); } }
.mltitle { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.mltitle h1 { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 7vw, 88px); line-height: .95; text-transform: uppercase; margin: 0 0 6px; animation: riseIn .6s var(--ease) both; }
.mltitle .note { margin: 0; animation: riseIn .6s .08s var(--ease) both; }
.mllogo { width: clamp(44px, 6.5vw, 72px); height: clamp(44px, 6.5vw, 72px); flex: none; }
.mllogo path { stroke-dasharray: 90; stroke-dashoffset: 90; animation: mldraw 1.1s .1s var(--ease) forwards; }
.mllogo .sp { stroke: var(--sky); fill: var(--sky); fill-opacity: 0; stroke-dasharray: 40; stroke-dashoffset: 40; animation: mldraw .8s .8s var(--ease) forwards, mlspark 3.2s 1.8s ease-in-out infinite; transform-origin: 12px 11px; }
@keyframes mldraw { to { stroke-dashoffset: 0; } }
@keyframes mlspark { 0%, 70%, 100% { fill-opacity: 0; transform: scale(1); } 80% { fill-opacity: 1; transform: scale(1.25) rotate(15deg); } }
.mltabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 720px; border: 1px solid var(--line); animation: riseIn .6s .12s var(--ease) both; }
.mlind { position: absolute; top: 0; bottom: 0; left: 0; width: 33.3334%; background: var(--acc); transition: transform .45s var(--ease); z-index: 0; }
.mltabs[data-i="1"] .mlind { transform: translateX(100%); }
.mltabs[data-i="2"] .mlind { transform: translateX(200%); }
.mltabs[data-i="3"] .mlind { transform: translateX(300%); }
.mltabs.four { grid-template-columns: repeat(4, 1fr); max-width: 940px; }
.mltabs.four .mlind { width: 25%; }
/* photos d'acteurs (recherche) */
@keyframes actph { from { opacity: 0; } to { opacity: 1; } }
.actchip .ai { width: 44px; height: 66px; overflow: hidden; }
.actchip .ai img, .actcard .ap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; animation: actph .35s ease both; }
.actgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.actcard { display: block; min-width: 0; border: 1px solid var(--line); background: var(--panel); animation: cardIn .45s var(--ease) backwards; animation-delay: calc(var(--k, 0) * 40ms); transition: border-color .2s, background .2s, transform .25s var(--ease); }
.actcard:hover { border-color: var(--acc); background: var(--s1); transform: translateY(-2px); }
.actcard .ap { display: grid; place-items: center; aspect-ratio: 2 / 3; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 900; font-size: 56px; color: var(--dim); }
.actcard .at { display: block; padding: 10px 12px 12px; min-width: 0; }
.actcard .at b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actcard .at small { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.actmode .mlsort { display: none; }
@media (max-width: 640px) { .actgrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; } .actcard .ap { font-size: 44px; } }
.mlt { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 14px; text-align: left; padding: 16px 20px; background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; color: var(--dim); cursor: pointer; transition: color .3s; }
.mlt:first-of-type { border-left: 0; }
.mlt svg { grid-row: 1 / 3; width: 30px; height: 30px; transition: transform .4s var(--ease); }
.mlt:hover svg { transform: scale(1.12) rotate(-6deg); }
.mlt b { font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 1; align-self: end; }
.mlt b:empty::before { content: "\00a0"; }
.mlt .l { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; align-self: start; }
.mlt.on { color: var(--on-acc); }
.mlt:not(.on):hover { color: var(--fg); }
.mltools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-block: 24px 20px; }
.mlsearch { position: relative; flex: 1 1 240px; max-width: 380px; }
.mlsearch svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.mlsearch input { width: 100%; padding: 11px 12px 11px 38px; background: transparent; border: 1px solid var(--line); border-radius: 0; color: var(--fg); font-size: 14px; transition: border-color .2s; }
.mlsearch input:focus { outline: none; border-color: var(--acc); }
.mlsort { display: flex; border: 1px solid var(--line); }
.mlsort button { padding: 10px 15px; background: transparent; border: 0; border-radius: 0; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; cursor: pointer; transition: background .25s, color .25s; }
.mlsort button + button { border-left: 1px solid var(--line); }
.mlsort button:hover { color: var(--fg); }
.mlsort button.on { background: var(--acc); color: var(--on-acc); }
.mlend { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.mlsum { font-family: var(--mono); font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.mlswap { animation: mlswap .4s var(--ease) both; }
@keyframes mlswap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mlsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 10px; }
.mlsgrid.still .mls { animation: none; }
.mls { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); background: transparent; animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); transition: border-color .25s, background .25s, transform .3s var(--ease); }
.mls:hover { border-color: var(--acc); background: var(--panel); transform: translateX(4px); }
.mlsp { position: relative; width: 64px; aspect-ratio: 2 / 3; background: var(--panel); overflow: hidden; display: grid; place-items: center; }
.mlsp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mlsp em { font-style: normal; font-family: var(--display); font-weight: 900; font-size: 24px; color: var(--dim); }
.mlsb { display: grid; gap: 5px; min-width: 0; }
.mlsb b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlsm { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.mlsbar { display: block; height: 3px; background: var(--line); margin-top: 3px; }
.mlsbar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--fg); transform-origin: left; animation: mlfill .9s .25s var(--ease) both; }
.mls.done .mlsbar i { background: var(--grn); }
.mlsl { display: flex; flex-wrap: wrap; gap: 2px 12px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.mlsl span:first-child { color: var(--fg); }
.mlsc { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 7px 10px; border: 1px solid var(--line); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.mlsc small { font-size: 10px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--dim); }
.mlsc.ok { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; border-color: transparent; background: #86efac; color: #052e16; }
.mlsc.ok svg { width: 13px; height: 13px; stroke: currentColor; fill: none; }
@media (max-width: 520px) { .mls { grid-template-columns: 54px minmax(0, 1fr); } .mlsp { width: 54px; } .mlsc { grid-column: 2; justify-self: start; flex-direction: row; gap: 8px; } }
.mlgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 26px 16px; }
.mlc { position: relative; min-width: 0; animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); transition: opacity .26s, transform .26s var(--ease); }
.mlgrid.still .mlc { animation: none; }
.mlc.out { opacity: 0; transform: scale(.86); pointer-events: none; }
.mlc .poster { transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.mlc .poster img { transition: transform .5s var(--ease); }
.mlc:hover .poster { transform: translateY(-5px); border-color: var(--acc); box-shadow: 0 16px 34px rgba(0, 0, 0, .65); }
.mlc:hover .poster img { transform: scale(1.06); }
.mlc .poster::after { content: ""; position: absolute; inset: auto 0 0 0; height: 50%; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 1; }
.mlc:hover .poster::after { opacity: 1; }
.mlhit { position: absolute; inset: 0; z-index: 2; }
.mlmeta { display: block; min-width: 0; padding-top: 10px; }
.mlmeta b { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlmeta span { display: block; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.mlmeta em { display: block; margin-top: 3px; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .03em; color: var(--sky); }
.mlb { position: absolute; z-index: 4; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .65); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; transition: transform .22s var(--ease), background .2s, color .2s, opacity .25s; }
.mlb svg { width: 17px; height: 17px; }
.mlb.pl svg { fill: currentColor; margin-left: 2px; }
.mlb:hover { background: #fff; color: #000; transform: scale(1.12); }
.mlb.rm { top: 8px; right: 8px; }
.mlb.pl { right: 8px; bottom: 14px; }
@media (hover: hover) {
  .mlb { opacity: 0; transform: translateY(6px) scale(.9); }
  .mlc:hover .mlb, .mlb:focus-visible { opacity: 1; transform: none; }
  .mlc:hover .mlb:hover { transform: scale(1.12); }
}
.mlbar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .2); pointer-events: none; }
.mlbar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: #fff; transform-origin: left; animation: mlfill .9s .25s var(--ease) both; }
@keyframes mlfill { from { transform: scaleX(0); } }
.mlring { position: absolute; z-index: 3; left: 8px; bottom: 12px; width: 44px; height: 44px; pointer-events: none; }
.mlring svg { width: 100%; height: 100%; transform: rotate(-90deg); background: rgba(0, 0, 0, .68); border-radius: 50%; }
.mlring circle { fill: none; stroke-width: 3.2; }
.mlring .bg { stroke: rgba(255, 255, 255, .22); }
.mlring .fg { stroke: #fff; stroke-linecap: round; stroke-dasharray: calc(var(--p) * 100) 100; animation: mlring 1s .25s var(--ease) both; }
@keyframes mlring { from { stroke-dasharray: 0 100; } }
.mlring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; font-weight: 700; color: #fff; }
.mlring b svg { width: 18px; height: 18px; transform: none; background: none; stroke: #fff; fill: none; }
.mlbell { position: absolute; z-index: 3; left: 8px; bottom: 12px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #7dd3fc; color: #082f49; pointer-events: none; }
.mlbell::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sky); animation: mlpulse 2.4s ease-out infinite; }
.mlbell svg { width: 16px; height: 16px; transform-origin: 50% 20%; animation: mlwiggle 3.2s ease-in-out infinite; }
@keyframes mlpulse { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
@keyframes mlwiggle { 0%, 55%, 100% { transform: rotate(0); } 60% { transform: rotate(16deg); } 66% { transform: rotate(-14deg); } 72% { transform: rotate(9deg); } 78% { transform: rotate(-6deg); } 84% { transform: rotate(0); } }
.mlempty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 60px 18px 72px; border: 1px dashed var(--line); animation: riseIn .6s var(--ease) both; }
.mlempty .mlei { width: 92px; height: 92px; color: var(--dim); stroke-width: 1.3; animation: mlbob 3.6s ease-in-out infinite; }
.mlempty h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; letter-spacing: .02em; }
.mlempty p { margin: 0; max-width: 46ch; color: var(--dim); }
@keyframes mlbob { 50% { transform: translateY(-9px); } }
@media (max-width: 560px) {
  .mlhero { padding-top: 28px; }
  .mltitle { margin-bottom: 20px; gap: 14px; }
  .mlt { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 14px 2px 12px; min-width: 0; }
  .mlt svg { grid-row: auto; width: 24px; height: 24px; margin: 0; }
  .mlt b { align-self: center; font-size: 30px; line-height: 1; }
  .mlt .l { align-self: center; max-width: 100%; font-size: 10px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mlsearch { flex: 1 1 100%; max-width: none; }
  .mlend { margin-left: 0; flex: 1 1 100%; justify-content: space-between; }
  .mlsum { margin-left: 0; }
  .mlgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}
/* ===== Recherche (refonte) + highlight lumineux ===== */
@property --hl { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes hlspin { to { --hl: 360deg; } }
.hlbox { position: relative; }
.hlbox::before, .hlbox::after {
  content: ""; position: absolute; inset: -1px; padding: 1px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--hl), transparent 0 86%, rgba(255, 255, 255, .22) 93%, #fff 99%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: hlspin 6s linear infinite;
}
.hlbox::after { inset: -2px; padding: 3px; filter: blur(6px); opacity: .75; }
/* volet Plateformes */
.platall.hlbox { box-sizing: border-box; padding: 16px; margin-top: 4px; background: var(--panel); border: 1px solid var(--line); }
.platall .chip { animation: cardIn .4s var(--ease) backwards; animation-delay: calc(var(--k, 0) * 22ms); }
/* page Faire une demande */
#reqform.rqcard { padding: 34px 30px 38px; margin-block: 44px 80px; gap: 16px; background: var(--panel); border: 1px solid var(--line); }
.rqcard > * { animation: riseIn .55s var(--ease) backwards; }
.rqcard > :nth-child(2) { animation-delay: .05s; } .rqcard > :nth-child(3) { animation-delay: .1s; } .rqcard > :nth-child(4) { animation-delay: .15s; }
.rqcard > :nth-child(5) { animation-delay: .2s; } .rqcard > :nth-child(6) { animation-delay: .25s; } .rqcard > :nth-child(7) { animation-delay: .3s; }
.rqcard > :nth-child(8) { animation-delay: .35s; } .rqcard > :nth-child(9) { animation-delay: .4s; } .rqcard > :nth-child(10) { animation-delay: .45s; }
.rqcard .rqwrap { z-index: 5; }
.rqhead { display: flex; align-items: center; gap: 16px; }
.rqcard h1 { font-size: clamp(34px, 6vw, 52px); }
.rqlogo { width: 54px; height: 54px; flex: none; }
.rqlogo path { stroke-dasharray: 90; stroke-dashoffset: 90; animation: mldraw 1.1s .1s var(--ease) forwards; }
.rqlogo .sp { stroke: var(--sky); fill: var(--sky); fill-opacity: 0; stroke-dasharray: 40; stroke-dashoffset: 40; animation: mldraw .8s .8s var(--ease) forwards, mlspark 3.2s 1.8s ease-in-out infinite; transform-origin: 4px 5.2px; }
.rqcard input:focus, .rqcard select:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
@media (max-width: 560px) { #reqform.rqcard { padding: 24px 18px 28px; margin-block: 24px 56px; } .rqlogo { width: 42px; height: 42px; } }
/* page Recherche */
#srroot { padding-bottom: 20px; }
.srnote .srq { color: var(--fg); }
#sract:empty { display: none; }
#sract .actres { padding-top: 4px; }
.actchip { animation: cardIn .45s var(--ease) backwards; animation-delay: calc(var(--k, 0) * 50ms); transition: border-color .2s, background .2s, transform .25s var(--ease); }
.actchip:hover { transform: translateY(-2px); }
.actchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.actchip { min-width: 0; }
@media (max-width: 640px) {
  .actchips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .actchip { gap: 10px; padding: 8px 10px 8px 8px; }
  .actchip .at b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; font-size: 14px; }
}
.actchip:hover .ai { background: var(--acc); color: var(--on-acc); }
.actchip .ai { transition: background .25s, color .25s; }
#srbody .mlempty .btn { display: inline-flex; align-items: center; gap: 8px; }
#srbody .mlempty .btn svg { width: 16px; height: 16px; }
#srbody .mlempty .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
#srclose { white-space: nowrap; }
/* ===== Séries / Films : compléments au style Ma liste ===== */
.lsf { display: grid; gap: 0; padding-bottom: 24px; }
.lsf.intro { animation: riseIn .6s .2s var(--ease) both; }
.lsf:empty { display: none; }
.lsgenres { gap: 8px; }
.lsplat { position: absolute; z-index: 3; left: 8px; bottom: 12px; max-width: calc(100% - 60px); padding: 3px 8px; background: rgba(0, 0, 0, .72); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 11px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; transition: transform .3s var(--ease); }
.mlc:hover .lsplat { transform: translateY(-2px); }
.mlb.bm { top: 8px; right: 8px; }
.mlb.bm.on { background: #fff; color: #000; border-color: #fff; }
.mlb.bm.on svg { fill: currentColor; }
.mlb.bm.pop { animation: listpop .5s var(--ease); }
@media (hover: hover) { .mlb.bm.on { opacity: 1; transform: none; } }
#lsbody .mlempty .btn { display: inline-flex; align-items: center; gap: 8px; }
#lsbody .mlempty .btn svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .mlsort button { padding: 10px 11px; } }
@media (prefers-reduced-motion: reduce) { .lsf.intro, .mlb.bm.pop { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  .mlhero::before, .mlhero::after, .mlbell::after, .mlbell svg, .mlempty .mlei, .mllogo .sp { animation: none; }
  .mllogo path { animation: none; stroke-dashoffset: 0; }
  .mlc, .mlswap, .mltitle h1, .mltitle .note, .mltabs, .mlempty { animation: none; }
  .mlbar i, .mlring .fg { animation: none; }
}
/* ===== Calendrier (refonte) ===== */
.mllogo rect { stroke-dasharray: 80; stroke-dashoffset: 80; animation: mldraw 1s .1s var(--ease) forwards; }
.cxnav { display: flex; align-items: center; gap: 12px; max-width: 720px; animation: riseIn .6s .12s var(--ease) both; }
.cxarr { flex: none; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease); }
.cxarr svg { width: 20px; height: 20px; }
.cxarr:hover { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.cxarr:active { transform: scale(.9); }
.cxrange { flex: 1; min-width: 0; text-align: center; }
.cxrange b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(24px, 4vw, 34px); line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.cxrange small { display: block; margin-top: 3px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.cxtoday { flex: none; }
.cxtoday.hide { display: none; }
.cxchips { display: flex; gap: 8px; padding-block: 24px 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cxchips::-webkit-scrollbar { display: none; }
.cxchips .chip { flex: none; white-space: nowrap; }
.cxstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding-block: 14px 6px; }
.cxd { position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 4px 10px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--dim); cursor: pointer; overflow: hidden; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.cxd i { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.cxd b { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; color: var(--fg); transition: color .25s; }
.cxd .cn { margin-top: 4px; min-width: 24px; padding: 3px 6px; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; font-weight: 700; line-height: 1; text-align: center; }
.cxd.has .cn { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.cxd.past { opacity: .6; }
.cxd:hover { border-color: var(--acc); transform: translateY(-3px); }
.cxd.today::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #7dd3fc; animation: cxglow 2.4s ease-in-out infinite; }
.cxd.on { background: var(--acc); border-color: var(--acc); color: var(--on-acc); opacity: 1; }
.cxd.on b { color: var(--on-acc); }
.cxd.on .cn { background: var(--bg); color: var(--fg); border-color: var(--bg); }
@keyframes cxglow { 50% { opacity: .35; } }
.cxsum { padding-block: 14px 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.cxin-r { animation: cxr .45s var(--ease) both; }
.cxin-l { animation: cxl .45s var(--ease) both; }
.cxin-f { animation: mlswap .4s var(--ease) both; }
@keyframes cxr { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }
@keyframes cxl { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: none; } }
.cxday { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 24px; padding-block: 22px 8px; border-top: 1px solid var(--line); }
.cxday:last-child { border-bottom: 1px solid var(--line); }
.cxh { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 4px 14px; }
.cxh > b { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .85; }
.cxh > span { display: grid; gap: 2px; }
.cxh strong { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; }
.cxh small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.cxnow { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 4px 8px; background: #7dd3fc; color: #082f49; font-style: normal; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.cxnow i { width: 6px; height: 6px; border-radius: 50%; background: #082f49; animation: blink 1.4s ease-in-out infinite; }
.cxday.past .cxh { opacity: .6; }
.cxday.empty { padding-block: 14px 4px; }
.cxday.empty .cxh > b { font-size: 36px; color: var(--dim); }
.cxday.empty .cxh strong { font-size: 18px; color: var(--dim); }
.cxnone { margin: 0; align-self: center; color: var(--dim); font-size: 14px; }
.cxgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; padding-bottom: 14px; }
.cxcard { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 10px; border: 1px solid var(--line); background: transparent; animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); transition: border-color .25s, background .25s, transform .3s var(--ease); }
.cxwrap { position: relative; display: block; }
.cxwrap .cxcard { height: 100%; }
.cxdel { position: absolute; top: 6px; right: 6px; z-index: 2; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 17px; line-height: 1; cursor: pointer; opacity: .8; }
.cxdel:hover { border-color: #fca5a5; color: #fca5a5; opacity: 1; }
.cxadmin { padding-block: 18px 4px; }
.cxadd { margin-top: 12px; padding: 16px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 14px; }
.cxadd[hidden] { display: none; }
.cxf { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
.cxf label { display: grid; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.cxf input { text-transform: none; letter-spacing: 0; font-family: inherit; font-size: 14px; color: var(--fg); color-scheme: dark; }
@media (max-width: 720px) { .cxf { grid-template-columns: minmax(0, 1fr); } }
.cxcard:hover { border-color: var(--acc); background: var(--panel); transform: translateX(5px); }
.cxcard:active { transform: scale(.985); }
.cxp { position: relative; width: 64px; aspect-ratio: 2 / 3; background: var(--panel); overflow: hidden; display: grid; place-items: center; }
.cxp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.cxcard:hover .cxp img { transform: scale(1.1); }
.cxp em { font-style: normal; font-family: var(--display); font-weight: 900; font-size: 30px; color: #2a2a2a; }
.cxt { min-width: 0; display: grid; align-content: center; gap: 6px; }
.cxt b { font-weight: 700; font-size: 16px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cxm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.cxk { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: var(--c, #fff); color: #000; font-size: 10px; font-weight: 700; }
.cxs { display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; padding: 4px 8px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.cxs svg { width: 12px; height: 12px; flex: none; }
.cxs.ok { background: #86efac; color: #052e16; }
.cxs.soon { border: 1px solid var(--sky); color: var(--sky); }
.cxs.wait { border: 1px solid var(--dim); color: var(--dim); }
@media (max-width: 720px) {
  .cxnav { gap: 10px; flex-wrap: wrap; }
  .cxarr { width: 42px; height: 42px; }
  .cxtoday { flex: 1 0 100%; justify-content: center; }
  .cxchips { margin-inline: -16px; padding-inline: 16px; }
  .cxstrip { gap: 5px; }
  .cxd { padding: 10px 2px 8px; }
  .cxd i { font-size: 9.5px; letter-spacing: .04em; }
  .cxd b { font-size: 22px; }
  .cxd .cn { min-width: 20px; padding: 2px 4px; font-size: 10px; }
  .cxday { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 18px 6px; }
  .cxh { flex-wrap: nowrap; align-items: center; gap: 12px; }
  .cxh > b { font-size: 48px; }
  .cxh strong { font-size: 20px; }
  .cxnow { grid-column: auto; margin-left: auto; }
  .cxgrid { grid-template-columns: minmax(0, 1fr); }
  .cxcard:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cxnav, .cxcard, .cxin-r, .cxin-l, .cxin-f, .cxd.today::before, .cxnow i, .mllogo rect { animation: none; }
  .mllogo rect { stroke-dashoffset: 0; }
}
/* PC : serveurs sur leur ligne, puis les rectangles (autre source, signaler, lien de téléchargement) étirés au max et tous de la même taille */
@media (min-width: 721px) {
  .pbar .pl { flex: 1 0 100%; }
  .pbar #pone, .pbar #pone2, .pbar #prep { flex: 1 1 0; min-width: 220px; width: auto; align-self: stretch; box-sizing: border-box; justify-content: center; text-align: center; padding: 14px 16px; min-height: 52px; }
  .pbar #prep { padding: 0; border: 1px solid var(--acc); }
  .pbar #prep .rbtn, .pbar #prep .repok { width: 100%; height: 100%; justify-content: center; padding: 14px 16px; border: 0; box-sizing: border-box; }
  .pbar #prep .repok { border: 0; }
  .pbar .pn { flex: 1 0 100%; justify-content: flex-end; margin-left: 0; }
}
/* volet mobile : replie astuces, autre source, signaler et lien de téléchargement */
.pfold { display: none; }
@media (max-width: 720px) {
  .pbar .pl { order: -2; }
  .pfold { order: -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 1 0 100%; width: 100%; padding: 14px 16px; border: 1px solid var(--acc); background: transparent; color: var(--fg); font: inherit; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; cursor: pointer; border-radius: 0; text-align: left; }
  .pfold svg { width: 14px; height: 14px; flex: none; transition: transform .25s var(--ease); }
  .pfold[aria-expanded="true"] svg { transform: rotate(180deg); }
  .pbar .ptip { order: 0; }
  .pbar:not(.open) .ptip, .pbar:not(.open) #pone, .pbar:not(.open) #pone2, .pbar:not(.open) #prep { display: none !important; }
  .pbar #pone, .pbar #pone2, .pbar #prep { flex: 1 0 100%; width: 100%; max-width: none; }
  .pbar #pone, .pbar #pone2 { justify-content: center; padding: 14px 16px; }
  .pbar #prep { padding: 0; }
  .pbar #prep .rbtn, .pbar #prep .repok { width: 100%; justify-content: center; padding: 14px 16px; }
}

/* ===== Demandes en cours : même habillage que Ma liste et Paramètres ===== */
.mltabs.two { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
.mltabs.two .mlind { width: 50%; }
.rqtags { position: absolute; z-index: 1; top: 8px; left: 8px; display: grid; gap: 4px; justify-items: start; }
.rqtag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; background: var(--acc); color: var(--on-acc); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.rqtag svg { width: 10px; height: 10px; flex: none; }
.rqtag.d { background: #86efac; color: #052e16; }
.rqtag.none { background: rgba(0,0,0,.75); color: var(--dim); border: 1px dashed #555; }
.rqmark { position: absolute; z-index: 1; top: 8px; right: 8px; width: 26px; height: 26px; display: grid; place-items: center; background: #86efac; color: #052e16; border-radius: 50%; }
.rqmark svg { width: 15px; height: 15px; }
.mlmeta em.ok { color: var(--grn); }
.rqbtns { display: flex; gap: 6px; padding-top: 10px; }
.rqbtns .btn { flex: 1; }
.rqadm { display: grid; gap: 6px; padding-top: 10px; }
.rqseg { display: flex; border: 1px solid var(--line); }
.rqseg button { flex: 1; padding: 7px 4px; border: 0; background: transparent; color: var(--dim); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; border-radius: 0; transition: color .2s, background .2s; }
.rqseg button + button { border-left: 1px solid var(--line); }
.rqseg button:hover { color: var(--fg); }
.rqseg button[aria-pressed=true] { background: var(--acc); color: var(--on-acc); }
.rqseg button[data-k=dl][aria-pressed=true] { background: #86efac; color: #052e16; }
.rqadm .rqrow2 { display: flex; gap: 6px; }
.rqadm .rqrow2 .btn { flex: 1; padding-inline: 6px; }
.rqadm .rqrow2 .btn.danger { flex: 0 0 38px; }
.rqaddwrap { padding-top: 24px; }
.rqaddwrap .rqadd { padding-top: 0; }
.rqadd select { width: auto; }

/* ===== Fiche : saisons, épisodes, téléchargement (même habillage que Ma liste et Séries) ===== */
.seasons { padding-bottom: 72px; }
.sehero { position: relative; isolation: isolate; padding: 40px 0 22px; }
.sehero::before { content: ""; position: absolute; z-index: -1; width: 440px; height: 440px; left: -150px; top: -240px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(125, 211, 252, .15), transparent); animation: mlfloat 15s ease-in-out infinite alternate; }
.seasons.dlmode .sehero::before { background: radial-gradient(closest-side, rgba(134, 239, 172, .14), transparent); }
.sehero .mltitle { margin-bottom: 22px; }
.sehero .mltitle h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 900; font-size: clamp(36px, 5.5vw, 60px); line-height: .95; text-transform: uppercase; animation: riseIn .6s var(--ease) both; }
.sehero .mllogo { width: clamp(38px, 5.2vw, 56px); height: clamp(38px, 5.2vw, 56px); }
.seasons.dlmode .sehero .mllogo .sp { stroke: var(--grn); fill: var(--grn); }
.sehero .mltabs.two { max-width: 460px; }
.sehero .mlt svg { width: 26px; height: 26px; }
.seasons.dlmode .sehero .mltabs .mlind { transform: translateX(100%); background: #86efac; }
.seasons.dlmode .sehero .mlt.on { color: #052e16; }

.seasonpick { padding: 0 0 18px; animation: riseIn .55s .1s var(--ease) both; }
.seasonpick .seasontog { display: none; }
.seasonpick .seasonall, .seasonpick.open .seasonall { display: flex; flex-wrap: nowrap; gap: 0; width: auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line); animation: none; }
.seasonpick .seasonall::-webkit-scrollbar { display: none; }
.seasonpick .seasonall .chip { flex: none; padding: 12px 22px; border: 0; border-left: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .05em; animation: none; }
.seasonpick .seasonall .chip:first-child { border-left: 0; }
.seasonpick .seasonall .chip.on { background: var(--acc); color: var(--on-acc); }
.seasons.dlmode .seasonpick .seasonall .chip.on { background: #86efac; color: #052e16; }

details.season, details.season:last-child { border: 0; }
.seasons.multi details.season.cur { border: 0; }
.seasons details.season summary, .seasons.multi details.season summary { padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); font-size: 28px; line-height: 1.1; transition: background .2s, border-color .2s; }
.seasons details.season summary:hover { padding-left: 18px; border-color: #3a3a3a; }
.seasons.multi details.season summary:hover { border-color: var(--line); }
details.season summary i { padding: 5px 9px; border: 1px solid var(--line); font-size: 11px; }
.sprog { height: 4px; margin: 0 0 14px; background: var(--line); }
.sprog i { transform-origin: left; animation: mlfill .9s .25s var(--ease) both; }
.seasonbar { display: flex; padding: 0 0 14px; }

.ep { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; padding: 14px 16px; margin-bottom: 8px; border: 1px solid var(--line); border-top: 1px solid var(--line); transition: background .2s, border-color .25s; }
@media (hover: hover) { .ep:hover { background: var(--panel); border-color: #444; } }
.ep .n { width: 52px; height: 52px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1; color: var(--dim); transition: background .25s, color .25s, border-color .25s; }
@media (hover: hover) { .ep:hover .n { background: var(--acc); color: var(--on-acc); border-color: var(--acc); } }
.ep.seen .n { color: var(--grn); border-color: rgba(134, 239, 172, .45); }
.ep.seen > div:nth-child(2) b { color: var(--dim); }
.ep.next { border-color: rgba(125, 211, 252, .55); }
.ep.next .n { color: #082f49; background: #7dd3fc; border-color: var(--sky); }
.ep.next:hover .n { color: #082f49; background: #7dd3fc; border-color: var(--sky); }
.ep > div:nth-child(2) b { font-size: 16px; }
.ep small.d { display: inline-block; margin: 4px 0 6px; padding: 3px 7px; border: 1px solid var(--line); }
.seasons.dlmode .ep:hover { border-color: rgba(134, 239, 172, .55); }
.seasons.dlmode .ep:hover .n { background: #86efac; color: #052e16; border-color: var(--grn); }
.seasons.dlmode .ep.next { border-color: var(--line); }
.seasons.dlmode .ep.next .n { color: var(--dim); background: none; border-color: var(--line); }
.seasons.dlmode .ep.next:hover .n { background: #86efac; color: #052e16; border-color: var(--grn); }
.seasons.dlmode .ep .dlact, .seasons.dlmode .dlbar, .seasons.dlmode .dlstat { animation: riseIn .4s var(--ease) both; }
.seasons:not(.dlmode) .ep .act { animation: fadeIn .35s both; }

.seasons.dlmode .dlbar { align-items: center; padding: 14px 16px; margin-bottom: 14px; border: 1px solid rgba(134, 239, 172, .4); background: rgba(134, 239, 172, .06); }
.dlbl { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grn); }
.dlbl svg { width: 16px; height: 16px; flex: none; }
.seasons.dlmode .dlstat { display: flex; align-items: center; gap: 12px; padding: 0 0 14px; }
.dlstat .dlpg { flex: 0 1 220px; height: 4px; background: var(--line); }
.dlstat .dlpg i { display: block; width: 0; height: 100%; border-radius: 0; background: #86efac; transform-origin: left; animation: mlfill .9s .2s var(--ease) both; }
.dlstat .dlpg.part i { background: #fcd34d; }
.seasons.dlmode .dlonly { padding: 14px 16px; border: 1px dashed var(--line); }

@media (max-width: 720px) {
  .seasons { padding-bottom: 48px; }
  .sehero { padding: 28px 0 18px; }
  .sehero .mltitle { margin-bottom: 18px; gap: 14px; }
  .sehero .mltabs.two { max-width: none; }
  .seasons details.season summary, .seasons.multi details.season summary { padding: 14px; font-size: 22px; }
  .seasons details.season summary:hover { padding-left: 14px; }
  .ep { grid-template-columns: 42px minmax(0, 1fr); gap: 4px 12px; padding: 12px; }
  .ep .n { width: 42px; height: 42px; font-size: 20px; }
  .seasonpick .seasonall .chip { padding: 11px 16px; font-size: 16px; }
}

/* ===== fix mobile : plus de débordement horizontal / dézoom auto sur la page épisodes ===== */
html { overflow-x: hidden; max-width: 100%; }
@supports (overflow: clip) { html { overflow-x: clip; } }
body { overflow-x: hidden; max-width: 100%; position: relative; }
@supports (overflow: clip) { body { overflow-x: clip; } }
.seasons, .seasons .ep, .seasons .ep > div { min-width: 0; max-width: 100%; }
.seasons .ep .act, .seasons .ep .dlact { min-width: 0; max-width: 100%; }
.seasons .ep .dlact .btn, .seasons .dlbar .btn { min-width: 0; max-width: 100%; flex-wrap: wrap; text-align: left; }
.seasons .ep .dlact .btn > span:not(.dlm), .seasons .dlbar .btn > span:not(.dlm) { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .seasons .ep .dlact { flex-direction: column; align-items: stretch; }
  .seasons .ep .dlact .btn { width: 100%; justify-content: flex-start; }
}

/* fenêtre de choix du lien de téléchargement */
.dlchoices { display: grid; gap: 10px; margin-bottom: 14px; }
.dlchoices .btn { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 8px 10px; padding: 14px 16px; font-size: 14px; text-align: left; }
.dlchoices .btn .dlm { margin-left: auto; }
@media (max-width: 720px) { #dlchoose { place-items: end stretch; padding: 0; } #dlchoose .dlcard { max-width: none; border-left: 0; border-right: 0; border-bottom: 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); max-height: 92dvh; overflow-y: auto; } }

/* ===== statut des serveurs ===== */
#btn-info, #btn-stat { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--fg); letter-spacing: .04em; font-size: inherit; }
#btn-stat { text-decoration: none; font-family: inherit; text-transform: uppercase; }
#btn-stat svg { width: 16px; height: 16px; flex: none; }
#btn-stat:hover span { text-decoration: underline; text-underline-offset: 4px; }
#strot { --ok: #86efac; --slow: #fde68a; --down: #f87171; --maint: #7dd3fc; }
.s-up { --c: #86efac; } .s-slow { --c: #fde68a; } .s-down { --c: #f87171; } .s-maint { --c: #7dd3fc; }
.stdot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.stdot.big { width: 14px; height: 14px; }
.s-up .stdot { animation: stpulse 2.4s ease-in-out infinite; }
.s-down .stdot { animation: stpulse 1.1s ease-in-out infinite; }
@keyframes stpulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 6%, transparent); } }
.stpill { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid var(--c); color: var(--c); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.stban { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 8%, var(--panel)); margin-bottom: 30px; animation: riseIn .6s var(--ease) both; }
.stban b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(24px, 4vw, 34px); text-transform: uppercase; line-height: 1; margin-bottom: 4px; }
.stban small { color: var(--dim); }
.stban .stlast { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); text-align: right; }
.sth { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.sth svg { width: 16px; height: 16px; }
.stgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 34px; }
.stc { display: grid; gap: 10px; align-content: start; padding: 18px; border: 1px solid var(--line); background: var(--panel); border-top: 2px solid var(--c); min-width: 0; transition: transform .3s var(--ease), border-color .3s; animation: riseIn .55s calc(var(--i, 0) * 60ms) var(--ease) both; }
.stc:hover { transform: translateY(-3px); border-color: var(--c); }
.sttop { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sttop b { font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sttop .stpill { margin-left: auto; }
.stkind { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.stkind svg { width: 12px; height: 12px; }
.stnote { margin: 0; min-height: 2.8em; color: var(--fg); overflow-wrap: anywhere; }
.stfoot { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding-top: 10px; border-top: 1px dashed var(--line); }
.stinp { width: 100%; box-sizing: border-box; padding: 9px 10px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); font-size: 13px; border-radius: 0; }
.stinp:focus { outline: 0; border-color: var(--acc); }
.stlog { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); margin-left: 6px; }
.stlog li { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 6px 18px; padding: 0 0 22px 24px; animation: riseIn .5s calc(var(--i, 0) * 45ms) var(--ease) both; }
.stlog li > .stdot { position: absolute; left: -6px; top: 3px; width: 11px; height: 11px; }
.stlog time { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.stlog li div { min-width: 0; }
.stlog b { font-family: var(--display); font-weight: 900; font-size: 22px; text-transform: uppercase; margin-right: 10px; vertical-align: middle; }
.stlog p { margin: 6px 0 0; color: var(--dim); overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .stban { flex-wrap: wrap; padding: 16px; } .stban .stlast { margin-left: 0; text-align: left; width: 100%; }
  .stgrid { grid-template-columns: 1fr; }
  .stlog li { grid-template-columns: 1fr; padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) { .s-up .stdot, .s-down .stdot { animation: none; } }

/* boutons Lire et Marquer vu des épisodes : deux fois plus larges */
.seasons .ep .act .btn.eplay[data-playep] { min-width: 300px; min-height: 54px; }
.seasons .ep .act .btn.seenbtn { min-width: 300px; min-height: 48px; justify-content: center; }
@media (max-width: 720px) {
  .seasons .ep .act .btn.eplay[data-playep], .seasons .ep .act .btn.seenbtn { flex: 1 1 100%; width: 100%; min-width: 0; justify-content: center; }
  .seasons .ep .act .btn.seenbtn { min-height: 52px; }
}

.stx { margin-left: 6px; width: 26px; height: 26px; padding: 0; display: grid; place-items: center; flex: none; background: transparent; border: 1px solid var(--line); color: var(--dim); font-size: 18px; line-height: 1; border-radius: 0; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.stx:hover { color: var(--red); border-color: var(--red); }
.stmasked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.stmasked:empty { display: none; }
.stchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; background: transparent; border: 1px dashed #444; color: var(--fg); font: inherit; border-radius: 0; cursor: pointer; transition: border-color .2s, color .2s; }
.stchip i { font-style: normal; color: var(--grn); }
.stchip:hover { border-color: var(--grn); }
#stadmin[hidden] { display: none; }

.stfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ===== Transfert par code ===== */
.codebox { display: grid; gap: 10px; padding: 16px 20px; margin-top: 12px; }
.codebox[hidden] { display: none; }
.codebox textarea { width: 100%; box-sizing: border-box; min-height: 96px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); font-family: var(--mono); font-size: 12px; line-height: 1.5; word-break: break-all; border-radius: 0; resize: vertical; }
.codebox textarea:focus { outline: 0; border-color: var(--acc); }
.codemsg { min-height: 1.4em; margin: 0; font-size: 13px; color: var(--dim); }
.codemsg.ok { color: var(--grn); font-weight: 700; } .codemsg.err { color: var(--red); }

/* onglets de Paramètres : icône à gauche, texte à côté, sans chiffre */
#settabs .mlt { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px; padding: 18px 14px; text-align: left; min-width: 0; }
#settabs .mlt svg { grid-row: auto; width: 24px; height: 24px; margin: 0; flex: none; }
#settabs .mlt .l { align-self: center; font-size: 12px; letter-spacing: .08em; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { #settabs .mlt { gap: 8px; padding: 15px 6px; } #settabs .mlt svg { width: 20px; height: 20px; } #settabs .mlt .l { font-size: 11px; letter-spacing: .04em; } }

/* ===== Bandes-annonces : chip sur la fiche + lecteur perso ===== */
.detail .tags { align-items: center; }
.tchip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 8px; border: 1px solid var(--acc); background: transparent; color: var(--fg); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1; cursor: pointer; border-radius: 0; transition: background .2s, color .2s; }
.tchip svg { width: 11px; height: 11px; flex: none; transition: transform .25s var(--ease); }
.tchip:hover { background: var(--acc); color: var(--on-acc); }
.tchip:hover svg { transform: scale(1.25); }
.tvm { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.93); backdrop-filter: blur(8px); animation: tvfade .25s ease-out; }
.tvm[hidden] { display: none; }
@keyframes tvfade { from { opacity: 0; } }
@keyframes tvpop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes tvspin { to { transform: rotate(360deg); } }
.tvbox { width: min(1100px, 100%); display: grid; gap: 12px; animation: tvpop .35s var(--ease) both; }
.tvstage { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); overflow: hidden; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.tvstage:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; border: 0; }
.tvstage:-webkit-full-screen { aspect-ratio: auto; width: 100%; height: 100%; border: 0; }
/* l'iframe dépasse en haut et en bas : le titre YouTube est rogné, et les clics tombent sur nos commandes */
.tvstage iframe { position: absolute; left: 0; top: -70px; width: 100%; height: calc(100% + 140px); border: 0; pointer-events: none; }
.tvtop, .tvbot { position: absolute; left: 0; right: 0; z-index: 5; opacity: 0; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.tvtop { top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 16px 48px; background: linear-gradient(to bottom, rgba(0,0,0,.85), transparent); transform: translateY(-8px); }
.tvbot { bottom: 0; padding: 40px 16px 10px; background: linear-gradient(to top, rgba(0,0,0,.9), transparent); transform: translateY(8px); }
.tvstage.on .tvtop, .tvstage.on .tvbot { opacity: 1; transform: none; pointer-events: auto; }
.tvstage.hide.playing { cursor: none; }
.tvstage.stuck .tvload::after { display: none; }
.tvsk { position: absolute; top: 0; bottom: 0; width: 36%; z-index: 2; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.tvsk.l { left: 0; background: radial-gradient(ellipse at left center, rgba(255,255,255,.22), transparent 72%); }
.tvsk.r { right: 0; background: radial-gradient(ellipse at right center, rgba(255,255,255,.22), transparent 72%); }
.tvsk span { display: grid; justify-items: center; gap: 4px; font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .06em; color: #fff; }
.tvsk svg { width: 30px; height: 30px; }
.tvsk.show { animation: tvskip .75s ease-out; }
@keyframes tvskip { 0% { opacity: 0; } 12% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.tvtitle { min-width: 0; display: grid; gap: 4px; }
.tvtitle small { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.tvtitle b { font-family: var(--display); font-weight: 900; font-size: clamp(20px, 3vw, 32px); line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvic, .tvbig, .tvbar { touch-action: manipulation; }
.tvic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 0; color: var(--fg); cursor: pointer; border-radius: 0; transition: background .2s, color .2s; }
.tvic svg { width: 20px; height: 20px; }
.tvic:hover { background: var(--fg); color: var(--bg); }
.tvbig { position: absolute; z-index: 2; left: 50%; top: 50%; width: 96px; height: 96px; margin: 0; display: grid; place-items: center; border: 1px solid var(--fg); background: rgba(8,8,8,.94); color: var(--fg); cursor: pointer; border-radius: 0; opacity: 0; transform: translate(-50%, -50%) scale(.85); pointer-events: none; transition: opacity .25s, transform .3s var(--ease), background .2s, color .2s; }
.tvbig svg { width: 30px; height: 30px; }
.tvbig.isplay svg { margin-left: 4px; }
.tvstage.ready.flash .tvbig, .tvstage.ready.paused .tvbig, .tvstage.stuck .tvbig { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.tvqw { position: relative; }
.tvqb { width: auto; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.tvqb svg { width: 18px; height: 18px; }
.tvqm { position: absolute; right: 0; bottom: calc(100% + 6px); min-width: 140px; display: none; background: rgba(10,10,10,.96); border: 1px solid var(--line); padding: 4px; z-index: 6; }
.tvqm.open { display: grid; }
.tvqm button { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; background: transparent; border: 0; color: #cfcfcf; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; border-radius: 0; text-align: left; }
.tvqm button:hover { background: #fff; color: #000; }
.tvqm button.on { color: #fff; font-weight: 700; }
.tvqm button.on::after { content: "✓"; }
.tvbig:hover { background: var(--fg); color: var(--bg); }
.tvbar { position: relative; height: 20px; cursor: pointer; touch-action: none; }
.tvbar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: rgba(255,255,255,.22); transition: height .15s, margin .15s; }
.tvbar i { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; width: 0; transition: height .15s, margin .15s; }
.tvbar i.b { background: rgba(255,255,255,.35); }
.tvbar i.p { background: #fff; }
.tvbar i.p::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: #fff; transform: scale(0); transition: transform .15s; }
.tvbar:hover::before, .tvbar:hover i, .tvbar.drag::before, .tvbar.drag i { height: 5px; margin-top: -2.5px; }
.tvbar:hover i.p::after, .tvbar.drag i.p::after { transform: scale(1); }
.tvrow { display: flex; align-items: center; gap: 4px; }
.tvtime { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: #cfcfcf; padding: 0 10px; white-space: nowrap; }
.tvsp { flex: 1; }
.tvvol { -webkit-appearance: none; appearance: none; width: 72px; height: 20px; background: transparent; cursor: pointer; margin: 0 4px; }
.tvvol::-webkit-slider-runnable-track { height: 3px; background: rgba(255,255,255,.3); }
.tvvol::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -3.5px; background: #fff; border: 0; border-radius: 0; }
.tvvol::-moz-range-track { height: 3px; background: rgba(255,255,255,.3); }
.tvvol::-moz-range-thumb { width: 10px; height: 10px; background: #fff; border: 0; border-radius: 0; }
.tvload { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: #000 center / cover no-repeat; transition: opacity .45s; }
.tvload::after { content: ""; width: 38px; height: 38px; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; animation: tvspin .8s linear infinite; }
.tvload.msg { z-index: 4; }
.tvload.msg::after { display: none; }
.tvload .tvmsg { display: none; text-align: center; padding: 20px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.tvload.msg .tvmsg { display: grid; gap: 14px; justify-items: center; }
.tvstage.ready .tvload { opacity: 0; pointer-events: none; }
.tvths { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.tvths .tvth:first-child { margin-left: auto; }
.tvths .tvth:last-child { margin-right: auto; }
.tvths:empty { display: none; }
.tvth { flex: 0 0 auto; width: 176px; padding: 0; background: none; border: 1px solid var(--line); color: var(--dim); text-align: left; cursor: pointer; border-radius: 0; transition: border-color .2s, color .2s; }
.tvth img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .55; transition: opacity .2s; }
.tvth span { display: block; padding: 7px 9px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvth:hover { border-color: var(--dim); color: var(--fg); }
.tvth:hover img { opacity: .85; }
.tvth.on { border-color: var(--fg); color: var(--fg); }
.tvth.on img { opacity: 1; }
@media (max-width: 720px) {
  .tvm { padding: 0; align-items: center; }
  .tvvol { display: none; }
  .tvth { width: min(132px, calc((100vw - 44px) / 3)); }
  .tvths { padding: 0 12px 4px; }
}
@media (prefers-reduced-motion: reduce) { .tvm, .tvbox, .tvload::after { animation: none; } }


/* ===== Crédits + VIP ===== */
.crhero, .viphero { position: relative; display: grid; gap: 12px; justify-items: start; padding: 44px 0 26px; }
.crtag { font-family: var(--mono); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--on-acc); background: var(--acc); padding: 4px 9px; }
.crhero h1, .viphero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(48px, 9vw, 104px); line-height: .9; margin: 0; text-transform: uppercase; letter-spacing: .01em; }
.crhero p, .viphero p { margin: 0; color: var(--dim); max-width: 60ch; font-weight: 500; }
.crgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding-bottom: 40px; }
.crsec { position: relative; padding: 24px 22px 22px; border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 9%, var(--panel)), var(--panel) 62%); animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); transition: border-color .3s, transform .3s var(--ease); }
.crsec::before { content: ""; position: absolute; left: -1px; top: -1px; width: 38px; height: 3px; background: var(--acc); transition: width .35s var(--ease); }
.crsec:hover { border-color: var(--acc); transform: translateY(-3px); }
.crsec:hover::before { width: calc(100% + 2px); }
.crsec h2 { font-family: var(--mono); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--acc); margin: 0 0 14px; }
.crsec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.crsec li { display: grid; gap: 2px; font-size: 20px; line-height: 1.15; }
.crsec li b { font-family: var(--display); font-weight: 900; font-size: 28px; text-transform: uppercase; letter-spacing: .02em; }
.crsec li span { color: var(--dim); font-size: 14px; font-weight: 600; }
.crsec p { margin: 12px 0 0; color: var(--dim); font-weight: 600; line-height: 1.5; }
.crsec a { color: var(--fg); font-weight: 800; text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 3px; }
.crsec a:hover { color: var(--acc); }
.credit { display: grid; gap: 12px; max-width: 760px; padding-bottom: 40px; }
.credit textarea { width: 100%; min-height: 340px; background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 0; padding: 14px; font-family: var(--mono); font-size: 14px; line-height: 1.55; resize: vertical; }
.credit textarea:focus { outline: none; border-color: var(--acc); }
.vipbox { display: grid; gap: 14px; max-width: 560px; padding: 24px; border: 1px solid var(--acc); background: linear-gradient(150deg, color-mix(in srgb, var(--acc) 14%, var(--panel)), var(--panel) 70%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 30%, transparent), 0 24px 60px rgba(0,0,0,.5); }
.vipbox h2 { font-family: var(--display); font-weight: 900; font-size: 34px; text-transform: uppercase; margin: 0; }
.vipbox p { margin: 0; color: var(--dim); font-weight: 600; }
.vipcode { width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 0; padding: 14px; font-family: var(--mono); font-weight: 800; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.vipcode:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 25%, transparent); }
.viperr { min-height: 18px; margin: 0; font-weight: 700; color: #ff6b81 !important; }
.vipon { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; background: var(--acc); color: var(--on-acc); font-family: var(--mono); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.vipperks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding: 30px 0 44px; }
.vipperk { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); background: var(--panel); animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.vipperk i { font-style: normal; font-size: 28px; color: var(--acc); line-height: 1; }
.vipperk b { font-family: var(--display); font-weight: 900; font-size: 24px; text-transform: uppercase; }
.vipperk span { color: var(--dim); font-weight: 600; font-size: 14px; line-height: 1.45; }
.vipadm { display: grid; gap: 4px; }
.vipadm .vrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vipadm .vrow code { font-family: var(--mono); font-weight: 800; letter-spacing: .08em; color: var(--acc); }
.thopt.lock { opacity: .6; }
.thvip, .cswatch button.vipx::after, .cemo button.vipx::after { font-style: normal; font-family: var(--mono); font-weight: 800; font-size: 9px; letter-spacing: .1em; padding: 1px 4px; background: var(--acc); color: var(--on-acc); }
.cswatch button, .cemo button { position: relative; }
.cswatch button.vipx::after, .cemo button.vipx::after { content: "VIP"; position: absolute; right: -4px; top: -6px; }
.cswatch button.lock, .cemo button.lock { opacity: .5; }
footer .copy a { color: var(--fg); font-weight: 800; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
footer .copy a:hover { color: var(--acc); text-decoration-color: var(--acc); }
html[data-theme="gold"] { --bg: #0b0905; --fg: #fff; --dim: #b3a58a; --line: #33270f; --panel: #14100a; --s0: #0e0b06; --s1: #1f1809; --acc: #d4a017; --on-acc: #000; }
html[data-theme="rose"] { --bg: #0d0509; --fg: #fff; --dim: #b894a6; --line: #3a1528; --panel: #16080f; --s0: #10060b; --s1: #240c18; --acc: #ec4899; --on-acc: #fff; }
html[data-theme="emerald"] { --bg: #04100b; --fg: #fff; --dim: #8fb8a6; --line: #123626; --panel: #07190f; --s0: #05130c; --s1: #0b2a1b; --acc: #10b981; --on-acc: #000; }
html[data-theme="gold"] ::selection { background: #d4a017; color: #000; }
html[data-theme="rose"] ::selection { background: #ec4899; color: #fff; }
html[data-theme="emerald"] ::selection { background: #10b981; color: #000; }
html[data-theme="ice"] { --bg: #04101a; --fg: #fff; --dim: #8fb0c4; --line: #123049; --panel: #071a29; --s0: #05141f; --s1: #0b2a42; --acc: #38bdf8; --on-acc: #000; }
html[data-theme="ice"] ::selection { background: #38bdf8; color: #000; }
html[data-theme="fire"] { --bg: #0f0602; --fg: #fff; --dim: #c4a08a; --line: #40200c; --panel: #190b04; --s0: #120803; --s1: #2b1507; --acc: #f97316; --on-acc: #000; }
html[data-theme="fire"] ::selection { background: #f97316; color: #000; }
html[data-theme="silver"] { --bg: #08080a; --fg: #fff; --dim: #a3a8b3; --line: #2a2c33; --panel: #101114; --s0: #0b0b0d; --s1: #1b1c21; --acc: #cbd5e1; --on-acc: #000; }
html[data-theme="silver"] ::selection { background: #cbd5e1; color: #000; }
html[data-theme="lime"] { --bg: #070d02; --fg: #fff; --dim: #a9bd8a; --line: #23360b; --panel: #0e1704; --s0: #0a1103; --s1: #16260a; --acc: #a3e635; --on-acc: #000; }
html[data-theme="lime"] ::selection { background: #a3e635; color: #000; }
.setbtn { position: relative; }
.vipcrown { position: absolute; z-index: 3; top: -13px; left: -9px; width: 24px; height: 24px; display: grid; place-items: center; color: var(--acc); transform: rotate(-22deg); filter: drop-shadow(0 2px 3px rgba(0,0,0,.7)); pointer-events: none; }
.vipcrown svg { width: 24px; height: 24px; }
.cfx button { width: auto !important; padding: 0 14px !important; font-family: var(--mono); font-weight: 800; font-size: 12px !important; text-transform: uppercase; letter-spacing: .08em; }
.colc.fx1 .colcov::before { z-index: 5; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.12) 44%, rgba(255,255,255,.62) 50%, rgba(255,255,255,.12) 56%, transparent 60%); background-size: 280% 100%; background-repeat: no-repeat; background-position: 160% 0; mix-blend-mode: overlay; animation: colSweep 3s ease-in-out infinite; }
.colc.fx1 .colcov { border-color: color-mix(in srgb, var(--c0) 60%, #fff); }
.colc.fx2 .colcov { border-color: var(--c0); box-shadow: 0 0 0 1px var(--c0), 0 0 24px color-mix(in srgb, var(--c0) 55%, transparent), inset 0 0 28px color-mix(in srgb, var(--c0) 22%, transparent); }
.colc.fx2 .colem { text-shadow: 0 0 14px var(--c0), 0 0 30px var(--c0); }
.colc.fx3 .colcov::before { z-index: 5; pointer-events: none; background: linear-gradient(125deg, var(--c0) 0%, transparent 22%, color-mix(in srgb, var(--c0) 45%, #fff) 42%, transparent 62%, var(--c0) 80%, transparent 100%); background-size: 300% 300%; mix-blend-mode: screen; opacity: .7; animation: colAurora 6s ease-in-out infinite; }
.colc.fx3 .colcov { border-color: color-mix(in srgb, var(--c0) 70%, transparent); }
@keyframes colSweep { 0% { background-position: 160% 0; } 70%, 100% { background-position: -60% 0; } }
@keyframes colAurora { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .colc.fx1 .colcov::before { animation: none; background-position: 40% 0; } .colc.fx3 .colcov::before { animation: none; background-position: 30% 50%; } }
html.noanim .colc.fx1 .colcov::before { animation: none !important; background-position: 40% 0; }
html.noanim .colc.fx3 .colcov::before { animation: none !important; background-position: 30% 50%; }
.cpc { position: absolute; inset: 0; z-index: 0; background: #111 center / cover no-repeat; transition: transform .5s var(--ease); }
.colc:hover .cpc { transform: scale(1.05); }
.colcover { position: absolute; inset: 0; z-index: -1; background: #111 center / cover no-repeat; opacity: .5; }
.colcover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, transparent 80%), linear-gradient(to right, var(--bg), transparent 70%); }
/* ===== Collections ===== */
.colgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px 18px; align-items: start; }
.colc.fm2 { grid-column: span 2; }
.colc { --c0: #8b5cf6; --c1: #312e81; position: relative; display: block; min-width: 0; color: inherit; animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.colcov { position: relative; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate; border: 1px solid var(--line); background: radial-gradient(120% 100% at 0 0, var(--c0) 0%, transparent 62%), linear-gradient(155deg, var(--c1), #000 88%); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.colcov::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px); }
.colcov::after { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; background: linear-gradient(transparent, rgba(0,0,0,.82)); z-index: 1; pointer-events: none; }
.colc:hover .colcov { transform: translateY(-5px); border-color: var(--c0); box-shadow: 0 18px 38px rgba(0,0,0,.65), 0 0 0 1px var(--c0); }
.colem { position: absolute; font-family: var(--display); font-weight: 900; line-height: 1; color: #fff; }
.colc.fm1 .colcov { aspect-ratio: 2 / 3; }
.colc.fm2 .colcov { aspect-ratio: 16 / 10; }
.colmeta { display: block; padding-top: 10px; min-width: 0; }
.colmeta b { display: block; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.colmeta span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); }
.colnew { display: grid; place-items: center; align-content: center; gap: 10px; aspect-ratio: 4 / 5; border: 1px dashed var(--dim); background: transparent; color: var(--dim); cursor: pointer; border-radius: 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; transition: color .25s, border-color .25s, background .25s; animation: cardIn .5s var(--ease) both; }
.colnew svg { width: 34px; height: 34px; transition: transform .4s var(--ease); }
.colnew:hover { color: var(--fg); border-color: var(--acc); background: color-mix(in srgb, var(--acc) 8%, transparent); }
.colnew:hover svg { transform: rotate(90deg) scale(1.1); }
.colhero { --c0: #8b5cf6; --c1: #312e81; position: relative; overflow: hidden; isolation: isolate; padding: 40px 0 30px; border-bottom: 1px solid var(--line); }
.colhero::before { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; left: -200px; top: -380px; border-radius: 50%; background: radial-gradient(closest-side, var(--c0), transparent); opacity: .34; pointer-events: none; }
.colhero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 1px, transparent 1px 11px); pointer-events: none; }
.colback { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); transition: color .2s; }
.colback:hover { color: var(--fg); }
.colhead { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.colbadge { flex: none; width: 96px; height: 96px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 52px; color: #fff; background: linear-gradient(150deg, var(--c0), var(--c1)); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 16px 40px rgba(0,0,0,.55); animation: riseIn .6s var(--ease) both; }
.colhead h1 { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 7vw, 84px); line-height: .95; text-transform: uppercase; margin: 0 0 8px; text-wrap: balance; animation: riseIn .6s .06s var(--ease) both; }
.colhead p { margin: 0; max-width: 60ch; color: var(--dim); animation: riseIn .6s .1s var(--ease) both; }
.colhead .cmeta { margin-top: 10px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); }
.colhead .cmeta i { font-style: normal; color: var(--c0); }
.colact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; animation: riseIn .6s .14s var(--ease) both; }
.colact .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.colact .btn svg { width: 18px; height: 18px; flex: none; }
.coladd { display: flex; align-items: stretch; gap: 10px; max-width: 520px; margin: 26px 0 8px; }
.colsearch { position: relative; flex: 1 1 auto; min-width: 0; display: block; }
.coladd input { width: 100%; padding: 13px 16px 13px 44px; font-size: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--fg); font: inherit; border-radius: 0; transition: border-color .2s; }
.coladd input:focus { outline: none; border-color: var(--acc); }
.colsearch > svg { position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; color: var(--dim); pointer-events: none; }
.coladd .cres-old { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--panel); border: 1px solid var(--acc); border-top: 0; box-shadow: 0 20px 40px rgba(0,0,0,.6); }
.cres button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; background: transparent; border: 0; border-top: 1px solid var(--line); color: var(--fg); text-align: left; cursor: pointer; border-radius: 0; font: inherit; }
.cres button:first-child { border-top: 0; }
.cres button:hover { background: var(--s1); }
.cres img, .cres .cph { flex: none; width: 30px; height: 44px; object-fit: cover; background: var(--s1); }
.cres span { flex: 1; min-width: 0; }
.cres b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cres em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.cres svg { flex: none; width: 18px; height: 18px; color: var(--dim); }
.colov { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .2s ease both; }
.colbox { width: min(560px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.7); animation: riseIn .35s var(--ease) both; }
.colbox > .cbh { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.colbox h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .03em; }
.colbox .cbx { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; background: transparent; border: 1px solid var(--line); color: var(--dim); cursor: pointer; border-radius: 0; font-size: 18px; line-height: 1; transition: color .2s, border-color .2s; }
.colbox .cbx:hover { color: var(--fg); border-color: var(--fg); }
.colbox .cbb { padding: 20px; display: grid; gap: 16px; }
.colbox .colprev { max-width: 240px; margin: 0 auto 4px; pointer-events: none; }
.colbox label.cf { display: grid; gap: 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.colbox label.cf input, .colbox label.cf textarea { padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); color: var(--fg); font: 15px var(--body); text-transform: none; letter-spacing: 0; border-radius: 0; resize: none; transition: border-color .2s; }
.colbox label.cf input:focus, .colbox label.cf textarea:focus { outline: none; border-color: var(--acc); }
.cswatch, .cemo { display: flex; flex-wrap: wrap; gap: 8px; }
.cswatch button { width: 34px; height: 34px; padding: 0; border: 2px solid transparent; background: linear-gradient(150deg, var(--c0), var(--c1)); cursor: pointer; border-radius: 0; outline: 1px solid var(--line); outline-offset: 0; transition: transform .2s; }
.cswatch button:hover { transform: scale(1.1); }
.cswatch button.on { border-color: var(--fg); outline-color: transparent; }
.cemo button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); color: var(--fg); font-size: 18px; cursor: pointer; border-radius: 0; transition: background .2s, border-color .2s; }
.cemo button:hover { border-color: var(--dim); }
.cemo button.on { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.colbox .cbf { position: sticky; bottom: 0; z-index: 2; background: var(--bg); display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.cpick { display: grid; }
.cprow { --c0: #8b5cf6; --c1: #312e81; display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 20px; background: transparent; border: 0; border-top: 1px solid var(--line); color: var(--fg); text-align: left; cursor: pointer; border-radius: 0; font: inherit; transition: background .2s; }
.cprow:first-child { border-top: 0; }
.cprow:hover { background: var(--s1); }
.cprow .ce { flex: none; width: 42px; height: 42px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 22px; color: #fff; background: linear-gradient(150deg, var(--c0), var(--c1)); }
.cprow .ct { flex: 1; min-width: 0; }
.cprow .ct b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cprow .ct em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.cprow .ck { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); color: transparent; transition: background .2s, color .2s, border-color .2s; }
.cprow .ck svg { width: 16px; height: 16px; }
.cprow.on .ck { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.cpnew { border-top: 1px solid var(--line); }
.cpnew .cprow .ce { background: transparent; border: 1px dashed var(--dim); color: var(--dim); }
@media (max-width: 640px) { .colgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } .colbadge { width: 72px; height: 72px; font-size: 38px; } .colmeta b { font-size: 18px; } }
.colbox button, .colbox .btn, .colbox label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.colbox .cbf .btn { min-height: 44px; }
.colbox .cfm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.colbox .cfm button { width: auto !important; height: auto !important; min-height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px 6px !important; text-align: center; line-height: 1.15; font-family: var(--mono); font-weight: 800; font-size: 11px !important; text-transform: uppercase; letter-spacing: .06em; }
.colbox .cfm button i { display: block; flex: none; border: 2px solid currentColor; border-radius: 1px; }
.cico { display: block; width: 1em; height: 1em; flex: none; }
.colem .cico { filter: drop-shadow(0 2px 10px rgba(0,0,0,.5)); }
/* affiches empilées : 3 cartes qui remplissent le cadre */
.cp { position: absolute; left: 50%; top: 50%; width: 58%; aspect-ratio: 2 / 3; background: #161616 center / cover no-repeat; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 12px 30px rgba(0,0,0,.65); transition: transform .5s var(--ease); will-change: transform; }
.cp1 { z-index: 3; transform: translate(-50%, -50%); }
.cp2 { z-index: 2; transform: translate(-50%, -50%) translateX(38%) rotate(8deg) scale(.92); filter: brightness(.82); }
.cp3 { z-index: 1; transform: translate(-50%, -50%) translateX(-38%) rotate(-8deg) scale(.92); filter: brightness(.82); }
.pn2 .cp1 { transform: translate(-50%, -50%) translateX(-9%) rotate(-3deg); }
.pn2 .cp2 { transform: translate(-50%, -50%) translateX(34%) rotate(8deg) scale(.92); }
.colc:hover .pn3 .cp2 { transform: translate(-50%, -52%) translateX(46%) rotate(12deg) scale(.94); }
.colc:hover .pn3 .cp3 { transform: translate(-50%, -52%) translateX(-46%) rotate(-12deg) scale(.94); }
.colc:hover .pn3 .cp1, .colc:hover .pn1 .cp1 { transform: translate(-50%, -52%) scale(1.03); }
.colc:hover .pn2 .cp1 { transform: translate(-50%, -52%) translateX(-12%) rotate(-5deg) scale(1.02); }
.colc:hover .pn2 .cp2 { transform: translate(-50%, -52%) translateX(38%) rotate(11deg) scale(.94); }
.cpd { background: linear-gradient(150deg, rgba(255,255,255,.2), rgba(255,255,255,.05)); }
.colc.fm1 .colcov { aspect-ratio: 2 / 3; }
.colc.fm2 .colcov { aspect-ratio: 16 / 10; }
.colc.fm1 .cp { width: 64%; }
.colc.fm1 .cp2 { transform: translate(-50%, -50%) translateX(34%) rotate(8deg) scale(.92); }
.colc.fm1 .cp3 { transform: translate(-50%, -50%) translateX(-34%) rotate(-8deg) scale(.92); }
.colc.fm2 .cp { width: auto; height: 84%; }
.colc.fm2 .cp2 { transform: translate(-50%, -50%) translateX(68%) rotate(7deg) scale(.92); }
.colc.fm2 .cp3 { transform: translate(-50%, -50%) translateX(-68%) rotate(-7deg) scale(.92); }
.colc.fm2 .pn2 .cp1 { transform: translate(-50%, -50%) translateX(-22%) rotate(-3deg); }
.colc.fm2 .pn2 .cp2 { transform: translate(-50%, -50%) translateX(52%) rotate(7deg) scale(.92); }
.colc.fm2:hover .pn3 .cp2 { transform: translate(-50%, -52%) translateX(76%) rotate(10deg) scale(.94); }
.colc.fm2:hover .pn3 .cp3 { transform: translate(-50%, -52%) translateX(-76%) rotate(-10deg) scale(.94); }
.colc.fm2:hover .pn2 .cp1 { transform: translate(-50%, -52%) translateX(-25%) rotate(-5deg) scale(1.02); }
.colc.fm2:hover .pn2 .cp2 { transform: translate(-50%, -52%) translateX(56%) rotate(10deg) scale(.94); }
.colcov.hasp::after { height: 30%; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.colem { display: grid; place-items: center; left: 12px; top: 12px; z-index: 4; width: 36px; height: 36px; font-size: 20px; background: rgba(0,0,0,.58); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); text-shadow: none; }
.colcov:not(.hasp):not(.hasc) .colem { left: 50%; top: 50%; width: auto; height: auto; transform: translate(-50%, -50%); font-size: 64px; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.colc.fm2 .colcov:not(.hasp):not(.hasc) .colem { font-size: 72px; }
@media (max-width: 640px) {
  .colem { left: 8px; top: 8px; width: 30px; height: 30px; font-size: 17px; }
  .colcov:not(.hasp):not(.hasc) .colem { font-size: 52px; }
  .colc.fm2 .colcov:not(.hasp):not(.hasc) .colem { font-size: 56px; }
  .cp { box-shadow: 0 8px 20px rgba(0,0,0,.6); }
  .colmeta { padding-top: 8px; }
  .colmeta span { font-size: 10px; }
}
.cnone { display: flex; }
.colbox .cnone button { width: auto !important; height: 38px !important; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px !important; font-family: var(--mono); font-weight: 800; font-size: 12px !important; text-transform: uppercase; letter-spacing: .08em; }
.colbox .cnone button i { width: 14px; height: 14px; border: 2px solid currentColor; position: relative; flex: none; }
.colbox .cnone button i::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; border-top: 2px solid currentColor; transform: rotate(-45deg); }
@media (max-width: 720px) { .colbox .cnone button { width: 100% !important; height: 44px !important; justify-content: center; } .colbox .cnone { display: grid; } }
.colc.fx2 .colem .cico { filter: drop-shadow(0 0 8px var(--c0)) drop-shadow(0 0 16px var(--c0)); }
.colbadge .cico { width: .6em; height: .6em; }
.cprow .ce .cico { width: 1.05em; height: 1.05em; }
.cemo button .cico { width: 20px; height: 20px; }
.rqvip i .cico { width: 14px; height: 14px; }
.colplus, .colplusbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--acc); background: var(--acc); color: var(--on-acc); cursor: pointer; border-radius: 0; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .2s var(--ease), background .2s, color .2s; }
.colplus { width: 40px; height: 40px; padding: 0; }
.colplus[hidden] { display: none; }
.colplusbtn { flex: none; padding: 0 18px; min-height: 48px; }
.colplus svg, .colplusbtn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
@media (hover: hover) { .colplus:hover svg, .colplusbtn:hover svg { transform: rotate(90deg); } }
.colplus:active, .colplusbtn:active { transform: scale(.96); }
.colgrid.only { grid-template-columns: minmax(0, 280px); }
.cmq { position: sticky; top: 0; z-index: 3; padding: 14px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.cmq .mlsearch { max-width: none; display: block; }
.cmq .mlsearch input { font-size: 16px; padding: 13px 12px 13px 40px; background: var(--panel); }
.cmhint { padding: 22px 20px; margin: 0; }
.cmres .cmth { flex: none; width: 36px; height: 54px; object-fit: cover; background: var(--s1); display: block; }
.cmres .ck { color: var(--dim); }
.cmres.on .ck { color: var(--on-acc); }
.cmres .ct b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 720px) {
  .colplus { width: 44px; height: 44px; }
  .coladd { max-width: none; margin-top: 20px; }
  .colplusbtn { padding: 0 14px; min-height: 50px; }
  .colplusbtn span { display: none; }
  .colplusbtn { width: 50px; padding: 0; }
  .cmq { padding: 12px 16px; }
  .cmres { padding: 10px 16px; min-height: 72px; }
}
.cimp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -6px; }
.cimp .btn { gap: 8px; }
.cimp .btn svg { width: 16px; height: 16px; flex: none; }
.cimp .cimpn { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.cimp .btn.lock { opacity: .5; }
@media (max-width: 720px) {
  .colov { padding: 10px; align-items: end; }
  .colbox { max-height: calc(100dvh - 20px); }
  .cswatch button { width: 40px; height: 40px; }
  .cemo button { width: 44px; height: 44px; }
  .colbox .cbx { width: 44px; height: 44px; }
  .cprow { min-height: 60px; }
}
@media (hover: none) { .cswatch button:hover { transform: none; } }
@media (max-width: 720px) {
  .colbox .cbb { padding: 16px; gap: 18px; }
  .colbox .cswatch { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .colbox .cswatch button { width: 100%; height: auto; aspect-ratio: 1; }
  .colbox .cemo:not(.cfx):not(.cfm) { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .colbox .cemo:not(.cfx):not(.cfm) button { width: 100%; height: auto; aspect-ratio: 1; }
  .colbox .cfx { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .colbox .cfx button { width: auto !important; height: 44px; padding: 0 2px !important; font-size: 11px !important; letter-spacing: .04em; }
  .colbox .cimp { display: grid; grid-template-columns: 1fr; }
  .colbox .cimp .btn { width: 100%; min-height: 44px; }
  .colbox .cbf { gap: 8px; }
  .colbox .cbf .btn { flex: 1 1 0; }
}
.rqvip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--acc); background: linear-gradient(150deg, color-mix(in srgb, var(--acc) 14%, var(--panel)), var(--panel)); font-weight: 700; font-size: 14px; line-height: 1.4; }
.rqvip i { font-style: normal; flex: none; width: 24px; height: 24px; display: grid; place-items: center; background: var(--acc); color: var(--on-acc); font-size: 13px; }
.rqvip small { display: block; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
@media (prefers-reduced-motion: reduce) { .colc, .colnew, .colbox, .colov, .colbadge, .colhead h1, .colhead p, .colact { animation: none; } }
/* ===== Thèmes (Paramètres > Général > Apparence) ===== */
html[data-theme="red"] { --bg: #000; --fg: #fff; --dim: #a39090; --line: #35191d; --panel: #130709; --s0: #0c0405; --s1: #1f0b0e; --acc: #e11d2e; --on-acc: #fff; }
html[data-theme="blue"] { --bg: #081a3a; --fg: #fff; --dim: #9db4dd; --line: #1f3b73; --panel: #0d2554; --s0: #061430; --s1: #12306a; --acc: #2f80ff; --on-acc: #fff; }
html[data-theme="violet"] { --bg: #05020a; --fg: #fff; --dim: #9484b3; --line: #20123a; --panel: #0c0618; --s0: #080411; --s1: #140a28; --acc: #6d28d9; --on-acc: #fff; }
html[data-theme="violet"] ::selection { background: #6d28d9; color: #fff; }
html[data-theme="red"] ::selection { background: #e11d2e; color: #fff; }
html[data-theme="blue"] ::selection { background: #2f80ff; color: #fff; }
.thgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.thopt { display: grid; gap: 10px; padding: 10px 10px 12px; border: 1px solid var(--line); background: transparent; color: var(--fg); text-align: left; cursor: pointer; border-radius: 0; transition: border-color .2s, background .2s; }
.thopt:hover { border-color: var(--dim); }
.thopt.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.thprev { height: 70px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px; border: 1px solid rgba(128,128,128,.4); }
.thprev i { display: block; height: 6px; }
.thprev i + i { height: 10px; }
.thopt b { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 700; }
.thopt b::after { content: ""; flex: none; width: 8px; height: 8px; border: 1px solid var(--dim); border-radius: 50%; }
.thopt.on b::after { background: var(--acc); border-color: var(--acc); }
.thopt small { color: var(--dim); font-size: 12px; line-height: 1.35; }

/* ===== Notifications : le message s'ouvre comme « Infos du site » ===== */
dialog#ninfo { width: min(560px, 94vw); max-height: 90vh; overflow: auto; padding: 0; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
dialog#ninfo[open] { animation: dialogIn .3s var(--ease) both; }
dialog#ninfo::backdrop { background: rgba(0,0,0,.85); }
#ninfo .wbox h3 { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .03em; margin: 6px 0 -4px; }
#ninfo .wbox b { color: var(--fg); }
#ninfo .wbox ul.nlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
#ninfo .wbox ul.nlist li { position: relative; padding-left: 18px; color: #cfcfcf; }
#ninfo .wbox ul.nlist li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--acc); }
#ninfo .nbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.nitem[data-nmsg] { cursor: pointer; }
.nitem[data-nmsg] .nt p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hsend .hint { margin: -4px 0 0; font-size: 12px; color: var(--dim); }
.hsend .hbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.hsend .hacts { display: flex; flex-wrap: wrap; gap: 8px; }


/* ===== Lecteur : refonte (même langage visuel que Ma liste, Séries, Calendrier et Paramètres) ===== */
.pcount[hidden], .pline[hidden], .epsback[hidden] { display: none; }
dialog#player { isolation: isolate; background: var(--bg); }
dialog#player::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 340px; z-index: -1; pointer-events: none;
  background: radial-gradient(560px 240px at 6% -60px, color-mix(in srgb, var(--acc) 22%, transparent), transparent 72%), radial-gradient(480px 220px at 98% -80px, rgba(255,255,255,.07), transparent 72%); }
dialog#player.wide::before { display: none; }
@keyframes plping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--grn) 60%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes plpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.78); } }
@keyframes plsheet { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }

/* en-tête */
dialog#player .phead { position: relative; gap: 14px; padding: max(12px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 14px max(18px, env(safe-area-inset-left, 0px)); background: transparent; border-bottom: 1px solid var(--line); }
#pclose { flex: none; gap: 8px; min-height: 44px; padding: 0 18px 0 12px; }
#pclose svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
#pclose:hover svg { transform: translateX(-4px); }
.plogo { flex: none; width: 46px; height: 46px; color: var(--fg); }
.plogo .scr { stroke-dasharray: 80; stroke-dashoffset: 80; animation: mldraw 1s .1s var(--ease) forwards; }
.plogo .tri { stroke: var(--sky); fill: var(--sky); fill-opacity: 0; stroke-dasharray: 40; stroke-dashoffset: 40; transform-origin: 12px 11px; animation: mldraw .8s .7s var(--ease) forwards, mlspark 3.2s 1.7s ease-in-out infinite; }
html.noanim .plogo .scr, html.noanim .plogo .tri { stroke-dashoffset: 0 !important; }
@media (prefers-reduced-motion: reduce) { .plogo .scr, .plogo .tri { stroke-dashoffset: 0; } }
.phead .pt { gap: 0; }
.pkick { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.pkick i { width: 7px; height: 7px; border-radius: 50%; background: var(--grn); animation: plping 1.8s ease-out infinite; }
.pkick em { font-style: normal; color: var(--fg); font-weight: 800; }
.phead .pt b { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.02; }
.phead .pt small { margin-top: 5px; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.pcount { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding: 2px 0 2px 18px; border-left: 1px solid var(--line); line-height: 1; }
.pcount small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.pcount b { font-family: var(--display); font-weight: 900; font-size: 46px; line-height: .86; letter-spacing: .01em; max-width: none; overflow: visible; text-overflow: clip; white-space: nowrap; flex: none; }
.pcount span { font-family: var(--mono); font-size: 11px; color: var(--dim); }
dialog#player .phead .row { gap: 8px; }
dialog#player .phead .row .btn { min-height: 44px; }
.pline { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.pline i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 35%, transparent), var(--acc)); box-shadow: 0 0 14px color-mix(in srgb, var(--acc) 75%, transparent); transition: width .7s var(--ease); }
dialog#player[open] .phead .pt, dialog#player[open] .phead .pcount, dialog#player[open] .phead .row, dialog#player[open] .pbar > * { animation: riseIn .5s .08s var(--ease) backwards; }

/* écran vidéo */
dialog#player .pframe { background: var(--s0); }
dialog#player:not(.wide) .pframe::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; --c: var(--acc); --t: 2px; --l: 22px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / var(--t) var(--l) no-repeat; }
dialog#player .pframe.fsui::after, dialog#player .pframe:fullscreen::after, dialog#player .pframe:-webkit-full-screen::after { display: none; }
dialog#player.wide .pframe { margin: 0; border: 0; box-shadow: none; }
dialog#player .pframe.fsui, dialog#player .pframe:fullscreen, dialog#player .pframe:-webkit-full-screen { margin: 0 !important; border: 0 !important; box-shadow: none !important; }

/* chargement */
.pload { gap: 20px; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--acc) 10%, var(--s1)) 0%, var(--s0) 72%); }
.pspin { position: relative; width: 68px; height: 68px; border: 0; border-radius: 0; animation: none; }
.pspin::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--line); border-top-color: var(--acc); border-radius: 50%; animation: pspin .9s linear infinite; }
.pspin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -9px 0 0 -5px; border-left: 15px solid var(--fg); border-top: 9px solid transparent; border-bottom: 9px solid transparent; animation: plpulse 1.6s ease-in-out infinite; }
.plbl { font-size: 11px; letter-spacing: .18em; }

/* barre de commandes */
dialog#player .pbar { align-items: stretch; gap: 12px; padding: 14px max(18px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); background: linear-gradient(to bottom, var(--s0), var(--bg)); border-top: 1px solid var(--line); }
#pbar .pl { order: -4; flex: 1 1 340px; align-items: center; gap: 12px; }
#pbar .pfold { order: -3; }
#pbar .pn { order: -2; flex: 0 0 auto; margin-left: auto; gap: 10px; }
#pbar .ptip { order: -1; flex: 1 1 100%; }
.pbar .chiplbl { margin: 0; font-size: 11px; letter-spacing: .14em; }
#psrc { counter-reset: srcn; gap: 8px; }
#psrc .chip { counter-increment: srcn; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 12px; background: var(--panel); border: 1px solid var(--line); color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .08em; transition: color .2s, border-color .2s, background .2s, transform .3s var(--ease), box-shadow .3s; }
#psrc .chip::before { content: counter(srcn, decimal-leading-zero); padding: 3px 5px; border: 1px solid currentColor; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .04em; opacity: .6; }
#psrc .chip:hover { color: var(--fg); border-color: var(--dim); background: var(--s1); transform: translateY(-2px); }
#psrc .chip.on { background: var(--acc); border-color: var(--acc); color: var(--on-acc); box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--acc) 80%, transparent); }
#psrc .chip.on::before { opacity: 1; }
#psrc .srctoggle { min-height: 52px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--acc); }
#psrc .srctoggle[aria-expanded="true"] { border-color: var(--acc); background: var(--s1); }
.pbar .pn .btn { min-height: 48px; padding: 0 20px; }
#pnext { box-shadow: 0 12px 32px -14px color-mix(in srgb, var(--acc) 85%, transparent); }
#pnext:hover:not(:disabled) { box-shadow: none; }

/* volet « Astuces & aide » (aussi sur PC : plus de place pour la vidéo) */
#pbar .pfold { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: 0 0 auto; width: auto; min-height: 48px; padding: 0 16px; background: transparent; border: 1px solid var(--line); color: var(--dim); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border-radius: 0; transition: color .2s, border-color .2s, background .2s; }
#pbar .pfold:hover { color: var(--fg); border-color: var(--dim); }
#pbar .pfold[aria-expanded="true"] { color: var(--fg); border-color: var(--acc); background: var(--panel); }
#pbar .pfold svg { width: 16px; height: 16px; flex: none; }
#pbar .pfold .chv { width: 14px; height: 14px; transition: transform .25s var(--ease); }
#pbar .pfold[aria-expanded="true"] .chv { transform: rotate(180deg); }
#pbar .pfold[aria-expanded="true"] .hlp { color: var(--acc); }
#pbar:not(.open) .ptip, #pbar:not(.open) #pone, #pbar:not(.open) #pone2, #pbar:not(.open) #prep { display: none !important; }

/* conseil */
#pbar .ptip { gap: 14px; min-height: 66px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--c); }
.ptip .tico { width: 42px; height: 42px; }
.ptip .tico svg { width: 20px; height: 20px; }

/* tuiles : autre source, signaler, téléchargement */
#pbar #pone, #pbar #pone2, #pbar #prep { position: relative; flex: 1 1 260px; width: auto; min-width: 0; max-width: none; min-height: 66px; align-self: stretch; align-items: center; justify-content: flex-start; gap: 14px; padding: 12px 14px; text-align: left; background: var(--panel); border: 1px solid var(--line); color: var(--dim); font-size: 13px; line-height: 1.4; cursor: pointer; transition: border-color .25s, background .25s, transform .3s var(--ease); }
#pbar #pone > span, #pbar #pone2 > span { flex: 1; min-width: 0; }
#pbar #pone > svg, #pbar #pone2 > svg { flex: none; width: 42px; height: 42px; padding: 11px; border: 1px solid var(--line); color: var(--dim); transition: background .25s, color .25s, border-color .25s; }
#pbar #pone a, #pbar #pone2 a { flex: none; padding: 6px 10px; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-decoration: none; color: var(--fg); transition: border-color .2s; }
#pbar #pone:hover, #pbar #pone2:hover, #pbar #prep:hover { background: var(--s1); border-color: var(--acc); color: var(--fg); transform: translateY(-2px); }
#pbar #pone:hover > svg, #pbar #pone2:hover > svg, #pbar #prep:hover .rbtn svg { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
#pbar #pone:hover a, #pbar #pone2:hover a { color: var(--fg); border-color: var(--acc); text-decoration: none; }
#pbar #prep { padding: 0; }
#pbar #prep .rbtn { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 14px; width: 100%; min-height: 66px; padding: 12px 14px; border: 0; background: transparent; color: var(--fg); text-align: left; font-size: 13px; letter-spacing: .1em; }
#pbar #prep .rbtn:hover { background: transparent; color: var(--fg); }
#pbar #prep .rbtn svg { grid-column: 1; grid-row: 1 / 3; width: 42px; height: 42px; padding: 11px; border: 1px solid var(--line); color: var(--dim); transition: background .25s, color .25s, border-color .25s; }
#pbar #prep .rbtn span { grid-column: 2; grid-row: 1; }
#pbar #prep .rbtn::after { content: "Lien mort ou vidéo qui plante ?"; grid-column: 2; grid-row: 2; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--dim); }
#pbar #prep .repok { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 66px; padding: 12px 14px; border: 0; }
#pbar #prep:has(.repok) { border-color: color-mix(in srgb, var(--grn) 45%, transparent); cursor: default; }
#pbar #prep:has(.repok):hover { transform: none; border-color: color-mix(in srgb, var(--grn) 45%, transparent); background: var(--panel); }

/* liste des épisodes : fond assombri, volet à droite (PC) ou feuille du bas (mobile) */
.epsback { position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); animation: fadeIn .25s ease both; }
.peps { width: min(440px, 100%); background: var(--bg); border-left: 1px solid var(--acc); box-shadow: -30px 0 80px rgba(0,0,0,.6); }
.peps .eh { padding-bottom: 14px; background: linear-gradient(to bottom, color-mix(in srgb, var(--acc) 12%, transparent), transparent); }
.peps .eh b { font-size: 28px; }
.epi { padding-block: 14px; }

/* barre « Format » du plein écran */
.pframe.fsui .fsbar { border-color: color-mix(in srgb, var(--acc) 40%, var(--line)); }

@media (min-width: 721px) {
  #psrc .chip { display: inline-flex; }
  dialog#player:not(.wide) .pframe { margin: 14px max(18px, env(safe-area-inset-right, 0px)) 0 max(18px, env(safe-area-inset-left, 0px)); border: 1px solid var(--line); box-shadow: 0 30px 90px -40px color-mix(in srgb, var(--acc) 45%, transparent); }
}

@media (max-width: 720px) {
  dialog#player .phead { gap: 10px; padding: max(10px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 12px max(12px, env(safe-area-inset-left, 0px)); }
  #pclose { width: 44px; padding: 0; justify-content: center; }
  #pclose span, .plogo { display: none; }
  .phead .pt b { flex: 0 0 auto; font-size: 21px; max-width: 100%; }
  .pcount { padding: 2px 0 2px 12px; }
  .pcount small { display: none; }
  .pcount b { font-size: 34px; }
  dialog#player .pbar { gap: 10px; padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
  #pbar .pn { order: -4; flex: 1 0 100%; width: 100%; margin-left: 0; gap: 8px; }
  #pbar .pl { order: -3; flex: 1 0 100%; width: 100%; }
  #pbar .pfold { order: -2; flex: 1 0 100%; width: 100%; justify-content: space-between; }
  #pbar .pfold span { flex: 1; text-align: left; }
  .pbar .chiplbl { display: none; }
  .pbar .pn .btn { min-height: 50px; padding: 0 12px; }
  #pprev { flex: 1 1 0; }
  #pnext { flex: 2 1 0; }
  .pbar .pn #peplist { flex: 0 0 54px; padding: 0; }
  #psrc.many.open .chip { display: inline-flex; flex: 1 1 calc(50% - 6px); min-height: 50px; }
  #pbar #pone, #pbar #pone2, #pbar #prep { flex: 1 0 100%; }
  .peps { top: auto; left: 0; right: 0; width: 100%; height: min(80vh, 80dvh, 660px); border-left: 0; border-top: 2px solid var(--acc); box-shadow: 0 -30px 80px rgba(0,0,0,.6); animation: plsheet .3s var(--ease) both; }
  .peps::before { content: ""; position: absolute; top: 8px; left: 50%; width: 44px; height: 4px; transform: translateX(-50%); background: var(--line); }
  .peps .eh { padding-top: 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); }
}
@media (max-width: 400px) {
  #pprev span { display: none; }
  #pprev { flex: 0 0 54px; padding: 0; }
}


/* mobile : en-tête sur deux lignes (boutons en haut, titre + n° d'épisode dessous) */
@media (max-width: 720px) {
  dialog#player .phead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "back . acts" "ttl ttl cnt"; align-items: center; gap: 10px 10px; }
  dialog#player.wide .phead { display: grid; }
  #pclose { grid-area: back; }
  dialog#player .phead .row { grid-area: acts; justify-self: end; gap: 8px; }
  dialog#player .phead .pt { grid-area: ttl; }
  dialog#player .phead .pcount { grid-area: cnt; flex-direction: column; align-items: flex-end; gap: 4px; padding: 0 0 0 12px; }
  .pcount b { font-size: 40px; }
  .pcount span { font-size: 10px; white-space: nowrap; }
  .phead .pt b { font-size: 24px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .phead .pt small { white-space: normal; }
  .pcount[hidden] { display: none; }
  .phead .pt { grid-column: 1 / 3; }
  dialog#player .phead:has(.pcount[hidden]) .pt { grid-column: 1 / -1; }
}

#ptitle.lk { cursor: pointer; transition: opacity .2s; }
#ptitle.lk::after { content: " ↗"; font-family: var(--mono); font-size: .5em; color: var(--dim); vertical-align: .35em; transition: color .2s; }
#ptitle.lk:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
#ptitle.lk:hover::after { color: var(--fg); }

/* ===== Grosses lueurs : coupées par défaut, réactivables dans Paramètres > Général > Effets lumineux ===== */
html:not(.glowon) #pnext, html:not(.glowon) #psrc .chip.on, html:not(.glowon) .pline i, html:not(.glowon) .ptip .tprog, html:not(.glowon) dialog#player:not(.wide) .pframe { box-shadow: none !important; }
html:not(.glowon) .ptip .tprog::after { display: none; }
html:not(.glowon) .mlhero::before, html:not(.glowon) .mlhero::after, html:not(.glowon) .sehero::before, html:not(.glowon) .colhero::before, html:not(.glowon) dialog#player::before, html:not(.glowon) .hlbox::after { display: none; }
html:not(.glowon) .colc.fx2 .colcov { box-shadow: none; }
html:not(.glowon) .colc.fx2 .colem { text-shadow: none; }
html:not(.glowon) .colc.fx2 .colem .cico { filter: none; }

/* ===== Ma liste : bouton Partager à côté du titre ===== */
.mltitle .mlhead { min-width: 0; flex: 1 1 auto; }
.mltitle .mlshare { margin-left: auto; flex: none; min-height: 44px; padding: 0 18px; gap: 10px; animation: riseIn .6s .12s var(--ease) both; }
.mltitle .mlshare[hidden] { display: none; }
@media (max-width: 560px) {
  .mltitle { gap: 12px; }
  .mltitle h1 { font-size: clamp(34px, 11vw, 44px); overflow-wrap: anywhere; }
  .mltitle .note { font-size: 12px; }
  .mltitle .mlshare { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .mltitle .mlshare span { display: none; }
}

/* ===== Liste des serveurs : badges fansub propres (mobile + PC) ===== */
.srcnm .nmt, .srctoggle .nm .nmt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#psrc .srctoggle .nm { display: flex; align-items: center; gap: 8px; }
#psrc .srctoggle .nm .fsb { margin-left: 0; flex: 0 1 auto; min-width: 0; }
@media (max-width: 720px) {
  #psrc.srcs.many.open { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
  #psrc.srcs.many.open .chip { flex: none; width: 100%; min-height: 52px; padding: 0 14px 0 12px; justify-content: flex-start; text-align: left; }
  #psrc .chip .srcnm { flex: 1 1 auto; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 10px; width: auto; min-width: 0; }
  #psrc .chip .srcnm .nmt { flex: 0 1 auto; }
  #psrc .chip .srcnm .fsb { flex: 0 1 auto; min-width: 0; margin: 0 0 0 auto; max-width: 58%; }
  #psrc .srcone { flex-wrap: nowrap; }
  #psrc .srcone .srcnm { flex: 1 1 auto; flex-wrap: nowrap; justify-content: space-between; gap: 10px; min-width: 0; }
  #psrc .srcone .srcnm .fsb { flex: 0 1 auto; min-width: 0; max-width: 58%; margin: 0 0 0 auto; }
}

/* ===== Liste reçue par lien ===== */
.mlsact { display: flex; flex-wrap: wrap; gap: 10px; margin: -6px 0 22px; animation: riseIn .6s .1s var(--ease) both; }
.mlsact .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
.mlsact .btn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 560px) { .mlsact .btn { flex: 1 1 100%; } .mlsact { margin-top: 0; } }

/* ===== Optimisations performances ===== */
.mlb, .lsplat { backdrop-filter: none; -webkit-backdrop-filter: none; }
.mlb { background: rgba(0, 0, 0, .78); }
@media (max-width: 700px) {
  header.top { backdrop-filter: none; background: rgba(0, 0, 0, .97); }
  .card, .mlc, .mls, .stcard, .pnc, .actcard, .ep { animation-duration: .25s; }
}
@media (hover: none) {
  .mlc:hover .poster { transform: none; box-shadow: none; border-color: var(--line); }
  .mlc:hover .poster img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .mlc, .mls, .stcard, .pnc, .actcard, .ep, .mlswap, #app.enter { animation: none !important; }
}


/* Avertissement de serveur dans le lecteur : visible seulement en cas de panne, lenteur ou maintenance */
.pbar .pwarn { --c: #f87171; order: -3; flex: 0 0 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: color-mix(in srgb, var(--c) 10%, var(--s0)); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); border-left: 3px solid var(--c); line-height: 1.4; }
.pbar .pwarn[hidden] { display: none; }
.pwarn .stdot { flex: 0 0 auto; }
.pwarn .pwb { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pwarn .pwb b { color: var(--c); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pwarn .pwb p { margin: 0; color: #cfcfcf; font-size: 13px; }
.pwarn .pwb em { font-style: normal; color: var(--fg); font-weight: 700; }
#psrc .chip[data-stst]::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; vertical-align: middle; background: #f87171; }
#psrc .chip[data-stst="slow"]::after { background: #fde68a; }
#psrc .chip[data-stst="maint"]::after { background: #7dd3fc; }

/* Écran de chargement du lecteur : bannière du film / de la série en fond */
.pload { overflow: hidden; }
.pload .pbgimg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.05); transition: opacity .5s; pointer-events: none; }
.pload .pbgimg.on { opacity: 1; }
.pload .pbgimg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.45) 0%, rgba(0,0,0,.82) 100%); }
.pload > :not(.pbgimg) { position: relative; z-index: 1; }
.pload .plbl { color: #e5e5e5; text-shadow: 0 1px 6px rgba(0,0,0,.8); }

/* Fenêtre de téléchargement : avertissement affiché seulement pour DLSurf */
.dlwarn { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 10px 12px; background: color-mix(in srgb, #fde68a 10%, var(--s0)); border: 1px solid color-mix(in srgb, #fde68a 40%, var(--line)); border-left: 3px solid #fde68a; line-height: 1.45; }
.dlwarn[hidden] { display: none; }
.dlwarn svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; color: #fde68a; }
.dlwarn p { margin: 0; font-size: 13px; color: #d4d4d4; }
.dlwarn b { color: var(--fg); }

/* Filtres en volets (Genre, Nouveautés, Catégorie, Diffusion, Plateformes…) */
.fbar .fbtns { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.chip.plattab .platcur.tx { color: var(--acc); font-weight: 700; letter-spacing: .04em; text-transform: none; }

/* ===== Espace BL : onglet avec flèche, badge sur le logo, bloc uploadeur ===== */
/* .bl-out = visible sur le site principal seulement (Calendrier, onglet BL) · .bl-in = visible dans l'espace BL seulement (retour) */
.bl-in { display: none !important; }
body.bl .bl-out { display: none !important; }
body.bl .blgate.bl-in { display: inline-flex !important; }
/* uploadeur BL : l'onglet Ajouter n'apparaît que dans l'espace BL */
body.blup.bl nav a.bl-up { display: inline-flex !important; }
body.blup.bl .btn.bl-up { display: inline-flex !important; }   /* bouton « Publier le catalogue » du pied de page */
/* entrée de l'espace BL : [ ♥ BL ↗ ] à côté de la recherche */
.blgate { display: inline-flex; align-items: center; gap: 7px; flex: none; margin-left: auto; padding: 8px 4px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; transition: color .2s; }
.blgate.bl-in { display: none; }
body.bl .blgate.bl-in { display: inline-flex; }
body.bl .blgate.bl-out { display: none; }
.blgate b { font-weight: 500; }
.blgate svg { width: 14px; height: 14px; flex: none; }
.blgate svg.blar { width: 12px; height: 12px; opacity: .6; transition: transform .3s var(--ease), opacity .2s; }
.blgate .brk { font-style: normal; font-size: 15px; opacity: .55; transition: transform .3s var(--ease), opacity .2s, color .2s; }
.blgate:hover, .blgate:focus-visible { color: var(--fg); }
.blgate:hover .brk, .blgate:focus-visible .brk { opacity: 1; color: var(--acc); }
.blgate:hover .brk:first-child { transform: translateX(-3px); }
.blgate:hover .brk:last-child { transform: translateX(3px); }
.blgate:hover svg.blar { opacity: 1; transform: translate(2px, -2px); }
.blgate.back:hover svg.blar { transform: translateX(-3px); }
@media (min-width: 721px) { header.top .search { margin-left: 0; } html.nobl body:not(.bl) header.top .search { margin-left: auto; } }   /* bouton BL masqué : la recherche garde sa place à droite */
/* la recherche ne s'écrase plus : largeur minimum, et le bouton BL se compacte quand l'en-tête est serré (zoom, admin avec ses onglets en plus) */
@media (min-width: 721px) { header.top .search { min-width: 170px; } }
@media (min-width: 721px) and (max-width: 1700px) { header.top .wrap { gap: 18px; } .blgate > svg:not(.blar) { display: none; } .blgate { gap: 5px; } }
@media (min-width: 721px) and (max-width: 1450px) { .blgate .brk { display: none; } }
@media (max-width: 1100px) { .blgate > svg:not(.blar) { display: none; } }
/* mobile : plus de bouton en haut. Navigateur = onglet dans le menu, appli installée = onglet dans la barre du bas */
@media (max-width: 720px) { .blgate, body.bl .blgate.bl-in { display: none !important; } }
.nav-blm { display: none !important; }
@media (max-width: 720px) {
  html:not(.nobl) body:not(.bl) nav a.nav-blm.bl-out { display: inline-flex !important; }
  body.bl nav a.nav-blm.bl-in { display: inline-flex !important; }
}
nav a.nav-blm svg.blar { width: 12px; height: 12px; opacity: .6; }
.logo { white-space: nowrap; }
body.bl .logo::after { content: "BL"; display: inline-block; margin-left: 10px; padding: 4px 7px 3px; vertical-align: 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; line-height: 1; background: var(--acc); color: var(--on-acc); }
dialog#bldlg { width: min(520px, 94vw); padding: 0; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
dialog#bldlg[open] { animation: dialogIn .3s var(--ease) both; }
dialog#bldlg::backdrop { background: rgba(0,0,0,.85); }
dialog#bldlg .row { display: flex; flex-wrap: wrap; gap: 10px; }
.blconn { display: grid; gap: 12px; padding: 14px 16px; margin: 0 0 22px; border: 1px solid var(--line); background: var(--panel); }
.blconn .note { margin: 0; line-height: 1.6; }
.blconn .note b { color: var(--fg); font-weight: 500; }
.blconn .row { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) { body.bl .logo::after { margin-left: 8px; vertical-align: 4px; } }

/* ===== Thème de l'espace BL : violet / noir (prioritaire sur le thème choisi dans les paramètres) ===== */
body.bl { --bg: #05020a; --dim: #9a8bbd; --line: #241540; --panel: #0c0618; --s0: #080411; --s1: #140a28; --acc: #8b5cf6; --on-acc: #fff; --blg: 139, 92, 246; }
body.bl ::selection { background: #8b5cf6; color: #fff; }
/* en-tête : fond teinté, filet violet lumineux dessous */
body.bl header.top { background: rgba(5, 2, 10, .9); border-bottom-color: transparent; box-shadow: 0 1px 0 rgba(var(--blg), .35); }
body.bl .tabbar { background: rgba(5, 2, 10, .96); }
body.bl .blgate.back { color: var(--fg); }
body.bl .blgate.back .brk { color: var(--acc); opacity: 1; }
/* bandeau d'accueil BL */
.blstrip { position: relative; display: flex; align-items: center; gap: 14px; padding-block: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.blstrip b { font-weight: 500; color: var(--fg); display: inline-flex; align-items: center; gap: 8px; }
.blstrip b svg { width: 14px; height: 14px; color: var(--acc); }
.blstrip i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--blg), .7), transparent); }
/* carrousel : voile violet au lieu du voile noir */
body.bl .hslide::after { background: linear-gradient(to top, var(--bg) 4%, rgba(26, 8, 56, .3) 60%, rgba(12, 4, 28, .72)); }
body.bl .hero { border-bottom-color: rgba(var(--blg), .35); }
/* titres de rangées et de pages */
body.bl .section-head h2 { display: inline-flex; align-items: center; gap: 12px; }
body.bl .section-head h2::before { content: ""; width: 4px; height: .8em; background: var(--acc); }
body.bl .more:hover { color: var(--acc); }
body.bl .listhead h1::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 14px; background: var(--acc); }
/* affiches */
@media (hover: hover) { body.bl .card:hover .poster { box-shadow: none; } }
body.bl .search input[type=text]:focus { border-color: var(--acc); }
body.bl footer { border-top-color: rgba(var(--blg), .25); }
html.nobl .blgate.bl-out { display: none; }
.volet.blup [data-adm] { display: none !important; }

/* ===== Profils (style Netflix) ===== */
.pfbtn { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: transparent; color: var(--dim); cursor: pointer; overflow: hidden; transition: color .2s, border-color .2s; }
.pfbtn svg { width: 22px; height: 22px; display: block; }
.pfbtn.has { border-color: transparent; }
.pfbtn.has svg { width: 100%; height: 100%; }
.pfbtn:hover { color: var(--fg); border-color: var(--dim); }
@media (max-width: 720px) { .pfbtn { width: 36px; height: 36px; } }
html.pfopen { overflow: hidden; }
.pfscreen { position: fixed; inset: 0; z-index: 150; background: var(--bg); overflow-y: auto; display: flex; padding: max(28px, env(safe-area-inset-top, 0px)) 18px 40px; animation: pageIn .35s var(--ease) both; }
.pfbody { margin: auto; width: 100%; max-width: 980px; text-align: center; }
.pftitle { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(42px, 8vw, 84px); line-height: .95; margin: 0 0 34px; letter-spacing: .01em; }
.pfgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.pfcard { width: clamp(100px, 22vw, 156px); display: grid; gap: 12px; padding: 0; border: 0; background: none; color: var(--dim); cursor: pointer; text-align: center; }
.pfcard b { font: 500 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.pfav { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border: 3px solid transparent; border-radius: 6px; transition: border-color .2s, transform .25s var(--ease); }
.pfav svg { display: block; width: 100%; height: 100%; }
.pfcard:hover .pfav, .pfcard:focus-visible .pfav { border-color: var(--fg); transform: scale(1.04); }
.pfcard:hover b, .pfcard:focus-visible b { color: var(--fg); }
.pfcard.cur .pfav { border-color: var(--acc); }
.pfcard.cur b { color: var(--fg); }
.pfav.plus { display: grid; place-items: center; background: var(--s1); border: 1px dashed var(--line); color: var(--dim); }
.pfav.plus svg { width: 40%; height: 40%; }
.pfcard.add:hover .pfav.plus { color: var(--fg); border-color: var(--fg); }
.pfedit { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; }
.pfedit svg { width: 34%; height: 34%; }
.pfhint { margin: 30px auto 0; max-width: 520px; color: var(--dim); font-size: 14px; }
.pfactions { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 22px; }
.pflink { background: none; border: 0; padding: 6px 0; color: var(--dim); font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.pflink:hover { color: var(--fg); }
.pfform { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 30px 40px; text-align: left; }
.pfform.one { flex-direction: column; align-items: center; max-width: 640px; margin: 0 auto; text-align: center; gap: 18px; }
.pfform.one .lead { margin: 0; }
.pfpreview { width: 180px; height: 180px; flex: none; overflow: hidden; border-radius: 6px; border: 3px solid var(--line); }
.pfpreview svg { display: block; width: 100%; height: 100%; }
.pffields { flex: 1 1 320px; max-width: 540px; display: grid; gap: 14px; }
.pftabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pftab { padding: 7px 12px; border: 1px solid var(--line); background: transparent; color: var(--dim); font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.pftab:hover { color: var(--fg); border-color: var(--dim); }
.pftab.on { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.pfavs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.pfav-opt { padding: 0; border: 3px solid transparent; border-radius: 6px; background: none; overflow: hidden; cursor: pointer; aspect-ratio: 1; transition: border-color .2s, transform .2s var(--ease); }
.pfav-opt svg { display: block; width: 100%; height: 100%; }
.pfav-opt:hover { transform: scale(1.05); }
.pfav-opt.on { border-color: var(--acc); }
.pffields .row, .pfform.one .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: inherit; }
.pfform.one .row { justify-content: center; }
.pfphrase { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; width: 100%; max-width: 600px; }
.pfphrase span { display: flex; align-items: baseline; gap: 9px; padding: 11px 13px; border: 1px solid var(--line); background: var(--panel); font: 500 15px var(--mono); text-align: left; }
.pfphrase i { font-style: normal; font-size: 11px; color: var(--dim); }
.pfta { width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: 500 15px var(--mono); resize: vertical; }
.pfta:focus { outline: none; border-color: var(--fg); }
.pfclose { position: fixed; top: max(18px, env(safe-area-inset-top, 0px)); right: 18px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg); color: var(--dim); cursor: pointer; }
.pfclose:hover { color: var(--fg); border-color: var(--dim); }
.pfclose svg { width: 20px; height: 20px; }
.pfscreen.noclose .pfclose { display: none; }
@media (max-width: 560px) { .pfgrid { gap: 16px; } .pfpreview { width: 140px; height: 140px; } .pfform { justify-content: center; text-align: center; } }

/* Barre du bas (appli) : bouton Profil à droite */
@media (max-width: 720px) {
  .tabbar .tabbtn { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 9px 2px 8px; border: 0; background: none; color: var(--dim); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar .tabbtn:active { color: var(--fg); }
  .tabbar .tabbtn .tablb { line-height: 1; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .tabav { display: grid; place-items: center; width: 24px; height: 24px; overflow: hidden; border-radius: 50%; }
  .tabav svg, .tabav img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .tabav:not(.has) svg { width: 22px; height: 22px; }
  html.standalone .pfbtn { display: none; }
}
@media (min-width: 721px) { .tabbar .tabbtn { display: none; } }
.pfav img, .pfpreview img, .pfav-opt img, .pfbtn img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pfphotorow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pfphotorow .note { margin: 0; flex: 1 1 220px; }
.pffile { cursor: pointer; }

/* Vu : catégories */
.mlcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.mlcat { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid var(--line); background: transparent; color: var(--dim); font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.mlcat b { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: 0; line-height: 1; }
.mlcat:hover { color: var(--fg); border-color: var(--dim); }
.mlcat.on { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.mls { position: relative; }
.mlsx { position: absolute; top: 8px; right: 10px; padding: 4px 8px; border: 1px solid var(--line); background: var(--bg); color: var(--dim); font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color .2s, border-color .2s; }
.mlsx:hover { color: var(--fg); border-color: var(--fg); }
.mls.drop { opacity: .78; }
.mls.drop .mlsbar i { background: var(--dim); }
@media (max-width: 520px) { .mlsx { top: 6px; right: 6px; } }
/* Statistiques de Ma liste */
.mlstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 1px; margin: 0 0 22px; border: 1px solid var(--line); background: var(--line); animation: riseIn .6s .2s var(--ease) both; }
.mlst { display: grid; gap: 4px; padding: 16px 18px; background: var(--bg); }
.mlst b { font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1; }
.mlst span { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.mlst small { font: 500 11px var(--mono); color: var(--grn); }
.mlst.tot { background: var(--panel); }
@media (max-width: 520px) { .mlstats { grid-template-columns: repeat(2, 1fr); } .mlst { padding: 13px 14px; } .mlst b { font-size: 32px; } }
/* Panneau admin : photos de profil */
.pnavform { display: grid; gap: 12px; margin-bottom: 10px; }
.pnavs { display: grid; gap: 8px; margin-top: 12px; }
.pnav { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); }
.pnav img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; flex: none; }
.pnav span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pnav b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnav small { color: var(--dim); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.pnavfile { cursor: pointer; justify-self: start; }

/* Vu : bascule Lignes / Grille + grille dense */
.mlcats { align-items: center; }
.mlview { display: inline-flex; margin-left: auto; border: 1px solid var(--line); }
.mlview button { display: grid; place-items: center; width: 38px; height: 36px; border: 0; background: transparent; color: var(--dim); cursor: pointer; transition: color .2s, background .2s; }
.mlview button svg { width: 17px; height: 17px; }
.mlview button:hover { color: var(--fg); }
.mlview button.on { background: var(--acc); color: var(--on-acc); }
.mlgrid.dense { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 20px 12px; }
.mlstat { position: absolute; left: 8px; bottom: 8px; z-index: 3; padding: 3px 7px; background: rgba(0, 0, 0, .75); border: 1px solid var(--line); color: var(--fg); font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 520px) { .mlview { margin-left: 0; } .mlgrid.dense { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; } }
