/* CLASSEMENT EN DIRECT ANIMÉ (web + mobile) — styles de src/live-rank.js. */
#mlRank.lr { display: block; margin: 6px 4px 2px; padding: 7px 8px 6px; border-radius: 12px; border: 1px solid rgba(128,140,160,.35); background: rgba(128,140,160,.07); font-size: 12px; line-height: 1.25; transition: background .5s, border-color .5s; }
#mlRank.lr.gain { border-color: #1fa971; background: rgba(31,169,113,.12); }
#mlRank.lr.loss { border-color: #d6453d; background: rgba(214,69,61,.12); }
#mlRank.lr .lr-head { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 0 2px 5px; }
#mlRank.lr .lr-live { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 800; letter-spacing: .09em; opacity: .75; }
#mlRank.lr .lr-live b { width: 7px; height: 7px; border-radius: 50%; background: #1fa971; box-shadow: 0 0 0 0 rgba(31,169,113,.7); animation: lrPulse 1.8s infinite; }
#mlRank.lr .lr-me { display: flex; align-items: baseline; gap: 2px; font-size: 16px; font-weight: 800; }
#mlRank.lr .lr-me small { font-size: 10px; font-weight: 600; opacity: .6; }
#mlRank.lr .lr-tog { font-size: 9.5px; font-weight: 700; opacity: .6; text-decoration: underline; }
#mlRank.lr .lr-ar { font-style: normal; font-weight: 900; margin-right: 3px; font-size: 13px; }
#mlRank.lr .lr-ar.up { color: #1fa971; animation: lrUp .9s ease-in-out infinite; }
#mlRank.lr .lr-ar.dn { color: #d6453d; animation: lrDn .9s ease-in-out infinite; }
#mlRank.lr .lr-list { display: flex; flex-direction: column; gap: 2px; }
#mlRank.lr .lr-row { position: relative; display: grid; grid-template-columns: 26px minmax(0,1fr) auto 62px; align-items: center; gap: 6px; padding: 3px 5px; border-radius: 8px; background: rgba(128,140,160,.06); transition: background .8s; }
#mlRank.lr .lr-row.me { background: rgba(240,180,41,.16); box-shadow: inset 0 0 0 1px rgba(240,180,41,.55); }
#mlRank.lr .lr-row.up { background: rgba(31,169,113,.16); }
#mlRank.lr .lr-row.dn { background: rgba(214,69,61,.14); }
#mlRank.lr .lr-row.me.up { background: rgba(31,169,113,.22); }
#mlRank.lr .lr-row.me.dn { background: rgba(214,69,61,.2); }
#mlRank.lr .lr-row.mv-up { z-index: 2; box-shadow: 0 0 0 1px rgba(31,169,113,.6); }
#mlRank.lr .lr-row.mv-dn { box-shadow: 0 0 0 1px rgba(214,69,61,.5); }
#mlRank.lr .lr-row.in { animation: lrIn .6s ease-out; }
#mlRank.lr .lr-rk { font-size: 11px; font-weight: 800; opacity: .8; text-align: center; }
#mlRank.lr .lr-rk.r1 { color: #e0a800; } #mlRank.lr .lr-rk.r2 { color: #8e9aab; } #mlRank.lr .lr-rk.r3 { color: #c07a3a; }
#mlRank.lr .lr-nm { display: flex; align-items: center; gap: 5px; min-width: 0; }
#mlRank.lr .lr-nm b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mlRank.lr .lr-nm img { height: 11px; width: auto; border-radius: 2px; flex: none; }
#mlRank.lr .lr-pos { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 999px; font-size: 9.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
#mlRank.lr .lr-pos i { font-style: normal; font-size: 8px; }
#mlRank.lr .lr-pos em { font-style: normal; font-weight: 600; opacity: .85; }
#mlRank.lr .lr-pos.buy { color: #1fa971; background: rgba(31,169,113,.14); }
#mlRank.lr .lr-pos.sell { color: #d6453d; background: rgba(214,69,61,.14); }
#mlRank.lr .lr-pos.flat { color: inherit; opacity: .55; background: rgba(128,140,160,.14); font-weight: 600; }
#mlRank.lr .lr-pnl { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 11.5px; }
#mlRank.lr .lr-pnl.p { color: #1fa971; }
#mlRank.lr .lr-pnl.n { color: #d6453d; }
#mlRank.lr .lr-gap { padding: 5px 2px 0; font-size: 11px; opacity: .85; }
body.theme-light #mlRank.lr .lr-pos.buy, body.theme-light #mlRank.lr .lr-pnl.p { color: #14855a; }
body.theme-light #mlRank.lr .lr-pos.sell, body.theme-light #mlRank.lr .lr-pnl.n { color: #c0352d; }
@media (max-width: 420px) {
  #mlRank.lr { font-size: 11px; }
  #mlRank.lr .lr-row { grid-template-columns: 24px minmax(0,1fr) auto 56px; gap: 4px; padding: 3px 4px; }
  #mlRank.lr .lr-pos { font-size: 9px; padding: 1px 5px; }
  #mlRank.lr .lr-pos em { display: none; }
  #mlRank.lr .lr-pnl { font-size: 11px; }
}
@keyframes lrPulse { 0% { box-shadow: 0 0 0 0 rgba(31,169,113,.7); } 70% { box-shadow: 0 0 0 7px rgba(31,169,113,0); } 100% { box-shadow: 0 0 0 0 rgba(31,169,113,0); } }
@keyframes lrUp { 0%, 100% { transform: translateY(2px); opacity: .6; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes lrDn { 0%, 100% { transform: translateY(-2px); opacity: .6; } 50% { transform: translateY(3px); opacity: 1; } }
@keyframes lrIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #mlRank.lr * { animation: none !important; transition: none !important; } }

/* Web (écran large) : version compacte, une ligne ; le détail s'ouvre au clic sur l'en-tête */
#mlRank.lr.compact { padding: 4px 8px; }
#mlRank.lr.compact .lr-head { padding: 0; }
#mlRank.lr.compact:not(.open) .lr-list { display: none; }
#mlRank.lr.compact .lr-gap { padding: 2px 2px 0; font-size: 10.5px; }
#mlRank.lr.compact.open .lr-gap { padding-top: 5px; }
