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

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

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

.top-tagline {
    border-bottom: 1px solid #eeeeee;
    padding: 6px 0;
    font-size: 11px;
    color: #444444;
}

.header-main {
    padding: 10px 0;
}

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

.site-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

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

.main-nav {
    background-color: #e50914;
    border-radius: 4px;
}

.nav-scroll {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.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: #b80710;
}

.layout-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr 280px;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.widget-box {
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    margin-bottom: 15px;
    background-color: #ffffff;
}

.widget-header {
    background-color: #ffffff;
    color: #d32f2f;
    font-weight: bold;
    padding: 7px 10px;
    border-bottom: 1px solid #eeeeee;
    font-size: 13px;
}

.sidebar-right .widget-header {
    color: #b71c1c;
    background-color: #fff9f8;
    border-bottom: 1px solid #f2dede;
}

.header-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-bulb {
    font-size: 12px;
}

.widget-list {
    list-style: none;
    padding: 6px 10px;
}

.widget-list li {
    padding: 3px 0;
    font-size: 12px;
}

.widget-list a {
    color: #0056b3;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-list a:hover {
    text-decoration: underline;
}

.list-arrow li a::before {
    content: "» ";
    color: #e50914;
    font-weight: bold;
    margin-right: 4px;
}

.dot-badge {
    color: #999999;
    font-size: 10px;
    letter-spacing: -1px;
}

.lottery-statistics {
    width: 100%;
    margin-bottom: 15px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid #dddddd;
}

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

.table-date-title {
    background-color: #ffffff;
    color: #333333;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    padding: 8px !important;
}

.header-row th {
    background-color: #f7f7f7;
    color: #333333;
    font-weight: bold;
}

.col-prize {
    width: 140px;
}

.prize-name {
    text-align: left !important;
    padding-left: 12px !important;
    color: #333333;
}

#resultG1, #resultG1History,
#resultG7_1, #resultG7_2, #resultG7_3, #resultG7_4,
#resultG7_1History, #resultG7_2History, #resultG7_3History, #resultG7_4History {
    color: #e74c3c;
    font-size: 15px;
    font-weight: 800;
}

#resultDB, #resultDBHistory {
    color: #222222;
    font-size: 16px;
    font-weight: 800;
}

.special-card {
    background-color: #fffdf2;
    border: 1px solid #fbeed5;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.special-card-title {
    color: #9c6500;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.special-card-row {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    border-bottom: 1px dashed #e6dbb8;
    padding-bottom: 12px;
}

.sub-col {
    flex: 1;
}

.mt-15 {
    margin-top: 12px;
}

.sub-heading {
    font-size: 11px;
    color: #555555;
    margin-bottom: 6px;
}

.balls-row {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 24px;
    min-width: 24px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    padding: 0 4px;
}

.red-ball {
    background-color: #fce8e6;
    color: #c9302c;
    border: 1px solid #f5c6cb;
}

.gray-ball {
    background-color: #f1f1f1;
    color: #444444;
    border: 1px solid #e0e0e0;
}

.red-pill {
    background-color: #fce8e6;
    color: #c9302c;
    border: 1px solid #f5c6cb;
    padding: 0 10px;
}

.info-links-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 3px;
}

.info-links-card ul {
    list-style: none;
}

.info-links-card li {
    padding: 4px 0;
    font-size: 12px;
}

.info-links-card a {
    color: #0056b3;
    text-decoration: none;
}

.info-links-card a::before {
    content: "» ";
    color: #e50914;
    font-weight: bold;
}

.info-links-card a:hover {
    text-decoration: underline;
}

.date-select-box {
    margin-bottom: 10px;
}

#datePickerHistory {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 3px;
    border: 1px solid #cccccc;
    outline: none;
    width: 100%;
    max-width: 220px;
}

.video-mock {
    background-color: #111111;
    height: 120px;
    margin: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    border-radius: 3px;
}

.yt-logo {
    color: #ff0000;
    font-weight: bold;
    font-size: 14px;
}

.yt-sub {
    font-size: 11px;
    color: #aaaaaa;
    margin-top: 4px;
}

.table-loto-wrapper {
    padding: 6px;
    overflow-x: auto;
}

.loto-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.loto-table th, 
.loto-table td {
    border: 1px solid #eeeeee;
    padding: 3px 2px;
    text-align: center;
}

.loto-table th {
    background-color: #e8e8e8;
    color: #333333;
    font-weight: bold;
    width: 42px;
}

.num-red {
    color: #d32f2f;
    font-weight: bold;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    border-top: 2px solid #e50914;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

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

.footer-main {
    border-top: 1px solid #e5e5e5;
    padding: 15px 0;
    text-align: center;
    color: #666666;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .layout-wrapper {
        grid-template-columns: 180px 1fr;
    }
    .sidebar-right {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .layout-wrapper {
        grid-template-columns: 1fr;
    }
    .sidebar-left,
    .sidebar-right {
        grid-column: span 1;
    }
    .special-card-row {
        flex-direction: column;
        gap: 8px;
    }
    .result-table th, 
    .result-table td {
        padding: 5px 3px;
        font-size: 11px;
    }
    .col-prize {
        width: 100px;
    }
}