/* ========================================================================== */
/* PHOI KET QUA - GIAO DIỆN 4 KHUNG NGÀY / HÀNG (TRÁI QUA PHẢI: CŨ ĐẾN MỚI)        */
/* ========================================================================== */

.phoi-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
}

/* Thanh nút thống kê Ngày, Tuần, Tháng */
.phoi-stats-toolbar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.phoi-stat-btn {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.phoi-stat-btn:hover {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.phoi-stat-btn.active {
    background: linear-gradient(135deg, #047857, #10b981);
}

/* Khung chứa 1 hàng ngang (tối đa 4 ngày) */
.phoi-row-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: flex-start;
}

/* Thẻ kết quả của từng ngày (chiếm khoảng 24% để vừa 4 cột) */
.phoi-day-card {
    flex: 1;
    min-width: 220px;
    max-width: calc(25% - 6px);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Tiêu đề ngày */
.phoi-card-header {
    background: #f1f5f9;
    padding: 6px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #0f4c81;
    border-bottom: 1px solid #cbd5e1;
}

/* Dòng kết quả từng giải */
.phoi-result-row {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    min-height: 24px;
    line-height: 24px;
    font-size: 12.5px;
}

.phoi-result-row:last-child {
    border-bottom: none;
}

/* Tên giải (Cột trái trong khung ngày) */
.phoi-result-label {
    width: 75px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    font-size: 12px;
}

/* Giá trị số trúng (Cột phải trong khung ngày) */
.phoi-result-numbers {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-weight: 700;
    padding: 0 2px;
    color: #1e2937;
}

.phoi-result-numbers span {
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.phoi-result-numbers span:not(:last-child) {
    border-right: 1px dashed #f1f5f9;
}

/* Đặc biệt màu đỏ nổi bật */
.phoi-result-row.special-prize {
    background: #fff5f5;
}

.phoi-result-row.special-prize .phoi-result-label {
    color: #dc2626;
    background: #fee2e2;
}

.phoi-result-row.special-prize .phoi-result-numbers {
    color: #dc2626;
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 992px) {
    .phoi-day-card {
        max-width: calc(50% - 4px); /* Hiển thị 2 cột trên tablet */
    }
}

@media (max-width: 576px) {
    .phoi-day-card {
        max-width: 100%; /* Hiển thị 1 cột trên mobile */
    }
}

/* ====================== HEADER & FOOTER NỘI BỘ TRONG INDEX ====================== */
.site-header {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    padding: 12px 20px;
    margin-bottom: 15px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.site-logo {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}
.site-nav a {
    color: #e0f2fe;
    margin-left: 15px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.site-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer {
    background: #1e2937;
    color: #94a3b8;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    border-radius: 8px 8px 0 0;
    font-size: 13.5px;
}
.site-footer-inner {
    max-width: 1000px;
    margin: 0 auto;
}