/* Widget KQXS inline trong bài chi tiết */
.article-lottery-widget {
    margin: 20px 0;
    clear: both;
}

.article-lottery-card {
    border: 1px solid #e0e7ef;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.article-lottery-title {
    background: linear-gradient(135deg, #d0021b, #a80015);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 16px;
    text-align: center;
    text-transform: uppercase;
}

.article-lottery-body {
    padding: 12px 16px 16px;
}

.article-lottery-loading {
    text-align: center;
    color: #666;
    padding: 24px 0;
    font-size: 14px;
}

.article-lottery-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.article-lottery-table th,
.article-lottery-table td {
    border: 1px solid #e8ecf1;
    padding: 8px 10px;
    vertical-align: middle;
}

.article-lottery-table th {
    background: #f4f5f8;
    font-weight: 600;
    width: 110px;
    text-align: left;
}

.article-lottery-table td {
    text-align: center;
}

.article-lottery-table tr.is-special td {
    color: #d0021b;
    font-weight: 700;
}

.article-lottery-nums {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.article-lottery-num {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.lottery-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #e0e7ef;
    border-top-color: #d0021b;
    border-radius: 50%;
    animation: lottery-spin 0.8s linear infinite;
    vertical-align: middle;
}

.article-lottery-num-loading .lottery-spinner {
    width: 22px;
    height: 22px;
}

@keyframes lottery-spin {
    to { transform: rotate(360deg); }
}

.article-lottery-table-wide {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 12px;
}

.article-lottery-table-wide th,
.article-lottery-table-wide td {
    border: 1px solid #e8ecf1;
    padding: 6px 8px;
    text-align: center;
}

.article-lottery-table-wide th {
    background: #f4f5f8;
    font-weight: 600;
}

.article-lottery-table-wide .giai-label {
    text-transform: uppercase;
    font-size: 12px;
    width: 48px;
}

@media (max-width: 768px) {
    .article-lottery-title { font-size: 14px; padding: 10px 12px; }
    .article-lottery-table th { width: 88px; font-size: 13px; }
    .article-lottery-num { font-size: 14px; }
    .article-lottery-table-wide { font-size: 12px; }
}
