/* speed108 — colour variety. Loaded after every other stylesheet; only adds colour (no layout changes).
 * 1) each match row takes its competition's colour: a stripe on the start edge, a soft tint and a small label
 * 2) the «تحلیل منتخب» row sits on the match artwork
 * 3) every home section has its own accent
 * 4) settled rows: green / red tint by verdict */

/* ---------- 1. competition colours */
.mr { --acc: #3b4a63; }
.mr[data-lg="iran"], .mr[data-cg="iran"] { --acc: #22c55e; }
.mr[data-lg="europe"], .mr[data-cg="europe"] { --acc: #6366f1; }
.mr[data-lg="national"], .mr[data-cg="national"] { --acc: #eab308; }
.mr[data-cg="cups"] { --acc: #38bdf8; }
.mr[data-cg="asia"] { --acc: #14b8a6; }
.mr[data-cg="americas"] { --acc: #f472b6; }
.mr[data-comp="iran-pro-league"] { --acc: #22c55e; }
.mr[data-comp="hazfi-cup"] { --acc: #10b981; }
.mr[data-comp="premier-league"] { --acc: #a855f7; }
.mr[data-comp="la-liga"] { --acc: #f97316; }
.mr[data-comp="serie-a"] { --acc: #3b82f6; }
.mr[data-comp="bundesliga"] { --acc: #ef4444; }
.mr[data-comp="ligue-1"] { --acc: #06b6d4; }
.mr[data-comp="primeira-liga"] { --acc: #16a34a; }
.mr[data-comp="eredivisie"] { --acc: #fb923c; }
.mr[data-comp="super-lig"] { --acc: #e11d48; }
.mr[data-comp="champions-league"] { --acc: #60a5fa; }
.mr[data-comp="europa-league"] { --acc: #f59e0b; }
.mr[data-comp="conference-league"] { --acc: #34d399; }
.mr[data-comp="saudi-pro-league"] { --acc: #10b981; }
.mr[data-comp="brasileirao"] { --acc: #facc15; }
.mr[data-comp="liga-mx"] { --acc: #22c55e; }
.mr[data-comp="mls"] { --acc: #f472b6; }
.mr[data-comp="world-cup"], .mr[data-comp="world-cup-qualifiers"] { --acc: #eab308; }

.mr {
  box-shadow: inset -3px 0 0 var(--acc);   /* RTL: the stripe on the right (start) edge */
  background-image: linear-gradient(270deg, color-mix(in srgb, var(--acc) 13%, transparent), transparent 60%);
}
[dir="ltr"] .mr { box-shadow: inset 3px 0 0 var(--acc); background-image: linear-gradient(90deg, color-mix(in srgb, var(--acc) 13%, transparent), transparent 60%); }
.mr-comp {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-bottom: -2px;
  font-size: 11.5px; font-weight: 700; line-height: 1.9; color: color-mix(in srgb, var(--acc) 70%, #fff);
}
.mr-comp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.mr .mr-t img { filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .45)); }
.mr-time { color: #fff; }
.mr:hover { background-image: linear-gradient(270deg, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%); }

/* ---------- 2. the featured row on the match artwork (beats body.bg-ink .mr--pick in typography.css) */
body .mr.mr--pick {
  background: linear-gradient(270deg, rgba(8, 12, 22, .62), rgba(8, 12, 22, .86) 50%, rgba(8, 12, 22, .7)),
    url("/assets/img/art-match-1200.webp") center 45% / cover no-repeat, #0d1422;
  border-inline-start: 0;
  box-shadow: inset -3px 0 0 var(--acc), 0 10px 30px rgba(0, 0, 0, .35);
}
body .mr.mr--pick .mr-flag { background: linear-gradient(135deg, #e11d48, #f59e0b); border: 0; color: #fff; }
body .mr.mr--pick .mr-t b { font-size: 1.06em; color: #fff; }

/* ---------- 3. each home section with its own accent */
#bdTitle::before, .td-title::before { background: linear-gradient(180deg, #38bdf8, #6366f1); }
#latestTitle::before { background: linear-gradient(180deg, #a855f7, #ec4899); }
#vipTitle::before { background: linear-gradient(180deg, #fde047, #f59e0b); }
#aboutTitle::before { background: linear-gradient(180deg, #94a3b8, #475569); }
.hm-sec-title[id*="rec"]::before, .hm-sec-title[id*="Rec"]::before, .hm-sec-title[id*="result"]::before { background: linear-gradient(180deg, #4ade80, #16a34a); }
.hm-sec-title[id*="bonus"]::before, .hm-sec-title[id*="Bonus"]::before { background: linear-gradient(180deg, #fbbf24, #f97316); }
.hm-sec-title[id*="tut"]::before, .hm-sec-title[id*="Tut"]::before { background: linear-gradient(180deg, #2dd4bf, #0ea5e9); }
.hm-about { background: linear-gradient(160deg, rgba(99, 102, 241, .08), transparent 45%), var(--hm-card, #111827); }
.hm-vip { background: radial-gradient(120% 90% at 100% 0%, rgba(245, 158, 11, .16), transparent 55%), var(--hm-card, #111827); }

/* league filter chips: each its own colour when picked */
.bd-chip[data-lg="iran"].on { background: linear-gradient(135deg, #15803d, #22c55e); border-color: #4ade80; }
.bd-chip[data-lg="europe"].on { background: linear-gradient(135deg, #4338ca, #6366f1); border-color: #818cf8; }
.bd-chip[data-lg="national"].on { background: linear-gradient(135deg, #a16207, #eab308); border-color: #fde047; }
.bd-chip[data-lg="other"].on { background: linear-gradient(135deg, #9d174d, #ec4899); border-color: #f9a8d4; }

/* ---------- 4. settled rows tinted by their verdict */
.mr:has(.rs-won) { --acc: #22c55e; }
.mr:has(.rs-lost) { --acc: #ef4444; }
.mr:has(.rs-void) { --acc: #94a3b8; }
.rc-row:has(.rs-won) { background: linear-gradient(270deg, rgba(34, 197, 94, .1), transparent 60%); }
.rc-row:has(.rs-lost) { background: linear-gradient(270deg, rgba(239, 68, 68, .1), transparent 60%); }

@media (prefers-reduced-transparency: reduce) { body .mr.mr--pick { background: #0d1422; } }

/* v113 — bottom bar: a solid, slightly taller dock; the open page gets a top marker and a filled icon,
   the sponsor page («بونوس») is the raised gold button in the middle */
@media (max-width: 767px) {
  body nav.glass-silver.fixed.bottom-0 { background: #0c1424; border-top: 1px solid #243047; box-shadow: 0 -8px 24px rgba(0,0,0,.35); -webkit-backdrop-filter: none; backdrop-filter: none; }
  body nav.glass-silver.fixed.bottom-0 > div { height: 62px; }
  body .bottom-nav-link { position: relative; gap: 2px; color: #8f9db2; }
  body .bottom-nav-link > span:last-child { font-size: 11.5px; font-weight: 600; }
  body .bottom-nav-link .icon-chip { width: 32px; height: 32px; border-radius: 11px; transition: background .2s ease, transform .2s ease; }
  body .bottom-nav-link.active { color: #8db6ff; }
  body .bottom-nav-link.active .icon-chip { background: rgba(141,182,255,.16); }
  body .bottom-nav-link.active::before { content: ''; position: absolute; top: -1px; left: 50%; width: 26px; height: 3px; margin-left: -13px; border-radius: 0 0 4px 4px; background: #8db6ff; }
  body .bottom-nav-link:active .icon-chip { transform: scale(.92); }
  /* the menu button is the raised one, in the middle */
  body .bottom-nav-link.bottom-nav-menu .icon-chip { width: 44px; height: 44px; margin-top: -16px; border-radius: 50%; background: linear-gradient(145deg, #3b7bf0, #245fc7); color: #fff; box-shadow: 0 6px 16px rgba(36,95,199,.5), 0 0 0 4px #0c1424; }
  body .bottom-nav-link.bottom-nav-menu .icon-chip .ic { width: 22px; height: 22px; background-color: #fff; }
  body .bottom-nav-link.bottom-nav-menu { color: #8db6ff; }
  /* sponsor tabs: «سایت معتبر» (star) and «بونوس» keep the gold accent */
  body .bottom-nav-link[data-nav="sites"], body .bottom-nav-link.bottom-nav-bonus { color: #f5c451; }
  body .bottom-nav-link[data-nav="sites"] .icon-chip, body .bottom-nav-link.bottom-nav-bonus .icon-chip { background: rgba(245,183,46,.12); box-shadow: inset 0 0 0 1px rgba(245,183,46,.35); }
  body .bottom-nav-link[data-nav="sites"].active .icon-chip, body .bottom-nav-link.bottom-nav-bonus.active .icon-chip { background: rgba(245,183,46,.22); }
  body .bottom-nav-link[data-nav="sites"].active::before, body .bottom-nav-link.bottom-nav-bonus.active::before { background: #f5c451; }
  body .pb-20 { padding-bottom: calc(62px + 18px + env(safe-area-inset-bottom)); }
}
