/* کارت لانگ و شورت لحظه‌ای — صفحه‌ی ارز (inc/longshort-io.php) */

.ls { --ls-long: var(--accent, #16a34a); --ls-short: var(--danger, #dc2626); }

.ls-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ls-long); }
.ls-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ls-long); box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: ls-pulse 2s infinite; }
.ls-live__time { color: var(--muted); font-weight: 500; }
.ls.is-stale .ls-live { color: var(--muted); }
.ls.is-stale .ls-live i { background: var(--muted); animation: none; }
@keyframes ls-pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
@media (prefers-reduced-motion: reduce) { .ls-live i { animation: none; } }

/* عدد بزرگ دو طرف */
.ls-hero { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.ls-side { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ls-side--short { align-items: flex-end; text-align: left; }
.ls-side__lbl { font-size: 13px; font-weight: 700; }
.ls-side__lbl small { font-weight: 500; color: var(--muted); }
.ls-side--long .ls-side__lbl { color: var(--ls-long); }
.ls-side--short .ls-side__lbl { color: var(--ls-short); }
.ls-side__num { font-size: 28px; font-weight: 900; line-height: 1.25; font-variant-numeric: tabular-nums; }
.ls-side__num small { font-size: 14px; font-weight: 600; color: var(--muted); margin-inline-start: 4px; }
.ls-side__pct { font-size: 13.5px; font-weight: 700; color: var(--muted); min-height: 1.4em; }

/* نوار دوتکه */
.ls-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--border); gap: 2px; }
.ls-bar i { display: flex; align-items: center; min-width: 0; transition: width .6s ease; }
.ls-bar__l { background: var(--ls-long); border-radius: 0 999px 999px 0; }
.ls-bar__s { flex: 1; background: var(--ls-short); border-radius: 999px 0 0 999px; justify-content: flex-end; }
.ls-bar--big { height: 16px; }
.is-loading .ls-bar i, .ls.is-loading .ls-bar--big i { background: var(--border); }

.ls-caption { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.9; }
.ls-caption b { color: var(--text); }
.ls-up { color: var(--ls-long); font-weight: 700; }
.ls-down { color: var(--ls-short); font-weight: 700; }

/* روند ۲۴ ساعت */
.ls-trend { margin-top: 16px; padding: 12px 14px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); }
.ls-trend__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.ls-trend__delta { font-weight: 700; }
.ls-trend__svg { display: block; width: 100%; height: 60px; overflow: visible; }

/* ردیف صرافی‌ها */
.ls-sub { font-size: 14.5px; font-weight: 800; margin: 20px 0 10px; }
.ls-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ls-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; }
.ls-row[hidden] { display: none; }
.ls-row__ex { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-row__ex img { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.ls-row .ls-bar { height: 24px; border-radius: 6px; }
.ls-row .ls-bar__l { border-radius: 0 6px 6px 0; }
.ls-row .ls-bar__s { border-radius: 6px 0 0 6px; }
.ls-row .ls-bar em { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; padding: 0 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ls-row--whale { padding-top: 10px; border-top: 1px dashed var(--border); }

.ls-note { margin: 16px 0 0; font-size: 12px; color: var(--muted); line-height: 1.9; }

@media (max-width: 640px) {
	.ls-side__num { font-size: 22px; }
	.ls-row { grid-template-columns: 96px 1fr; gap: 8px; }
	.ls-row__ex { font-size: 12.5px; gap: 6px; }
	.ls-row__ex img { width: 18px; height: 18px; }
	.ls-row .ls-bar { height: 22px; }
	.ls-row .ls-bar em { font-size: 11px; padding: 0 6px; }
}
