/* China Lotto - IndiaLivePools inspired theme */
@font-face {
    font-family: 'noto';
    src: url('../fonts/NotoSerif-Regular.ttf');
}

* { box-sizing: border-box; }

body {
    margin: 0;
    margin-bottom: 60px;
    background: #f4f4f4 url('../images/bg-pattern.png') repeat;
    font-family: Arial, 'noto', sans-serif;
    color: #222;
}

/* ===== TOP NAV ===== */
.top-strip {
    background: #b30000;
    color: #fff;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 3px solid #ffcc00;
}
.top-strip .container { display:flex; justify-content:space-between; align-items:center; }

.navbar {
    background: linear-gradient(180deg, #d10000 0%, #a00000 100%) !important;
    padding: 12px 0;
    border-bottom: 4px solid #ffcc00;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.navbar .navbar-brand {
    color: #fff !important;
    font-family: 'Georgia', serif;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,.4);
}
.navbar .navbar-brand img { max-height: 46px; margin-right: 8px; }
.navbar .nav-link {
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    padding: 8px 14px !important;
    letter-spacing: .5px;
    transition: color .2s, background .2s;
}
.navbar .nav-link:hover, .navbar .nav-link.active {
    color: #ffcc00 !important;
    background: rgba(0,0,0,.15);
    border-radius: 4px;
}
.navbar .dropdown-menu {
    background: #a00000;
    border: 1px solid #ffcc00;
    border-radius: 4px;
    padding: 4px 0;
}
.navbar .dropdown-menu .dropdown-item {
    color: #fff;
    padding: 8px 16px;
    font-size: 13px;
}
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    background: #ffcc00;
    color: #a00000;
}
.navbar-toggler {
    border-color: #ffcc00;
}

/* ===== MARQUEE ===== */
.text-runn {
    background: #fff8dc;
    color: #a00000;
    padding: 8px 0;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: bold;
    border-bottom: 1px solid #ffcc00;
    margin: 0;
}

/* ===== MAIN LAYOUT ===== */
.main-wrap {
    background: #fff;
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    box-shadow: 0 0 12px rgba(0,0,0,.1);
    border: 1px solid #e6e6e6;
    border-radius: 4px;
}

.top-flex {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.left-bar {
    flex: 0 0 34%;
    max-width: 34%;
}
.left-bar img {
    width: 100%;
    display: block;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.right-bar {
    flex: 1;
    min-width: 300px;
}

/* ===== WINNING RESULT PANEL ===== */
.header-prize {
    background: linear-gradient(180deg, #d10000 0%, #900000 100%);
    color: #fff;
    padding: 14px 18px;
    border-radius: 4px 4px 0 0;
    text-align: center;
    border: 1px solid #900000;
    border-bottom: 3px solid #ffcc00;
}
.header-prize h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,.4);
}
.header-prize p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #ffe9a1;
}

.body-prize {
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    padding: 0;
}
.body-prize table { width: 100%; border-collapse: collapse; }
.body-prize .rank-prize {
    background: #fff8dc;
    color: #a00000;
    font-weight: bold;
    padding: 12px 16px;
    font-size: 16px;
    width: 40%;
    border-bottom: 1px solid #eee;
    border-right: 2px solid #ffcc00;
    text-align: left;
}
.body-prize .number-prize {
    padding: 12px 16px;
    font-size: 26px;
    font-weight: bold;
    color: #d10000;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    text-align: center;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.s1-rank-prize {
    width: 50%;
    vertical-align: top;
    padding: 10px;
    background: #fff;
    border-top: 2px solid #ffcc00;
}
.s1-rank-prize h3 {
    background: #a00000;
    color: #fff;
    padding: 6px 10px;
    font-size: 14px;
    text-align: center;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
}
.s1-number-prize td {
    text-align: center;
    padding: 8px 4px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    font-family: 'Courier New', monospace;
    background: #f8f8f8;
    border: 1px solid #eee;
}

/* Live prize placeholders for unrevealed */
.pending-number { color: #999 !important; letter-spacing: 4px; }

/* ===== YEARLY PRIZE BOXES ===== */
.yearly-wrap { margin-top: 24px; }
.yearly-wrap .row-cell { display: flex; gap: 14px; flex-wrap: wrap; }
.box-tot-prize {
    flex: 1;
    min-width: 260px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
}
.hd-tot-prize {
    background: linear-gradient(180deg, #ffcc00 0%, #e0a800 100%);
    color: #7a0000;
    padding: 10px 14px;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    border-bottom: 1px solid #d29800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.bd-tot-prize {
    padding: 16px;
    text-align: center;
    background: #fff;
}
.bd-tot-prize h3 {
    margin: 0;
    color: #d10000;
    font-size: 22px;
    font-weight: bold;
}
.bd-tot-prize p {
    color: #666;
    font-size: 11px;
    margin: 6px 0;
    letter-spacing: 1px;
}
.bd-tot-prize h4 {
    margin: 8px 0 0;
    font-size: 24px;
    color: #333;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    background: #fff8dc;
    padding: 6px;
    border: 1px dashed #ffcc00;
    border-radius: 3px;
}

/* ===== FEATURE BOXES ===== */
.box-other {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px dashed #e0e0e0;
}
.box-other .row-cell { display: flex; gap: 14px; flex-wrap: wrap; }
.feature-cell {
    flex: 1;
    min-width: 200px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    padding: 0;
    transition: transform .2s, box-shadow .2s;
}
.feature-cell:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.feature-cell img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}
.feature-cell p {
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.6;
    color: #444;
    margin: 0;
    text-align: justify;
}

/* ===== LIVE DRAW / HISTORY ===== */
.live-panel {
    background: linear-gradient(180deg, #d10000 0%, #900000 100%);
    color: #fff;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    border: 3px solid #ffcc00;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    margin-bottom: 20px;
}
.live-panel h4, .live-panel h5 { color: #ffcc00; margin: 6px 0; }
.live-panel img.logo { max-width: 130px; margin-bottom: 8px; }
.live-content {
    background: rgba(0,0,0,.25) !important;
    padding: 16px;
    border-radius: 4px;
    margin-top: 12px;
    border: 1px solid rgba(255,204,0,.4);
}
.live-content h4 { color: #fff; font-size: 20px; margin: 6px 0; }
.live-content hr { border-color: rgba(255,204,0,.4); }

/* ===== HISTORY RESULT CARDS ===== */
.history-title {
    background: #a00000;
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px 4px 0 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #900000;
    border-bottom: 3px solid #ffcc00;
}
.result-card {
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 14px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
    transition: transform .2s;
}
.result-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,.15); }
.result-card h5, .result-card h6 { color: #a00000; }
.result-card .p-num {
    font-size: 22px !important;
    font-weight: bold;
    color: #d10000;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    background: #fff8dc;
    padding: 4px;
    border-radius: 3px;
    margin: 4px 0 !important;
}
.result-card hr { border-color: #ffcc00; margin: 8px auto; }

/* ===== RESULT PAGE CARDS ===== */
.bg-card4 {
    background: linear-gradient(180deg, #d10000 0%, #900000 100%) !important;
    border: 2px solid #ffcc00;
    border-radius: 6px;
    color: #fff;
}
.ball-result {
    font-size: 2.6rem;
    font-weight: bold;
    color: #ffcc00;
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0,0,0,.5);
}

/* ===== FOOTER / BOTTOM NAV ===== */
.navbot {
    background: #900000 !important;
    color: #fff;
    padding: 10px 0;
    border-top: 3px solid #ffcc00;
}
.navbot .bottom-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 14px;
    align-items: center;
}
.navbot .bottom-nav li { font-size: 13px; color: #fff; }
.time-cur { color: #ffcc00; font-weight: bold; }

footer {
    background: transparent;
    padding: 14px 0;
    text-align: center;
}
.copyright-text {
    color: #666;
    font-size: 12px;
    font-weight: normal;
    margin: 0;
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    color: #a00000;
    border: 1px solid #ffcc00;
    background: #fff;
}
.pagination .page-item.active .page-link {
    background: #a00000;
    color: #fff;
    border-color: #a00000;
}
.pagination .page-link:hover { background: #ffcc00; color: #a00000; }

/* ===== DATE SEARCH ===== */
#dateres .input-group-text { background: #a00000; color: #fff; border-color: #a00000; }
#dateres .btn-danger { background: #a00000; border-color: #900000; }
#dateres .btn-danger:hover { background: #d10000; }

/* ===== MODAL RESPONSIBLE PLAY ===== */
.modal-header { background: #a00000; color: #fff; border-bottom: 3px solid #ffcc00; }
.modal-header .btn-close { filter: invert(1) brightness(200%); }
.modal-title { color: #fff !important; }
.modal-body h3 { color: #a00000 !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .top-flex { flex-direction: column; }
    .left-bar, .right-bar { flex: 1 1 100%; max-width: 100%; }
    .left-bar img { max-height: 300px; object-fit: cover; }
}
@media (max-width: 768px) {
    .main-wrap { margin: 10px; padding: 12px; }
    .header-prize h2 { font-size: 20px; }
    .body-prize .number-prize { font-size: 20px; }
    .bd-tot-prize h3 { font-size: 18px; }
    .ball-result { font-size: 2rem; }
}

/* Slider */
.swiper { width: 100%; height: auto; margin-bottom: 20px; }
.slideimg { width: 100%; }

.logo { width: 175px !important; }
