/* lm-home-cat.css v1 (owner 20 Nov, Parimatch reference): home page = one titled row per category, in a fixed order, instead of the tabbed 'More games' block; sidebar = flat stacked rows with hairline gaps. Pure CSS; remove file + <link> to restore. */
#app:has(>.hero-band){display:flex!important;flex-direction:column}
#app:has(>.hero-band)>*{order:20}
#app>#lmSettle{order:-1}
#app>.hero-band{order:0}
#app>#homeCats{order:1}
#app>.section:has(#railLive){order:2}
#app>#liveCricket{order:3}
#app>#rlHome{order:4}
#app>#vgSection{order:5}
#app>.section:has(#railCasino){order:6}
#app>.section:has(#railVirtual){order:7}
#app>#lmGamesBar{display:none!important}
#app>.section.lmh-tabbed.lmh-hide{display:block!important}
#app>.section.lmh-tabbed .section-h h2{display:block!important}
#app>.section.lmh-tabbed .section-h{display:flex!important;align-items:center;justify-content:space-between}
#app>.section.lmh-tabbed>.tiles.rail{display:grid!important;grid-auto-flow:column!important;grid-template-columns:none!important;grid-template-rows:auto!important;grid-auto-columns:calc((100% - 60px)/6)!important;gap:12px!important;overflow-x:auto!important;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
#app>.section.lmh-tabbed>.tiles.rail::-webkit-scrollbar{display:none}
#app>.section.lmh-tabbed>.tiles.rail>*{display:block!important;scroll-snap-align:start;min-width:0}
@media(max-width:1300px){#app>.section.lmh-tabbed>.tiles.rail{grid-auto-columns:calc((100% - 36px)/4)!important}}
@media(max-width:900px){#app>.section.lmh-tabbed>.tiles.rail{grid-auto-columns:calc((100% - 24px)/3)!important}}
@media(max-width:640px){#app>.section.lmh-tabbed>.tiles.rail{grid-auto-columns:44%!important}}
/* sidebar: flat stacked rows */
html:not([data-theme=light]) aside.sidebar .sb-group{display:flex;flex-direction:column;gap:2px;padding:0!important;background:transparent!important;border:0!important}
html:not([data-theme=light]) aside.sidebar .sb-group a{border-radius:0!important;margin:0!important;padding:13px 14px!important;border:0!important;box-shadow:none!important;background:#17171b!important;color:#cfcfd6!important;font-size:14px}
html:not([data-theme=light]) aside.sidebar .sb-group a:first-of-type{border-top-left-radius:8px!important;border-top-right-radius:8px!important}
html:not([data-theme=light]) aside.sidebar .sb-group a:last-of-type{border-bottom-left-radius:8px!important;border-bottom-right-radius:8px!important}
html:not([data-theme=light]) aside.sidebar .sb-group a:hover{background:#202026!important;color:#fff!important}
html:not([data-theme=light]) aside.sidebar .sb-group a.active{background:#24242b!important;color:#fff!important;box-shadow:inset 3px 0 0 var(--brand)!important}
html:not([data-theme=light]) aside.sidebar .sb-group a::before,html:not([data-theme=light]) aside.sidebar .sb-group a::after{display:none!important}
html:not([data-theme=light]) aside.sidebar .sb-group a .n{background:transparent!important;border:0!important;color:#74747d!important}
/* v2: neutral black base for the default dark theme (was navy), like the premium theme */
html:not([data-theme=light]):not([data-theme=premium]){--bg:#070708!important;--bg-main:#111113!important;--bg-tertiary:#18181b!important;--bg-control:#202024!important;--panel:#111113!important;--glass:rgba(17,17,19,.86)!important;--line:rgba(255,255,255,.08)!important}
html:not([data-theme=light]):not([data-theme=premium]),html:not([data-theme=light]):not([data-theme=premium]) body{background:#070708!important;background-image:none!important}
html:not([data-theme=light]):not([data-theme=premium]) body::before,html:not([data-theme=light]):not([data-theme=premium]) body::after{display:none!important}
html:not([data-theme=light]):not([data-theme=premium]) .topbar{background:rgba(12,12,13,.92)!important;border-bottom:1px solid rgba(255,255,255,.07)!important}
html:not([data-theme=light]):not([data-theme=premium]) aside.sidebar{background:#0c0c0d!important;background-image:none!important;border-right:1px solid rgba(255,255,255,.06)!important}
html:not([data-theme=light]):not([data-theme=premium]) #mobnav{background:rgba(12,12,13,.96)!important}
html:not([data-theme=light]):not([data-theme=premium]) .panelbox,html:not([data-theme=light]):not([data-theme=premium]) .kpi,html:not([data-theme=light]):not([data-theme=premium]) .mcard,html:not([data-theme=light]):not([data-theme=premium]) .tile,html:not([data-theme=light]):not([data-theme=premium]) .bankcard,html:not([data-theme=light]):not([data-theme=premium]) .method{background-color:#141416!important;background-image:none!important;border-color:rgba(255,255,255,.08)!important}
/* v2: Starting soon panel beside the hero, in the same language as the live cards */
html:not([data-theme=light]) .hero-side .lb{background:#161617!important;background-image:none!important;border:0!important;border-radius:10px!important;box-shadow:none!important;overflow:hidden;padding:0!important;display:flex;flex-direction:column}
html:not([data-theme=light]) .hero-side .lb-h{background:rgba(128,124,48,.45)!important;color:#ecebd2!important;font-size:13px!important;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:11px 14px!important;margin:0!important;border-bottom:2px solid #0b0b0c!important;display:flex;align-items:center;gap:8px}
html:not([data-theme=light]) .hero-side .lb-h .dot{background:#ff6a3d!important}
html:not([data-theme=light]) .hero-side .lb-h .cnt{margin-left:auto;background:#0b0b0c!important;color:#ecebd2!important;border:0!important;border-radius:999px;padding:2px 9px;font-size:11px}
html:not([data-theme=light]) .hero-side .lb-list{padding:0!important;gap:0!important;flex:1}
html:not([data-theme=light]) .hero-side .lb-row{background:#1b1b1c!important;border:0!important;border-bottom:2px solid #0b0b0c!important;border-radius:0!important;margin:0!important;padding:10px 12px!important}
html:not([data-theme=light]) .hero-side .lb-row:hover{background:#222224!important}
html:not([data-theme=light]) .hero-side .lb-row .tm b{color:#f3f3f3!important;font-weight:600;font-size:13.5px}
html:not([data-theme=light]) .hero-side .lb-row .tm small{color:#8b8b90!important;text-transform:capitalize}
html:not([data-theme=light]) .hero-side .lb-row .sc{color:#ff6a3d!important;font-weight:700;font-size:11.5px}
html:not([data-theme=light]) .hero-side .lb-row .od>span{background:#272728!important;border:0!important;border-radius:6px!important;color:#63b3ff!important;font-weight:700;font-size:14px;min-width:44px;text-align:center;padding:6px 8px!important}
html:not([data-theme=light]) .hero-side .lb>:last-child:not(.lb-list){padding:9px 14px!important;background:#161617;color:#8b8b90}
/* v4 (owner 20 Nov 19:14): Royal Lounge banner above Live now; fixed compact live cards; Starting soon rows no longer squash; smaller round category icons; bigger, uncropped game thumbnails */
#app>#rlHome{order:2!important}
#app>.section:has(#railLive){order:3!important}
#app>#liveCricket{order:4!important}
#railLive{grid-template-rows:repeat(2,184px)!important;align-content:start!important;align-items:stretch!important}
#railLive>.mcard{height:184px!important;min-height:0!important;max-height:184px!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
#railLive>.mcard .strip{padding:7px 12px!important;font-size:12.5px!important;flex:0 0 auto}
#railLive>.mcard .pm-st{flex:0 0 auto;padding-top:5px!important;padding-bottom:1px!important;min-height:0!important}
#railLive>.mcard .pm-row{flex:0 0 auto;padding-top:2px!important;padding-bottom:2px!important;min-height:0!important}
#railLive>.mcard .pm-row .nm{font-size:14px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#railLive>.mcard .oddsrow{margin-top:auto!important;flex:0 0 auto;padding-top:6px!important;padding-bottom:9px!important}
#railLive>.mcard .odd{min-height:42px!important;height:42px!important}
html:not([data-theme=light]) #railLive>.mcard .odd b{font-size:17px!important;line-height:1.1}
.hero-side .lb-list{overflow-y:auto!important;scrollbar-width:none;display:flex!important;flex-direction:column!important}
.hero-side .lb-list::-webkit-scrollbar{display:none}
.hero-side .lb-row{flex:0 0 auto!important;min-height:68px;align-items:center!important;padding:9px 12px!important;box-sizing:border-box}
.hero-side .lb-row .tm{min-width:0;display:flex;flex-direction:column;gap:2px}
.hero-side .lb-row .tm b{display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.25}
.hero-side .lb-row .tm small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3;font-size:11px}
.hero-side .lb-row .rt{display:flex;flex-direction:column;align-items:flex-end;gap:5px;flex:0 0 auto}
.hero-side .lb-row .od{display:flex;align-items:center;gap:6px}
#homeCats{zoom:.8}
#app>.section.lmh-tabbed>.tiles.rail{grid-auto-columns:calc((100% - 48px)/5)!important}
#app>.section.lmh-tabbed>.tiles.rail .tile .img{height:auto!important;aspect-ratio:1/1!important;background-size:cover!important;background-position:center!important}
#app>#vgSection>.tiles.rail .tile .img{aspect-ratio:4/3!important}
#rlHome .rl-rail{grid-auto-columns:minmax(196px,1fr)!important;grid-template-columns:none!important;grid-auto-flow:column!important;gap:12px!important}
#rlHome .rl-g{width:auto!important;height:auto!important}
#rlHome .rl-g .im{width:100%!important;height:auto!important;aspect-ratio:4/3!important;display:block}
#rlHome .rl-g .im img{width:100%!important;height:100%!important;object-fit:cover}
@media(max-width:1300px){#app>.section.lmh-tabbed>.tiles.rail{grid-auto-columns:calc((100% - 36px)/4)!important}}
@media(max-width:900px){#app>.section.lmh-tabbed>.tiles.rail{grid-auto-columns:calc((100% - 24px)/3)!important}}
@media(max-width:640px){#app>.section.lmh-tabbed>.tiles.rail{grid-auto-columns:47%!important}#rlHome .rl-rail{grid-auto-columns:46%!important}#railLive{grid-template-rows:repeat(2,184px)!important}#railLive>.mcard{height:184px!important;max-height:184px!important}}
