* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    font-size: 13px;
    line-height: 1.4;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 10px;
}

.banner-gif {
    max-width: 60px;
    height: auto;
    object-fit: contain;
    margin: 6px auto;
    display: block;
}

.bn-yellow .banner-gif {
    max-width: 35px; 
}
.bn-pink .banner-gif {
    max-width: 50px; 
}

.bn-blue .banner-gif {
    max-width: 55px; 
}

.header-main {
    background-color: #ffffff;
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-balls {
    display: flex;
    gap: 2px;
}

.lball {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.b1 { background: #ff9800; }
.b2 { background: #e65100; }
.b3 { background: #d32f2f; }

.logo-text h1 {
    font-size: 24px;
    font-weight: 800;
    color: #e65100;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-text p {
    font-size: 11px;
    color: #555555;
    font-weight: bold;
}

/* Top Search Header */
.top-search-bar {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.top-input, .top-select, .top-input-num {
    border: 1px solid #cccccc;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 3px;
    outline: none;
}

.top-input-num {
    width: 100px;
}

.btn-orange {
    background: #ff9800;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    font-weight: bold;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
}

.btn-orange:hover {
    background: #e65100;
}

/* Top Nav */
.main-nav {
    background-color: #b71c1c;
}

.nav-scroll {
    display: flex;
    flex-wrap: wrap;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    padding: 8px 12px;
    display: inline-block;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.main-nav a:hover, .main-nav a.active {
    background-color: #880e4f;
}

/* Main Body Pattern Background */
.main-body-bg {
    background-color: #b71c1c;
    background-image: radial-gradient(#d32f2f 15%, transparent 16%);
    background-size: 16px 16px;
    padding: 15px 0 30px;
}

.content-sheet {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Filter Control Bar */
.control-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-dark-sm {
    background: #555555;
    color: #fff;
    border: none;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
}

.ctrl-select, .ctrl-input-date {
    border: 1px solid #ccc;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 3px;
}

.btn-blue-sm {
    background: #0288d1;
    color: #fff;
    border: none;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
}

.btn-orange-sm {
    background: #ff9800;
    color: #fff;
    border: none;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
}

.hotline-box {
    font-size: 12px;
    color: #333;
}

.hotline-num {
    background: #d32f2f;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 4px;
}


.three-col-layout {
    display: grid;
    grid-template-columns: 140px 1fr 230px;
    gap: 12px;
}


.left-banners {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.banner-box {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bn-yellow {
    background: #fff8e1;
    border-color: #ffe082;
}

.inner-ico {
    font-size: 24px;
}

.bn-title {
    font-size: 11px;
    font-weight: 800;
    color: #d84315;
    margin-top: 4px;
}

.bn-pink {
    background: #fce4ec;
    border-color: #f8bbd0;
}

.bn-sub-logo {
    font-size: 9px;
    color: #d81b60;
}

.money-img {
    font-size: 28px;
}

.bn-phone {
    font-size: 11px;
    color: #c2185b;
    font-weight: bold;
}

.bn-blue {
    background: #e1f5fe;
    border-color: #b3e5fc;
}

.bn-sub-title {
    font-size: 10px;
    color: #0288d1;
    font-weight: bold;
}

.lot-ico {
    font-size: 28px;
}

.bn-foot-txt {
    font-size: 11px;
    font-weight: 800;
    color: #0277bd;
}

/* Center Content */
.promo-banner {
    background: linear-gradient(90deg, #0d47a1, #00897b);
    border-radius: 4px;
    padding: 8px 14px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.promo-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.lotto5-badge {
    background: #ff5722;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 11px;
}

.time-tag {
    background: #ffeb3b;
    color: #000;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: bold;
    font-size: 10px;
}

.btn-play-now {
    background: #ffeb3b;
    color: #d32f2f;
    border: none;
    padding: 5px 12px;
    font-weight: 800;
    border-radius: 3px;
    cursor: pointer;
}

.title-head-center {
    text-align: center;
    margin-bottom: 8px;
}

.title-head-center h2 {
    font-size: 15px;
    color: #333333;
    font-weight: bold;
}

.status-sub-banner {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 4px;
    font-size: 12px;
    color: #795548;
    margin-top: 4px;
}

/* Result Table Card */
.lottery-card {
    border: 1px solid #d0d7de;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.red-header-bar {
    background-color: #b71c1c;
    color: #ffffff;
    padding: 6px;
    text-align: center;
}

.red-header-bar h3 {
    font-size: 13px;
    font-weight: bold;
}

.sub-header-date {
    background-color: #f9f9f9;
    padding: 5px;
    font-size: 12px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    color: #555555;
}

.status-header-history {
    background-color: #f9f9f9;
    padding: 6px;
    font-size: 12px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    font-weight: bold;
}

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

.result-table td {
    border: 1px solid #e0e0e0;
    padding: 6px 4px;
    text-align: center;
    font-weight: bold;
    font-size: 13px;
}

.col-prize {
    width: 110px;
    background-color: #fafafa;
    color: #333333;
}

.text-red {
    color: #d32f2f;
}

.text-red-bold {
    color: #d32f2f;
    font-size: 15px;
    font-weight: 800;
}

.text-blue {
    color: #0288d1;
}

/* Loto Stat Box */
.loto-stat-section {
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.loto-box-title {
    background-color: #f5f5f5;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    padding: 4px;
    border-bottom: 1px solid #e0e0e0;
}

.loto-grid-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.grid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.grid-table th {
    width: 30px;
    background: #fbfbfb;
    border: 1px solid #e0e0e0;
    padding: 2px 4px;
}

.grid-table td {
    border: 1px solid #e0e0e0;
    padding: 2px 6px;
    font-weight: bold;
}

/* Mini Grid Table */
.mini-summary-table {
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.mini-header {
    background: #f5f5f5;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    padding: 4px;
    border-bottom: 1px solid #e0e0e0;
}

.mini-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
    text-align: center;
}

.mini-grid th {
    background: #fbfbfb;
    border: 1px solid #e0e0e0;
    padding: 2px;
}

.mini-grid td {
    border: 1px solid #e0e0e0;
    padding: 4px 2px;
    font-weight: bold;
    vertical-align: top;
}

/* History Box */
.history-block-section {
    margin-top: 15px;
}

.history-title {
    font-size: 15px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 6px;
}

.filter-date-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}

#datePickerHistory {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* Right Zodiac List */
.zodiac-box {
    border: 1px solid #d0d7de;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

.zodiac-tabs {
    display: flex;
    background: #333333;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
}

.zodiac-tabs span {
    flex: 1;
    text-align: center;
    padding: 6px 2px;
    cursor: pointer;
}

.zodiac-tabs span.active {
    background: #000000;
    color: #ffffff;
}

.zodiac-list {
    list-style: none;
    font-size: 11px;
}

.zodiac-list li {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-bottom: 1px solid #f0f0f0;
    gap: 4px;
}

.z-ico {
    color: #0288d1;
    font-weight: bold;
}

.badge {
    color: #ffffff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 8px;
    font-weight: bold;
    margin-left: auto;
}

.b-gray { background: #9e9e9e; }
.b-blue { background: #0288d1; }
.b-green { background: #4caf50; }
.b-red { background: #e53935; }
.b-orange { background: #ff9800; }
.b-yellow { background: #fbc02d; color: #000; }

.zodiac-footer {
    padding: 6px;
    text-align: center;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.zodiac-footer a {
    color: #d32f2f;
    font-size: 11px;
    text-decoration: none;
}

/* Spinner Loader */
.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    border-top: 2px solid #0288d1;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.footer-area {
    background: #fff8e1;
    border-top: 2px solid #ffe082;
    padding: 20px 0 10px;
    font-size: 12px;
    color: #555555;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.f-col h4 {
    color: #d84315;
    font-size: 12px;
    margin-bottom: 6px;
}

.footer-copy {
    border-top: 1px solid #ffe082;
    text-align: center;
    padding-top: 10px;
    font-size: 11px;
    color: #777777;
}


@media (max-width: 900px) {
    .three-col-layout {
        grid-template-columns: 1fr;
    }
    .left-banners {
        display: none;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
}