/**
 * Xổ Số - Frontend Stylesheet
 * Version: 2.8.8
 * Giao diện Thống Kê & Kết Quả Xổ Số Chuyên Sâu VIP
 *
 * Strict Compliance with User Global Rules & Typography Rules:
 * - NO rounded corners: border-radius: 0 !important (except .ball which is 50%)
 * - NO box-shadow: box-shadow: none !important; text-shadow: none !important
 * - Root font-size: 16px !important
 * - Body font-size: 100% !important
 * - NO small fonts in design: minimum 15px-16px for auxiliary text, 18px for body/tables/links
 * - Low padding, low margin, compact, high density layout
 */

html, :root {
    font-size: 16px !important;
    box-sizing: border-box;
    overflow-x: hidden;
    --body-bg-color: #f4f4f4;
    --body-bg-image: none;
    --body-bg-repeat: no-repeat;
    --body-bg-size: cover;
    --body-bg-position: center top;
    --body-bg-attachment: scroll;
}

*, *:before, *:after {
    box-sizing: inherit;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Exception ONLY for geometric lottery balls */
.ball, .circle-no i, .mega-ball, .power-ball {
    border-radius: 50% !important;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 18px !important;
    font-size: 100% !important;
    line-height: 1.4;
    color: #222;
    background-color: var(--body-bg-color, #f4f4f4);
    background-image: var(--body-bg-image, none);
    background-repeat: var(--body-bg-repeat, no-repeat);
    background-size: var(--body-bg-size, cover);
    background-position: var(--body-bg-position, center top);
    background-attachment: var(--body-bg-attachment, scroll);
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    color: #1a0dab;
    text-decoration: none;
}

small {
    font-size: 0.88rem !important; /* ~16px minimum */
}
a:hover {
    color: #ba0000;
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px;
}

/* Header Container & Top Header */
.header-container {
    padding: 0 8px;
}
.top-header {
    background: transparent;
    color: #1e293b;
    padding: 10px 0;
    border: none;
}
.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.header-logo-img {
    height: auto !important;
    max-height: 54px;
    max-width: 220px;
    object-fit: contain;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-area.logo-only .header-logo-img,
.logo-area.logo-only img {
    max-width: 320px;
    max-height: 60px;
}
.logo-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    color: #ba0000 !important;
    line-height: 1.15;
}
.logo-title a {
    color: #ba0000 !important;
    text-decoration: none;
    font-weight: 700 !important;
}
.logo-subtitle {
    margin: 3px 0 0 0;
    font-size: 0.88rem;
    color: #475569;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.logo-area.logo-only .logo-title,
.logo-area.logo-only .logo-subtitle {
    display: none !important;
}
.header-meta {
    font-size: 0.95rem;
    color: #1e293b;
    text-align: right;
    font-weight: 600;
}
.header-meta .meta-today {
    color: #1e293b;
    font-weight: 600;
}
.header-meta .date-text {
    color: #ba0000;
    font-weight: 700 !important;
}
.live-hours-text {
    font-size: 0.88rem;
    color: #b45309;
    font-weight: 700 !important;
    margin-top: 2px;
}

/* Navigation Bar (Flex evenly across container) */
.main-nav {
    background: #8e0000;
    border-bottom: 1px solid #700000;
    width: 100%;
}
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    align-items: stretch;
    justify-content: space-between;
}
.nav-list-mobile {
    display: none !important;
}
.nav-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    margin: 0;
    padding: 0;
}
.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 10px 4px;
    color: #fff;
    font-size: 0.98rem;
    font-weight: bold;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
}
a.nav-link {
    font-weight: bold;
}
.nav-item:last-child .nav-link {
    border-right: none;
}
.nav-item-has-sub {
    position: relative;
}
.nav-item:nth-last-child(-n+2) .nav-dropdown {
    left: auto;
    right: 0;
}
.nav-link-live {
    color: #ffd200 !important;
    background: #a00000;
}
.live-dot-pulse {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #ffeb3b;
    border-radius: 50% !important;
    animation: livePulseMenu 1.2s infinite ease-in-out;
    margin-right: 4px;
}
@keyframes livePulseMenu {
    0% { transform: scale(0.8); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(0.8); opacity: 1; }
}
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid #ba0000;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.nav-item-has-sub:hover .nav-dropdown {
    display: block;
}
.nav-dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #333;
    font-size: 0.95rem;
    font-weight: normal;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown li a svg {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
}
.nav-dropdown li a:hover {
    background: #ba0000;
    color: #fff;
}
.nav-arrow {
    width: 0.75rem !important;
    height: 0.75rem !important;
    margin-left: 3px;
    vertical-align: -0.05rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
}
.nav-item-has-sub:hover .nav-arrow {
    transform: rotate(180deg);
}
.nav-link:hover, .nav-item.active .nav-link {
    background: #640000;
    color: #ffd200;
    text-decoration: none;
}

/* Live Lottery Announcement Bar */
.live-bar {
    background: #fffae6;
    border: 1px solid #ffe58f;
    border-top: none;
    padding: 6px 12px;
    font-size: 0.95rem;
    color: #994800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.live-bar.state-live {
    background: #fff1f0;
    border-color: #ffa39e;
    color: #cf1322;
}
.live-bar.state-has-result {
    background: #f6ffed;
    border-color: #b7eb8f;
    color: #237804;
}
.live-bar.state-all-done {
    background: #f0f5ff;
    border-color: #adc6ff;
    color: #1d39c4;
}
.live-bar-left {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    flex: 1;
}
.live-bar-right {
    display: inline-flex;
    align-items: center;
    gap: 6px 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.live-indicator {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #f5222d;
    margin-right: 4px;
    border-radius: 50% !important;
    animation: blinker 1s linear infinite;
    flex-shrink: 0;
}
.live-badge-status {
    font-size: 0.82rem;
    padding: 2px 7px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
    white-space: nowrap;
}
.badge-live-now {
    background: #ba0000;
    color: #fff !important;
    animation: livePulseMenu 1.2s infinite ease-in-out;
}
.badge-has-result {
    background: #2e7d32;
    color: #fff !important;
}
.badge-upcoming {
    background: #d46b08;
    color: #fff !important;
}
.live-btn-action {
    background: #ba0000;
    color: #fff !important;
    text-decoration: none !important;
    padding: 3px 10px;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.live-btn-action:hover {
    background: #8e0000;
}
.live-link-pill {
    background: #fff;
    border: 1px solid #d9d9d9;
    color: #0029ad !important;
    text-decoration: none !important;
    padding: 2px 8px;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.live-link-pill:hover {
    border-color: #0029ad;
    text-decoration: underline;
}
@keyframes blinker {
    50% { opacity: 0; }
}

/* Main Layout Grid (2 Columns: 72% - 28%) */
.main-layout {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
.content-col {
    flex: 1;
    min-width: 0;
}
.sidebar-col {
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
    }
    .sidebar-col {
        width: 100%;
    }
}

/* Main Layout 3 Columns (6 / 3 / 3 Grid) */
.main-layout-3col {
    display: grid;
    grid-template-columns: 6fr 3fr 3fr;
    gap: 10px;
    margin-top: 6px;
    align-items: start;
    width: 100%;
}
.main-layout-3col .col-main-6 {
    min-width: 0;
    width: 100%;
}
.main-layout-3col .col-sub-3 {
    min-width: 0;
    width: 100%;
}
.main-layout-3col .col-side-3 {
    min-width: 0;
    width: 100%;
}

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-layout-3col {
        grid-template-columns: 1fr 1fr;
    }
    .main-layout-3col .col-main-6 {
        grid-column: 1 / -1;
    }
    .main-layout-3col .col-sub-3 {
        grid-column: 1 / 2;
    }
    .main-layout-3col .col-side-3 {
        grid-column: 2 / 3;
    }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
    .main-layout-3col {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .main-layout-3col .col-main-6,
    .main-layout-3col .col-sub-3,
    .main-layout-3col .col-side-3 {
        width: 100%;
    }
}

/* Dynamic Menu Widget Styles (No Rounded Corners, No Shadow, 18px body standard) */
.widget-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}
.widget-menu-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}
.widget-menu-list li:last-child {
    border-bottom: none;
}
.widget-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    color: #333;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    border-left: 3px solid transparent;
}
.widget-menu-link:hover {
    background: #f8f9fa;
    color: #ba0000;
    border-left-color: #ba0000;
    text-decoration: none;
}
.widget-menu-link.is-active {
    background: #fff5f5;
    color: #ba0000;
    border-left-color: #ba0000;
    font-weight: 500;
}
.widget-menu-pill {
    font-size: 0.82rem;
    padding: 2px 7px;
    background: #e2e8f0;
    color: #1e293b !important;
    font-weight: 500;
    white-space: nowrap;
}
.widget-menu-link.is-active .widget-menu-pill {
    background: #ba0000;
    color: #fff;
}
.widget-menu-badge-today {
    font-size: 0.8rem;
    padding: 2px 6px;
    background: #e6f7ff;
    color: #0969da;
    border: 1px solid #91caff;
    margin-left: 4px;
    white-space: nowrap;
}

/* Sidebar Prediction Cards with Thumbnail & Full Title */
.sidebar-prediction-list {
    background: #fff;
    display: flex;
    flex-direction: column;
}
.sidebar-prediction-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 10px;
    text-decoration: none !important;
    color: #222 !important;
    border-bottom: 1px solid #f1f5f9;
    box-sizing: border-box;
    transition: background 0.15s ease;
}
.sidebar-prediction-item:last-child {
    border-bottom: none;
}
.sidebar-prediction-item:hover {
    background: #f8fafc;
}
.sidebar-pred-thumb-wrap {
    flex-shrink: 0;
    width: 82px;
    height: 52px;
    background: #eee;
    overflow: hidden;
}
.sidebar-pred-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sidebar-pred-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sidebar-pred-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
    word-break: break-word;
    white-space: normal;
}
.sidebar-prediction-item:hover .sidebar-pred-title {
    color: #ba0000;
}
.pred-region-tag {
    color: #ba0000;
    font-weight: 700;
    margin-right: 3px;
}
.sidebar-pred-meta {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Dò Vé Số Form & Widget Styles (Strictly Responsive, No Frame Break) */
.doveso-box {
    background: #fff;
    border: 1px solid #dcdcdc;
    margin-bottom: 12px;
    box-sizing: border-box;
    overflow: hidden;
}
.doveso-box .box-header {
    background: #ba0000;
    color: #fff;
    padding: 8px 12px;
    font-weight: 700 !important;
    font-size: 1.05rem;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
}
.doveso-box .box-header a {
    color: #fff !important;
    font-size: 1.05rem;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.doveso-box .box-header a:hover {
    color: #ffd200 !important;
}
.doveso-form {
    padding: 12px;
    background: #fff;
    box-sizing: border-box;
}
.doveso-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: end;
    box-sizing: border-box;
}
.doveso-field {
    min-width: 0;
    box-sizing: border-box;
}
.doveso-label {
    display: block;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
    font-weight: normal;
}
.doveso-label-spacer {
    display: block;
    visibility: hidden;
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.3;
}
.doveso-date-group {
    display: flex;
    gap: 4px;
    min-width: 0;
    box-sizing: border-box;
}
.doveso-date-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}
.doveso-date-input-wrap .doveso-date-input,
.doveso-date-input {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    padding: 4px 34px 4px 8px;
    background: #fff;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box;
    outline: none;
}
.doveso-date-input:focus {
    border-color: #ba0000;
}
.doveso-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.9;
}
.doveso-btn-calendar {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    width: 32px;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: background 0.15s ease;
}
.doveso-btn-calendar svg {
    width: 18px;
    height: 18px;
    fill: #ba0000;
}
.doveso-btn-calendar:hover {
    background: #f1f5f9;
}
.doveso-btn-quick {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 10px;
    font-size: 0.9rem;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    font-weight: normal;
}
.doveso-btn-quick:hover {
    background: #e0e0e0;
}
.doveso-select {
    width: 100%;
    height: 40px;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 4px 8px;
    background: #fff;
    box-sizing: border-box;
    outline: none;
}
.doveso-select:focus {
    border-color: #ba0000;
}
.doveso-num-input {
    width: 100%;
    height: 40px;
    font-size: 1.15rem;
    letter-spacing: 2px;
    text-align: center;
    border: 1px solid #ba0000;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #ba0000;
    padding: 4px 8px;
    background: #fff;
    box-sizing: border-box;
    outline: none;
}
.doveso-btn-submit {
    width: 100%;
    height: 40px;
    background: #ba0000;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease-in-out;
    box-sizing: border-box;
}
.doveso-btn-submit:hover {
    background: #900;
}

/* ==============================================================================
   CASINO TICKET HERO - KHUNG DÒ VÉ SỐ TO FULL & HIỆU ỨNG ĐÈN CHỚP NHÁY
   Màu sắc casino: Vàng (#ffd200) - Đỏ (#e50914) - Đen (#111111) chạy luân phiên
============================================================================== */
.casino-ticket-hero {
    position: relative;
    background: #0f172a;
    border: 3px solid #ffd200;
    margin-top: 14px;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Dải đèn LED casino (chớp nháy vàng - đỏ - đen chạy vòng quanh) */
.casino-lights-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
    margin-bottom: 12px;
    background: #000;
    overflow: hidden;
    gap: 4px;
}
.casino-lights-track.track-bottom {
    margin-top: 14px;
    margin-bottom: 0;
}

.casino-bulb {
    flex: 1;
    max-width: 14px;
    height: 10px;
    display: inline-block;
    border-radius: 50% !important;
    box-shadow: none !important;
}

/* 3 pha chớp nháy so le tạo hiệu ứng ánh sáng chạy chaser */
@keyframes casinoChaser1 {
    0%, 100% { background-color: #ffd200; opacity: 1; }
    33.3%    { background-color: #e50914; opacity: 0.9; }
    66.6%    { background-color: #111111; opacity: 0.35; }
}
@keyframes casinoChaser2 {
    0%, 100% { background-color: #e50914; opacity: 0.9; }
    33.3%    { background-color: #111111; opacity: 0.35; }
    66.6%    { background-color: #ffd200; opacity: 1; }
}
@keyframes casinoChaser3 {
    0%, 100% { background-color: #111111; opacity: 0.35; }
    33.3%    { background-color: #ffd200; opacity: 1; }
    66.6%    { background-color: #e50914; opacity: 0.9; }
}

.c-bulb-1 { animation: casinoChaser1 0.75s infinite ease-in-out; }
.c-bulb-2 { animation: casinoChaser2 0.75s infinite ease-in-out; }
.c-bulb-3 { animation: casinoChaser3 0.75s infinite ease-in-out; }

/* Tiêu đề & nhãn trong khung casino */
.casino-hero-header {
    text-align: center;
    margin-bottom: 12px;
}
.casino-hero-title {
    color: #ffd200;
    font-size: 1.15rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}
.casino-hero-subtitle {
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 400;
}

/* Ô nhập số siêu to FULL-WIDTH */
.casino-input-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}
.casino-input-num {
    width: 100% !important;
    height: 60px !important;
    font-size: 2.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 8px !important;
    text-align: center !important;
    color: #ba0000 !important;
    background: #ffffff !important;
    border: 3px solid #ffd200 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 6px 16px !important;
    box-sizing: border-box !important;
    font-family: Arial, -apple-system, sans-serif !important;
}
.casino-input-num::placeholder {
    color: #94a3b8 !important;
    font-size: 1.25rem !important;
    letter-spacing: 2px !important;
    font-weight: 400 !important;
}
.casino-input-num:focus {
    border-color: #e50914 !important;
    background: #fffdf5 !important;
}

/* Dải phím gợi ý & thao tác nhanh */
.casino-quick-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}
.casino-tag-btn {
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid #475569;
    padding: 6px 12px;
    font-size: 0.88rem;
    font-weight: 400;
    cursor: pointer;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: all 0.15s ease-in-out;
}
.casino-tag-btn:hover {
    background: #ffd200;
    color: #111;
    border-color: #ffd200;
}
.casino-tag-btn.btn-clear {
    background: #450a0a;
    color: #fca5a5;
    border-color: #7f1d1d;
}
.casino-tag-btn.btn-clear:hover {
    background: #e50914;
    color: #fff;
    border-color: #e50914;
}

/* Nút CTA dò vé số to nổi bật chuẩn casino */
.casino-btn-check {
    width: 100% !important;
    height: 52px !important;
    background: linear-gradient(180deg, #e50914 0%, #990000 100%) !important;
    color: #ffffff !important;
    border: 2px solid #ffd200 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    letter-spacing: 0.5px !important;
    transition: background 0.15s ease-in-out, transform 0.1s ease !important;
    box-sizing: border-box !important;
}
.casino-btn-check:hover {
    background: linear-gradient(180deg, #ff1744 0%, #ba0000 100%) !important;
    color: #ffd200 !important;
}
.casino-btn-check:active {
    transform: translateY(1px);
}

@media (max-width: 768px) {
    .casino-ticket-hero {
        padding: 12px 10px;
    }
    .casino-input-num {
        height: 54px !important;
        font-size: 1.65rem !important;
        letter-spacing: 5px !important;
    }
    .casino-input-num::placeholder {
        font-size: 1.05rem !important;
        letter-spacing: 1px !important;
    }
    .casino-btn-check {
        height: 48px !important;
        font-size: 1.1rem !important;
    }
    .casino-hero-title {
        font-size: 1.05rem;
    }
    .casino-tag-btn {
        padding: 5px 8px;
        font-size: 0.82rem;
    }
}

/* Dò vé số Tabs & Vietlott Form */
.doveso-tabs-nav {
    display: flex;
    background: #f5f5f5;
    border-bottom: 2px solid #ba0000;
    margin-bottom: 0;
    box-sizing: border-box;
}
.doveso-tab-btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 1rem;
    font-weight: normal;
    color: #444;
    background: #f0f0f0;
    border: none;
    border-right: 1px solid #dcdcdc;
    cursor: pointer;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease-in-out, color 0.15s ease-in-out;
    text-align: center;
    box-sizing: border-box;
}
.doveso-tab-btn:last-child {
    border-right: none;
}
.doveso-tab-btn:hover {
    background: #e4e4e4;
    color: #ba0000;
}
.doveso-tab-btn.active {
    background: #ba0000;
    color: #fff;
    font-weight: 500;
}
.doveso-tab-pane {
    display: none;
}
.doveso-tab-pane.active {
    display: block;
}
.vl-inputs-row {
    display: flex;
    gap: 6px;
    align-items: center;
    box-sizing: border-box;
}
.vl-num-input {
    flex: 1;
    min-width: 0;
    max-width: 48px;
    height: 40px;
    font-size: 1.15rem;
    text-align: center;
    border: 1px solid #ba0000;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #ba0000;
    padding: 2px;
    box-sizing: border-box;
    outline: none;
    background: #fff;
}
.vl-num-input:focus {
    border-color: #900;
    background: #fff8f8;
}
.vl-balls-display {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0;
}
.vl-ball-hit {
    background: #9a3412 !important;
    color: #fff !important;
    transform: scale(1.12);
    border: 2px solid #ffd200 !important;
}

@media (max-width: 640px) {
    .doveso-form-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .doveso-label-spacer {
        display: none;
    }
    .doveso-btn-submit {
        height: 44px;
        font-size: 1.05rem;
    }
    .doveso-tab-btn {
        padding: 9px 6px;
        font-size: 0.95rem;
    }
    .vl-num-input {
        max-width: 42px;
        height: 38px;
        font-size: 1.05rem;
    }
}

/* Blocks & Boxes */
.box {
    background: #fff;
    border: 1px solid #dcdcdc;
    margin-bottom: 10px;
}
.box-header {
    background: #ba0000;
    color: #fff;
    padding: 7px 10px;
    font-size: 1.05rem;
    font-weight: 700 !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    gap: 8px;
    box-sizing: border-box;
}
.box-header, .box-header * {
    font-weight: 700 !important;
    text-align: left !important;
}
.box-header a, .box-header a:visited {
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700 !important;
    text-align: left !important;
}
.box-header a:hover, .box-header a:focus {
    color: #ffffff !important;
    text-decoration: underline !important;
}
.box-header.gold-header {
    background: #9a3412 !important;
}
.box-header.gold-header a,
.box-header.gold-header a:visited {
    color: #ffffff !important;
}
.box-header.gold-header a:hover,
.box-header.gold-header a:focus {
    color: #ffffff !important;
    text-decoration: underline !important;
}
.box-header.blue-header {
    background: #0066cc;
}
.box-content {
    padding: 8px 10px;
}

/* Lottery Result Table */
.lottery-box {
    margin-bottom: 14px;
}
.lottery-title-bar {
    background: #ba0000;
    color: #fff;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lottery-title-bar.title-bar-mn {
    background: #0073aa;
}
.lottery-title-bar.title-bar-mt {
    background: #2e7d32;
}
.lottery-title-bar h2, .lottery-title-bar h1 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: normal;
}
.lottery-title-bar a {
    color: #ffffff !important;
    text-decoration: none;
}
.lottery-title-bar a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}
.lottery-sub-info {
    font-size: 0.95rem;
    color: #fff;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    background: #fff;
}
.result-table th, .result-table td {
    border: 1px solid #e2e8f0;
    padding: 6px 8px;
    text-align: center;
    vertical-align: middle;
}
.result-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}
.result-table .prize-name {
    width: 90px;
    background: #f8fafc;
    font-weight: 600 !important;
    color: #475569;
    font-size: 0.95rem;
    border-right: 1px solid #cbd5e1;
}
.result-table .special-prize {
    background: #fff5f5;
    color: #ba0000 !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    letter-spacing: 2px;
}
.result-table .first-prize {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    letter-spacing: 1px;
}
.result-table .prize-numbers {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    letter-spacing: 1px;
}
.result-table .prize-numbers span:not(.prize-sep) {
    display: inline-block;
    font-weight: 700 !important;
}
.result-table .prize-numbers span.num-seven {
    color: #ba0000 !important;
    font-weight: 800 !important;
    font-size: 1.35rem !important;
}
.prize-sep {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    font-size: 1.1rem !important;
    display: inline-block;
    padding: 0 7px;
    user-select: none;
    vertical-align: middle;
}
.prize-row, .multi-prize-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 0;
}
.prize-row {
    margin: 3px 0;
}
.prize-row span:not(.prize-sep), .multi-prize-cell span:not(.prize-sep) {
    display: inline-block;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}
.num-eight {
    color: #ba0000 !important;
    font-weight: 800 !important;
    font-size: 1.45rem !important;
}

/* Head & Tail Table (Đầu - Đuôi Loto) */
.loto-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 6px;
}
.loto-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    background: #fff;
}
.loto-table th, .loto-table td {
    border: 1px solid #ddd;
    padding: 5px 8px;
}
.loto-table th {
    background: #eee;
    text-align: center;
    font-weight: normal;
    padding: 6px;
}
.loto-table .col-digit {
    width: 50px;
    text-align: center;
    font-weight: 500;
    background: #fdfdfd;
}
.loto-table .col-numbers {
    letter-spacing: 1px;
    color: #000;
}
.loto-table .col-numbers strong {
    color: #ba0000;
}

/* Multi-Province Tables (XSMN & XSMT) */
.table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    margin-bottom: 6px;
}

.multi-province-table,
.multi-prov-table,
.xsmn-live-table,
.xsmt-live-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    font-size: 1rem;
    background: #fff;
    box-sizing: border-box !important;
}

.multi-province-table th, .multi-province-table td,
.multi-prov-table th, .multi-prov-table td,
.xsmn-live-table th, .xsmn-live-table td,
.xsmt-live-table th, .xsmt-live-table td {
    border: 1px solid #e2e8f0 !important;
    padding: 6px 3px !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

.multi-province-table th,
.multi-prov-table th,
.xsmn-live-table th,
.xsmt-live-table th {
    background: #f8fafc;
    font-weight: 500;
    color: #334155;
}

.multi-province-table .province-header,
.multi-prov-table .province-header,
.xsmn-live-table .province-header,
.xsmt-live-table .province-header,
.province-header {
    background: #e0f2fe !important;
    font-size: 0.98rem !important;
    font-weight: 500 !important;
    color: #075985 !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
}

.multi-province-table .province-header-mt,
.multi-prov-table .province-header-mt,
.xsmt-live-table .province-header,
.province-header-mt {
    color: #166534 !important;
}

.multi-province-table .col-prize,
.multi-prov-table .col-prize,
.xsmn-live-table .col-prize,
.xsmt-live-table .col-prize {
    width: 60px !important;
    min-width: 40px !important;
    max-width: 65px !important;
    padding: 6px 2px !important;
    font-size: 0.9rem !important;
    background: #fafafa !important;
    color: #475569 !important;
    font-weight: 500 !important;
}

.prize-name-short {
    display: none !important;
}
.prize-name-full {
    display: inline !important;
}

.multi-province-table td,
.multi-prov-table td,
.xsmn-live-table td,
.xsmt-live-table td {
    font-size: 1.12rem;
    font-weight: 500 !important;
    color: #1e293b;
    letter-spacing: 0.3px;
}

/* Các cụm số trong bảng đa đài hiển thị từng dòng trên cả điện thoại và desktop */
.multi-province-table td .giaiSo,
.multi-prov-table td .giaiSo,
.xsmn-live-table td .giaiSo,
.xsmt-live-table td .giaiSo {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 2px 0 !important;
    padding: 1px 0 !important;
    line-height: 22px !important;
    white-space: nowrap !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
}

.multi-province-table .special-row td,
.multi-prov-table .special-row td,
.xsmn-live-table .special-row td,
.xsmt-live-table .special-row td {
    background: #fff5f5 !important;
}

.multi-province-table .special-row td .giaiSo,
.multi-prov-table .special-row td .giaiSo,
.xsmn-live-table .special-row td .giaiSo,
.xsmt-live-table .special-row td .giaiSo,
.multi-province-table td.giaidb .giaiSo,
.multi-prov-table td.giaidb .giaiSo,
.xsmn-live-table td.giaidb .giaiSo,
.xsmt-live-table td.giaidb .giaiSo {
    color: #ba0000 !important;
    font-size: 1.35rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.8px !important;
}

.multi-province-table .special-row td:first-child,
.multi-prov-table .special-row td:first-child,
.xsmn-live-table .special-row td:first-child,
.xsmt-live-table .special-row td:first-child {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #ba0000 !important;
}

/* Vietlott Balls & Display */
.vietlott-game-box {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 12px;
    padding: 10px;
}
.vietlott-game-title {
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2px;
}
.vietlott-game-title.title-mega {
    color: #ba0000;
}
.vietlott-game-title.title-power {
    color: #9a3412;
}
.vietlott-game-link {
    color: inherit;
    text-decoration: none;
}
.vietlott-game-link:hover {
    text-decoration: underline;
}
.vietlott-game-date {
    font-size: 0.88rem;
    text-align: center;
    color: #4b5563;
    margin-bottom: 6px;
}
.vietlott-balls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}
.ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    background: #ba0000;
}
.ball.bonus-ball {
    background: #b45309;
    color: #ffffff !important;
}
.ball.blue-ball {
    background: #0066cc;
}
.ball.green-ball {
    background: #28a745;
}
.jackpot-highlight {
    text-align: center;
    font-size: 1.1rem;
    color: #374151;
    margin: 8px 0;
}
.jackpot-highlight .amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ba0000;
}

.home-section-subtitle {
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
    margin-bottom: 6px;
}
.home-section-subtitle.subtitle-red {
    color: #ba0000;
}
.home-section-subtitle.subtitle-blue {
    color: #0369a1;
}

/* Sidebar Widgets */
.sidebar-box {
    background: #fff;
    border: 1px solid #dcdcdc;
    margin-bottom: 10px;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.sidebar-header {
    background: #ba0000;
    color: #ffffff;
    padding: 7px 10px;
    font-size: 0.95rem;
    font-weight: 500 !important;
    line-height: 1.3;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box;
}
.sidebar-header,
.sidebar-header * {
    font-weight: 500 !important;
    color: #ffffff;
}
.sidebar-header-link {
    color: #ffffff !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.sidebar-header-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.95rem;
    font-weight: 500 !important;
    color: #ffffff;
}
.sidebar-header-title .svg-icon {
    width: 16px;
    height: 16px;
    fill: #ffffff;
    flex-shrink: 0;
}
.sidebar-header-more {
    font-size: 0.82rem;
    font-weight: normal !important;
    opacity: 0.92;
    white-space: nowrap;
    color: #ffffff;
}
.sidebar-header-link:hover .sidebar-header-more {
    opacity: 1;
    text-decoration: underline;
}

/* Regional sidebar headers if specified */
.sidebar-header.header-mn {
    background: #0073aa;
}
.sidebar-header.header-mt {
    background: #2e7d32;
}

/* Standardize any box-header in sidebar */
.sidebar-col .box-header,
.col-sub-3 .box-header,
.col-side-3 .box-header {
    font-size: 0.95rem;
    font-weight: 500 !important;
    padding: 7px 10px;
}
.sidebar-col .box-header *,
.col-sub-3 .box-header *,
.col-side-3 .box-header * {
    font-weight: 500 !important;
}

/* Sidebar Article Cards (Soi Cầu & Thống Kê 3 Miền) */
.sidebar-article-list {
    background: #fff;
    display: flex;
    flex-direction: column;
}
.sidebar-article-card {
    display: flex;
    gap: 8px;
    padding: 7px 8px;
    text-decoration: none !important;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    transition: background 0.15s ease;
}
.sidebar-article-card:last-child {
    border-bottom: none;
}
.sidebar-article-card:hover {
    background: #fdf5f5;
}
.sidebar-article-thumb {
    width: 84px;
    height: 54px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 0 !important;
}
.sidebar-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none !important;
    border-radius: 0 !important;
}
.sidebar-article-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sidebar-article-title {
    font-size: 0.88rem;
    line-height: 1.35;
    color: #1e293b;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.sidebar-article-card:hover .sidebar-article-title {
    color: #ba0000;
}
.sidebar-article-date {
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: normal;
    margin-top: 2px;
}
.region-badge {
    display: inline-block;
    padding: 1px 4px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #fff;
    vertical-align: middle;
    margin-right: 3px;
    line-height: 1.2;
    border-radius: 0 !important;
}
.badge-mb {
    background: #ba0000;
}
.badge-mn {
    background: #0073aa;
}
.badge-mt {
    background: #2e7d32;
}

/* Quick Action Buttons Widget */
.widget-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}
.btn-action-main {
    background: linear-gradient(180deg, #ba0000 0%, #990000 100%);
    color: #fff !important;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    border-radius: 0 !important;
    border: none !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: opacity 0.15s;
}
.btn-action-main:hover {
    opacity: 0.92;
}
.action-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
}
.action-btn-sub {
    background: #fff;
    border: 1px solid #cbd5e1 !important;
    padding: 5px 2px;
    font-size: 0.88rem;
    text-align: center;
    text-decoration: none !important;
    font-weight: 500;
    border-radius: 0 !important;
    display: block;
    box-shadow: none !important;
    transition: background 0.15s;
}
.action-btn-sub:hover {
    background: #f8fafc;
}
.action-btn-sub.btn-sub-mb {
    color: #ba0000;
}
.action-btn-sub.btn-sub-mn {
    color: #0073aa;
}
.action-btn-sub.btn-sub-mt {
    color: #2e7d32;
}
.action-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: 2px;
}
.action-btn-tool {
    color: #fff !important;
    text-align: center;
    padding: 6px 4px;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none !important;
    border-radius: 0 !important;
    border: none !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: opacity 0.15s;
}
.action-btn-tool:hover {
    opacity: 0.92;
}
.btn-tool-in-ve {
    background: linear-gradient(180deg, #2e7d32 0%, #1e5a23 100%);
}
.btn-tool-tv {
    background: linear-gradient(180deg, #1e3a8a 0%, #0f172a 100%);
}

/* Lo Gan Widget Table */
.widget-table-wrap {
    padding: 0;
    background: #fff;
}
.widget-lo-gan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: center;
}
.widget-lo-gan-table thead tr {
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}
.widget-lo-gan-table th {
    padding: 5px 6px;
    font-weight: 500;
    border: none;
}
.widget-lo-gan-table tr {
    border-bottom: 1px solid #f1f5f9;
}
.widget-lo-gan-table td {
    padding: 5px 6px;
    border: none;
}
.widget-lo-gan-table .lo-gan-num {
    font-weight: 500;
    color: #ba0000;
    font-size: 1rem;
}
.widget-lo-gan-table .lo-gan-days {
    color: #c62828;
    font-weight: 500;
}
.widget-lo-gan-table .lo-gan-max {
    color: #64748b;
    font-weight: normal;
}

/* Tools Menu Widget */
.widget-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}
.widget-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 0.92rem;
    color: #334155;
    text-decoration: none !important;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.widget-menu-link:hover {
    background: #f8fafc;
    color: #ba0000;
}
.widget-menu-link.highlight {
    color: #ba0000;
    font-weight: 500;
}
.widget-menu-count {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Vietlott Jackpot Widget */
.widget-jackpot-body {
    padding: 10px 8px;
    background: #fff;
    text-align: center;
}
.jackpot-item {
    padding: 2px 0;
}
.jackpot-item-border {
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 8px;
}
.jackpot-label {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: normal;
}
.jackpot-val-power {
    font-size: 1.35rem;
    color: #ba0000;
    font-weight: 500;
    margin: 2px 0;
}
.jackpot-val-mega {
    font-size: 1.25rem;
    color: #c2410c;
    font-weight: 500;
    margin: 2px 0;
}
.jackpot-date {
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: normal;
}

/* Lich Quay Widget */
.widget-lich-quay-body {
    padding: 6px 8px;
    font-size: 0.88rem;
    background: #fff;
    line-height: 1.6;
}
.widget-lich-quay-table {
    width: 100%;
    border-collapse: collapse;
}
.widget-lich-quay-table tr {
    border-bottom: 1px solid #f1f5f9;
}
.widget-lich-quay-table tr:last-child {
    border-bottom: none;
}
.widget-lich-quay-table td {
    padding: 4px 0;
    border: none;
}
.widget-lich-quay-day {
    width: 55px;
    color: #ba0000;
    font-weight: 500;
    vertical-align: top;
}

/* So Mo Widget */
.widget-so-mo-body {
    padding: 8px 10px;
    background: #fff;
}
.so-mo-form {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}
.so-mo-input {
    flex: 1;
    height: 34px;
    font-size: 0.9rem;
    padding: 2px 8px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    box-sizing: border-box;
}
.so-mo-btn {
    background: linear-gradient(180deg, #4527a0 0%, #311b92 100%);
    color: #fff;
    height: 34px;
    padding: 0 10px;
    font-size: 0.88rem;
    font-weight: 500;
    border: none !important;
    cursor: pointer;
    border-radius: 0 !important;
    white-space: nowrap;
    box-shadow: none !important;
    transition: opacity 0.15s;
}
.so-mo-btn:hover {
    opacity: 0.92;
}
.so-mo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.so-mo-tag {
    background: #f8fafc;
    padding: 2px 6px;
    font-size: 0.82rem;
    color: #334155;
    text-decoration: none !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: background 0.15s;
}
.so-mo-tag:hover {
    background: #ede9fe;
    color: #4527a0;
}
.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-list li {
    border-bottom: 1px solid #eee;
}
.sidebar-list li a {
    display: block;
    padding: 7px 10px;
    font-size: 0.95rem;
    color: #333;
}
.sidebar-list li a:hover {
    background: #fdf5f5;
    color: #ba0000;
}

/* Article / Post Detail */
.article-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.article-title {
    margin: 0 0 10px 0;
    font-size: 1.45rem;
    font-weight: 500;
    color: #ba0000;
    line-height: 1.35;
}
.article-meta {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.article-summary {
    font-size: 1rem;
    font-weight: normal;
    color: #444;
    background: #f9f9f9;
    padding: 10px 12px;
    border-left: 4px solid #ba0000;
    margin-bottom: 14px;
    line-height: 1.5;
}
.article-content {
    font-size: 1rem;
    line-height: 1.6;
}
.article-content h2.subheading {
    font-size: 1.2rem;
    font-weight: 500;
    color: #ba0000;
    margin: 16px 0 8px 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
}
.article-content p {
    margin: 0 0 10px 0;
}
.article-content ul {
    margin: 0 0 10px 20px;
    padding: 0;
}
.article-content li {
    margin-bottom: 6px;
}

/* Related Posts Grid */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
.related-post-card {
    border: none !important;
    background: #f8fafc;
    padding: 8px;
}
.related-post-link {
    text-decoration: none;
    display: block;
}
.related-post-img {
    width: 100%;
    height: 135px;
    object-fit: cover;
    display: block;
    border: none !important;
    margin-bottom: 6px;
}
.related-post-meta {
    font-size: 0.85rem;
    color: #ba0000;
    margin-bottom: 3px;
    font-weight: 500;
}
.related-post-title {
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.35;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-post-link:hover .related-post-title {
    color: #ba0000;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.92rem;
    color: #475569;
    margin-bottom: 8px;
    padding: 4px 0;
}
.breadcrumbs a {
    color: #0369a1;
    text-decoration: underline !important;
}

/* Sổ Mơ Search Box */
.somo-search-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.somo-search-wrap input {
    flex: 1;
    padding: 8px 12px;
    font-size: 1rem;
    border: 1px solid #bbb;
}
.somo-search-wrap button {
    padding: 8px 16px;
    background: #ba0000;
    color: #fff;
    font-size: 1rem;
    font-weight: normal;
    border: 1px solid #900;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background: #333;
    color: #ccc;
    font-size: 0.95rem;
    padding: 16px 0;
    margin-top: 20px;
    border-top: 3px solid #ba0000;
}
.site-footer a {
    color: #ffd200;
}
.footer-custom-html {
    text-align: center;
    margin: 12px 0 6px 0;
    line-height: 1.5;
}
.footer-custom-html img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}
.footer-bottom {
    text-align: center;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-meta-line {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #cbd5e1;
}
.footer-meta-line strong {
    color: #f1f5f9;
    font-weight: 500;
}
.footer-meta-line a {
    color: #ffd200 !important;
    text-decoration: none !important;
}
.footer-meta-line a:hover {
    text-decoration: underline !important;
}

/* Utility classes */
.text-red { color: #ba0000 !important; }
.text-blue { color: #0066cc !important; }
.text-orange { color: #f89406 !important; }
.bold { font-weight: 500 !important; }
.font-18 { font-size: 1rem !important; }
.font-20 { font-size: 1.15rem !important; }
.bg-red { background: #ba0000 !important; color: #fff !important; }
.bg-primary { background: #0066cc !important; color: #fff !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.d-flex { display: flex !important; }
.justify-between { justify-content: space-between !important; }
.align-center { align-items: center !important; }

/* ==========================================================================
   LIVE LOTTERY PAGES (XSMB, XSMN, XSMT, VIETLOTT LIVE)
   ========================================================================== */
.result-box {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.result-header {
    background: #ba0000;
    color: #fff;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #8e0000;
}
.result-header h2, .result-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: normal;
    line-height: 1.3;
}
.result-header .result-date {
    font-size: 0.95rem;
    color: #ffd200;
    font-weight: normal;
}

/* Table Result (Live & Quay Thử) */
.table-result {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 1rem;
    background: #fff;
}
.table-result th, .table-result td {
    border: 1px solid #e2e8f0;
    padding: 7px 8px;
    vertical-align: middle;
}
.table-result thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
    padding: 8px 6px;
}
.table-result .col-prize-name {
    background: #f8fafc;
    font-weight: 600 !important;
    color: #475569;
    width: 90px;
    text-align: center;
    border-right: 1px solid #cbd5e1;
    font-size: 0.95rem;
}
.table-result .col-prize-val {
    text-align: center;
    padding: 7px 6px;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1e293b;
}
.table-result .highlight-special {
    background: #fff5f5;
}
.table-result .highlight-seven {
    background: #fff5f5;
}
.table-result .prize-cell {
    display: inline-block;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    color: #1e293b;
    letter-spacing: 1px;
}
.table-result .num-special,
.table-result .prize-cell.num-special {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #ba0000 !important;
    letter-spacing: 2px;
}
.table-result .num-first,
.table-result .prize-cell.num-first {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    letter-spacing: 1px;
}
.table-result .num-bold,
.table-result .prize-cell.num-bold {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}
.table-result .num-seven,
.table-result .prize-cell.num-seven {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #ba0000 !important;
}

/* Live Loto Head/Tail Table */
.loto-table-wrapper {
    overflow-x: auto;
    background: #fff;
}
.loto-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 1rem;
}
.loto-table th, .loto-table td {
    border: 1px solid #e0e0e0;
    padding: 6px 8px;
}
.loto-table thead th {
    background: #f0f0f0;
    font-weight: normal;
    color: #333;
    padding: 8px 6px;
}
.loto-table td.head-num {
    font-weight: 500;
    color: #ba0000;
    background: #fafafa;
    width: 15%;
    text-align: center;
}
.loto-table td.tail-nums {
    font-weight: normal;
    color: #222;
    letter-spacing: 1px;
    text-align: left;
    padding-left: 12px;
}

/* Multi-Province Live Table (XSMN, XSMT) */
.multi-prov-table th {
    border: 1px solid #ddd;
}
.multi-prov-table td {
    border: 1px solid #e0e0e0;
}

/* ==========================================================================
   LIVE LOTTERY NAVIGATION & CONTROLS (MB, MN, MT, Vietlott, Keno)
   ========================================================================== */
.live-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
    width: 100%;
}
.live-nav-tab {
    flex: 1 1 auto;
    background: #f0f0f0;
    color: #333;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid #dcdcdc;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}
.live-nav-tab.active,
.live-nav-tab:hover {
    background: #ba0000;
    color: #fff;
    border-color: #ba0000;
}

.vietlott-game-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
    width: 100%;
}
.v-tab {
    flex: 1 1 auto;
    background: #fff;
    color: #9a3412;
    border: 1px solid #9a3412;
    padding: 7px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 0 !important;
    box-shadow: none !important;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}
.v-tab.active,
.v-tab:hover {
    background: #9a3412;
    color: #fff;
}

/* Vietlott & Điện toán Result Page Filter Navigation Tabs */
.vietlott-filter-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
}
.vietlott-filter-tab {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
}
.vietlott-filter-tab .tab-icon {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    fill: currentColor;
    transition: transform 0.18s ease;
}
.vietlott-filter-tab:hover .tab-icon {
    transform: scale(1.1);
}
.vietlott-filter-tab:active {
    transform: translateY(1px);
}
.vietlott-filter-tab:focus-visible {
    outline: 2px solid #ba0000;
    outline-offset: 1px;
}

/* Hover States per Game (Subtle Brand Tinted Background) */
.vietlott-filter-tab:hover,
.vietlott-filter-tab.tab-all:hover,
.vietlott-filter-tab.tab-mega645:hover {
    background: #fef2f2;
    color: #ba0000;
    border-color: #ba0000;
}
.vietlott-filter-tab.tab-power655:hover {
    background: #fff7ed;
    color: #9a3412;
    border-color: #9a3412;
}
.vietlott-filter-tab.tab-max3d:hover {
    background: #f0f7ff;
    color: #0073aa;
    border-color: #0073aa;
}
.vietlott-filter-tab.tab-max3dpro:hover {
    background: #f0fdf4;
    color: #2e7d32;
    border-color: #2e7d32;
}
.vietlott-filter-tab.tab-thantai:hover {
    background: #fef2f2;
    color: #ba0000;
    border-color: #ba0000;
}
.vietlott-filter-tab.tab-d123:hover {
    background: #f0f7ff;
    color: #0073aa;
    border-color: #0073aa;
}
.vietlott-filter-tab.tab-d6x36:hover {
    background: #fff7ed;
    color: #9a3412;
    border-color: #9a3412;
}

/* Active State: Solid Brand Colors, High Contrast Crisp White Text */
.vietlott-filter-tab.active {
    color: #ffffff !important;
    background: #ba0000 !important;
    border-color: #ba0000 !important;
    font-weight: 500;
    cursor: default;
}
.vietlott-filter-tab.tab-all.active,
.vietlott-filter-tab.tab-mega645.active,
.vietlott-filter-tab.tab-thantai.active {
    background: #ba0000 !important;
    border-color: #ba0000 !important;
    color: #ffffff !important;
}
.vietlott-filter-tab.tab-power655.active,
.vietlott-filter-tab.tab-d6x36.active {
    background: #9a3412 !important;
    border-color: #9a3412 !important;
    color: #ffffff !important;
}
.vietlott-filter-tab.tab-max3d.active,
.vietlott-filter-tab.tab-d123.active {
    background: #0073aa !important;
    border-color: #0073aa !important;
    color: #ffffff !important;
}
.vietlott-filter-tab.tab-max3dpro.active {
    background: #2e7d32 !important;
    border-color: #2e7d32 !important;
    color: #ffffff !important;
}
.vietlott-filter-tab.active:hover {
    opacity: 0.95;
}

.live-header-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.live-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.live-header-title h1,
.live-header-title h2 {
    font-size: 1.15rem;
    color: #ba0000;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}
.live-radar-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #f40819;
    border-radius: 50% !important;
    flex-shrink: 0;
    animation: radarPulse 1.5s infinite ease-in-out;
}
@keyframes radarPulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 1; }
}
.live-subtitle {
    font-size: 0.92rem;
    color: #555;
    margin-top: 4px;
    line-height: 1.4;
}

.live-status-bar,
#live-status-badge {
    padding: 8px 12px;
    font-size: 0.98rem;
    font-weight: 500;
    margin: 10px 0;
    text-align: center;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.3;
}
.status-waiting {
    background: #fff8e1;
    color: #9a3412;
    border: 1px solid #ffe082;
}
.status-live {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    animation: flashLive 1.2s infinite alternate;
}
.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
@keyframes flashLive {
    from { background: #ffebee; }
    to { background: #ffcdd2; }
}

.live-controls-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 0.95rem;
}
.btn-live-control {
    background: #f5f5f5;
    border: 1px solid #ccc;
    padding: 6px 14px;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    line-height: 1.3;
    transition: background 0.2s ease;
}
.btn-live-control:hover {
    background: #e0e0e0;
}
.btn-live-control.sound-on {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #81c784;
}
.btn-live-control.sound-off {
    background: #ffebee;
    color: #b71c1c;
    border-color: #e57373;
}
.auto-refresh-tag {
    color: #666;
    font-size: 0.9rem;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Universal Live Lottery Loading Spinner (.live-loading-img) */
.live-loading-img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    display: inline-block;
    pointer-events: none;
    margin: 0 auto;
}
.col-prize-val .live-loading-img,
.live-cell .live-loading-img {
    width: 20px;
    height: 20px;
}
.num-special .live-loading-img,
.num-first .live-loading-img {
    width: 26px;
    height: 26px;
}
.ball.live-ball.is-waiting {
    background: #ffffff !important;
    border-color: #e0e0e0 !important;
    color: transparent !important;
    box-shadow: none !important;
}
.ball.live-ball .live-loading-img {
    width: 30px;
    height: 30px;
    display: block;
}

/* ==========================================================================
   VIETLOTT RESULTS & CRAWLED DATA STYLES
   ========================================================================== */
.vietlott-raw-wrap, .block-main-content {
    width: 100%;
    margin-top: 10px;
}
.vietlott-raw-wrap .mega-detail,
.vietlott-raw-wrap .power-detail,
.vietlott-raw-wrap .para.text-black-bold,
.vietlott-raw-wrap .list-link,
.vietlott-raw-wrap .class-title-list-link,
.vietlott-raw-wrap .titlemax3d.bold {
    display: none !important; /* Hide duplicate ball list and redundant crawled elements */
}
.block .titlemax3d {
    font-weight: 500;
    font-size: 1rem;
    color: #2e7d32;
    margin: 6px 0;
    text-align: center;
}
.block .list-link, .block .class-title-list-link {
    display: none !important; /* Hide redundant crawled breadcrumbs */
}
.block p.para {
    font-weight: normal;
    color: #444;
    margin: 6px 0;
    text-align: center;
}
.table.table-bordered, .table-xsmb, .tb-total-prize {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    background: #fff;
    font-size: 1rem;
}
.table.table-bordered th, .table.table-bordered td,
.table-xsmb th, .table-xsmb td,
.tb-total-prize th, .tb-total-prize td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: center;
    vertical-align: middle;
}
.table.table-bordered th, .tb-total-prize th {
    background: #f5f5f5;
    font-weight: normal;
    color: #333;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fafafa;
}
.special-prize-lg {
    font-size: 1.45rem;
    font-weight: 600;
    color: #ba0000;
    margin: 0 4px;
    display: inline-block;
}
.number-black-bold {
    font-size: 1.15rem;
    font-weight: 500;
    color: #222;
    margin: 0 4px;
    display: inline-block;
}
.div-horizontal {
    display: inline-block;
}
.col-xs-3 {
    display: inline-block;
    min-width: 22%;
    margin: 2px;
}
.col-xs-4 {
    display: inline-block;
    min-width: 30%;
    margin: 2px;
}
.col-xs-6 {
    display: inline-block;
    min-width: 45%;
    margin: 2px;
}

/* Mega 6/45 & Power 6/55 ball styling when rendered standalone */
.mega-detail, .power-detail {
    margin: 10px 0;
    text-align: center;
}
.mega-detail ul, .power-detail ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none !important;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.mega-detail ul li, .power-detail ul li {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: #ba0000;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #8e0000;
    list-style-type: none !important;
    box-shadow: none !important;
}
.power-detail ul li {
    background: #e65100;
    border-color: #b23c00;
}
.power-detail ul li:last-child {
    background: #f89406;
    border-color: #ffd200;
    color: #fff;
}

/* ==========================================================================
   VIETLOTT PRIZE TABLES (Mega 6/45 & Power 6/55) - 100% UNIFORM STRUCTURE
   ========================================================================== */
.prize-detail,
.prize-power {
    width: 100% !important;
    margin: 8px 0 !important;
}

.prize-detail table,
.prize-power table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    margin: 0 auto !important;
    background: #fff !important;
    min-width: 480px;
}

/* Force table-cell display on all cells (overrides any Bootstrap col-xs-* inline-block) */
.prize-detail th,
.prize-detail td,
.prize-power th,
.prize-power td {
    display: table-cell !important;
    vertical-align: middle !important;
    padding: 10px 8px !important;
    border: 1px solid #dee2e6 !important;
    font-size: 1rem !important; /* 18px */
    box-sizing: border-box !important;
}

/* Header Row */
.prize-detail thead th,
.prize-power thead th {
    background: #f5f6f8 !important;
    font-weight: 500 !important;
    color: #333 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    border-bottom: 2px solid #ced4da !important;
}

/* Column 1: Giải thưởng (25%) */
.prize-detail th:nth-child(1),
.prize-detail td:nth-child(1),
.prize-power th:nth-child(1),
.prize-power td:nth-child(1) {
    width: 25% !important;
    text-align: left !important;
    padding-left: 14px !important;
    font-weight: 500 !important;
}

/* Column 2: Trùng khớp (25%) */
.prize-detail th:nth-child(2),
.prize-detail td:nth-child(2),
.prize-power th:nth-child(2),
.prize-power td:nth-child(2) {
    width: 25% !important;
    text-align: center !important;
    padding: 6px 4px !important;
}

/* Column 3: Số lượng giải (22%) */
.prize-detail th:nth-child(3),
.prize-detail td:nth-child(3),
.prize-power th:nth-child(3),
.prize-power td:nth-child(3) {
    width: 22% !important;
    text-align: right !important;
    padding-right: 14px !important;
    color: #444 !important;
}

/* Column 4: Giá trị giải (28%) */
.prize-detail th:nth-child(4),
.prize-detail td:nth-child(4),
.prize-power th:nth-child(4),
.prize-power td:nth-child(4) {
    width: 28% !important;
    text-align: right !important;
    padding-right: 14px !important;
    font-weight: 500 !important;
    color: #ba0000 !important;
}

/* Alternate row styling & hover */
.prize-detail tbody tr:nth-of-type(even),
.prize-power tbody tr:nth-of-type(even) {
    background-color: #fbfbfb !important;
}
.prize-detail tbody tr:hover,
.prize-power tbody tr:hover {
    background-color: #f1f5f9 !important;
}

/* Circle matching dots in "Trùng khớp" column */
.circle-no {
    display: table-cell !important;
    text-align: center !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}
.circle-no i {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background: #ba0000 !important;
    margin: 0 2px !important;
    vertical-align: middle !important;
    border: none !important;
    box-shadow: none !important;
}
/* Power 6/55 Jackpot 2: 6th dot is the special bonus ball */
.circle-no.special i:last-child {
    background: #f89406 !important;
    border: 2px solid #ffd200 !important;
    width: 15px !important;
    height: 15px !important;
    margin-left: 3px !important;
}

/* Text red */
.text-red {
    color: #ba0000 !important;
    font-weight: 500 !important;
}

/* Instruction text under tables */
.vietlott-raw-wrap p.text-sm {
    font-size: 0.95rem !important;
    color: #555 !important;
    margin: 10px 0 6px 0 !important;
    text-align: center !important;
    font-style: italic !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN RULES ACROSS ALL DEVICES (Mobile, Tablet, Desktop)
   ========================================================================== */

/* Universal Responsive Table Container */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 6px;
}

/* Đảm bảo bảng đa đài 100% width, không scroll ngang */
.multi-province-table, .multi-prov-table, .xsmn-live-table, .xsmt-live-table {
    min-width: 0 !important;
    width: 100% !important;
}

/* Submenu horizontal scroll on touch devices */
.subnav-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.subnav-scroll::-webkit-scrollbar {
    display: none;
}

/* Responsive Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 15px;
}

/* 2-Column & 3-Column Responsive Grids */
.vietlott-grid, .article-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.grid-3col-responsive {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
@media (max-width: 640px) {
    .vietlott-grid, .article-grid-2col, .grid-3col-responsive {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Tablet & Phablet Breakpoint (<= 992px) */
@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
    }
    .content-col {
        width: 100%;
        max-width: 100%;
    }
    .sidebar-col {
        width: 100%;
    }
}

/* Mobile & Small Tablet Breakpoint (<= 768px) */
@media (max-width: 768px) {
    /* Header stacking */
    .header-wrap {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    .logo-area {
        justify-content: center;
    }
    .header-meta {
        text-align: center;
        font-size: 0.92rem;
    }

    .header-container {
        padding: 0 !important;
    }

    /* Hide desktop nav list on mobile */
    .nav-list-desktop,
    .nav-list {
        display: none !important;
    }

    /* 4-link flex navigation bar for mobile: XSMB | XSMN | XSMT | Vietlot */
    .nav-list-mobile {
        display: flex !important;
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
        background: #8e0000;
        border-bottom: 1px solid #700000;
        align-items: stretch;
    }
    .mobile-nav-item {
        flex: 1 1 25%;
        width: 25%;
        min-width: 0;
        display: flex;
        margin: 0;
        padding: 0;
        text-align: center;
    }
    .mobile-nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        padding: 11px 2px;
        color: #fff;
        font-size: 1rem;
        font-weight: 500;
        border-right: 1px solid rgba(255, 255, 255, 0.18);
        white-space: nowrap;
        text-decoration: none;
        box-sizing: border-box;
        border-radius: 0 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        transition: background 0.15s ease, color 0.15s ease;
    }
    .mobile-nav-item:last-child .mobile-nav-link {
        border-right: none;
    }
    .mobile-nav-item.active .mobile-nav-link,
    .mobile-nav-link:hover,
    .mobile-nav-link:active {
        background: #700000;
        color: #ffd200;
    }

    /* Live announcement bar */
    .live-bar {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 6px;
        padding: 7px 10px;
        font-size: 0.9rem;
    }
    .live-bar-left, .live-bar-right {
        width: 100%;
        justify-content: flex-start;
    }

    /* Live & Vietlott switcher tabs */
    .live-nav-tabs,
    .vietlott-game-tabs,
    .vietlott-filter-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
        gap: 6px;
        margin-bottom: 12px;
    }
    .live-nav-tabs::-webkit-scrollbar,
    .vietlott-game-tabs::-webkit-scrollbar,
    .vietlott-filter-tabs::-webkit-scrollbar {
        display: none;
    }
    .live-nav-tab,
    .v-tab,
    .vietlott-filter-tab {
        white-space: nowrap;
        flex: 0 0 auto;
        padding: 8px 13px;
        font-size: 0.94rem;
    }

    /* Footer single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Live controls bar */
    .live-controls-bar {
        justify-content: center;
    }
    .auto-refresh-tag {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }
}

/* Mobile Breakpoint (<= 600px) */
@media (max-width: 600px) {
    /* Loto head & tail stack to 1 column for crystal clear readability */
    .loto-block {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .loto-table td.tail-nums, .loto-table .col-numbers {
        padding-left: 8px;
        letter-spacing: 0.5px;
    }

    /* Search forms fluid */
    .search-filter-form > div {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    .search-filter-form select, .search-filter-form input {
        width: 100% !important;
    }
}

/* Extra Small Mobile (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 4px;
    }
    .logo-title {
        font-size: 1.25rem;
    }
    .result-table .special-prize, .table-result .num-special, .multi-province-table .special-prize, .multi-province-table .special-row td {
        font-size: 1.6rem !important;
        letter-spacing: 1px;
    }
    .result-table .first-prize, .table-result .num-first {
        font-size: 1.25rem !important;
    }
    .result-table .prize-numbers, .table-result .col-prize-val, .table-result .prize-cell, .multi-province-table td {
        font-size: 1.05rem !important;
    }
    .prize-sep {
        padding: 0 4px !important;
        font-size: 0.95rem !important;
    }
    .num-seven, .num-eight {
        font-size: 1.25rem !important;
    }
    .result-table .prize-name, .table-result .col-prize-name {
        width: 75px;
        font-size: 0.9rem;
        padding: 4px 2px;
    }

    /* Multi-column live prize grid to 2 columns */
    .prize-row-grid.grid-4 > span {
        width: 50% !important;
    }
    .prize-row-grid.grid-6 > span {
        width: 50% !important;
    }

    /* Vietlott Ball Scaling (Fit all 6 balls comfortably on 1 row) */
    .vietlott-balls {
        gap: 5px;
    }
    .ball {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    .mega-detail ul,
    .power-detail ul {
        gap: 5px;
    }
    .mega-detail ul li,
    .power-detail ul li {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    .prize-detail table,
    .prize-power table {
        min-width: 440px;
    }
    .prize-detail th, .prize-detail td,
    .prize-power th, .prize-power td {
        padding: 8px 6px !important;
        font-size: 0.95rem !important;
    }
    .circle-no i {
        width: 12px !important;
        height: 12px !important;
        margin: 0 1px !important;
    }
    .circle-no.special i:last-child {
        width: 13px !important;
        height: 13px !important;
    }

    /* Countdown digits */
    .digit-box {
        min-width: 42px;
        padding: 3px 6px;
        font-size: 1.15rem;
    }
    .digit-box small {
        font-size: 0.85rem;
    }
    .digit-sep {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   MOBILE HEADER, SLIDE-IN DRAWER & BOTTOM NAVIGATION
   ========================================================================== */

/* Hidden on desktop */
.mobile-header-bar,
.mobile-drawer,
.mobile-drawer-overlay,
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    /* Hide desktop top-header to prioritize slick mobile bar */
    .top-header {
        display: none !important;
    }

    body {
        padding-bottom: 62px; /* Avoid overlapping content by sticky bottom nav */
    }

    /* Mobile Header Bar */
    .mobile-header-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #ffffff;
        color: #1e293b;
        padding: 0 10px;
        height: 52px;
        position: sticky;
        top: 0;
        z-index: 1000;
        border-bottom: 1px solid #e2e8f0;
    }

    /* Hamburger Button */
    .btn-mobile-menu {
        background: transparent;
        border: none;
        color: #1e293b;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 4px;
        cursor: pointer;
    }
    .hamburger-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 16px;
    }
    .hamburger-icon span {
        display: block;
        height: 2.5px;
        width: 100%;
        background: #1e293b;
    }
    .btn-menu-label {
        font-size: 0.95rem;
        font-weight: 700 !important;
        color: #1e293b;
        letter-spacing: 0.3px;
    }

    /* Mobile Logo */
    .mobile-logo-area {
        flex: 1;
        text-align: center;
    }
    .mobile-logo-area img,
    .mobile-logo-img {
        height: auto !important;
        max-height: 40px;
        max-width: 160px;
        object-fit: contain;
    }
    .mobile-logo-link {
        color: #ba0000 !important;
        font-size: 1.35rem;
        font-weight: 700 !important;
        text-decoration: none;
        letter-spacing: 0.5px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    .logo-star {
        color: #ba0000;
        font-size: 1.2rem;
    }

    /* Mobile Header Quick Badges */
    .btn-mobile-dove-badge,
    .btn-mobile-live-badge {
        background: linear-gradient(135deg, #ba0000 0%, #990000 100%);
        color: #ffffff;
        border: none;
        padding: 6px 11px;
        font-size: 0.92rem;
        font-weight: 700 !important;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
        border-radius: 0 !important;
        transition: all 0.15s ease-in-out;
    }
    .btn-mobile-dove-badge:hover,
    .btn-mobile-dove-badge:active {
        background: linear-gradient(135deg, #d32f2f 0%, #ba0000 100%);
        color: #ffffff;
    }

    /* Off-Canvas Drawer Overlay */
    .mobile-drawer-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.65);
        z-index: 10001;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .mobile-drawer-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Off-Canvas Drawer Body */
    .mobile-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 84%;
        max-width: 330px;
        background: #fff;
        z-index: 10002;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-drawer.active {
        transform: translateX(0);
    }

    .drawer-header {
        background: #ba0000;
        color: #fff;
        padding: 12px 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #8e0000;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    .drawer-brand {
        font-size: 1.25rem;
        font-weight: 500;
        color: #ffd200;
        letter-spacing: 0.5px;
    }
    .drawer-brand img {
        height: auto !important;
        max-height: 32px;
        max-width: 140px;
        object-fit: contain;
    }
    .btn-drawer-close {
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1.8rem;
        line-height: 1;
        cursor: pointer;
        padding: 0 4px;
    }

    .drawer-body {
        padding: 8px 0;
        flex: 1;
    }
    .drawer-section-title {
        background: #f4f4f4;
        color: #666;
        font-size: 0.88rem;
        font-weight: 500;
        padding: 8px 14px;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        letter-spacing: 0.5px;
    }
    .drawer-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .drawer-menu-list li a {
        display: flex;
        align-items: center;
        padding: 11px 16px;
        color: #222;
        font-size: 1rem;
        font-weight: normal;
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none;
    }
    .drawer-menu-list li a:active,
    .drawer-menu-list li a:hover {
        background: #fff5f5;
        color: #ba0000;
    }
    .ch-badge {
        display: inline-block;
        width: 28px;
        height: 22px;
        line-height: 22px;
        text-align: center;
        font-size: 0.8rem;
        font-weight: 500;
        color: #fff;
        margin-right: 10px;
    }
    .bg-red { background: #ba0000; }
    .bg-green { background: #2e7d32; }
    .bg-blue { background: #0073aa; }
    .bg-orange { background: #9a3412; }
    .bg-purple { background: #6a1b9a; }
    .text-gold { color: #b45309; font-weight: 500; margin-left: auto; }

    .drawer-footer {
        padding: 12px 14px;
        background: #f7f7f7;
        border-top: 1px solid #ddd;
        font-size: 0.9rem;
        color: #555;
        text-align: center;
    }

    /* Sticky Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: #1d2327;
        border-top: 2px solid #ba0000;
        z-index: 9999;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        color: #c3c4c7;
        text-decoration: none;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 4px 0;
    }
    .bottom-nav-item .nav-icon {
        font-size: 1.25rem;
        line-height: 1.1;
    }
    .bottom-nav-item .nav-label {
        font-size: 0.82rem;
        font-weight: normal;
        margin-top: 2px;
    }
    .bottom-nav-item.active,
    .bottom-nav-item:hover {
        color: #ffd200;
        background: #2c3338;
    }
}

/* ==========================================================================
   SEO Comprehensive Guide Content Styling (Zero Radius, Zero Shadow, 18px Base)
   ========================================================================== */
.seo-guide-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 18px 20px;
    margin-top: 16px;
    font-size: 1rem; /* 18px */
    line-height: 1.7;
    color: #2b2b2b;
    max-height: 300px;
    overflow: auto;
}

.seo-guide-section h2 {
    font-size: 1.35rem; /* ~24px */
    font-weight: 500;
    color: #ba0000;
    border-left: 4px solid #ba0000;
    padding-left: 10px;
    margin: 22px 0 12px 0;
    line-height: 1.35;
}

.seo-guide-section h3 {
    font-size: 1.15rem; /* ~20px */
    font-weight: 500;
    color: #0055aa;
    margin: 18px 0 8px 0;
    line-height: 1.4;
}

.seo-guide-section h4 {
    font-size: 1.05rem; /* ~19px */
    font-weight: 500;
    color: #333;
    margin: 14px 0 6px 0;
}

.seo-guide-section p {
    margin-bottom: 14px;
    text-align: justify;
}

.seo-guide-section ul,
.seo-guide-section ol {
    margin: 10px 0 16px 24px;
    padding: 0;
}

.seo-guide-section li {
    margin-bottom: 8px;
}

.seo-guide-section .seo-figure {
    margin: 18px auto;
    max-width: 740px;
    text-align: center;
}

.seo-guide-section .seo-figure img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ccc;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.seo-guide-section .seo-figure figcaption {
    font-size: 0.9rem; /* ~16px */
    color: #555;
    font-style: italic;
    margin-top: 0;
    padding: 6px 12px;
    background: #f7f7f7;
    border: 1px solid #ccc;
    border-top: none;
    text-align: center;
}

.seo-guide-section .seo-highlight-box {
    background: #fcf9f2;
    border-left: 4px solid #f39c12;
    border-top: 1px solid #f0e5d0;
    border-right: 1px solid #f0e5d0;
    border-bottom: 1px solid #f0e5d0;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.seo-guide-section .seo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border: 1px solid #ddd;
    border-radius: 0 !important;
}

.seo-guide-section .seo-table th {
    background: #f1f4f8;
    color: #1e293b;
    font-weight: normal;
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.seo-guide-section .seo-table td {
    padding: 9px 12px;
    border: 1px solid #ddd;
}

.seo-guide-section .seo-faq-item {
    border-bottom: 1px dashed #ddd;
    padding: 12px 0;
}
.seo-guide-section .seo-faq-item:last-child {
    border-bottom: none;
}

.seo-guide-section .seo-faq-q {
    font-weight: 500;
    color: #ba0000;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.seo-guide-section .seo-faq-a {
    color: #333;
    margin-bottom: 0;
}

/* Post Archive Card Layout (Clean, Responsive, No Radius, No Shadow) */
.post-archive-card {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: #fff;
    border: 1px solid #dcdcdc;
    margin-bottom: 12px;
}
.post-thumb-wrap {
    width: 240px;
    flex-shrink: 0;
}
.post-thumb-img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    display: block;
    border: 1px solid #eee;
}
.post-info-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
@media (max-width: 640px) {
    .post-archive-card {
        flex-direction: column;
        gap: 10px;
    }
    .post-thumb-wrap {
        width: 100%;
    }
    .post-thumb-img {
        height: 180px;
    }
}

/* Post Archive Filter, Badges & Pagination (Zero Inline CSS, Accessible Contrast) */
.archive-main-heading {
    font-size: 1.25rem;
    font-weight: 500;
    color: #ba0000;
    margin: 0 0 10px 0;
    text-transform: none;
}
.archive-filter-box {
    margin-bottom: 12px;
    background: #f8fafc;
}
.archive-filter-content {
    padding: 10px;
}
.archive-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.archive-filter-group:last-child {
    margin-bottom: 0;
}
.archive-filter-label {
    font-size: 0.92rem;
    color: #334155;
    font-weight: 500;
}
.archive-filter-btn {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.88rem;
    text-decoration: none;
    border: none !important;
    background: #e2e8f0;
    color: #1e293b;
    line-height: 1.3;
}
.archive-filter-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
}
.archive-filter-btn.active {
    background: #ba0000;
    color: #ffffff;
    font-weight: 500;
}
.archive-filter-btn.active-region {
    background: #0369a1;
    color: #ffffff;
    font-weight: 500;
}
.post-thumb-link {
    display: block;
    overflow: hidden;
}
.post-meta-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.post-badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 0.8rem;
    color: #ffffff;
    line-height: 1.2;
}
.post-badge-cat-thong-ke { background: #0284c7; }
.post-badge-cat-du-doan { background: #dc2626; }
.post-badge-reg-mb { background: #b91c1c; }
.post-badge-reg-mn { background: #0369a1; }
.post-badge-reg-mt { background: #15803d; }
.post-meta-text {
    font-size: 0.88rem;
    color: #475569;
}
.post-card-title {
    margin: 0 0 6px 0;
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
}
.post-card-title a {
    color: #1e293b;
    text-decoration: none;
}
.post-card-title a:hover {
    color: #ba0000;
}
.post-card-excerpt {
    margin: 0;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-footer {
    margin-top: 8px;
}
.post-readmore {
    font-size: 0.92rem;
    color: #ba0000;
    text-decoration: none;
    font-weight: 500;
}
.post-readmore:hover {
    text-decoration: underline;
}
.archive-pagination-box {
    margin-top: 15px;
    margin-bottom: 15px;
}
.archive-pagination-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 10px;
}
.archive-page-btn {
    display: inline-block;
    padding: 4px 10px;
    background: #e2e8f0;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.3;
}
.archive-page-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
}
.archive-page-btn.active {
    background: #ba0000;
    color: #ffffff;
    font-weight: 500;
}

/* ==========================================================================
   TIỆN ÍCH IN VÉ SỐ & IN BẢNG KẾT QUẢ ĐẠI LÝ (PRINT STYLES)
   ========================================================================== */
.print-options-bar {
    background: #fff;
    border: 1px solid #ccc;
    padding: 12px;
    margin-bottom: 12px;
}
.print-agent-box {
    background: #fdfdfd;
    border: 1px dashed #bbb;
    padding: 10px;
    margin-top: 10px;
}
.print-sheet-wrapper {
    background: #e8e8e8;
    padding: 15px;
    margin-bottom: 15px;
}
.print-sheet {
    background: #fff;
    border: 1.5px solid #000;
    color: #000;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 12px;
}
.print-header-agent {
    text-align: center;
    border-bottom: 1.5px solid #000;
    padding-bottom: 6px;
    margin-bottom: 6px;
}
.print-agent-title {
    font-size: 1.15rem;
    font-weight: 500;
    text-transform: none;
    margin: 0 0 2px 0;
}
.print-agent-sub {
    font-size: 0.9rem;
    margin: 0;
    color: #333;
}
.print-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.print-table th, .print-table td {
    border: 1px solid #000;
    padding: 3px 5px;
    text-align: center;
    font-size: 0.95rem;
    color: #000;
}
.print-prize-title {
    background: #f0f0f0;
    font-weight: 500;
    width: 90px;
    font-size: 0.9rem;
}
.print-special-num {
    font-size: 1.4rem;
    font-weight: 500;
    color: #ba0000;
    letter-spacing: 1.5px;
}
.print-loto-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
}
.print-loto-table th, .print-loto-table td {
    border: 1px solid #000;
    padding: 2px 4px;
    text-align: center;
    font-size: 0.85rem;
}

/* Print Book Cover */
.print-book-cover {
    background: #fff;
    border: 2px solid #000;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
}

/* Layout Split: 2 per A4 (Half) */
.print-grid-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Layout Split: 4 per A4 (Quarter) */
.print-grid-quarter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Print thermal K80 */
.print-k80-wrapper {
    max-width: 320px;
    margin: 0 auto;
}

@media print {
    /* Hide everything on page except print sheet container */
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    header, footer, nav, aside, .no-print,
    .mobile-header, .mobile-drawer, .mobile-drawer-overlay,
    .print-options-bar, .print-agent-box, .seo-guide-section,
    .main-footer, .breadcrumb, #live-indicator-bar {
        display: none !important;
    }
    .print-sheet-wrapper {
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .print-sheet {
        border: 1px solid #000 !important;
        page-break-inside: avoid !important;
        margin: 0 0 10px 0 !important;
    }
    .print-page-break {
        page-break-after: always !important;
        break-after: page !important;
    }
    .print-special-num {
        color: #000 !important;
    }
    @page {
        margin: 6mm 6mm 6mm 6mm;
        size: auto;
    }
}

/* ==========================================================================
   BẢNG CHIẾU 3 MIỀN & BẢN CHIẾU TRỰC TIẾP TV (TV SCREEN MODE)
   ========================================================================== */
.tv-screen-wrapper {
    background: #0d1117;
    color: #e6edf3;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}
.tv-top-bar {
    background: #161b22;
    border-bottom: 2px solid #30363d;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.tv-logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffd200;
}
.tv-live-pill {
    background: #ba0000;
    color: #fff;
    font-size: 0.85rem;
    padding: 2px 8px;
    border: 1px solid #ff4d4f;
    animation: livePulseMenu 1.2s infinite ease-in-out;
}
.tv-clock-display {
    font-size: 1.4rem;
    font-weight: 500;
    color: #58a6ff;
    font-family: "Courier New", Courier, monospace;
}
.tv-toolbar-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.tv-action-btn {
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 5px 10px;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tv-action-btn.active, .tv-action-btn:hover {
    background: #ba0000;
    color: #fff;
    border-color: #ba0000;
}
.tv-body-content {
    padding: 12px;
}
.tv-region-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}
@media (max-width: 1024px) {
    .tv-region-grid {
        grid-template-columns: 1fr;
    }
}
.tv-panel-card {
    background: #161b22;
    border: 1.5px solid #30363d;
}
.tv-panel-header {
    background: #8e0000;
    color: #fff;
    padding: 8px 12px;
    font-size: 1.15rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tv-special-block {
    background: #231114;
    border-bottom: 2px solid #8e0000;
    padding: 12px;
    text-align: center;
}
.tv-special-label {
    font-size: 0.95rem;
    color: #ff7b72;
    margin-bottom: 4px;
}
.tv-special-digits {
    font-size: 2.6rem;
    font-weight: 500;
    color: #ff4d4f;
    letter-spacing: 4px;
    line-height: 1.1;
}
.tv-result-table {
    width: 100%;
    border-collapse: collapse;
}
.tv-result-table th, .tv-result-table td {
    border: 1px solid #30363d;
    padding: 6px 8px;
    text-align: center;
    font-size: 1.05rem;
    color: #e6edf3;
}
.tv-prize-lbl {
    width: 80px;
    background: #21262d;
    color: #8b949e;
    font-size: 0.95rem;
}
.tv-loto-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 8px;
    background: #12161c;
    border-top: 1px solid #30363d;
}
.tv-loto-head-box {
    border: 1px solid #30363d;
    padding: 4px;
    font-size: 0.95rem;
    text-align: center;
}
.tv-loto-head-title {
    color: #58a6ff;
    font-size: 0.9rem;
    border-bottom: 1px solid #21262d;
    padding-bottom: 2px;
    margin-bottom: 2px;
}
.tv-countdown-banner {
    background: #1c2128;
    border: 1.5px solid #d29922;
    color: #ffd200;
    padding: 12px;
    text-align: center;
    margin-bottom: 12px;
    font-size: 1.25rem;
}
.tv-countdown-digits {
    font-size: 2rem;
    color: #ffd200;
    font-family: "Courier New", Courier, monospace;
    font-weight: 500;
    margin-top: 4px;
}
.tv-bottom-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #8e0000;
    color: #fff;
    padding: 5px 0;
    overflow: hidden;
    white-space: nowrap;
    z-index: 999;
    border-top: 1px solid #ffd200;
}
.tv-ticker-track {
    display: inline-block;
    padding-left: 100%;
    animation: tvTickerScroll 25s linear infinite;
    font-size: 1rem;
}
@keyframes tvTickerScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}
.tv-ball-spinning {
    animation: livePulseMenu 0.8s infinite ease-in-out;
    background: #ffd200 !important;
    color: #ba0000 !important;
    font-weight: 500;
}

/* ==========================================================================
   HOMEPAGE LOTTERY-BOX UTILITIES: STATISTIC LINKS & NEXT-DAY POST LINKS
   ========================================================================== */
.box-stat-links {
    border-top: 1px solid #e1e4e8;
    background: #f8f9fa;
    padding: 2px 0;
}
.link-statistic {
    list-style: none;
    margin: 0;
    padding: 7px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    border-bottom: 1px dashed #e1e4e8;
}
.link-statistic li {
    display: inline-flex;
    align-items: center;
}
.link-statistic a {
    color: #0029ad;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}
.link-statistic a::before {
    content: "▸";
    color: #ba0000;
    font-size: 0.85rem;
}
.link-statistic a:hover {
    color: #ba0000;
    text-decoration: underline;
}

/* Direct Next-Day Post Links list inside lottery box */
.link-next-posts {
    list-style: none;
    margin: 0;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.link-next-posts li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}
.link-next-posts a {
    color: #0029ad;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    transition: color 0.15s ease;
}
.link-next-posts a:hover {
    color: #ba0000;
    text-decoration: underline;
}
.tag-pred, .tag-stat {
    font-size: 0.78rem;
    padding: 1px 7px;
    color: #fff;
    font-weight: normal;
    display: inline-block;
    flex-shrink: 0;
    line-height: 1.4;
}
.tag-pred {
    background: #ba0000;
}
.tag-stat {
    background: #0969da;
}

@media (max-width: 680px) {
    .link-statistic {
        padding: 6px 10px;
        gap: 6px 12px;
    }
    .link-statistic a {
        font-size: 0.88rem;
    }
    .link-next-posts {
        padding: 6px 10px;
        gap: 6px;
    }
    .link-next-posts li {
        align-items: flex-start;
        font-size: 0.88rem;
    }
    .tag-pred, .tag-stat {
        font-size: 0.75rem;
        padding: 1px 5px;
    }
}

/* Universal SVG Icon */
.svg-icon {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.15em;
    fill: currentColor;
    display: inline-block;
    flex-shrink: 0;
}

/* ==========================================================================
   KENO REAL-TIME LIVE & STATS STYLES
   ========================================================================== */
.keno-countdown-card {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 12px 16px;
    margin: 10px 0 14px 0;
    text-align: center;
}
.keno-countdown-title {
    font-size: 0.95rem;
    color: #b78103;
    margin-bottom: 6px;
    font-weight: 500;
}
.keno-countdown-digits {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.keno-digit-unit {
    background: #9a3412;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 500;
    padding: 4px 12px;
    min-width: 54px;
    line-height: 1.2;
    text-align: center;
}
.keno-digit-sep {
    font-size: 1.8rem;
    font-weight: 500;
    color: #9a3412;
}
.keno-balls-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    padding: 16px 12px;
    justify-items: center;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    margin: 10px 0;
}
.ball-keno-live {
    width: 46px;
    height: 46px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    box-shadow: none !important;
    transition: transform 0.3s ease, background 0.3s ease;
}
/* Small numbers (01-40): Blue */
.ball-keno-live.ball-small {
    background: #1565c0;
    border: 2px solid #0d47a1;
}
/* Large numbers (41-80): Orange */
.ball-keno-live.ball-large {
    background: #9a3412;
    border: 2px solid #7c2d12;
}
/* Live Drawing & Waiting State (Show loading.gif, no purple color) */
.ball-keno-live.is-rolling,
.ball-keno-live.is-waiting {
    background: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    color: transparent !important;
    background-image: url('../images/loading.gif') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 26px 26px !important;
    box-shadow: none !important;
    animation: none !important;
}
.ball-keno-live.is-rolling img.keno-loading-img,
.ball-keno-live.is-waiting img.keno-loading-img,
.ball-keno-live img.keno-loading-img {
    width: 26px;
    height: 26px;
    display: block;
    margin: 0 auto;
    pointer-events: none;
}

/* Keno 4-card Quick Stats */
.keno-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 12px 0;
}
.keno-stat-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 8px;
    text-align: center;
}
.keno-stat-label {
    font-size: 0.92rem;
    color: #666;
    margin-bottom: 4px;
    display: block;
}
.keno-stat-val {
    font-size: 1.15rem;
    font-weight: 500;
    color: #ba0000;
    line-height: 1.3;
}
.keno-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0 !important;
}
.keno-badge-red {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}
.keno-badge-blue {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}
.keno-badge-gray {
    background: #f5f5f5;
    color: #616161;
    border: 1px solid #e0e0e0;
}

/* Keno History Table */
.keno-history-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    min-width: 680px;
}
.keno-history-table th,
.keno-history-table td {
    padding: 8px 6px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
    font-size: 0.95rem;
}
.keno-history-table th {
    background: #f5f6f8;
    font-weight: 500;
    color: #333;
}
.keno-history-balls {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}
.keno-mini-ball {
    width: 28px;
    height: 28px;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 500;
    color: #fff;
    box-shadow: none !important;
}
.keno-mini-ball.mini-small {
    background: #1976d2;
}
.keno-mini-ball.mini-large {
    background: #f57c00;
}

/* Mobile Responsiveness for Keno */
@media (max-width: 680px) {
    .keno-balls-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        padding: 12px 6px;
    }
    .ball-keno-live {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
    .keno-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .keno-digit-unit {
        font-size: 1.4rem;
        padding: 3px 8px;
        min-width: 44px;
    }
    .ball-keno-live.is-rolling,
    .ball-keno-live.is-waiting {
        background-size: 22px 22px !important;
    }
    .ball-keno-live.is-rolling img.keno-loading-img,
    .ball-keno-live.is-waiting img.keno-loading-img,
    .ball-keno-live img.keno-loading-img {
        width: 22px;
        height: 22px;
    }
}

/* Keno New Result Row Highlight Animation */
@keyframes kenoRowHighlight {
    0% { background-color: #fff9c4; }
    50% { background-color: #ffe082; }
    100% { background-color: transparent; }
}
.keno-row-new {
    animation: kenoRowHighlight 2.5s ease-out;
}

/* Box Các đài xổ hôm nay (Table 3 Cột - Gọn gàng, Chuẩn mobile không vỡ khung) */
.today-stations-box {
    background: #fff;
    border: 1px solid #dcdcdc;
    margin-bottom: 12px;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.today-stations-header {
    background: #ba0000;
    color: #fff;
    padding: 7px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #8b0000;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.today-stations-header .tsh-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
    line-height: normal;
}
.today-stations-header .tsh-date {
    font-size: 0.92rem;
    color: #ffd200;
    font-weight: normal;
}
.today-stations-body {
    background: #fff;
    width: 100%;
    overflow: hidden;
}
.today-stations-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: #fff;
    margin: 0;
    border: none;
    min-width: 0 !important;
}
.today-stations-table thead th {
    width: 33.333%;
    padding: 7px 6px;
    border: 1px solid #e5e7eb;
    border-top: none;
    text-align: center;
    background: #f8fafc;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.today-stations-table thead th.th-mb {
    border-top: 2px solid #ba0000;
}
.today-stations-table thead th.th-mn {
    border-top: 2px solid #0066cc;
}
.today-stations-table thead th.th-mt {
    border-top: 2px solid #f89406;
}
.today-stations-table tbody td {
    width: 33.333%;
    border: 1px solid #e5e7eb;
    padding: 0;
    vertical-align: middle;
    background: #fff;
    text-align: center;
}
.today-stations-table tbody tr:hover td {
    background-color: #fafbfc;
}
.station-cell-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 4px;
    text-decoration: none;
    color: #0b4ec7;
    font-size: 0.98rem;
    font-weight: normal;
    transition: background-color 0.15s ease, color 0.15s ease;
    border-radius: 0 !important;
    min-height: 38px;
    box-sizing: border-box;
}
.station-cell-link:hover {
    background-color: #fef2f2 !important;
    color: #ba0000 !important;
}
.station-cell-link .station-name {
    line-height: 1.25;
    word-break: break-word;
}
.station-cell-empty {
    min-height: 38px;
}

/* Status Tags: Gọn gàng, tinh giản, trực quan */
.station-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex-shrink: 0;
}
.tag-live {
    background: #dc2626;
    color: #ffffff;
    font-size: 0.80rem;
    padding: 2px 4px;
    font-weight: 500;
    letter-spacing: 0.2px;
}
.live-dot-pulse-sm {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50% !important;
    animation: liveBadgePulse 1s infinite ease-in-out;
}
@keyframes liveBadgePulse {
    0% { transform: scale(0.8); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(0.8); opacity: 1; }
}
.tag-done {
    color: #059669;
    font-weight: bold;
    font-size: 1.05rem;
    background: transparent;
    padding: 0 2px;
    line-height: 1;
}

/* Tối ưu riêng trên màn hình di động (<= 640px) */
@media (max-width: 640px) {
    .today-stations-header {
        padding: 6px 8px !important;
    }
    .today-stations-header .tsh-title {
        font-size: 0.95rem !important;
    }
    .today-stations-header .tsh-date {
        font-size: 0.88rem !important;
    }
    .today-stations-table thead th {
        padding: 6px 2px !important;
        font-size: 0.88rem !important;
    }
    .station-cell-link {
        padding: 5px 2px !important;
        font-size: 0.88rem !important;
        flex-direction: column !important;
        gap: 2px !important;
        min-height: 36px !important;
    }
    .station-cell-link .station-name {
        font-size: 0.88rem !important;
    }
    .tag-live {
        font-size: 0.78rem !important;
        padding: 1px 3px !important;
    }
    .tag-done {
        font-size: 0.95rem !important;
    }
}

/* ==========================================================================
   LIVE LOTTERY STREAMING UI (XSMB, XSMN, XSMT)
   Giao diện Tường thuật Trực tiếp Tối giản, Hiện đại, Chuẩn Tốc độ Cao
   ========================================================================== */
.live-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.live-nav-tab {
    flex: 1 1 auto;
    background: #f1f5f9;
    color: #334155;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.live-nav-tab:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.live-nav-tab.active {
    background: #ba0000;
    color: #ffffff;
    border-color: #ba0000;
    font-weight: 600;
}
.live-title-main {
    font-size: 1.35rem;
    font-weight: 600;
    color: #ba0000;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* Live Status Banner */
.live-status-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 6px 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    box-sizing: border-box;
}
.live-banner-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}
.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.9rem;
    font-weight: 700 !important;
    color: #ffffff;
    border-radius: 0 !important;
    box-shadow: none !important;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
}
.live-status-pill.is-live {
    background: #ba0000;
    animation: livePulseAnim 1.2s infinite alternate;
}
@keyframes livePulseAnim {
    0% { background: #ba0000; }
    100% { background: #dc2626; }
}
.live-status-pill.is-waiting {
    background: #d97706;
}
.live-status-pill.is-completed {
    background: #16a34a;
}
.live-pulse-dot {
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50% !important;
    display: inline-block;
    animation: liveDotBlink 1s infinite ease-in-out;
}
@keyframes liveDotBlink {
    0% { transform: scale(0.8); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
    100% { transform: scale(0.8); opacity: 1; }
}
.live-banner-info {
    font-size: 0.92rem;
    color: #334155;
    font-weight: 500;
    white-space: nowrap;
}
.live-countdown-box {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.88rem;
    color: #b45309;
    font-weight: 500;
    background: #fef3c7;
    padding: 3px 8px;
    border: 1px solid #fde68a;
    border-radius: 0 !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.live-countdown-digits {
    font-weight: 700 !important;
    color: #b45309;
}
.live-banner-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.btn-live-icon-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    color: #1e293b;
    cursor: pointer;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-live-icon-btn svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}
.btn-live-icon-btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border-color: #94a3b8;
    color: #ba0000;
}
.btn-live-icon-btn:active {
    transform: translateY(1px);
}
.btn-live-icon-btn.is-muted {
    background: linear-gradient(180deg, #fee2e2 0%, #fecaca 100%);
    color: #b91c1c;
    border-color: #f87171;
}

/* Number cell animations & styling */
.live-cell {
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.live-cell-new,
.live-cell-locked {
    animation: liveCellHighlight 2s ease-out;
}
@keyframes liveCellHighlight {
    0% { background-color: #fef08a !important; color: #b45309; }
    50% { background-color: #fef9c3 !important; }
    100% { background-color: transparent !important; }
}

/* Loto Row Flash Animation */
.loto-num-flash {
    animation: lotoFlash 1.5s ease;
}
@keyframes lotoFlash {
    0% { background: #ffedd5 !important; color: #c2410c; }
    100% { background: transparent !important; }
}

/* Special Code tags */
.special-code-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.badge-code {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 2px 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0 !important;
}

/* Quick links box */
.quick-links-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    font-size: 0.95rem;
    margin-top: 14px;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.quick-links-box a {
    color: #ba0000;
    font-weight: 500;
    margin-left: 6px;
    text-decoration: none;
}
.quick-links-box a:hover {
    text-decoration: underline;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .live-status-banner {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        padding: 5px 8px !important;
        gap: 6px !important;
    }
    .live-banner-left {
        flex-wrap: nowrap;
        gap: 6px;
        min-width: 0;
        overflow: hidden;
    }
    .live-banner-info {
        display: none !important; /* Giữ 1 hàng duy nhất gọn gàng */
    }
    .live-status-pill {
        font-size: 0.82rem;
        padding: 4px 7px;
    }
    .live-countdown-box {
        font-size: 0.82rem;
        padding: 2px 5px;
    }
    .live-banner-right {
        width: auto !important;
        justify-content: flex-end;
        gap: 5px;
    }
    .btn-live-icon-btn {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }
    .live-nav-tab {
        padding: 6px 8px;
        font-size: 0.88rem;
    }
}

/* ==========================================================================
   STANDARD VIETNAMESE LOTTERY NUMBER ENGINE (.giaiSo & td.giai...)
   ========================================================================== */
.giaiSo {
    display: inline-block !important;
    vertical-align: middle !important;
    text-align: center !important;
    font-weight: 700 !important;
    padding: 2px 5px !important;
    margin: 2px 5px !important;
    min-height: 28px !important;
    line-height: 26px !important;
    box-sizing: border-box !important;
    user-select: none;
    letter-spacing: 0.5px;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    /* Fixed frame - NO scale/zoom transforms to keep bounding box rock-solid */
}

/* Multi-number container inside prize cells */
td.giai8, td.giai7, td.giai6, td.giai5, td.giai4, td.giai3, td.giai2, td.giai1, td.giaidb {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 5px 4px !important;
}

/* Giai Dac Biet (Special Prize) */
td.giaidb .giaiSo {
    color: #ba0000 !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    padding: 3px 6px !important;
}

/* Giai 8 */
td.giai8 .giaiSo {
    color: #ba0000 !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    padding: 2px 4px !important;
}

/* Giai 7 down to Giai 1 */
td.giai7 .giaiSo,
td.giai6 .giaiSo,
td.giai5 .giaiSo,
td.giai4 .giaiSo,
td.giai3 .giaiSo,
td.giai2 .giaiSo,
td.giai1 .giaiSo {
    color: #1e293b !important;
    font-size: 1.55rem !important;
    font-weight: 700 !important;
}

/* Single station table: Giai 6 flex 3 cot, Giai 3 flex 2 cot */
.result-table td.giai6 .giaiSo {
    margin: 2px 8px !important;
}
.result-table td.giai3 .giaiSo {
    margin: 2px 12px !important;
}
.result-table td.giai4 .giaiSo {
    margin: 2px 6px !important;
}

/* Bảng đa đài 3-4 đài: luôn show từng dòng để tiết kiệm không gian trên cả điện thoại và desktop */
.multi-province-table td .giaiSo,
.multi-prov-table td .giaiSo,
.xsmn-live-table td .giaiSo,
.xsmt-live-table td .giaiSo {
    display: block !important;
    width: 100% !important;
    margin: 2px 0 !important;
    padding: 1px 0 !important;
    text-align: center !important;
}

/* XSMB horizontal layout override */
.result-table.xsmb-table td.giai2 .giaiSo,
.result-table.xsmb-table td.giai3 .giaiSo,
.result-table.xsmb-table td.giai4 .giaiSo,
.result-table.xsmb-table td.giai5 .giaiSo,
.result-table.xsmb-table td.giai6 .giaiSo,
.result-table.xsmb-table td.giai7 .giaiSo,
.xsmb-live-table td.giai2 .giaiSo,
.xsmb-live-table td.giai3 .giaiSo,
.xsmb-live-table td.giai4 .giaiSo,
.xsmb-live-table td.giai5 .giaiSo,
.xsmb-live-table td.giai6 .giaiSo,
.xsmb-live-table td.giai7 .giaiSo {
    display: inline-block !important;
    width: auto !important;
    margin: 2px 8px !important;
    padding: 2px 4px !important;
}

/* Province and station headers */
td.tinh, th.tinh {
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    color: #ba0000 !important;
    padding: 6px 4px !important;
}
td.matinh {
    text-align: center !important;
    font-size: 0.85rem !important;
    color: #666666 !important;
    padding: 2px 4px 6px !important;
}

/* ==========================================================================
   LIVE STUDIO - COLORFUL 3D ROLLING BALLS ANIMATION (FIXED FRAME, ZERO JITTER)
   ========================================================================== */
.table-result,
.xsmb-live-table,
.xsmn-live-table,
.xsmt-live-table {
    table-layout: fixed !important;
    width: 100% !important;
}

.table-result .col-prize-name {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.table-result .col-prize-val {
    box-sizing: border-box !important;
    overflow: hidden !important;
    vertical-align: middle !important;
    text-align: center !important;
    padding: 3px 2px !important;
}

/* Fixed container for every live number cell: NEVER shifts width or height */
.giaiSo.live-cell,
.live-cell {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    line-height: 28px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    vertical-align: middle !important;
    margin: 1px auto !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.live-ball-spinner-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    vertical-align: middle !important;
    padding: 0 !important;
    margin: 0 auto !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    line-height: 24px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.live-spinning-ball {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 14px !important;
    max-width: 22px !important;
    line-height: 22px !important;
    border-radius: 50% !important; /* Geometry round lottery balls allowed */
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #ffffff !important;
    text-align: center !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border: none !important;
    user-select: none;
    letter-spacing: 0;
    box-sizing: border-box !important;
    margin: 0 1px !important;
    flex-shrink: 1 !important;
}

/* 3D Spherical Radial Gradients */
.live-spinning-ball.ball-c1 {
    background: radial-gradient(circle at 35% 35%, #ff6b6b 0%, #d90429 60%, #7a0014 100%) !important;
}
.live-spinning-ball.ball-c2 {
    background: radial-gradient(circle at 35% 35%, #4ea8de 0%, #0077b6 60%, #023e8a 100%) !important;
}
.live-spinning-ball.ball-c3 {
    background: radial-gradient(circle at 35% 35%, #52b788 0%, #2d6a4f 60%, #1b4332 100%) !important;
}
.live-spinning-ball.ball-c4 {
    background: radial-gradient(circle at 35% 35%, #ffd166 0%, #f77f00 60%, #d62828 100%) !important;
    color: #212529 !important;
}
.live-spinning-ball.ball-c5 {
    background: radial-gradient(circle at 35% 35%, #b5179e 0%, #7209b7 60%, #3a0ca3 100%) !important;
}
.live-spinning-ball.ball-c6 {
    background: radial-gradient(circle at 35% 35%, #ff9f1c 0%, #f46036 60%, #c73e1d 100%) !important;
}

/* Special Prize balls: same height 22px so vertical bounding box NEVER shifts! */
td.giaidb .live-spinning-ball.ball-special,
.live-spinning-ball.ball-special {
    width: 22px !important;
    height: 22px !important;
    min-width: 14px !important;
    max-width: 22px !important;
    line-height: 22px !important;
    font-size: 13px !important;
}

/* Demo action pill button in live header */
.btn-live-demo-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(to bottom, #ffd43b 0%, #f59f00 100%);
    color: #850000;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 3px 8px;
    border: none;
    border-radius: 0 !important;
    cursor: pointer;
    line-height: 1.2;
    transition: opacity 0.2s;
    user-select: none;
}
.btn-live-demo-pill:hover {
    opacity: 0.9;
}
.btn-live-demo-pill.is-active {
    background: linear-gradient(to bottom, #ff6b6b 0%, #c92a2a 100%);
    color: #ffffff;
}

/* Compact multi-column responsiveness for XSMN / XSMT */
@media (max-width: 768px) {
    .giaiSo {
        padding: 2px 0 !important;
        margin: 1px 0 !important;
        line-height: 25px !important;
        min-height: 25px !important;
    }

    /* Narrow column behavior: Khi chieu rong hep (mobile multi-province), xep 1 cot theo screenshot */
    .multi-province-table td.giai6 .giaiSo,
    .multi-province-table td.giai4 .giaiSo,
    .multi-province-table td.giai3 .giaiSo,
    .multi-prov-table td.giai6 .giaiSo,
    .multi-prov-table td.giai4 .giaiSo,
    .multi-prov-table td.giai3 .giaiSo,
    .xsmn-live-table td.giai6 .giaiSo,
    .xsmn-live-table td.giai4 .giaiSo,
    .xsmn-live-table td.giai3 .giaiSo,
    .xsmt-live-table td.giai6 .giaiSo,
    .xsmt-live-table td.giai4 .giaiSo,
    .xsmt-live-table td.giai3 .giaiSo {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin: 1px 0 !important;
        padding: 2px 0 !important;
    }
    td.giaidb .giaiSo {
        font-size: 1.35rem !important;
    }
    td.giai8 .giaiSo {
        font-size: 1.3rem !important;
    }
    td.giai7 .giaiSo,
    td.giai6 .giaiSo,
    td.giai5 .giaiSo,
    td.giai4 .giaiSo,
    td.giai3 .giaiSo,
    td.giai2 .giaiSo,
    td.giai1 .giaiSo {
        font-size: 1.12rem !important;
    }
    .giaiSo .live-spinning-ball,
    .live-spinning-ball,
    td.giaidb .live-spinning-ball.ball-special,
    .live-spinning-ball.ball-special {
        width: 18px !important;
        height: 18px !important;
        min-width: 12px !important;
        max-width: 18px !important;
        line-height: 18px !important;
        font-size: 11px !important;
        margin: 0 0.5px !important;
    }
}
@media (max-width: 480px) {
    .prize-name-short {
        display: inline !important;
    }
    .prize-name-full {
        display: none !important;
    }
    .multi-province-table .col-prize,
    .multi-prov-table .col-prize,
    .xsmn-live-table .col-prize,
    .xsmt-live-table .col-prize {
        width: 36px !important;
        min-width: 34px !important;
        max-width: 40px !important;
        padding: 4px 1px !important;
        font-size: 0.88rem !important;
    }
    .giaiSo {
        padding: 1px 0 !important;
        margin: 1px 0 !important;
        line-height: 23px !important;
        min-height: 23px !important;
    }
    td.giaidb .giaiSo {
        font-size: 1.25rem !important;
    }
    td.giai8 .giaiSo {
        font-size: 1.2rem !important;
    }
    td.giai7 .giaiSo,
    td.giai6 .giaiSo,
    td.giai5 .giaiSo,
    td.giai4 .giaiSo,
    td.giai3 .giaiSo,
    td.giai2 .giaiSo,
    td.giai1 .giaiSo {
        font-size: 1.05rem !important;
    }
    .giaiSo .live-spinning-ball,
    .live-spinning-ball,
    td.giaidb .live-spinning-ball.ball-special,
    .live-spinning-ball.ball-special {
        width: 16px !important;
        height: 16px !important;
        min-width: 10px !important;
        max-width: 16px !important;
        line-height: 16px !important;
        font-size: 10px !important;
        margin: 0 0.5px !important;
    }
}

/* Settling / Flash color animations - NO SCALE / NO ZOOM TRANSFORMS */
@keyframes liveSettleFlash {
    0% { background: #ffe066; color: #ba0000; }
    50% { background: #fff3bf; }
    100% { background: transparent; }
}
.live-settled-flash {
    display: inline-block;
    animation: liveSettleFlash 0.9s ease-out;
}

@keyframes liveSpecialFlash {
    0% { background: #ba0000; color: #ffffff; }
    50% { background: #ffd43b; color: #ba0000; }
    100% { background: transparent; }
}
.live-special-flash {
    display: inline-block;
    animation: liveSpecialFlash 1.2s ease-out;
}

/* Live Alert Banner on Result Pages (xsmb, xsmn, xsmt) */
.live-alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ba0000 0%, #850000 100%);
    color: #ffffff;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border: none !important;
}
.live-alert-banner.banner-mn {
    background: linear-gradient(135deg, #0073aa 0%, #004b70 100%);
}
.live-alert-banner.banner-mt {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}
.live-alert-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.live-alert-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.live-alert-title {
    font-size: 1.05rem;
    line-height: 1.3;
}
.live-alert-sub {
    font-size: 0.88rem;
    color: #ffcccc;
    opacity: 0.95;
}
.live-alert-banner.banner-mn .live-alert-sub {
    color: #d0e8f5;
}
.live-alert-banner.banner-mt .live-alert-sub {
    color: #d4edd6;
}
.live-alert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: linear-gradient(to bottom, #ffd43b 0%, #f59f00 100%);
    color: #850000 !important;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none !important;
    border-radius: 0 !important;
    border: none !important;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.15s ease;
}
.live-alert-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}
@keyframes liveBlinkText {
    0%, 100% { opacity: 1; color: #ffd43b; }
    50% { opacity: 0.2; color: #ffffff; }
}
.blink-text {
    animation: liveBlinkText 1.1s infinite ease-in-out;
    font-weight: 700;
}
@media (max-width: 600px) {
    .live-alert-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 10px;
    }
    .live-alert-btn {
        width: 100%;
        text-align: center;
        padding: 8px 10px;
    }
}
