.ux-kqxs-container {
    max-width: 650px; /* Thu nhỏ container theo yêu cầu */
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #fff;
}

.ux-kqxs-header {
    background: #d32f2f;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    font-size: 18px;
}

.ux-kqxs-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.nav-btn {
    text-decoration: none;
    color: #d32f2f;
    font-weight: bold;
    font-size: 13px;
    padding: 5px 12px;
    border: 1px solid #d32f2f;
    border-radius: 20px;
    transition: 0.3s;
}

.nav-btn:hover { background: #d32f2f; color: #fff; }

.ux-kqxs-table { width: 100%; border-collapse: collapse; }
.ux-kqxs-table td { border: 1px solid #f0f0f0; padding: 10px 4px; text-align: center; }

.tinh-name { color: #1565c0; font-weight: bold; font-size: 15px; background: #f1f8e9; }
.lbl-giai { background: #fafafa; width: 60px; color: #777; font-size: 12px; font-weight: bold; }

/* CSS FIX GIẢI NẰM RIÊNG 1 DÒNG */
.number-stack {
    display: flex;
    flex-direction: column; /* Ép xếp theo chiều dọc */
    gap: 4px; /* Khoảng cách giữa các dòng số */
}

.number-row {
    display: block;
    width: 100%;
    font-size: 17px;
    font-weight: bold;
}

.txt-red-bold .number-row {
    color: #d32f2f;
    font-size: 22px;
    font-weight: 900;
}

.txt-normal .number-row {
    color: #333;
}








/* ======================
   RESET + FONT
====================== */
.mb-container {
    max-width: 720px;
    margin: 20px auto;
    font-family: Tahoma, Arial, sans-serif;
    background: #fff;
    border: 1px solid #999;
}

/* ======================
   HEADER ĐỎ
====================== */
.mb-header {
    background: linear-gradient(#c40000, #9d0000);
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 6px;
    border-bottom: 1px solid #666;
}

/* ======================
   NAV NGÀY
====================== */
.mb-nav {
    text-align: center;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid #999;
    background: #f3f3f3;
}

.mb-nav a {
    color: #0033cc;
    text-decoration: none;
    font-weight: normal;
    margin: 0 8px;
}

.mb-nav a:hover {
    text-decoration: underline;
}

.curr-date-mb {
    font-weight: bold;
    color: #000;
}

/* ======================
   TABLE
====================== */
.mb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* ======================
   LABEL
====================== */
.mb-label {
    width: 90px;
    padding: 6px 4px;
    border: 1px solid #999;
    background: #fff;
    text-align: center;
    font-weight: normal;
    color: #000;
    white-space: nowrap;
}

/* ======================
   DATA CELL
====================== */
.mb-data-cell {
    border: 1px solid #999;
    padding: 6px 8px;
    background: #fff;
}

/* ======================
   DÒNG SỐ
====================== */
.mb-number-row-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    row-gap: 4px;
}

/* ======================
   SỐ BÌNH THƯỜNG
====================== */
.mb-num-item {
    display: inline-block;
    min-width: 90px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #000;
}

/* ======================
   GIẢI ĐẶC BIỆT
====================== */
.mb-db-bold {
    font-size: 30px;
    font-weight: bold;
    color: #b30000;
    min-width: 100%;
    padding: 6px 0;
}

/* ======================
   GIẢI BẢY (MÀU ĐỎ)
====================== */
tr:last-child .mb-num-item {
    font-size: 22px;
    color: #b30000;
}

/* ======================
   CHIA CỘT THEO GIẢI
====================== */
/* Giải nhì (2 số / hàng) */
tr:nth-child(3) .mb-num-item {
    min-width: 45%;
}

/* Giải ba (6 số / 2 dòng) */
tr:nth-child(4) .mb-num-item {
    min-width: 30%;
}

/* Giải tư (4 số / 2 dòng) */
tr:nth-child(5) .mb-num-item {
    min-width: 45%;
}

/* Giải năm (6 số / 2 dòng) */
tr:nth-child(6) .mb-num-item {
    min-width: 30%;
}

/* Giải sáu (3 số) */
tr:nth-child(7) .mb-num-item {
    min-width: 30%;
}

/* Giải bảy (4 số) */
tr:nth-child(8) .mb-num-item {
    min-width: 22%;
}

/* ======================
   MOBILE
====================== */
@media (max-width: 600px) {
    .mb-num-item {
        min-width: 45%;
        font-size: 15px;
    }

    .mb-db-bold {
        font-size: 24px;
    }
}