/* ==========================================================================
   Odds Live — Verbatim Stylesheet from football.sportgame.shop
   ========================================================================== */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #111;
}
.topbar {
  background: #202941;
  color: #fff;
  min-height: 184px;
  text-align: center;
  position: relative;
  padding: 12px 16px 20px;
}
.search-speed-box {
  position: absolute;
  left: 10px;
  top: 3px;
  width: 200px;
  text-align: left;
  color: #fff;
  z-index: 2;
}
.search-speed-box.search-speed-box-2 {
  left: 218px;
}
.search-speed-title {
  font-size: 12px;
  line-height: 20px;
  font-weight: 800;
  color: #ff3b4f;
  margin-bottom: 5px;
}
.search-speed-row {
  display: grid;
  grid-template-columns: 38px 58px 1fr 22px;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  font-size: 12px;
  line-height: 18px;
  font-weight: bold;
}
.search-speed-row input {
  max-width: 58px;
  padding: 2px 3px;
  font-size: 10px;
  width: 100%;
  height: 19px;
  border: 1px solid #ff3b4f;
  border-radius: 4px;
  outline: none;
  background: #d8d8d8;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Chu "BOOK" = nut bat / tat tu dong search + dat cuoc the BOOK - AD / BOOK2 - AD (xanh = dang bat). */
.book-auto-toggle {
  cursor: pointer;
  user-select: none;
}
.book-auto-toggle.auto-on {
  color: #22c55e;
}
.search-speed-row input.search-speed-amount {
  max-width: 76px;
  font-size: 11px;
  letter-spacing: 0;
  text-align: right;
  font-weight: bold;
}
.search-speed-drop-btn {
  width: 22px;
  height: 19px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ff3b4f;
  border-radius: 4px;
  background: #d8d8d8;
  color: #111;
  cursor: pointer;
  outline: none;
  line-height: 0;
}
.search-speed-drop-btn svg {
  width: 12px;
  height: 12px;
  display: block;
  pointer-events: none;
}
.setting-btn {
  display: inline-block;
  background: #777;
  color: #fff;
  border: 0;
  border-radius: 5px;
  padding: 8px 18px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 2px;
}
.warning-box {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  border: 2px solid #ff4b5f;
  background: #fff6f6;
  color: #b00000;
  border-radius: 7px;
  padding: 13px 20px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  box-shadow: none;
  animation: blinkWarning 1.9s ease-in-out infinite;
}
@keyframes blinkWarning {
  0%, 100% {
    opacity: 1;
    border-color: #ff4b5f;
    color: #b00000;
  }
  50% {
    opacity: .55;
    border-color: #ff8a96;
    color: #7f0000;
  }
}

.warning-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: -5px;
  margin-right: 8px;
  flex: 0 0 auto;
}
.user-line {
  margin-top: 18px;
  font-size: 13px;
  color: #fff;
}
.pair-filter-row {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  row-gap: 8px;
  flex-wrap: wrap;
  max-width: 1530px;
  margin-left: auto;
  margin-right: auto;
}
.pair-filter-break {
  flex-basis: 100%;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
}
.pair-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
  position: relative;
}
/* So tran cua tung sanh, lay tu src goc, nam tren dau nut */
.provider-count {
  position: absolute;
  top: -12px;
  left: calc(50% + 8px);
  transform: translateX(-50%);
  font-size: 10px;
  line-height: 12px;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}
.pair-filter-item input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: #e00018;
  cursor: pointer;
}
.pair-filter-label {
  display: inline-block;
  min-width: 54px;
  padding: 3px 8px;
  border-radius: 9px;
  background: #e8324b;
  color: #fff;
  font-size: 12px;
  line-height: 15px;
  text-align: center;
  font-weight: 800;
  text-shadow: none;
  border: 0;
  outline: 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.pair-filter-label::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 58%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,235,240,.78) 38%, rgba(255,190,205,.52) 66%, rgba(255,255,255,0) 100%);
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  animation: pairGlossMove 1.25s linear infinite;
}
@keyframes pairGlossMove {
  0% { left: -70%; }
  100% { left: 112%; }
}
/* CC / TX: nut mau vang, van giu nguyen hieu ung loe sang */
.market-filter-check + .pair-filter-label {
  background: #ffd000;
  color: #111;
}
/* Nut bat/tat loai keo: qua bong = keo chinh, la co do = keo goc */
.cat-filter-check + .pair-filter-label {
  min-width: 34px;
  padding: 1px 8px;
  background: #ffffff;
}
.cat-filter-label-icon {
  display: inline-block;
  font-size: 14px;
  line-height: 17px;
  vertical-align: middle;
}
.cat-filter-label-icon .cat-ball,
.cat-filter-label-icon .cat-flag {
  width: 17px;
  height: 17px;
  display: inline-block;
  vertical-align: middle;
}
/* Icon loai keo tren the: nam giua hang tren cung cua the (ngang hang gio / Search). */
.cat-icon-row {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  margin: 0;
  line-height: 0;
}
.cat-icon {
  display: inline-block;
  font-size: 22px;
  line-height: 24px;
}
.cat-icon .cat-ball,
.cat-icon .cat-flag {
  width: 32px;
  height: 32px;
  display: inline-block;
  vertical-align: middle;
}
.pair-filter-item input:not(:checked) + .pair-filter-label {
  opacity: .45;
  filter: grayscale(.25);
  box-shadow: none;
}
.pair-filter-item input:not(:checked) + .pair-filter-label::before {
  animation: none;
  display: none;
}
.percent-filter-select {
  height: 24px;
  min-width: 76px;
  border: 0;
  border-radius: 5px;
  padding: 2px 8px;
  background: #fff;
  color: #111;
  font-size: 13px;
  line-height: 18px;
  cursor: pointer;
  outline: none;
}
.actions {
  position: absolute;
  right: 10px;
  top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.action-btn {
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  padding: 9px 12px;
  font-weight: bold;
  cursor: pointer;
}
.sound-on { background: #0f8f5b; }
.sound-off { background: #d43b4d; }
.status {
  display: none;
}
.wrap {
  min-height: calc(100vh - 200px);
  padding: 18px 24px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 560px);
  gap: 18px;
  align-items: start;
  background: #1f2946;
}
.empty-msg {
  color: #ff4b5f;
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  width: 560px;
  font-weight: bold;
}
.card {
  position: relative;
  width: 560px;
  background: #f7f7f7;
  border: 1px solid #d7d7d7;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(0,0,0,.28);
  padding: 10px 16px 16px;
  color: #111;
}
.topline {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-weight: bold;
}
.time-badge {
  display: inline-block;
  background: #ffd000;
  color: #111;
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 14px;
  line-height: 18px;
  font-weight: bold;
  white-space: nowrap;
}
.del-card-btn {
  border: 1px solid #666;
  border-radius: 5px;
  background: #fff;
  color: #555;
  padding: 2px 7px;
  font-size: 11px;
  line-height: 15px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 0;
}
.del-card-btn:hover {
  background: #f2f2f2;
}
.percent-badge {
  background: #148f5b;
  color: #fff;
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 14px;
  line-height: 18px;
  font-weight: bold;
}
/* Keo lech kieu moi (lech am): o mau vang */
.percent-badge.lech-am {
  background: #ffd000;
  color: #111;
}
.search-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.search-card-btn {
  border: 1px solid #666;
  border-radius: 5px;
  background: #fff;
  color: #555;
  padding: 3px 9px;
  font-size: 13px;
  line-height: 18px;
  font-weight: bold;
  cursor: pointer;
}
.book-search-btn {
  border: 1px solid #666;
  border-radius: 5px;
  background: #fff;
  color: #555;
  padding: 4px 10px;
  font-size: 13px;
  line-height: 16px;
  font-weight: bold;
  cursor: pointer;
}
.league {
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 10px;
}
.teams {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  justify-content: center;
  gap: 8px;
  align-items: center;
  text-align: center;
  margin-bottom: 6px;
  font-weight: bold;
}
.team {
  display: block;
  width: auto;
  max-width: 220px;
  background: #0b66ff;
  color: #fff;
  border-radius: 14px;
  padding: 4px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 18px;
  font-weight: bold;
  justify-self: center;
  cursor: pointer;
}
.vs {
  background: #6b7280;
  color: #fff;
  border-radius: 5px;
  padding: 2px 0;
  font-size: 12px;
  line-height: 18px;
  font-weight: bold;
  position: relative;
  top: 12px;
  justify-self: center;
  width: 36px;
  text-align: center;
}
.scores {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  gap: 8px;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
}
.score {
  background: #ffd000;
  color: #111;
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 18px;
  line-height: 22px;
  font-weight: bold;
  justify-self: center;
  min-width: 20px;
  display: inline-block;
}
.books {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.book {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 17px 13px 16px;
  min-height: 104px;
  font-size: 15px;
}
.book-title {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  font-weight: bold;
  white-space: nowrap;
}
.provider {
  color: #008000;
  font-size: 22px;
  line-height: 24px;
  font-weight: bold;
}
.provider.cmd { color: #ff0018; }
.provider.ug { color: #6b7280; }
.provider.x8bet { color: #008000; }
.provider.saba { color: #d68100; }
.provider.sabaw { color: #b04a00; }
.provider.on { color: #7b2cbf; }
.provider.ap { color: #00897b; }
.provider.m9 { color: #c2185b; }
.provider.haha { color: #1565c0; }
.provider.hihi { color: #ef6c00; }
.provider.hehe { color: #6d4c41; }
.provider.hey { color: #455a64; }
.market {
  background: #ffd000;
  border-radius: 5px;
  padding: 4px 7px;
  color: #111;
  font-size: 12px;
  line-height: 16px;
  font-weight: bold;
  justify-self: center;
}
.line {
  display: inline-block;
  background: #0b66ff;
  color: #fff;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 13px;
  line-height: 16px;
  font-weight: bold;
  justify-self: end;
  min-width: 34px;
  text-align: center;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #111;
  font-size: 15px;
  line-height: 18px;
}
.price {
  display: inline-block;
  background: #e83d54;
  color: #fff;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 13px;
  line-height: 16px;
  font-weight: bold;
  min-width: 34px;
  text-align: center;
}
.price.green {
  background: #0b66ff;
}
/* The bao BOOK - AD (ti so AD hon BOOK 1 ban): 1 the / tran, cot trai BOOK (gia + Search), cot phai AD. */
.ga-badge {
  background: #e00018;
  color: #fff;
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 14px;
  line-height: 18px;
  font-weight: bold;
  white-space: nowrap;
}
.ga-scores {
  display: grid;
  grid-template-columns: 52px 1fr 64px 1fr;
  gap: 6px 8px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 18px;
  font-weight: bold;
}
.ga-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ga-name-home {
  text-align: right;
}
.ga-score {
  background: #ffd000;
  color: #111;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
}
.ga-score.ga-score-book {
  background: #e5e5e5;
}
.ga-src {
  display: inline-block;
  border-radius: 4px;
  padding: 1px 6px;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  font-weight: bold;
  text-align: center;
  justify-self: start;
}
.ga-src-ad { background: #6a1b9a; }
.ga-src-book { background: #2e7d32; }
.ga-src-hihi { background: #ef6c00; }
.ga-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ga-col {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px 10px;
  min-width: 0;
}
.ga-col-title {
  text-align: center;
  margin-bottom: 6px;
}
.ga-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 6px;
  align-items: center;
  min-height: 26px;
  font-size: 13px;
  line-height: 17px;
}
.ga-label {
  color: #555;
  font-weight: bold;
  white-space: nowrap;
}
.ga-pick {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ga-row .book-search-btn {
  padding: 2px 8px;
  font-size: 12px;
}
.ga-price-row {
  min-height: 24px;
  padding-left: 76px;
  margin-bottom: 4px;
}
/* The bao BOOK2 - AD: dong nhay keo tai xiu (vd "Tài FT 0.5 → 1.5"). */
.ga-jump {
  text-align: center;
  color: #e00018;
  font-weight: bold;
  font-size: 13px;
  margin: 2px 0 4px;
}
.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 10;
  align-items: center;
  justify-content: center;
}
.modal {
  background: #fff;
  color: #111;
  width: 360px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.details-toggle-btn {
  position: fixed;
  right: 10px;
  top: 60px;
  z-index: 9999;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  padding: 9px 12px;
  font-weight: bold;
  cursor: pointer;
}
.topbar {
  transition: max-height .18s ease, padding .18s ease, opacity .18s ease;
  overflow: hidden;
}
body.details-hidden .topbar {
  max-height: 0 !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0;
}
body.details-hidden .wrap {
  min-height: 100vh;
}
.modal h3 { margin: 0 0 12px; }
.modal-row { margin: 12px 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.modal button { border: 0; border-radius: 8px; padding: 9px 12px; font-weight: bold; cursor: pointer; }
@media (max-width: 700px) {
  .wrap { grid-template-columns: 1fr; padding: 10px; }
  .card, .empty-msg { width: 100%; }
  .books { gap: 10px; }
  .actions { position: static; justify-content: center; margin-top: 10px; }
  .search-speed-box { position: static; width: 100%; max-width: 228px; margin: 0 auto 8px; }
  .topbar { min-height: 185px; }
}
/* Chua cho cho 2 cot o Search (trai) + nut Mute / Log out (phai): phan giua thanh tren khong bi de len o link / o tien khi zoom 100%. */
@media (min-width: 701px) {
  .topbar { padding-left: 440px; padding-right: 170px; }
}
