
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f3f3f3;
    color: #293750;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}



.site-header {
    width: 100%;
    background: linear-gradient(
        90deg,
        #5e0505 0%,
        #8f0000 55%,
        #720000 100%
    );
    min-height: 86px;
}

.header-container {
    max-width: 1340px;
    min-height: 86px;

    margin: 0 auto;
    padding: 0 15px;

    display: flex;
    align-items: center;

    gap: 30px;
}

.logo {
    width: 260px;
    flex-shrink: 0;
}

.logo img {
    max-width: 230px;
    max-height: 67px;
    object-fit: contain;
}


.main-nav {
    flex: 1;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 0;
}

.main-nav a {
    color: white;

    font-size: 13px;
    font-weight: 700;

    padding: 12px 14px;

    transition: 0.2s;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}


.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-btn {
    border: 0;
    background: transparent;

    color: white;

    font-size: 28px;
    cursor: pointer;
}

.support-btn {
    min-width: 165px;

    padding: 12px 17px;

    border: 0;
    border-radius: 3px;

    background: #d60000;
    color: white;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.support-btn span {
    margin-left: 10px;
}

.mobile-menu-btn {
    display: none;

    border: 0;
    background: transparent;

    color: white;

    font-size: 28px;

    cursor: pointer;
}


.page-container {
    max-width: 1340px;
    margin: 0 auto;

    padding: 24px 15px 70px;
}

.main-layout {
    display: grid;

    grid-template-columns:
        minmax(220px, 270px)
        minmax(0, 610px)
        minmax(220px, 270px);

    justify-content: center;

    gap: 20px;
}

.left-sidebar,
.right-sidebar,
.content-column {
    min-width: 0;
}



.sidebar-card,
.result-card,
.checker-card,
.history-card,
.jackpot-card {
    background: white;
    border-radius: 15px;

    box-shadow:
        0 2px 13px rgba(0, 0, 0, 0.06);

    overflow: hidden;
}

.sidebar-card,
.ad-block,
.jackpot-card {
    margin-bottom: 20px;
}

.result-card,
.checker-card,
.center-ad,
.history-card {
    margin-bottom: 22px;
}


.sidebar-title {
    min-height: 42px;

    background: #082b6a;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 8px 12px;

    font-size: 14px;
    font-weight: 700;
}


.province-list {
    padding: 15px 12px 22px;
}

.province-list a {
    min-height: 36px;

    padding: 8px 2px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #ccc;

    color: #333;

    font-size: 15px;
}

.province-list a:hover {
    color: #a70000;
}

.dots {
    color: #aaa;

    font-size: 10px;

    letter-spacing: 2px;

    white-space: nowrap;
}


/* AD */

.ad-block {
    background: white;
    overflow: hidden;
}

.ad-block img {
    width: 100%;
    height: auto;

    object-fit: cover;
}

.sidebar-ad-image {
    width: 100%;
    height: auto;
}


.right-link-list {
    padding: 17px 11px 20px;
}

.right-link-list a {
    min-height: 27px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 5px;

    color: #333;

    font-size: 13px;
    line-height: 1.4;
}

.right-link-list a:hover {
    color: #bd0000;
}


.jackpot-head {
    padding: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ee7d17;
    color: white;

    font-family: Georgia, serif;
    font-size: 23px;
    line-height: 1.2;
}

.jackpot-content {
    padding: 18px 8px;
}

.jackpot-logo {
    width: 180px;

    margin: 0 auto 15px;
}

.group-label {
    color: red;
    font-size: 14px;

    margin-bottom: 4px;
}

.number-boxes {
    display: flex;
    gap: 5px;

    margin-bottom: 5px;
}

.number-boxes span {
    width: 27px;
    height: 30px;

    border: 1px solid red;

    display: flex;
    align-items: center;
    justify-content: center;

    color: red;
    background: white;

    font-size: 16px;
}

.jackpot-red,
.jackpot-content strong {
    color: red;
}

.jackpot-content p {
    font-size: 13px;
    line-height: 1.5;
}

.jackpot-content h3 {
    margin: 33px 0;

    color: #222;

    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 400;
}

.jackpot-content small {
    color: #555;
}


.lottery-statistics {
    width: 100%;
    overflow-x: auto;
}

.lottery-statistics table {
    width: 100%;

    table-layout: fixed;

    border-collapse: collapse;

    background: white;
}

.lottery-statistics thead td {
    height: 52px;

    padding: 10px;

    background: #224d91;
    color: white;

    text-align: center;

    font-size: 16px;
    font-weight: 700;

    border: 0;
}

.lottery-statistics tbody td {
    height: 57px;

    padding: 8px 6px;

    text-align: center;
    vertical-align: middle;

    color: #37455e;

    border:
        1px solid #e6e9ee;

    font-size: 14px;
    font-weight: 700;
}



.live-table tbody td:first-child {
    width: 25%;

    background: #f8f9fb;

    color: #63708a;

    font-size: 12px;
}

.history-table tbody td:first-child {
    background: #f8f9fb;

    color: #63708a;

    font-size: 12px;
}

.lottery-statistics .first-prize {
    background: #fff8f5;

    color: #e46419;

    font-size: 21px;
}




.lottery-statistics .special-prize {
    background: #fff4f1;

    color: #f13d38;

    font-size: 21px;
}


/* G7 */

.lottery-statistics .last-prize {
    color: #e85a1e;
}


.loading {
    width: 19px;
    height: 19px;

    margin: auto;

    border: 3px solid #e1e5ea;
    border-top-color: #224d91;

    border-radius: 50%;

    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.checker-card {
    padding: 24px 20px;
}

.checker-card h2 {
    margin: 0 0 16px;

    text-align: center;

    color: #284779;

    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: 700;

    text-transform: uppercase;
}

.checker-form {
    max-width: 380px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 11px;
}

.checker-form input {
    width: 100%;
    height: 45px;

    padding: 0 15px;

    border: 1px solid #b7c7df;
    border-radius: 7px;

    outline: none;

    color: #444;

    text-align: center;

    font-size: 14px;
    font-weight: 600;
}

.checker-form input:focus {
    border-color: #224d91;

    box-shadow:
        0 0 0 2px
        rgba(34, 77, 145, 0.08);
}

.checker-form button {
    height: 45px;

    border: 0;
    border-radius: 7px;

    background: #e43838;
    color: white;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 10px
        rgba(220, 40, 40, 0.18);
}

.checker-form button:hover {
    background: #c82828;
}

.check-message {
    max-width: 380px;

    margin: 13px auto 0;

    text-align: center;

    font-size: 14px;
    font-weight: 700;
}

.check-message.success {
    color: #0b8d46;
}

.check-message.error {
    color: #e03838;
}


.center-ad {
    overflow: hidden;
}

.center-ad img {
    width: 100%;
    height: auto;

    object-fit: cover;
}


.history-card {
    padding: 20px;
}

.history-title {
    margin: 0 0 18px;

    text-align: center;

    color: #294877;

    font-family: Georgia, serif;
    font-size: 19px;
    text-transform: uppercase;
}

.filter-container {
    margin-bottom: 18px;

    padding: 14px;

    border: 1px solid #d8e0ec;
    border-radius: 8px;

    background: #fafcff;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;
}

.filter-container label {
    color: #5c6980;

    font-size: 12px;
    font-weight: 700;
}

.filter-container input {
    width: 310px;
    max-width: 100%;

    height: 44px;

    padding: 0 18px;

    border: 1px solid #adc0dd;
    border-radius: 7px;

    background: white;
    color: #43516b;

    text-align: center;

    font-size: 14px;
    font-weight: 700;

    outline: none;
}

.history-table {
    border-radius: 12px;
    overflow: hidden;

    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.05);
}

.history-table thead td {
    height: 51px;
}

.history-table tbody td {
    height: 56px;

    font-size: 13px;
}


@media (max-width: 1100px) {

    .header-container {
        gap: 14px;
    }

    .logo {
        width: 200px;
    }

    .logo img {
        max-width: 190px;
    }

    .main-nav a {
        padding: 10px 7px;
        font-size: 11px;
    }

    .support-btn {
        min-width: auto;
        padding: 10px;
    }

    .main-layout {
        grid-template-columns:
            210px
            minmax(0, 1fr)
            210px;

        gap: 12px;
    }

}



@media (max-width: 900px) {

    .site-header {
        min-height: 70px;
    }

    .header-container {
        min-height: 70px;

        position: relative;

        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: block;
        order: 3;
    }

    .header-right {
        display: none;
    }

    .main-nav {
        display: none;

        position: absolute;

        top: 70px;
        left: 15px;
        right: 15px;

        z-index: 999;

        flex-direction: column;
        align-items: stretch;

        background: #720000;

        box-shadow:
            0 8px 15px
            rgba(0, 0, 0, 0.2);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 13px 17px;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.1);

        font-size: 13px;
    }

    .main-layout {
        grid-template-columns:
            minmax(0, 1fr)
            230px;
    }

    .left-sidebar {
        display: none;
    }

}

@media (max-width: 700px) {

    body {
        background: #f4f4f4;
    }

    .page-container {
        padding:
            12px 8px
            40px;
    }

    .logo {
        width: 180px;
    }

    .logo img {
        max-width: 170px;
    }

    .main-layout {
        display: block;
    }

    .right-sidebar {
        display: none;
    }

    .result-card,
    .checker-card,
    .center-ad,
    .history-card {
        margin-bottom: 14px;
    }

    .result-card,
    .checker-card,
    .history-card {
        border-radius: 8px;
    }

    .lottery-statistics thead td {
        height: 45px;

        font-size: 13px;
    }

    .lottery-statistics tbody td {
        height: 50px;

        padding: 5px 3px;

        font-size: 12px;
    }

    .live-table tbody td:first-child {
        font-size: 10px;
    }

    .lottery-statistics .first-prize,
    .lottery-statistics .special-prize {
        font-size: 18px;
    }

    .checker-card {
        padding: 20px 12px;
    }

    .checker-card h2,
    .history-title {
        font-size: 16px;
    }

    .history-card {
        padding: 15px 8px;
    }

    .history-table tbody td {
        font-size: 10px;

        padding-left: 2px;
        padding-right: 2px;
    }

}


@media (max-width: 420px) {

    .lottery-statistics tbody td {
        font-size: 11px;
    }

    .history-table tbody td {
        font-size: 9px;
    }

}