/* Séance — thèmes (choix dans « Apparence », mémorisé par profil).
   1) Variables par thème : couleurs, polices, couleur du logo, écriture du nom.
      Les blocs [data-theme] s'appliquent à <html> (toute l'app) comme aux aperçus du choix de thème.
   2) « Habillage » propre à chaque thème (html[data-theme=…]) : formes, effets, animations.
      Le thème Origine n'a pas d'habillage : c'est le style du tout début (app.css). */

/* ============================== 1. Variables ============================== */
:root, [data-theme="vice"] {
  /* Vice — Miami la nuit : néons rose et cyan, chrome, bande VHS */
  --bg: #0a0420; --bg-rgb: 10 4 32; --bg-2: #140a33; --bg2-rgb: 20 10 51; --bg-3: #1f1147; --bg-deep: #0e0628; --tile: #170c3a; --line: #3a1f6e;
  --text: #fdf0ff; --text-2: #e0cff5; --muted: #a48fcf;
  --accent: #ff3caa; --accent-rgb: 255 60 170; --accent-ink: #fff;
  --c2: #2de2e6; --c2-rgb: 45 226 230; --c3: #ff9a3d; --c4: #7a3cff; --c4-rgb: 122 60 255; --star: #ffd23f;
  --radius: 10px;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "Righteous", "Inter", sans-serif; --display-w: 400; --display-ls: 0;
  --logo-fill: url(#lg-vice); --logo-stroke: none; --logo-sw: 0; --logo-filter: drop-shadow(0 0 6px rgba(255, 60, 170, .7));
  --wm-font: "Yellowtail", cursive; --wm-weight: 400; --wm-style: normal; --wm-case: none; --wm-ls: 0; --wm-size: 34px;
  --wm-color: transparent; --wm-fill: linear-gradient(100deg, #ffd23f 0%, #ff9a3d 25%, #ff3caa 55%, #c13cff 100%); --wm-stroke: 0 transparent;
  --wm-filter: drop-shadow(0 0 9px rgba(255, 60, 170, .75));
  --pattern: linear-gradient(transparent 55%, rgba(255, 60, 170, .28)), repeating-linear-gradient(90deg, rgba(45, 226, 230, .12) 0 1px, transparent 1px 26px);
}
[data-theme="bd"] {
  /* BD — page de bande dessinée : papier, trame, gros traits noirs, cases et onomatopées */
  --bg: #fff6dc; --bg-rgb: 255 246 220; --bg-2: #ffffff; --bg2-rgb: 255 255 255; --bg-3: #ffe9a8; --bg-deep: #fffdf4; --tile: #ffffff; --line: #111111;
  --text: #111111; --text-2: #262626; --muted: #5b5245;
  --accent: #e4252b; --accent-rgb: 228 37 43; --accent-ink: #fff;
  --c2: #1f6feb; --c2-rgb: 31 111 235; --c3: #ffd400; --c4: #00a86b; --c4-rgb: 0 168 107; --star: #e4252b;
  --radius: 6px;
  --body: "Comic Neue", "Comic Sans MS", "Inter", sans-serif;
  --display: "Bangers", "Impact", sans-serif; --display-w: 400; --display-ls: .03em;
  --logo-fill: #ffd400; --logo-stroke: #111; --logo-sw: 16px; --logo-filter: drop-shadow(3px 3px 0 #e4252b);
  --wm-font: "Bangers", "Impact", sans-serif; --wm-weight: 400; --wm-style: normal; --wm-case: uppercase; --wm-ls: .05em; --wm-size: 32px;
  --wm-color: #ffd400; --wm-fill: none; --wm-stroke: 1.6px #111; --wm-filter: drop-shadow(3px 3px 0 #e4252b);
  --pattern: radial-gradient(rgba(0, 0, 0, .14) 1.3px, transparent 1.5px) 0 0 / 11px 11px;
}
[data-theme="cine"] {
  /* Ciné — la plateforme de streaming classique : noir, rouge, grandes affiches */
  --bg: #141414; --bg-rgb: 20 20 20; --bg-2: #181818; --bg2-rgb: 24 24 24; --bg-3: #232323; --bg-deep: #0f0f0f; --tile: #1f1f1f; --line: #333333;
  --text: #ffffff; --text-2: #e5e5e5; --muted: #a3a3a3;
  --accent: #e50914; --accent-rgb: 229 9 20; --accent-ink: #fff;
  --c2: #e50914; --c2-rgb: 229 9 20; --c3: #e50914; --c4: #6d6d6e; --c4-rgb: 109 109 110; --star: #46d369;
  --radius: 4px;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: "Inter", "Helvetica Neue", Arial, sans-serif; --display-w: 800; --display-ls: -0.02em;
  --logo-fill: #e50914; --logo-stroke: none; --logo-sw: 0; --logo-filter: none;
  --wm-font: "Bebas Neue", "Impact", sans-serif; --wm-weight: 400; --wm-style: normal; --wm-case: uppercase; --wm-ls: .03em; --wm-size: 36px;
  --wm-color: #e50914; --wm-fill: none; --wm-stroke: 0 transparent; --wm-filter: none;
  --pattern: linear-gradient(180deg, transparent 50%, rgba(229, 9, 20, .22));
}
[data-theme="mono"] {
  /* Mono — noir et blanc, sobre : images en niveaux de gris qui reprennent leurs couleurs au survol */
  --bg: #0a0a0a; --bg-rgb: 10 10 10; --bg-2: #111111; --bg2-rgb: 17 17 17; --bg-3: #1a1a1a; --bg-deep: #0d0d0d; --tile: #141414; --line: #262626;
  --text: #f5f5f5; --text-2: #cfcfcf; --muted: #8a8a8a;
  --accent: #ffffff; --accent-rgb: 255 255 255; --accent-ink: #000;
  --c2: #ffffff; --c2-rgb: 255 255 255; --c3: #bbbbbb; --c4: #888888; --c4-rgb: 136 136 136; --star: #ffffff;
  --radius: 2px;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: "Inter", "Helvetica Neue", Arial, sans-serif; --display-w: 200; --display-ls: -0.03em;
  --logo-fill: #ffffff; --logo-stroke: none; --logo-sw: 0; --logo-filter: none;
  --wm-font: "Inter", sans-serif; --wm-weight: 300; --wm-style: normal; --wm-case: uppercase; --wm-ls: .42em; --wm-size: 15px;
  --wm-color: #ffffff; --wm-fill: none; --wm-stroke: 0 transparent; --wm-filter: none;
  --pattern: none;
}
[data-theme="origine"] {
  /* Origine — le style du tout début : nuit bleutée et or */
  --bg: #0b0b10; --bg-rgb: 11 11 16; --bg-2: #14141c; --bg2-rgb: 20 20 28; --bg-3: #1d1d28; --bg-deep: #0f0f15; --tile: #1a1a24; --line: #2a2a38;
  --text: #f3f1ec; --text-2: #d6d4dc; --muted: #9a98a6;
  --accent: #e8b04b; --accent-rgb: 232 176 75; --accent-ink: #14110a;
  --c2: #e8b04b; --c2-rgb: 232 176 75; --c3: #e8b04b; --c4: #785adc; --c4-rgb: 120 90 220; --star: #e8b04b;
  --radius: 10px;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "Inter", "Segoe UI", system-ui, sans-serif; --display-w: 800; --display-ls: -0.02em;
  --logo-fill: #f3b139; --logo-stroke: none; --logo-sw: 0; --logo-filter: none;
  --wm-font: "Inter", "Segoe UI", sans-serif; --wm-weight: 800; --wm-style: normal; --wm-case: none; --wm-ls: -0.02em; --wm-size: 20px;
  --wm-color: #f3f1ec; --wm-fill: none; --wm-stroke: 0 transparent; --wm-filter: none;
  --pattern: radial-gradient(60% 60% at 0% 0%, rgba(232, 176, 75, .22), transparent 70%), radial-gradient(60% 60% at 100% 100%, rgba(120, 90, 220, .22), transparent 70%);
}

/* ============================== Commun à tous les thèmes ============================== */
html, body { background-color: var(--bg); color: var(--text); }
body { font-family: var(--body); }
.brand { gap: 10px; }
.brand-mark { display: block; flex: 0 0 auto; width: 28px; height: 30px; fill: var(--logo-fill); stroke: var(--logo-stroke); stroke-width: var(--logo-sw); stroke-linejoin: round; paint-order: stroke; overflow: visible; filter: var(--logo-filter); }
.brand.big .brand-mark { width: 42px; height: 45px; }
.wordmark { font-family: var(--wm-font); font-weight: var(--wm-weight); font-style: var(--wm-style); text-transform: var(--wm-case); letter-spacing: var(--wm-ls); font-size: var(--wm-size);
  line-height: 1; padding: .06em .14em .1em 0; white-space: nowrap; color: var(--wm-color); background: var(--wm-fill); -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: var(--wm-stroke); filter: var(--wm-filter); }
.brand.big .wordmark { font-size: calc(var(--wm-size) * 1.6); }
.hero h1, .page-head h1, .m-hero h2, .empty b, .trk-box h3, .row h2, .player-title, .who h1 { font-family: var(--display); letter-spacing: var(--display-ls); }
.hero h1, .page-head h1, .m-hero h2, .empty b, .trk-box h3, .who h1 { font-weight: var(--display-w); }
.login-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.login-foot .link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.login-foot .link svg, #theme-btn svg { width: 18px; height: 18px; fill: currentColor; }
#theme-btn { width: 36px; height: 36px; }

/* Choix du thème : une carte d'aperçu par thème (elle porte son propre data-theme) */
.theme-box { width: min(660px, 100%); }
.theme-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.theme-card { position: relative; display: grid; gap: 9px; align-content: start; text-align: left; padding: 16px; border-radius: max(4px, var(--radius)); overflow: hidden; color: var(--text);
  font-family: var(--body); background: var(--pattern), var(--bg); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.theme-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.theme-card.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.theme-card .brand-mark { width: 26px; height: 28px; }
.theme-card .wordmark { font-size: calc(var(--wm-size) * .8); }
.tc-name { font-family: var(--display); font-weight: var(--display-w); letter-spacing: var(--display-ls); font-size: 18px; display: flex; align-items: center; gap: 8px; }
.tc-name svg { width: 18px; height: 18px; fill: var(--accent); margin-left: auto; }
.tc-desc { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.tc-sw { display: flex; gap: 6px; }
.tc-sw i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(127,127,127,.4); }
@media (max-width: 560px) { .theme-list { grid-template-columns: 1fr; } }

/* ============================== 2a. Vice ============================== */
html[data-theme="vice"] body { background: radial-gradient(1100px 620px at 100% 0%, rgba(122,60,255,.18), transparent 60%), radial-gradient(900px 620px at 0% 100%, rgba(255,60,170,.13), transparent 60%), var(--bg); background-attachment: fixed; }
/* Lignes de balayage d'un vieil écran, sur toute l'app (sous le lecteur) */
html[data-theme="vice"] body::after { content: ""; position: fixed; inset: 0; z-index: 75; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px); }
/* Enseigne au néon qui grésille */
html[data-theme="vice"] :is(#nav, .login, .who) .wordmark { animation: neonFlicker 7s infinite; }
@keyframes neonFlicker { 0%, 90%, 92.5%, 95.5%, 100% { opacity: 1; } 91%, 94% { opacity: .3; } }
/* Titres chromés en italique */
html[data-theme="vice"] :is(.hero h1, .page-head h1, .m-hero h2, .who h1) { font-style: italic; text-transform: uppercase; padding-right: .12em;
  background: linear-gradient(180deg, #ffffff 0%, #c9f1ff 36%, #6a7bff 49%, #1a0b3a 51%, #ff7ad9 64%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.7)) drop-shadow(0 0 16px rgba(255,60,170,.45)); }
html[data-theme="vice"] .row h2 { font-style: italic; text-transform: uppercase; letter-spacing: .06em; font-size: 17px; color: var(--c2); text-shadow: 0 0 10px rgb(var(--c2-rgb) / .6); }
html[data-theme="vice"] .row h2::before { content: ""; align-self: center; flex: 0 0 auto; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
html[data-theme="vice"] .rows > .row:nth-child(3n+2) h2::before { background: var(--c3); box-shadow: 0 0 10px var(--c3); }
html[data-theme="vice"] .rows > .row:nth-child(3n+3) h2::before { background: var(--c4); box-shadow: 0 0 10px var(--c4); }
html[data-theme="vice"] .hero-tag { color: var(--c2); text-shadow: 0 0 10px var(--c2); letter-spacing: .3em; }
html[data-theme="vice"] .links a { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 600; }
html[data-theme="vice"] .links a:hover { color: var(--c2); }
html[data-theme="vice"] .links a.active { color: #fff; border-color: var(--accent); text-shadow: 0 0 10px var(--accent); }
html[data-theme="vice"] .nav.solid { border-bottom: 1px solid rgb(var(--accent-rgb) / .8); box-shadow: 0 0 18px rgb(var(--accent-rgb) / .4); }
/* Boutons en tube néon */
html[data-theme="vice"] .btn { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; border-radius: 6px; }
html[data-theme="vice"] .btn.primary { background: rgb(var(--accent-rgb) / .12); color: #fff; border: 2px solid var(--accent); text-shadow: 0 0 8px var(--accent); box-shadow: 0 0 14px rgb(var(--accent-rgb) / .7), inset 0 0 12px rgb(var(--accent-rgb) / .45); }
html[data-theme="vice"] .btn.primary:hover { background: var(--accent); opacity: 1; box-shadow: 0 0 28px var(--accent), inset 0 0 8px rgba(255,255,255,.4); }
html[data-theme="vice"] .btn.ghost { background: rgb(var(--c2-rgb) / .06); color: var(--c2); border: 2px solid rgb(var(--c2-rgb) / .8); box-shadow: 0 0 10px rgb(var(--c2-rgb) / .4), inset 0 0 10px rgb(var(--c2-rgb) / .2); }
html[data-theme="vice"] .btn.ghost:hover { background: rgb(var(--c2-rgb) / .18); }
html[data-theme="vice"] .icon-btn { background: rgb(var(--c4-rgb) / .22); box-shadow: inset 0 0 0 1px rgb(var(--c2-rgb) / .35); }
html[data-theme="vice"] .chip { background: rgb(var(--c4-rgb) / .12); border-color: rgb(var(--c4-rgb) / .55); }
html[data-theme="vice"] .chip.active { background: rgb(var(--accent-rgb) / .16); color: #fff; border-color: var(--accent); box-shadow: 0 0 12px rgb(var(--accent-rgb) / .6); }
html[data-theme="vice"] :is(.form input, .form select, .field, .search):focus-within, html[data-theme="vice"] .form input:focus { border-color: var(--c2); box-shadow: 0 0 10px rgb(var(--c2-rgb) / .35); }
/* Affiches : liseré néon, et au survol un décalage rose / cyan façon cassette VHS */
html[data-theme="vice"] :is(.card .art, .tile-art) { box-shadow: 0 0 0 1px rgb(var(--c2-rgb) / .2), 0 8px 24px rgba(0,0,0,.5); }
html[data-theme="vice"] :is(.card:hover .art, .card:focus-visible .art, .tile:hover .tile-art, .tile:focus-visible .tile-art) { box-shadow: -4px 0 0 rgb(var(--c2-rgb) / .85), 4px 0 0 rgb(var(--accent-rgb) / .85), 0 0 34px rgb(var(--accent-rgb) / .55); }
html[data-theme="vice"] .card:hover img.ok { animation: vhsJitter .32s steps(2) 2; }
@keyframes vhsJitter { 0% { transform: scale(1.04); } 50% { transform: scale(1.04) translateX(-3px); filter: hue-rotate(45deg) saturate(1.7); } 100% { transform: scale(1.04) translateX(2px); } }
html[data-theme="vice"] :is(.card .badge, .meta .star) { color: var(--star); }
html[data-theme="vice"] .card .qbadge { color: var(--c2); border-color: rgb(var(--c2-rgb) / .6); }
html[data-theme="vice"] :is(.bar i, .card .bar i, .ep .th .bar i, .hero-dots i::after, #lc-fill) { background: linear-gradient(90deg, var(--c3), var(--accent), var(--c2)); box-shadow: 0 0 8px var(--accent); }
html[data-theme="vice"] .tile-live { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
/* Horizon quadrillé au pied du « à la une » */
html[data-theme="vice"] .hero::after { content: ""; position: absolute; z-index: 2; left: -30%; right: -30%; bottom: 0; height: 110px; pointer-events: none; opacity: .7;
  transform-origin: bottom; transform: perspective(200px) rotateX(55deg);
  background: linear-gradient(rgb(var(--accent-rgb) / .6) 1px, transparent 1px) 0 0 / 46px 22px, linear-gradient(90deg, rgb(var(--c2-rgb) / .5) 1px, transparent 1px) 0 0 / 46px 22px;
  -webkit-mask-image: linear-gradient(transparent, #000 75%); mask-image: linear-gradient(transparent, #000 75%); animation: gridRun2 1.6s linear infinite; }
@keyframes gridRun2 { to { background-position: 0 22px, 0 0; } }
/* Changement de page : la bande saute comme une cassette */
html[data-theme="vice"] #main.enter > * { animation: vhsIn .55s linear both; }
@keyframes vhsIn { 0% { opacity: 0; transform: translateX(-12px) skewX(12deg); filter: hue-rotate(90deg) saturate(2); } 25% { opacity: 1; transform: translateX(9px) skewX(-6deg); } 50% { transform: translateX(-4px); filter: hue-rotate(-40deg); } 75% { transform: translateX(2px); } 100% { transform: none; filter: none; } }
html[data-theme="vice"] :is(.modal-box, .trk-box, .catpop, .dd-menu, .vmenu) { border: 1px solid rgb(var(--accent-rgb) / .45); box-shadow: 0 0 40px rgb(var(--accent-rgb) / .25), 0 30px 90px rgba(0,0,0,.7); }
html[data-theme="vice"] .toast { background: var(--bg-2); color: #fff; border: 1px solid var(--accent); box-shadow: 0 0 22px rgb(var(--accent-rgb) / .55); }
html[data-theme="vice"] .spinner { border-color: rgb(var(--c4-rgb) / .3); border-top-color: var(--accent); border-right-color: var(--c2); filter: drop-shadow(0 0 8px var(--accent)); }
html[data-theme="vice"] .ep .n { color: var(--accent); text-shadow: 0 0 8px var(--accent); font-family: var(--display); }
html[data-theme="vice"] .login-card { background: rgb(var(--bg2-rgb) / .72); border-color: rgb(var(--accent-rgb) / .45); box-shadow: 0 0 50px rgb(var(--accent-rgb) / .2), 0 30px 80px rgba(0,0,0,.55); }
/* Connexion : soleil couchant rayé sur une grille qui défile */
html[data-theme="vice"] .login-bg { overflow: hidden; background: radial-gradient(45% 30% at 50% 60%, rgba(255,60,170,.35), transparent 70%), linear-gradient(180deg, #0a0420 0%, #1a0a36 38%, #3d0f55 56%, #6a1660 62%, #0a0420 62.05%); }
html[data-theme="vice"] .login-bg::before { content: ""; position: absolute; left: 50%; bottom: 38%; width: min(78vw, 640px); aspect-ratio: 1; transform: translate(-50%, 50%); border-radius: 50%;
  background: linear-gradient(180deg, #ffe45c 0%, #ff9a3d 32%, #ff3caa 50%, #c13cff 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0 30%, transparent 30% 32%, #000 32% 38%, transparent 38% 41%, #000 41% 45%, transparent 45% 49%, #000 49%);
  mask-image: linear-gradient(180deg, #000 0 30%, transparent 30% 32%, #000 32% 38%, transparent 38% 41%, #000 41% 45%, transparent 45% 49%, #000 49%); }
html[data-theme="vice"] .login-bg::after { content: ""; position: absolute; left: -60%; right: -60%; top: 62%; height: 80%; transform-origin: top; transform: perspective(260px) rotateX(62deg);
  background: linear-gradient(rgba(255,60,170,.75) 2px, transparent 2px) 0 0 / 70px 70px, linear-gradient(90deg, rgba(45,226,230,.55) 2px, transparent 2px) 0 0 / 70px 70px, linear-gradient(180deg, #2a0b45, #0a0420 70%);
  animation: gridRun 2.4s linear infinite; }
@keyframes gridRun { to { background-position: 0 70px, 0 0, 0 0; } }

/* ============================== 2b. BD ============================== */
html[data-theme="bd"] body { background: radial-gradient(rgba(0,0,0,.1) 1.2px, transparent 1.4px) 0 0 / 12px 12px, var(--bg); background-attachment: fixed; }
html[data-theme="bd"] ::-webkit-scrollbar-thumb { background: #111; }
/* Barre du haut : bandeau jaune cerné de noir */
html[data-theme="bd"] .nav, html[data-theme="bd"] .nav.solid { background: #ffd400; backdrop-filter: none; border-bottom: 4px solid #111; box-shadow: 0 4px 0 rgba(0,0,0,.12); }
html[data-theme="bd"] .links a { font-family: var(--display); font-size: 21px; letter-spacing: .04em; color: #111; border: 0; padding: 0 8px; transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
html[data-theme="bd"] .links a:hover { color: #e4252b; transform: rotate(-3deg) scale(1.08); }
html[data-theme="bd"] .links a.active { color: #fff; background: #e4252b; border: 2px solid #111; box-shadow: 3px 3px 0 #111; transform: rotate(-2deg); }
html[data-theme="bd"] .search { background: #fff; border: 2px solid #111; }
html[data-theme="bd"] .search svg { fill: #111; }
html[data-theme="bd"] .search:focus-within { background: #fff; border-color: #111; box-shadow: 3px 3px 0 #111; }
/* Boutons : en relief, ils s'écrasent quand on appuie */
html[data-theme="bd"] .btn { font-family: var(--display); font-size: 19px; letter-spacing: .05em; font-weight: 400; border: 3px solid #111; border-radius: 8px; box-shadow: 4px 4px 0 #111; transition: transform .15s cubic-bezier(.34,1.56,.64,1), box-shadow .15s; }
html[data-theme="bd"] .btn:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 #111; }
html[data-theme="bd"] .btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #111; }
html[data-theme="bd"] .btn.primary, html[data-theme="bd"] .btn.primary:hover { background: #e4252b; color: #fff; opacity: 1; }
html[data-theme="bd"] .btn.ghost { background: #fff; color: #111; backdrop-filter: none; }
html[data-theme="bd"] .btn.ghost:hover { background: #ffd400; }
html[data-theme="bd"] .icon-btn { background: #fff; color: #111; border: 2px solid #111; box-shadow: 2px 2px 0 #111; }
html[data-theme="bd"] .icon-btn:hover { background: #ffd400; }
html[data-theme="bd"] .player .icon-btn { color: #111; }
html[data-theme="bd"] .chip { background: #fff; color: #111; border: 2px solid #111; font-weight: 700; }
html[data-theme="bd"] .chip:hover { background: #ffe9a8; border-color: #111; }
html[data-theme="bd"] .chip.active { background: #1f6feb; color: #fff; border-color: #111; box-shadow: 3px 3px 0 #111; }
html[data-theme="bd"] :is(.field, .sel, .form input, .form select, .catbar .cat-open) { background: #fff; color: #111; border: 2px solid #111; }
html[data-theme="bd"] :is(.field, .sel):focus-within, html[data-theme="bd"] .form input:focus { box-shadow: 3px 3px 0 #111; border-color: #111; }
html[data-theme="bd"] .field svg, html[data-theme="bd"] .dd-btn svg { fill: #111; }
html[data-theme="bd"] :is(.catpop, .dd-menu, .vmenu) { background: #fff; border: 3px solid #111; box-shadow: 6px 6px 0 #111; backdrop-filter: none; }
html[data-theme="bd"] :is(.catpop-list button, .dd-menu button, .trk-list button, .vmenu button) { color: #111; }
html[data-theme="bd"] :is(.catpop-list button, .dd-menu button, .trk-list button, .vmenu button):hover { background: #ffe9a8; }
html[data-theme="bd"] :is(.catpop-list button.active, .dd-menu button.active, .trk-list button.active) { background: #ffd400; color: #111; }
/* Titres de rangée : une étoile de couleur et une ombre jaune */
html[data-theme="bd"] .row h2 { font-size: 26px; font-weight: 400; color: #111; text-shadow: 2px 2px 0 #ffd400; }
html[data-theme="bd"] .row h2 small { font-family: var(--body); text-shadow: none; color: var(--muted); font-weight: 700; }
html[data-theme="bd"] .row h2 a { font-family: var(--body); font-weight: 700; text-shadow: none; color: #1f6feb; }
html[data-theme="bd"] .row h2::before { content: ""; align-self: center; flex: 0 0 auto; width: 22px; height: 22px; background: #e4252b;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
html[data-theme="bd"] .rows > .row:nth-child(3n+2) h2::before { background: #1f6feb; }
html[data-theme="bd"] .rows > .row:nth-child(3n+3) h2::before { background: #00a86b; }
html[data-theme="bd"] .row-arrow, html[data-theme="bd"] .hero-arrow { color: #111; filter: none; }
html[data-theme="bd"] .hero-dots i { background: rgba(0,0,0,.25); }
/* Affiches : cases de BD, cernées de noir, qui sautent et penchent au survol */
html[data-theme="bd"] :is(.card .art, .tile-art) { border: 3px solid #111; border-radius: 6px; box-shadow: 5px 5px 0 #111; }
html[data-theme="bd"] .card { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
html[data-theme="bd"] .card:nth-child(odd):hover, html[data-theme="bd"] .card:nth-child(odd):focus-visible { transform: rotate(-2.5deg) scale(1.06); }
html[data-theme="bd"] .card:nth-child(even):hover, html[data-theme="bd"] .card:nth-child(even):focus-visible { transform: rotate(2deg) scale(1.06); }
html[data-theme="bd"] :is(.card:hover .art, .card:focus-visible .art, .tile:hover .tile-art, .tile:focus-visible .tile-art) { box-shadow: 9px 9px 0 #111; }
html[data-theme="bd"] .card .name { color: #111; font-weight: 700; }
html[data-theme="bd"] .card .badge { background: #ffd400; color: #111; border: 2px solid #111; }
html[data-theme="bd"] .card .qbadge { background: #fff; color: #111; border: 2px solid #111; }
html[data-theme="bd"] .card .in-list { border: 2px solid #111; }
html[data-theme="bd"] :is(.bar i, .card .bar i, .ep .th .bar i, .hero-dots i::after, #lc-fill) { background: #e4252b; }
html[data-theme="bd"] .bar { background: rgba(0,0,0,.15); }
html[data-theme="bd"] .tile-live { background: #e4252b; border: 2px solid #111; }
html[data-theme="bd"] .tile-ch, html[data-theme="bd"] .tile .e-now { color: #111; }
html[data-theme="bd"] .logo-btn { border: 2px solid #111; box-shadow: 3px 3px 0 #111; }
/* Les cases apparaissent en rebondissant */
html[data-theme="bd"] #main:not(.still) :is(.grid > .card, .grid > .tile, .rows > .row) { animation: comicPop .5s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes comicPop { from { opacity: 0; transform: scale(.6) rotate(-6deg); } }
html[data-theme="bd"] #main.enter > * { animation: comicIn .55s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes comicIn { from { opacity: 0; transform: translateY(30px) scale(.94) rotate(-1deg); } }
/* À la une : grande case, titre cerné, résumé dans un cartouche, « À la une » en explosion */
html[data-theme="bd"] .hero { border-bottom: 4px solid #111; }
html[data-theme="bd"] .hero h1 { color: #fff; -webkit-text-stroke: 2px #111; text-shadow: 4px 4px 0 #111; font-size: clamp(38px, 5.6vw, 76px); }
html[data-theme="bd"] .hero p { background: #fff; color: #111; border: 2px solid #111; box-shadow: 4px 4px 0 #111; padding: 8px 12px; border-radius: 4px; font-weight: 700; }
html[data-theme="bd"] .hero-tag { font-family: var(--display); font-size: 20px; letter-spacing: .06em; color: #e4252b; background: #ffd400; padding: 16px 22px; margin-bottom: 8px; transform: rotate(-7deg);
  clip-path: polygon(50% 0, 58% 18%, 77% 5%, 75% 26%, 98% 22%, 85% 40%, 100% 55%, 82% 63%, 92% 84%, 70% 78%, 62% 100%, 50% 84%, 36% 100%, 30% 79%, 8% 86%, 17% 64%, 0 52%, 16% 40%, 4% 20%, 26% 24%, 25% 4%, 42% 17%); }
html[data-theme="bd"] .hero-slide.on .hero-tag { animation: boom .6s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes boom { from { transform: rotate(-30deg) scale(.2); opacity: 0; } to { transform: rotate(-7deg) scale(1); opacity: 1; } }
html[data-theme="bd"] :is(.meta, .m-facts) { color: #111; font-weight: 700; }
html[data-theme="bd"] .pill { background: #fff; border: 2px solid #111; color: #111; }
/* Fiche : une planche qui surgit */
html[data-theme="bd"] .modal { background: rgba(255,214,0,.35); }
html[data-theme="bd"] .modal-box { border: 4px solid #111; box-shadow: 12px 12px 0 #111; border-radius: 10px; animation: comicPop .45s cubic-bezier(.34,1.56,.64,1) both; }
html[data-theme="bd"] .m-hero h2 { color: #fff; -webkit-text-stroke: 1.5px #111; text-shadow: 3px 3px 0 #111; font-size: 40px; }
html[data-theme="bd"] .m-body p { color: #111; }
html[data-theme="bd"] .close { background: #ffd400; color: #111; border: 2px solid #111; }
html[data-theme="bd"] .ep { border-bottom: 2px dashed #111; }
html[data-theme="bd"] .ep:hover { background: #ffe9a8; }
html[data-theme="bd"] .ep .n { font-family: var(--display); font-size: 26px; color: #e4252b; }
html[data-theme="bd"] .ep .th { border: 2px solid #111; }
html[data-theme="bd"] :is(.person, .link) { color: #1f6feb; }
html[data-theme="bd"] .trk-box { border: 3px solid #111; box-shadow: 8px 8px 0 #111; }
/* Notification en bulle de dialogue */
html[data-theme="bd"] .toast { background: #fff; color: #111; border: 3px solid #111; border-radius: 22px; box-shadow: 4px 4px 0 #111; font-weight: 700; }
html[data-theme="bd"] .toast::after { content: ""; position: absolute; left: 30px; bottom: -14px; width: 18px; height: 14px; background: #fff; border: solid #111; border-width: 0 3px 3px 0; clip-path: polygon(0 0, 100% 0, 0 100%); transform: skewX(-20deg); }
html[data-theme="bd"] .loader { color: #111; font-family: var(--display); font-size: 22px; letter-spacing: .05em; }
html[data-theme="bd"] .spinner { border: 5px solid #111; border-top-color: #e4252b; border-right-color: #ffd400; }
/* Le lecteur reste sombre (l'image doit ressortir) */
html[data-theme="bd"] :is(.player, .trk) { --text: #fff; --text-2: #e5e5e5; --muted: #bbb; --bg-rgb: 17 17 17; --bg2-rgb: 24 24 24; color: #fff; }
html[data-theme="bd"] .trk { --bg-2: #fff; --text: #111; --text-2: #222; --muted: #555; color: #111; }
/* Connexion : rayons de soleil en BD et onomatopées */
html[data-theme="bd"] .login-bg { overflow: hidden; background: radial-gradient(rgba(0,0,0,.12) 1.4px, transparent 1.6px) 0 0 / 12px 12px, repeating-conic-gradient(from 0deg at 50% 45%, #ffd400 0 10deg, #ffb300 10deg 20deg); }
html[data-theme="bd"] .login-bg::before, html[data-theme="bd"] .login-bg::after { position: absolute; font-family: var(--display); line-height: 1; -webkit-text-stroke: 4px #111; paint-order: stroke fill; text-shadow: 6px 6px 0 #111; }
html[data-theme="bd"] .login-bg::before { content: "POW !"; top: 6%; left: 4%; font-size: clamp(60px, 11vw, 150px); color: #e4252b; transform: rotate(-14deg); animation: wobble 2.6s ease-in-out infinite; }
html[data-theme="bd"] .login-bg::after { content: "ZAP !"; bottom: 6%; right: 4%; font-size: clamp(50px, 9vw, 120px); color: #1f6feb; transform: rotate(10deg); animation: wobble 2.6s ease-in-out -1.3s infinite; }
@keyframes wobble { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
html[data-theme="bd"] .login-card { background: #fff; border: 4px solid #111; box-shadow: 12px 12px 0 #111; backdrop-filter: none; }
html[data-theme="bd"] .tabs { background: #ffe9a8; border: 2px solid #111; }
html[data-theme="bd"] .tab { color: #111; font-weight: 700; }
html[data-theme="bd"] .tab.active { background: #111; color: #ffd400; }
html[data-theme="bd"] .profile { background: #fff; border: 2px solid #111; }

/* ============================== 2c. Ciné ============================== */
html[data-theme="cine"] .nav { background: linear-gradient(180deg, rgba(0,0,0,.75) 10%, transparent); }
html[data-theme="cine"] .nav.solid { background: #141414; backdrop-filter: none; border-bottom: 0; }
html[data-theme="cine"] .links a { font-size: 14px; color: #e5e5e5; border: 0; }
html[data-theme="cine"] .links a:hover { color: #b3b3b3; }
html[data-theme="cine"] .links a.active { color: #fff; font-weight: 700; }
html[data-theme="cine"] .search { background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.6); border-radius: 2px; }
html[data-theme="cine"] .btn { border-radius: 4px; font-weight: 700; font-size: 16px; padding: 10px 26px; }
html[data-theme="cine"] .btn.primary { background: #fff; color: #000; }
html[data-theme="cine"] .btn.primary:hover { background: rgba(255,255,255,.75); opacity: 1; }
html[data-theme="cine"] .btn.ghost { background: rgba(109,109,110,.7); color: #fff; backdrop-filter: none; }
html[data-theme="cine"] .btn.ghost:hover { background: rgba(109,109,110,.4); }
html[data-theme="cine"] .icon-btn { background: rgba(42,42,42,.6); border: 1px solid rgba(255,255,255,.5); }
html[data-theme="cine"] .avatar, html[data-theme="cine"] .who-p .av { border-radius: 4px; }
/* Affiches : elles grandissent nettement au survol, sans liseré */
html[data-theme="cine"] .card { transition: transform .3s cubic-bezier(.2,.8,.2,1) .12s; }
html[data-theme="cine"] .card:hover, html[data-theme="cine"] .card:focus-visible { transform: scale(1.15); z-index: 4; }
html[data-theme="cine"] .card .art { box-shadow: none; }
html[data-theme="cine"] :is(.card:hover .art, .card:focus-visible .art) { box-shadow: 0 16px 36px rgba(0,0,0,.8); }
html[data-theme="cine"] :is(.tile:hover .tile-art, .tile:focus-visible .tile-art) { box-shadow: 0 0 0 2px #fff, 0 16px 36px rgba(0,0,0,.8); }
html[data-theme="cine"] .row h2 { font-size: clamp(17px, 1.4vw, 23px); font-weight: 700; color: #e5e5e5; letter-spacing: 0; }
html[data-theme="cine"] .row h2 small { display: none; }
html[data-theme="cine"] .row h2 a { color: #54b9c5; opacity: 0; transition: opacity .3s; }
html[data-theme="cine"] .row:hover h2 a, html[data-theme="cine"] .row h2 a:focus-visible { opacity: 1; }
html[data-theme="cine"] .hero h1 { font-size: clamp(34px, 5.2vw, 68px); text-shadow: 2px 2px 6px rgba(0,0,0,.45); }
html[data-theme="cine"] .hero-tag { color: #fff; letter-spacing: .32em; display: inline-flex; align-items: center; gap: 10px; }
html[data-theme="cine"] .hero-tag::before { content: ""; width: 5px; height: 22px; background: var(--accent); }
html[data-theme="cine"] .chip { border-radius: 4px; background: transparent; border-color: #4d4d4d; color: #e5e5e5; }
html[data-theme="cine"] .chip.active { background: #fff; color: #000; border-color: #fff; }
html[data-theme="cine"] :is(.bar i, .card .bar i, .ep .th .bar i, .hero-dots i::after, #lc-fill, #lc-thumb) { background: var(--accent); }
html[data-theme="cine"] :is(.card .badge, .meta .star) { color: var(--star); }
html[data-theme="cine"] .tile-live { background: var(--accent); }
html[data-theme="cine"] .modal-box { background: #181818; border-radius: 6px; }
html[data-theme="cine"] .toast { background: #fff; color: #000; border-radius: 4px; }
html[data-theme="cine"] .spinner { border-color: rgba(255,255,255,.15); border-top-color: var(--accent); }
html[data-theme="cine"] #main.enter > * { animation: viewIn .4s ease both; }
/* Connexion : mur d'affiches penché, assombri */
html[data-theme="cine"] .login-bg { overflow: hidden; background: #000; }
html[data-theme="cine"] .login-bg::before { content: ""; position: absolute; inset: -40%; transform: rotate(-12deg); filter: brightness(.55) saturate(.9);
  background: repeating-linear-gradient(0deg, #000 0 10px, transparent 10px 230px), repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 160px),
  repeating-linear-gradient(90deg, #5a1a1a 0 160px, #1d3348 160px 320px, #4a3a16 320px 480px, #16402e 480px 640px, #3b1f4a 640px 800px, #4d2a12 800px 960px); }
html[data-theme="cine"] .login-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, rgba(0,0,0,.35), rgba(0,0,0,.9)), linear-gradient(rgba(0,0,0,.7), transparent 30%, transparent 70%, rgba(0,0,0,.85)); }
html[data-theme="cine"] .login-card { background: rgba(0,0,0,.78); border: 0; border-radius: 4px; backdrop-filter: none; }
html[data-theme="cine"] .login .btn.primary { background: var(--accent); color: #fff; }
html[data-theme="cine"] .form input, html[data-theme="cine"] .form select { background: #333; border: 1px solid #333; border-radius: 4px; }
html[data-theme="cine"] .form input:focus { background: #454545; border-color: #8c8c8c; }
html[data-theme="cine"] .tab.active { background: #333; }

/* ============================== 2d. Mono ============================== */
/* Images en niveaux de gris : la couleur revient au survol */
html[data-theme="mono"] :is(.card img, .tile-art img, .ep .th img, .logo-btn img, .chan-logo img, .li-logo img, .hero-poster, .dl .th img) { filter: grayscale(1) contrast(1.05); transition: filter .7s, opacity .5s, transform .6s; }
html[data-theme="mono"] :is(.card:hover img, .card:focus-visible img, .tile:hover .tile-art img, .ep:hover .th img) { filter: none; }
html[data-theme="mono"] .hero-art .layer.img:not(.blur) { filter: grayscale(1) contrast(1.05); }
html[data-theme="mono"] .hero-art .layer.img.blur { filter: blur(38px) grayscale(1); }
html[data-theme="mono"] :is(.btn, .chip, .search, .field, .sel, .modal-box, .login-card, .trk-box, .catpop, .dd-menu, .vmenu, .tile-art, .toast, .form input, .form select, .tabs, .tab, .icon-btn, .avatar, .who-p .av) { border-radius: 2px; }
html[data-theme="mono"] .btn { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 600; padding: 13px 26px; }
html[data-theme="mono"] .btn.primary { background: #fff; color: #000; }
html[data-theme="mono"] .btn.primary:hover { background: #d9d9d9; opacity: 1; }
html[data-theme="mono"] .btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.35); backdrop-filter: none; }
html[data-theme="mono"] .btn.ghost:hover { background: transparent; border-color: #fff; }
html[data-theme="mono"] .icon-btn { background: transparent; border: 1px solid rgba(255,255,255,.25); }
html[data-theme="mono"] .links a { text-transform: uppercase; letter-spacing: .2em; font-size: 11px; color: var(--muted); }
html[data-theme="mono"] .links a:hover { color: #fff; }
html[data-theme="mono"] .links a.active { color: #fff; border-color: #fff; border-bottom-width: 1px; }
html[data-theme="mono"] .nav.solid { background: rgba(10,10,10,.96); backdrop-filter: none; border-bottom: 1px solid #222; }
html[data-theme="mono"] .row h2 { text-transform: uppercase; letter-spacing: .3em; font-size: 12px; font-weight: 500; color: var(--muted); }
html[data-theme="mono"] .hero h1 { font-size: clamp(36px, 5.6vw, 76px); }
html[data-theme="mono"] .page-head h1 { font-size: 36px; }
html[data-theme="mono"] .m-hero h2 { font-weight: 300; }
html[data-theme="mono"] .hero-tag { color: var(--muted); letter-spacing: .45em; font-weight: 500; }
html[data-theme="mono"] .chip { background: transparent; border-color: #333; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
html[data-theme="mono"] .chip.active { background: #fff; color: #000; border-color: #fff; }
html[data-theme="mono"] .card:hover, html[data-theme="mono"] .card:focus-visible { transform: translateY(-4px); }
html[data-theme="mono"] :is(.card:hover .art, .card:focus-visible .art, .tile:hover .tile-art, .tile:focus-visible .tile-art) { box-shadow: 0 0 0 1px #fff; }
html[data-theme="mono"] .card .live-dot { background: #fff; box-shadow: none; }
html[data-theme="mono"] :is(.bar i, .card .bar i, .ep .th .bar i, .hero-dots i::after, #lc-fill, #lc-thumb, .pulse) { background: #fff; }
html[data-theme="mono"] .tile-live { background: #fff; color: #000; }
html[data-theme="mono"] .toast { background: #fff; color: #000; }
html[data-theme="mono"] .spinner { border: 1px solid #333; border-top-color: #fff; }
html[data-theme="mono"] .modal-box { border: 1px solid #222; }
/* Animations lentes et discrètes : de simples fondus */
html[data-theme="mono"] #main.enter > * { animation: monoIn .9s ease both; }
html[data-theme="mono"] #main:not(.still) :is(.grid > .card, .grid > .tile, .rows > .row) { animation-name: monoIn; animation-duration: .9s; }
@keyframes monoIn { from { opacity: 0; } }
/* Connexion : noir, un grand cercle fin qui respire */
html[data-theme="mono"] .login-bg { overflow: hidden; background: #050505; }
html[data-theme="mono"] .login-bg::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(130vw, 1100px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; translate: -50% -50%; animation: breathe 8s ease-in-out infinite; }
html[data-theme="mono"] .login-bg::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); }
@keyframes breathe { 50% { scale: 1.06; opacity: .6; } }
html[data-theme="mono"] .login-card { background: #0d0d0d; border: 1px solid #262626; box-shadow: none; backdrop-filter: none; }

/* ============================== 2f. Pellicule ==============================
   Le vieux cinéma de quartier : grain de film, rangées en bandes de pellicule,
   guirlande d'ampoules de marquise, tickets d'entrée et faisceau du projecteur. */
[data-theme="pellicule"] {
  --bg: #1a1410; --bg-rgb: 26 20 16; --bg-2: #241b15; --bg2-rgb: 36 27 21; --bg-3: #30241b; --bg-deep: #15100c; --tile: #2a2019; --line: #4a3828;
  --text: #f4e9d4; --text-2: #e2d3b6; --muted: #a8957a;
  --accent: #d9a441; --accent-rgb: 217 164 65; --accent-ink: #1a1410;
  --c2: #c0392b; --c2-rgb: 192 57 43; --c3: #e8dcc0; --c4: #6b8f71; --c4-rgb: 107 143 113; --star: #d9a441;
  --radius: 3px;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "Limelight", Georgia, serif; --display-w: 400; --display-ls: .01em;
  --type: "Special Elite", "Courier New", monospace;
  --logo-fill: #d9a441; --logo-stroke: none; --logo-sw: 0; --logo-filter: drop-shadow(0 0 6px rgba(255, 210, 120, .45));
  --wm-font: "Limelight", Georgia, serif; --wm-weight: 400; --wm-style: normal; --wm-case: uppercase; --wm-ls: .08em; --wm-size: 24px;
  --wm-color: #f4e9d4; --wm-fill: none; --wm-stroke: 0 transparent; --wm-filter: drop-shadow(0 0 8px rgba(255, 210, 120, .55));
  --pattern: radial-gradient(70% 90% at 50% 0%, rgba(255, 220, 150, .2), transparent 70%), repeating-linear-gradient(90deg, rgba(244, 233, 212, .12) 0 6px, transparent 6px 18px) 0 6px / 100% 6px no-repeat;
}
/* Grain de film qui bouge et bords assombris, sur toute l'app */
html[data-theme="pellicule"] body { background: radial-gradient(120% 80% at 50% 0%, rgba(255,220,150,.07), transparent 60%), var(--bg); background-attachment: fixed; }
html[data-theme="pellicule"] body::after { content: ""; position: fixed; inset: -10%; z-index: 75; pointer-events: none; opacity: .09; animation: grain .6s steps(1) infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
html[data-theme="pellicule"] body::before { content: ""; position: fixed; inset: 0; z-index: 74; pointer-events: none; background: radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(0,0,0,.45)); }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -4%); } 60% { transform: translate(-2%, -3%); } 80% { transform: translate(4%, 2%); } }
html.tv[data-theme="pellicule"] body::after { animation: none; }
/* Barre du haut : enseigne de cinéma bordée d'ampoules qui clignotent en chenillard */
html[data-theme="pellicule"] .nav, html[data-theme="pellicule"] .nav.solid { background: linear-gradient(#120d09, #1a1410); backdrop-filter: none; border-bottom: 1px solid #3a2a1c; }
html[data-theme="pellicule"] .nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 8px; pointer-events: none;
  background: radial-gradient(circle, #ffe2a0 0 2.2px, rgba(255,200,110,.35) 3px, transparent 4px) 0 0 / 18px 8px; animation: bulbs .9s steps(2) infinite; filter: drop-shadow(0 0 3px rgba(255,200,110,.8)); }
@keyframes bulbs { to { background-position: 9px 0; } }
html[data-theme="pellicule"] .links a { font-family: var(--type); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--text-2); }
html[data-theme="pellicule"] .links a.active { color: var(--accent); border-color: var(--accent); }
html[data-theme="pellicule"] .links a:hover { color: #fff; }
/* Rangées = bandes de pellicule perforées, numérotées comme des bobines */
html[data-theme="pellicule"] .rows { counter-reset: reel; }
html[data-theme="pellicule"] .row h2 { font-family: var(--type); text-transform: uppercase; letter-spacing: .06em; font-size: 16px; font-weight: 400; color: var(--text); }
html[data-theme="pellicule"] .row h2::before { counter-increment: reel; content: "Bobine " counter(reel); align-self: center; flex: 0 0 auto; font-size: 10px; letter-spacing: .18em; padding: 3px 7px; border: 1px solid var(--accent); color: var(--accent); }
html[data-theme="pellicule"] .row > .strip { padding-top: 22px; padding-bottom: 26px;
  background: repeating-linear-gradient(90deg, #3d2f22 0 10px, transparent 10px 24px) 0 7px / 100% 8px repeat-x, repeating-linear-gradient(90deg, #3d2f22 0 10px, transparent 10px 24px) 0 calc(100% - 9px) / 100% 8px repeat-x, #0e0a07;
  background-attachment: local, local, scroll; }
/* Affiches : un peu sépia, elles s'éclairent comme sous le projecteur au survol */
html[data-theme="pellicule"] :is(.card img, .tile-art img, .hero-art .layer.img:not(.blur), .ep .th img) { filter: sepia(.3) contrast(1.06) saturate(.85); transition: filter .5s, opacity .5s, transform .6s; }
html[data-theme="pellicule"] :is(.card:hover img, .card:focus-visible img, .tile:hover .tile-art img) { filter: brightness(1.12) contrast(1.05); }
html[data-theme="pellicule"] .card:hover, html[data-theme="pellicule"] .card:focus-visible { transform: translateY(-6px); }
html[data-theme="pellicule"] :is(.card .art, .tile-art) { box-shadow: 0 0 0 1px #3a2a1c, 0 8px 22px rgba(0,0,0,.6); }
html[data-theme="pellicule"] :is(.card:hover .art, .card:focus-visible .art, .tile:hover .tile-art, .tile:focus-visible .tile-art) { box-shadow: 0 0 0 2px var(--accent), 0 0 34px rgba(255,210,120,.35), 0 14px 34px rgba(0,0,0,.7); }
html[data-theme="pellicule"] .card .name { font-family: var(--type); }
html[data-theme="pellicule"] :is(.bar i, .card .bar i, .ep .th .bar i, .hero-dots i::after, #lc-fill, #lc-thumb) { background: var(--accent); }
html[data-theme="pellicule"] :is(.tile-live, .card .live-dot, .pulse) { background: var(--c2); }
/* À la une : « ticket d'entrée » découpé, titre de marquise */
html[data-theme="pellicule"] .hero-tag { font-family: var(--type); color: var(--accent-ink); background: var(--accent); padding: 7px 18px; letter-spacing: .2em;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 7px, #000 7.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 7px, #000 7.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 7px, #000 7.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 7px, #000 7.5px) right / 51% 100% no-repeat; }
html[data-theme="pellicule"] .hero h1 { text-shadow: 0 0 22px rgba(255,210,120,.35), 0 3px 0 rgba(0,0,0,.6); }
html[data-theme="pellicule"] :is(.meta, .m-facts) { font-family: var(--type); }
/* Boutons : plaques de cuivre et billets */
html[data-theme="pellicule"] .btn { font-family: var(--type); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; border-radius: 3px; }
html[data-theme="pellicule"] .btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 0 0 2px var(--accent-ink), 0 0 0 1px var(--accent), 0 6px 20px rgba(217,164,65,.25); }
html[data-theme="pellicule"] .btn.primary:hover { background: #e8b75a; opacity: 1; }
html[data-theme="pellicule"] .btn.ghost { background: transparent; border: 1px solid rgba(244,233,212,.45); backdrop-filter: none; }
html[data-theme="pellicule"] .btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
html[data-theme="pellicule"] .chip { border-radius: 3px; border-style: dashed; border-color: #5c4632; background: transparent; font-family: var(--type); }
html[data-theme="pellicule"] .chip.active { background: var(--accent); color: var(--accent-ink); border-style: solid; border-color: var(--accent); }
html[data-theme="pellicule"] .toast { background: var(--accent); color: var(--accent-ink); font-family: var(--type); border-radius: 3px; }
html[data-theme="pellicule"] .modal-box { border: 1px solid var(--line); }
html[data-theme="pellicule"] .ep .n { font-family: var(--display); color: var(--accent); }
/* Chargement : amorce de film qui tourne (3, 2, 1…) */
html[data-theme="pellicule"] .spinner { width: 84px; height: 84px; border: 0; border-radius: 50%;
  background: conic-gradient(rgba(217,164,65,.55) 0 90deg, transparent 90deg), radial-gradient(circle, transparent 0 55%, #f4e9d4 56% 58%, transparent 59%), #2a2019;
  box-shadow: inset 0 0 0 3px #f4e9d4, 0 0 0 6px #0e0a07; }
html[data-theme="pellicule"] .loader p { font-family: var(--type); letter-spacing: .1em; }
/* Changement de page : le projecteur vacille au démarrage */
html[data-theme="pellicule"] #main.enter > * { animation: projector .7s linear both; }
@keyframes projector { 0% { opacity: 0; filter: brightness(2) sepia(.6); } 15% { opacity: .8; } 25% { opacity: .35; } 40% { opacity: .9; filter: brightness(1.3) sepia(.3); } 55% { opacity: .6; } 100% { opacity: 1; filter: none; } }
/* Connexion : salle obscure, faisceau du projecteur et poussière dans la lumière */
html[data-theme="pellicule"] .login-bg { overflow: hidden; background: radial-gradient(80% 60% at 50% 100%, #2a1d14, #0b0806 70%); }
html[data-theme="pellicule"] .login-bg::before { content: ""; position: absolute; left: 50%; top: -5%; width: 170%; height: 115%; translate: -50% 0; filter: blur(10px);
  background: linear-gradient(180deg, rgba(255,232,170,.5), rgba(255,232,170,.06) 85%); clip-path: polygon(48.5% 0, 51.5% 0, 100% 100%, 0 100%); animation: beam 3.2s steps(1) infinite; }
@keyframes beam { 0%, 100% { opacity: .9; } 30% { opacity: .78; } 32% { opacity: .95; } 61% { opacity: .82; } 63% { opacity: 1; } }
html[data-theme="pellicule"] .login-bg::after { content: ""; position: absolute; inset: 0; opacity: .5; animation: dust 14s linear infinite;
  background: radial-gradient(1.5px 1.5px at 20% 30%, #ffe8b0, transparent), radial-gradient(1px 1px at 60% 20%, #ffe8b0, transparent), radial-gradient(1.5px 1.5px at 45% 60%, #ffe8b0, transparent),
  radial-gradient(1px 1px at 70% 70%, #ffe8b0, transparent), radial-gradient(1px 1px at 35% 80%, #ffe8b0, transparent), radial-gradient(1.5px 1.5px at 55% 45%, #ffe8b0, transparent); }
@keyframes dust { to { transform: translateY(-8%) translateX(2%); } }
html[data-theme="pellicule"] .login-card { background: rgba(244,233,212,.06); border: 1px solid rgba(244,233,212,.18); box-shadow: 0 0 80px rgba(255,220,150,.12), 0 30px 80px rgba(0,0,0,.6); }
html[data-theme="pellicule"] .who-p:hover .av { box-shadow: 0 0 0 2px var(--accent), 0 0 30px rgba(255,210,120,.35); }
