/* MEELODI 16/11/2026 (Akis) — barre de lecture « V2 La Calebasse ».
   Sur ordinateur (souris, écran ≥ 1024 px) : une île compacte au centre — pochette
   et anneau de progression (la calebasse), titre, artiste, bouton lecture. Au
   survol (ou au clavier, ou quand un menu du lecteur est ouvert) elle s'ouvre et
   montre toutes les commandes. Téléphone et tablette : inchangé.
   Maquette : https://claude.ai/artifact/4MP46YGPdt3Pfuk99bghts (V2). */
@media (min-width: 1024px) and (hover: hover) {
  html body .apl-dock .apl {
    left: 50% !important;
    right: auto !important;
    translate: -50% 0; /* propriété séparée : la plateforme pilote déjà « transform » (masquage au défilement) */
    width: min(980px, calc(100vw - 48px)) !important;
    border-radius: 40px !important;
    background: rgba(16, 15, 20, 0.9) !important;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 176, 32, 0.22) !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(255, 176, 32, 0.04) !important;
    transition: width 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, box-shadow 0.3s ease !important;
  }
  /* ── L'île fermée ─────────────────────────────────────────────── */
  html body .apl-dock .apl:not(:hover):not(:focus-within):not(:has(.apl-menu)) {
    width: 460px !important;
  }
  html body .apl-dock .apl:not(:hover):not(:focus-within):not(:has(.apl-menu)) .apl-in {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding-right: 4px;
  }
  html body .apl-dock .apl:not(:hover):not(:focus-within):not(:has(.apl-menu)) .apl-now {
    flex: 1 1 auto;
    min-width: 0;
  }
  html body .apl-dock .apl:not(:hover):not(:focus-within):not(:has(.apl-menu)) :is(.apl-griot, .apl-like, .apl-seek, .apl-end, .apl-kt, .apl-transport > :not(.apl-play)) {
    display: none !important;
  }
  html body .apl-dock .apl:not(:hover):not(:focus-within):not(:has(.apl-menu)) .apl-transport {
    flex: none;
    gap: 0;
  }
  /* ── L'île ouverte : les commandes apparaissent en fondu ──────── */
  html body .apl-dock .apl:is(:hover, :focus-within) :is(.apl-griot, .apl-like, .apl-end, .apl-transport > :not(.apl-play)) {
    animation: mld-isle-in 0.32s ease both;
  }
  @keyframes mld-isle-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
  }
  /* ── Égaliseur doré devant le titre pendant la lecture ────────── */
  html body .apl-dock .apl:has(.apl-play[data-state='playing']) .apl-title::before {
    content: '';
    display: inline-block;
    flex: none;
    width: 13px;
    height: 12px;
    margin-right: 8px;
    vertical-align: -1px;
    background:
      linear-gradient(#ffb020, #ffb020) 0 100% / 3px 40% no-repeat,
      linear-gradient(#ffb020, #ffb020) 5px 100% / 3px 90% no-repeat,
      linear-gradient(#ffb020, #ffb020) 10px 100% / 3px 60% no-repeat;
    animation: mld-isle-eq 0.9s ease-in-out infinite;
  }
  @keyframes mld-isle-eq {
    0%, 100% { background-size: 3px 40%, 3px 90%, 3px 60%; }
    33% { background-size: 3px 95%, 3px 35%, 3px 80%; }
    66% { background-size: 3px 60%, 3px 70%, 3px 30%; }
  }
  html body .apl-dock .apl .apl-title { display: flex; align-items: center; }
  html body .apl-dock .apl .apl-play { box-shadow: 0 8px 24px rgba(255, 176, 32, 0.35); }
}
@media (min-width: 1024px) and (hover: hover) and (prefers-reduced-motion: reduce) {
  html body .apl-dock .apl { transition: none; }
  html body .apl-dock .apl .apl-title::before { animation: none !important; }
  html body .apl-dock .apl :is(.apl-griot, .apl-like, .apl-end, .apl-transport > *) { animation: none !important; }
}
/* ═══ MEELODI 16/11 (Akis) : menu « Plus d'options » de la barre de lecture ═══
   En-tête du titre, liens Artiste / Album en pilules, réglages rapides en tuiles,
   vitesse en une ligne, minuteur en 2 lignes, actions en bas. Tient dans l'écran
   (défilement interne) et ne passe plus derrière la barre. */
html body .apl .apl-menu {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  width: 340px !important;
  max-width: calc(100vw - 24px);
  max-height: min(640px, calc(100vh - 130px)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: 10px !important;
  border-radius: 20px !important;
  background: rgba(18, 17, 22, 0.97) !important;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6) !important;
  scrollbar-width: thin;
}
html body .apl .apl-menu .apl-mhead { order: -2; display: flex; align-items: center; gap: 12px; padding: 4px 4px 10px; min-width: 0; }
html body .apl .apl-menu .apl-mhead-art { width: 46px; height: 46px; flex: none; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #8d867a; }
html body .apl .apl-menu .apl-mhead-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
html body .apl .apl-menu .apl-mhead-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html body .apl .apl-menu .apl-mhead-txt b { font-weight: 600; font-size: 14.5px; color: #f4efe6; }
html body .apl .apl-menu .apl-mhead-txt small { font-size: 12.5px; color: #a39c90; }
html body .apl .apl-menu .mld-menu-links { order: -1; display: flex !important; gap: 6px; border: 0 !important; margin: 0 0 8px !important; padding: 0 !important; }
html body .apl .apl-menu .mld-menu-links .apl-menu-item { flex: 1 1 0; justify-content: center; height: 34px !important; min-height: 0 !important; border-radius: 999px !important; background: rgba(255,255,255,.06) !important; font-weight: 600; font-size: 12.5px; }
html body .apl .apl-menu .mld-menu-links .apl-menu-item:hover { background: rgba(255,255,255,.12) !important; }
html body .apl .apl-menu .apl-mquick { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; margin: 2px 0 6px; }
html body .apl .apl-menu .apl-mtile { height: 62px; border-radius: 14px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.035); color: #c9c2b6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: 600 11px/1.1 inherit; padding: 0 4px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
html body .apl .apl-menu .apl-mtile:hover { background: rgba(255,255,255,.07); color: #fff; }
html body .apl .apl-menu .apl-mtile[aria-checked='true'] { background: rgba(255,176,32,.14); border-color: rgba(255,176,32,.45); color: #ffcf73; }
html body .apl .apl-menu .apl-mtile-lb { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
html body .apl .apl-menu .apl-menu-lab { display: block; margin: 8px 4px 6px !important; font-size: 10.5px !important; letter-spacing: .12em; text-transform: uppercase; color: #8d867a !important; }
html body .apl .apl-menu .apl-mblock .apl-chips { display: grid !important; gap: 4px !important; }
html body .apl .apl-menu .apl-mspeed .apl-chips { grid-template-columns: repeat(7, minmax(0, 1fr)); }
html body .apl .apl-menu .apl-msleep .apl-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body .apl .apl-menu .apl-mblock .pub-chip { height: 30px !important; min-height: 0 !important; padding: 0 4px !important; justify-content: center; border-radius: 9px !important; font-size: 12px !important; white-space: nowrap; }
html body .apl .apl-menu .apl-mblock .pub-chip[aria-checked='true'] { background: #ffb020 !important; border-color: #ffb020 !important; color: #14100a !important; }
html body .apl .apl-menu .apl-menu-rule { margin: 10px 2px 6px !important; }
html body .apl .apl-menu > .apl-menu-item { height: 40px; min-height: 0; border-radius: 10px; padding: 0 10px; gap: 12px; }
html body .apl .apl-menu > .apl-menu-item:hover { background: rgba(255,255,255,.06); }
html body .apl .apl-menu .apl-menu-danger { color: #ff8a7a !important; }
html body .apl .apl-menu .apl-menu-danger:hover { background: rgba(255, 106, 90, .1) !important; }
/* 16/11 : libellés entiers dans les tuiles, menu posé au-dessus de l'île */
html body .apl .apl-menu .apl-mtile { font-size: 10.5px !important; letter-spacing: -0.01em; padding: 0 1px !important; }
html body .apl .apl-menu .apl-mtile-lb { text-overflow: clip; }
html body .apl .apl-pop .apl-menu { translate: 0 -24px; }
/* ═══ MEELODI 16/11 (Akis) : menu « … » du GRAND lecteur, même esprit que la barre ═══ */
html body .fpm-menu.fpm-menu-v2 {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  width: 340px !important;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 120px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: 10px !important;
  border-radius: 20px !important;
  background: rgba(18, 17, 22, 0.97) !important;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6) !important;
  scrollbar-width: thin;
}
html body .fpm-menu-v2 .fpm-mhead { display: flex; align-items: center; gap: 12px; padding: 4px 4px 10px; min-width: 0; }
html body .fpm-menu-v2 .fpm-mhead-art { width: 46px; height: 46px; flex: none; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #8d867a; }
html body .fpm-menu-v2 .fpm-mhead-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
html body .fpm-menu-v2 .fpm-mhead-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
html body .fpm-menu-v2 .fpm-mhead-txt b { font-weight: 600; font-size: 14.5px; color: #f4efe6; }
html body .fpm-menu-v2 .fpm-mhead-txt small { font-size: 12.5px; color: #a39c90; }
html body .fpm-menu-v2 .fpm-mquick { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; margin: 2px 0 6px; }
html body .fpm-menu-v2 .fpm-mtile { height: 62px; border-radius: 14px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.035); color: #c9c2b6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: 600 10.5px/1.1 inherit; letter-spacing: -0.01em; padding: 0 2px; cursor: pointer; text-decoration: none; text-align: center; transition: background .15s, border-color .15s, color .15s; }
html body .fpm-menu-v2 .fpm-mtile:hover { background: rgba(255,255,255,.07); color: #fff; }
html body .fpm-menu-v2 .fpm-mtile[aria-checked='true'] { background: rgba(255,176,32,.14); border-color: rgba(255,176,32,.45); color: #ffcf73; }
html body .fpm-menu-v2 .fpm-menu-lab { display: block; margin: 8px 4px 6px !important; font-size: 10.5px !important; letter-spacing: .12em; text-transform: uppercase; color: #8d867a !important; }
html body .fpm-menu-v2 .fpm-mspeed .fpm-chips, html body .fpm-menu-v2 .fpm-msleep .fpm-chips { display: grid !important; gap: 4px !important; }
html body .fpm-menu-v2 .fpm-mspeed .fpm-chips { grid-template-columns: repeat(7, minmax(0, 1fr)); }
html body .fpm-menu-v2 .fpm-msleep .fpm-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body .fpm-menu-v2 .fpm-chip { height: 30px !important; min-height: 0 !important; padding: 0 4px !important; display: flex; align-items: center; justify-content: center; border-radius: 9px !important; font-size: 12px !important; white-space: nowrap; }
html body .fpm-menu-v2 .fpm-chip[aria-checked='true'] { background: #ffb020 !important; border-color: #ffb020 !important; color: #14100a !important; }
html body .fpm-menu-v2 .fpm-menu-actions { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.07); }
html body .fpm-menu-v2 .fpm-menu-item { height: 40px; min-height: 0; border-radius: 10px; padding: 0 10px; gap: 12px; }
html body .fpm-menu-v2 .fpm-menu-danger { color: #ff8a7a !important; margin-top: 4px; }
html body .fpm-menu-v2 .fpm-menu-danger:hover { background: rgba(255, 106, 90, .1) !important; }
html body .fpm-menu-v2 .fpm-mquick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body .fpm-menu-v2 .fpm-mtile { flex-direction: row; height: 44px; gap: 8px; font-size: 12px; white-space: nowrap; }
html body .fpm-menu-v2 .fpm-mtile svg { flex: none; }
html body .apl .apl-menu .apl-mquick { grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); }
/* ═══ MEELODI 17/11 (Akis) : la barre de lecture n'apparaît que lorsqu'un titre est
   chargé (en lecture ou en pause). Sans titre (« Rien en lecture », proposition
   « Reprendre ») elle disparaît, sur ordinateur comme sur téléphone. ═══ */
html body .apl-dock[data-active='false'] { display: none !important; }
/* fondu à l'apparition — seulement l'opacité : « transform » et « translate » servent déjà ailleurs */
html body .apl-dock[data-active='true'] .apl { animation: mld-dock-in 0.4s ease; }
@keyframes mld-dock-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html body .apl-dock[data-active='true'] .apl { animation: none; } }
/* ── 17/11 grand lecteur : onde lisible, repères Griot retirés, extrait, « Ensuite » ── */
.fpm-wave-base rect{fill:rgba(255,255,255,.2)}
.fpm-griot-marks{display:none}
.fpm-clip{grid-column:1/-1;display:flex;align-items:center;gap:10px;margin:8px 0 0;font-size:13px;color:rgba(255,255,255,.7)}
.fpm-clip-tag{font:600 11px/1 var(--font-mono,ui-monospace,monospace);letter-spacing:.06em;text-transform:uppercase;padding:5px 8px;border-radius:999px;background:rgba(245,166,35,.14);color:#f5a623}
.fpm-clip-go{color:#fff;text-decoration:underline;text-underline-offset:3px}
.fpm-clip-go:hover{color:#f5a623}
.fpm-next{flex:1;max-width:860px;margin:0 18px 0 6px;display:flex;align-items:center;gap:14px;min-width:0}
.fpm-next-head{display:flex;flex-direction:column;gap:2px;flex:none}
.fpm-next-kicker{font:600 10.5px/1 var(--font-mono,ui-monospace,monospace);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.55)}
.fpm-next-all{background:none;border:0;color:rgba(255,255,255,.65);font-size:12px;cursor:pointer;padding:0;text-align:left}
.fpm-next-all:hover{color:#f5a623}
.fpm-next-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;flex:1;min-width:0}
.fpm-next-list li{min-width:0}
.fpm-next-row{width:100%;display:flex;align-items:center;gap:9px;padding:5px 8px 5px 5px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(255,255,255,.03);color:inherit;text-align:left;cursor:pointer}
.fpm-next-row:hover{background:rgba(255,255,255,.08);border-color:rgba(245,166,35,.35)}
.fpm-next-row:disabled{opacity:.45;cursor:default}
.fpm-next-art{width:34px;height:34px;border-radius:6px;flex:none;overflow:hidden}
.fpm-next-art img{width:100%;height:100%;object-fit:cover}
.fpm-next-body{flex:1;min-width:0;display:flex;flex-direction:column}
.fpm-next-title{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fpm-next-sub{font-size:11.5px;color:rgba(255,255,255,.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fpm-next-time{display:none}
.fpm-dock .fpm-next-row{padding:3px 8px 3px 3px}
.fpm-dock .fpm-next-art{width:30px;height:30px}
@media (max-width:1100px){.fpm-next{display:none}}

/* MEELODI 17/11 (Akis) — barre ouverte : le titre et l'artiste gardent leur place (avant : « Mé… »
   écrasé par la puce Griot). La puce cède la place et se coupe avec « … » (crédits complets au survol). */
html body .apl .apl-now .apl-meta { flex: 1 0 auto !important; min-width: 0; max-width: 260px; }
html body .apl .apl-now .apl-griot { flex: 0 1 auto !important; min-width: 0 !important; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* MEELODI 17/11 (Akis) — la puce « Griot · Composé par… » est retirée de la barre de lecture. */
html body .apl .apl-griot { display: none !important; }