/* Universe table market styles — owner ke ExchangeUserFE (exchange24x7) se port, jaisi ki taisi:
   casino-variables.css (light, .s444-uc scope) + FullMarketCards/ucMarket.css + CasinoIframe/ucCountdown.css.
   Hamare shell/overrides: universe.css. */
.s444-uc,
.s444-uc-modal {
  --casino-page-bg: var(--ifm-background-color, #fff);
  --casino-shell-bg: #000;
  --casino-markets-bg: #ededed;
  --casino-market-header-bg: #000;
  --casino-market-header-text: #fff;
  --casino-market-body-bg: #fff;
  --casino-text: #23282c;
  --casino-text-muted: var(--ifm-color-emphasis-600, #666);
  --casino-runners-bg: linear-gradient(90deg, rgb(153 199 241) 0%, rgb(138 189 216 / 50%) 49%, rgb(146 198 246) 100%);

  --casino-odds-bg: #72bbef !important;
  --casino-odds-text: #111;
  --casino-odds-shadow: 0 2px 7px 1px #67828be6;
  --casino-back-bg: #72bbef;
  --casino-lay-bg: #faa9ba;
  --casino-sportbook-bg: #fff;
  --casino-sportbook-border: #ccc;
  --casino-results-bg: #000;
  --casino-results-text: #fff;
  --casino-results-muted: #ccc;
  --casino-modal-bg: #fff;
  --casino-modal-header-bg: #000;
  --casino-modal-header-text: #fff;
  --casino-modal-text: #243a48;
  --casino-modal-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
  --casino-modal-backdrop: rgba(0, 0, 0, 0.5);
  --casino-card-border: #000;
  --casino-link: #243a48;
}



/* ============================================================
   UC Market Panel — Universal Casino Market Tile Design
   ============================================================ */

.uc-markets-scroll {
  background: var(--casino-markets-bg);
}

/* Each market block */
.uc-market {
  margin-bottom: 3px;
}

/* Dark gradient header: title (left) + min/max (right) */
.uc-market-header {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  background: var(--casino-market-header-bg);
  color: var(--casino-market-header-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.uc-market-header-with-info {
  padding: 2px 5px;
  background: linear-gradient(-180deg, #2e4b5e 0%, #243a48 82%);
  color: #fff;
  border: 0;
}

.uc-market-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-market-title-toggle {
  cursor: pointer;
  user-select: none;
}

.uc-market-header-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.uc-market-minmax {
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

.uc-market-minmax-desktop {
  display: none;
}

.uc-market-info-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.uc-market-minmax-mobile-popup {
  display: inline;
}

.uc-market-info-btn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

@media screen and (min-width: 768px) {
  .uc-market-minmax-desktop {
    display: inline;
  }

  .uc-market-minmax-mobile-popup {
    display: none !important;
  }
}

@media screen and (max-width: 767px) {
  .uc-market-info-btn-mobile {
    display: inline-flex;
  }

  .uc-market-minmax-desktop {
    display: none;
  }
}

.uc-market-collapse {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s ease;
}

.uc-market-collapse.is-collapsed {
  grid-template-rows: 0fr;
}

.uc-market-collapse-inner {
  overflow: hidden;
  min-height: 0;
}

.uc-market-collapse.is-collapsed .uc-market-collapse-inner {
  pointer-events: none;
}

/* Market body — relative so overlay can be absolute */
.uc-market-body {
  position: relative;
  background: var(--casino-market-body-bg);
  border-bottom-left-radius: 6px;
}

/* Suspended overlay */
.uc-suspended-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 25px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ca1010;
  background: #fff;
  opacity: 0.5 !important;
  z-index: 1;
  border-radius: 0 0 5px 5px;
  border: 2px solid #ca1010;
}

/* Runner row — flex container */
.uc-runners-row {
  display: flex;
  flex-wrap: wrap;
  background: var(--casino-runners-bg);
  padding: 0px 4px 10px;
  gap: 4px;
}

/* Two-column layout (2 runners side by side) */
.uc-runners-row-two .uc-runner {
  flex: 1 1 calc(50% - 4px);
  max-width: calc(50% - 4px);
}

/* Lucky Card market — 2-column grid with card image in odds box */
.uc-runners-row-lucky-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
}

.uc-runners-row-lucky-card .uc-runner {
  flex: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.uc-lucky-card-odds {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 110px;
  min-width: 72px;
  gap: 6px;
  padding: 3px 4px;
}

.uc-lucky-card-img {
  width: 20px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.uc-lucky-card-odds-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.uc-lucky-card-odds.active .uc-odds-price,
.uc-lucky-card-odds.active .uc-odds-size {
  color: #fff;
}

.uc-lucky-suit-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  min-width: 20px;
}

.uc-lucky-suit-icon {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.uc-lucky-suit-icon.is-red {
  color: #dc2626;
}

.uc-lucky-suit-icon.is-black {
  color: #111;
}

.uc-lucky-card-odds.active .uc-lucky-suit-icon.is-red,
.uc-lucky-card-odds.active .uc-lucky-suit-icon.is-black {
  color: #fff;
}

/* Three-column layout (3 runners side by side) */
.uc-runners-row-three .uc-runner {
  flex: 1 1 calc(33.333% - 4px);
  max-width: calc(33.333% - 4px);
}

/* Stacked layout (full-width rows, name left + odds right) */
.uc-runners-row-stacked {
  flex-direction: column;
  gap: 6px;
  padding: 6px 8px 10px;
}

.uc-runners-row-stacked .uc-runner {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.uc-runners-row-stacked .uc-runner-name {
  margin-bottom: 0;
  min-height: auto;
  text-align: left;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
}

.uc-runners-row-stacked .uc-odds-box {
  flex-shrink: 0;
  width: auto;
  min-width: 72px;
}

/* Joker Teen / stacked WINNER — name left, full-height back box right (99.0016) */
.uc-market-stacked-winner .uc-market-header {
  background: linear-gradient(-180deg, #2e4b5e 0%, #243a48 82%);
}

.uc-market-stacked-winner .uc-market-body {
  background: #fff;
}

.uc-runners-row-stacked-winner {
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: #fff;
}

.uc-runners-row-stacked-winner .uc-runner {
  display: grid;
  grid-template-columns: 1fr 90px;
  min-height: 41px;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #7e97a7;
  align-items: stretch;
  cursor: pointer;
}

.uc-runners-row-stacked-winner .uc-runner:last-child {
  border-bottom: none;
}

.uc-runners-row-stacked-winner .uc-runner-name {
  margin: 0;
  min-height: auto;
  padding: 0;
  text-align: left;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: #243a48;
  align-items: center;
  justify-content: flex-start;
}

.uc-runners-row-stacked-winner .uc-stacked-winner-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px;
  min-width: 0;
}

.uc-runners-row-stacked-winner .uc-odds-box {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 41px;
  margin: 0;
  padding: 4px 2px;
  border-radius: 0;
  background: #72bbef;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.uc-runners-row-stacked-winner .uc-odds-box.active {
  background: #1a8ee1 !important;
  color: #fff !important;
  box-shadow: inset 0 1px 3px #00000080;
}

.uc-runners-row-stacked-winner .uc-odds-price {
  font-size: 12px;
  font-weight: 700;
}

.uc-runners-row-stacked-winner .uc-odds-size {
  font-size: 10px;
  font-weight: 400;
  opacity: 1;
}

/* Multi-column wrap layout (4+ runners) */
.uc-runners-row-multi .uc-runner {
  flex: 1 1 calc(25% - 4px);
  max-width: calc(25% - 4px);
  min-width: 72px;
}

/* Individual runner tile */
.uc-runner {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 2px;
  cursor: pointer;
}

/* Runner name label */
.uc-runner-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--casino-text);
  margin-bottom: 4px;
  text-align: center;
  line-height: 1.15;
  min-height: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.uc-odds-box {
  width: 100%;
  min-width: 105px;
  width: 85px;
  border-radius: 5px;
  padding: 4px 2px;
  background: var(--casino-odds-bg);
  box-shadow: var(--casino-odds-shadow);
  color: var(--casino-odds-text);
  text-align: center;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
}

.uc-odds-box.active {
  background: #1a8ee1 !important;
  color: #fff !important;
  box-shadow: inset 0 1px 3px #00000080;
}

.uc-odds-price {
  font-size: 13px;
  line-height: 1.2;
}

.uc-odds-size {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.2;
}

/* Placed-bet P/L indicator below odds box */
.uc-placed-bet {
  font-size: 10px;
  font-weight: 600;
  margin-top: 3px;
  text-align: center;
}

.uc-placed-bet.profit { color: #16a34a; }
.uc-placed-bet.loss   { color: #dc2626; }

/* PlaceBet form wrapper */
.uc-placebet-wrapper {
  width: 100%;
}

/* Back / lay sportbook (1 Day Teen Patti, 1 Day Dragon Tiger) */
.uc-sportbook-market {
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  margin-bottom: 3px;
}

.uc-sportbook-market .uc-market-header {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  background: #000;
  color: #fff;
  border-radius: 0;
}

.uc-sportbook-market .uc-market-body {
  background: #fff;
}

.uc-sportbook-minmax-row,
.uc-sportbook-runner-row {
  display: flex;
  width: 100%;
  min-height: 34px;
  border-bottom: 1px solid #7e97a7;
}

.uc-sportbook-runner-row {
  min-height: 41px;
}

.uc-sportbook-left {
  width: 60%;
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 8px;
  background: #fff;
  box-sizing: border-box;
}

.uc-sportbook-minmax {
  font-size: 11px;
  font-weight: 600;
  color: #243a48;
  line-height: 1.2;
}

.uc-sportbook-odds-cols {
  width: 40%;
  flex: 0 0 40%;
  display: flex;
  min-height: inherit;
}

.uc-sportbook-col-head,
.uc-sportbook-odds {
  flex: 1 1 50%;
  width: 50%;
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.uc-sportbook-col-head {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  min-height: 34px;
  cursor: default;
}

.uc-sportbook-odds {
  cursor: pointer;
  color: #111;
  font-weight: 600;
  min-height: 41px;
}

.uc-sportbook-odds:disabled {
  cursor: not-allowed;
}

.uc-sportbook-odds .uc-odds-price {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.uc-sportbook-odds .uc-odds-size {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
}

.uc-sportbook-odds.active {
  color: #fff;
  box-shadow: inset 0 1px 3px #00000080;
}

.uc-sportbook-odds.uc-back-cell.active {
  background: #1a8ee1 !important;
}

.uc-sportbook-odds.uc-lay-cell.active {
  background: #f4496d !important;
}

.uc-sportbook-runner-name {
  font-size: 12px;
  font-weight: 700;
  color: #23282c;
  text-transform: uppercase;
  line-height: 1.2;
}

.uc-sportbook-runner-name p {
  margin: 0;
}

.uc-sportbook-pl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.uc-pl-profit {
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
}

.uc-pl-loss {
  font-size: 11px;
  font-weight: 600;
  color: #dc2626;
}

.uc-sportbook-rows {
  position: relative;
}

.uc-sportbook-runner-block:last-child .uc-sportbook-runner-row {
  border-bottom: none;
}

.uc-back-cell {
  background: #72bbef!important
}

.uc-lay-cell {
  background: #f9c9d4 !important;
}

.uc-sportbook-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--casino-sportbook-bg);
  table-layout: fixed;
}

.uc-sportbook-table th,
.uc-sportbook-table td {
  border-top: 1px solid var(--casino-sportbook-border);
  vertical-align: middle;
}

/* ── Muflis Teen Patti (99.0014) ── */
.muflisTeenPattiRoot {
  background: #ededed;
  position: relative;
}

.muflisTeenPattiRoot .muflis-card-row {
  display: flex;
  padding: 8px;
  margin: 0;
  background: #ededed;
}

.muflisTeenPattiRoot .muflis-card-col {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  gap: 4px;
}

.muflisTeenPattiRoot .muflis-card-col + .muflis-card-col {
  margin-left: 8px;
}

.muflisTeenPattiRoot .imgPadding {
  width: 42px;
  height: auto;
  margin: 0 2px;
  border: 1px solid #000;
}

.muflisTeenPattiRoot .euTeenpattiboxes {
  display: flex;
  gap: 8px;
  padding: 0 8px 8px;
  background: #ededed;
}

.muflisTeenPattiRoot .firstboxTp,
.muflisTeenPattiRoot .Secondboxtp {
  flex: 1;
  background: linear-gradient(180deg, #72bbef 0%, #5aa8e8 100%);
  border-radius: 6px;
  padding: 10px 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.muflisTeenPattiRoot .Secondboxtp {
  background: linear-gradient(180deg, #faa9ba 0%, #f98da6 100%);
}

.muflisTeenPattiRoot .playerName {
  font-size: 12px;
  font-weight: 700;
  color: #243a48;
  margin-bottom: 4px;
}

.muflisTeenPattiRoot .priceSection {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.muflisTeenPattiRoot .chip-function-zone {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background: #ededed;
  overflow-x: auto;
}

.muflisTeenPattiRoot .chip-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.muflisTeenPattiRoot .chip-btn img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 0 0.25rem #fd8f3b);
}

.muflisTeenPattiRoot .muflis-suspended {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid #666;
  z-index: 2;
}

@media screen and (max-width: 767px) {
  .muflisTeenPattiRoot .imgPadding {
    width: 34px;
  }

  .muflisTeenPattiRoot .chip-btn img {
    width: 45px;
    height: 45px;
  }
}

/* ── Card Race (99.0046) ── */
.cardRaceMarkets {
  background: #ededed;
  font-family: Tahoma, Helvetica, sans-serif;
  font-size: 12px;
}

.cardRaceMarkets .cardRaceTableWrap {
  position: relative;
  background: #fff;
}

.cardRaceMarkets .cardRaceBody {
  position: relative;
  border-bottom-left-radius: 0;
}

.cardRaceMarkets .cardRaceRow {
  display: flex;
  align-items: stretch;
  border-top: 1px solid #dee2e6;
}

.cardRaceMarkets .sportbook-name {
  flex: 1;
  min-width: 0;
  background: #fff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cardRaceMarkets .sportbook-name .title {
  font-size: 12px;
  font-weight: 700;
  color: #243a48;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cardRaceMarkets .cardRaceKingImg {
  width: 30px;
  height: auto;
  display: block;
  border: 2px solid #e6c200;
  border-radius: 2px;
}

.cardRaceMarkets .cardRaceColorLabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cardRaceMarkets .cardRaceColorText {
  font-weight: 700;
}

.cardRaceMarkets .cardRaceSuits {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 1;
}

.cardRaceMarkets .cardRaceSuits.red .heart,
.cardRaceMarkets .cardRaceSuits.red .diamond {
  color: #dc3545;
}

.cardRaceMarkets .cardRaceSuits.black .spade,
.cardRaceMarkets .cardRaceSuits.black .club {
  color: #111;
}

.cardRaceMarkets .cardRaceTextLabel {
  font-weight: 700;
}

.cardRaceMarkets .cardRacePreviewBadges {
  flex-shrink: 0;
}

.cardRaceMarkets .sportbook-minwidth {
  flex: 0 0 92px;
  width: 92px;
  min-width: 72px;
  border: none;
  border-left: 1px solid #dee2e6;
  background: #72bbef;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  cursor: pointer;
  box-shadow: none;
}

.cardRaceMarkets .sportbook-minwidth.active,
.cardRaceMarkets .sportbook-minwidth:hover:not(:disabled) {
  background: #1a8ee1;
}

.cardRaceMarkets .sportbook-minwidth.active .cardRaceOddsPrice,
.cardRaceMarkets .sportbook-minwidth.active .cardRaceOddsSize,
.cardRaceMarkets .sportbook-minwidth:hover:not(:disabled) .cardRaceOddsPrice,
.cardRaceMarkets .sportbook-minwidth:hover:not(:disabled) .cardRaceOddsSize {
  color: #fff;
}

.cardRaceMarkets .sportbook-minwidth:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.cardRaceMarkets .cardRaceOddsPrice {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

.cardRaceMarkets .cardRaceOddsSize {
  font-size: 10px;
  font-weight: 400;
  color: #555;
  line-height: 1.2;
  margin-top: 2px;
}

.recent-res.teenpatti.cardRaceRecent {
  flex: 0 0 auto;
  background: #000;
  padding: 5px;
  color: #fff;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.recent-res.teenpatti.cardRaceRecent::-webkit-scrollbar {
  display: none;
}

.recent-res.teenpatti.cardRaceRecent h5 {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  margin: 0 8px 0 0;
  vertical-align: middle;
}

.recent-res.teenpatti.cardRaceRecent ul.result {
  display: inline-flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  vertical-align: middle;
}

.recent-res.teenpatti.cardRaceRecent ul.result li {
  display: inline-block;
}

.recent-res.teenpatti.cardRaceRecent ul.result button.number {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 1;
}

.recent-res.teenpatti.cardRaceRecent ul.result button.number .imgClass {
  width: 35px;
  height: auto;
  display: block;
  border: 2px solid #e6c200;
  border-radius: 2px;
}

/* ── Amar Akbar Anthony (99.0005) ── */
.aaaMarkets {
  background: #ededed;
  font-family: Tahoma, Helvetica, sans-serif;
  font-size: 12px;
  color: #243a48;
}

.aaaMarkets img {
  width: 30px;
  height: auto;
  object-fit: contain;
  border: 1px solid #c9a227;
  background: #fff;
}

.uc-countdown-circle {
  --uc-countdown-green: #22c55e;
  --uc-countdown-red: #ef4444;
  --uc-countdown-track: #374151;
}

.uc-countdown-circle__track {
  border-color: var(--uc-countdown-track);
}

.uc-countdown-circle__ring {
  will-change: background;
}

.uc-countdown-circle__value {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transform: translateZ(0);
}

.uc-countdown-circle--warning .uc-countdown-circle__track {
  border-color: color-mix(in srgb, var(--uc-countdown-red) 45%, var(--uc-countdown-track));
}

.uc-countdown-circle--warning .uc-countdown-circle__value {
  color: var(--uc-countdown-red);
  animation: uc-countdown-pulse 1.1s ease-in-out infinite;
}

@keyframes uc-countdown-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.14);
    opacity: 0.88;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uc-countdown-circle--warning .uc-countdown-circle__value {
    animation: none;
    opacity: 1;
  }
}
