:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --card: #ffffff;
  --accent: #d62839;
  --accent-2: #e07a00;
  --text: #16181d;
  --muted: #5b6470;
  --border: #e3e6ea;
}

[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #14161c;
  --card: #1a1d24;
  --accent: #e63946;
  --accent-2: #ffb703;
  --text: #f1f1f1;
  --muted: #9aa0a6;
  --border: #2a2e37;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  transition: background 0.2s ease, color 0.2s ease;
}

button, a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.2)) invert(0.85) hue-rotate(180deg);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.03);
}

[data-theme="dark"] .brand-logo {
  filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.5));
}

/* ===== Opt-In Notification Modal (professional) ===== */
.notif-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: notifFade 0.25s ease;
}
@keyframes notifFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.notif-modal-overlay.hidden { display: none; }

.notif-modal-content {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  padding: 32px 28px 24px;
  text-align: center;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.45);
  animation: modalPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.notif-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.notif-modal-close:hover { background: var(--surface); color: var(--text); }

.notif-modal-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  background: var(--surface);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-modal-icon img {
  width: 100%;
  height: auto;
}

.notif-modal-content h2 {
  font-size: 1.3rem;
  margin-bottom: 4px;
  color: var(--text);
}
.notif-subtitle {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
}

.notif-benefits {
  list-style: none;
  margin: 18px 0 16px;
  padding: 0;
  text-align: left;
}
.notif-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 8px;
}
.notif-benefits li strong {
  color: var(--text);
  display: block;
}
.notif-b-icon {
  font-size: 1.05rem;
  line-height: 1.3;
}

.notif-note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
}
.notif-note em {
  display: block;
  opacity: 0.85;
}
.notif-note.notif-free {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px dashed var(--accent-soft-border);
  padding: 9px 12px;
  border-radius: 10px;
}

.notif-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-btn-yes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 13px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.notif-btn-yes:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 20px -6px rgba(0, 0, 0, 0.35);
}
.notif-btn-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

.notif-btn-no {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 11px;
  border-radius: 12px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.notif-btn-no:hover {
  background: var(--surface);
  border-color: var(--accent-2);
  color: var(--text);
}

/* ===== Rashi Picker (notification modal ke andar) ===== */
.rashi-block {
  margin: 0 0 18px;
  text-align: left;
}
.rashi-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.rashi-title span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}
.rashi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}
.rashi-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.rashi-chip:hover {
  border-color: var(--accent);
}
.rashi-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.rashi-hi {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}
.rashi-en {
  font-size: 0.6rem;
  opacity: 0.75;
  line-height: 1.2;
}
.rashi-error {
  color: #ef4444;
  font-size: 0.76rem;
  margin: 8px 0 0;
  line-height: 1.45;
}
.rashi-error.hidden { display: none; }
.rashi-hint {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.5;
}
.rashi-hint em {
  display: block;
  opacity: 0.8;
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn:hover { border-color: var(--accent); }

.count-pill {
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.count-pill.hidden { display: none; }

.lang-select {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
  }

  /* District dropdown sirf district-support wale states (Jharkhand) par dikhta hai.
     Jaise "सरायकेला-खरसावां" / "East Singhbhum (जमशेदपुर)" — lambe naam ke liye
     state dropdown se thoda zyada width rakhte hain. */
  #districtSelect {
    max-width: 170px;
  }
  #districtSelect.hidden {
    display: none;
  }


.lang-switch-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switch-btn:hover {
  border-color: var(--accent);
}

.lang-opt {
  color: var(--muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.lang-opt.active {
  color: var(--accent);
  font-weight: 700;
}

.lang-sep {
  opacity: 0.3;
}

.lang-note {
  margin: 0 20px 12px;
  padding: 8px 14px;
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid var(--accent-2);
  border-radius: 8px;
  color: var(--accent-2);
  font-size: 0.8rem;
}

.lang-note.hidden { display: none; }

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-nav a:hover { color: var(--accent); }

.category-nav {
  display: flex;
  gap: 8px;
  padding: 0 20px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar { display: none; }

.cat-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cat-btn:hover { border-color: var(--accent); color: var(--text); }

.cat-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cat-games-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  background: rgba(255, 193, 7, 0.12);
  border-color: var(--accent-2);
  color: var(--accent-2);
}
.cat-games-tab:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #000;
}

.games-page-tagline {
  color: var(--muted);
  font-size: 0.92rem;
  margin: -6px 0 18px;
}

.search-row {
  padding: 0 20px 14px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-row input {
  width: 100%;
  padding: 10px 40px 10px 14px; /* Increased right padding for X button */
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-row input:focus {
  border-color: var(--accent);
}

.search-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear.hidden { display: none; }

.search-clear:hover { color: var(--text); }

/* ===== Ticker bar ===== */
.ticker-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  padding: 6px 16px;
  font-size: 0.78rem;
  scrollbar-width: none;
}

.ticker-bar::-webkit-scrollbar { display: none; }

.ticker-track {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.ticker-item .value-up { color: #2ecc71; }
.ticker-item .value-down { color: #e63946; }

/* ===== Breaking bar ===== */
.breaking-bar {
  display: flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  height: 42px;
}

.breaking-bar.hidden { display: none; }

.breaking-label {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.25);
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 0.04em;
}

.breaking-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.breaking-content {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll-left 55s linear infinite;
  font-size: 0.86rem;
  font-weight: 500;
}

.breaking-content a { color: #fff; text-decoration: none; }
.breaking-content a:hover { text-decoration: underline; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ===== Status row ===== */
.status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 rgba(46, 204, 113, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* ===== Hero ===== */
.hero {
  margin: 20px 24px 8px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  min-height: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}

.hero.hidden { display: none; }

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.1) 60%);
}

.hero-body {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: #fff;
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  background: var(--accent);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero p {
  color: #d8d8d8;
  font-size: 0.92rem;
}

/* ===== Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  padding: 16px 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.card.is-breaking { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* Server-rendered cards — overlay link poore card ko clickable banata hai
   (JS load hone se pehle / no-JS users ke liye). */
.card.is-ssr { position: relative; }
.card.is-ssr .ssr-link {
  position: absolute; inset: 0; z-index: 2; display: block; text-decoration: none;
}
.card.is-ssr .card-body { z-index: 1; position: relative; }
.card.is-ssr .ssr-bookmark {
  color: var(--muted, #888); font-size: 1.1rem; user-select: none;
}

.card.ad-card {
  padding: 8px;
  align-items: stretch;
  justify-content: flex-start;
  background: var(--surface);
}

.ad-card .ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #888);
  padding: 4px 6px 0;
}

/* Sponsored affiliate card (labeled, policy-safe) */
.sponsored-card {
  display: flex;
  flex-direction: column;
}
.sponsored-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  text-decoration: none;
  color: var(--text);
}
.sponsored-img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--border);
  flex-shrink: 0;
}
.sponsored-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sponsored-info h4 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sponsored-cta {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 5px 14px;
  border-radius: 16px;
}
.sponsored-by {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-2);
}
.sponsored-note {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted, #888);
  text-decoration: none;
  padding: 7px 8px 1px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
  line-height: 1.35;
}
.sponsored-note:hover { color: var(--accent); }

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--surface);
}

.card-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  background: linear-gradient(135deg, var(--surface) 0%, var(--border) 100%);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
  padding: 10px;
  text-align: center;
}

.card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.source-badge {
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
  font-size: 0.35rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

[data-theme="dark"] .source-badge {
  background: rgba(255, 255, 255, 0.08);
}

.bookmark-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1;
}

.bookmark-btn.saved { color: var(--accent-2); }

.card h3 {
  font-size: 1.02rem;
  line-height: 1.4;
}

.badge-breaking {
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  margin-left: 6px;
  vertical-align: middle;
}

.card p.summary {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.76rem;
  color: var(--muted);
  padding-top: 6px;
}

.card a.read-more {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
}

.card a.read-more:hover { text-decoration: underline; }

.share-row {
  display: flex;
  gap: 8px;
  padding-top: 6px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn svg {
  flex-shrink: 0;
}

.share-btn.share-wa:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: #25d366;
  color: #25d366;
}

.share-btn.share-x:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--text);
}

.share-btn.share-tg:hover {
  background: rgba(34, 160, 228, 0.12);
  border-color: #22a0e8;
  color: #22a0e8;
}

.share-btn.share-copy:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ===== Skeleton loading ===== */
.skeleton-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.skeleton-img, .skeleton-line {
  background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-img { height: 160px; }
.skeleton-line { height: 12px; margin: 14px 16px; border-radius: 4px; }
.skeleton-line.short { width: 60%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Empty state / load more ===== */
.empty-state { text-align: center; padding: 40px; color: var(--muted); }
.empty-state.hidden { display: none; }

.load-more-wrap { display: flex; justify-content: center; padding: 10px 20px 30px; }

.load-more-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.load-more-btn:hover { border-color: var(--accent); color: var(--accent); }
.load-more-btn.hidden { display: none; }

/* ===== Footer ===== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 20px 24px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-brand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-disclaimer {
  max-width: 720px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0.85;
}

/* ===== Newsletter signup box (footer) ===== */
.newsletter-box {
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--card);
  text-align: left;
}
.newsletter-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--text);
}
.newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.newsletter-form input[type='email'] {
  flex: 1 1 220px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}
.newsletter-form button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}
.newsletter-form button:hover { opacity: 0.9; }
.newsletter-form button:disabled { opacity: 0.5; cursor: default; }
.newsletter-status {
  margin: 8px 0 0;
  font-size: 0.82rem;
  min-height: 1em;
}
.newsletter-status.ok { color: #22c55e; }
.newsletter-status.err { color: #ef4444; }
.newsletter-note {
  margin: 8px 0 0;
  font-size: 0.72rem;
  opacity: 0.75;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 6px 0;
}

.footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.copyright-text {
  color: var(--muted);
}

.powered-by-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.powered-by-box:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.powered-label {
  color: var(--muted);
  font-weight: 500;
}

.tech-brand {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
}

@media (min-width: 720px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 50;
  transition: opacity 0.2s ease;
}

.toast.hidden { display: none; }

/* ===== Mobile Bottom Navigation ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .bottom-nav {
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.4);
}

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px 6px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 600;
  cursor: pointer;
}

.bn-item .bn-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.bn-item.active {
  color: var(--accent);
}

/* ===== Mobile ===== */
@media (max-width: 720px) {
  .bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
  .toast {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
  .menu-toggle { display: block; }
  .header-top {
    padding: 10px 12px;
    gap: 8px;
  }
  .brand-logo {
    height: 40px;
  }
  .brand {
    font-size: 1.1rem;
  }
  .icon-btn {
    padding: 6px 9px;
    font-size: 0.85rem;
    border-radius: 8px;
  }
  .lang-select {
    padding: 6px 8px;
    font-size: 0.75rem;
    max-width: 88px;
  }
  #districtSelect {
    max-width: 118px;
  }
  /* Do dropdown + language toggle + 3 icon buttons ek line me na aayein —
     wrap hone do, warna mobile par sab squeeze ho jaata hai. */
  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 6px;
  }
  .lang-switch-btn {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
  .category-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 14px 10px;
    gap: 6px;
    scrollbar-width: none;
  }
  .category-nav::-webkit-scrollbar { display: none; }
  .category-nav.open { display: flex; flex-wrap: wrap; white-space: normal; }
  .hero { min-height: 180px; margin: 12px; border-radius: 12px; }
  .hero-body { padding: 16px; }
  .hero h2 { font-size: 1.1rem; }
  .hero p { font-size: 0.8rem; }
  .hero-tag { padding: 2px 10px; font-size: 0.65rem; }
  .status-row { padding: 8px; font-size: 0.78rem; }
  .grid { padding: 12px; grid-template-columns: 1fr; gap: 14px; }
  .card-img { height: 180px; }
  .card-body { padding: 12px 14px; }
  .card h3 { font-size: 0.98rem; }
  .ticker-bar { font-size: 0.72rem; padding: 5px 12px; }
  .breaking-bar { height: 38px; }
  .breaking-content { font-size: 0.8rem; }
  .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .home-ad-container { margin: 10px 14px; }
  .notif-modal-content { max-width: 95%; padding: 26px 18px; }
}

@media (max-width: 480px) {
  .brand-text {
    display: none;
  }
  .brand {
    font-size: 1rem;
  }
  .lang-select {
    max-width: 72px;
    padding: 5px 6px;
  }
  #districtSelect {
    max-width: 100px;
  }
  .icon-btn {
    padding: 6px 8px;
  }
  .cat-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .card-img { height: 190px; }
}

/* ===== In-House Article Reader Modal ===== */
.article-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow: hidden;
}

.article-modal.hidden {
  display: none;
}

.article-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.article-modal-content {
  position: relative;
  z-index: 101;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.article-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 102;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.article-modal-close:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.article-modal-body {
  padding: 28px 24px;
  overflow-y: auto;
  line-height: 1.7;
}

.reader-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.reader-source-badge {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.425rem;
}

.reader-meta-time {
  color: var(--muted);
  font-size: 0.8rem;
}

.reader-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 18px;
  color: var(--text);
}

.reader-hero-img {
  width: 100%;
  max-height: 380px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.reader-ad-box {
  margin: 20px 0;
  padding: 12px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 10px;
  text-align: center;
}

/* Audio Controls & Font Size in Reader Modal */
.audio-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 18px;
}

.font-size-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.font-size-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.font-size-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.reader-content-body {
  font-size: 1.05rem;
  color: var(--text);
  white-space: pre-line;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.reader-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.reader-original-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.reader-original-btn:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .article-modal { padding: 8px; }
  .article-modal-content { max-height: 95vh; border-radius: 12px; }
  .article-modal-body { padding: 18px 14px; }
  .reader-title { font-size: 1.25rem; }
  .reader-content-body { font-size: 0.98rem; }
}

/* ===== Sidebar Menu ===== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85%;
  background: var(--surface);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  height: 40px;
  width: auto;
}

.sidebar-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}

.sidebar-section {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-section:last-child { border-bottom: none; }

.sidebar-title {
  padding: 0 24px 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s;
}

.sidebar-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .sidebar-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-item.active {
  color: var(--accent);
  background: rgba(230, 57, 70, 0.1);
  border-left: 3px solid var(--accent);
  padding-left: 21px;
}

.sidebar-item.biz {
  color: var(--accent-2);
  font-weight: 600;
}

.sidebar-item .icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.sidebar-cat-list {
  display: flex;
  flex-direction: column;
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Adjust header to accommodate menu toggle better */
.header-top {
  justify-content: flex-start;
}

.header-actions {
  margin-left: auto;
}

/* ===== Home Deal Banner (Compact) ===== */
.home-deal-banner {
  margin: 10px 24px 25px; /* Increased bottom margin from 15px to 25px */
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 183, 3, 0.4);
  border-radius: 10px;
  padding: 12px 16px;
  position: relative;
  overflow: visible; /* Changed from hidden to avoid cutting elements */
  z-index: 5;
}

.home-deal-banner.hidden { display: none; }

.deal-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  background: var(--accent-2);
  color: #000;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.03em;
}

.deal-flex {
  display: flex;
  align-items: center;
  gap: 15px;
}

.deal-img-box {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  flex-shrink: 0;
}

.deal-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.deal-info-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.deal-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deal-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-2);
}

.deal-old-price {
  font-size: 0.75rem;
  text-decoration: line-through;
  color: var(--muted);
}

.deal-btn {
  display: inline-block;
  background: var(--accent-2);
  color: #000;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.deal-btn:hover {
  transform: scale(1.05);
}

@media (max-width: 720px) {
  .home-deal-banner { margin: 10px 14px 20px; padding: 12px; }
  .deal-flex { gap: 10px; }
  .deal-img-box { width: 50px; height: 50px; }
  .deal-info-box { flex-direction: column; align-items: flex-start; gap: 5px; }
  .deal-title { font-size: 0.85rem; }
  .deal-price { font-size: 1rem; }
  .deal-btn { width: 100%; text-align: center; margin-top: 5px; }
}

/* ===== Secondary Ad Containers ===== */
.sidebar-ad-box {
  padding: 16px;
  text-align: center;
  border-top: 1px solid var(--border);
}

/* "Advertise FREE" CTA — kisi bhi advertiser ko invite karta hai (email ke saath) */
.advertise-cta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}
.advertise-cta:hover { transform: translateY(-2px); }
.advertise-cta-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.92;
}
.advertise-cta-title { font-size: 0.95rem; font-weight: 800; line-height: 1.3; }
.advertise-cta-sub { font-size: 0.75rem; opacity: 0.95; line-height: 1.35; }
.advertise-cta-mail {
  font-size: 0.8rem;
  font-weight: 700;
  word-break: break-all;
  opacity: 0.98;
  text-decoration: underline;
}

.home-ad-container {
  margin: 10px 24px;
  text-align: center;
  min-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-ad-container.hidden { display: none; }

/* Stack: ad label + iframe, centered column */
.ad-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

/* Footer / page-bottom ad box */
#footerAd, #gamesPageAd {
  margin: 6px auto 18px;
  max-width: 728px;
  min-height: 60px;
}

/* Fixed-width Adsterra leaderboard pe mobile par squish na ho —
   chhote screens par anchor/auto-ads already mobile revenue de rahe hain */
.top-ad-box .ad-frame-top {
  max-width: 100%;
}
@media (max-width: 727px) {
  .top-ad-box { display: none; }
}

@media (max-width: 720px) {
  .home-ad-container { margin: 10px 14px; }
}

/* ===== In-Feed Native Ads ===== */
.native-ad-card {
  min-height: 250px;
  background: var(--surface);
  border: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
}

.native-ad-card .ad-label {
  background: var(--border);
  display: inline-block;
  align-self: flex-start;
  margin: 8px;
  border-radius: 4px;
}

/* ===== Rich Empty State ===== */
.empty-rich-wrap {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.empty-icon { font-size: 3rem; margin-bottom: 15px; opacity: 0.8; }
.empty-rich-wrap h2 { font-size: 1.25rem; margin-bottom: 25px; color: var(--text); opacity: 0.9; }

.empty-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.empty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s;
}

.btn-google { background: var(--card); border: 1px solid var(--border); color: var(--text); }
.btn-earn { background: var(--accent-2); color: #000; box-shadow: 0 4px 15px rgba(255, 183, 3, 0.2); }

.empty-btn:hover { transform: translateY(-2px); }

.empty-deal-card {
  background: var(--card);
  border: 1px solid var(--accent-2);
  border-radius: 14px;
  padding: 20px;
  text-align: left;
  margin-bottom: 30px;
}

.deal-note { font-size: 0.8rem; font-weight: 800; color: var(--accent-2); text-transform: uppercase; margin-bottom: 12px; }

.empty-deal-card .deal-body { display: flex; gap: 15px; align-items: center; }
.empty-deal-card .deal-img { width: 80px; height: 80px; object-fit: contain; background: #fff; border-radius: 8px; padding: 5px; flex-shrink: 0; }
.empty-deal-card h4 { font-size: 1rem; color: var(--text); line-height: 1.4; margin-bottom: 5px; }
.empty-deal-card .deal-link { color: var(--accent); text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.deal-sponsor {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  margin: 0 0 3px;
}
.empty-deal-advertise {
  display: block;
  text-align: center;
  font-size: 0.74rem;
  color: var(--muted, #888);
  text-decoration: none;
  line-height: 1.35;
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.empty-deal-advertise:hover { color: var(--accent); }

.empty-ad-slot { margin-top: 20px; }

@media (max-width: 600px) {
  .empty-btn { font-size: 0.85rem; padding: 12px; }
  .empty-deal-card { padding: 15px; }
  .empty-deal-card .deal-img { width: 60px; height: 60px; }
}

/* ===================== Arcade Games ===================== */
.games-strip {
  margin: 0 auto 8px;
  max-width: 1000px;
  padding: 18px;
}
.games-strip.hidden { display: none; }
.games-header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.games-header h2 { margin: 0; font-size: 1.2rem; color: var(--text); }
.games-tagline { color: var(--accent-2); font-size: 0.85rem; font-weight: 700; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.games-grid.compact { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--accent-2); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
.game-emoji { font-size: 2.6rem; line-height: 1; margin-bottom: 8px; }
.game-title { font-weight: 800; color: var(--text); font-size: 1rem; margin-bottom: 4px; }
.game-tagline { color: var(--text); opacity: 0.7; font-size: 0.78rem; margin-bottom: 10px; line-height: 1.35; }
.game-play {
  display: inline-block; background: var(--accent-2); color: #000;
  padding: 6px 14px; border-radius: 20px; font-weight: 800; font-size: 0.82rem;
}

.game-modal {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 200; display: flex; justify-content: center; align-items: center; padding: 14px; overflow: hidden;
}
.game-modal.hidden { display: none; }
.game-modal-backdrop {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(6px);
}
.game-modal-content {
  position: relative; z-index: 201; background: var(--bg);
  border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 480px; max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.game-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 202;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; font-weight: bold; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.game-modal-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.game-modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 40px 12px; }
.game-modal-head h3 { margin: 0; color: var(--text); font-size: 1.15rem; }
.game-modal-emoji { font-size: 1.6rem; }

.game-area { padding: 4px 18px; overflow-y: auto; flex: 1; min-height: 0; }
.game-ad-slot { padding: 12px 18px 18px; }
.ad-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text); opacity: 0.55; text-align: center; margin-bottom: 6px;
}

.game-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.game-score { font-weight: 800; color: var(--accent-2); font-size: 0.95rem; }
.game-hiscore { margin-left: auto; margin-right: 12px; font-weight: 700; color: var(--accent-2); opacity: 0.85; font-size: 0.82rem; }
.game-restart, .game-restart-2 {
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 0.82rem;
}
.game-restart:hover, .game-restart-2:hover { border-color: var(--accent); color: var(--accent); }
.game-hint { text-align: center; color: var(--text); opacity: 0.6; font-size: 0.78rem; margin: 8px 0 4px; }

/* Snake */
.snake-wrap { position: relative; }
.snake-wrap canvas {
  display: block; width: 100%; max-width: 320px; margin: 0 auto;
  background: #171a21; border-radius: 12px; border: 1px solid var(--border);
}
.game-overlay {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65);
  display: flex; align-items: center; justify-content: center; border-radius: 12px;
}
.game-overlay.hidden { display: none; }
.game-overlay-box { text-align: center; }
.game-overlay-box h3 { color: #f87171; margin: 0 0 6px; font-size: 1.3rem; }
.final-score { color: var(--text); margin: 0 0 12px; font-weight: 700; }

/* Snake 3D */
.snake3d-wrap { position: relative; }
.snake3d-stage {
  position: relative; width: 100%; height: 380px;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: #0b0d15;
}
.snake3d-stage canvas { display: block; }
.snake3d-load {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text); opacity: 0.75; font-size: 0.9rem; text-align: center; padding: 16px;
}
@media (max-height: 760px) { .snake3d-stage { height: 300px; } }

/* 2048 */
.t2048-board {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px;
}
.t2048-tile {
  aspect-ratio: 1; border-radius: 8px; background: rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem; color: var(--text);
}
.t2048-tile.t2 { background: #eee4da; color: #3c3a32; }
.t2048-tile.t4 { background: #ede0c8; color: #3c3a32; }
.t2048-tile.t8 { background: #f2b179; color: #fff; }
.t2048-tile.t16 { background: #f59563; color: #fff; }
.t2048-tile.t32 { background: #f67c5f; color: #fff; }
.t2048-tile.t64 { background: #f65e3b; color: #fff; }
.t2048-tile.t128 { background: #edcf72; color: #fff; font-size: 1.1rem; }
.t2048-tile.t256 { background: #edcc61; color: #fff; font-size: 1.1rem; }
.t2048-tile.t512 { background: #edc850; color: #fff; font-size: 1rem; }
.t2048-tile.t1024 { background: #edc53f; color: #fff; font-size: 0.95rem; }
.t2048-tile.t2048 { background: #3c3a32; color: #ffd700; font-size: 0.9rem; }
.t2048-over {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.6); color: #fff; font-weight: 800; border-radius: 12px; font-size: 1rem;
}

/* Tic Tac Toe */
.ttt-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 300px; margin: 0 auto; }
.ttt-cell {
  aspect-ratio: 1; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; font-size: 2rem; font-weight: 800; cursor: pointer; color: var(--text);
}
.ttt-cell.x { color: var(--accent); }
.ttt-cell.o { color: var(--accent-2); }
.ttt-cell:hover { border-color: var(--accent-2); }

/* Memory */
.mem-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 340px; margin: 0 auto; }
.mem-cell {
  aspect-ratio: 1; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.mem-cell.open { background: var(--accent); border-color: var(--accent); }
.mem-cell.matched { background: rgba(74, 222, 128, 0.35); border-color: #4ade80; cursor: default; }

@media (max-width: 480px) {
  .game-modal { padding: 8px; }
  .games-grid, .games-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .game-emoji { font-size: 2rem; }
}

/* ===================== YouTube Creators ===================== */
.yt-section {
  margin: 0 auto 10px;
  max-width: 1200px;
  padding: 22px 24px 6px;
}
.yt-section.hidden { display: none; }

.yt-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.yt-header-titles h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.yt-title-icon { font-size: 1.2rem; }
.yt-live-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: #ff0000;
  padding: 3px 9px;
  border-radius: 20px;
  animation: ytBlink 2s infinite;
}
@keyframes ytBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.yt-tagline {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.yt-header-actions { display: flex; align-items: center; gap: 10px; }
.yt-count {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
}
.yt-refresh-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}
.yt-refresh-btn:hover { border-color: var(--accent); }

.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
}

.yt-channel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.yt-channel:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  border-color: var(--yt-c, var(--accent));
}

.yt-channel-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.yt-avatar {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--yt-c, var(--accent));
  box-shadow: 0 0 0 3px var(--card);
}
.yt-avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-avatar-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
}
.yt-channel-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.yt-channel-meta h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yt-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yt-subs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  opacity: 0.85;
}
.yt-subs-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.yt-subscribe-btn {
  flex-shrink: 0;
  background: #ff0000;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.yt-subscribe-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.yt-video-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.yt-rot-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}
.yt-rot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s ease, transform 0.2s ease;
}
.yt-rot-dot.active {
  background: var(--yt-c, var(--accent));
  transform: scale(1.35);
}
.yt-pause-badge {
  position: absolute;
  left: 12px;
  top: 13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.yt-pause-badge::before { content: '⏸'; }
.yt-channel.yt-paused .yt-pause-badge { opacity: 1; }
.yt-video {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  overflow: hidden;
}
.yt-video:hover {
  border-color: var(--yt-c, var(--accent));
  background: var(--card);
}
.yt-video-thumb {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 7px;
  background: var(--border);
  flex-shrink: 0;
}
.yt-play-ic {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.yt-play-ic svg { width: 13px; height: 13px; }
.yt-video:hover .yt-play-ic { opacity: 1; }
.yt-video-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.yt-video-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-video-time {
  font-size: 0.7rem;
  color: var(--muted);
}

.yt-no-videos {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 18px 10px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

/* Skeleton */
.yt-skeleton .yt-avatar.yt-sk, .yt-skeleton .yt-sk-line {
  background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.yt-skeleton .yt-sk-line { height: 14px; width: 70%; border-radius: 6px; }
.yt-skeleton .yt-sk-thumb {
  width: 96px; height: 54px; border-radius: 7px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

/* ===== YouTube Video Modal ===== */
.yt-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 210;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow: hidden;
}
.yt-modal.hidden { display: none; }
.yt-modal-backdrop {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
}
.yt-modal-content {
  position: relative;
  z-index: 211;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.yt-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 212;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.yt-modal-close:hover { background: var(--accent); border-color: var(--accent); }
.yt-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.yt-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-modal-foot {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--card);
  border-top: 1px solid var(--border);
}
.yt-modal-foot h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  flex: 1;
  min-width: 200px;
}
.yt-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.yt-share {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}
.yt-share:hover { border-color: var(--accent); color: var(--accent); }
.yt-open {
  background: #ff0000;
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: filter 0.15s;
}
.yt-open:hover { filter: brightness(1.1); }

/* ===== Podcast Section (Compact Spotify Card + Speed Player) ===== */
.podcast-section {
  margin: 0 auto 10px;
  max-width: 1200px;
  padding: 0 24px 6px;
}
.podcast-section.hidden { display: none; }

.podcast-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 2px 10px;
}
.podcast-bar-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.podcast-title-icon { font-size: 1rem; }
.podcast-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.podcast-share-btn {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.podcast-share-btn:hover {
  border-color: #25D366;
  color: #25D366;
}
.podcast-open-btn {
  flex-shrink: 0;
  background: #1DB954;
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 16px;
  text-decoration: none;
  transition: filter 0.15s ease;
}
.podcast-open-btn:hover { filter: brightness(1.12); }

.podcast-card {
  width: min(100%, 760px);
  margin: 0 auto;
  background: #121212;
  border: 1px solid #303030;
  border-radius: 12px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}
.podcast-card.hidden { display: none; }

/* Spotify embed — visually compact via scale */
.podcast-embed-wrap { background: #121212; }
.podcast-embed-wrap.hidden { display: none; }
.podcast-embed-inner {
  height: 152px;
  overflow: hidden;
}
.podcast-frame {
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 11px 11px 0 0;
}

/* Speed + episode controls (same card, Spotify embed ke neeche) */
.podcast-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 10px 10px;
  background: #121212;
  color: #fff;
}
.podcast-controls.hidden { display: none; }
.podcast-control-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #b3b3b3;
}
.podcast-ep-select-row {
  grid-column: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}
.podcast-ep-select-row .podcast-control-label { flex-shrink: 0; }
.podcast-ep-select {
  flex: 1;
  min-width: 0;
  height: 30px;
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #f5f5f5;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
}
.podcast-ep-select:focus {
  border-color: #1DB954;
  outline: none;
}
.podcast-audio {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 36px;
  color-scheme: dark;
}
.podcast-speed-bar {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}
.podcast-speed-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.podcast-speed-btn {
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  color: #f5f5f5;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.podcast-speed-btn:hover { border-color: #1DB954; }
.podcast-speed-btn.active {
  background: #1DB954;
  border-color: #1DB954;
  color: #fff;
}
.podcast-now-playing {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #d7d7d7;
  line-height: 1.35;
}
.podcast-now-playing.hidden { display: none; }

@media (max-width: 760px) {
  .yt-section { padding: 18px 14px 4px; }
  .yt-header-titles h2 { font-size: 1.15rem; }
  .yt-grid { grid-template-columns: 1fr; gap: 14px; }
  .yt-modal { padding: 8px; }
  .yt-modal-foot h4 { font-size: 0.92rem; }
  .podcast-section { padding: 0 14px 4px; }
  .podcast-embed-inner,
  .podcast-frame { height: 152px; }
}

@media (max-width: 520px) {
  .podcast-controls { grid-template-columns: 1fr; }
  .podcast-ep-select-row,
  .podcast-speed-bar,
  .podcast-audio,
  .podcast-now-playing { grid-column: 1; }
  .podcast-speed-bar { justify-content: flex-start; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ---- Server-rendered article (SEO) ---- */
main.grid .seo-article {
  grid-column: 1 / -1;
  max-width: 720px;
  margin: 8px auto 24px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.seo-article-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 8px;
}
.seo-article-title {
  font-size: 1.55rem;
  line-height: 1.35;
  margin: 0 0 14px;
}
.seo-article-img {
  width: 100%;
  max-height: 420px;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  margin-bottom: 14px;
}
.seo-article-body p {
  line-height: 1.7;
  margin: 0 0 14px;
  color: var(--text);
}
.seo-article-source a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.seo-article-source a:hover { text-decoration: underline; }

/* ===== Editorial / Original Stories ===== */
.editorial-section {
  margin: 0 auto 10px;
  max-width: 1200px;
  padding: 0 24px 6px;
}
.editorial-section.hidden { display: none; }

.editorial-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 2px 10px;
}
.editorial-bar-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.editorial-title-icon { font-size: 1rem; }
.editorial-tagline {
  color: var(--muted);
  font-size: 0.8rem;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.editorial-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.editorial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.editorial-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.editorial-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.editorial-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.editorial-cat {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
}
.editorial-date {
  font-size: 0.75rem;
  color: var(--muted);
}
.editorial-title {
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0;
}
.editorial-excerpt {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.editorial-readmore {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
}

/* ===== News Retry Button ===== */
.news-retry-btn {
  margin-left: 10px;
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.news-retry-btn:hover { opacity: 0.85; }

/* ===== SEO Landing Pages (/category/*, /state/*) ===== */
.seo-landing-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}
.seo-landing-crumb > a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.seo-landing-crumb > a:hover { color: var(--accent); }
.seo-landing-h1 {
  font-size: 1.5rem;
  line-height: 1.35;
  margin: 14px 0 10px;
  color: var(--text);
}
.seo-landing-intro {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 22px;
}
.seo-landing-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* District link block (state landing page) — 24 districts ko chip-style me dikhao */
.seo-landing-subjects {
  margin: 0 0 24px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.seo-landing-subjects-h {
  font-size: 0.95rem;
  margin: 0 0 12px;
  color: var(--text);
}
.seo-landing-subjects ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seo-landing-subjects li > a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.seo-landing-subjects li > a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Breadcrumb (district page: मुख्य > झारखंड न्यूज़ > रांची) */
.seo-breadcrumb {
  margin: 0 0 6px;
  font-size: 0.82rem;
}
.seo-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.seo-breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--border);
}
.seo-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.seo-breadcrumb a:hover { color: var(--accent); }
.seo-breadcrumb [aria-current='page'] { color: var(--text); }

/* Unique editorial paragraph — Google "thin content" signal hatane ke liye */
.seo-about {
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}
.seo-about-h {
  font-size: 0.98rem;
  margin: 0 0 8px;
  color: var(--text);
}
.seo-about p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
}

/* "मुख्य विषय" chips */
.seo-topics {
  margin: 0 0 22px;
}
.seo-topics-h {
  font-size: 0.88rem;
  margin: 0 0 8px;
  color: var(--text);
  opacity: 0.85;
}
.seo-topics ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.seo-topics li {
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}

.seo-list-heading {
  font-size: 1.02rem;
  margin: 26px 0 12px;
  color: var(--text);
}
.seo-empty {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 18px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
}

/* FAQ — FAQPage JSON-LD ka visible counterpart */
.seo-faq {
  margin: 28px 0 22px;
}
.seo-faq-h {
  font-size: 1.02rem;
  margin: 0 0 12px;
  color: var(--text);
}
.seo-faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  padding: 0 14px;
}
.seo-faq-q {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 12px 0;
  list-style: none;
}
.seo-faq-q::-webkit-details-marker { display: none; }
.seo-faq-q::after { content: ' +'; opacity: 0.5; }
.seo-faq-item[open] .seo-faq-q::after { content: ' –'; }
.seo-faq-a {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
  padding: 0 0 14px;
}

/* Homepage footer ka full site index (crawlable internal links) */
.seo-sitemap {
  margin: 18px 0 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.seo-sitemap-h {
  font-size: 0.95rem;
  margin: 0 0 12px;
  color: var(--text);
}
.seo-sitemap-hubs {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seo-sitemap-hubs a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.seo-sitemap-hubs a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
/* Site-index ke andar nested blocks ko double-border na dikhe */
.seo-sitemap .seo-landing-subjects {
  background: var(--bg);
  margin: 0 0 12px;
}
.seo-landing-card {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.seo-landing-thumb {
  flex-shrink: 0;
  width: 96px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.seo-landing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.seo-landing-body { min-width: 0; }
.seo-landing-body h3 {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0 0 6px;
}
.seo-landing-body h3 > a {
  color: var(--text);
  text-decoration: none;
}
.seo-landing-body h3 > a:hover { color: var(--accent); }
.seo-landing-body p {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 8px;
}
.seo-landing-src {
  font-size: 0.75rem;
  color: var(--muted);
}
@media (max-width: 480px) {
  .seo-landing-thumb { width: 84px; height: 66px; }
}

/* Homepage SSR headlines — sirf <noscript>/no-JS users ke liye visible */
.seo-home-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding: 12px;
}
.seo-home-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.seo-home-title {
  font-size: 1rem;
  line-height: 1.45;
  margin: 0 0 4px;
}
.seo-home-title > a {
  color: var(--text);
  text-decoration: none;
}
.seo-home-title > a:hover { color: var(--accent); }
.seo-home-src {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}
.seo-home-item time {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 4px;
}

/* ===== Homepage Adsterra skyscraper rails (160x600) ===== */
.ad-rail {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  z-index: 50;
  display: none;
}
#railL { left: 10px; }
#railR { right: 10px; }
body.has-rails .ad-rail { display: block; }
@media (min-width: 1500px) {
  body.has-rails main.grid { padding-left: 200px; padding-right: 200px; }
}
@media (max-width: 1499px) {
  body.has-rails .ad-rail { display: none !important; }
}

/* ===== Article Reader modal ke sides mein skyscraper rails ===== */
.modal-rail {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 600px;
  z-index: 60;
  display: none;
}
#modalRailL { left: 10px; }
#modalRailR { right: 10px; }
@media (min-width: 1700px) {
  .article-modal .modal-rail { display: block; }
}
@media (max-width: 1699px) {
  .modal-rail { display: none !important; }
}

/* ===== Reader modal: Key Points (added value) ===== */
.reader-keypoints {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 14px 0 18px;
}
.reader-keypoints-title {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.reader-keypoints-list {
  margin: 0;
  padding-left: 18px;
}
.reader-keypoints-list li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* ===== Puzzle Game (Shabd Paheli) ===== */
.puzzle-lang-toggle {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card, #222);
  color: var(--text, #fff);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.puzzle-lang-toggle:hover {
  background: var(--border);
}
.puzzle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}
.puzzle-box {
  background: var(--surface, var(--card));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  width: 100%;
  text-align: center;
}
.puzzle-hint-label {
  font-size: 0.85rem;
  color: var(--muted, #888);
  margin-bottom: 16px;
  line-height: 1.4;
}
.puzzle-slots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.puzzle-slot {
  width: 42px;
  height: 48px;
  border: 2px dashed var(--border);
  border-radius: 8px;
  background: var(--bg, #111);
  color: var(--text, #fff);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.puzzle-slot.filled {
  border-style: solid;
  border-color: var(--accent, #3b82f6);
  background: rgba(59, 130, 246, 0.15);
}
.puzzle-tiles {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.puzzle-tile {
  width: 42px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card, #222);
  color: var(--text, #fff);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.puzzle-tile:hover:not(:disabled) {
  background: var(--accent, #3b82f6);
  color: #fff;
  transform: translateY(-2px);
}
.puzzle-tile:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.puzzle-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.puzzle-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card, #222);
  color: var(--text, #fff);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.puzzle-btn:hover {
  background: var(--border);
}
.puzzle-msg {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 24px;
}
.puzzle-msg.success { color: #10b981; }
.puzzle-msg.error { color: #ef4444; }

/* ===== Sarkari Result / Sarkari Naukri Style Tables ===== */
.sarkari-article {
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}
.sarkari-header-box {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.sarkari-header-box h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: #f8fafc;
}
.sarkari-short-info {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
}
.sarkari-table {
  width: 100%;
  border-collapse: collapse;
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  margin-top: 10px;
}
.sarkari-table th, .sarkari-table td {
  padding: 12px 16px;
  border: 1px solid #334155;
  font-size: 0.9rem;
  text-align: left;
}
.sarkari-table-head {
  background: #2563eb;
  color: #ffffff;
  text-align: center !important;
  font-size: 1rem;
  padding: 14px;
}
.sarkari-table tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.5);
}
.sarkari-links-box {
  background: #0f172a;
  border: 2px solid #3b82f6;
  border-radius: 14px;
  padding: 20px;
  margin-top: 24px;
  text-align: center;
}
.sarkari-links-box h3 {
  margin: 0 0 16px;
  color: #38bdf8;
  font-size: 1.1rem;
}
.sarkari-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.sarkari-link-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}
.sarkari-link-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.sarkari-link-btn.apply { background: #10b981; color: #fff; }
.sarkari-link-btn.pdf { background: #ef4444; color: #fff; }
.sarkari-link-btn.web { background: #3b82f6; color: #fff; }

/* ===== Chhota Bheem Platformer Game ===== */
.bheem-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.bheem-canvas-box {
  width: 100%;
  aspect-ratio: 16/9;
  background: #5c94fc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.8);
  border: 3px solid #8B4513;
}
.bheem-canvas-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.bheem-touch-bar {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 4px 8px;
}
.bheem-touch-group {
  display: flex;
  gap: 8px;
}
.bheem-touch-bar .btn-touch {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.bheem-touch-bar .btn-touch:active {
  background: rgba(255, 215, 0, 0.6);
  transform: scale(0.92);
}

/* ==================================================================
   ===== Jobs + Schools/Reviews (indiasignal.online jobs portal) =====
   Homepage reuse karta hai .card / .grid classes; yahan sirf naye
   elements aur SSR pages (.jobs-page / .schools-page) style kiye hain.
   ================================================================== */

/* ---- Job cards (homepage grid) ---- */
.job-card .card-img { display: block; overflow: hidden; }
.job-card .card-img-el { width: 100%; height: 100%; object-fit: cover; display: block; }
.job-card .job-card-noimg {
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; width: 100%; height: 100%; color: var(--muted);
  background: linear-gradient(135deg, rgba(214,40,57,0.10), rgba(224,122,0,0.10));
}
.job-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.job-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(214,40,57,0.10); color: var(--accent);
  border: 1px solid rgba(214,40,57,0.20); white-space: nowrap;
}
.job-tag-type { background: rgba(224,122,0,0.12); color: var(--accent-2); border-color: rgba(224,122,0,0.25); }
.job-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.bookmark-btn {
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 9px; cursor: pointer; font-size: 1rem; line-height: 1; color: var(--muted);
}
.bookmark-btn.saved { color: var(--accent); border-color: var(--accent); }
.bookmark-btn:hover { border-color: var(--accent); }

/* ---- Jobs SSR pages (jobs.js pageShell) ---- */
.jobs-page { background: var(--bg); color: var(--text); }
.jobs-nav {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.jobs-nav .brand { font-weight: 800; color: var(--accent); text-decoration: none; font-size: 1.1rem; margin-right: auto; }
.jobs-nav a:not(.brand) { color: var(--text); text-decoration: none; font-size: 0.9rem; }
.jobs-nav a:not(.brand):hover { color: var(--accent); }
.jobs-main, .schools-main { max-width: 1080px; margin: 0 auto; padding: 22px 16px 60px; }
.jobs-intro { color: var(--muted); margin-bottom: 18px; }
.jobs-grid, .schools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.jobs-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.job-breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.job-breadcrumb a { color: var(--muted); text-decoration: none; }
.job-detail { max-width: 800px; }
.job-detail h1 { font-size: 1.6rem; line-height: 1.3; margin-bottom: 12px; }
.job-detail-summary { color: var(--text); line-height: 1.65; margin: 16px 0; }
.job-detail-source { color: var(--muted); font-size: 0.9rem; margin: 10px 0; }
.job-detail-note { background: rgba(224,122,0,0.10); border: 1px solid rgba(224,122,0,0.25); border-radius: 10px; padding: 12px 14px; font-size: 0.88rem; color: var(--muted); margin: 16px 0; }
.job-apply-btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; margin-top: 8px;
}
.job-apply-btn:hover { filter: brightness(1.08); }
.job-card-body { padding: 12px 14px; }
.job-card-media img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px 10px 0 0; }
.job-card-title { font-size: 1rem; line-height: 1.4; margin: 6px 0; }
.job-card-title a { color: var(--text); text-decoration: none; }
.job-card-title a:hover { color: var(--accent); }
.job-card-summary { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.job-card-meta { color: var(--muted); font-size: 0.78rem; margin-top: 8px; }

/* ---- Schools / reviews SSR ---- */
.schools-page { background: var(--bg); color: var(--text); }
.school-card, .review-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.school-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.school-card h3 a { color: var(--text); text-decoration: none; }
.school-card h3 a:hover { color: var(--accent); }
.school-meta { color: var(--muted); font-size: 0.85rem; }
.school-rating, .review-stars { color: var(--accent-2); font-weight: 700; }
.school-detail { max-width: 800px; }
.reviews-list { display: grid; gap: 12px; margin-top: 16px; }
.review-head { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.review-form-wrap { margin-top: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.review-form-wrap input, .review-form-wrap select, .review-form-wrap textarea {
  width: 100%; padding: 10px; margin: 6px 0; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); color: var(--text);
}
.review-msg { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }

@media (max-width: 600px) {
  .jobs-grid, .schools-grid { grid-template-columns: 1fr; }
}
