/* premium layer 4: full-width header & footer, collapsible sidebar rail, mobile drawer, image-style icon discs */
:root{--sidebar-w:248px;--header-h:60px}
body.sb-collapsed{--sidebar-w:76px}
.sbtoggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;border:0;background:var(--bg-control);color:var(--text-strong);box-shadow:inset 0 0 0 1px var(--hair);cursor:pointer;flex:none;margin-right:4px}
.sbtoggle svg{width:20px;height:20px}
.sbtoggle:active{transform:scale(.96)}
.sb-backdrop{display:none}
/* ---------- desktop: header + footer span the full width, sidebar sits under the header ---------- */
@media(min-width:1201px){
  .shell{display:grid;grid-template-columns:var(--sidebar-w) minmax(0,1fr);grid-template-rows:var(--header-h) minmax(0,1fr) auto;min-height:100vh;transition:grid-template-columns .25s ease}
  .main{display:contents}
  .topbar{grid-column:1 / -1;grid-row:1;position:sticky;top:0;height:var(--header-h);padding:0 16px 0 12px}
  .topbar #mobLogo{display:inline-flex!important;margin-right:8px}
  .sidebar{grid-column:1;grid-row:2;position:sticky;top:var(--header-h);height:calc(100vh - var(--header-h));overflow:auto;padding-top:8px;transition:width .25s ease}
  .sidebar .sb-logo{display:none}
  .wrap{grid-column:2;grid-row:2;min-width:0}
  footer,footer.ft{grid-column:1 / -1;grid-row:3;margin-top:0;padding-bottom:20px}
  .ft-in{max-width:1360px;margin:0 auto;padding-left:24px;padding-right:24px}
  .ft-social,.ft-legal{max-width:1360px;margin:0 auto;padding-left:24px;padding-right:24px}
  .ft-social{border-left:0;border-right:0}
  /* collapsed rail */
  body.sb-collapsed .sb-group{padding:4px 10px}
  body.sb-collapsed .sb-group .lbl{font-size:0;height:1px;background:var(--hair);margin:10px 8px;padding:0}
  body.sb-collapsed .sb-group a{font-size:0;justify-content:center;padding:9px 0;gap:0;position:relative}
  body.sb-collapsed .sb-group a .ic{width:36px;height:36px;font-size:16px}
  body.sb-collapsed .sb-group a .ic svg.lmi{width:18px;height:18px}
  body.sb-collapsed .sb-group a .n{position:absolute;right:6px;top:4px;font-size:10px;padding:0 5px;min-width:16px;text-align:center}
  body.sb-collapsed .sb-group a.active::before{display:none}
  body.sb-collapsed .sb-group a:hover::after{content:attr(data-tip);position:absolute;left:calc(100% + 8px);top:50%;transform:translateY(-50%);background:var(--bg-control);color:var(--text-strong);font-size:12px;padding:6px 10px;border-radius:8px;white-space:nowrap;box-shadow:0 10px 30px -10px #000,inset 0 0 0 1px var(--hair);z-index:5;pointer-events:none}
}
/* ---------- phone / tablet: sidebar becomes a slide-in drawer ---------- */
@media(max-width:1200px){
  .sidebar{display:flex!important;flex-direction:column;position:fixed;left:0;top:0;bottom:0;width:min(84vw,320px);z-index:80;transform:translateX(-104%);transition:transform .28s cubic-bezier(.2,.8,.2,1);box-shadow:0 0 0 1px var(--hair),30px 0 60px -30px #000;padding-bottom:calc(var(--tabbar-h,54px) + 12px)}
  body.sb-open .sidebar{transform:none}
  .sb-backdrop{display:block;position:fixed;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:79;opacity:0;pointer-events:none;transition:opacity .25s}
  body.sb-open .sb-backdrop{opacity:1;pointer-events:auto}
  body.sb-open{overflow:hidden}
  .sidebar .sb-logo{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 10px}
  .sidebar .sb-close{border:0;background:var(--bg-control);color:var(--text-strong);width:34px;height:34px;border-radius:10px;font-size:18px;cursor:pointer}
  .topbar{padding-left:8px}
  .sbtoggle{width:36px;height:36px;margin-right:0}
  .topbar .navback{margin-right:2px}
  body.inner .sbtoggle{display:none}
}
/* ---------- image-style icon discs (home sport bubbles + casino category bubbles) ---------- */
.cat i{width:58px;height:58px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),inset 0 2px 0 rgba(255,255,255,.18),0 10px 22px -12px rgba(0,0,0,.9);background:linear-gradient(150deg,#3a3d46,#1e1f24)}
.cat i svg.lmi{width:28px;height:28px;color:#fff;stroke-width:2;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35))}
.cat[href*="cricket"] i{background:linear-gradient(150deg,#39a0ff,#1d4ed8)}
.cat[href*="football"] i,.cat[href*="soccer"] i{background:linear-gradient(150deg,#34d399,#047857)}
.cat[href*="tennis"]:not([href*="table"]) i{background:linear-gradient(150deg,#d9f99d,#65a30d)}
.cat[href*="table%20tennis"] i,.cat[href*="table tennis"] i{background:linear-gradient(150deg,#fb7185,#be123c)}
.cat[href*="basketball"] i{background:linear-gradient(150deg,#fb923c,#c2410c)}
.cat[href*="horse"] i{background:linear-gradient(150deg,#c084fc,#6d28d9)}
.cat[href*="greyhound"] i{background:linear-gradient(150deg,#fbbf24,#b45309)}
.cat[href*="volleyball"] i{background:linear-gradient(150deg,#67e8f9,#0e7490)}
.cat[href*="snooker"] i{background:linear-gradient(150deg,#4ade80,#15803d)}
.cat[href*="e-games"] i,.cat[href*="e%20games"] i,.cat[href*="esports"] i{background:linear-gradient(150deg,#a78bfa,#4c1d95)}
.cat[href*="wrestling"] i{background:linear-gradient(150deg,#f87171,#991b1b)}
.cat[href*="american"] i,.cat[href*="rugby"] i{background:linear-gradient(150deg,#a16207,#713f12)}
.cat[href*="badminton"] i{background:linear-gradient(150deg,#f472b6,#9d174d)}
.cat[href*="boxing"] i,.cat[href*="mma"] i{background:linear-gradient(150deg,#ef4444,#7f1d1d)}
.cat[href*="hockey"] i{background:linear-gradient(150deg,#93c5fd,#1e40af)}
.cat[href*="darts"] i{background:linear-gradient(150deg,#fda4af,#9f1239)}
.cat[href*="kabaddi"] i{background:linear-gradient(150deg,#fcd34d,#b45309)}
.cat[href*="golf"] i{background:linear-gradient(150deg,#86efac,#166534)}
.cat[href*="baseball"] i{background:linear-gradient(150deg,#e2e8f0,#475569)}
.cat[href*="cycling"] i,.cat[href*="motor"] i{background:linear-gradient(150deg,#94a3b8,#1e293b)}
.cat[href="#/casino"] i,.cat[href*="casino"] i{background:linear-gradient(150deg,#b6ff2e,#4d7c0f)}
.cat[href*="/c/Roulette"] i{background:linear-gradient(150deg,#f43f5e,#881337)}
.cat[href*="/c/Teenpatti"] i{background:linear-gradient(150deg,#f59e0b,#92400e)}
.cat[href*="/c/Poker"] i{background:linear-gradient(150deg,#64748b,#0f172a)}
.cat[href*="/c/Baccarat"] i{background:linear-gradient(150deg,#e879f9,#701a75)}
.cat[href*="/c/Dragon"] i{background:linear-gradient(150deg,#fb923c,#9a3412)}
.cat[href*="/c/32"] i{background:linear-gradient(150deg,#38bdf8,#0c4a6e)}
.cat[href*="/c/Andar"] i{background:linear-gradient(150deg,#2dd4bf,#115e59)}
.cat[href*="/c/Lucky"] i{background:linear-gradient(150deg,#facc15,#a16207)}
.cat[href*="/c/3%20Card"] i,.cat[href*="/c/3 Card"] i{background:linear-gradient(150deg,#a3e635,#3f6212)}
.cat[href*="/c/Casino%20War"] i,.cat[href*="/c/Casino War"] i{background:linear-gradient(150deg,#f87171,#7f1d1d)}
.cat[href*="/c/Worli"] i{background:linear-gradient(150deg,#818cf8,#312e81)}
.cat[href*="/c/Sports"] i{background:linear-gradient(150deg,#34d399,#065f46)}
.cat[href*="/c/Bollywood"] i{background:linear-gradient(150deg,#f472b6,#831843)}
.cat[href*="/c/Lottery"] i{background:linear-gradient(150deg,#fbbf24,#78350f)}
.cat[href*="/c/Queen"] i{background:linear-gradient(150deg,#c084fc,#581c87)}
.cat[href*="/c/Race"] i{background:linear-gradient(150deg,#22d3ee,#155e75)}
.cat[href*="/c/Others"] i{background:linear-gradient(150deg,#d4d4d8,#52525b)}
.cat.active i{box-shadow:0 0 0 2px var(--brand),inset 0 0 0 1px rgba(255,255,255,.2)}
[data-theme=light] .cat i svg.lmi,[data-theme=light] .ccats a i svg.lmi{color:#fff}
[data-theme=light] .cat i{box-shadow:inset 0 0 0 1px rgba(255,255,255,.25),0 8px 18px -10px rgba(16,24,40,.45)}
/* sidebar sport icons get a soft tint too */
.sb-group a .ic svg.lmi{stroke-width:1.9}
