/* Cineco — compatibilité entre amis (pastille du profil + panneau). Verre sobre, coins arrondis.
   Animations jouées une seule fois à l'apparition (rien ne bouge en boucle). */
.cp-slot { margin-top: 12px; min-height: 78px; }

/* ── Pastille ── */
.cp-pill { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 16px 10px 10px; border: 0; border-radius: 24px; color: inherit; font: inherit; text-align: left; cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .11), 0 14px 34px -20px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease; animation: cp-in .6s cubic-bezier(.2, .7, .2, 1) both; }
.cp-pill::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .10) 50%, transparent 65%); transform: translateX(-120%); animation: cp-shine 1.6s .5s cubic-bezier(.4, 0, .2, 1) 1 both; }
.cp-pill:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 18px 38px -20px rgba(0, 0, 0, .9); }
.cp-pill:active { transform: scale(.985); }
.cp-pill.wait { cursor: default; }
.cp-pill.wait::after { display: none; }
@keyframes cp-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes cp-shine { to { transform: translateX(120%); } }
.cp-txt { flex: 1; display: grid; gap: 2px; min-width: 0; }
.cp-txt b { font-size: 15.5px; letter-spacing: -.01em; }
.cp-txt small { font-size: 12.5px; color: var(--ink-2); }
.cp-chev { color: var(--ink-2); font-size: 22px; transition: transform .3s ease; }
.cp-pill:hover .cp-chev { transform: translateX(3px); }

/* ── Anneau : le pourcentage au centre ── */
.cp-ringbox { position: relative; flex: none; display: grid; place-items: center; }
.cp-ring { position: absolute; inset: 0; }
.cp-ring .cp-arc { transition: stroke-dashoffset 1.4s cubic-bezier(.2, .7, .2, 1); filter: drop-shadow(0 0 4px rgba(220, 232, 244, .35)); }
.cp-center { position: relative; display: grid; place-items: center; text-align: center; line-height: 1; }
.cp-pct { display: flex; align-items: baseline; font-size: 17px; font-weight: 800; letter-spacing: -.03em; animation: cp-pop .6s .25s cubic-bezier(.2, .7, .2, 1) both; }
.cp-pct i { font-style: normal; font-size: 10px; font-weight: 700; margin-left: 1px; color: var(--ink-2); }
.cp-pct.cp-lg { font-size: 40px; }
.cp-pct.cp-lg i { font-size: 17px; margin-left: 2px; }
.cp-center small { margin-top: 4px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); animation: cp-pop .6s .4s cubic-bezier(.2, .7, .2, 1) both; }
.cp-q { font-size: 18px; font-weight: 800; color: var(--ink-2); }
.cp-q.cp-lg { font-size: 40px; }
@keyframes cp-pop { from { opacity: 0; transform: scale(.85); } }
.cp-dots { display: flex; gap: 3px; }
.cp-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-2); animation: cp-dot 1s ease-in-out infinite; }
.cp-dots i:nth-child(2) { animation-delay: .15s; }
.cp-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes cp-dot { 50% { opacity: .25; transform: translateY(-2px); } }

/* ── Panneau ── */
.cp-sheet { display: grid; gap: 16px; padding-bottom: 6px; }
.cp-hero { display: flex; align-items: center; gap: 18px; animation: cp-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.cp-hero .cp-ring .cp-arc { filter: drop-shadow(0 0 10px rgba(220, 232, 244, .35)); }
.cp-hero-t { display: grid; gap: 6px; min-width: 0; }
.cp-hero-t h3 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.cp-hero-t p { margin: 0; font-size: 14px; line-height: 1.4; }
.cp-hero-t small { font-size: 12px; color: var(--ink-2); }
.cp-parts { display: grid; gap: 9px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.cp-part { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 44px; align-items: center; gap: 10px; font-size: 13px; }
.cp-part > span:first-child { color: var(--ink-2); }
.cp-part b { text-align: right; font-size: 13px; }
.cp-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.cp-bar i { display: block; width: 0; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7f93a8, #eef3f8); transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }
.cp-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cp-tabs button { min-width: 0; padding-left: 4px; padding-right: 4px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-body { display: grid; gap: 10px; }
.cp-body.in > * { animation: cp-in .4s cubic-bezier(.2, .7, .2, 1) both; }
.cp-body h4 { margin: 8px 2px 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.cp-vide { margin: 2px; }

/* ── Tableaux : Lui | Œuvre ou goût (au centre) | Toi ── */
.cp-table { display: grid; gap: 7px; }
.cp-tr { display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 18px; color: inherit; font: inherit; text-align: center;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); transition: background .2s ease, transform .2s ease; animation: cp-in .45s calc(var(--i, 0) * 45ms) cubic-bezier(.2, .7, .2, 1) both; }
button.cp-tr { cursor: pointer; }
button.cp-tr:hover { background: rgba(255, 255, 255, .09); }
button.cp-tr:active { transform: scale(.99); }
.cp-th { background: none; box-shadow: none; padding-top: 0; padding-bottom: 0; animation: none; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.cp-th span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-n { display: grid; place-items: center; height: 52px; border-radius: 15px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; background: rgba(255, 255, 255, .07); }
.cp-n.moi { background: rgba(205, 216, 227, .15); }
.cp-tr.near .cp-n { box-shadow: inset 0 0 0 1px rgba(150, 210, 175, .28); }
.cp-tr.far .cp-n { box-shadow: inset 0 0 0 1px rgba(235, 150, 140, .30); }
.cp-w { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.cp-p { width: 38px; height: 56px; border-radius: 9px; overflow: hidden; background: rgba(255, 255, 255, .06); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .8); }
.cp-p img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-w b { max-width: 100%; font-size: 13.5px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cp-w small { font-size: 11.5px; color: var(--ink-2); }
.cp-heart { color: #f0a7b4; font-size: 20px; }
/* Divergences : niveau d'affinité de chacun */
.cp-gout { padding: 10px 8px; }
.cp-lv { display: grid; place-items: center; height: 40px; border-radius: 13px; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, .06); }
.cp-lv.hi { background: rgba(150, 210, 175, .18); color: #cdeedb; }
.cp-lv.up { background: rgba(150, 210, 175, .10); color: #c3e3d0; }
.cp-lv.mid { color: var(--ink-2); }
.cp-lv.lo { background: rgba(235, 150, 140, .14); color: #f1c6bf; }

/* ── Affiches (à découvrir, coups de cœur communs) ── */
.cp-posters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cp-post { display: grid; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; animation: cp-in .45s calc(var(--i, 0) * 50ms) cubic-bezier(.2, .7, .2, 1) both; }
.cp-pw { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s ease; }
.cp-post:hover .cp-pw { transform: translateY(-2px); }
.cp-pw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-post small { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.cp-sc, .cp-heart.on { position: absolute; right: 5px; bottom: 5px; padding: 2px 6px; border-radius: 8px; font-size: 11px; font-weight: 800; background: rgba(10, 13, 18, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-chips span { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); animation: cp-in .4s calc(var(--i, 0) * 40ms) ease both; }
.cp-how { margin: 4px 2px 0; line-height: 1.45; }

@media (max-width: 380px) { .cp-hero { flex-direction: column; text-align: center; } .cp-posters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cp-tr { grid-template-columns: 54px minmax(0, 1fr) 54px; } }
@media (prefers-reduced-motion: reduce) {
  .cp-ring .cp-arc, .cp-bar i { transition: none; }
  .cp-pill, .cp-pill::after, .cp-hero, .cp-body.in > *, .cp-tr, .cp-post, .cp-chips span, .cp-pct, .cp-center small, .cp-dots i { animation: none; }
}
