/* ==================================================
   RESET & BASE
================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  text-shadow: 0 0 #000;
}

html,
body {
  height: 100%;
  margin: 0;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

section{margin-bottom:30px;}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Accessibility focus */
a:focus,
button:focus,
input:focus,
select:focus {
  outline: 3px solid rgba(245, 180, 64, 0.4);
  outline-offset: 2px;
}

/* ==================================================
   HEADER & NAVIGATION
================================================== */
.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 8px 10px;
  display: flex;
  gap: 10px;
}

.menu-btn {
  flex: 1;
  text-align: center;
  background: #333;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
}

.ticker-box {
    width: 100%;
    overflow: hidden;
    background: transparent;
    padding: 8px 0;
}

.ticker-content {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: move 20s linear infinite;
}

.ticker-box:hover .ticker-content {
    animation-play-state: paused;
}

@keyframes move {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-330%); }
}

.disclaimer-box {
    background-color: #1a1a1a; 
    color: #f1f1f1;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.7;
    text-align: justify;
}

.disclaimer-box strong {
    color: #ff5252;
    font-weight: bold;
}

.learn-more {
    color: #ffcc00;
    text-decoration: underline;
    margin-left: 8px;
    font-weight: 600;
}

.banner {
  text-align: center;
  margin-bottom: 15px;
}

.banner h1 {
  margin: 6px 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.game-result, .game-wait {
  font-weight: 700;
  text-align: center;
}

.game-result { font-size: 1.5rem; }
.game-wait { 
  color: #FFD700; 
  font-size: 1.6rem; 
  margin-bottom: 6px; 
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid #FFD700;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* Promo box */
.promo-box{
    max-width: 650px;
    margin: 25px auto;
    padding: 10px;
    border-radius: 15px;
    border: 2px solid #ffcc00;
    text-align: center;
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
}

.promo-box h2 {
    color: #ffcc00;
    font-size: 18px;
 }

.promo-box p {
    font-size: 18px;
     text-align: left;
    line-height: 1.6;
}
.promo-box ul,li {
    font-size: 18px;
     text-align: left;
    line-height: 1.6;
}


.highlight-yellow {
    color: #ffcc00;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.badge {
    background: rgba(255,204,0,0.1);
    border: 1px solid #ffcc00;
    color: #ffcc00;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
}

.btn-whatsapp {
    display: block;
    margin: 15px auto;
    width: fit-content;
    background-color: #ffcc00;
    color: #000000;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 18px;
    border-radius: 15px;
}

/* ==================================================
   TABLES (GRID & RESPONSIVE)
================================================== */
.Grid-table table, .responsive-table table {
  width: 100%;
  border-collapse: collapse;
}

.Grid-table th, .responsive-table th {
  background: #333;
  color: #fff;
  font-size: 18px;
  padding: 12px 0;
  text-align: center;
}

.Grid-table tr { background: #222; border: 1px solid #000; }
.Grid-table td { padding: 8px; text-align: center; vertical-align: middle; }

.game-name { font-size: 1.2rem; color: #fff; text-align: left; }
.time-row { display: flex; gap: 6px; }
.game-time { color: #FFD700; }

.result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  min-width: 50px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.4rem;
}

/* --- Table Ka Original Design --- */
.responsive-table { 
    overflow: auto; 
    margin: 18px 0; 
}

.responsive-table table { 
    background: #fff; 
    color: #111; 
    margin-bottom: 20px; 
    width: 100%;
    border-collapse: collapse;
}

.responsive-table td { 
    padding: 8px 0; 
    border: 1px solid #e6e6e6; 
    font-size: 18px; 
    text-align: center; 
}

/* --- HOT Highlight Only --- */

.responsive-table td.hot-highlight {
    background-color: #ffff00 !important; 
    color: #000 !important;
    font-weight: 900 !important;
    position: relative;
    border: 1px solid #ff4500 !important;
}

.responsive-table td.hot-highlight::after {
    content: '🔥';
    position: absolute;
    top: 0;
    right: 2px;
    font-size: 10px;
}


.trend-report {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    padding: 18px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.trend-report h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #111;
}

.trend-report p {
    font-size: 15px;
    color: #444;
    margin-bottom: 18px;
    line-height: 1.6;
}

.trend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.trend-box {
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.trend-box h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: #222;
}

.trend-box p {
    font-size: 17px;
    font-weight: bold;
    margin: 0;
}

/* Soft Colors */
.trend-box.hot {
    background: #fff3f3;
    border-color: #ffcccc;
}

.trend-box.cold {
    background: #f3f8ff;
    border-color: #cce5ff;
}

.trend-box.harf {
    background: #f8fff3;
    border-color: #d9f5c5;
}

.trend-box.joda {
    background: #fffaf3;
    border-color: #ffe0b3;
}

/* ==================================================
   FORMS & BUTTONS
================================================== */
#search-form {
  background: #222;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  margin-top: 25px;
}

#search-form select,
#search-form button {
  width: 31%;
  max-width: 150px;
  margin: 6px 1%;
  height: 44px;
  border-radius: 8px;
  padding: 6px;
  font-weight: 700;
  font-size: 1rem;
}

#search-form button { background: #d32f2f; color: #fff; }

.harf-meter-card {
    background: #1a1a1a;
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #333;
    margin: 20px 0;
}
.meter-info h3 { margin: 0 0 10px 0; color: #f1c40f; font-size: 18px; text-transform: uppercase; }
.meter-info p { font-size: 15px; color: #bbb; line-height: 1.5; margin-bottom: 20px; }
.meter-grid { display: flex; flex-direction: column; gap: 12px; }
.meter-row { display: flex; align-items: center; gap: 15px; }
.digit-box {
    width: 35px; height: 35px; background: #333;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 18px; font-weight: bold; color: #fff; border: 1px solid #444;
}
.bar-wrapper { flex: 1; background: #000; height: 22px; border-radius: 50px; padding: 2px; box-shadow: inset 0 2px 5px rgba(0,0,0,0.5); }
.bar-fill { height: 100%; border-radius: 50px; display: flex; align-items: center; justify-content: flex-end; transition: width 1s ease-out; }
.pct-text { font-size: 10px; font-weight: bold; color: #fff; margin-right: 8px; text-shadow: 1px 1px 2px #000; }
.share-section { text-align: center; margin-top: 25px; }
.whatsapp-btn {
    background-color: #25d366; color: white; padding: 12px 24px;
    text-decoration: none; border-radius: 50px; font-size: 14px; font-weight: bold;
    display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}
.meter-footer { font-size: 10px; color: #666; margin-top: 15px; text-align: center; font-style: italic; }


.top-title {
  text-align: center;
  color: #FFD700;
  font-weight: 800;
  margin: 20px 0 10px;
  font-size: 20px;
}

.year-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.button {
  background: #222;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 18px;
  text-align: center;
}

.button:hover { background: #ff6b6b; }

.article {
  background: #fff;
  padding: 25px;
  margin-top: 30px;
  text-align: justify;
}

.article h1, .article h2, .article h3 { color: #000; margin-bottom: 15px; }
.article p { font-size: 18px; margin-bottom: 15px; color: #000; line-height: 1.8; }
.article ul li { margin: 6px 0; color: #000; }
.article-featured-image { margin: 20px 0; text-align: center; }
.article-featured-image img {
  width: 100%;
  max-width: 1200px;
  border-radius: 12px;
}

.toc-box h2 { font-size: 18px; margin-bottom: 10px; }
.toc-box ul { list-style-type: disc; padding-left: 20px; }
.toc-box ul li { margin: 6px 0; color: #000; }
.toc-box ul li a:hover { color: #ff0000; }


.footer {
  text-align: center;
  padding: 10px 10px;
  background: #111;
  padding-bottom:80px;
}

.bottom {
  color: #bbb;
  padding: 10px;
  font-size: 16px;
  display: inline-block;
  transition: color 0.3s ease;
}

.bottom:hover {
  color: #FFD700;
}


.sticky-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background: #111;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 2px solid #ffcc00; 
    z-index: 99999;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
    padding-bottom: env(safe-area-inset-bottom);
}

/* 2. Individual Item Styling */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    cursor: pointer;
}

/* 3. Text Styling */
.nav-item span {
    font-size: 11px;
    font-weight: bold;
    color: #ffcc00; 
    text-transform: uppercase;
    margin-top: 2px;
}

/* 4. Attention Grabbing Spinner*/
.nav-spinner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    /* Wheel effect using conic-gradient */
    background: conic-gradient(#fff 0deg 90deg, #111 90deg 180deg, #fff 180deg 270deg, #111 270deg 360deg);
    border: 2px solid #ffcc00;
    animation: nav-spin 1.5s linear infinite;
}

/* 5. Live Red Dot (Poll Icon) */
.nav-icon {
    font-size: 22px;
    position: relative;
    display: flex;
}

.live-dot {
    height: 8px;
    width: 8px;
    background: #ff0000;
    border-radius: 50%;
    position: absolute;
    top: -2px;
    right: -4px;
    box-shadow: 0 0 5px #ff0000;
    animation: pulse-red 1.5s infinite;
}

/* Animations */
@keyframes nav-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-red {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
}
/* ==================================================
   RESPONSIVE OVERRIDES (FIXED ORDER)
================================================== */

/* Small Mobile First */
@media (max-width: 420px) {
  .responsive-table th { font-size: 15px; }
}

/* Mobile */
@media (max-width: 600px) {
  .ticker-list { animation-duration: 18s; gap: 30px; }
  .ticker-list li { font-size: 13px; padding-right: 10px; }
  .disclaimer-box { font-size: 14px; line-height: 1.5; }
  #search-form select, 
  #search-form button { width: 100%; margin: 6px 0; }
  .article { padding: 18px; }
  .article h1 { font-size: 24px; }
  .article p { font-size: 16px; }
  .spinner-float {width: 55px;height: 55px;right: 14px;bottom: 15px;}
  .spinner-wheel {width: 40px;height: 40px;}
}

/* Tablet/Desktop */
@media (min-width: 600px) {
  .year-buttons { grid-template-columns: repeat(6, 1fr); }
}
