/* ═══════════════════════════════════════════════════════════════════════════
   SÉANCE DE LA WATCH PARTY (lot 5, 20/11/2026) — barre du bas, menu du bureau,
   feuille « Plus », bandeau des pages vidéo.

   Fabien, 20/11 : « ne mettre Watch Party que lorsqu'il y a un événement » ;
   au bureau « ne le mettre en avant que lorsqu'il est en cours, en indiquant
   bien EN COURS (pas LIVE : concurrence avec les live shows) ».

   Les pages sont en cache : le HTML porte LES DEUX états, et tout se décide
   ici, sous la classe « am-wp-on » que le navigateur pose sur <html> pendant
   la séance (script de l'en-tête + /static/js/am-wp-seance.js).
   SANS cette classe (hors séance, ou JavaScript absent) : la barre d'avant la
   phase 4 (Modèles), une entrée de menu ordinaire, aucun bandeau.

   Chargée en dernier par include_header_general.tpl. Ne pas retirer le <link>
   seul : les deux onglets s'afficheraient. Retour arrière = gabarits d'avant.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 0. La pastille « EN COURS » (or du site : le rouge est la couleur des cams) ── */
.am-wp-pill{
  display:inline-flex;align-items:center;gap:4px;flex:none;box-sizing:border-box;
  padding:3px 7px 3px 6px;border-radius:999px;
  background:#D4A853;color:#000;
  font-size:10px;font-weight:800;line-height:1;letter-spacing:.3px;text-transform:uppercase;white-space:nowrap;
}
.am-wp-pill::before{
  content:"";flex:none;width:5px;height:5px;border-radius:50%;background:currentColor;
  animation:am-wp-pulse 1.8s ease-in-out infinite;
}
@keyframes am-wp-pulse{0%,100%{opacity:1}50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.am-wp-pill::before{animation:none}}

/* ── 1. Téléphone et tablette : barre du bas et feuille « Plus » ─────────────── */
@media (max-width:1020px){
  /* un seul des deux onglets : Modèles hors séance, Watch Party pendant */
  .tabbar .tabbar-tab-wp{display:none}
  html.am-wp-on .tabbar .tabbar-tab-wp{display:flex}
  html.am-wp-on .tabbar .tabbar-tab-models{display:none}

  /* la pastille tient AU-DESSUS de l'icône, dans la marge haute de la barre : elle ne prend aucune largeur
     (cinq onglets de 59 px à 320 px) et le libellé « Watch Party » garde sa ligne */
  .tabbar-tab-wp .am-wp-pill{
    position:absolute;top:-4px;left:50%;transform:translateX(-50%);z-index:1;
    gap:3px;padding:2px 5px 2px 4px;font-size:8px;letter-spacing:.2px;
    box-shadow:0 0 0 2px rgba(18,18,16,.92);
  }
  html.light .tabbar-tab-wp .am-wp-pill{box-shadow:0 0 0 2px rgba(255,255,255,.95)}
  .tabbar-tab-wp .am-wp-pill::before{width:4px;height:4px}
  .tabbar-tab-wp .tabbar-icon{margin-top:7px;width:20px;height:20px}
  .tabbar-tab-wp .tabbar-dot{display:none !important}

  /* barre repliée en pastille ronde (tabbar-collapse) : l'onglet de la rubrique courante reste l'icône du rond,
     même si la séance vient de le sortir de la barre ; la pastille « EN COURS » n'y a pas sa place */
  html.am-wp-on .tabbar.tb-collapsed .tabbar-tab-models.tb-fab-icon{display:flex}
  .tabbar.tb-collapsed .tabbar-tab-wp .am-wp-pill{display:none}
  .tabbar.tb-collapsed .tabbar-tab-wp .tabbar-icon{margin-top:0;width:22px;height:22px}

  /* feuille « Plus » : celui des deux qui est dans la barre n'y est pas répété */
  html:not(.am-wp-on) .header-nav .nav-link.am-nav-models{display:none !important}
  html.am-wp-on .header-nav .nav-link.am-nav-wp{display:none !important}
}

/* ── 2. Bureau : l'entrée du menu ─────────────────────────────────────────────── */
@media (min-width:1021px){
  .mm-wp .am-wp-pill{display:none}
  html.am-wp-on .mm-wp .am-wp-pill{display:inline-flex;font-size:9px;padding:3px 6px 3px 5px}
  html.am-wp-on .mm-wp,
  html.am-wp-on.light .mm-wp{color:var(--mm-gold-text,#D4A853);background:var(--mm-gold-faint,rgba(212,168,83,.08));box-shadow:inset 0 0 0 1px var(--mm-gold-soft,rgba(212,168,83,.12))}
  html.am-wp-on .mm-wp:hover{background:var(--mm-gold-soft,rgba(212,168,83,.12))}
}
/* Le menu a neuf entrées et il est plein sur les écrans courants (en russe il ne reste que 23 px à 1351 px, 0 à 1245 px) :
   jusqu'à 1439 px la pastille se pose en BADGE sur le coin de l'entrée, hors du flux — l'entrée garde exactement sa
   largeur, rien ne bouge dans le menu quand la séance commence, dans aucune langue. À partir de 1440 px elle est en ligne. */
@media (min-width:1021px) and (max-width:1439px){
  html.am-wp-on .mm-wp .am-wp-pill{
    position:absolute;top:-7px;right:-4px;z-index:1;
    gap:3px;padding:2px 5px 2px 4px;font-size:8px;letter-spacing:.2px;
    box-shadow:0 0 0 2px #0d0d0d;
  }
  html.am-wp-on.light .mm-wp .am-wp-pill{box-shadow:0 0 0 2px #fff}
  html.am-wp-on .mm-wp .am-wp-pill::before{width:4px;height:4px}
}
@media (min-width:1201px) and (max-width:1439px){
  html.am-wp-on .mm-wp .am-wp-pill{top:-8px;font-size:9px;padding:2px 6px 2px 5px}
}

/* ── 3. Bandeau des pages vidéo, juste sous le lecteur ────────────────────────── */
.am-wpb{
  display:flex;align-items:stretch;min-width:0;margin:10px 0 0;
  border:1px solid rgba(212,168,83,.38);border-radius:12px;background:rgba(212,168,83,.10);overflow:hidden;
}
.am-wpb[hidden],
html:not(.am-wp-on) .am-wpb{display:none !important}
.am-wpb__go{
  display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0;padding:10px 8px 10px 10px;
  text-decoration:none;font-size:14px;line-height:1.2;
}
/* couleurs dites en clair, avec le poids qu'il faut : le site colore tous les liens par thème (html.light a, html.dark a) */
html .am-wpb .am-wpb__go,
html .am-wpb .am-wpb__go:hover,
html .am-wpb .am-wpb__x{color:#f1f1f1;text-decoration:none}
html.light .am-wpb .am-wpb__go,
html.light .am-wpb .am-wpb__go:hover,
html.light .am-wpb .am-wpb__x{color:#26262c}
.am-wpb__go:hover{background:rgba(212,168,83,.08)}
.am-wpb__name{flex:none;font-weight:700;white-space:nowrap}
.am-wpb__title{flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.82}
.am-wpb.has-title .am-wpb__title::before{content:"· "}
.am-wpb__cta{flex:none;display:inline-flex;align-items:center;gap:1px;margin-left:auto;padding-left:4px;font-weight:700;color:#D4A853;white-space:nowrap}
html.light .am-wpb__cta{color:#7a5c12}
.am-wpb__x{
  flex:none;display:flex;align-items:center;justify-content:center;width:40px;padding:0;margin:0;
  background:none;border:0;border-left:1px solid rgba(212,168,83,.24);border-radius:0;opacity:.7;cursor:pointer;
}
.am-wpb__x:hover{opacity:1}
html.light .am-wpb{background:rgba(212,168,83,.14);border-color:rgba(160,120,40,.45)}
@media (max-width:480px){
  .am-wpb{margin-top:8px;border-radius:10px}
  .am-wpb__go{gap:6px;padding:9px 6px 9px 8px;font-size:13px}
  .am-wpb__x{width:36px}
}
/* à 320 px il ne reste pas de quoi lire un titre : le bandeau s'en passe (pastille, nom, « Rejoindre », « × ») */
@media (max-width:359px){
  .am-wpb__title{display:none}
}
