/* ==========================================================================
   V82 — présentation avant connexion, profil à 3 onglets, onglets d'accueil
   Fichier chargé sur PC et sur mobile, après style-pc.css / style.css.
   ========================================================================== */

/* ---------- 1) Présentation avant connexion / inscription ---------- */
.vi{
  --vi-ink:#1f1b17; --vi-muted:#5c534a; --vi-accent:#d9623b; --vi-line:#eadfd2;
  position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;
  padding:clamp(14px,3vw,36px);box-sizing:border-box;overflow:hidden;
  background:#f3ede4;color:var(--vi-ink);
  font-family:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  -webkit-tap-highlight-color:transparent;
}
.vi.hidden{display:none!important}
.vi::before,.vi::after{content:"";position:absolute;border-radius:50%;filter:blur(70px);opacity:.55;pointer-events:none}
.vi::before{width:46vw;height:46vw;left:-12vw;top:-16vw;background:#f7c9a3}
.vi::after{width:42vw;height:42vw;right:-12vw;bottom:-16vw;background:#bcd3ef}
.vi *{box-sizing:border-box}
.vi button{font:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.vi button:focus{outline:none}
.vi button:focus-visible{outline:2px solid var(--vi-ink);outline-offset:3px}

.viCard{
  position:relative;z-index:1;width:min(1020px,100%);height:min(640px,100%);
  display:grid;grid-template-columns:1.05fr 1fr;
  background:#fffdf9;border-radius:30px;overflow:hidden;
  box-shadow:0 34px 90px rgba(70,45,20,.20),0 2px 6px rgba(70,45,20,.06);
}

/* Colonne illustration */
.viLeft{position:relative;padding:28px;overflow:hidden;transition:background .6s ease;background:#fde5cf}
.vi[data-step="0"] .viLeft{background:linear-gradient(160deg,#fde7d3,#f8c9a1)}
.vi[data-step="1"] .viLeft{background:linear-gradient(160deg,#e7eefa,#c5d8f0)}
.vi[data-step="2"] .viLeft{background:linear-gradient(160deg,#e8f1e4,#c9dfc6)}
.vi[data-step="3"] .viLeft{background:linear-gradient(160deg,#fde6ea,#f3c1cc)}
.vi[data-step="4"] .viLeft{background:linear-gradient(160deg,#fff0cf,#f3d487)}
.viArt{
  position:absolute;inset:28px;display:flex;align-items:center;justify-content:center;
  opacity:0;transform:translateY(12px) scale(.97);pointer-events:none;
  transition:opacity .5s ease,transform .5s ease;
}
.viArt.is-active{opacity:1;transform:none}
.viSvg{width:100%;height:100%;max-width:440px;max-height:100%;overflow:visible}

/* Colonne texte */
.viRight{display:flex;flex-direction:column;min-width:0;min-height:0;padding:30px 42px 30px}
.viTop{display:flex;align-items:center;justify-content:space-between;gap:12px}
.viKicker{display:inline-flex;align-items:center;gap:9px;font-size:11.5px;font-weight:800;letter-spacing:.16em;color:var(--vi-ink)}
.viKicker img{width:22px;height:22px;border-radius:6px;display:block}
.viCounter{font-size:13px;font-weight:700;color:var(--vi-muted);font-variant-numeric:tabular-nums;min-height:1em}
.viBar{height:4px;margin-top:16px;border-radius:4px;background:var(--vi-line);overflow:hidden}
.viBar span{display:block;height:100%;width:0;border-radius:4px;background:var(--vi-accent);transition:width .45s ease}

.viTexts{flex:1 1 auto;min-height:0;display:flex;align-items:center;padding:12px 0}
.viSlide{display:none;width:100%}
.viSlide.is-active{display:block;animation:viIn .5s cubic-bezier(.2,.7,.2,1) both}
@keyframes viIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.viEyebrow{margin:0 0 14px;font-size:12px;font-weight:800;letter-spacing:.16em;color:var(--vi-accent)}
.viSlide h2{
  margin:0 0 18px;font-family:"Playfair Display",Georgia,"Times New Roman",serif;font-weight:500;
  font-size:clamp(34px,4.1vw,54px);line-height:1.05;letter-spacing:-.012em;color:var(--vi-ink);
}
.viSlide h2 em{font-style:italic;color:var(--vi-accent)}
.viLead{margin:0;max-width:36ch;font-size:clamp(15px,1.45vw,18px);line-height:1.6;color:var(--vi-muted)}
.viCtaRow{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}

/* Boutons */
.viBtn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 26px;
  border-radius:999px;border:1.5px solid transparent;font-size:15px;font-weight:700;cursor:pointer;
  transition:transform .15s ease,background .2s ease,box-shadow .2s ease;
}
.viBtn:active{transform:scale(.97)}
.viBtnPrimary{background:var(--vi-ink);color:#fff;box-shadow:0 8px 20px rgba(31,27,23,.22)}
.viBtnPrimary:hover{background:#000}
.viBtnGhost{background:transparent;color:var(--vi-ink);border-color:rgba(31,27,23,.22)}
.viBtnGhost:hover{background:rgba(31,27,23,.05)}
.viArrow{
  width:50px;height:50px;border-radius:50%;border:1.5px solid rgba(31,27,23,.2);background:#fff;color:var(--vi-ink);
  font-size:20px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
  transition:background .2s ease,opacity .2s ease;
}
.viArrow:hover:not(:disabled){background:#f1ebe3}
.viArrow:disabled{opacity:.3;cursor:default}

/* Pied : points + navigation */
.viFoot{display:flex;align-items:center;justify-content:space-between;gap:14px}
.viDots{display:flex;align-items:center;gap:8px}
.viDot{position:relative;width:8px;height:8px;padding:0;border:0;border-radius:99px;background:#d9cbbb;cursor:pointer;transition:width .3s ease,background .3s ease}
.viDot::after{content:"";position:absolute;inset:-12px -4px}
.viDot.is-active{width:26px;background:var(--vi-accent)}
.viNav{display:flex;align-items:center;gap:10px}
.vi.is-last .viNextBtn{display:none}

/* ----- Mobile : l'illustration passe au-dessus, tout tient dans l'écran ----- */
@media (max-width:700px){
  .vi{padding:0}
  .viCard{width:100%;height:100%;border-radius:0;grid-template-columns:1fr;grid-template-rows:minmax(0,36dvh) minmax(0,1fr);box-shadow:none}
  .viLeft{padding:calc(14px + env(safe-area-inset-top,0px)) 20px 18px;border-radius:0 0 30px 30px}
  .viArt{inset:calc(14px + env(safe-area-inset-top,0px)) 20px 18px}
  .viSvg{max-width:300px}
  .viRight{padding:18px 22px calc(16px + env(safe-area-inset-bottom,0px))}
  .viTexts{padding:8px 0}
  .viSlide h2{font-size:clamp(30px,9vw,38px);margin-bottom:12px}
  .viLead{font-size:15.5px;line-height:1.55;max-width:none}
  .viEyebrow{margin-bottom:10px}
  .viCtaRow{margin-top:22px}
  .viCtaRow .viBtn{flex:1 1 140px}
  .viBtn{min-height:52px}
}
@media (max-width:700px) and (max-height:640px){
  .viCard{grid-template-rows:minmax(0,28dvh) minmax(0,1fr)}
  .viSlide h2{font-size:28px;margin-bottom:8px}
  .viLead{font-size:14px}
  .viBar{margin-top:10px}
}
/* Téléphone en paysage / écrans très bas */
@media (min-width:701px) and (max-height:560px){
  .vi{padding:10px}
  .viRight{padding:16px 28px}
  .viSlide h2{font-size:30px;margin-bottom:10px}
  .viLead{font-size:14px}
  .viCtaRow{margin-top:16px}
  .viBtn{min-height:44px}
}
@media (prefers-reduced-motion:reduce){
  .viSlide.is-active,.viArt,.viBar span,.viDot{animation:none!important;transition:none!important}
}

/* ---------- 2) Mon profil : trois boutons (playlists / associations / j'aime) ---------- */
#profileModal #profileOwnContent .profileTabs{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;
  overflow:visible!important;border-bottom:0!important;padding:0!important;margin:14px 0 18px!important;
}
#profileModal #profileOwnContent .profileTab{
  flex:none!important;width:100%!important;min-height:46px!important;padding:10px 6px!important;
  text-align:center!important;font-size:14px!important;font-weight:700!important;line-height:1.2!important;
  border-radius:999px!important;white-space:normal!important;
  background:#f1ede7!important;color:#4a443d!important;border:1px solid transparent!important;
  -webkit-tap-highlight-color:transparent;
}
#profileModal #profileOwnContent .profileTab:hover{background:#e8e2da!important}
#profileModal #profileOwnContent .profileTab.active{background:#171717!important;color:#fff!important}
#profileModal #profileOwnContent .profileTab.active::after{display:none!important}
#profileModal #profileOwnContent .profileTab:focus{outline:none}
#profileModal #profileOwnContent .profileTab:focus-visible{outline:2px solid #171717;outline-offset:2px}
.profileBoardGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px;align-items:start}
.profileBoardGrid .board{margin:0!important;width:auto!important;max-width:none!important;break-inside:auto}
@media (max-width:700px){
  #profileModal #profileOwnContent .profileTab{font-size:12.5px!important;padding:9px 3px!important;min-height:44px!important}
  .profileBoardGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}

/* ---------- 3) Mobile : pas d'encadré bleu sur Associations / Playlist / Scroller ---------- */
.homeModeTabs,.homeModeTabs *{-webkit-tap-highlight-color:transparent}
.homeModeTab{outline:none!important;-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-appearance:none;appearance:none}
.homeModeTab:focus,.homeModeTab:active{outline:none!important;box-shadow:none}
.homeModeTab.active:focus,.homeModeTab.active:active{box-shadow:0 1px 5px #00000012!important}

/* ==========================================================================
   V83 — lecteur YouTube, croix de présentation, menu « Créer », « Ajouter à une
   playlist », playlist vide, playlist mobile et animations d'accueil mobile.
   ========================================================================== */

/* ---------- 1) Lecteur YouTube invisible (audio uniquement, comme un MP3) ---------- */
/* V91 : le lecteur reste DANS l'écran (invisible) : les navigateurs mobiles refusent de lancer une vidéo hors écran. */
#ytEngineHost{position:fixed;left:0;bottom:0;width:220px;height:220px;overflow:hidden;opacity:.01;pointer-events:none;z-index:-1}
#ytEngineHost iframe{width:220px;height:220px;border:0}

/* ---------- 2) Présentation : croix de fermeture (PC + mobile) ---------- */
.vi{z-index:30000}
.viClose{
  position:absolute;top:16px;right:16px;z-index:6;width:42px;height:42px;padding:0;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(31,27,23,.12);border-radius:50%;background:rgba(255,255,255,.88);color:var(--vi-ink,#1f1b17);
  box-shadow:0 4px 14px rgba(40,25,10,.12);cursor:pointer;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  transition:transform .18s ease,background .2s ease,box-shadow .2s ease;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
}
.viClose svg{width:20px;height:20px;display:block}
.viClose:hover{background:#fff;transform:rotate(90deg);box-shadow:0 6px 18px rgba(40,25,10,.18)}
.viClose:active{transform:scale(.92)}
.viClose:focus{outline:none}
.viClose:focus-visible{outline:2px solid var(--vi-ink,#1f1b17);outline-offset:3px}
/* Sur ordinateur la croix occupe le coin de la carte : le compteur « 1 / 4 » lui laisse la place. */
@media (min-width:701px){.viTop{padding-right:52px}}
@media (max-width:700px){
  .viClose{top:calc(12px + env(safe-area-inset-top,0px));right:14px;width:40px;height:40px}
}
/* Après fermeture, le site reste derrière : seule la présentation est au premier plan. */
body.visitorGate{overflow:hidden!important}
body.visitorGate > #mobileBottomNav{display:none!important}

/* ---------- 3) Menu « Créer » (deux boutons) ---------- */
.createChoiceBox{width:min(440px,92vw)!important;padding:30px 26px 26px!important}
.createChoiceBox h2{margin:2px 0 18px!important;font-size:30px!important;line-height:1.1!important}
.modalKicker{font-size:11.5px;font-weight:800;letter-spacing:.16em;color:#d9623b}
.createChoices{display:grid;gap:12px}
.createChoice{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;
  padding:16px 18px;border:1.5px solid rgba(31,27,23,.1);border-radius:20px;background:#fff;color:#1f1b17;text-align:left;
  font:inherit;cursor:pointer;box-shadow:0 6px 18px rgba(60,40,20,.06);
  transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .25s ease,border-color .2s ease,background .2s ease;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
}
.createChoice:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(60,40,20,.12);border-color:rgba(31,27,23,.28)}
.createChoice:active{transform:scale(.985)}
.createChoice:focus{outline:none}
.createChoice:focus-visible{outline:2px solid #1f1b17;outline-offset:3px}
.createChoiceIcon{width:48px;height:48px;border-radius:15px;display:inline-flex;align-items:center;justify-content:center;background:#fde7d3;color:#c4502b}
.createChoice + .createChoice .createChoiceIcon{background:#e3ecf8;color:#2b3a67}
.createChoiceIcon svg{width:26px;height:26px;display:block}
.createChoiceText{display:flex;flex-direction:column;gap:3px;min-width:0}
.createChoiceText strong{font-size:16.5px;font-weight:750;letter-spacing:-.005em}
.createChoiceText small{font-size:13px;line-height:1.35;color:#6b6258}
.createChoice i{font-style:normal;font-size:20px;color:#9a8f82;transition:transform .2s ease,color .2s ease}
.createChoice:hover i{transform:translateX(3px);color:#1f1b17}
.createChoice:nth-child(1){animation:tmRise .38s cubic-bezier(.2,.8,.2,1) both .04s}
.createChoice:nth-child(2){animation:tmRise .38s cubic-bezier(.2,.8,.2,1) both .12s}
@keyframes tmRise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* Bouton « + » sur ordinateur (remplace « + Playlist ») */
@media (min-width:701px){
  #newBoardBtn{display:inline-flex;align-items:center;justify-content:center;width:42px;min-width:42px;height:42px;padding:0!important;border-radius:50%;font-size:23px;line-height:1}
  #newBoardBtn.hidden{display:none!important}
}

/* ---------- 4) « Ajouter à une playlist » ---------- */
.addToPlaylistBox{width:min(470px,92vw)!important;max-height:min(86dvh,720px);overflow-y:auto;padding:28px 24px 22px!important}
.addToPlaylistBox h2{margin:2px 0 14px!important;font-size:29px!important;line-height:1.1!important;padding-right:34px}
.atpItem{display:flex;align-items:center;gap:12px;padding:10px;margin-bottom:16px;border-radius:16px;background:#fff;border:1px solid rgba(31,27,23,.08)}
.atpItem img{width:54px;height:54px;border-radius:11px;object-fit:cover;background:#e9e4db;flex:0 0 auto}
.atpItem div{min-width:0;display:flex;flex-direction:column;gap:3px}
.atpItem strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.atpItem small{font-size:12.5px;color:#6b6258;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.atpLabel{margin:0 0 8px;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#7a7066}
.atpList{
  display:flex;flex-direction:column;gap:8px;max-height:min(34dvh,280px);overflow-y:auto;padding:2px 4px 2px 2px;margin:0 -4px 12px 0;
  overscroll-behavior:contain;scrollbar-width:thin;
  -webkit-mask-image:linear-gradient(#000 calc(100% - 18px),transparent);mask-image:linear-gradient(#000 calc(100% - 18px),transparent);
}
.atpRow{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;
  padding:9px 12px 9px calc(10px + var(--depth,0)*16px);border:1.5px solid transparent;border-radius:15px;background:#fff;color:#1f1b17;text-align:left;font:inherit;cursor:pointer;
  box-shadow:0 2px 8px rgba(60,40,20,.05);transition:border-color .18s ease,background .18s ease,transform .18s ease;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
}
.atpRow:hover{border-color:rgba(31,27,23,.22)}
.atpRow:active{transform:scale(.99)}
.atpRow:focus{outline:none}
.atpRow:focus-visible{outline:2px solid #1f1b17;outline-offset:2px}
.atpRow.is-selected{border-color:#1f1b17;background:#fbf6ee}
.atpThumb{width:44px;height:44px;border-radius:11px;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:#efe7db;color:#9a8f82;font-size:18px}
.atpThumb img{width:100%;height:100%;object-fit:cover;display:block}
.atpText{display:flex;flex-direction:column;gap:2px;min-width:0}
.atpText strong{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.atpText small{font-size:12px;color:#7a7066}
.atpCheckMark{width:24px;height:24px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;background:#1f1b17;color:#fff;opacity:0;transform:scale(.4);transition:opacity .18s ease,transform .25s cubic-bezier(.3,1.5,.5,1)}
.atpRow.is-selected .atpCheckMark{opacity:1;transform:none}
.atpEmpty{margin:4px 2px 10px;font-size:14px;line-height:1.5;color:#6b6258}
.atpNewToggle{display:block;width:100%;margin:0 0 14px;padding:11px 14px;border:1.5px dashed rgba(31,27,23,.3);border-radius:15px;background:transparent;color:#1f1b17;font:inherit;font-size:14.5px;font-weight:650;cursor:pointer;transition:background .2s ease,border-color .2s ease}
.atpNewToggle:hover{background:rgba(31,27,23,.04);border-color:rgba(31,27,23,.5)}
.atpNewToggle.hidden,.atpNewForm.hidden,.atpMain.hidden,.atpDone.hidden{display:none!important}
.atpNewForm{display:flex;gap:8px;margin:0 0 14px}
.atpNewForm input{flex:1 1 auto;min-width:0;margin:0!important}
.atpNewForm button{flex:0 0 auto}
.atpActions{display:flex;gap:10px;justify-content:flex-end}
.atpActions button{min-height:46px;padding:0 22px}
.atpActions .save:disabled{opacity:.4;cursor:default;transform:none;box-shadow:none}
.atpStatus{min-height:1.2em;margin:10px 0 0;font-size:13px;color:#b3412b}
.atpDone{text-align:center;padding:10px 0 2px;animation:tmRise .4s cubic-bezier(.2,.8,.2,1) both}
.atpDone h2{padding-right:0!important;margin:14px 0 8px!important}
.atpDone p{margin:0 0 22px;color:#5c534a;line-height:1.5}
.atpDone .atpActions{justify-content:center;flex-wrap:wrap}
.atpCheck{width:68px;height:68px;margin:6px auto 0;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:800;background:#1f1b17;color:#fff;animation:tmPop .5s cubic-bezier(.3,1.6,.5,1) both}
@keyframes tmPop{from{transform:scale(.3);opacity:0}to{transform:none;opacity:1}}
@media (max-width:700px){
  .addToPlaylistBox{padding:24px 18px 18px!important}
  .atpList{max-height:min(36dvh,260px)}
  .atpActions button{flex:1 1 0}
}

/* ---------- 5) Playlist vide : bouton « + Ajouter » au centre ---------- */
.emptyContentBlock{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:56px 20px 64px;text-align:center}
.emptyContentBlock.hidden{display:none!important}
.emptyContentBlock .emptyText{margin:0;opacity:.5;line-height:1.7;font-size:16px}
.emptyContentBlock .add{min-height:46px;padding:0 26px;font-size:15px}
.emptyContentBlock .add.hidden{display:none!important}
/* Plus de lecture sur une playlist vide ; « ••• » est conservé. */
#boardView.board-totally-empty #playlistBtn,
#boardView.board-totally-empty #shuffleBtn,
#boardView.board-no-own-items #addContentBtn{display:none!important}
/* Centrage dans l'onglet quand il n'y a rien du tout */
#boardView.board-totally-empty .viewShell{display:flex;flex-direction:column}
#boardView.board-totally-empty .viewShell > *{flex:0 0 auto}
#boardView.board-totally-empty .viewShell > #emptyContent{flex:1 1 auto}
#boardView.board-totally-empty .boardHero{min-height:0!important;padding-bottom:20px}
#boardView.board-totally-empty #contentGrid{display:none}

/* ---------- 6) Mobile : la playlist ne touche plus les trois boutons du bas ---------- */
@media (max-width:700px){
  body.board-open:not(.immersive-open) #boardView.view{
    padding:10px 10px calc(76px + env(safe-area-inset-bottom,0px))!important;
    align-items:stretch!important;justify-content:center!important;box-sizing:border-box!important;
  }
  body.board-open:not(.immersive-open) #boardView .viewShell{
    width:100%!important;height:100%!important;max-height:100%!important;box-sizing:border-box!important;
    border-radius:26px!important;padding-bottom:26px!important;
    box-shadow:0 12px 36px rgba(0,0,0,.22)!important;
  }
  /* Quand la barre de lecture est affichée, le contenu garde de la marge pour rester accessible sous elle. */
  body.board-open:has(#player:not(.hidden)) #boardView .viewShell{padding-bottom:132px!important}
  .emptyContentBlock{padding:36px 16px 44px}
}

/* ---------- 7) Accueil mobile : deux colonnes simultanées + animations ---------- */
@media (max-width:700px){
  #discoveryStrip.tmCols:not(.homeBoardMode){display:flex!important;flex-direction:row!important;align-items:flex-start!important;column-count:auto!important;column-gap:0!important;gap:8px!important}
  #discoveryStrip.tmCols .discoveryCol{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:9px}
  #discoveryStrip.tmCols .discoveryTile{display:block!important;margin:0!important;width:100%!important;animation:none!important;overflow:hidden}
  #discoveryStrip.tmCols .discoveryTile.is-loading{
    aspect-ratio:var(--ar,4/5)!important;
    background:linear-gradient(110deg,#ece5da 30%,#f6f1e9 48%,#ece5da 66%)!important;background-size:220% 100%;
    animation:tmShimmer 1.25s ease-in-out infinite!important;
  }
  #discoveryStrip.tmCols .discoveryTile.is-loading img{opacity:0}
  #discoveryStrip.tmCols .discoveryTile.is-ready{animation:tmTileIn .55s cubic-bezier(.2,.8,.2,1) both!important;animation-delay:var(--d,0ms)!important}
  #discoveryStrip.tmCols .discoveryTile:active{transform:scale(.975);transition:transform .15s ease}
  #discoveryStrip.homeBoardMode .board{animation:tmTileIn .5s cubic-bezier(.2,.8,.2,1) both}
  #discoveryStrip.tm-swap{animation:tmSwap .35s ease backwards}
  @keyframes tmShimmer{from{background-position:120% 0}to{background-position:-100% 0}}
  @keyframes tmTileIn{from{opacity:0;transform:translateY(22px) scale(.96)}to{opacity:1;transform:none}}
  @keyframes tmSwap{from{opacity:.0;transform:translateY(8px)}to{opacity:1;transform:none}}
  @keyframes tmDown{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:none}}
  @keyframes tmUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
  @keyframes tmFade{from{opacity:0}to{opacity:1}}
  @keyframes tmPill{from{opacity:0;transform:translateY(-10px) scale(.94)}to{opacity:1;transform:none}}
  /* Entrée sur la page d'accueil : en-tête, onglets et barre du bas apparaissent en douceur. */
  body:not(.visitorLocked) > header{animation:tmDown .5s cubic-bezier(.2,.8,.2,1) backwards}
  body:not(.visitorLocked) > header .siteBrandLogo{animation:tmPop .7s cubic-bezier(.3,1.5,.5,1) backwards .15s}
  body:not(.visitorLocked) > header h1{animation:tmFade .7s ease backwards .25s}
  body:not(.visitorLocked) #homeModeTabs{animation:tmPill .55s cubic-bezier(.2,.8,.2,1) backwards .12s}
  body:not(.visitorLocked) > #mobileBottomNav{animation:tmUp .55s cubic-bezier(.2,.8,.2,1) backwards .2s}
  body:not(.visitorLocked) > #mobileBottomNav button{animation:tmPop .5s cubic-bezier(.3,1.6,.5,1) backwards}
  body:not(.visitorLocked) > #mobileBottomNav button:nth-child(1){animation-delay:.35s}
  body:not(.visitorLocked) > #mobileBottomNav button:nth-child(2){animation-delay:.43s}
  body:not(.visitorLocked) > #mobileBottomNav button:nth-child(3){animation-delay:.51s}
  .homeModeTab{transition:background .25s ease,color .25s ease,box-shadow .25s ease,transform .15s ease}
  .homeModeTab:active{transform:scale(.95)}
  .mobileBottomNav button{transition:transform .15s ease}
  .mobileBottomNav button:active{transform:scale(.88)}
}
@media (prefers-reduced-motion:reduce){
  #discoveryStrip .discoveryTile,#discoveryStrip .board,body > header,body > #mobileBottomNav,body > #mobileBottomNav button,#homeModeTabs,.createChoice,.atpDone,.atpCheck{animation:none!important}
  #discoveryStrip.tmCols .discoveryTile.is-loading img{opacity:1}
}

/* ==========================================================================
   V84 — mobile : fiche d'association en onglet, barre de lecture simplifiée,
   plein écran façon YouTube, modales centrées.
   Tout ce bloc ne concerne que les téléphones (≤ 700 px).
   ========================================================================== */

/* ---------- 1) Mobile : plus de bouton « Retrouver… » dans la fiche ---------- */
@media (max-width:700px){
  html body #artworkFindInImmersive{display:none!important}
}

/* ---------- 2) Mobile : barre de lecture uniquement sur la page d'accueil ---------- */
@media (max-width:700px){
  html body.artwork-open #player,
  html body.board-open #player,
  html body.immersive-open #player{display:none!important}
}

/* ---------- 3) Mobile : barre de lecture compacte (image, aléatoire, précédent, pause, suivant, croix) ---------- */
@media (max-width:700px){
  html body #player{
    left:10px!important;right:10px!important;
    padding:7px 8px 7px 7px!important;
    gap:6px!important;
    flex-wrap:nowrap!important;
    justify-content:space-between!important;
    border-radius:22px!important;
    max-width:none!important;
  }
  html body #player #playerCover{
    width:42px!important;height:42px!important;min-width:42px!important;
    border-radius:12px!important;object-fit:cover!important;flex:0 0 42px!important;order:0!important;
  }
  html body #player .playerText,
  html body #player .seekWrap,
  html body #player #playerContext{display:none!important}
  html body #player .playerControls{
    order:1!important;display:flex!important;flex:1 1 auto!important;min-width:0!important;
    justify-content:space-evenly!important;align-items:center!important;gap:0!important;
  }
  html body #player #shufflePlayer{order:1!important}
  html body #player #prevTrack{order:2!important}
  html body #player #playPause{order:3!important}
  html body #player #nextTrack{order:4!important}
  html body #player .playerControls button{
    width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
    padding:0!important;border-radius:50%!important;
  }
  html body #player #playPause{
    width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
    background:#fff!important;color:#171717!important;
  }
  html body #player #playPause svg,html body #player #playPause svg *{fill:#171717!important;color:#171717!important}
  html body #player #shufflePlayer.active{background:rgba(255,255,255,.22)!important}
  html body #player #closePlayer{
    order:2!important;flex:0 0 36px!important;
    width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
    padding:0!important;margin:0!important;border-radius:50%!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    background:rgba(255,255,255,.16)!important;color:#fff!important;
    font-size:19px!important;line-height:1!important;
  }
  html body #player #closePlayer:active{background:rgba(255,255,255,.30)!important}
}

/* ---------- 4) Mobile : la fiche d'association devient un onglet rectangulaire (comme une playlist) ---------- */
@media (max-width:700px){
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen){
    position:fixed!important;inset:0!important;width:auto!important;height:auto!important;
    display:flex!important;align-items:stretch!important;justify-content:stretch!important;
    padding:10px 10px calc(74px + env(safe-area-inset-bottom,0px))!important;margin:0!important;
    box-sizing:border-box!important;overflow:hidden!important;touch-action:auto!important;
    background:rgba(0,0,0,.38)!important;
    backdrop-filter:blur(9px)!important;-webkit-backdrop-filter:blur(9px)!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkBox{
    position:relative!important;width:100%!important;max-width:none!important;
    height:100%!important;max-height:100%!important;min-height:0!important;margin:0!important;
    padding:0!important;gap:0!important;border:0!important;border-radius:26px!important;
    background:#f4f1eb!important;box-shadow:0 12px 36px rgba(0,0,0,.22)!important;
    overflow:hidden!important;box-sizing:border-box!important;
    display:flex!important;flex-direction:column!important;grid-template:none!important;
  }
  /* Boutons du haut : une rangée, en flux (ils ne recouvrent jamais le tableau) */
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkTopActions{
    position:relative!important;top:auto!important;left:auto!important;right:auto!important;
    z-index:5!important;height:auto!important;flex:0 0 auto!important;margin:0!important;
    display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;
    padding:12px 12px 0!important;pointer-events:auto!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkTopActions button{
    width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    padding:0!important;margin:0!important;border-radius:50%!important;
    background:#fff!important;border:1px solid rgba(25,22,18,.08)!important;box-shadow:0 2px 8px rgba(0,0,0,.07)!important;
    color:#2b2118!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkTopActions svg{width:18px!important;height:18px!important}
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkClose{
    position:static!important;font-size:24px!important;line-height:1!important;color:#2b2118!important;
  }
  /* Le tableau : toujours entier, sans fond gris derrière */
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkImageWrap{
    position:relative!important;grid-row:auto!important;grid-column:auto!important;
    flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;height:min(44dvh,400px)!important;min-height:0!important;max-height:none!important;
    margin:0!important;padding:8px 24px 6px!important;box-sizing:border-box!important;
    background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;overflow:hidden!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkImage{
    display:block!important;visibility:visible!important;opacity:1!important;
    width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;
    object-fit:contain!important;border-radius:14px!important;
    box-shadow:0 14px 34px rgba(40,28,14,.24)!important;background:transparent!important;
    transition:opacity .22s ease!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkImage.is-swapping{opacity:0!important}
  /* Infos : zone défilante, mise en page soignée */
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkInfo{
    position:static!important;grid-row:auto!important;grid-column:auto!important;
    flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;width:100%!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
    gap:8px!important;margin:0!important;padding:10px 22px calc(14px + env(safe-area-inset-bottom,0px))!important;
    overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;box-sizing:border-box!important;
    background:transparent!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkInfo > .eyebrow{
    margin:0!important;font-size:10px!important;letter-spacing:.16em!important;line-height:1.2!important;
    font-weight:800!important;color:#c4502b!important;opacity:1!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkTitle{
    margin:0!important;font-family:"Playfair Display",Georgia,"Times New Roman",serif!important;font-weight:500!important;
    font-size:clamp(26px,7.4vw,34px)!important;line-height:1.05!important;letter-spacing:-.02em!important;color:#1f1b17!important;
    display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
    overflow-wrap:anywhere!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkArtist{
    margin:-2px 0 0!important;font-size:13.5px!important;line-height:1.3!important;color:#6b6258!important;opacity:1!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .musicInfo{
    display:flex!important;align-items:center!important;gap:12px!important;margin:2px 0 0!important;
    padding:10px 12px!important;min-height:0!important;border-radius:16px!important;
    background:#fff!important;box-shadow:0 2px 10px rgba(60,40,20,.06)!important;box-sizing:border-box!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .musicNote{
    width:38px!important;height:38px!important;min-width:38px!important;border-radius:12px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    background:linear-gradient(135deg,#f6b98f,#d9623b)!important;color:#fff!important;font-size:17px!important;margin:0!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .musicInfo > div{min-width:0!important;flex:1 1 auto!important}
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .musicInfo strong{
    display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
    font-size:14.5px!important;line-height:1.25!important;white-space:normal!important;color:#1f1b17!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .musicInfo small{
    display:block!important;font-size:12px!important;line-height:1.3!important;margin-top:2px!important;color:#7a7066!important;opacity:1!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkCreator{margin:0!important;font-size:12px!important;color:#7a7066!important;line-height:1.3!important}
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkCreator:empty{display:none!important}
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkSpotifyEmbed iframe{border-radius:14px;max-width:100%}
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .commentForm{
    display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;
    height:auto!important;min-height:0!important;margin:4px 0 0!important;padding:0!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .commentForm input{
    flex:1 1 auto!important;min-width:0!important;height:44px!important;min-height:44px!important;
    padding:0 16px!important;border-radius:999px!important;border:1px solid rgba(31,27,23,.10)!important;
    background:#fff!important;font-size:14px!important;box-shadow:none!important;margin:0!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .commentForm button{
    flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
    border-radius:50%!important;border:0!important;background:#1f1b17!important;color:#fff!important;
    display:flex!important;align-items:center!important;justify-content:center!important;font-size:18px!important;padding:0!important;
  }
  /* Commandes : rangée centrée, play en évidence */
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkControls{
    display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;
    gap:10px!important;width:100%!important;margin:4px 0 0!important;padding:10px 0 0!important;
    border-top:1px solid rgba(40,35,29,.08)!important;box-sizing:border-box!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkPlaybackControls{
    display:flex!important;align-items:center!important;gap:8px!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkControl{
    width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;
    border-radius:50%!important;background:#fff!important;color:#1f1b17!important;
    border:1px solid rgba(25,22,18,.08)!important;box-shadow:0 2px 8px rgba(0,0,0,.05)!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkControl svg{width:19px!important;height:19px!important}
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkMainControl{
    width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important;
    background:#1f1b17!important;color:#fff!important;border:0!important;box-shadow:0 8px 20px rgba(31,27,23,.25)!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkMainControl svg{width:22px!important;height:22px!important;fill:#fff!important}
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkSecondaryActions{display:flex!important;align-items:center!important}
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .likeButton{
    height:42px!important;min-height:42px!important;padding:0 14px!important;border-radius:999px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
    background:#fff!important;border:1px solid rgba(25,22,18,.08)!important;color:#1f1b17!important;font-size:14px!important;
    box-shadow:0 2px 8px rgba(0,0,0,.05)!important;
  }
}

/* ---------- 5) Mobile : plein écran façon YouTube (seule l'image, la musique continue) ---------- */
@media (max-width:700px){
  html body #artworkModal.pseudo-fullscreen,
  html body #artworkModal.is-fullscreen{
    position:fixed!important;inset:0!important;width:100%!important;height:100%!important;
    padding:0!important;margin:0!important;background:#000!important;
    backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
    display:flex!important;align-items:stretch!important;justify-content:stretch!important;overflow:hidden!important;
    touch-action:manipulation!important;
  }
  html body #artworkModal.pseudo-fullscreen .artworkBox,
  html body #artworkModal.is-fullscreen .artworkBox{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
    max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;gap:0!important;
    border:0!important;border-radius:0!important;background:#000!important;box-shadow:none!important;
    display:block!important;grid-template:none!important;overflow:hidden!important;
  }
  html body #artworkModal.pseudo-fullscreen .artworkInfo,
  html body #artworkModal.is-fullscreen .artworkInfo{display:none!important}
  html body #artworkModal.pseudo-fullscreen .artworkImageWrap,
  html body #artworkModal.is-fullscreen .artworkImageWrap{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
    margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#000!important;
    display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;
  }
  html body #artworkModal.pseudo-fullscreen #artworkImage,
  html body #artworkModal.is-fullscreen #artworkImage{
    width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;
    object-fit:contain!important;border-radius:0!important;box-shadow:none!important;
  }
  /* Seul bouton conservé : sortie du plein écran, discret, en haut à droite */
  html body #artworkModal.pseudo-fullscreen .artworkTopActions,
  html body #artworkModal.is-fullscreen .artworkTopActions{
    position:absolute!important;top:0!important;right:0!important;left:auto!important;z-index:6!important;
    display:flex!important;gap:0!important;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 0 0!important;
    background:none!important;height:auto!important;margin:0!important;
  }
  html body #artworkModal.pseudo-fullscreen .artworkTopActions #artworkShare,
  html body #artworkModal.pseudo-fullscreen .artworkTopActions .artworkClose,
  html body #artworkModal.is-fullscreen .artworkTopActions #artworkShare,
  html body #artworkModal.is-fullscreen .artworkTopActions .artworkClose{display:none!important}
  html body #artworkModal.pseudo-fullscreen #artworkFullscreen,
  html body #artworkModal.is-fullscreen #artworkFullscreen{
    width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
    background:rgba(20,20,20,.55)!important;color:#fff!important;border:0!important;box-shadow:none!important;
  }
  html body #artworkModal.pseudo-fullscreen #artworkFullscreen svg,
  html body #artworkModal.is-fullscreen #artworkFullscreen svg{color:#fff!important;stroke:#fff!important}
}
/* iPhone (pas de rotation automatique en plein écran) : si le téléphone est tenu debout,
   la fiche est pivotée pour occuper tout l'écran en paysage. */
@media (max-width:700px) and (orientation:portrait){
  html body #artworkModal.pseudo-fullscreen .artworkBox,
  html body #artworkModal.is-fullscreen .artworkBox{
    position:fixed!important;inset:auto!important;left:50%!important;top:50%!important;
    width:100dvh!important;height:100dvw!important;
    transform:translate(-50%,-50%) rotate(90deg)!important;
  }
}

/* ---------- 6) Mobile : menus et connexion centrés en onglet rectangulaire (comme sur PC) ---------- */
@media (max-width:700px){
  html body .modal:not(.hidden){
    align-items:center!important;justify-content:center!important;padding:18px!important;
  }
  html body .modal:not(.hidden) .modalBox{
    width:min(440px,100%)!important;max-width:440px!important;
    max-height:min(86dvh,760px)!important;overflow:auto!important;
    margin:0 auto!important;padding:26px 22px 22px!important;
    border-radius:24px!important;box-sizing:border-box!important;
  }
  /* Le menu « + » : boutons bien visibles, texte entier */
  html body #createChoiceModal .createChoiceBox{padding:26px 20px 22px!important}
  html body #createChoiceModal .createChoice{padding:14px 16px!important}
  html body #createChoiceModal .createChoiceText small{white-space:normal!important;overflow:visible!important}
}

/* ---------- 7) Mobile : barre de lecture — précédent et aléatoire affichés, hauteur et position stables ---------- */
@media (max-width:700px){
  html body #player:not(.hidden){
    height:58px!important;min-height:58px!important;max-height:58px!important;
    bottom:calc(66px + env(safe-area-inset-bottom,0px))!important;
    padding:7px 8px 7px 7px!important;
  }
  html body #player #prevTrack,
  html body #player #shufflePlayer{display:inline-flex!important}
}

/* ---------- 8) Mobile : fiche — rien ne s'écrase sur petit écran ; le tableau s'adapte à la hauteur ---------- */
@media (max-width:700px){
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkInfo > *{
    flex:0 0 auto!important;min-height:auto!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkImageWrap{
    height:clamp(170px,42dvh,400px)!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkInfo{gap:7px!important}
}
@media (max-width:700px) and (max-height:720px){
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkImageWrap{
    height:clamp(150px,36dvh,320px)!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkTitle{font-size:clamp(24px,7vw,30px)!important}
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkInfo{padding-top:8px!important}
}

/* ==========================================================================
   V85 — recherche plein largeur (mobile), logo aligné, commentaires du scroll,
   notifications plus rapides, plein écran fluide, fiche sans défilement.
   ========================================================================== */

/* ---------- 1) Recherche mobile : barre pleine largeur en haut de la page ---------- */
.mobileSearchCancel{display:none}
@media (max-width:700px){
  html body.mobile-search-open header{position:sticky!important;}
  html body.mobile-search-open header .brandBlock{visibility:hidden!important}
  html body.mobile-search-open header .headerActions{
    display:block!important;position:relative!important;width:100%!important;height:44px!important;
    min-height:44px!important;margin:0!important;padding:0!important;grid-template-columns:none!important;
  }
  html body.mobile-search-open header .headerActions > *:not(#searchInput):not(#mobileSearchCancel){display:none!important}
  html body.mobile-search-open header .headerActions #searchInput{
    display:block!important;position:absolute!important;left:0!important;top:0!important;right:76px!important;
    width:auto!important;max-width:none!important;height:44px!important;min-height:44px!important;margin:0!important;
    padding:0 16px!important;border-radius:999px!important;border:1.5px solid #1f1b17!important;background:#fff!important;
    font-size:16px!important;color:#1f1b17!important;box-shadow:0 6px 18px rgba(40,25,10,.10)!important;z-index:2!important;
  }
  html body.mobile-search-open header .headerActions #mobileSearchCancel{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    position:absolute!important;right:0!important;top:0!important;height:44px!important;min-height:44px!important;
    padding:0 4px!important;margin:0!important;border:0!important;background:none!important;color:#1f1b17!important;
    font-size:15px!important;font-weight:700!important;z-index:2!important;width:auto!important;
  }
  html body.mobile-search-open .searchResults{padding-top:14px}
}

/* ---------- 2) Logo et « Tableaux musicaux » toujours alignés (mobile, en haut comme en défilant) ---------- */
@media (max-width:700px){
  html body header .brandBlock .brandTitleRow{align-items:center!important;}
  html body header .brandBlock .siteBrandLogo{align-self:center!important;margin:0!important;}
  html body header.is-scrolled .brandBlock .brandTitleRow{align-items:center!important;}
}

/* ---------- 3) Commentaires du scroll : icône bulle propre au repos, flèche une fois le champ ouvert ---------- */
.immersiveInlineCommentForm button::before,.immersiveInlineCommentForm button::after{content:none!important;display:none!important}
.immersiveInlineCommentForm button .icoBubble{display:block;width:17px;height:17px}
.immersiveInlineCommentForm button .icoArrow{display:none;width:16px;height:16px}
.immersiveInlineCommentForm:focus-within button .icoBubble{display:none}
.immersiveInlineCommentForm:focus-within button .icoArrow{display:block}
/* Flèche de publication : même traitement sur la fiche (mobile et PC) */
#artworkModal .commentForm button{display:grid;place-items:center}
#artworkModal .commentForm button svg{width:17px;height:17px;display:block}

/* ---------- 4) Notifications : ouverture immédiate ---------- */
@keyframes tmNotifIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@keyframes tmNotifBg{from{opacity:0}to{opacity:1}}
#notificationsModal{animation:tmNotifBg .14s ease both!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
#notificationsModal .modalBox{animation:tmNotifIn .18s cubic-bezier(.2,.8,.2,1) both!important}
#notificationsModal.is-closing .modalBox{animation:tmNotifBg .12s ease both!important}

/* ---------- 5) Plein écran mobile : seule l'image, quelle que soit l'orientation ---------- */
@keyframes tmFsIn{from{opacity:.0}to{opacity:1}}
html body #artworkModal.pseudo-fullscreen,
html body #artworkModal.is-fullscreen{animation:tmFsIn .24s ease both!important}
html body #artworkModal.pseudo-fullscreen .artworkInfo,
html body #artworkModal.is-fullscreen .artworkInfo,
html body #artworkModal.pseudo-fullscreen .artworkControls,
html body #artworkModal.is-fullscreen .artworkControls,
html body #artworkModal.pseudo-fullscreen .commentForm,
html body #artworkModal.is-fullscreen .commentForm{display:none!important}
html body #artworkModal.pseudo-fullscreen .artworkTopActions #artworkFullscreen,
html body #artworkModal.is-fullscreen .artworkTopActions #artworkFullscreen{display:inline-flex!important}
html body #artworkModal.pseudo-fullscreen .artworkImageWrap,
html body #artworkModal.is-fullscreen .artworkImageWrap{cursor:default}

/* ---------- 6) Fiche mobile : l'image prend la place restante, les informations ne défilent plus ---------- */
@media (max-width:700px){
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkInfo{
    flex:0 0 auto!important;overflow:hidden!important;padding:10px 22px calc(14px + env(safe-area-inset-bottom,0px))!important;
    justify-content:flex-end!important;gap:7px!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkImageWrap{
    flex:1 1 0!important;height:auto!important;min-height:120px!important;padding:6px!important;position:relative!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkImageWrap #artworkImage{
    position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;
    width:calc(100% - 12px)!important;height:calc(100% - 12px)!important;max-width:none!important;max-height:none!important;
    object-fit:contain!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkImageWrap #artworkImage.is-swapping{opacity:0!important;transform:translate(-50%,-50%) scale(.985)!important}
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkTitle{font-size:clamp(24px,7vw,31px)!important;}
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkImageWrap{cursor:zoom-in}
}
@media (max-width:700px) and (max-height:720px){
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkTitle{font-size:clamp(22px,6.6vw,27px)!important;}
}

/* ---------- 9) Scroll : l'indication « Fais défiler » s'efface pendant la saisie du commentaire ---------- */
#immersiveBoards.is-typing .immersiveScrollHint{display:none!important}
.immersiveInlineCommentForm input:focus{box-shadow:none!important;background:transparent!important;outline:none!important}

/* ==========================================================================
   V86 — fiche mobile : icône commentaire + barre de lecture ; aléatoire lisible ;
   profil en onglet centré ; défilement confiné à l'onglet ouvert.
   ========================================================================== */

/* ---------- 1) Commentaires : icône, panneau à l'ouverture (mobile uniquement) ---------- */
.artworkCommentBtn{display:none}
.commentPanel{display:contents}
.commentPanelHead,.commentList,.commentStatus{display:none}
@media (max-width:700px){
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkCommentBtn{
    display:inline-flex!important;align-items:center!important;gap:6px!important;
    height:42px!important;min-height:42px!important;padding:0 14px!important;border-radius:999px!important;
    background:#fff!important;border:1px solid rgba(25,22,18,.08)!important;color:#1f1b17!important;font-size:14px!important;
    box-shadow:0 2px 8px rgba(0,0,0,.05)!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkCommentBtn svg{width:18px!important;height:18px!important;display:block}
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkCommentBtn.is-on{background:#1f1b17!important;color:#fff!important}
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .commentPanel{display:none!important}
  html body #artworkModal.comments-open:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .commentPanel{
    display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important;
    padding:10px 12px!important;border-radius:16px!important;background:#fff!important;box-shadow:0 2px 10px rgba(60,40,20,.06)!important;box-sizing:border-box!important;
  }
  html body #artworkModal.comments-open:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .commentPanelHead{
    display:flex!important;align-items:center!important;justify-content:space-between!important;font-size:13px!important;color:#1f1b17!important;
  }
  html body #artworkModal.comments-open:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .commentPanelHead span{
    font-size:12px!important;color:#7a7066!important;background:#f1ece4;border-radius:999px;padding:2px 9px;
  }
  html body #artworkModal.comments-open:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .commentList{
    display:flex!important;flex-direction:column!important;gap:6px!important;max-height:132px!important;overflow-y:auto!important;overscroll-behavior:contain!important;
  }
  html body #artworkModal.comments-open:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .commentStatus:not(:empty){display:block!important;font-size:12px!important;color:#b3412b!important}
  html body #artworkModal.comments-open:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .commentPanel .commentForm{margin:0!important}
}

/* ---------- 2) Barre de lecture de la fiche (mobile) ---------- */
.artworkSeek{display:none}
@media (max-width:700px){
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkSeek{
    display:flex!important;align-items:center!important;gap:10px!important;flex:0 0 auto!important;width:100%!important;margin:4px 0 0!important;box-sizing:border-box!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkSeek span{
    font-size:11px!important;font-weight:600!important;color:#6b6258!important;min-width:34px!important;font-variant-numeric:tabular-nums!important;text-align:center!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkProgress{
    -webkit-appearance:none!important;appearance:none!important;flex:1 1 auto!important;min-width:0!important;height:28px!important;margin:0!important;
    background:transparent!important;cursor:pointer!important;touch-action:pan-x!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkProgress::-webkit-slider-runnable-track{
    height:5px!important;border-radius:999px!important;background:linear-gradient(90deg,#1f1b17 var(--p,0%),#ddd3c5 var(--p,0%))!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkProgress::-webkit-slider-thumb{
    -webkit-appearance:none!important;width:16px!important;height:16px!important;border-radius:50%!important;background:#1f1b17!important;border:2px solid #fff!important;margin-top:-5.5px!important;box-shadow:0 1px 4px rgba(0,0,0,.25)!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkProgress::-moz-range-track{height:5px;border-radius:999px;background:#ddd3c5}
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkProgress::-moz-range-progress{height:5px;border-radius:999px;background:#1f1b17}
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkProgress::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#1f1b17;border:2px solid #fff}
}

/* ---------- 3) Aléatoire : bouton lisible, état activé bien visible (PC et mobile) ---------- */
/* Bouton aléatoire : voir le bloc « V88 » en fin de fichier */

/* ---------- 4) Profil : onglet rectangulaire, en-tête centré, « Se déconnecter » toujours visible ---------- */
@media (max-width:700px){
  html body #profileModal.modal:not(.hidden) .modalBox.profileBox{
    display:flex!important;flex-direction:column!important;padding:0!important;overflow:hidden!important;
    max-height:min(88dvh,780px)!important;width:min(440px,100%)!important;
  }
  html body #profileModal .modalBox.profileBox > .close{position:absolute!important;top:14px!important;right:14px!important;z-index:4!important;width:36px!important;height:36px!important;border-radius:50%!important;background:rgba(0,0,0,.06)!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:22px!important;line-height:1!important;}
  html body #profileModal .modalBox.profileBox > *{flex:0 0 auto}
  html body #profileModal .profileHero{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;
    gap:6px!important;padding:30px 60px 0!important;margin:0!important;min-height:0!important;
  }
  html body #profileModal .profileAvatar{width:76px!important;height:76px!important;margin:0 auto 4px!important;font-size:30px!important;display:flex!important;align-items:center!important;justify-content:center!important;}
  html body #profileModal .profileHeroText{display:flex!important;flex-direction:column!important;align-items:center!important;gap:2px!important;text-align:center!important;min-width:0!important;}
  html body #profileModal .profileHeroText h2{margin:0!important;font-size:30px!important;line-height:1.05!important;}
  html body #profileModal .profileHeroText .eyebrow{margin:0 0 2px!important;}
  html body #profileModal .profileIdentity,html body #profileModal .profileBio,html body #profileModal .profileMeta,html body #profileModal .profileEmail{margin:0!important;text-align:center!important;font-size:12.5px!important;}
  html body #profileModal .profileBio:empty,html body #profileModal .profileMeta:empty,html body #profileModal .profileEmail:empty,html body #profileModal .profileIdentity:empty{display:none!important}
  html body #profileModal .profileHeroActions{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:8px!important;margin:8px 0 0!important;}
  html body #profileModal .profileHeroActions button:not(.hidden){min-height:38px!important;padding:0 14px!important;border-radius:999px!important;font-size:13px!important;}
  html body #profileModal .profileStats{margin:14px 22px 0!important;}
  html body #profileModal #profilePublicStatus{margin:8px 22px 0!important;text-align:center!important;}
  html body #profileModal .profileSocialContent{
    flex:1 1 auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;
    overflow-y:auto!important;overscroll-behavior:contain!important;padding:0 22px!important;margin-top:4px!important;
  }
  html body #profileModal .profileSocialContent.hidden{display:none!important}
  html body #profileModal #profileOwnContent .profileTabs{margin:12px 0 14px!important;}
  html body #profileModal .profileSocialContent .profilePane{flex:0 0 auto!important;}
  html body #profileModal .profileSocialContent .profileFooter{
    position:sticky!important;bottom:0!important;margin:auto -22px 0!important;padding:12px 22px calc(14px + env(safe-area-inset-bottom,0px))!important;
    background:#faf8f4!important;border-top:1px solid rgba(31,27,23,.08)!important;display:flex!important;justify-content:center!important;z-index:2!important;
  }
  html body #profileModal #profileLogoutBtn{width:100%!important;min-height:46px!important;border-radius:999px!important;justify-content:center!important;display:flex!important;align-items:center!important;margin:0!important;}
}

/* ---------- 5) Défilement confiné : l'arrière-plan ne bouge pas quand un onglet est ouvert ---------- */
.modalBox,.viewShell,.artworkBox,.artworkInfo,.featuredBox,.addToPlaylistBox,.atpList,
.notificationsList,.connectionsList,.profileSocialContent,.view,#immersiveBoards,#immersiveBoardFeed,
.profileSocialContent,.adminCard,.adminAccountsList{overscroll-behavior:contain!important}

/* ---------- 6) Corrections V86 : icône commentaire visible, statistiques du profil dans le cadre ---------- */
@media (max-width:700px){
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkCommentBtn svg{
    width:18px!important;min-width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px!important;
  }
  html body #profileModal .profileStats{width:auto!important;box-sizing:border-box!important;margin:14px 22px 0!important;}
}

/* ==========================================================================
   V87 — création d'association en 3 menus dépliants, plein écran fluide,
   boutons mobiles réactifs (plus de rectangle bleu), notifications opaques.
   ========================================================================== */

/* ---------- 1) Création d'association : 3 menus dépliants (image · musique · informations) ---------- */
.associationSection{margin:10px 0}
.associationSection summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation;min-height:48px}
.associationSection summary:focus{outline:none}
.associationSection summary:focus-visible{outline:2px solid #1d1d1f;outline-offset:-2px;border-radius:14px}
.associationSection.is-complete .sectionStep{animation:checkPop .35s var(--apple-spring,cubic-bezier(.2,.8,.2,1))}
.associationInfoBody{grid-template-columns:1fr 1fr;align-items:start}
.associationInfoBody .infoField{display:grid;gap:5px;margin:0;min-width:0}
.associationInfoBody .infoFieldLabel{font-size:11px;font-weight:700;letter-spacing:.03em;color:#4a4a4f}
.associationInfoBody .infoField input{width:100%;box-sizing:border-box;min-width:0;margin:0}
.associationInfoBody .infoField:focus-within .infoFieldLabel{color:#1d1d1f}
.associationInfoBody .associationVisibility{grid-column:1/-1;margin-top:4px}
@media(max-width:700px){
  .associationInfoBody{grid-template-columns:1fr!important}
  .associationInfoBody .infoFieldLabel{font-size:13px}
  .associationInfoBody .infoField input{min-height:46px;font-size:16px}
  .associationSection summary small{display:block!important;font-size:11.5px!important;line-height:1.35!important}
}

/* ---------- 2) Mobile : plus de rectangle bleu / gris au toucher, réaction immédiate ---------- */
*{-webkit-tap-highlight-color:transparent}
a,button,summary,label,select,[role="button"],.homeModeTab,.mobileBottomNav button,.close,.discoveryTile,.board{touch-action:manipulation}
@media (max-width:700px){
  button,a,summary,[role="button"],.close{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
  button:focus,a:focus,summary:focus,[role="button"]:focus{outline:none}
  button:focus:not(:focus-visible),a:focus:not(:focus-visible){box-shadow:none}
  input,textarea,select{-webkit-user-select:text;user-select:text}
}

/* ---------- 3) Mobile : fenêtre des notifications opaque ---------- */
@media (max-width:700px){
  html body #notificationsModal .modalBox,
  html body #notificationsModal .notificationsBox{
    background:#fbf9f5!important;opacity:1!important;
    backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
    border:1px solid rgba(25,22,18,.06)!important;
  }
  /* Ouverture / fermeture des fenêtres plus vives */
  html body .modal:not(.hidden) .modalBox{animation-duration:.2s!important}
}

/* ---------- 4) Mobile : plus de rectangle gris foncé derrière le tableau de la fiche ---------- */
@media (max-width:700px){
  html body #artworkModal #artworkImage,
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkImage,
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkImageWrap #artworkImage{
    box-shadow:none!important;background:transparent!important;border-radius:0!important;filter:none!important;
  }
  html body #artworkModal:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkImageWrap{
    background:transparent!important;box-shadow:none!important;
  }
}

/* ---------- 5) Plein écran tactile : calque dédié, fond noir, animations GPU ---------- */
.tmFsLayer{position:fixed;inset:0;z-index:99999;display:none;overflow:hidden;touch-action:none;overscroll-behavior:contain;
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;}
.tmFsLayer.is-on{display:block}
.tmFsBg{position:absolute;inset:0;background:#000;will-change:opacity}
.tmFsImg{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:contain;transform-origin:50% 50%;
  will-change:transform;pointer-events:none;backface-visibility:hidden;-webkit-backface-visibility:hidden;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:none}
.tmFsExit{position:absolute;top:calc(env(safe-area-inset-top,0px) + 12px);right:calc(env(safe-area-inset-right,0px) + 12px);
  width:44px;height:44px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;
  background:rgba(40,40,40,.62);color:#fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;outline:none;cursor:pointer}
.tmFsExit:active{background:rgba(70,70,70,.8)}
.tmFsExit svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body.tm-fs-open{overflow:hidden!important}

/* ==========================================================================
   V88 — Fiche d'association : couleurs du tableau, bouton aléatoire, plein écran PC
   ========================================================================== */

/* ---------- A) Bouton aléatoire (fiche + barre de lecture, PC et mobile) ---------- */
/* Fiche : rond sobre comme les autres commandes ; activé = fond noir, forme blanche. Aucun point en dessous. */
html body #artworkModal #shuffleArtwork{
  position:relative!important;width:42px!important;height:42px!important;min-width:42px!important;
  border:1px solid transparent!important;border-radius:50%!important;padding:0!important;
  background:transparent!important;color:#171717!important;opacity:1!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  transition:background .22s ease,color .22s ease,border-color .22s ease,transform .22s ease!important;
}
html body #artworkModal #shuffleArtwork svg{width:22px!important;height:22px!important;display:block!important;fill:currentColor!important;stroke:none!important}
html body #artworkModal #shuffleArtwork svg *{fill:currentColor!important;stroke:none!important}
html body #artworkModal #shuffleArtwork:hover{background:rgba(0,0,0,.07)!important}
html body #artworkModal #shuffleArtwork.active,
html body #artworkModal #shuffleArtwork.active:hover{
  background:#000!important;color:#fff!important;border-color:rgba(255,255,255,.34)!important;
  box-shadow:0 2px 10px rgba(0,0,0,.28)!important;
}
html body #artworkModal #shuffleArtwork::after,html body #player #shufflePlayer::after{content:none!important;display:none!important}

/* Barre de lecture : activé = fond blanc, forme noire (toujours bien lisible). */
html body #player .playerControls #shufflePlayer{background:transparent!important;color:#fff!important;opacity:.9!important}
html body #player .playerControls #shufflePlayer svg,
html body #player .playerControls #shufflePlayer svg *{fill:currentColor!important;stroke:none!important;color:inherit!important}
html body #player .playerControls #shufflePlayer.active,
html body #player .playerControls #shufflePlayer.active:hover{
  background:#fff!important;color:#000!important;-webkit-text-fill-color:#000!important;border-color:#fff!important;opacity:1!important;
}
html body #player .playerControls #shufflePlayer.active svg,
html body #player .playerControls #shufflePlayer.active svg *{fill:#000!important;stroke:none!important;color:#000!important}

/* ---------- B) PC : l'icône commentaire + chiffre à gauche du « J'aime » disparaît ---------- */
@media (min-width:701px){
  html body #artworkModal #artworkCommentBtn{display:none!important}
}

/* ---------- C) Couleurs de la fiche (PC et mobile) : tout l'onglet suit le tableau ---------- */
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen){
  background:var(--tm-backdrop)!important;
  transition:background .6s ease;
}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkBox{
  background:linear-gradient(155deg,var(--tm-bg1) 0%,var(--tm-bg2) 100%)!important;
  color:var(--tm-ink)!important;border:1px solid var(--tm-line)!important;
  box-shadow:0 40px 120px rgba(0,0,0,.5)!important;
}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkImageWrap{background:rgba(0,0,0,.2)!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkInfo h2,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .musicInfo strong,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .commentPanelHead,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .commentPanelHead strong,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .commentRow strong,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .commentEmpty+*,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkSeek span{color:var(--tm-ink)!important;opacity:1!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkArtist,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .musicInfo small,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkCreator,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .commentRow p,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .commentEmpty,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .commentStatus,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) #commentCount{color:var(--tm-ink-soft)!important;opacity:1!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkInfo .eyebrow{color:var(--tm-accent)!important;opacity:.95!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .musicNote,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .musicInfo>span{color:var(--tm-accent)!important;opacity:1!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .musicInfo,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkControls{border-top-color:var(--tm-line)!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .findImmersiveBtn{color:var(--tm-accent)!important;border-color:var(--tm-line)!important;background:transparent!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .commentPanel{background:rgba(0,0,0,.18)!important;border-color:var(--tm-line)!important;color:var(--tm-ink)!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .commentRow{border-color:var(--tm-line)!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .commentForm{background:var(--tm-chip)!important;border:1px solid var(--tm-line)!important;box-shadow:none!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .commentForm input{color:var(--tm-ink)!important;-webkit-text-fill-color:var(--tm-ink)!important;background:transparent!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .commentForm input::placeholder{color:var(--tm-ink-soft)!important;-webkit-text-fill-color:var(--tm-ink-soft)!important;opacity:1!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .commentForm button{background:var(--tm-ink)!important;color:var(--tm-bg1)!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .commentForm button svg{stroke:var(--tm-bg1)!important}

/* Commandes de lecture */
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkControl{background:transparent!important;color:var(--tm-ink)!important;border-color:transparent!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkControl:hover{background:var(--tm-chip-hover)!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkControl svg,html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkControl svg *{fill:currentColor!important;stroke:none!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) #shuffleArtwork{color:var(--tm-ink)!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) #shuffleArtwork:hover{background:var(--tm-chip-hover)!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) #shuffleArtwork.active,html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) #shuffleArtwork.active:hover{background:#000!important;color:#fff!important;border-color:rgba(255,255,255,.4)!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkMainControl{background:var(--tm-ink)!important;color:var(--tm-bg1)!important;box-shadow:0 8px 24px rgba(0,0,0,.35)!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkMainControl:hover{background:#fff!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkMainControl svg,html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkMainControl svg *{fill:var(--tm-bg1)!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkControls .likeButton,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkCommentBtn{background:var(--tm-chip)!important;color:var(--tm-ink)!important;border:1px solid var(--tm-line)!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkControls .likeButton:hover{background:var(--tm-chip-hover)!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkControls .likeButton.liked{background:#000!important;color:#fff!important;border-color:rgba(255,255,255,.34)!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkCommentBtn svg{stroke:currentColor!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkSeek input{accent-color:var(--tm-accent)!important}

/* Boutons du haut (partager, plein écran, fermer) */
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkTopActions .shareIconButton,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkTopActions .artworkClose{background:var(--tm-chip)!important;color:var(--tm-ink)!important;border:1px solid var(--tm-line)!important;box-shadow:none!important;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkTopActions .shareIconButton:hover,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkTopActions .artworkClose:hover{background:var(--tm-chip-hover)!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkTopActions svg{stroke:currentColor!important}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .artworkBox *{transition-property:background-color,color,border-color,fill,stroke,box-shadow,transform,opacity;transition-duration:.45s,.45s,.45s,.45s,.45s,.3s,.25s,.25s}

/* ---------- D) PC : plein écran = le tableau seul, centré, le plus grand possible, sans rien couper ---------- */
@media (min-width:701px){
  html body #artworkModal.is-fullscreen,
  html body #artworkModal.pseudo-fullscreen{
    position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;
    padding:0!important;margin:0!important;background:#000!important;
    backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
    display:block!important;overflow:hidden!important;
  }
  html body #artworkModal.is-fullscreen .artworkBox,
  html body #artworkModal.pseudo-fullscreen .artworkBox{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
    max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;gap:0!important;
    border:0!important;border-radius:0!important;background:#000!important;box-shadow:none!important;
    display:block!important;grid-template:none!important;overflow:hidden!important;
    animation:none!important;transform:none!important;
  }
  html body #artworkModal.is-fullscreen .artworkInfo,
  html body #artworkModal.pseudo-fullscreen .artworkInfo{display:none!important}
  html body #artworkModal.is-fullscreen .artworkImageWrap,
  html body #artworkModal.pseudo-fullscreen .artworkImageWrap{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
    min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;
    border:0!important;border-radius:0!important;background:#000!important;box-shadow:none!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    overflow:hidden!important;transform:none!important;
  }
  html body #artworkModal.is-fullscreen #artworkImage,
  html body #artworkModal.pseudo-fullscreen #artworkImage{
    width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
    object-fit:contain!important;object-position:center center!important;
    margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;
  }
  /* Seul bouton gardé : quitter le plein écran, qui s'efface quand la souris ne bouge plus */
  html body #artworkModal.is-fullscreen .artworkTopActions,
  html body #artworkModal.pseudo-fullscreen .artworkTopActions{
    position:absolute!important;top:18px!important;right:22px!important;left:auto!important;z-index:6!important;
    display:flex!important;gap:0!important;padding:0!important;background:none!important;margin:0!important;height:auto!important;
    opacity:0;transition:opacity .35s ease;
  }
  html body #artworkModal.is-fullscreen.tm-fs-active .artworkTopActions,
  html body #artworkModal.pseudo-fullscreen.tm-fs-active .artworkTopActions,
  html body #artworkModal.is-fullscreen .artworkTopActions:hover,
  html body #artworkModal.pseudo-fullscreen .artworkTopActions:hover{opacity:1}
  html body #artworkModal.is-fullscreen .artworkTopActions #artworkShare,
  html body #artworkModal.is-fullscreen .artworkTopActions .artworkClose,
  html body #artworkModal.pseudo-fullscreen .artworkTopActions #artworkShare,
  html body #artworkModal.pseudo-fullscreen .artworkTopActions .artworkClose{display:none!important}
  html body #artworkModal.is-fullscreen #artworkFullscreen,
  html body #artworkModal.pseudo-fullscreen #artworkFullscreen{
    width:44px!important;height:44px!important;background:rgba(30,30,30,.62)!important;color:#fff!important;
    border:1px solid rgba(255,255,255,.18)!important;box-shadow:none!important;
    -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  }
  html body #artworkModal.is-fullscreen #artworkFullscreen svg,
  html body #artworkModal.pseudo-fullscreen #artworkFullscreen svg{stroke:#fff!important;color:#fff!important}
}
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .musicNote,
html body #artworkModal.tm-themed:not(.is-fullscreen):not(.pseudo-fullscreen) .musicInfo>span{background:var(--tm-chip)!important;box-shadow:none!important}

/* ==========================================================================
   V89 — fiche mobile colorée lisible, fenêtre commentaire centrée, partage,
   notifications, profil compact, plein écran PC plus net
   ========================================================================== */

/* ---------- A) Mobile : fiche colorée lisible, mêmes teintes que sur PC ---------- */
@media (max-width:700px){
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkTitle,
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkMusic{color:var(--tm-ink)!important;-webkit-text-fill-color:var(--tm-ink)!important;opacity:1!important}
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkArtist,
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkComposer,
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkCreator{color:var(--tm-ink-soft)!important;-webkit-text-fill-color:var(--tm-ink-soft)!important;opacity:1!important}
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .musicInfo{
    background:var(--tm-chip)!important;border:1px solid var(--tm-line)!important;box-shadow:none!important;color:var(--tm-ink)!important;
  }
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .musicNote{
    background:var(--tm-chip)!important;background-image:none!important;color:var(--tm-accent)!important;box-shadow:none!important;border:1px solid var(--tm-line)!important;
  }
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .musicNote *{color:var(--tm-accent)!important;fill:var(--tm-accent)!important}
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkImageWrap{background:transparent!important}
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkSeek span{color:var(--tm-ink-soft)!important}
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkProgress::-webkit-slider-runnable-track{
    background:linear-gradient(90deg,var(--tm-ink) var(--p,0%),var(--tm-line) var(--p,0%))!important;
  }
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkProgress::-webkit-slider-thumb{background:var(--tm-ink)!important;border-color:var(--tm-bg1)!important}
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkProgress::-moz-range-track{background:var(--tm-line)}
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkProgress::-moz-range-progress{background:var(--tm-ink)}
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) #artworkProgress::-moz-range-thumb{background:var(--tm-ink);border-color:var(--tm-bg1)}
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkCommentBtn.is-on{background:var(--tm-ink)!important;color:var(--tm-bg1)!important}
  html body #artworkModal.tm-themed.tm-themed:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkTopActions #artworkFullscreen{background:var(--tm-chip)!important;color:var(--tm-ink)!important;border:1px solid var(--tm-line)!important;box-shadow:none!important}
}

/* ---------- B) Mobile : fenêtre d'écriture des commentaires au milieu de l'écran ---------- */
.commentPanelClose{display:none}
@keyframes tmCommentIn{from{opacity:0;transform:translateY(-46%) scale(.97)}to{opacity:1;transform:translateY(-50%)}}
@keyframes tmCommentBg{from{opacity:0}to{opacity:1}}
@media (max-width:700px){
  html body #artworkModal .artworkBox > .commentBackdrop{
    position:absolute;inset:0;z-index:30;background:rgba(12,10,8,.46);
    -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:tmCommentBg .18s ease both;
  }
  html body #artworkModal.comments-open:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkBox > .commentPanel{
    position:absolute!important;left:14px!important;right:14px!important;width:auto!important;top:50%;
    transform:translateY(-50%);z-index:31!important;margin:0!important;
    display:flex!important;flex-direction:column!important;gap:10px!important;
    max-height:72%;overflow:hidden!important;box-sizing:border-box!important;
    padding:16px 16px 14px!important;border-radius:22px!important;
    background:#fbf9f5!important;border:1px solid rgba(25,22,18,.06)!important;
    box-shadow:0 24px 60px rgba(0,0,0,.35)!important;
    animation:tmCommentIn .22s cubic-bezier(.2,.8,.2,1) both;
  }
  html body #artworkModal.comments-open:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkBox > .commentPanel .commentPanelHead{
    display:flex!important;align-items:center!important;gap:8px!important;justify-content:flex-start!important;font-size:15px!important;flex:0 0 auto!important;
  }
  html body #artworkModal.comments-open:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkBox > .commentPanel .commentPanelClose{
    display:grid;place-items:center;margin-left:auto;width:34px;height:34px;min-width:34px;padding:0;border:0;border-radius:50%;
    background:rgba(0,0,0,.06);color:inherit;font-size:22px;line-height:1;cursor:pointer;
  }
  html body #artworkModal.comments-open:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkBox > .commentPanel .commentList{
    flex:1 1 auto!important;min-height:40px!important;max-height:none!important;overflow-y:auto!important;
  }
  html body #artworkModal.comments-open:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkBox > .commentPanel .commentForm{
    display:flex!important;flex:0 0 auto!important;margin:0!important;
  }
  html body #artworkModal.comments-open:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkBox > .commentPanel .commentForm input{font-size:16px!important}
  /* Fiche colorée : la fenêtre prend les couleurs du tableau, opaque */
  html body #artworkModal.tm-themed.tm-themed.comments-open:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkBox > .commentPanel{
    background:linear-gradient(155deg,var(--tm-bg1) 0%,var(--tm-bg2) 100%)!important;border-color:var(--tm-line)!important;color:var(--tm-ink)!important;
  }
  html body #artworkModal.tm-themed.tm-themed.comments-open:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkBox > .commentPanel .commentPanelHead span{background:var(--tm-chip)!important;color:var(--tm-ink-soft)!important}
  html body #artworkModal.tm-themed.tm-themed.comments-open:not(.hidden):not(.is-fullscreen):not(.pseudo-fullscreen) .artworkBox > .commentPanel .commentPanelClose{background:var(--tm-chip);color:var(--tm-ink)}
}

/* ---------- C) Partage : fenêtre de secours (copier le lien, WhatsApp, SMS, e-mail) ---------- */
.tmShareSheet{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:18px;box-sizing:border-box;
  background:rgba(20,16,12,.45);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.tmShareSheet.is-on{display:flex;animation:tmNotifBg .15s ease both}
.tmShareCard{position:relative;width:min(380px,100%);box-sizing:border-box;background:#fbf9f5;color:#1f1b17;border-radius:24px;
  padding:22px 18px 18px;box-shadow:0 30px 80px rgba(0,0,0,.3);animation:tmNotifIn .2s cubic-bezier(.2,.8,.2,1) both}
.tmShareCard .eyebrow{margin:0 0 4px}
.tmShareCard h3{margin:0 44px 4px 0;font-size:22px;line-height:1.15}
.tmShareUrl{margin:0 0 16px;font-size:12px;color:#7a7066;word-break:break-all}
.tmShareGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tmShareGrid>*{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:72px;padding:10px 8px;box-sizing:border-box;
  border-radius:16px;background:#fff;border:1px solid rgba(25,22,18,.08);color:#1f1b17;font-size:13px;font-weight:600;text-decoration:none;cursor:pointer;font-family:inherit}
.tmShareGrid>* span{font-size:20px;line-height:1}
.tmShareGrid>*:active{transform:scale(.97)}
.tmShareClose{position:absolute;top:12px;right:12px;width:36px;height:36px;border-radius:50%;border:0;background:rgba(0,0,0,.06);
  color:#1f1b17;font-size:22px;line-height:1;display:grid;place-items:center;cursor:pointer}

/* ---------- D) Mobile : notifications en rectangle arrondi, au-dessus des 3 boutons, toujours fermable ---------- */
@media (max-width:700px){
  html body #notificationsModal.modal:not(.hidden){
    align-items:center!important;justify-content:center!important;box-sizing:border-box!important;
    padding:calc(14px + env(safe-area-inset-top,0px)) 16px calc(76px + env(safe-area-inset-bottom,0px))!important;
  }
  html body #notificationsModal.modal:not(.hidden) .modalBox.notificationsBox{
    position:relative!important;inset:auto!important;display:flex!important;flex-direction:column!important;
    width:min(440px,100%)!important;max-width:440px!important;height:auto!important;max-height:100%!important;
    margin:0!important;padding:20px 16px 14px!important;overflow:hidden!important;box-sizing:border-box!important;
    border-radius:24px!important;
  }
  /* Barre de lecture visible : la fenêtre s’arrête aussi au-dessus d’elle */
  html body:has(#player:not(.hidden)) #notificationsModal.modal:not(.hidden){padding-bottom:calc(136px + env(safe-area-inset-bottom,0px))!important}
  html body #notificationsModal .notificationsBox > .close{
    position:absolute!important;top:14px!important;right:14px!important;z-index:5!important;
    width:36px!important;height:36px!important;border-radius:50%!important;display:grid!important;place-items:center!important;
    background:rgba(0,0,0,.06)!important;font-size:22px!important;line-height:1!important;
  }
  html body #notificationsModal .notificationsHeader{flex:0 0 auto!important;padding-right:46px!important;position:relative!important;z-index:1!important}
  html body #notificationsModal .notificationsHeader h2{font-size:26px!important;margin:0 0 2px!important}
  html body #notificationsModal .notificationsHeader p:not(.eyebrow){font-size:12px!important;margin:0 0 10px!important}
  html body #notificationsModal #markNotificationsRead{min-height:38px!important;margin:0 0 6px!important}
  html body #notificationsModal .notificationsList{
    flex:1 1 auto!important;min-height:0!important;max-height:none!important;height:auto!important;
    overflow-y:auto!important;-webkit-overflow-scrolling:touch;margin:0 -4px!important;padding:0 4px!important;
  }
}

/* ---------- E) Mobile : profil compact — les playlists, associations et j'aime ont la place ---------- */
@media (max-width:700px){
  html body #profileModal.modal .profileHero{
    display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;grid-template-areas:"av txt" "act act"!important;
    column-gap:12px!important;row-gap:8px!important;align-items:center!important;justify-items:stretch!important;text-align:left!important;
    padding:16px 58px 0 18px!important;
  }
  html body #profileModal.modal .profileAvatar{grid-area:av!important;width:54px!important;height:54px!important;margin:0!important;font-size:22px!important}
  html body #profileModal.modal .profileHeroText{grid-area:txt!important;align-items:flex-start!important;text-align:left!important;gap:1px!important}
  html body #profileModal.modal .profileHeroText .eyebrow{display:none!important}
  html body #profileModal.modal .profileHeroText h2{font-size:22px!important;line-height:1.1!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  html body #profileModal.modal .profileIdentity,
  html body #profileModal.modal .profileMeta,
  html body #profileModal.modal .profileEmail{text-align:left!important;font-size:12px!important;line-height:1.3!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  html body #profileModal.modal .profileBio{text-align:left!important;font-size:12px!important;line-height:1.35!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  html body #profileModal.modal .profileHeroActions{grid-area:act!important;justify-content:flex-start!important;margin:0!important;gap:6px!important}
  html body #profileModal.modal .profileHeroActions:not(:has(button:not(.hidden))){display:none!important}
  html body #profileModal.modal .profileHeroActions button:not(.hidden){width:auto!important;min-width:0!important;min-height:32px!important;padding:0 13px!important;font-size:12.5px!important}
  html body #profileModal.modal .profileStats{
    display:flex!important;width:auto!important;margin:10px 18px 0!important;border-radius:12px!important;
  }
  html body #profileModal.modal .profileStats>div{
    flex:1 1 0!important;min-width:0!important;min-height:0!important;height:auto!important;padding:7px 10px!important;display:flex!important;flex-direction:row!important;
    align-items:baseline!important;justify-content:center!important;gap:5px!important;
  }
  html body #profileModal.modal .profileStats strong{font-size:15px!important;line-height:1.2!important}
  html body #profileModal.modal .profileStats span{font-size:11.5px!important}
  html body #profileModal.modal #profilePublicStatus:empty{display:none!important}
  html body #profileModal.modal .profileSocialContent{padding:0 18px!important}
  html body #profileModal.modal .profileSocialContent .profileTabs{margin:10px 0 8px!important;flex:0 0 auto!important;min-height:max-content!important}
  html body #profileModal.modal .profileStats{padding:0!important;min-height:0!important;height:auto!important}
  html body #profileModal.modal .profilePaneTitle{margin:0 0 8px!important;align-items:center!important}
  html body #profileModal.modal .profilePaneTitle h3{font-size:17px!important;margin:0!important}
  html body #profileModal.modal .profilePaneTitle p{display:none!important}
  html body #profileModal.modal .profileSocialContent .profileFooter{margin:auto -18px 0!important;padding:10px 18px calc(12px + env(safe-area-inset-bottom,0px))!important}
  html body #profileModal.modal #profileLogoutBtn{min-height:42px!important}
}

/* ---------- F) PC plein écran : version nette du tableau posée sur l'image ---------- */
.tmFsSharp{display:none}
@media (min-width:701px){
  html body #artworkModal.is-fullscreen .tmFsSharp,
  html body #artworkModal.pseudo-fullscreen .tmFsSharp{
    display:block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1;
    pointer-events:none;opacity:0;transition:opacity .25s ease;max-width:none;max-height:none;
  }
  html body #artworkModal.is-fullscreen .tmFsSharp.is-on,
  html body #artworkModal.pseudo-fullscreen .tmFsSharp.is-on{opacity:1}
}

/* ---------- V90 : boutons du profil plus petits, décollés de la bordure ---------- */
@media (min-width:701px){
  html body #profileModal .profileHero{padding-right:22px!important;padding-left:12px!important}
  html body #profileModal .profileHeroActions{gap:6px!important;margin-right:6px!important}
  html body #profileModal .profileHeroActions button:not(.hidden){padding:7px 12px!important;font-size:10px!important;line-height:1!important}
  html body #profileModal .profileHero .profileFollow{min-width:0!important}
}
@media (max-width:700px){
  html body #profileModal.modal .profileHeroActions{padding:0 6px 0 2px!important;gap:5px!important}
  html body #profileModal.modal .profileHeroActions button:not(.hidden){min-height:26px!important;padding:0 10px!important;font-size:11px!important}
}

/* ---------- V90 : notifications cliquables ---------- */
.notificationRow.clickable{cursor:pointer;transition:background .15s ease}
.notificationRow.clickable:hover{background:#f1eee8}
.notificationRow.clickable:active{background:#e9e4da}
.notificationRow.clickable:focus-visible{outline:2px solid #171717;outline-offset:-2px}

/* ---------- V90 : « Prêt à commencer ? » sur une seule ligne (PC) ---------- */
.viSlideFinal h2 em{white-space:nowrap}
@media (min-width:701px){
  .viSlideFinal h2{white-space:nowrap;font-size:clamp(30px,3.2vw,48px)}
}


/* V91 — Glisser vers le bas pour quitter la fiche (mobile) : pas d'animation CSS qui écrase le suivi du doigt. */
#artworkModal.tm-swipe-used,#artworkModal.tm-swipe-used .artworkBox{animation:none!important}
#artworkModal.tm-swiped.is-closing,#artworkModal.tm-swiped.is-closing .artworkBox{animation:none!important}
#artworkModal.tm-dragging .artworkBox{transition:none!important}

/* V92 — bouton « Voir plus » de la recherche d'images */
.wikiartMore{display:block;width:100%;margin:8px 0 4px;padding:10px 12px;font-size:12px;border-radius:12px;text-align:center}
