/* ===== GLOBAL RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0a0a0a;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== HEADER ===== */
.site-header {
  background: #1a0000;
  border-bottom: 3px solid #cc0000;
  padding: 10px 0;
  text-align: center;
}

.site-header .logo-text {
  font-size: 28px;
  font-weight: 900;
  color: #ff0000;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 10px #ff0000;
}

.site-header .logo-sub {
  font-size: 13px;
  color: #ffcc00;
  margin-top: 2px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #cc0000 !important;
  border-bottom: 2px solid #ff0000;
}

.navbar-brand { display: none; }

.navbar .nav-link {
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  background: #ff0000;
  border-radius: 4px;
  color: #ffff00 !important;
}

.navbar-toggler { border-color: #fff; }
.navbar-toggler-icon { filter: invert(1); }

/* ===== MARQUEE ===== */
.marquee-wrap {
  background: #111;
  border-top: 1px solid #cc0000;
  border-bottom: 1px solid #cc0000;
  padding: 6px 0;
  overflow: hidden;
}

.marquee-wrap marquee {
  color: #ffcc00;
  font-size: 13px;
  font-weight: bold;
}

/* ===== WHATSAPP BANNER ===== */
.wa-banner {
  background: #25D366;
  color: #000;
  text-align: center;
  padding: 8px 15px;
  font-weight: bold;
  font-size: 14px;
}

.wa-banner a { color: #000; text-decoration: underline; font-weight: 900; }

/* ===== SECTION TITLE ===== */
.section-title {
  background: #1a0000;
  border: 1px solid #cc0000;
  color: #ff0000;
  text-align: center;
  padding: 8px;
  font-size: 18px;
  font-weight: 900;
  margin: 15px 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== LIVE RESULT CARDS ===== */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 10px;
}

.result-card {
  border: 2px solid #333;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
}

.result-card .card-header {
  padding: 6px 8px;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-card .card-time {
  font-size: 11px;
  opacity: 0.85;
  display: block;
  margin-top: 2px;
}

.result-card .card-body {
  background: #111;
  padding: 12px 8px;
}

.result-card .result-num {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.result-card .card-footer {
  background: #1a1a1a;
  padding: 6px;
}

.result-card .chart-btn {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  padding: 4px 14px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.result-card .chart-btn:hover { background: #ff0000; text-decoration: none; }

/* Card color themes */
.card-blue  .card-header { background: #003399; color: #fff; }
.card-red   .card-header { background: #cc0000; color: #fff; }
.card-yellow .card-header { background: #cc8800; color: #fff; }
.card-green .card-header { background: #006600; color: #fff; }

.text-red    { color: #ff3333 !important; }
.text-yellow { color: #ffcc00 !important; }
.text-green  { color: #00cc44 !important; }
.text-wait   { color: #ff3333 !important; font-size: 20px !important; }

/* ===== TODAY/YESTERDAY CARDS ===== */
.ty-card {
  border: 2px solid #333;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
}

.ty-card .ty-header {
  padding: 7px 10px;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
}

.ty-card .ty-body {
  background: #111;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 8px;
  gap: 10px;
}

.ty-card .ty-group { text-align: center; flex: 1; }
.ty-card .ty-label { font-size: 11px; color: #aaa; display: block; margin-bottom: 4px; }
.ty-card .ty-val   { font-size: 26px; font-weight: 900; }
.ty-card .ty-divider { width: 1px; background: #333; height: 40px; }

/* ===== CHART TABLE ===== */
.chart-section { padding: 10px; }

.chart-table-wrap { overflow-x: auto; margin-bottom: 20px; }

.chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.chart-table th {
  background: #cc0000;
  color: #fff;
  padding: 8px 10px;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.chart-table td {
  background: #111;
  color: #fff;
  padding: 6px 10px;
  text-align: center;
  border-bottom: 1px solid #222;
}

.chart-table tr:hover td { background: #1a1a1a; }

.chart-table td.num { color: #ffcc00; font-weight: bold; font-size: 15px; }
.chart-table td.xx  { color: #555; }
.chart-table td.wait { color: #ff3333; }

/* ===== INFO SECTION ===== */
.info-section {
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 20px;
  margin: 15px 10px;
  line-height: 1.7;
  color: #ccc;
}

.info-section h2 { color: #ff3333; font-size: 18px; margin-bottom: 10px; }
.info-section h3 { color: #ffcc00; font-size: 15px; margin: 12px 0 6px; }
.info-section p  { margin-bottom: 10px; }
.info-section ul { padding-left: 20px; margin-bottom: 10px; }
.info-section ul li { margin-bottom: 5px; }

/* ===== FAQ ===== */
.faq-section { padding: 10px; }

.faq-item {
  background: #111;
  border: 1px solid #333;
  border-radius: 5px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  background: #1a0000;
  padding: 12px 15px;
  font-weight: bold;
  color: #ffcc00;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after { content: '+'; font-size: 18px; color: #ff3333; }
.faq-question.open::after { content: '−'; }

.faq-answer {
  padding: 12px 15px;
  color: #ccc;
  display: none;
  line-height: 1.6;
}

.faq-answer.show { display: block; }

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  padding: 10px;
}

.review-card {
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 14px;
}

.review-stars { color: #ffcc00; font-size: 16px; margin-bottom: 6px; }
.review-text  { color: #ccc; font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.review-author { color: #ff3333; font-size: 12px; font-weight: bold; }
.review-date   { color: #666; font-size: 11px; }

/* ===== CONTACT FORM ===== */
.contact-section {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
}

.contact-section h2 { color: #ff3333; margin-bottom: 15px; text-align: center; }

.form-label { color: #ccc; font-size: 13px; margin-bottom: 4px; }

.form-control {
  background: #1a1a1a !important;
  border: 1px solid #444 !important;
  color: #fff !important;
  font-size: 14px;
}

.form-control:focus {
  border-color: #cc0000 !important;
  box-shadow: 0 0 0 0.2rem rgba(204,0,0,0.25) !important;
}

.btn-submit {
  background: #cc0000;
  color: #fff;
  border: none;
  padding: 10px 30px;
  font-weight: bold;
  font-size: 15px;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-submit:hover { background: #ff0000; }

/* ===== YEARLY CHART PAGE ===== */
.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  background: #111;
  border-bottom: 1px solid #333;
}

.year-tab {
  background: #1a1a1a;
  border: 1px solid #444;
  color: #ccc;
  padding: 5px 14px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
}

.year-tab:hover, .year-tab.active {
  background: #cc0000;
  color: #fff;
  border-color: #cc0000;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0d0d0d;
  border-top: 2px solid #cc0000;
  padding: 20px 15px;
  text-align: center;
  color: #666;
  font-size: 12px;
  margin-top: 30px;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.site-footer .footer-links a { color: #aaa; font-size: 13px; }
.site-footer .footer-links a:hover { color: #ff3333; }

.site-footer .footer-disclaimer {
  color: #444;
  font-size: 11px;
  max-width: 700px;
  margin: 10px auto 0;
  line-height: 1.5;
}

/* ===== REFRESH BUTTON ===== */
.refresh-btn {
  background: #cc0000;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px auto;
  display: inline-block;
}

.refresh-btn:hover { background: #ff0000; }

/* ===== UPDATE TIME ===== */
.update-time {
  color: #ff3333;
  text-align: center;
  font-size: 13px;
  margin: 5px 0;
}

/* ===== GAME DETAIL PAGE ===== */
.game-hero {
  background: linear-gradient(135deg, #1a0000, #0a0a0a);
  border: 1px solid #cc0000;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  margin: 15px 10px;
}

.game-hero h1 { color: #ff3333; font-size: 22px; margin-bottom: 8px; }
.game-hero .game-time { color: #ffcc00; font-size: 16px; font-weight: bold; }
.game-hero .game-result-big {
  font-size: 72px;
  font-weight: 900;
  color: #ffcc00;
  line-height: 1;
  margin: 10px 0;
  text-shadow: 0 0 20px #ffcc00;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .site-header .logo-text { font-size: 22px; }
  .game-hero .game-result-big { font-size: 56px; }
}
