/* Index Page (XSMB Results Layout) Styling */
.kqxs-container {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 24px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.xsmb-header-box {
    background-color: #fef3c7;
    border-bottom: 1px solid #dee2e6;
    padding: 12px 15px;
    text-align: left;
}

.xsmb-header-title {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
}

.xsmb-header-tree {
    font-size: 0.95rem;
    font-family: Arial, Helvetica, sans-serif;
    color: #4b5563;
}

.xsmb-red-txt {
    color: #dc2626;
    text-decoration: underline;
    font-weight: 600;
}

.xsmb-sep {
    margin: 0 8px;
    color: #4b5563;
}

.xsmb-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    font-family: Arial, Helvetica, sans-serif;
}

.xsmb-table th, .xsmb-table td {
    border: 1px solid #dee2e6;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.xsmb-th-giai {
    width: 12%;
    background-color: #dbeafe;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 0.95rem;
}

.xsmb-th-tinh {
    background-color: #dbeafe;
    font-weight: 700;
    font-size: 1.05rem;
}

.xsmb-th-tinh a {
    color: #2563eb;
    text-decoration: underline;
}

.xsmb-th-tinh a:hover {
    color: #1d4ed8;
}

.xsmb-td-giai {
    width: 12%;
    font-weight: 600;
    color: #4b5563;
    background-color: #f8f9fa;
    font-size: 0.95rem;
}

.xsmb-tr-madb td.xsmb-td-giai {
    background-color: #fef08a;
    color: #854d0e;
    font-weight: 700;
}

.xsmb-tr-madb td.xsmb-td-numbers {
    background-color: #fffdf0;
    color: #dc2626;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 2px;
}

.xsmb-td-numbers {
    background-color: #ffffff;
    font-size: 1.65rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.5px;
}

.xsmb-td-numbers.special-prize {
    color: #dc2626;
    font-size: 2.1rem;
    letter-spacing: 1px;
}

.xsmb-td-numbers.red-numbers {
    color: #dc2626;
}

.xsmb-td-numbers.red-numbers span {
    color: #dc2626;
}

/* Row columns distribution */
.xsmb-row-2col {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.xsmb-row-2col span {
    flex: 1;
    text-align: center;
}

.xsmb-row-3col {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.xsmb-row-3col span {
    flex: 1;
    text-align: center;
}

.xsmb-row-4col {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.xsmb-row-4col span {
    flex: 1;
    text-align: center;
}

/* Loto Table styling */
.loto-container {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 24px;
}

.loto-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 15px;
    font-weight: 700;
    color: #374151;
    font-size: 1rem;
}

.loto-table {
    width: 100%;
    border-collapse: collapse;
}

.loto-table th, .loto-table td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    vertical-align: middle;
}

.loto-table th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: #374151;
    font-size: 0.95rem;
    text-align: center;
}

.loto-table th.loto-th-head {
    width: 12%;
}

.loto-table th.loto-th-val {
    width: 38%;
}

.loto-table td.loto-head {
    font-weight: 700;
    color: #dc2626;
    background-color: #ffffff;
    width: 12%;
    text-align: center;
    font-size: 1.15rem;
}

.loto-table td.loto-vals {
    text-align: center;
    font-size: 1.05rem;
    color: #1f2937;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: 38%;
}

/* Description blocks */
.description-placeholder {
    background-color: #fcfcfc;
    border: 1px dashed #cccccc;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 24px;
    color: #666666;
    font-style: italic;
}

/* Prediction article horizontal card */
.prediction-card-horizontal {
    display: flex;
    gap: 20px;
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
    align-items: flex-start;
}

.prediction-box {
    margin-bottom: 24px;
}

.prediction-box .prediction-card-horizontal {
    padding: 0;
    border-bottom: none;
    margin-bottom: 0;
}

.prediction-img-box {
    flex: 0 0 160px;
    width: 160px;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
}

.prediction-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prediction-content-box {
    flex: 1;
}

.prediction-title-horiz {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
}

.prediction-title-horiz a {
    color: #dc2626;
    text-decoration: none;
    transition: color 0.2s;
}

.prediction-title-horiz a:hover {
    text-decoration: underline;
}

.prediction-desc-horiz {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 576px) {
    .prediction-card-horizontal {
        flex-direction: column;
        gap: 12px;
    }
    .prediction-img-box {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
        flex: none;
    }
}
