/* lm-livecards.css v1 (owner 20 Nov): Live now on home = two rows only, scrolls sideways; card look after owner's reference (olive header, orange scores, blue odds). Removing this file + its <link> restores the old grid. */
#railLive{display:grid!important;grid-auto-flow:column!important;grid-template-rows:repeat(2,auto)!important;grid-template-columns:none!important;grid-auto-columns:calc((100% - 36px)/4)!important;gap:12px!important;overflow-x:auto!important;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding-bottom:4px;scrollbar-width:none}
#railLive::-webkit-scrollbar{display:none}
@media(max-width:1300px){#railLive{grid-auto-columns:calc((100% - 24px)/3)!important}}
@media(max-width:900px){#railLive{grid-auto-columns:calc((100% - 12px)/2)!important}}
@media(max-width:640px){#railLive{grid-auto-columns:88%!important}}
#railLive>.mcard{scroll-snap-align:start;min-width:0}
html:not([data-theme=light]) #railLive>.mcard{border-radius:10px!important;border:0!important;box-shadow:none!important;overflow:hidden;background:linear-gradient(180deg,rgba(128,124,48,.34) 0,rgba(64,62,30,.16) 48%,rgba(27,27,28,0) 100%),#1b1b1c!important}
html:not([data-theme=light]) #railLive>.mcard::before,html:not([data-theme=light]) #railLive>.mcard::after{display:none!important}
html:not([data-theme=light]) #railLive>.mcard .strip{background:rgba(128,124,48,.45)!important;color:#d6d4b4!important;font-size:13px;padding:9px 12px!important;border-bottom:2px solid #0b0b0c!important}
#railLive>.mcard .strip span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html:not([data-theme=light]) #railLive>.mcard .st-live{color:#ff6a3d!important;font-weight:700;letter-spacing:.04em}
html:not([data-theme=light]) #railLive>.mcard .st-live .dot{background:#ff6a3d!important}
html:not([data-theme=light]) #railLive>.mcard .pm-row .nm{font-size:15px;color:#f3f3f3!important}
html:not([data-theme=light]) #railLive>.mcard .pm-row .sc{color:#ff6a3d!important;font-weight:800;font-size:15px}
#railLive>.mcard .oddsrow{gap:8px!important}
html:not([data-theme=light]) #railLive>.mcard .odd{border:0!important;border-radius:6px!important;min-height:54px}
html:not([data-theme=light]) #railLive>.mcard .odd:not(.up-flash):not(.dn-flash){background:#272728}
html:not([data-theme=light]) #railLive>.mcard .odd b{color:#63b3ff!important;font-size:20px!important;font-weight:700!important}
html:not([data-theme=light]) #railLive>.mcard .odd s{color:#fff!important;font-weight:700;font-size:11px;text-decoration:none;opacity:1!important}
html:not([data-theme=light]) #railLive>.mcard .odd.off b{color:#6f6f73!important}
/* v2 (owner 20 Nov 19:28, second reference): larger team names, score on the right, wide blue odds, icon-only TV button */
html:not([data-theme=light]) #railLive>.mcard{background:linear-gradient(160deg,rgba(104,102,44,.55) 0,rgba(52,51,28,.35) 42%,#1c1c1d 78%),#1c1c1d!important;border-radius:10px!important}
html:not([data-theme=light]) #railLive>.mcard .strip{background:rgba(90,89,44,.55)!important;color:#b9b8a0!important;font-size:13px!important;font-weight:500;padding:9px 14px!important;border-bottom:3px solid #0b0b0c!important}
#railLive>.mcard .strip img,#railLive>.mcard .strip .lmi{width:15px!important;height:15px!important;opacity:.85}
#railLive>.mcard .pm-st{padding-left:14px!important;padding-right:12px!important}
html:not([data-theme=light]) #railLive>.mcard .st-live{font-size:12px;font-weight:600!important;letter-spacing:.05em;color:#ff7043!important}
#railLive>.mcard .lm-tvb-card{background:transparent!important;border:0!important;padding:2px!important;min-width:0!important;color:#9a9a9a!important}
#railLive>.mcard .lm-tvb-card span{display:none!important}
#railLive>.mcard .pm-st .more{color:#9a9a9a!important;font-size:15px}
#railLive>.mcard .pm-row{padding-left:14px!important;padding-right:14px!important;gap:9px!important}
#railLive>.mcard .pm-row .crest{width:22px!important;height:16px!important;min-width:22px;border-radius:3px!important;font-size:8.5px!important;line-height:16px!important;letter-spacing:0}
html:not([data-theme=light]) #railLive>.mcard .pm-row .nm{font-size:15px!important;font-weight:500;color:#ececec!important}
html:not([data-theme=light]) #railLive>.mcard .pm-row .sc{color:#ff7043!important;font-weight:700!important;font-size:15px!important;margin-left:auto}
#railLive>.mcard .oddsrow{padding-left:12px!important;padding-right:12px!important;gap:8px!important}
html:not([data-theme=light]) #railLive>.mcard .odd:not(.up-flash):not(.dn-flash){background:#262627}
html:not([data-theme=light]) #railLive>.mcard .odd{border-radius:5px!important;height:46px!important;min-height:46px!important}
html:not([data-theme=light]) #railLive>.mcard .odd b{color:#7cc4ff!important;font-size:18px!important;font-weight:500!important}
html:not([data-theme=light]) #railLive>.mcard .odd s{color:#e6e6e6!important;font-size:10.5px!important;font-weight:700}
/* v3 (owner 20 Nov 21:18, third reference): every card the same fixed size, score inside the team row (grey innings + big orange total), no flashing, no entrance animation. Needs lm-livefix.js v2. */
#railLive>.mcard{height:178px!important;min-height:178px!important;max-height:178px!important;display:flex!important;flex-direction:column!important;animation:none!important;transition:none!important;transform:none!important}
#railLive>.mcard[style*="display: none"]{display:none!important}
#railLive>.mcard .lm-sc,#railLive>.mcard .pm-score{display:none!important}
#railLive>.mcard .strip{flex:0 0 auto}
#railLive>.mcard .pm-st{flex:0 0 auto;padding-top:8px!important;padding-bottom:2px!important}
#railLive>.mcard .pm-row{flex:0 0 auto;min-height:26px;align-items:center}
#railLive>.mcard .pm-row .nm{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#railLive>.mcard .pm-row .sc{flex:0 0 auto;display:flex;align-items:baseline;gap:10px;white-space:nowrap}
#railLive>.mcard .pm-row .sc small{display:none}
#railLive>.mcard .pm-row .sc em{font-style:normal;font-weight:500;font-size:14px;color:#d0d0d0}
html[data-theme=light] #railLive>.mcard .pm-row .sc em{color:#555}
#railLive>.mcard .pm-row .sc b{font-weight:700;font-size:17px;color:#ff7043;min-width:30px;text-align:right}
#railLive>.mcard .oddsrow{margin-top:auto!important;padding-bottom:12px!important;flex:0 0 auto}
#railLive>.mcard .odd,#railLive>.mcard .odd b{animation:none!important;transition:none!important}
html:not([data-theme=light]) #railLive>.mcard .odd{background:#262627!important;height:48px!important;min-height:48px!important}
html:not([data-theme=light]) #railLive>.mcard .odd b{font-size:19px!important}
@media(max-width:640px){#railLive{grid-auto-columns:86%!important;gap:10px!important}#railLive>.mcard{height:172px!important;min-height:172px!important;max-height:172px!important}}
/* v4 (20 Nov 22:00): no script needed. Cricket score sits on the right of the team rows in orange (the app's own .pm-score line), score chips hidden so every card is the same height. lm-livefix.js is NOT loaded (it fought with home-stable/home-layout); duplicates were a home-stable bug, fixed there. */
#railLive>.mcard{position:relative!important}
#railLive>.mcard .pm-score{display:block!important;position:absolute;right:14px;top:74px;margin:0!important;padding:0!important;background:none!important;border:0!important;font-size:15px!important;font-weight:700!important;color:#ff7043!important;white-space:nowrap;max-width:46%;overflow:hidden;text-overflow:ellipsis;line-height:1.2}
#railLive>.mcard .pm-row .sc:empty{display:none}
#railLive>.mcard:has(.pm-score) .pm-row .nm{max-width:52%}
#railLive>.mcard:has(.pm-score) .pm-row .sc{display:none!important}
/* v5: cricket score sits on the status line right after LIVE, so team names keep the full width on phones */
#railLive>.mcard .pm-score{right:auto!important;left:74px!important;top:45px!important;max-width:calc(100% - 150px)!important;font-size:13.5px!important}
#railLive>.mcard:has(.pm-score) .pm-row .nm{max-width:none!important}
@media(max-width:640px){#railLive>.mcard .pm-score{top:57px!important;left:84px!important;max-width:calc(100% - 160px)!important}}
/* v7 (owner phone screenshots 21:31): on phones the card had its own 8px 10px padding, so the olive strip sat inside the card like a box in a box. Card padding is 0 everywhere now; the phone card is a bit narrower so the next one peeks in. */
#railLive>.mcard{padding:0!important}
@media(max-width:640px){#railLive{grid-auto-columns:80%!important}#railLive>.mcard{width:auto!important;max-width:none!important}#railLive>.mcard .pm-score{top:45px!important;left:74px!important;max-width:calc(100% - 150px)!important}#railLive>.mcard .pm-st{padding:8px 12px 2px 14px!important}#railLive>.mcard .pm-st .st-live{font-size:12px!important}#railLive>.mcard .pm-row .nm{font-size:15px!important}}
/* home 'All sports' tiles on phones: an incomplete last row stretches to fill the width instead of leaving a hole; names and counts line up from the top */
@media(max-width:619px){.lmh-grid{display:flex!important;flex-wrap:wrap!important;gap:8px!important}.lmh-grid>.lmh-sp{flex:1 1 calc(33.333% - 6px)!important;min-width:calc(33.333% - 6px)!important;box-sizing:border-box}.lmh-grid>.lmh-sp small{white-space:nowrap}}
#lmSportGrid .lmh-sp small:empty::after{content:"No events"!important}
@media(max-width:640px){#railLive>.mcard .pm-score{top:47px!important}}
/* v9 (owner 21:46, Parimatch card): with lm-cardx.js a live cricket card carries class lmx-sc and has each side's innings in its own row, so the single score line is hidden for those cards */
#railLive>.mcard.lmx-sc .pm-score{display:none!important}
#railLive>.mcard.lmx-sc .pm-row .sc{display:flex!important;align-items:baseline;gap:8px;margin-left:auto}
#railLive>.mcard.lmx-sc .pm-row .nm{max-width:none!important}
#railLive>.mcard .pm-row .crest.lmx-flag{width:24px!important;min-width:24px!important;height:17px!important}
#railLive>.mcard .scline{display:none!important}

/* 21 Nov (owner, "1 X 2 really close, congested"): the 1 / X / 2 label sat tight under the price on every match card. A clear gap between the two, on the standard cards and on the Cricket Live / Football cards. */
#app .mcard .oddsrow .odd{gap:6px}
#app .mcard .oddsrow .odd b,#app .mcard .oddsrow .odd s{line-height:1}
#app .mcard .oddsrow .odd s{font-size:11px;letter-spacing:.04em;opacity:.6}
#app #railLive .mcard .oddsrow .odd{gap:5px}
#app .h2-card .h2-odd{gap:5px}
#app .h2-card .h2-odd b,#app .h2-card .h2-odd s{line-height:1}
#app .h2-card .h2-odd s{opacity:.6}
