:root {
  --header: #126e51;
  --header-2: #0f5c44;
  --bg: #3a3a3a;
  --side: #2b2b2b;
  --side-2: #333333;
  --card: #454545;
  --card-2: #3f3f3f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f3f3;
  --muted: #bdbdbd;
  --yellow: #ffde00;
  --odd: #ffe14a;
  --danger: #e15b5b;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --top: 60px;
}

html:not(.is-in) .top,
html:not(.is-in) .shell,
html:not(.is-in) #modal { display: none !important; }
html.is-in .gate { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #1c1c1c;
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--top);
  background: var(--header);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 14px 0 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 10px;
  flex: 0 0 auto;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 100%;
  gap: 4px;
  flex: 1 1 auto;
}
.main-nav a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  border-bottom: 3px solid transparent;
  opacity: 0.92;
}
.main-nav a:hover { opacity: 1; }
.main-nav a.is-on { border-bottom-color: #fff; font-weight: 700; }
.tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.tool-label {
  color: #fff;
  font-size: 13px;
  opacity: 0.95;
}
button.tool-label, button.az-lang {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.tool-label::after, [data-lang-label]::after { content: " ▾"; font-size: 10px; opacity: 0.8; }
.pp-bar button { background: transparent; border: 0; color: #fff; font: inherit; font-weight: 700; padding: 0; cursor: pointer; }
.lang-pop {
  position: fixed;
  z-index: 80;
  width: min(300px, calc(100vw - 16px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ececec;
  color: #222;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  padding: 4px 0;
}
.lang-pop[hidden] { display: none !important; }
.lang-pop button {
  background: transparent;
  border: 0;
  text-align: start;
  padding: 8px 14px;
  color: #333;
  font-size: 14px;
}
.lang-pop button.is-on { background: #fff; font-weight: 700; }
.search-screen {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #2b2b2b;
  display: flex;
  flex-direction: column;
}
.search-screen[hidden] { display: none !important; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  background: #126e51;
  padding: 0 10px 0 14px;
}
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
}
.search-field input {
  flex: 1;
  width: 100%;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  outline: none;
}
.search-field input::placeholder { color: rgba(255, 255, 255, 0.9); }
#searchClose {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 8px;
}
#searchClose b { color: #3dde7a; font-weight: 500; font-size: 18px; }
.search-body { flex: 1; overflow: auto; }
.search-kicker {
  color: #c8c8c8;
  padding: 16px 16px 10px;
  border-bottom: 1px solid #3f3f3f;
}
.search-hit {
  display: block;
  width: 100%;
  text-align: start;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 18px 16px;
}
.search-hit small {
  display: block;
  margin-top: 3px;
  color: #b5b5b5;
  font-size: 12px;
  font-weight: 500;
}
.search-screen {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #2b2b2b;
  display: flex;
  flex-direction: column;
}
.search-screen[hidden] { display: none !important; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  background: #126e51;
  padding: 0 10px 0 14px;
}
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
}
.search-field input {
  flex: 1;
  width: 100%;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  outline: none;
}
.search-field input::placeholder { color: rgba(255, 255, 255, .9); }
#searchClose {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
}
#searchClose b { color: #5dff9a; font-weight: 500; }
.search-body { flex: 1; overflow: auto; }
.search-kicker {
  color: #c8c8c8;
  padding: 16px 16px 10px;
  border-bottom: 1px solid #4a4a4a;
  font-size: 15px;
}
.search-hit {
  display: block;
  width: 100%;
  text-align: start;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 750;
  padding: 18px 16px;
}
.search-hit small {
  display: block;
  margin-top: 3px;
  color: #b5b5b5;
  font-size: 13px;
  font-weight: 500;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
}
.icon-btn:hover { background: rgba(0, 0, 0, 0.15); }
.search-input {
  height: 32px;
  border: 0;
  border-radius: 4px;
  padding: 0 10px;
  width: 180px;
  background: #fff;
  color: #222;
}
.account { display: flex; align-items: center; }
.who {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  margin-left: 6px;
  background: transparent;
  border: 0;
  padding: 0;
}
.profile-pop {
  position: fixed;
  top: 58px;
  right: 12px;
  width: min(380px, calc(100vw - 16px));
  background: #fff;
  color: #222;
  z-index: 60;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  border-radius: 2px;
  overflow: hidden;
}
.profile-pop[hidden] { display: none !important; }
.pp-top { padding: 14px 16px 10px; }
.pp-top b { display: block; font-size: 16px; }
.pp-wallet { margin-top: 8px; color: #444; display: flex; align-items: center; gap: 6px; }
.pp-wallet button { border: 0; background: transparent; color: #1a8f5c; font-size: 16px; padding: 0; }
.pp-bal { color: #14915f; font-size: 22px; font-weight: 800; margin: 4px 0 10px; }
.pp-time { display: flex; justify-content: space-between; gap: 8px; color: #555; font-size: 13px; }
.pp-bar {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  background: #17815a;
  color: #fff;
  padding: 8px 14px;
  font-weight: 700;
}
.pp-tools { background: #f4f4f4; padding: 8px 8px 12px; }
.pp-h { color: #17815a; font-weight: 800; border-bottom: 2px solid #17815a; display: inline-block; margin: 4px 8px 10px; padding-bottom: 4px; }
.pp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 4px; }
.pp-grid button {
  background: transparent;
  border: 0;
  color: #555;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  font-size: 13px;
}
.pp-grid button:hover { color: #17815a; }
.pp-out {
  display: block;
  text-align: right;
  padding: 10px 14px 12px;
  color: #333;
  text-decoration: none;
  font-weight: 700;
  background: #fff;
}
.acct-table, .acct-list, .acct-cards, .sec-form { max-width: 860px; }
.acct-table { display: flex; flex-direction: column; gap: 4px; }
.acct-table div, .acct-list div {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr .7fr .7fr .8fr;
  gap: 8px;
  background: #323232;
  padding: 8px 10px;
}
.acct-h { color: #bbb; font-size: 12px; }
.acct-list div { grid-template-columns: 140px 1fr; }
.acct-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.acct-cards article { background: #323232; padding: 14px; border-radius: 3px; }
.acct-cards span { display: block; color: #bbb; margin-bottom: 6px; }
.acct-cards b { font-size: 20px; }
.sec-form { display: flex; flex-direction: column; max-width: 360px; }
.sec-form label { margin: 8px 0 4px; color: #ddd; }
.sec-form input { height: 36px; border: 0; border-radius: 3px; padding: 0 8px; background: #fff; color: #222; }
.sec-form .place { margin-top: 12px; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0c3d2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='9' r='3.2' fill='white'/%3E%3Cpath d='M5 19c1.4-3 3.8-4.5 7-4.5S17.6 16 19 19' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.who b, .who em { display: block; font-style: normal; line-height: 1.15; }
.who b { font-size: 13px; }
.who em { font-size: 12px; opacity: .95; }

.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 248px 46px;
  min-height: calc(100vh - var(--top));
  background: var(--bg);
}
.shell.slip-open { grid-template-columns: 220px minmax(0, 1fr) 248px 300px; }
.shell.no-promo { grid-template-columns: 220px minmax(0, 1fr) 46px; }
.shell.no-promo.slip-open { grid-template-columns: 220px minmax(0, 1fr) 300px; }

.side {
  background: var(--side);
  border-right: 1px solid #222;
  min-height: calc(100vh - var(--top));
}
.side-head { padding: 10px 12px 6px; }
.date-select {
  width: 100%;
  background: #242424;
  color: #eee;
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  height: 32px;
  padding: 0 8px;
}
.all-list {
  display: block;
  margin: 8px 12px 6px;
  color: var(--yellow);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.sport-line {
  display: flex;
  align-items: center;
  padding-right: 8px;
}
.sport-line:hover, .sport-line.is-on { background: #3a3a3a; }
.sport-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 12px;
  background: transparent;
  border: 0;
  color: #eee;
  text-align: left;
  min-width: 0;
}
.sport-row .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star {
  border: 0;
  background: transparent;
  color: #8d8d8d;
  font-size: 14px;
  padding: 0 2px;
}
.star.is-on { color: var(--yellow); }
.sp-glyph { width: 22px; text-align: center; display: inline-flex; }
.sp-ico { display: block; }
.star svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; }
.star.is-on svg { fill: currentColor; stroke: currentColor; }
.az-head, .az-tabs, .az-mask { display: none; }

.main { padding: 12px 14px 28px; min-width: 0; }
.hero-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(268px, 1fr);
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.hero-card {
  position: relative;
  min-height: 198px;
  border-radius: 2px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.05) 42%, rgba(0,0,0,.62) 78%, rgba(0,0,0,.84) 100%),
    var(--hero) center 20% / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-top { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px 0; }
.hero-teams { display: flex; flex-direction: column; gap: 1px; font-weight: 700; font-size: 14px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.hero-when { text-align: right; font-size: 12px; color: #fff; line-height: 1.25; }
.hero-when b { display: block; font-size: 13px; }
.hero-odds { display: flex; background: rgba(0,0,0,.62); }
.hodd {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 8px 0 9px;
}
.hodd em { font-style: normal; font-size: 13px; }
.hodd b { color: #d6ef2a; font-size: 15px; font-weight: 700; }
.hodd.is-on { background: rgba(255,255,255,.08); }
.odd {
  background: rgba(8, 20, 16, 0.72);
  border: 0;
  border-radius: 2px;
  color: #fff;
  padding: 4px 4px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}
.odd em { font-style: normal; font-size: 11px; color: #d7d7d7; }
.odd b { color: var(--odd); font-size: 14px; font-weight: 700; }
.odd.is-on { outline: 1px solid var(--yellow); }

.block-title {
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.block-title.is-green { color: #7aab94; }
.soon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.soon button {
  background: #4a4a4a;
  border: 0;
  color: #fff;
  text-align: left;
  padding: 14px 16px 12px;
  border-radius: 2px;
}
.soon button strong { display: block; font-size: 15px; font-weight: 600; }
.soon button span { color: #d0d0d0; font-size: 12px; }
.soon button.is-on { background: #3a3a3a; box-shadow: inset 0 0 0 1px #666; }

.league-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.league-panel,
.cat-block {
  background: #2c2c2c;
  border: 1px solid #383838;
  border-radius: 5px;
  overflow: hidden;
}
.league-panel--special { margin-top: 14px; }
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8f8570;
  background: #262626;
  border-bottom: 1px solid #383838;
}
.panel-head::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  opacity: 0.65;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%238f8570' stroke-width='1.6'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.8 3.8 5.8 3.8 9s-1.3 6.2-3.8 9c-2.5-2.8-3.8-5.8-3.8-9S9.5 5.8 12 3z' fill='none' stroke='%238f8570' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cat-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #383838;
  color: #8faea0;
  font-weight: 600;
  font-size: 13px;
  background: #28302c;
}
.flag { width: 20px; height: 14px; object-fit: cover; display: block; border-radius: 2px; opacity: 0.92; }
.league-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.league-list a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  border-bottom: 1px solid #353535;
  transition: color 0.15s ease, background 0.15s ease;
}
.league-list li:last-child a { border-bottom: 0; }
.league-list a:hover {
  color: #c8bc8a;
  background: rgba(255, 255, 255, 0.025);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #ddd;
}
.crumb button {
  background: transparent;
  border: 0;
  color: var(--yellow);
  padding: 0;
}
.league-banner {
  margin: -12px -14px 0;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, #1a8f5c 0%, #0e6244 100%);
  color: #fff;
}
.league-banner button {
  background: transparent;
  border: 0;
  color: #fff;
  padding: 0;
  font-size: 14px;
}
.league-banner h2 { margin: 10px 0 12px; font-size: 28px; font-weight: 700; }
.league-tabs { display: flex; gap: 14px; align-items: center; }
.league-tabs button { font-size: 14px; opacity: .85; }
.league-tabs button.is-on {
  background: #1fbf62;
  border-radius: 999px;
  padding: 4px 12px;
  opacity: 1;
  font-weight: 700;
}
.board { --col: 78px; margin-top: 8px; }
.board-head, .board-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, var(--col)) 62px;
  align-items: center;
}
.board.cols-2 .board-head, .board.cols-2 .board-row {
  grid-template-columns: minmax(0, 1fr) repeat(2, var(--col)) 62px;
}
.board-head {
  background: #4a4a4a;
  color: #eee;
  min-height: 36px;
  font-size: 13px;
  position: sticky;
  top: var(--top);
  z-index: 5;
}
.board-head > span { text-align: center; }
.mkt { position: relative; padding-left: 10px; }
.mkt-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-weight: 700;
  padding: 8px 0;
}
.mkt-menu {
  position: absolute;
  left: 8px;
  top: 100%;
  z-index: 12;
  min-width: 210px;
  background: #f3f3f3;
  color: #222;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  padding: 6px 0;
}
.mkt-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #222;
  padding: 8px 14px;
}
.mkt-menu button.is-on { background: #fff; font-weight: 700; }
.date-h { padding: 10px 12px 4px; color: #cfcfcf; font-size: 12px; }
.board-row {
  background: #3a3a3a;
  border-bottom: 1px solid #4a4a4a;
  min-height: 68px;
}
.who-m { padding: 8px 12px; min-width: 0; cursor: pointer; }
.event-hero {
  margin: -12px -14px 0;
  padding: 14px 16px 18px;
  background: linear-gradient(180deg, #1a8f5c 0%, #0e6244 100%);
  color: #fff;
  text-align: center;
}
.event-back {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  color: #fff;
  text-align: left;
  padding: 0;
  font-size: 14px;
}
.event-when { margin-top: 12px; font-size: 14px; }
.event-vs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  font-size: 26px;
  font-weight: 800;
}
.event-vs i { font-style: normal; font-weight: 500; font-size: 16px; }
.ev-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 4px;
  align-items: center;
}
.ev-tabs button {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: #e8e8e8;
  padding: 6px 4px;
  font-size: 14px;
}
.ev-tabs button.is-on {
  background: #1fbf62;
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
}
.ev-mkt { margin: 16px 0 8px; }
.ev-mkt h3 { margin: 0 0 8px; font-size: 16px; }
.ev-picks { display: grid; }
.ev-picks.cols-2 { grid-template-columns: 1fr 1fr; }
.ev-picks.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.ev-odd {
  background: transparent;
  border: 0;
  color: #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 4px;
  font-size: 15px;
}
.ev-odd b { color: #ffe14a; font-weight: 700; }
.ev-odd.is-on { background: rgba(255, 225, 74, 0.12); }
.ev-table { display: flex; flex-direction: column; }
.ev-th, .ev-tr {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  align-items: center;
  text-align: center;
}
.ev-th { background: #4a4a4a; min-height: 34px; color: #eee; }
.ev-tr { background: #333; border-bottom: 1px solid #4a4a4a; min-height: 42px; }
.ev-line { color: #ddd; }
.ev-tr .ev-odd { width: 100%; }
.who-m b { display: block; font-size: 14px; line-height: 1.25; }
.who-m small { display: block; margin-top: 3px; color: #bdbdbd; font-size: 12px; }
.px {
  background: transparent;
  border: 0;
  color: #ffe14a;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 0;
}
.px.is-on { background: rgba(255, 225, 74, 0.12); }
.px.dim { color: #777; }
.more {
  background: transparent;
  border: 0;
  color: #ddd;
  text-align: right;
  padding-right: 8px;
  font-size: 13px;
}
.more-box { background: #2e2e2e; padding: 6px 10px 10px; }
.more-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; }
.more-line span { min-width: 140px; color: #ddd; }
.match-list { display: flex; flex-direction: column; gap: 4px; }
.match {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 210px;
  gap: 8px;
  align-items: center;
  background: #323232;
  padding: 8px 10px;
  border-radius: 2px;
}
.match .when { color: #cfcfcf; font-size: 12px; }
.match .teams { font-weight: 650; }
.match .teams small { display: block; color: #b5b5b5; font-weight: 500; font-size: 11px; }
.match .live-tag {
  display: inline-block;
  background: #c62828;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 2px;
  margin-right: 4px;
}
.row-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.row-odds.cols-2 { grid-template-columns: repeat(2, 1fr); }
.status {
  padding: 28px 8px;
  color: #ddd;
}
.markets {
  background: #2e2e2e;
  margin: -2px 0 6px;
  padding: 8px 10px 10px;
}
.m-name { color: #ccc; font-size: 12px; margin: 8px 0 4px; }
.m-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.m-grid .odd { min-width: 88px; background: #1d1d1d; }

.promos {
  background: #2f2f2f;
  border-left: 1px solid #222;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.promo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 168px;
  border-radius: 2px;
  padding: 14px 12px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: #111 center / cover no-repeat;
}
.promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.28) 52%, rgba(0,0,0,.08) 100%);
}
.promo.p1 { background-image: url("/img/promo-1.jpg?v=2"); }
.promo.p2 { background-image: url("/img/promo-2.jpg?v=2"); }
.promo.p3 { background-image: url("/img/promo-3.jpg?v=2"); }
.promo.p4 { background-image: url("/img/promo-4.jpg?v=2"); }
.promo strong, .promo span { position: relative; z-index: 1; }
.promo strong { display: block; font-size: 22px; line-height: 1.05; max-width: 168px; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.promo span { display: block; margin-top: 6px; color: #f2f2f2; font-size: 12px; max-width: 180px; }

.slip {
  background: #262626;
  border-left: 1px solid #1a1a1a;
  position: sticky;
  top: var(--top);
  height: calc(100vh - var(--top));
  overflow: auto;
}
.slip-tab {
  width: 100%;
  height: 100%;
  border: 0;
  background: #202020;
  color: #fff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 12px;
}
.slip-open .slip-tab { display: none; }
.slip-body { display: none; padding: 12px; }
.slip-open .slip-body { display: block; }
.slip-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  margin-bottom: 10px;
}
.slip-h button { background: transparent; border: 0; color: #fff; }
.pick {
  background: #333;
  padding: 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.pick b { display: block; }
.pick span { color: #cfcfcf; font-size: 12px; }
.pick .x { float: right; border: 0; background: transparent; color: #aaa; }
.stake {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 3px;
  padding: 0 8px;
  margin: 8px 0;
  background: #fff;
  color: #222;
}
.place {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 3px;
  background: var(--header);
  color: #fff;
  font-weight: 800;
}
.place:disabled { opacity: 0.5; cursor: default; }
.slip-meta { display: flex; justify-content: space-between; margin-top: 8px; color: #ddd; }
.note { color: var(--yellow); min-height: 18px; margin-top: 8px; }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 50;
  display: grid;
  place-items: center;
}
.dialog {
  width: 340px;
  background: linear-gradient(180deg, #1a3330 0%, #10211e 42%, #0c1614 100%);
  border-radius: 6px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
}
.dialog h2 { margin: 0 0 12px; font-size: 22px; }
.dialog label { display: block; font-size: 12px; margin: 8px 0 4px; color: #d7d7d7; }
.dialog input {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 2px;
  padding: 0 8px;
  background: #fff;
  color: #222;
}
.dialog .place { margin-top: 14px; background: #1aa36f; }
.dialog .alt {
  margin-top: 10px;
  background: transparent;
  border: 0;
  color: #d7d7d7;
  width: 100%;
}
.err { color: #ff8d8d; min-height: 16px; margin-top: 8px; }

.coupon, .tile {
  background: #323232;
  border-radius: 3px;
  padding: 12px;
  margin-bottom: 8px;
}
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { min-height: 120px; }
.tile strong { display: block; font-size: 18px; margin-bottom: 6px; }
.empty { color: #ccc; padding: 12px 0; }

.mhead, .m-sports, .view-tabs { display: none; }

@media (max-width: 1100px) {
  .shell, .shell.slip-open, .shell.no-promo, .shell.no-promo.slip-open {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .promos { display: none; }
  .slip { position: fixed; right: 0; top: var(--top); width: 46px; z-index: 25; }
  .shell.slip-open .slip { width: min(320px, 100%); }
  .soon, .tiles { grid-template-columns: 1fr 1fr; }
  .match { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --top: 52px; }
  .logo, .main-nav, .tool-label, #searchBtn, #accountSlot { display: none !important; }
  .top { padding: 0 6px; gap: 0; }
  .mhead {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 0;
  }
  .az-btn, .mhead a {
    border: 0;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    padding: 0 9px;
    height: 100%;
    display: inline-flex;
    align-items: center;
  }
  .mhead a.is-on { font-weight: 800; }
  .m-acc { margin-left: auto; }
  .m-acc .who {
    background: #fff;
    color: #0f6b48;
    border-radius: 999px;
    padding: 2px 8px 2px 2px;
    gap: 6px;
    margin: 0;
  }
  .m-acc .who b { display: none; }
  .m-acc .who em { color: #0f6b48; font-weight: 800; font-size: 13px; }
  .m-acc .avatar { width: 26px; height: 26px; background-color: #14915f; }
  .tools {
    position: absolute;
    left: 8px;
    right: 8px;
    top: calc(100% + 6px);
    width: auto;
    margin: 0;
    z-index: 40;
  }
  .search-input { width: 100%; }
  .m-sports {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    background: #2a2a2a;
    padding: 8px 4px 10px;
    position: sticky;
    top: var(--top);
    z-index: 20;
  }
  .m-sport {
    flex: 0 0 74px;
    border: 0;
    background: transparent;
    color: #e8e8e8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
  }
  .m-sport span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #3c3c3c;
    font-size: 18px;
  }
  .m-sport.is-on span { background: #1c7a4e; }
  .m-sport em {
    font-style: normal;
    font-size: 11px;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .shell, .shell.slip-open, .shell.no-promo, .shell.no-promo.slip-open { display: block; }
  .side, .promos { display: none !important; }
  .az-head {
    display: flex;
    align-items: center;
    min-height: 52px;
    background: #2a2a2a;
    flex: 0 0 auto;
  }
  .az-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0 10px;
    color: #ddd;
  }
  .az-search input {
    width: 100%;
    height: 40px;
    border: 0;
    background: transparent;
    color: #fff;
    outline: none;
  }
  .az-search input::placeholder { color: #cfcfcf; }
  .az-lang {
    flex: 0 0 auto;
    color: #fff;
    font-weight: 700;
    padding: 0 8px;
    white-space: nowrap;
  }
  .az-bal {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 52px;
    border: 0;
    background: #126e51;
    color: #fff;
    padding: 0 10px 0 8px;
    font-weight: 800;
  }
  .az-bal .avatar { width: 26px; height: 26px; background-color: #0c3d2e; background-size: 18px; }
  .az-bal em { font-style: normal; font-size: 13px; }
  .az-tabs {
    display: flex;
    overflow-x: auto;
    background: #2a2a2a;
    border-bottom: 1px solid #1a1a1a;
    flex: 0 0 auto;
  }
  .az-tabs button {
    flex: 0 0 92px;
    border: 0;
    background: transparent;
    color: #d7d7d7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px 8px;
    font-size: 12px;
  }
  .az-tabs button.is-on {
    color: #fff;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 #fff;
  }
  #sideBody { flex: 1; overflow: auto; }
  html.az-open .side-head { display: none; }
  html.az-open .all-list { color: #1fbf62; margin: 14px 14px 8px; font-size: 13px; }
  html.az-open .sport-row { font-size: 15px; padding: 11px 8px 11px 14px; }
  html.az-open .sport-line.is-on { background: #3a3a3a; }
  html.az-open .top,
  html.az-open .m-sports { visibility: hidden; }
  html.az-open .az-mask {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .62);
    z-index: 65;
  }
  html.az-open .side {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    z-index: 70;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(340px, 88vw);
    right: auto;
    overflow: hidden;
    background: #2a2a2a;
  }
  .main { padding: 8px 8px 72px; }
  .event-hero { margin: -8px -8px 0; }
  .league-banner { margin: -8px -8px 0; padding: 12px 12px 10px; }
  .league-banner h2 { font-size: 22px; }
  .board { --col: 54px; }
  .who-m b { font-size: 13px; }
  .px { font-size: 14px; }
  .board-head { top: calc(var(--top) + 72px); }
  .hero-row { grid-auto-columns: 86vw; gap: 8px; }
  .hero-card { min-height: 188px; }
  .soon { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .soon button { padding: 10px 8px; }
  .soon button strong { font-size: 13px; }
  .soon button span { font-size: 11px; }
  .view-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 14px 0 4px;
    border-bottom: 1px solid #555;
  }
  .view-tabs button {
    background: transparent;
    border: 0;
    color: #ddd;
    padding: 10px 0 8px;
    border-bottom: 2px solid transparent;
  }
  .view-tabs button.is-on { color: #8faea0; border-bottom-color: #6d9a86; font-weight: 600; }
  .view-tabs button { color: #a8a8a8; }
  .tiles { grid-template-columns: 1fr; gap: 11px; }
  .league-stack { gap: 8px; margin-top: 10px; }
  .league-list a { padding: 11px 12px; font-size: 14px; }
  .date-h { margin: 12px 0 6px; color: #8faea0; font-weight: 600; font-size: 12px; }
  .match { grid-template-columns: 1fr; }
  .row-odds { grid-template-columns: repeat(3, 1fr); }
  .slip {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 48px;
    border-left: 0;
    z-index: 35;
  }
  .slip-tab {
    writing-mode: horizontal-tb;
    transform: none;
    height: 48px;
    letter-spacing: 0.08em;
  }
  .shell.slip-open .slip {
    top: 0;
    height: 100%;
    width: 100%;
  }
}
