.matches-page {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 318px;
  gap: 14px;
  align-items: start;
}

.matches-main {
  min-width: 0;
}

.mobile-sportsbook-controls,
.mobile-filter-head,
.mobile-filter-open,
.mobile-filter-close,
.mobile-slip-toggle,
.mobile-slip-close {
  display: none;
}

.sportsbook-sidebar {
  position: sticky;
  top: 84px;
  min-width: 0;
}

.matches-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(15, 35, 58, 0.86), rgba(8, 20, 35, 0.74)),
    radial-gradient(circle at 12% 8%, rgba(34, 197, 94, 0.16), transparent 22rem);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matches-hero h1 {
  margin: 0 0 4px;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0;
}

.matches-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-stats {
  min-width: 112px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  text-align: right;
}

.hero-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero-stats strong {
  display: block;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.match-filters {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(10, 22, 38, 0.76);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  padding: 10px;
  margin-bottom: 0;
}

.sidebar-block {
  display: grid;
  gap: 6px;
}

.sidebar-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.match-search {
  position: relative;
}

.match-search span,
.filter-selects label span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.match-search input,
.filter-selects select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: rgba(5, 13, 25, 0.72);
  padding: 8px 10px;
  outline: none;
}

.match-search input:focus,
.filter-selects select:focus {
  border-color: rgba(34, 197, 94, 0.56);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filter-row.vertical {
  display: grid;
}

.filter-row.compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.sidebar-chip {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.sidebar-chip strong {
  color: inherit;
}

.filter-chip:hover,
.filter-chip.active {
  color: #04100a;
  border-color: var(--primary);
  background: var(--primary);
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sidebar-selects {
  grid-template-columns: 1fr;
}

.sidebar-list {
  display: grid;
  gap: 3px;
  max-height: 190px;
  overflow: auto;
}

.sidebar-list-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 7px;
  color: #cbd5e1;
  background: transparent;
  padding: 6px 7px;
  text-align: left;
  cursor: pointer;
}

.sidebar-list-item:hover,
.sidebar-list-item.active {
  color: #04100a;
  background: var(--primary);
}

.sidebar-list-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-list-item strong {
  flex: 0 0 auto;
}

.filter-count {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.filter-count strong {
  color: var(--accent);
  font-size: 18px;
}

.match-card[hidden] {
  display: none;
}

.matches-list {
  display: grid;
  gap: 0;
}

.odds-board {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(6, 16, 30, 0.82);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.odds-board-head,
.odds-board-row {
  display: grid;
  grid-template-columns: 52px minmax(170px, 1.35fr) 34px repeat(3, 58px) 58px 60px 60px 50px;
  gap: 4px;
  align-items: center;
}

.odds-board-head {
  position: relative;
  z-index: 2;
  color: var(--muted);
  background: rgba(5, 13, 25, 0.96);
  border-bottom: 1px solid var(--border);
  padding: 6px 7px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.odds-board-head span:nth-child(n+3) {
  text-align: center;
}

.double-chance-board-head,
.double-chance-row {
  grid-template-columns: 52px minmax(170px, 1.35fr) 34px repeat(3, 58px) 50px;
}

.odds-board-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 25px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  background: rgba(11, 24, 42, 0.96);
  padding: 5px 8px;
  font-size: 12px;
}

.odds-board-group strong {
  color: var(--accent);
}

.odds-board-group span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-card,
.market-detail-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(12, 26, 45, 0.92), rgba(8, 18, 32, 0.92));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.match-card {
  padding: 0;
  border-radius: 0;
}

.odds-board-row {
  min-height: 39px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(9, 20, 36, 0.82);
  box-shadow: none;
  padding: 4px 7px;
}

.odds-board-row:hover {
  background: rgba(14, 29, 50, 0.94);
}

.board-time {
  display: grid;
  gap: 2px;
}

.board-time strong {
  color: #dbeafe;
  font-size: 11px;
}

.board-time span {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
}

.board-teams {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.board-teams strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 11px;
  line-height: 1.2;
}

.board-stats {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.board-stats span,
.board-stats span::before,
.board-stats span::after {
  display: block;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

.board-stats span {
  position: relative;
}

.board-stats span::before,
.board-stats span::after {
  content: "";
  position: absolute;
  left: 0;
}

.board-stats span::before {
  top: -5px;
  width: 8px;
}

.board-stats span::after {
  top: 5px;
  width: 15px;
}

.board-goals-line,
.board-more-link,
.board-empty-odd {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 950;
}

.board-goals-line {
  gap: 4px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
}

.board-goals-line span {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--primary);
}

.board-more-link {
  color: var(--primary);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.28);
  text-decoration: none;
}

.board-empty-odd {
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.match-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.league-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kickoff-time {
  flex: 0 0 auto;
  color: #cbd5e1;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.match-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin-bottom: 8px;
}

.match-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(270px, 1.6fr) auto;
  gap: 9px;
  align-items: center;
}

.match-teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.match-teams em {
  color: var(--muted-2);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.more-outcomes-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(34, 197, 94, 0.34);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(34, 197, 94, 0.08);
  padding: 6px 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.more-outcomes-link span {
  color: var(--accent);
}

.market-block {
  margin-top: 7px;
}

.market-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 5px;
}

.market-title small {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
}

.odds-grid {
  display: grid;
  gap: 5px;
}

.odds-grid.three,
.market-detail-odds {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.odds-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.odd-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label price"
    "name price";
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(24, 44, 70, 0.95), rgba(16, 31, 52, 0.95));
  padding: 7px 8px;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.board-odd {
  min-height: 28px;
  grid-template-columns: 1fr;
  grid-template-areas: "price";
  justify-items: center;
  padding: 4px 5px;
  border-color: rgba(34, 197, 94, 0.26);
  background: linear-gradient(180deg, rgba(25, 68, 49, 0.94), rgba(15, 48, 37, 0.94));
}

.board-odd:hover {
  border-color: rgba(250, 204, 21, 0.72);
}

.board-odd .odd-price {
  font-size: 13px;
  color: var(--accent);
}

.odd-box:hover {
  transform: translateY(-1px);
  border-color: rgba(250, 204, 21, 0.58);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.odd-box.active {
  border-color: rgba(34, 197, 94, 0.9);
  background: linear-gradient(180deg, rgba(23, 135, 70, 0.92), rgba(13, 92, 49, 0.94));
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.18), 0 10px 28px rgba(34, 197, 94, 0.16);
}

.odd-label {
  grid-area: label;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.odd-box strong {
  grid-area: name;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
}

.odd-price {
  grid-area: price;
  color: var(--accent);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0;
}

.odd-box.active .odd-label,
.odd-box.active strong {
  color: #dcfce7;
}

.quick-market-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 260px);
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.quick-market-row > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.matches-list.is-loading {
  pointer-events: none;
}

.skeleton-board-row {
  cursor: wait;
}

.skeleton-cell,
.skeleton-teams span,
.skeleton-group strong,
.skeleton-group span {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.08) 0%,
      rgba(148, 163, 184, 0.18) 42%,
      rgba(34, 197, 94, 0.14) 52%,
      rgba(148, 163, 184, 0.08) 100%
    );
  background-size: 220% 100%;
  animation: oddsSkeletonPaint 1.1s ease-in-out infinite;
}

.skeleton-group strong {
  width: 86px;
  height: 11px;
}

.skeleton-group span {
  width: min(360px, 62%);
  height: 11px;
}

.skeleton-time {
  width: 40px;
  height: 18px;
}

.skeleton-teams {
  display: grid;
  gap: 5px;
}

.skeleton-teams span {
  width: 72%;
  height: 10px;
}

.skeleton-teams span + span {
  width: 56%;
}

.skeleton-icon {
  justify-self: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.skeleton-odd,
.skeleton-line,
.skeleton-more {
  width: 100%;
  height: 26px;
}

@keyframes oddsSkeletonPaint {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

.match-empty-state {
  padding: 18px;
}

.market-groups {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.market-detail-card {
  padding: 14px;
}

.market-detail-title {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
}

.market-detail-odds {
  display: grid;
  gap: 8px;
}

.match-detail-main {
  display: grid;
  gap: 12px;
}

.match-detail-hero {
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(12, 28, 48, 0.94), rgba(7, 17, 31, 0.92)),
    radial-gradient(circle at 92% 0%, rgba(34, 197, 94, 0.12), transparent 18rem);
  box-shadow: var(--shadow);
  padding: 12px 13px;
}

.match-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 9px;
}

.match-detail-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.match-detail-title-row h1 {
  max-width: 760px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  color: var(--text);
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: 0;
}

.change-match-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  padding: 0 13px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.change-match-btn span {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--primary);
}

.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  border-bottom: 1px solid var(--border);
  padding: 0 2px;
}

.market-tabs button {
  position: relative;
  border: 0;
  color: #cbd5e1;
  background: transparent;
  padding: 9px 0 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.market-tabs button:hover,
.market-tabs button.active {
  color: var(--text);
}

.market-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--primary);
}

.detail-market-groups {
  gap: 10px;
  margin-top: 0;
}

.sporty-market-card {
  border-radius: 0;
  border-width: 0 0 1px;
  background: transparent;
  box-shadow: none;
  padding: 7px 0 9px;
}

.sporty-market-card .market-detail-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e2e8f0;
  font-size: 15px;
  margin-bottom: 7px;
}

.sporty-market-card .market-detail-title small {
  color: var(--muted-2);
  font-size: 12px;
  margin-left: auto;
}

.collapse-caret {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.18);
  position: relative;
}

.collapse-caret::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--primary);
}

.sporty-market-card .market-detail-odds {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.sporty-odd-box {
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label price";
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(21, 39, 63, 0.96), rgba(13, 27, 47, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
}

.sporty-odd-box:hover {
  transform: translateY(-1px);
  border-color: rgba(250, 204, 21, 0.6);
  background: linear-gradient(180deg, rgba(28, 51, 80, 0.98), rgba(17, 36, 60, 0.98));
}

.sporty-odd-box.active {
  background: linear-gradient(180deg, rgba(24, 155, 78, 0.96), rgba(10, 106, 53, 0.96));
  border-color: rgba(34, 197, 94, 0.95);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.22), 0 10px 26px rgba(34, 197, 94, 0.16);
}

.sporty-odd-box .odd-label {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 850;
}

.sporty-odd-box .odd-price {
  color: var(--accent);
  font-size: 16px;
  font-weight: 950;
}

.sporty-odd-box.active .odd-label,
.sporty-odd-box.active .odd-price {
  color: #f0fdf4;
}

.sporty-market-card[hidden] {
  display: none;
}

.back-link {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.bet-slip {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 84px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(7, 18, 32, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 11px;
}

.slip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.bet-slip h2 {
  margin: 0;
  font-size: 18px;
}

.slip-head > strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #04100a;
  background: var(--accent);
  font-weight: 950;
}

.slip-items {
  display: grid;
  flex: 1 1 auto;
  gap: 7px;
  min-height: 0;
  max-height: min(36vh, 330px);
  overflow: auto;
  padding-right: 2px;
}

.empty-slip {
  display: grid;
  gap: 3px;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}

.empty-slip strong {
  color: var(--text);
}

.empty-slip span {
  font-size: 13px;
}

.slip-selection {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(16, 31, 52, 0.78);
  padding: 9px;
}

.slip-selection-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.slip-selection-top strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slip-selection-top span,
.summary-row strong {
  color: var(--accent);
  font-weight: 950;
}

.slip-selection-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.slip-summary {
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.summary-row input,
.summary-row select {
  width: 112px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 7px 9px;
  text-align: right;
  outline: none;
}

.summary-row select {
  appearance: none;
  min-width: 112px;
  padding-right: 28px;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%2394a3b8' d='m5.5 7.5 4.5 4.5 4.5-4.5 1.4 1.4-5.9 5.9-5.9-5.9z'/%3E%3C/svg%3E");
  background-position: right 9px center;
  background-repeat: no-repeat;
}

.summary-row select option {
  background: #091827;
  color: var(--text);
}

.summary-row input:focus,
.summary-row select:focus {
  border-color: rgba(34, 197, 94, 0.62);
}

.bonus-summary-row strong {
  color: #fca5a5;
}

.slip-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.save-slip-btn,
.clear-slip-btn,
.remove-selection-btn {
  border-radius: 10px;
  font-weight: 950;
  cursor: pointer;
}

.save-slip-btn {
  border: 0;
  color: #031108;
  background: linear-gradient(180deg, #34d66f, var(--primary-hover));
  padding: 9px 10px;
}

.save-slip-btn:hover {
  background: linear-gradient(180deg, #4ade80, #15803d);
}

.save-slip-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.clear-slip-btn,
.remove-selection-btn {
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.06);
  padding: 9px 11px;
}

.clear-slip-btn:hover,
.remove-selection-btn:hover {
  background: rgba(239, 68, 68, 0.14);
}

.remove-selection-btn {
  width: 100%;
  margin-top: 6px;
}

.slip-message {
  display: none;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
}

.slip-message.success {
  display: block;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.12);
  color: #dcfce7;
}

.slip-message.error {
  display: block;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
  color: #fee2e2;
}

@media (max-width: 1120px) {
  .matches-page {
    grid-template-columns: minmax(0, 1fr) 318px;
  }

  .sportsbook-sidebar {
    position: static;
    grid-column: 1 / -1;
  }

  .match-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }

  .bet-slip {
    top: 84px;
    max-height: calc(100vh - 96px);
  }

  .slip-items {
    max-height: min(34vh, 300px);
  }

  .odds-board {
    overflow-x: auto;
  }

  .odds-board-head,
  .odds-board-row {
    min-width: 820px;
  }
}

@media (max-width: 760px) {
  .matches-page {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bet-slip {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .match-filters {
    grid-template-columns: 1fr;
  }

  .matches-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-stats {
    text-align: left;
  }

  .filter-selects {
    grid-template-columns: 1fr;
  }

  .match-header-row {
    grid-template-columns: 1fr;
  }

  .match-row {
    grid-template-columns: 1fr;
  }

  .more-outcomes-link {
    justify-content: center;
  }

  .odds-grid.three,
  .market-detail-odds {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .matches-page {
    display: block;
  }

  .matches-main {
    display: grid;
    gap: 8px;
  }

  .mobile-sportsbook-controls {
    position: sticky;
    top: 52px;
    z-index: 15;
    display: grid;
    gap: 7px;
    margin: -2px 0 0;
    padding: 7px 0;
    background: rgba(5, 13, 25, 0.96);
  }

  .mobile-control-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }

  .mobile-chip-row,
  .board-market-filter,
  .match-detail-page .market-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .mobile-chip-row::-webkit-scrollbar,
  .board-market-filter::-webkit-scrollbar,
  .match-detail-page .market-tabs::-webkit-scrollbar {
    display: none;
  }

  .mobile-chip-row .filter-chip,
  .board-market-filter .filter-chip,
  .match-detail-page .market-tabs button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 11px;
    font-size: 12px;
  }

  .mobile-filter-open,
  .mobile-filter-close,
  .mobile-slip-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid rgba(34, 197, 94, 0.36);
    border-radius: 9px;
    color: var(--primary);
    background: rgba(34, 197, 94, 0.08);
    padding: 0 11px;
    font-size: 12px;
    font-weight: 950;
  }

  .sportsbook-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(86vw, 340px);
    max-height: none;
    overflow-y: auto;
    padding: 10px;
    background: rgba(5, 13, 25, 0.98);
    box-shadow: 18px 0 46px rgba(0, 0, 0, 0.38);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .sportsbook-sidebar.is-open {
    transform: translateX(0);
  }

  .mobile-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-filter-head strong {
    color: var(--text);
    font-size: 14px;
  }

  .match-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .matches-hero {
    display: none;
  }

  .board-toolbar {
    display: none;
  }

  .board-sort {
    display: none;
  }

  .odds-board {
    overflow: visible;
    border-radius: 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .odds-board-head {
    display: none;
  }

  .odds-board-group {
    min-height: 28px;
    border: 0;
    border-radius: 7px;
    margin: 8px 0 5px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .odds-board-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) repeat(3, 48px) 54px;
    gap: 5px;
    min-height: 54px;
    margin-bottom: 5px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: rgba(9, 20, 36, 0.9);
    padding: 7px;
  }

  .board-time {
    align-self: start;
  }

  .board-time strong {
    font-size: 11px;
  }

  .board-time span {
    display: none;
  }

  .board-teams strong {
    max-width: 100%;
    font-size: 12px;
  }

  .board-stats,
  .board-goals-line,
  .board-odd-extra {
    display: none;
  }

  .board-odd,
  .board-empty-odd {
    min-height: 38px;
    border-radius: 7px;
  }

  .board-odd .odd-price {
    font-size: 13px;
  }

  .board-more-link {
    min-height: 38px;
    border-radius: 7px;
    font-size: 10px;
  }

  .board-count {
    padding: 2px 2px 0;
    font-size: 12px;
  }

  .bet-slip,
  .match-detail-page .detail-bet-slip {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    top: auto;
    z-index: 70;
    max-height: min(78vh, 620px);
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    border-width: 1px 0 0;
    background: rgba(7, 18, 32, 0.98);
    box-shadow: 0 -22px 52px rgba(0, 0, 0, 0.45);
    transform: translateY(calc(100% + 72px));
    transition: transform 180ms ease;
  }

  .bet-slip .slip-items,
  .match-detail-page .detail-bet-slip .slip-items {
    max-height: min(42vh, 340px);
  }

  .bet-slip.is-open,
  .match-detail-page .detail-bet-slip.is-open {
    transform: translateY(0);
  }

  .mobile-slip-close {
    margin-left: auto;
    margin-bottom: 8px;
  }

  .mobile-slip-toggle {
    position: fixed;
    right: 14px;
    bottom: calc(var(--mobile-bottom-nav-height, 68px) + env(safe-area-inset-bottom) + 14px);
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    border: 1px solid rgba(250, 204, 21, 0.48);
    border-radius: 999px;
    color: #04100a;
    background: var(--accent);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.3);
    padding: 0 9px 0 12px;
    font-size: 12px;
    font-weight: 900;
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  }

  .mobile-slip-toggle > svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-slip-toggle strong {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    color: var(--accent);
    background: #04100a;
    padding: 0 5px;
    font-size: 11px;
  }

  .mobile-slip-toggle.has-selections {
    border-color: rgba(250, 204, 21, 0.85);
  }

  .mobile-slip-toggle.is-slip-open {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
  }

  .mobile-slip-toggle:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
  }

  .slip-items {
    max-height: 34vh;
  }
}

/* Sportsbook shell refinements */
.matches-page {
  grid-template-columns: 260px minmax(0, 1fr) 318px;
}

.sportsbook-sidebar {
  max-height: calc(100vh - 94px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 197, 94, 0.45) rgba(255, 255, 255, 0.04);
}

.sportsbook-sidebar::-webkit-scrollbar,
.slip-items::-webkit-scrollbar {
  width: 6px;
}

.sportsbook-sidebar::-webkit-scrollbar-track,
.slip-items::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
}

.sportsbook-sidebar::-webkit-scrollbar-thumb,
.slip-items::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.45);
}

.match-filters {
  gap: 8px;
  border-radius: 10px;
  box-shadow: none;
}

.sidebar-block {
  min-width: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 8px;
}

.sidebar-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.sidebar-title {
  font-size: 10px;
}

.match-search input,
.filter-selects select {
  min-width: 0;
  height: 34px;
  font-size: 12px;
}

.filter-chip {
  min-width: 0;
  padding: 5px 8px;
  font-size: 11px;
}

.filter-chip.sidebar-chip,
.sidebar-list-item {
  border-radius: 6px;
  padding: 6px 7px;
  line-height: 1.15;
}

.filter-chip.sidebar-chip {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.035);
  border-color: transparent;
}

.filter-chip.sidebar-chip span,
.sidebar-list-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-chip.sidebar-chip strong,
.sidebar-list-item strong {
  flex: 0 0 auto;
  min-width: 24px;
  text-align: right;
  color: var(--accent);
}

.filter-chip.sidebar-chip.active strong,
.filter-chip.sidebar-chip:hover strong,
.sidebar-list-item.active strong,
.sidebar-list-item:hover strong {
  color: #04100a;
}

.sidebar-list {
  max-height: none;
  overflow: visible;
  gap: 2px;
}

.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(10, 22, 38, 0.7);
  padding: 6px 18px;
  margin-bottom: 8px;
}

.board-market-group {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  gap: 8px;
}

.board-toolbar-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.board-market-filter {
  display: flex;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 8px;
}

.board-market-filter .filter-chip {
  flex: 0 0 auto;
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(5, 13, 25, 0.62);
}

.board-market-filter .filter-chip.active {
  color: #04100a;
  border-color: var(--primary);
  background: var(--primary);
}

.board-market-filter .filter-chip:not(.active):hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(30, 48, 70, 0.72);
}

.board-market-filter .filter-chip:focus-visible,
.board-sort select:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.board-sort {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.board-sort select {
  width: 160px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: rgba(5, 13, 25, 0.78);
  padding: 0 8px;
  font-size: 12px;
  outline: none;
}

.odds-board {
  overflow-x: hidden;
}

.odds-board-head,
.odds-board-row {
  grid-template-columns: 50px minmax(150px, 1.35fr) 30px repeat(3, minmax(48px, 56px)) 54px 58px 58px 48px;
}

.odds-board-head {
  padding: 5px 6px;
}

.odds-board-row {
  min-height: 36px;
  padding: 3px 6px;
}

.board-teams strong {
  font-size: 11px;
}

.board-odd,
.board-goals-line,
.board-more-link,
.board-empty-odd {
  min-height: 26px;
  border-radius: 6px;
}

.board-odd .odd-price {
  font-size: 12px;
}

.board-more-link {
  font-size: 10px;
}

@media (max-width: 1280px) {
  .matches-page {
    grid-template-columns: 240px minmax(0, 1fr) 300px;
  }

  .odds-board {
    overflow-x: auto;
  }

  .odds-board-head,
  .odds-board-row {
    min-width: 760px;
  }
}

@media (max-width: 1120px) {
  .matches-page {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .sportsbook-sidebar {
    position: static;
    grid-column: 1 / -1;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .match-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 760px) {
  .matches-page {
    grid-template-columns: 1fr;
  }

  .match-filters {
    grid-template-columns: 1fr;
  }

  .bet-slip {
    position: static;
  }
}

/* Match detail sportsbook layout */
.match-detail-page {
  display: grid;
  grid-template-columns: 240px minmax(650px, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.detail-sidebar {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 94px);
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 197, 94, 0.45) rgba(255, 255, 255, 0.04);
}

.detail-sidebar::-webkit-scrollbar {
  width: 6px;
}

.detail-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
}

.detail-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.45);
}

.detail-side-nav {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(7, 18, 32, 0.78);
  box-shadow: var(--shadow);
  padding: 8px;
}

.detail-nav-item,
.detail-side-section a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.035);
  padding: 0 9px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}

.detail-nav-item span,
.detail-side-section a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-nav-item:hover,
.detail-nav-item.active,
.detail-side-section a:hover {
  color: #04100a;
  border-color: rgba(34, 197, 94, 0.56);
  background: var(--primary);
}

.detail-side-section {
  display: grid;
  gap: 4px;
  min-width: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  margin-top: 4px;
  padding-top: 8px;
}

.detail-side-section strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.match-detail-page .match-detail-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.match-detail-page .match-detail-hero {
  padding: 13px 14px;
}

.match-detail-page .match-detail-meta {
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
}

.match-detail-page .match-detail-meta span {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  padding: 4px 8px;
}

.match-detail-page .match-detail-title-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.match-detail-page .match-detail-title-row > div {
  min-width: 0;
}

.match-detail-page .match-detail-title-row h1 {
  max-width: none;
  overflow: visible;
  color: var(--text);
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.15;
  text-overflow: clip;
  white-space: normal;
  word-break: normal;
}

.match-detail-page .market-tabs {
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(10, 22, 38, 0.72);
  padding: 6px;
}

.match-detail-page .market-tabs button {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12px;
}

.match-detail-page .market-tabs button.active {
  color: #04100a;
  border-color: rgba(34, 197, 94, 0.72);
  background: var(--primary);
}

.match-detail-page .market-tabs button.active::after {
  display: none;
}

.match-detail-page .detail-market-groups {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.match-detail-page .sporty-market-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(7, 18, 32, 0.74);
  box-shadow: none;
  padding: 10px;
}

.match-detail-page .sporty-market-card .market-detail-title {
  min-width: 0;
  margin-bottom: 8px;
  font-size: 13px;
}

.match-detail-page .sporty-market-card .market-detail-title > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-detail-page .sporty-market-card .market-detail-title small {
  flex: 0 0 auto;
}

.match-detail-page .sporty-market-card .market-detail-odds {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 6px;
}

.match-detail-page .sporty-odd-box {
  min-width: 0;
  min-height: 40px;
  padding: 7px 9px;
}

.match-detail-page .sporty-odd-box .odd-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-detail-page .sporty-odd-box .odd-price {
  padding-left: 8px;
  white-space: nowrap;
}

.match-detail-page .detail-bet-slip {
  position: sticky;
  top: 84px;
  width: 100%;
  min-width: 0;
}

@media (max-width: 1280px) {
  .match-detail-page {
    grid-template-columns: 220px minmax(520px, 1fr) 310px;
  }
}

@media (max-width: 1120px) {
  .match-detail-page {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .detail-sidebar {
    position: static;
    grid-column: 1 / -1;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .match-detail-page {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    display: none;
  }

  .match-detail-page .match-detail-title-row {
    grid-template-columns: 1fr;
  }

  .match-detail-page .market-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .match-detail-page .market-tabs button {
    flex: 0 0 auto;
  }

  .match-detail-page .detail-bet-slip {
    position: static;
  }
}

@media (max-width: 767px) {
  .match-detail-page {
    display: block;
  }

  .match-detail-page .match-detail-main {
    gap: 8px;
  }

  .match-detail-page .match-detail-hero {
    border-radius: 8px;
    padding: 10px;
  }

  .match-detail-page .match-detail-meta {
    gap: 5px;
    margin-bottom: 7px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .match-detail-page .match-detail-meta::-webkit-scrollbar {
    display: none;
  }

  .match-detail-page .match-detail-meta span {
    flex: 0 0 auto;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px 7px;
  }

  .match-detail-page .match-detail-title-row h1 {
    font-size: 18px;
  }

  .change-match-btn {
    min-height: 34px;
    justify-content: center;
    padding: 0 10px;
    font-size: 12px;
  }

  .match-detail-page .market-tabs {
    position: sticky;
    top: 52px;
    z-index: 14;
    margin: 0 -8px;
    border-radius: 0;
    border-width: 0 0 1px;
    background: rgba(5, 13, 25, 0.96);
    padding: 7px 8px;
  }

  .match-detail-page .sporty-market-card {
    border-radius: 8px;
    padding: 8px;
  }

  .match-detail-page .sporty-market-card .market-detail-title {
    font-size: 12px;
  }

  .match-detail-page .sporty-market-card .market-detail-odds {
    grid-template-columns: 1fr;
  }

  .match-detail-page .sporty-odd-box {
    min-height: 44px;
  }
}

@media (max-width: 767px) {
  .matches-page {
    display: block;
    grid-template-columns: 1fr;
  }

  .sportsbook-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(86vw, 340px);
    max-height: none;
    overflow-y: auto;
    padding: 10px;
    background: rgba(5, 13, 25, 0.98);
    box-shadow: 18px 0 46px rgba(0, 0, 0, 0.38);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .sportsbook-sidebar.is-open {
    transform: translateX(0);
  }

  .matches-hero,
  .detail-sidebar,
  .odds-board-head,
  .board-sort,
  .board-stats,
  .board-goals-line,
  .board-odd-extra {
    display: none;
  }

  .mobile-sportsbook-controls {
    display: grid;
  }

  .board-toolbar {
    display: none;
  }

  .board-market-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .odds-board {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .odds-board-head,
  .odds-board-row {
    min-width: 0;
  }

  .odds-board-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) repeat(3, 48px) 54px;
    gap: 5px;
    min-height: 54px;
    margin-bottom: 5px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: rgba(9, 20, 36, 0.9);
    padding: 7px;
  }

  .board-odd,
  .board-empty-odd,
  .board-more-link {
    min-height: 38px;
    border-radius: 7px;
  }

  .bet-slip,
  .match-detail-page .detail-bet-slip {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    top: auto;
    z-index: 70;
    max-height: min(78vh, 620px);
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    border-width: 1px 0 0;
    background: rgba(7, 18, 32, 0.98);
    box-shadow: 0 -22px 52px rgba(0, 0, 0, 0.45);
    transform: translateY(calc(100% + 72px));
    transition: transform 180ms ease;
  }

  .bet-slip .slip-items,
  .match-detail-page .detail-bet-slip .slip-items {
    max-height: min(42vh, 340px);
  }

  .bet-slip.is-open,
  .match-detail-page .detail-bet-slip.is-open {
    transform: translateY(0);
  }

  .match-detail-page {
    display: block;
    grid-template-columns: 1fr;
  }

  .match-detail-page .market-tabs {
    position: sticky;
    top: 52px;
    z-index: 14;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -8px;
    border-radius: 0;
    border-width: 0 0 1px;
    background: rgba(5, 13, 25, 0.96);
    padding: 7px 8px;
  }

  .match-detail-page .market-tabs button {
    flex: 0 0 auto;
  }

  .match-detail-page .sporty-market-card .market-detail-odds {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .match-detail-page,
  .match-detail-page *,
  .match-detail-page *::before,
  .match-detail-page *::after {
    max-width: 100%;
    box-sizing: border-box;
  }

  .match-detail-page {
    display: block;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .match-detail-page .detail-sidebar {
    display: none;
  }

  .match-detail-page .match-detail-main {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .match-detail-page .match-detail-hero {
    width: 100%;
    overflow: hidden;
    border-radius: 9px;
    padding: 10px;
  }

  .match-detail-page .match-detail-title-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: 0;
  }

  .match-detail-page .match-detail-title-row > div {
    min-width: 0;
  }

  .match-detail-page .eyebrow {
    display: block;
    max-width: 100%;
    margin-bottom: 5px;
    overflow: hidden;
    color: var(--primary);
    font-size: 10px;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-detail-page .match-detail-title-row h1 {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--text);
    font-size: 18px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-detail-page .match-detail-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    margin: 0 0 7px;
    overflow: hidden;
  }

  .match-detail-page .match-detail-meta span {
    min-width: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-detail-page .match-detail-meta span:nth-child(3),
  .match-detail-page .match-detail-meta span:nth-child(4),
  .match-detail-page .match-detail-meta span:nth-child(5) {
    display: none;
  }

  .match-detail-page .match-detail-meta span:nth-child(2) {
    justify-self: end;
    color: var(--accent);
  }

  .match-detail-page .change-match-btn {
    width: 100%;
    min-height: 36px;
    justify-content: center;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 12px;
  }

  .match-detail-page .market-tabs {
    position: sticky;
    top: 52px;
    z-index: 14;
    display: flex;
    width: calc(100% + 16px);
    max-width: calc(100% + 16px);
    margin: 0 -8px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    gap: 6px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(5, 13, 25, 0.96);
    padding: 7px 8px;
    scrollbar-width: none;
  }

  .match-detail-page .market-tabs::-webkit-scrollbar {
    display: none;
  }

  .match-detail-page .market-tabs button {
    flex: 0 0 auto;
    min-width: auto;
    min-height: 34px;
    border-radius: 999px;
    padding: 7px 11px;
    white-space: nowrap;
  }

  .match-detail-page .detail-market-groups {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 7px;
  }

  .match-detail-page .sporty-market-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    padding: 8px;
  }

  .match-detail-page .sporty-market-card .market-detail-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 7px;
    align-items: center;
    margin-bottom: 7px;
    font-size: 12px;
  }

  .match-detail-page .sporty-market-card .market-detail-title > span:nth-child(2) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-detail-page .sporty-market-card .market-detail-title small {
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-detail-page .sporty-market-card .market-detail-odds {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
    min-width: 0;
  }

  .match-detail-page .sporty-odd-box,
  .match-detail-page .odd-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "label price";
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    border-radius: 8px;
    padding: 8px 10px;
  }

  .match-detail-page .sporty-odd-box .odd-label,
  .match-detail-page .odd-box .odd-label {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-detail-page .sporty-odd-box .odd-price,
  .match-detail-page .odd-box .odd-price {
    flex: 0 0 auto;
    padding-left: 10px;
    font-size: 15px;
    white-space: nowrap;
  }

  .match-detail-page .detail-bet-slip {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    top: auto;
    z-index: 70;
    width: 100%;
    max-height: min(78vh, 620px);
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    border-width: 1px 0 0;
    transform: translateY(calc(100% + 72px));
  }

  .match-detail-page .detail-bet-slip.is-open {
    transform: translateY(0);
  }

  .match-detail-page .mobile-slip-toggle {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .match-detail-page .sporty-market-card.mobile-layout-3 .market-detail-odds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .match-detail-page .sporty-market-card.mobile-layout-2 .market-detail-odds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-detail-page .sporty-market-card.mobile-layout-stack .market-detail-odds {
    grid-template-columns: 1fr;
  }

  .match-detail-page .sporty-market-card.mobile-layout-3 .sporty-odd-box,
  .match-detail-page .sporty-market-card.mobile-layout-2 .sporty-odd-box {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "price";
    align-content: space-between;
    min-width: 0;
    min-height: 50px;
    padding: 7px 7px 6px;
  }

  .match-detail-page .sporty-market-card.mobile-layout-3 .odd-label,
  .match-detail-page .sporty-market-card.mobile-layout-2 .odd-label {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-detail-page .sporty-market-card.mobile-layout-3 .odd-price,
  .match-detail-page .sporty-market-card.mobile-layout-2 .odd-price {
    justify-self: end;
    padding-left: 0;
    font-size: 14px;
    line-height: 1;
  }

  .match-detail-page .sporty-market-card.mobile-layout-2 .sporty-odd-box {
    min-height: 46px;
  }
}

@media (min-width: 768px) {
  .matches-page > .bet-slip,
  .match-detail-page > .detail-bet-slip {
    position: fixed;
    top: 84px;
    right: max(14px, calc((100vw - 1480px) / 2 + 32px));
    z-index: 19;
    width: 318px;
    height: calc(100vh - 96px);
    height: calc(100dvh - 96px);
    max-height: calc(100vh - 96px);
    overflow: hidden;
  }

  .match-detail-page > .detail-bet-slip {
    width: 330px;
  }

  .matches-page > .bet-slip .slip-items,
  .match-detail-page > .detail-bet-slip .slip-items {
    max-height: none;
  }
}

@media (min-width: 768px) and (max-width: 1280px) {
  .matches-page > .bet-slip {
    width: 300px;
  }

  .match-detail-page > .detail-bet-slip {
    width: 310px;
  }
}
.active-profile-panel {
  display: grid;
  gap: 5px;
  margin: 0 10px 10px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.07);
  padding: 10px;
}

.active-profile-panel > span,
.active-profile-panel small {
  color: var(--muted);
  font-size: 11px;
}

.active-profile-panel > strong { color: var(--primary); }
.active-profile-panel select { appearance: none; width: 100%; min-height: 40px; border: 1px solid #34475c; border-radius: 8px; outline: 0; background-color: #091827; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%2394a3b8' d='m5.5 7.5 4.5 4.5 4.5-4.5 1.4 1.4-5.9 5.9-5.9-5.9z'/%3E%3C/svg%3E"); background-position: right 10px center; background-repeat: no-repeat; padding: 0 34px 0 10px; color: var(--text); }
.active-profile-panel select:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .17); }
.active-profile-panel select option { background: #091827; color: var(--text); }

/* Keep mobile bet-slip actions reachable with any number of selections. */
@media (max-width: 767px) {
  body.mobile-slip-open {
    overflow: hidden;
  }

  .matches-page > .bet-slip,
  .match-detail-page > .detail-bet-slip {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 8px);
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(11px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }

  .matches-page > .bet-slip .slip-items,
  .match-detail-page > .detail-bet-slip .slip-items {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .mobile-slip-close {
    position: sticky;
    z-index: 2;
    top: 0;
    background: #091827;
  }
}
.active-profile-panel a { color: var(--primary); font-size: 12px; font-weight: 800; }

.precise-match-filters { display: grid; gap: 11px; }
.match-filter-sports { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.precise-match-filters > label,
.match-odds-range label { display: grid; gap: 6px; min-width: 0; }
.precise-match-filters label > span { color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.precise-match-filters select,
.precise-match-filters input { appearance: none; width: 100%; height: 42px; border: 1px solid #34475c; border-radius: 8px; outline: 0; background-color: #091827; padding: 0 10px; color: var(--text); font: inherit; font-size: 12px; }
.precise-match-filters select { padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%2394a3b8' d='m5.5 7.5 4.5 4.5 4.5-4.5 1.4 1.4-5.9 5.9-5.9-5.9z'/%3E%3C/svg%3E"); background-position: right 9px center; background-repeat: no-repeat; }
.precise-match-filters select:focus,
.precise-match-filters input:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .15); }
.precise-match-filters option { background: #091827; color: var(--text); }
.match-odds-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.match-filter-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.match-filter-apply,
.match-filter-reset { appearance: none; min-height: 42px; border-radius: 8px; padding: 0 11px; font: inherit; font-size: 12px; font-weight: 850; cursor: pointer; }
.match-filter-apply { border: 0; background: var(--primary); color: #04111d; }
.match-filter-reset { border: 1px solid #34475c; background: transparent; color: #cbd5e1; }
.match-filter-error { min-height: 0; color: #fca5a5; font-size: 11px; line-height: 1.35; }
.match-filter-error:empty { display: none; }
.active-match-filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(34, 197, 94, .25); border-radius: 9px; background: rgba(34, 197, 94, .07); padding: 9px 12px; }
.active-match-filter-summary[hidden] { display: none; }
.active-match-filter-summary > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; width: 100%; }
.active-match-filter-summary > div > strong { color: #cbd5e1; font-size: 12px; }
.active-match-filter-summary span { color: var(--muted); font-size: 11px; }
.active-match-filter-summary span strong { color: var(--primary); }
.filtered-odd-match { border-color: var(--primary) !important; box-shadow: 0 0 0 2px rgba(34, 197, 94, .2); background: rgba(34, 197, 94, .13) !important; }
.sportsbook-sidebar { scrollbar-color: rgba(148, 163, 184, .25) transparent; scrollbar-width: thin; }
.sportsbook-sidebar::-webkit-scrollbar { width: 5px; }
.sportsbook-sidebar::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(148, 163, 184, .24); }
.mobile-filter-open strong { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; min-height: 19px; border-radius: 999px; background: rgba(34, 197, 94, .16); color: var(--primary); font-size: 10px; }

@media (max-width: 767px) {
  .match-filter-apply { width: 100%; }
  .active-match-filter-summary { margin-inline: 0; }
}

/* Keep the odds-board controls intentional across desktop, tablet, and mobile. */
@media (min-width: 768px) and (max-width: 900px) {
  .board-toolbar {
    flex-wrap: wrap;
  }

  .board-market-group {
    flex: 1 1 100%;
  }

  .board-sort {
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  .board-toolbar {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 8px;
  }

  .board-market-group {
    display: block;
    width: 100%;
  }

  .board-toolbar-label {
    display: none;
  }

  .board-market-filter {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .board-market-filter::-webkit-scrollbar {
    display: none;
  }

  .board-sort {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  .board-sort select {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    margin-left: 10px;
  }
}

/* Precise market filtering turns the board into an actionable matched-picks table. */
.matched-board-head,
.matched-pick-row {
  grid-template-columns: 52px minmax(170px, 1.1fr) 34px minmax(145px, .95fr) minmax(125px, .85fr) 72px;
}

.matched-board-head span:nth-child(n+3) {
  text-align: center;
}

.matched-pick-market,
.matched-pick-selection {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.matched-pick-market strong,
.matched-pick-selection strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 11px;
  line-height: 1.15;
}

.matched-pick-market span,
.matched-pick-selection span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.matched-pick-odd {
  width: 100%;
  justify-self: stretch;
}

@media (max-width: 767px) {
  .matched-board-head {
    display: none;
  }

  .matched-pick-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: center;
    min-height: 0;
    padding: 10px;
    border-radius: 0;
  }

  .matched-pick-row .board-time {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .matched-pick-row .board-teams {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .matched-pick-stats {
    grid-column: 2 / 3;
    grid-row: 1;
  }

  .matched-pick-market,
  .matched-pick-selection {
    grid-column: 1 / 2;
  }

  .matched-pick-odd {
    grid-column: 2 / 3;
    grid-row: 2 / span 3;
    min-width: 76px;
    min-height: 44px;
    align-self: stretch;
  }
}

/* SportyBet-style mobile coupon: compact rows, visible core odds, row tap opens match. */
@media (max-width: 767px) {
  .board-toolbar {
    display: grid !important;
    gap: 8px;
    margin: 6px 0 8px;
    border-radius: 10px;
    padding: 9px 8px;
    background: rgba(8, 18, 32, 0.96);
  }

  .board-market-group {
    width: 100%;
  }

  .board-market-filter {
    display: flex;
    width: 100%;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 1px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .board-market-filter::-webkit-scrollbar {
    display: none;
  }

  .board-market-filter .filter-chip {
    height: 32px;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 11px;
  }

  .board-sort {
    display: flex !important;
    width: 100%;
    margin-left: 0;
  }

  .board-sort span {
    flex: 0 0 auto;
  }

  .board-sort select {
    flex: 1 1 auto;
    width: auto;
    height: 34px;
    margin-left: 8px;
  }

  .odds-board {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .odds-board-head:not(.matched-board-head) {
    display: grid !important;
    position: sticky;
    z-index: 3;
    top: 0;
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(48px, 54px));
    gap: 3px;
    min-width: 0;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0;
    background: rgba(20, 27, 39, 0.98);
    padding: 5px 6px;
  }

  .odds-board-head:not(.matched-board-head) span {
    display: none;
  }

  .odds-board-head:not(.matched-board-head) span:nth-child(4),
  .odds-board-head:not(.matched-board-head) span:nth-child(5),
  .odds-board-head:not(.matched-board-head) span:nth-child(6) {
    display: block;
    color: #9fb2c7;
    font-size: 10px;
    text-align: center;
  }

  .odds-board-head:not(.matched-board-head)::before {
    content: "";
  }

  .odds-board-row:not(.matched-pick-row) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(48px, 54px));
    gap: 3px;
    min-width: 0;
    min-height: 64px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0;
    background: rgba(24, 31, 43, 0.95);
    padding: 7px 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(34, 197, 94, 0.16);
  }

  .odds-board-row:not(.matched-pick-row):hover,
  .odds-board-row:not(.matched-pick-row):focus-visible {
    background: rgba(29, 38, 52, 0.98);
    outline: none;
  }

  .odds-board-row:not(.matched-pick-row) .board-time {
    grid-column: 1 / 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  .odds-board-row:not(.matched-pick-row) .board-time strong {
    color: var(--primary);
    font-size: 11px;
    line-height: 1;
  }

  .odds-board-row:not(.matched-pick-row) .board-time span {
    display: none;
  }

  .odds-board-row:not(.matched-pick-row) .board-teams {
    grid-column: 1 / 2;
    grid-row: 2;
    align-self: center;
    gap: 3px;
    min-width: 0;
  }

  .odds-board-row:not(.matched-pick-row) .board-teams strong {
    color: #f8fafc;
    font-size: 11px;
    line-height: 1.15;
  }

  .odds-board-row:not(.matched-pick-row) .board-stats,
  .odds-board-row:not(.matched-pick-row) .board-goals-line,
  .odds-board-row:not(.matched-pick-row) .board-odd-extra,
  .odds-board-row:not(.matched-pick-row) .board-more-link {
    display: none !important;
  }

  .odds-board-row:not(.matched-pick-row) .board-odd-main,
  .odds-board-row:not(.matched-pick-row) .board-empty-odd {
    grid-row: 2;
    align-self: stretch;
    min-width: 0;
    min-height: 32px;
    border-radius: 3px;
    border-color: rgba(148, 163, 184, 0.08);
    background: rgba(13, 63, 45, 0.82);
    box-shadow: none;
  }

  .odds-board-row:not(.matched-pick-row) .board-odd-main .odd-price {
    color: #22f177;
    font-size: 12px;
    font-weight: 950;
  }

  .odds-board-row:not(.matched-pick-row) .board-empty-odd {
    color: #64748b;
    background: rgba(15, 23, 42, 0.9);
  }

  .odds-board-group {
    display: flex;
    min-height: 25px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 0;
    background: rgba(16, 26, 39, 0.98);
    padding: 5px 6px;
    font-size: 10px;
  }

  .odds-board-group strong {
    color: var(--accent);
    font-size: 10px;
  }

  .odds-board-group span {
    color: #a9b7c8;
  }

  .matched-pick-row {
    grid-template-columns: minmax(0, 1fr) minmax(58px, 68px);
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0;
    background: rgba(24, 31, 43, 0.95);
    cursor: pointer;
  }

  .matched-pick-row:focus-visible {
    outline: 2px solid rgba(34, 197, 94, 0.55);
    outline-offset: -2px;
  }

  .matched-pick-row .board-stats {
    display: none !important;
  }

  .matched-pick-odd {
    min-height: 40px;
    border-radius: 3px;
  }
}
