/* ========== Main Table Container ========== */
.betTable4 {
  width: 100%;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  margin: auto;
}

/* ========== Table Styling ========== */
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.tableHeaderRow {
  background-color: #f7f7f7;
}

.playerName {
  width: 16rem;
  text-align: start;
  padding-left: 0.3rem;
  height: 32px;
  border: 1px solid #d7d7d7;
}

.backHeader,
.backCell {
  width: 5.5rem;
  background-color: #72bbef;
  font-weight: bold;
  color: #333;
  border: 1px solid #ddd;
}

.layHeader,
.layCell {
  width: 5.5rem;
  background-color: #faa9ba;
  font-weight: bold;
  color: #333;
  border: 1px solid #ddd;
}

.tableRow {
  border-bottom: 1px solid #ddd;
}

.mainCell {
  width: 16rem;
  text-align: start;
  padding-left: 0.5rem;
  background-color: #f7f7f7;
  height: 46px;
  font-weight: bold;
  color: #333;
  border: 1px solid #ddd;
}

.backCell,
.layCell {
  text-align: start;
  padding: 8px 0;
  cursor: pointer;
}

.lockedCell {
  width: 5.5rem;
  background-color: #333;
  text-align: center;
  border: 1px solid #ddd;
  padding: 8px 0;
}

.grayBackground {
  background-color: gray !important;
}

/* ========== Under/Over Lock Section ========== */
.section2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.2px solid #ddd;
  padding: 8px;
  flex: 1 1 45%;
  gap: 1rem;
}

.fancyWrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  border: 1.5px solid #ddd;
  padding: 8px;
  margin-top: 10px;
}

/* ========== Players Grid & Suit Bets ========== */
.teenPattiTable {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 16px;
  width: 100%;
}

.playersGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #f3f4f6;
  margin-bottom: 16px;
  width: 100%;
}

.playerSection {
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.suitsRow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}

.suitBet,
.oddEven {
  background: #93c5fd;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  width: 100%;
}

.suitBlack {
  color: #000;
  font-size: 1.25rem;
}

.suitRed {
  color: #ef4444;
  font-size: 1.25rem;
}

.odds {
  font-weight: 500;
}

/* ========== Cards Section ========== */
.cardsRow {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 2px;
  padding: 16px 0;
}

.card {
  border: 2px solid #fef08a;
  background: #fff;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
}

.cardContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-weight: 600;
}

.cardSuits {
  display: flex;
  gap: 2px;
  font-size: 0.75rem;
}

.cardSuits .black {
  color: #000;
}

.cardSuits .red {
  color: #ef4444;
}

/* ========== Tablet ========== */
@media (max-width: 768px) {
  .table {
    width: 100%;
  }

  .playerName {
    width: 12rem;
  }

  .backHeader,
  .layHeader,
  .backCell,
  .layCell,
  .lockedCell,
  .mainCell {
    width: 4rem;
    padding: 6px 0;
    font-size: 14px;
    padding-left: 0.3rem;
  }

  .cardsRow {
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
  }

  .suitBet,
  .oddEven {
    padding: 10px;
    font-size: 0.875rem;
  }
}

/* ========== Mobile ========== */
@media (max-width: 480px) {
  .playerName {
    width: 60%;
  }

  .table {
    width: 100%;
  }

  .backHeader,
  .layHeader,
  .backCell,
  .layCell,
  .lockedCell,
  .mainCell {
    width: 20%;
    padding: 2px 0;
    font-size: 12px;
  }

  .section2 {
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 6px;
  }

  .lockedCell {
    width: 60px;
    height: 40px;
    padding: 4px;
  }

  .fancyWrapper {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cardsRow {
    grid-template-columns: repeat(4, 1fr);
  }

  .suitBet,
  .oddEven {
    padding: 8px;
    font-size: 0.75rem;
  }

  /* ✅ Fix: Show only 2 bets per row for Player A */
  .playersGrid .playerSection:first-child .suitsRow {
    grid-template-columns: repeat(2, 1fr);
  }
}