/* Cineco — effet verre sur tous les boutons.
   Les couleurs ne changent pas : on ajoute de la transparence, un flou d'arrière-plan,
   un reflet clair sur le haut et un liseré lumineux. Chargé en dernier.
   Pour régler l'intensité : --verre-flou, --verre-reflet et --verre-bord. */
:root {
  --verre-flou: blur(18px) saturate(170%);
  --verre-reflet: linear-gradient(180deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .05) 46%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .03) 100%);
  --verre-bord: inset 0 1px 0 rgba(255, 255, 255, .30), inset 0 -1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .13);
  --verre-ombre: 0 8px 22px rgba(0, 0, 0, .28);
  /* boutons principaux : le même dégradé argenté, rendu translucide */
  --verre-principal: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .12) 48%, rgba(255, 255, 255, 0) 54%),
    linear-gradient(135deg, rgba(241, 243, 246, .94) 0%, rgba(203, 213, 223, .86) 50%, rgba(163, 179, 194, .80) 100%);
}

/* ── Boutons neutres ── */
.btn:not(.primary):not(.link), .pillbtn:not(.on), .ibtn, .top-btn, .sortbtn, .chip, .opts button, .opt-row:not([aria-pressed="true"]),
.dm-plus2, .deck-acts button:not(.on), .lib-btn, .fav-empty, .set-me, #admin-slot .set-row, .seg {
  background-color: rgba(255, 255, 255, .055);
  background-image: var(--verre-reflet);
  -webkit-backdrop-filter: var(--verre-flou);
  backdrop-filter: var(--verre-flou);
  box-shadow: var(--verre-bord), var(--verre-ombre);
}
.seg { box-shadow: var(--verre-bord); }
.seg button { background-image: none; }
.chip, .opts button, .chip-scroll .chip { box-shadow: var(--verre-bord); }
.fav-empty { box-shadow: var(--verre-bord); }

/* ── Boutons principaux et éléments choisis : argent translucide ── */
.btn.primary, .pillbtn.on, .bar-send, .opt-row[aria-pressed="true"], .chip[aria-pressed="true"], .chip-scroll .chip[aria-pressed="true"],
.opts button[aria-pressed="true"], #m-view .opts button[aria-pressed="true"], .deck-acts button.on, .fiche .chip[aria-pressed="true"],
.oeuvre .chip[aria-pressed="true"], .st-row[aria-pressed="true"], .lc-plus, .relaunch, .tag-c, .pf-status, .imp-tag {
  background: var(--verre-principal);
  -webkit-backdrop-filter: var(--verre-flou);
  backdrop-filter: var(--verre-flou);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -1px 0 rgba(15, 18, 22, .10), inset 0 0 0 1px rgba(255, 255, 255, .45), 0 10px 26px rgba(0, 0, 0, .30), 0 0 22px rgba(203, 213, 223, .14);
}
.chip[aria-pressed="true"], .opts button[aria-pressed="true"], .tag-c, .pf-status, .imp-tag { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 1px rgba(255, 255, 255, .45); }

/* Segment choisi (onglets Tout / Films / Séries…) et onglet actif de la barre du bas */
.seg button[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .04) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .16), 0 4px 12px rgba(0, 0, 0, .25);
}
.tabbar .ind {
  background: linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .10) 50%, rgba(255, 255, 255, .06) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .40), inset 0 0 0 1px rgba(255, 255, 255, .16), 0 4px 14px rgba(0, 0, 0, .25);
}
.gear { background-image: var(--verre-reflet); box-shadow: var(--verre-bord); -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou); }
.tabbar { box-shadow: var(--sh), inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(255, 255, 255, .10); }

/* Lignes de réglages en carte : reflet discret seulement */
.set-card, .ed-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .10); }

/* Boutons dangereux : même verre, teinte conservée */
.btn.danger { color: var(--bad); }
.btn.danger.arm, .pillbtn.arm, .ibtn.arm { background-color: var(--bad-bg); }

/* Au survol (ordinateur) et à l'appui : le reflet s'intensifie */
@media (hover: hover) {
  .btn:hover, .pillbtn:hover, .ibtn:hover, .top-btn:hover, .sortbtn:hover, .chip:hover, .opt-row:hover, .lib-btn:hover, .set-me:hover {
    filter: brightness(1.12);
  }
}
.btn, .pillbtn, .ibtn, .top-btn, .sortbtn, .chip, .opt-row, .bar-send, .dm-plus2, .lib-btn, .set-me { transition: transform .3s var(--spring), filter .2s ease, background .25s ease, box-shadow .25s ease; }
.btn:active, .pillbtn:active, .ibtn:active, .sortbtn:active, .opt-row:active { filter: brightness(1.2); }
.btn[disabled], .pillbtn[disabled] { filter: saturate(.6) brightness(.8); }
