
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    background-color: #dedede;
    color: #333;
    line-height: 1.4;
}

/* --- Header Section --- */
.site-header {
    background-color: #fff;
}
.top-header-bar {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.container-header {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}
.top-domain-links {
    font-size: 11px;
    color: #555;
}
.top-domain-links a {
    color: #333;
    text-decoration: none;
}

/* 🟢 ขนาดโลโก้ใน Header */
.site-logo {
    height: 50px;
    width: auto;
    display: block;
}

/* Navigation Dark Red */
.main-nav-darkred {
    background-color: #8b0000;
    padding: 0;
}
.main-nav-darkred .container-header {
    justify-content: flex-start;
    flex-wrap: wrap;
}
.main-nav-darkred a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.main-nav-darkred a:hover, .main-nav-darkred a.active {
    background-color: #b30000;
}
.highlight-yellow {
    color: #ffeb3b !important;
}

/* --- Layout --- */
.wrapper {
    max-width: 1150px;
    margin: 12px auto;
    display: flex;
    gap: 12px;
    padding: 0 10px;
}

.sidebar-left {
    width: 200px;
    flex-shrink: 0;
}
.sidebar-right {
    width: 280px;
    flex-shrink: 0;
}
.main-content {
    flex-grow: 1;
    background: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    min-width: 0;
}

/* --- Widgets Left & Right --- */
.widget-box, .widget-card {
    background: #fff;
    border: 1px solid #ccc;
    margin-bottom: 12px;
}
.widget-header-red {
    background-color: #a80000;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 8px;
}
.widget-header-yellow {
    background-color: #fef08a;
    color: #000;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 8px;
    border-bottom: 1px solid #eab308;
}

.side-menu-list, .widget-list {
    list-style: none;
    padding: 4px 0;
}
.side-menu-list li, .widget-list li {
    padding: 4px 8px;
    font-size: 11px;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
}
.side-menu-list a, .widget-list a {
    color: #333;
    text-decoration: none;
}
.side-menu-list a:hover, .widget-list a:hover {
    color: #a80000;
}
.check-mark {
    color: green;
    font-weight: bold;
}
.dots {
    color: #aaa;
}

.banner-card {
    margin-bottom: 12px;
}
.banner-img {
    width: 100%;
    height: auto;
    display: block;
}


.yellow-header {
    background-color: #fef08a;
    border: 1px solid #fde047;
    color: #000;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    padding: 8px;
    margin-bottom: 10px;
}


.lottery-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
    color: #000;
}
.lottery-table th, 
.lottery-table td {
    border: 1px solid rgba(168, 168, 168, 0.4);
    padding: 6px;
    text-align: center;
    background-color: #fff;
    font-weight: bold;
}
.lottery-table td {
    width: 90px;
}
.hide-header thead {
    display: none;
}

#resultDB, #resultG7_1, #resultG7_2, #resultG7_3, #resultG7_4,
#resultDNew, #resultG7_1New, #resultG7_2New, #resultG7_3New, #resultG7_4New {
    color: red;
    font-weight: 900;
    font-size: 28px;
}
#resultG1, #resultG1New {
    color: #000;
    font-weight: 800;
    font-size: 24px;
}


.digital-lottery-box {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 15px 0;
    background-color: #fafafa;
}
.digital-lottery-box h2 {
    font-size: 14px;
    text-align: center;
    color: #000;
    margin-bottom: 10px;
}
.digital-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}
.balls-group {
    display: flex;
    gap: 4px;
    width: 140px;
}
.ball {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #888;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}
.ball.empty {
    background-color: #ddd;
}
.ball.red-ball {
    background-color: red;
}
.digital-name {
    font-size: 11px;
    font-weight: bold;
    flex-grow: 1;
    padding: 0 8px;
}
.btn-more {
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    font-size: 10px;
    padding: 2px 6px;
    cursor: pointer;
}

.center-banner-box {
    margin: 12px 0;
}

#datePickerNew {
    padding: 8px;
    font-size: 15px;
    border-radius: 3px;
    border: 1px solid rgba(168, 168, 168, 0.4);
    background-color: #f9f9f9;
    color: #333;
    width: 100%;
    margin-bottom: 10px;
}


.loading, .loading-new {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    border-top: 2px solid red;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.news-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
}
.news-title-bold a {
    color: #a80000;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
}
.news-content {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.news-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
}
.news-text {
    font-size: 11px;
    color: #555;
}
.single-news-link {
    padding: 8px;
    font-size: 11px;
}
.single-news-link a {
    color: #333;
    text-decoration: none;
}

.black-video-box {
    background-color: #000;
    padding: 2px;
}

.site-footer {
    background-color: #fff;
    border-top: 1px solid #ccc;
    padding: 10px 0;
    text-align: center;
    font-size: 11px;
    color: #666;
    margin-top: 20px;
}


@media (max-width: 900px) {
    .wrapper { flex-direction: column; }
    .sidebar-left, .sidebar-right { width: 100%; }
}