/* Soi cầu — khớp HTML từ xoso-wp-shortcode.php (.xs-bai / .xs-*) */
.xs-bai.xs-soicau {
  --nen: #f4f6f8;
  --the: #fff;
  --chu: #1a1d24;
  --mo: #5d6675;
  --vien: #dfe4ea;
  --do: #c80505;
  --do-nhat: #fdeaea;
  --vang: #fff8e1;
  --xanh: #c80505;
  color: var(--chu);
  --xs-red: #c80505;
  --xs-red-soft: #ffe8e4;
  --xs-border: #d9d9d9;
  --xs-text: #c80505;
}

.xs-bai.xs-soicau *,
.xs-bai.xs-soicau *::before,
.xs-bai.xs-soicau *::after {
  box-sizing: border-box;
}

.xs-bai .xs-block {
  margin: 0 0 22px;
}

.xs-bai .xs-heading {
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 0 0 14px;
}

.xs-bai .xs-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.xs-bai .xs-dai {
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 8px;
}

.xs-bai .xs-dai .xs-ngay {
  font-weight: 500;
  color: var(--mo);
  margin-left: 8px;
}

.xs-bai .xs-text p {
  margin: 0 0 10px;
}

.xs-bai .xs-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.xs-bai .xs-col {
  grid-column: span 12;
  min-width: 0;
}

.xs-bai .xs-col-1 {
  grid-column: span 1;
}
.xs-bai .xs-col-2 {
  grid-column: span 2;
}
.xs-bai .xs-col-3 {
  grid-column: span 3;
}
.xs-bai .xs-col-4 {
  grid-column: span 4;
}
.xs-bai .xs-col-5 {
  grid-column: span 5;
}
.xs-bai .xs-col-6 {
  grid-column: span 6;
}
.xs-bai .xs-col-7 {
  grid-column: span 7;
}
.xs-bai .xs-col-8 {
  grid-column: span 8;
}
.xs-bai .xs-col-9 {
  grid-column: span 9;
}
.xs-bai .xs-col-10 {
  grid-column: span 10;
}
.xs-bai .xs-col-11 {
  grid-column: span 11;
}
.xs-bai .xs-col-12 {
  grid-column: span 12;
}

@media (max-width: 767px) {
  .xs-bai .xs-col-1,
  .xs-bai .xs-col-2,
  .xs-bai .xs-col-3,
  .xs-bai .xs-col-4,
  .xs-bai .xs-col-5,
  .xs-bai .xs-col-6,
  .xs-bai .xs-col-7,
  .xs-bai .xs-col-8,
  .xs-bai .xs-col-9,
  .xs-bai .xs-col-10,
  .xs-bai .xs-col-11 {
    grid-column: span 12;
  }
}

.xs-bai .xs-divider {
  border: 0;
  border-top: 1px solid var(--vien);
  margin: 18px 0;
}

.xs-bai .xs-divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mo);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.xs-bai .xs-divider-text::before,
.xs-bai .xs-divider-text::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--vien);
}

.xs-bai .xs-table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
}

.xs-bai .xs-table {
  border-collapse: collapse;
  width: 100%;
  margin: 0;
  font-size: 14px;
}

.xs-bai .xs-table th,
.xs-bai .xs-table td {
  border: 1px solid var(--vien);
  padding: 8px 10px;
}

.xs-bai .xs-table thead th {
  background: var(--xanh);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  color: #fff;
}
.xs-bai .xs-table td:hover,
.xs-bai .xs-table-giai tbody th.xs-giai:hover,
.xs-bai .xs-list dd:hover,
.xs-bai .xs-list dt:hover {
  background-color: #ffff48;
}
.xs-bai .xs-table td {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.xs-bai .xs-table-giai tbody th.xs-giai {
  width: 110px;
  background: #fafbfc;
  text-align: left;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

.xs-bai .xs-so-item {
  display: inline-block;
  margin: 2px 6px 2px 0;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}

.xs-bai tr.xs-do-giai .xs-so-item,
.xs-bai tr.xs-do-giai th {
  color: var(--do);
}

.xs-bai .xs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--vien);
  margin: 0 0 8px;
}

.xs-bai .xs-list dt,
.xs-bai .xs-list dd {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid var(--vien);
}

.xs-bai .xs-list dt {
  background: #fafbfc;
  font-weight: 600;
  font-size: 13px;
}

.xs-bai .xs-list dd {
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.xs-bai .xs-list dt:nth-last-child(2),
.xs-bai .xs-list dd:last-child {
  border-bottom: 0;
}

.xs-bai .xs-chot-so-chung .xs-list dd,
.xs-bai .xs-chot-so-dai .xs-list dd {
  color: var(--do);
  background: #fff;
}

.xs-bai .xs-label {
  color: var(--mo);
}

.xs-bai .xs-value {
  font-weight: 700;
  color: var(--chu);
}

.xs-bai .xs-cau-pascal .xs-cap-so {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
}

.xs-bai .xs-cau-pascal .xs-cap-so-ds {
  display: flex;
  gap: 12px;
}

.xs-bai .xs-tron {
  width: 46px;
  height: 46px;
  line-height: 46px;
  border-radius: 50%;
  background: var(--do);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: inline-block;
  text-align: center;
}

.xs-bai .xs-tam-giac {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: #fafbfc;
  border: 1px solid var(--vien);
  border-radius: 6px;
  padding: 16px 8px;
  overflow-x: auto;
}

.xs-bai .xs-tam-giac .xs-hang {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.xs-bai .xs-vien {
    background: #fff;
    border: 1px solid var(--xs-border);
    border-radius: 50%;
    color: var(--xs-text);
    display: inline-block;
    flex: 0 0 24px;
    font-size: 12px;
    font-weight: 700;
    height: 24px;
    line-height: 22px;
    text-align: center;
    width: 24px;
}

.xs-bai .xs-chon-bach-thu {
    list-style: none;
    margin: 0;
    padding: 10px 12px 12px;
}

.xs-bai .xs-chon-bach-thu li {
    background: var(--xs-red-soft);
    border: 1px solid #ffcfc7;
    border-radius: 0.25rem;
    margin: 0 0 8px;
    padding: 8px 10px;
}

p.xs-pascal-nguon b{
  color: var(--do);
}

.xs-bai .xs-chon-bach-thu .xs-value {
  color: var(--do);
}

.xs-bai .xs-giai-thich,
.xs-bai .xs-note,
.xs-bai .xs-empty {
  color: var(--mo);
  font-size: 13px;
  font-style: italic;
}

.xs-bai .xs-ma-db {
  margin: 0 0 8px;
}

.xs-bai .xs-quay-thu .xs-table-giai thead th {
  background: #c80505;
}

.xs-bai .xs-quay-thu tr.xs-do-giai .xs-so-item {
  font-size: 18px;
}

.xs-bai .xs-db-gan .xs-table thead th[colspan] {
  background: var(--vang);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

.xs-bai .xs-soi-cau-dai {
  border: 0;
  background: transparent;
  overflow: visible;
}

.xs-bai .xs-soi-cau-dai-item {
  margin: 0 0 1.25rem;
}

.xs-bai .xs-dai-head {
  align-items: center;
  display: flex;
  font-size: 1.05rem;
  font-weight: 700;
  gap: 8px;
  margin: 0 0 8px;
}

.xs-bai .xs-check {
  align-items: center;
  background: #2e7d32;
  border-radius: 3px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  height: 18px;
  justify-content: center;
  line-height: 1;
  width: 18px;
}

.xs-bai .xs-table-soi {
  table-layout: auto;
}

.xs-bai .xs-table-soi th.xs-label {
  background: #fff;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  width: 140px;
}

.xs-bai .xs-table-soi th.xs-label::before {
  color: #e6a817;
  content: "★";
  margin-right: 6px;
}

.xs-bai .xs-table-soi td.xs-value {
  font-weight: 400;
  text-align: left;
}

.xs-bai .xs-table-soi tbody tr:nth-child(even),
.xs-bai .xs-table-soi tbody tr:nth-child(odd) {
  background: #fff;
}

.xs-bai .xs-so-do {
  color: var(--xs-red);
  font-weight: 700;
}

.xs-bai .xs-kq-link {
  color: var(--xs-text);
  font-size: 14px;
  font-style: normal;
  margin: 8px 0 0;
  padding: 0;
}

.xs-bai .xs-kq-link a {
  color: #0a58ca;
  font-weight: 600;
  text-decoration: underline;
}
