/* =========================================================
   1. RESET & VARIABLES SETUP
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-red: #e50914;
  --dark-red: #b80000;
  --accent-gold: #f5a623;
  --dark-bg: #0f172a;
  --card-bg: #111827;
  --body-bg: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nirmala UI", "Mangal", "Noto Sans Devanagari", Arial, sans-serif;
  background: var(--body-bg);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button, input {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: auto;
  padding: 0 16px;
}

/* =========================================================
   TOPBAR & BREAKING NEWS (BASE & DESKTOP)
========================================================= */
.topbar {
  background: var(--dark-bg);
  color: #cbd5e1;
  border-bottom: 1px solid #1e293b;
  font-size: 12px;
}

.topbar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-links a:hover {
  color: var(--accent-gold);
}

.social-mini {
  display: flex;
  gap: 6px;
}

.social-mini span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1e293b;
  color: white;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  transition: 0.2s;
}

.social-mini span:hover {
  background: var(--primary-red);
}

/* Base Breaking News Ticker (Desktop) */
.breaking {
  margin-top: 10px;
  height: 38px;
  display: flex;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  background: white;
  position: relative;
}

.breaking-title {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: white;
  width: 110px;
  min-width: 110px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.breaking-title::before {
  content: "●";
  margin-right: 6px;
  animation: blink 1s infinite;
  color: var(--accent-gold);
}

@keyframes blink {
  50% { opacity: 0.3; }
}

.breaking-content-wrapper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.breaking-content {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.breaking-content span {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  font-size: 13.5px;
  font-weight: 600;
}

.breaking-content span::after {
  content: "•";
  color: var(--primary-red);
  margin-left: 18px;
}


/* =========================================================
   MOBILE RESPONSIVE FIXES (max-width: 768px)
========================================================= */
@media (max-width: 768px) {
  /* 1. TOPBAR CLEANUP: Text links completely hidden */
  .top-links a {
    display: none !important;
  }

  .topbar-date {
    display: block;
    font-size: 11px;
    color: #94a3b8;
  }

  .topbar-inner {
    min-height: 28px;
    padding: 3px 12px;
    justify-content: space-between;
  }

  .social-mini {
    margin-left: auto;
  }

  /* 2. BREAKING NEWS STACKED LAYOUT (Text Upar, News Niche Full Width) */
  .breaking {
    flex-direction: column;
    height: auto;
    border-radius: 8px;
    margin-top: 8px;
  }

  .breaking-title {
    width: 100%;
    min-width: 100%;
    height: 24px;
    justify-content: flex-start;
    padding: 0 12px;
    font-size: 11px;
    letter-spacing: 1px;
  }

  .breaking-content-wrapper {
    width: 100%;
    height: 32px;
    background: #ffffff;
  }

  .breaking-content span {
    font-size: 12.5px;
    padding: 0 14px;
  }

  .breaking-content span::after {
    margin-left: 14px;
  }
}

/* =========================================================
   3. BRAND LOGO (समाचार TODAY)
========================================================= */
.logo-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  user-select: none;
}

.logo-brand .top-box {
  background: linear-gradient(180deg, #e60000 0%, #b80000 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 24px;
  padding: 2px 12px;
  border-radius: 6px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  line-height: 1.1;
}

.logo-brand .bottom-box {
  background: var(--accent-gold);
  color: #0b0b0b;
  font-family: "Arial Black", "Nirmala UI", "Mangal", Arial, sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 1px 16px;
  border-radius: 4px;
  margin-top: -3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 2;
  line-height: 1.2;
}

/* =========================================================
   4. UNIFIED SITE HEADER
========================================================= */
.site-header {
  background: #ffffff;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 90;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-banner {
  flex: 1;
  max-width: 620px;
  height: 68px;
  background: linear-gradient(90deg, #0b132b, #1c2541, #0b132b);
  border-radius: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(229, 9, 20, 0.35), transparent 30%),
              radial-gradient(circle at 80% 50%, rgba(245, 166, 35, 0.25), transparent 30%);
}

.banner-content {
  position: relative;
  z-index: 2;
}

.banner-content h2 {
  font-size: 20px;
  font-weight: 800;
}

.banner-content p {
  font-size: 12px;
  letter-spacing: 1px;
}

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

.live-tv-pill {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: white;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 8px rgba(229, 9, 20, 0.35);
  white-space: nowrap;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: pulseAnim 1.2s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.8); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.7; }
}

.search-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-light);
  background: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 36px;
  height: 36px;
  padding: 8px 7px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle-btn .bar {
  width: 100%;
  height: 2.2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* =========================================================
   5. NAVIGATION BAR
========================================================= */
.universal-nav {
  background: var(--dark-bg);
  border-bottom: 3px solid var(--primary-red);
  position: relative;
  z-index: 85;
}

.nav-drawer-header {
  display: none;
}

.universal-nav .nav-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.universal-nav .nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-item {
  color: #f1f5f9;
  padding: 10px 14px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s;
}

.nav-item:hover,
.nav-item.active {
  background: var(--primary-red);
  color: #fff;
}

.nav-item.highlight-item {
  color: var(--accent-gold);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}




/* =========================================================
   BREAKING NEWS (DESKTOP & BASE)
========================================================= */
.breaking {
  margin-top: 10px;
  height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.breaking-title {
  background: linear-gradient(135deg, var(--primary-red, #d90429), var(--dark-red, #9b0000));
  color: #ffffff;
  width: 120px;
  min-width: 120px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  z-index: 2;
}

.breaking-title::before {
  content: "●";
  margin-right: 6px;
  animation: blink 1s infinite;
  color: var(--accent-gold, #facc15);
}

@keyframes blink {
  50% { opacity: 0.3; }
}

.breaking-content-wrapper {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  display: flex;
  align-items: center;
}

.breaking-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  height: 100%;
}

.breaking-content span {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: #111111 !important;
  white-space: nowrap;
}

.breaking-content span a {
  color: inherit;
  text-decoration: none;
}

.breaking-content span a:hover {
  text-decoration: underline;
}

.breaking-content span::after {
  content: "•";
  color: var(--primary-red, #d90429);
  margin-left: 20px;
  font-weight: 900;
}


/* =========================================================
   MOBILE RESPONSIVE: 2-ROW STACKED LAYOUT (max-width: 768px)
========================================================= */
@media (max-width: 768px) {
  .breaking {
    flex-direction: column !important;
    height: auto !important;
    min-height: 64px !important;
    align-items: stretch !important;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid #cbd5e1;
    overflow: hidden !important;
  }

  .breaking-title {
    width: 100% !important;
    min-width: 100% !important;
    height: 28px !important;
    justify-content: flex-start !important;
    padding: 0 12px !important;
    font-size: 11.5px !important;
    letter-spacing: 0.8px;
    box-sizing: border-box;
  }

  .breaking-content-wrapper {
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box;
  }

  .breaking-content {
    display: inline-flex !important;
    align-items: center !important;
    height: 36px !important;
    line-height: 36px !important;
    white-space: nowrap !important;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
  }

  .breaking-content span {
    font-size: 13px !important;
    padding: 0 14px !important;
    color: #111111 !important;
    line-height: 36px !important;
    white-space: nowrap !important;
  }

  .breaking-content span::after {
    margin-left: 14px !important;
  }
}

/* =========================================================
   7. 3D COVERFLOW SECTION
========================================================= */
.coverflow-section {
  margin-top: 12px;
  padding: 20px 0 12px;
  background: linear-gradient(180deg, #edf2f7 0%, #e2e8f0 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  user-select: none;
  border: 1px solid #cbd5e1;
}

.coverflow-viewport {
  position: relative;
  width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
  cursor: grab;
}

.coverflow-viewport:active {
  cursor: grabbing;
}

.cf-card {
  position: absolute;
  width: 245px;
  height: 330px;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  will-change: transform, opacity;
}

.cf-card.is-center {
  border: 2.5px solid var(--accent-gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.cf-card-img {
  width: 100%;
  height: 170px;
  overflow: hidden;
  pointer-events: none;
}

.cf-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-card-body {
  padding: 12px;
  pointer-events: none;
}

.cf-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cf-tag {
  background: var(--accent-gold);
  color: #111;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.cf-time {
  font-size: 11px;
  color: #94a3b8;
}

.cf-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #f1f5f9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cf-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: #ffffff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #111;
  transition: 0.2s;
}

.cf-nav-btn:hover {
  background: var(--primary-red);
  color: #fff;
}

.cf-nav-btn.prev { left: 10px; }
.cf-nav-btn.next { right: 10px; }

.cf-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
}

.cf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: 0.3s;
}

.cf-dot.active {
  width: 20px;
  border-radius: 8px;
  background: var(--primary-red);
}

/* =========================================================
   8. HERO SECTION
========================================================= */
.hero-section {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 0.65fr;
  gap: 12px;
}

.main-story {
  height: 350px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #222;
}

.main-story img {
  height: 100%;
}

.main-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent 65%);
}

.story-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 16px;
  color: white;
}

.category-label {
  display: inline-block;
  background: var(--primary-red);
  color: white;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
  border-radius: 3px;
}

.story-overlay h1 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 5px;
}

.story-overlay p {
  font-size: 13px;
  color: #cbd5e1;
}

.side-stories {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.side-story {
  height: 110px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 42% 58%;
  overflow: hidden;
  background: white;
}

.side-story img {
  height: 100%;
}

.side-story-content {
  padding: 8px;
}

.side-story-content h3 {
  font-size: 12.5px;
  line-height: 1.35;
}

.small-label {
  display: inline-block;
  background: var(--primary-red);
  color: white;
  font-size: 9.5px;
  padding: 1px 5px;
  margin-bottom: 3px;
  border-radius: 3px;
}

.live-card {
  background: var(--dark-bg);
  color: white;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.live-heading {
  background: linear-gradient(90deg, #7f1d1d, var(--primary-red), #7f1d1d);
  padding: 7px;
  text-align: center;
  font-weight: 800;
  font-size: 12.5px;
}

.live-image {
  height: 180px;
  position: relative;
}

.live-image img {
  height: 100%;
}

.play {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
}

.live-info {
  padding: 10px;
}

.live-info h2 {
  font-size: 16px;
  font-weight: 800;
}

.live-info p {
  font-size: 11px;
  color: #cbd5e1;
}

.watch-btn {
  width: 100%;
  border: 0;
  background: var(--primary-red);
  color: white;
  padding: 7px;
  margin-top: 6px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================================
   9. REELS SECTION WITH INTEGRATED NAVIGATION ARROWS
========================================================= */
.reels-section {
  margin-top: 20px;
  background: #0b0f19;
  padding: 18px 14px;
  border-radius: 12px;
  color: white;
  position: relative;
}

.reels-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.reels-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 18px;
  font-weight: 800;
}

.reels-title span {
  color: var(--accent-gold);
}

.reels-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.reels-scroll-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
}

.reels-scroll-container::-webkit-scrollbar {
  display: none;
}

.reel-card {
  flex: 0 0 160px;
  height: 270px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.reel-card:hover {
  transform: translateY(-3px);
}

.reel-card img {
  height: 100%;
}

.reel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 60%);
}

.reel-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(229, 9, 20, 0.9);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.reel-info {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;
}

.reel-info h4 {
  font-size: 12px;
  line-height: 1.35;
  color: #fff;
  font-weight: 600;
}

.reel-views {
  font-size: 10px;
  color: #cbd5e1;
  margin-top: 2px;
  display: block;
}

/* Reels Control Buttons */
.reel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  color: #111;
  font-size: 14px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: 0.2s;
}

.reel-nav-btn:hover {
  background: var(--primary-red);
  color: #fff;
}

.reel-nav-btn.prev { left: -8px; }
.reel-nav-btn.next { right: -8px; }

/* =========================================================
   10. THREE COLUMN MAIN CONTENT
========================================================= */
.section-title {
  font-size: 19px;
  font-weight: 800;
  border-bottom: 2px solid var(--border-light);
  position: relative;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 70px;
  height: 3px;
  background: var(--primary-red);
}

.content-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 0.9fr 1.4fr 0.9fr;
  gap: 16px;
}

.latest-list {
  display: flex;
  flex-direction: column;
}

.latest-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
}

.latest-item img {
  height: 60px;
  border-radius: 4px;
}

.latest-item h3 {
  font-size: 12.5px;
  line-height: 1.35;
}

.meta {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.featured-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.featured-card img {
  height: 190px;
}

.featured-card-content {
  padding: 10px;
}

.featured-card h2 {
  font-size: 18px;
  line-height: 1.35;
}

.featured-card p {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 5px;
}

.popular-list {
  counter-reset: news;
}

.popular-item {
  counter-increment: news;
  display: grid;
  grid-template-columns: 28px 1fr;
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
  gap: 6px;
}

.popular-item::before {
  content: counter(news);
  font-size: 20px;
  font-weight: 900;
  color: var(--primary-red);
}

.popular-item h3 {
  font-size: 12.5px;
}

.social-box {
  margin-top: 16px;
}

.social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}

.social-icon:hover {
  background: var(--primary-red);
}

/* =========================================================
   11. ADVERTISEMENT BANNER
========================================================= */
.ad-banner {
  margin: 20px 0;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px;
  border-radius: 8px;
}

.ad-banner h2 {
  font-size: 20px;
}

.ad-banner p {
  font-size: 12px;
  color: #94a3b8;
}

/* =========================================================
   12. VIDEO & PHOTO GALLERY
========================================================= */
.video-gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 16px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.video-card {
  position: relative;
  background: white;
  padding-bottom: 6px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.video-card img {
  height: 115px;
}

.video-card .play {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.video-card h3 {
  font-size: 12px;
  margin-top: 5px;
  padding: 0 6px;
  line-height: 1.35;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.photo-grid img {
  height: 85px;
  border-radius: 4px;
}

.photo-grid .big-photo {
  grid-column: span 2;
  height: 140px;
}

/* =========================================================
   13. CATEGORY SECTION
========================================================= */
.category-section {
  margin-top: 20px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.category-card {
  border: 1px solid var(--border-light);
  background: white;
  border-radius: 6px;
  overflow: hidden;
}

.category-card img {
  height: 130px;
}

.category-card-content {
  padding: 8px 10px;
}

.category-card h3 {
  font-size: 13px;
  line-height: 1.35;
}

/* =========================================================
   14. FOOTER (FIXED MARGINS & PADDING)
========================================================= */
footer {
  margin-top: 30px;
  background: #0b0f19;
  color: white;
}

.footer-main {
  padding: 30px 16px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 25px;
}

.footer-logo {
  margin-bottom: 6px;
}

.footer-about {
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.7;
  margin-top: 8px;
}

.footer-title {
  color: white;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 6px;
  margin-bottom: 8px;
  position: relative;
  font-size: 15px;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 2px;
  background: var(--primary-red);
}

.footer-links {
  padding-left: 0;
}

.footer-links li {
  margin: 5px 0;
  color: #94a3b8;
  font-size: 12.5px;
}

.footer-links li a:hover {
  color: white;
}

.copyright {
  border-top: 1px solid #1e293b;
  padding: 14px 16px;
  font-size: 12px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
}

/* =========================================================
   15. MOBILE & TABLET MEDIA QUERIES (FULL RESPONSIVE)
========================================================= */
@media (max-width: 1024px) {
  .header-banner {
    display: none;
  }
  .hero-section {
    grid-template-columns: 1.4fr 1fr;
  }
  .live-card {
    grid-column: span 2;
  }
  .content-grid {
    grid-template-columns: 1fr 1.3fr;
  }
  .popular-column {
    grid-column: span 2;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Fix Topbar Overflow */
  .topbar-date {
    display: none;
  }
  .topbar-inner {
    justify-content: center;
    padding: 2px 10px;
  }
  .top-links {
    gap: 10px;
    font-size: 11.5px;
  }

  /* Header Clean & Centered */
  .site-header {
    padding: 6px 0;
  }
  .site-header-inner {
    gap: 8px;
  }

  .menu-toggle-btn {
    display: flex;
  }

  .logo-brand .top-box {
    font-size: 20px;
    padding: 2px 10px;
  }
  .logo-brand .bottom-box {
    font-size: 9.5px;
    padding: 1px 12px;
  }

  .live-tv-pill {
    padding: 5px 9px;
    font-size: 11px;
  }
  .search-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  /* Responsive Slide Drawer */
  .universal-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(280px, 80vw);
    height: 100vh;
    background: #0f172a;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
    border-bottom: none;
  }

  .universal-nav.open {
    transform: translateX(0);
  }

  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #1e293b;
    background: #0b0f19;
    color: white;
  }

  .drawer-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
  }

  .universal-nav .nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    overflow-y: auto;
    height: calc(100vh - 60px);
  }

  .nav-item {
    padding: 12px 16px;
    border-bottom: 1px solid #1e293b;
  }

  /* Coverflow Mobile Scale */
  .coverflow-viewport {
    height: 330px;
  }
  .cf-card {
    width: 215px;
    height: 305px;
  }
  .cf-card-img {
    height: 145px;
  }

  /* Reels adjustment */
  .reel-nav-btn {
    display: flex;
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .reel-nav-btn.prev { left: -4px; }
  .reel-nav-btn.next { right: -4px; }
  .reel-card {
    flex: 0 0 145px;
    height: 245px;
  }

  /* Stacking Sections */
  .hero-section {
    display: flex;
    flex-direction: column;
  }
  .main-story {
    height: 270px;
  }
  .content-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .video-gallery {
    grid-template-columns: 1fr;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Fix Footer Chipakna (Proper Spacing & Margin) */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 16px;
  }
  .footer-about {
    margin-top: 6px;
  }
  .copyright {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  .video-card img {
    height: 165px;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
}



/* =========================================================
   STATE DROPDOWN MENU FIX
========================================================= */
.nav-item.has-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark-bg, #0f172a);
  min-width: 170px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  border-top: 2px solid var(--primary-red, #e50914);
  border-radius: 0 0 6px 6px;
  list-style: none;
  padding: 6px 0;
  z-index: 9999;
}

.dropdown-menu li a {
  display: block;
  padding: 9px 16px;
  color: #f1f5f9;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: var(--primary-red, #e50914);
  color: #ffffff;
}

.nav-item.has-dropdown:hover .dropdown-menu {
  display: block;
}

@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    padding-left: 14px;
    background: #090d16;
  }
}
/* =========================================================
   16. REUSABLE ADS
========================================================= */
.site-ad {
  width: 100%;
  margin: 12px auto;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
}
.site-ad-label {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 8px;
  letter-spacing: 1px;
  color: #94a3b8;
  background: rgba(255,255,255,.9);
  padding: 1px 5px;
  border-radius: 3px;
  pointer-events: none;
}
.site-ad-link,
.site-ad-placeholder {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.site-ad img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.site-ad-header {
  max-width: 970px;
  min-height: 90px;
}
.site-ad-header img {
  max-height: 110px;
  object-fit: contain;
}
.site-ad-sidebar {
  max-width: 300px;
  min-height: 250px;
}
.site-ad-long {
  max-width: 300px;
  min-height: 600px;
}
.site-ad-long img {
  min-height: 600px;
  object-fit: cover;
}
.site-ad-wide {
  max-width: 970px;
  min-height: 250px;
}
.site-ad-placeholder {
  min-height: inherit;
  flex-direction: column;
  gap: 5px;
  color: #64748b;
  background: repeating-linear-gradient(45deg,#f8fafc,#f8fafc 10px,#f1f5f9 10px,#f1f5f9 20px);
  text-align: center;
  padding: 20px;
}
.site-ad-placeholder span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}
.site-ad-placeholder small {
  font-size: 10px;
  word-break: break-all;
}

/* =========================================================
   17. STATE DROPDOWN - DESKTOP + MOBILE
========================================================= */
.nav-item.has-dropdown {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}
.nav-dropdown-toggle {
  border: 0;
  margin: 0;
  padding: 10px 14px;
  background: transparent;
  color: #f1f5f9;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.nav-item.has-dropdown:hover .nav-dropdown-toggle,
.nav-item.has-dropdown.active .nav-dropdown-toggle,
.nav-dropdown-toggle:hover {
  background: var(--primary-red);
  color: #fff;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 205px;
  max-height: 420px;
  overflow-y: auto;
  margin: 0;
  padding: 5px 0;
  list-style: none;
  background: #0b132b;
  border-top: 3px solid var(--primary-red);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  z-index: 10050;
}
.dropdown-content li { width: 100%; }
.dropdown-content li a {
  display: block;
  padding: 9px 15px;
  color: #f1f5f9 !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dropdown-content li a:hover {
  background: var(--primary-red);
  color: #fff !important;
}
.nav-item.has-dropdown:hover .dropdown-content,
.nav-item.has-dropdown.dropdown-open .dropdown-content {
  display: block;
}

/* =========================================================
   18. COMPACT PAGINATION
========================================================= */
.site-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 30px 0 6px;
}
.site-pagination a,
.site-pagination .page-ellipsis {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #dbe3ec;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: .18s ease;
}
.site-pagination a:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  transform: translateY(-1px);
}
.site-pagination .page-number.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #fff;
  box-shadow: 0 4px 10px rgba(229,9,20,.2);
}
.site-pagination .page-control {
  padding: 0 12px;
}
.site-pagination .page-ellipsis {
  border-color: transparent;
  background: transparent;
  min-width: 24px;
  padding: 0 3px;
}

/* =========================================================
   19. PAGE RESPONSIVE HARDENING
========================================================= */
@media (max-width: 768px) {
  .site-ad-header {
    margin: 8px 10px;
    width: calc(100% - 20px);
    min-height: 60px;
  }
  .site-ad-header img { max-height: 90px; }

  .nav-item.has-dropdown {
    display: block;
  }
  .nav-dropdown-toggle {
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e293b;
  }
  .dropdown-content {
    position: static;
    display: none;
    width: 100%;
    max-height: none;
    border-top: 0;
    border-left: 3px solid var(--primary-red);
    box-shadow: none;
    padding: 0;
    background: #080e1b;
  }
  .nav-item.has-dropdown.dropdown-open .dropdown-content { display: block; }
  .dropdown-content li a {
    padding: 10px 25px;
    font-size: 13px;
  }

  .site-pagination {
    gap: 5px;
    margin-top: 24px;
  }
  .site-pagination a,
  .site-pagination .page-ellipsis {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }
  .site-pagination .page-control {
    padding: 0 9px;
  }

  .article-layout-wrapper {
    width: 100%;
    padding: 0 10px;
    margin: 12px auto;
    gap: 14px;
  }
  .category-feed-box {
    padding: 16px;
  }
  .cat-media-item {
    gap: 12px;
  }
  .cat-thumb-wrap {
    width: 100%;
    height: 190px;
  }
  .cat-post-title {
    font-size: 16px;
  }
  .cat-post-desc {
    font-size: 13px;
  }

  .site-ad-long {
    max-width: 100%;
    min-height: 280px;
  }
  .site-ad-long img {
    min-height: 280px;
    max-height: 560px;
  }
}

@media (max-width: 420px) {
  .site-pagination .page-control span { display: none; }
  .site-pagination .page-control { min-width: 34px; padding: 0; }
  .site-ad-header { min-height: 48px; }
}

/* Ad image fitting: header/wide banners fill their slots; tall ads keep full artwork. */
.site-ad-header .site-ad-link,
.site-ad-wide .site-ad-link { height: 90px; }
.site-ad-header img,
.site-ad-wide img { width: 100%; height: 100%; object-fit: cover; }
.site-ad-long .site-ad-link { min-height: 600px; }
.site-ad-long img { width: 100%; height: 600px; object-fit: contain; background: #fff; }
@media (max-width: 768px) {
  .site-ad-header .site-ad-link,
  .site-ad-wide .site-ad-link { height: auto; min-height: 70px; }
  .site-ad-header img,
  .site-ad-wide img { height: auto; max-height: 110px; object-fit: contain; }
  .site-ad-long .site-ad-link { min-height: 320px; }
  .site-ad-long img { height: auto; min-height: 320px; max-height: 600px; object-fit: contain; }
}

/* Search page responsive helpers */
.search-page-wrap { max-width:1240px; margin:24px auto; padding:0 16px; }
.search-page-card { background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:24px; }
.search-page-form { display:flex; gap:10px; margin-bottom:25px; }
.search-page-form input { flex:1; min-width:0; padding:12px; border:1px solid #cbd5e1; border-radius:7px; }
.search-page-form button { padding:12px 20px; background:#e50914; color:#fff; border:0; border-radius:7px; cursor:pointer; font-weight:700; }
.search-result-item { display:flex; gap:16px; text-decoration:none; color:inherit; border-bottom:1px solid #f1f5f9; padding-bottom:18px; }
.search-result-item img { width:180px; height:110px; object-fit:cover; border-radius:8px; flex:0 0 180px; }
.search-result-item h2 { font-size:19px; margin:6px 0; line-height:1.4; }
.search-result-item p { margin:0; color:#64748b; font-size:14px; line-height:1.6; }
@media (max-width:600px) {
  .search-page-wrap { margin:12px auto; padding:0 10px; }
  .search-page-card { padding:15px; }
  .search-page-form { flex-direction:column; }
  .search-page-form button { width:100%; }
  .search-result-item { gap:11px; }
  .search-result-item img { width:110px; height:80px; flex-basis:110px; }
  .search-result-item h2 { font-size:15px; margin:2px 0 4px; }
  .search-result-item p { font-size:12px; -webkit-line-clamp:2; display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }
}

/* =========================================================
   CATEGORY SIDEBAR WEATHER + LONG AD
========================================================= */
.category-weather-widget {
  display: block;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #2089bd 0%, #3999ca 52%, #439bc6 100%);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.category-weather-widget:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}
.category-weather-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}
.category-weather-top span {
  font-size: 11px;
  text-align: right;
  opacity: .96;
}
.category-weather-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.category-weather-temp {
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
}
.category-weather-stats {
  font-size: 11px;
  line-height: 1.9;
  text-align: right;
}
.category-weather-more {
  margin-top: 12px;
  text-align: center;
  color: #fff58a;
  font-size: 11.5px;
  font-weight: 800;
}

@media (max-width: 992px) {
  .category-weather-widget { max-width: 100%; }
}

@media (max-width: 640px) {
  .category-weather-top { font-size: 14px; }
  .category-weather-temp { font-size: 34px; }
  .category-weather-widget { padding: 14px; }
}

/* When the dedicated 300x600 artwork is not uploaded, keep the fallback square ad compact. */
.site-ad-long.site-ad-fallback-square {
  min-height: 250px;
}
.site-ad-long.site-ad-fallback-square .site-ad-link {
  min-height: 250px;
}
.site-ad-long.site-ad-fallback-square img {
  width: 300px;
  height: 250px;
  min-height: 250px;
  max-width: 100%;
  object-fit: contain;
}

/* =========================================================
   FINAL HEADER / NAV / DROPDOWN POLISH
========================================================= */
.site-header {
  padding: 12px 0;
}

.site-header-inner {
  gap: 22px;
}

.header-banner {
  max-width: 720px;
  height: 76px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .08);
  overflow: hidden;
}

.header-banner .site-ad-header-inline {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.header-banner .site-ad-header-inline .site-ad-link {
  width: 100%;
  height: 100%;
}

.header-banner .site-ad-header-inline img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.header-banner .site-ad-label {
  top: 2px;
  font-size: 7px;
  opacity: .8;
}

.universal-nav .nav-inner {
  overflow: visible;
  gap: 4px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.nav-item {
  margin: 0 2px;
  border-radius: 5px;
}

.nav-item.has-dropdown {
  z-index: 10060;
}

.dropdown-content {
  z-index: 10060;
  border-radius: 0 0 8px 8px;
}

.nav-item.has-dropdown:hover,
.nav-item.has-dropdown.dropdown-open {
  z-index: 10061;
}

/* More breathing room between the major page blocks. */
.site-header + .universal-nav {
  margin-top: 2px;
}

.breaking {
  margin-top: 14px;
  margin-bottom: 18px;
}

.hero-section,
.reels-section,
.content-grid,
.video-gallery,
.category-section {
  margin-bottom: 26px;
}

/* Keep dropdown above every page section on desktop. */
@media (min-width: 769px) {
  .universal-nav,
  .universal-nav .nav-inner,
  .nav-item.has-dropdown {
    overflow: visible;
  }

  .dropdown-content {
    top: calc(100% + 2px);
  }
}

@media (max-width: 1024px) {
  .header-banner { display: flex; }

  .site-header-inner {
    gap: 14px;
  }

  .header-banner {
    max-width: 560px;
    height: 68px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 8px 0;
  }

  .site-header-inner {
    gap: 8px;
  }

  .header-banner {
    height: 58px;
    min-width: 0;
    flex: 1;
  }

  .header-banner .site-ad-header-inline img {
    object-fit: cover;
  }

  .universal-nav .nav-inner {
    overflow-x: hidden;
    overflow-y: auto;
    gap: 0;
    padding: 8px 0;
  }

  .nav-item {
    margin: 0;
    border-radius: 0;
  }

  .breaking {
    margin-bottom: 14px;
  }
}

@media (max-width: 480px) {
  .header-banner {
    height: 52px;
  }

  .live-tv-pill {
    display: none;
  }

  .search-icon-btn {
    width: 32px;
    height: 32px;
  }
}

/* =========================================================
   FINAL FRONTEND POLISH / PERFORMANCE / SPACING
========================================================= */
html { overflow-x: hidden; }
body { min-width: 320px; }

.container { max-width: 1240px; padding-left: 16px; padding-right: 16px; }

/* Keep the main content away from the browser edges. */
.coverflow-section,
.hero-section,
.reels-section,
.content-grid,
.ad-banner,
.video-gallery,
.category-section {
  width: calc(100% - 32px);
  max-width: 1240px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.coverflow-section { margin-top: 18px !important; }
.hero-section { margin-top: 16px !important; gap: 18px !important; }
.reels-section,
.content-grid,
.video-gallery,
.category-section { margin-top: 24px !important; }

.site-header { padding: 10px 0; }
.site-header-inner { gap: 20px; }
.header-banner { max-width: 620px; min-width: 0; }
.header-banner .site-ad-header-inline { width: 100%; height: 100%; }
.header-banner .site-ad-header-inline .site-ad-link,
.header-banner .site-ad-header-inline img { width: 100%; height: 100%; }
.header-banner .site-ad-header-inline img { object-fit: cover; }

.universal-nav .nav-inner { gap: 4px; overflow: visible; }
.nav-item { padding: 11px 14px; }
.nav-item.has-dropdown { position: relative; }
.dropdown-content { min-width: 220px; }

/* Avoid expensive remote font requests. */
body { font-family: "Nirmala UI", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif; }
.logo-brand .bottom-box { font-family: Arial, sans-serif; }

/* Images render consistently and decode off the critical path. */
img { height: auto; }
.cf-card-img img,
.side-story img,
.main-story > img,
.latest-item img,
.featured-card img,
.category-card img,
.video-card img,
.photo-grid img { content-visibility: auto; }

/* Sidebar ad sizing */
.site-ad-sidebar img { width: 300px; max-width: 100%; height: auto; margin: 0 auto; }
.site-ad-long img { width: 300px; max-width: 100%; height: 600px; object-fit: cover; margin: 0 auto; }

/* Clean compact pagination */
.site-pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  margin: 26px 0 10px !important;
  padding: 4px !important;
}
.site-pagination a,
.site-pagination span {
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #dbe3ec !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 14px !important;
  line-height: 1 !important;
}
.site-pagination .active { background: var(--primary-red) !important; border-color: var(--primary-red) !important; color: #fff !important; }
.site-pagination .page-control { min-width: auto !important; padding: 0 14px !important; font-weight: 700; }
.site-pagination .page-ellipsis { border: 0 !important; background: transparent !important; min-width: 20px !important; padding: 0 !important; }

@media (max-width: 900px) {
  .site-header-inner { gap: 12px; }
  .header-banner { max-width: 520px; }
  .nav-inner { overflow-x: auto !important; }
  .hero-section,
  .content-grid,
  .video-gallery { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .coverflow-section,
  .hero-section,
  .reels-section,
  .content-grid,
  .ad-banner,
  .video-gallery,
  .category-section { width: calc(100% - 24px); }
  .site-header { padding: 8px 0; }
  .site-header-inner { gap: 8px; }
  .header-banner { height: 58px; max-width: none; flex: 1; }
  .header-actions { gap: 5px; }
  .live-tv-pill { padding: 6px 8px; font-size: 11px; }
  .search-icon-btn { width: 32px; height: 32px; }
  .site-pagination { gap: 5px !important; }
  .site-pagination a,
  .site-pagination span { min-width: 34px !important; height: 34px !important; font-size: 13px !important; padding: 0 8px !important; }
  .site-pagination .page-control span { display: none !important; }
}

@media (max-width: 520px) {
  .header-banner { height: 50px; }
  .header-banner .site-ad-label { display: none; }
  .site-pagination { justify-content: flex-start !important; overflow-x: auto !important; flex-wrap: nowrap !important; scrollbar-width: none; padding-bottom: 6px !important; }
  .site-pagination::-webkit-scrollbar { display: none; }
  .site-pagination .page-control { flex: 0 0 auto; }
}


/* =========================================================
   FINAL PERFORMANCE + AD LAYOUT OVERRIDES
========================================================= */
html { scroll-behavior: auto; }
body { overflow-x: hidden; }
.container { width: min(1240px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }
.site-header-inner { gap: 22px; }
.nav-inner { gap: 10px; }
.main-story, .side-story, .reel-card, .latest-item, .featured-card, .category-card, .video-card, .popular-item { cursor: pointer; }
img { content-visibility: auto; }

/* Prevent header ad from making the header feel crowded. */
.header-banner { flex: 1 1 728px; min-width: 0; }
.header-banner .site-ad-header-inline { margin: 0 auto; }

/* 300x250 detail ad */
.site-ad-detail-top { width: 300px; max-width: 100%; margin: 0 auto; }
.site-ad-detail-top .site-ad-link { display:block; width:300px; max-width:100%; height:auto; aspect-ratio: 6 / 5; }
.site-ad-detail-top img { width:100%; height:100%; object-fit:cover; display:block; }

/* Long ad is intentionally 9:16 like a reel. */
.site-ad-long { width:300px; max-width:100%; margin:0 auto; }
.site-ad-long .site-ad-link { display:block; width:300px; max-width:100%; aspect-ratio:9 / 16; min-height:0 !important; height:auto !important; overflow:hidden; }
.site-ad-long img { width:100% !important; height:100% !important; min-height:0 !important; max-height:none !important; object-fit:cover !important; display:block; }
.site-ad-long.site-ad-fallback-square .site-ad-link { aspect-ratio: 9 / 16; background:#f8fafc; }
.site-ad-long.site-ad-fallback-square img { object-fit:cover !important; }

/* Give desktop content breathing room; keep mobile compact. */
.coverflow-section, .hero-section, .reels-section, .content-grid, .video-gallery, .category-section, .ad-banner { margin-left:auto; margin-right:auto; width:min(1240px, calc(100% - 32px)); }
@media (max-width:768px) {
  .container, .coverflow-section, .hero-section, .reels-section, .content-grid, .video-gallery, .category-section, .ad-banner { width:calc(100% - 20px); }
  .site-ad-long { width:min(300px, 100%); }
}


/* =========================================================
   FINAL HEADER POLISH: intrinsic ad width + light/dark mode
========================================================= */
.header-banner {
  flex: 0 1 auto !important;
  width: fit-content !important;
  max-width: min(700px, 58vw) !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
}
.header-banner::before { display:none !important; }
.header-banner .site-ad,
.header-banner .site-ad-link {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  height: auto !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.header-banner .site-ad img,
.header-banner .site-ad-header-inline img,
.header-banner .site-ad-header img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 90px !important;
  object-fit: contain !important;
}
.header-banner .site-ad-label { display:none !important; }

.social-mini { align-items:center; gap:6px; }
.social-mini a { display:inline-flex !important; width:24px; height:24px; border-radius:50%; overflow:hidden; transition:transform .18s ease, filter .18s ease; }
.social-mini a:hover { transform:translateY(-2px) scale(1.05); filter:brightness(1.08); }
.social-mini svg { width:24px; height:24px; display:block; }

.theme-toggle {
  width:54px; height:30px; padding:3px; border:1px solid var(--border-light); border-radius:999px;
  background:var(--body-bg); color:var(--text-main); display:inline-flex; align-items:center; justify-content:space-between;
  cursor:pointer; position:relative; box-shadow:0 2px 7px rgba(15,23,42,.10); transition:.2s ease;
}
.theme-toggle::after { content:""; position:absolute; width:24px; height:24px; left:3px; top:2px; border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.2); transition:transform .2s ease; }
.theme-toggle .theme-sun,.theme-toggle .theme-moon { position:relative; z-index:2; width:22px; text-align:center; font-size:14px; line-height:22px; }
.theme-toggle .theme-sun { color:#f59e0b; }
.theme-toggle .theme-moon { color:#475569; }
body.dark-mode .theme-toggle::after { transform:translateX(24px); background:#1e293b; }
body.dark-mode .theme-toggle { background:#0f172a; border-color:#334155; }

/* Site-wide dark palette; existing component colors remain intact. */
body.dark-mode { --body-bg:#070b12; --text-main:#e5e7eb; --text-muted:#94a3b8; --border-light:#253044; --card-bg:#111827; background:#070b12; color:#e5e7eb; }
body.dark-mode .site-header { background:#0b111b; border-color:#1e293b; }
body.dark-mode .breaking { background:#0f172a; border-color:#253044; }
body.dark-mode .breaking-content-wrapper { background:#0f172a; }
body.dark-mode .breaking-content a { color:#e5e7eb; }
body.dark-mode .site-pagination a, body.dark-mode .site-pagination .page-ellipsis { background:#111827; border-color:#334155; color:#e5e7eb; }
body.dark-mode .category-feed-box, body.dark-mode .card, body.dark-mode .news-card, body.dark-mode .content-box { background:#111827; border-color:#253044; color:#e5e7eb; }
body.dark-mode input, body.dark-mode textarea, body.dark-mode select { background:#0f172a; color:#e5e7eb; border-color:#334155; }
body.dark-mode .footer, body.dark-mode footer { background:#050912; }

@media (max-width: 1024px) {
  .header-banner { max-width:min(620px, 55vw) !important; }
}
@media (max-width: 768px) {
  .header-banner { max-width:calc(100vw - 120px) !important; width:fit-content !important; }
  .header-banner .site-ad img { max-height:58px !important; }
  .theme-toggle { width:48px; height:28px; }
  .theme-toggle::after { width:22px; height:22px; }
  body.dark-mode .theme-toggle::after { transform:translateX(20px); }
}
@media (max-width: 480px) {
  .header-banner { max-width:calc(100vw - 100px) !important; }
  .header-banner .site-ad img { max-height:52px !important; }
  .theme-toggle { display:none; }
}

/* =========================================================
   FINAL DARK MODE FIX - COMPONENT SAFE PALETTE
   Keep the existing design, but make every light card/text readable.
========================================================= */
body.dark-mode {
  background: #070b12 !important;
  color: #e5e7eb !important;
}

body.dark-mode .site-header,
body.dark-mode .topbar,
body.dark-mode .topbar-inner,
body.dark-mode .site-header-inner {
  background: #0b111b !important;
  color: #e5e7eb !important;
}

body.dark-mode .top-links a,
body.dark-mode .topbar-date,
body.dark-mode .top-links {
  color: #cbd5e1 !important;
}

body.dark-mode .coverflow-section,
body.dark-mode .reels-section,
body.dark-mode .hero-section,
body.dark-mode .content-grid,
body.dark-mode .category-section,
body.dark-mode .video-gallery,
body.dark-mode .photo-gallery,
body.dark-mode .ad-banner {
  color: #e5e7eb;
}

/* News cards */
body.dark-mode .side-story,
body.dark-mode .featured-card,
body.dark-mode .category-card,
body.dark-mode .latest-item,
body.dark-mode .search-page-card,
body.dark-mode .content-box,
body.dark-mode .news-card {
  background: #111827 !important;
  color: #e5e7eb !important;
  border-color: #263449 !important;
}

body.dark-mode .side-story-content,
body.dark-mode .featured-card-content,
body.dark-mode .category-card-content,
body.dark-mode .latest-item > div {
  color: #e5e7eb !important;
}

body.dark-mode .side-story-content h3,
body.dark-mode .featured-card h2,
body.dark-mode .featured-card-content h2,
body.dark-mode .featured-card-content p,
body.dark-mode .category-card h3,
body.dark-mode .latest-item h3,
body.dark-mode .popular-item h3,
body.dark-mode .search-result-item h2,
body.dark-mode .search-result-item p {
  color: #e5e7eb !important;
}

body.dark-mode .meta,
body.dark-mode .featured-card .meta,
body.dark-mode .category-card .meta,
body.dark-mode .latest-item .meta {
  color: #94a3b8 !important;
}

body.dark-mode .small-label,
body.dark-mode .category-label {
  color: #fff !important;
}

/* Main cards and popular area */
body.dark-mode .popular-list,
body.dark-mode .latest-list {
  color: #e5e7eb;
}

body.dark-mode .popular-item {
  border-color: #263449 !important;
}

body.dark-mode .section-title {
  color: #f8fafc !important;
  border-color: #334155 !important;
}

/* Coverflow */
body.dark-mode .coverflow-section {
  background: linear-gradient(180deg, #111827 0%, #0b1220 100%) !important;
  border-color: #263449 !important;
}

body.dark-mode .cf-card {
  background: #111827 !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

body.dark-mode .cf-card-title {
  color: #f8fafc !important;
}

body.dark-mode .cf-time {
  color: #94a3b8 !important;
}

body.dark-mode .cf-nav-btn,
body.dark-mode .reel-nav-btn {
  background: #1e293b !important;
  color: #f8fafc !important;
  border: 1px solid #334155 !important;
}

/* Reels */
body.dark-mode .reels-section {
  color: #e5e7eb !important;
}

body.dark-mode .reels-title {
  color: #f8fafc !important;
}

/* Forms/search */
body.dark-mode .search-page-form input,
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

body.dark-mode .search-result-item {
  color: #e5e7eb !important;
  border-color: #263449 !important;
}

/* Category/sidebar/weather */
body.dark-mode .category-weather-widget {
  color: #fff !important;
}

/* Live TV */
body.dark-mode .live-card {
  background: #0f172a !important;
  color: #f8fafc !important;
}

body.dark-mode .live-info h2,
body.dark-mode .live-info p {
  color: #f8fafc !important;
}

/* Pagination */
body.dark-mode .site-pagination a,
body.dark-mode .site-pagination span {
  background: #111827 !important;
  color: #e5e7eb !important;
  border-color: #334155 !important;
}

body.dark-mode .site-pagination .active {
  background: var(--primary-red) !important;
  color: #fff !important;
  border-color: var(--primary-red) !important;
}

body.dark-mode .site-pagination .page-ellipsis {
  background: transparent !important;
  color: #94a3b8 !important;
}

/* Ad placeholders should not create a bright white block in dark mode */
body.dark-mode .site-ad-long.site-ad-fallback-square .site-ad-link,
body.dark-mode .site-ad-long img {
  background: #0f172a !important;
}

/* Header ad wrapper follows the active theme */
body.dark-mode .header-banner,
body.dark-mode .header-banner .site-ad-header-inline {
  background: transparent !important;
  border-color: #263449 !important;
}

/* Footer */
body.dark-mode footer,
body.dark-mode .footer,
body.dark-mode .footer-main {
  background: #050912 !important;
  color: #e5e7eb !important;
}

body.dark-mode .footer-title {
  color: #f8fafc !important;
  border-color: #263449 !important;
}

body.dark-mode .footer-about,
body.dark-mode .footer-links li,
body.dark-mode .copyright {
  color: #94a3b8 !important;
}

/* Links inherit the correct readable color unless they are branded/buttons */
body.dark-mode a:not(.live-tv-pill):not(.watch-btn):not(.small-label) {
  color: inherit;
}

/* Mobile drawer */
body.dark-mode .universal-nav {
  background: #0b111b !important;
}

body.dark-mode .nav-drawer-header {
  background: #070b12 !important;
  border-color: #263449 !important;
  color: #f8fafc !important;
}

/* Avoid accidental opacity making cards look washed out */
body.dark-mode .side-story,
body.dark-mode .featured-card,
body.dark-mode .category-card,
body.dark-mode .latest-item,
body.dark-mode .popular-item {
  opacity: 1 !important;
}

@media (max-width: 768px) {
  body.dark-mode .side-story,
  body.dark-mode .featured-card,
  body.dark-mode .category-card {
    background: #111827 !important;
  }
}

/* =========================================================
   FINAL SITE-WIDE DARK MODE / CONTRAST PASS
   Applied after all component rules so dark mode never leaves
   light cards, inline text or ticker text behind.
========================================================= */
body.dark-mode .breaking-content span,
body.dark-mode .breaking-content span a {
  color: #f8fafc !important;
}
body.dark-mode .breaking-content-wrapper,
body.dark-mode .breaking {
  background: #0f172a !important;
}
body.dark-mode .breaking {
  border-color: #263449 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.25) !important;
}

/* Homepage cards / galleries */
body.dark-mode .video-gallery,
body.dark-mode .photo-gallery,
body.dark-mode .video-section,
body.dark-mode .photo-section {
  background: transparent !important;
  color: #f8fafc !important;
}
body.dark-mode .video-card,
body.dark-mode .photo-card,
body.dark-mode .photo-grid,
body.dark-mode .video-grid {
  background: #111827 !important;
  color: #e5e7eb !important;
  border-color: #263449 !important;
}
body.dark-mode .video-card h3,
body.dark-mode .photo-card h3,
body.dark-mode .video-card a,
body.dark-mode .photo-card a {
  color: #f8fafc !important;
}
body.dark-mode .photo-grid img {
  border-color: #263449 !important;
}
body.dark-mode .ad-banner {
  background: linear-gradient(90deg,#0b111b,#111827,#0b111b) !important;
  border-color: #263449 !important;
}

/* Article/detail page */
body.dark-mode .article-layout-wrapper {
  color: #e5e7eb !important;
}
body.dark-mode .article-content-box {
  background: #111827 !important;
  color: #e5e7eb !important;
  border-color: #263449 !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.18) !important;
}
body.dark-mode .breadcrumb-nav,
body.dark-mode .breadcrumb-nav span {
  color: #94a3b8 !important;
}
body.dark-mode .breadcrumb-nav a {
  color: #7dd3fc !important;
}
body.dark-mode .article-headline {
  color: #f8fafc !important;
}
body.dark-mode .article-meta-row {
  color: #94a3b8 !important;
  border-color: #263449 !important;
}
body.dark-mode .article-meta-row strong,
body.dark-mode .article-meta-row div[style*="color"] {
  color: #f8fafc !important;
}
body.dark-mode .article-text-flow,
body.dark-mode .article-text-flow p,
body.dark-mode .article-text-flow li,
body.dark-mode .article-text-flow td,
body.dark-mode .article-text-flow th,
body.dark-mode .article-text-flow span,
body.dark-mode .article-text-flow div {
  color: #e5e7eb !important;
}
body.dark-mode .article-text-flow a {
  color: #7dd3fc !important;
}
body.dark-mode .article-text-flow blockquote {
  background: #0f172a !important;
  color: #e5e7eb !important;
  border-color: #475569 !important;
}
body.dark-mode .article-text-flow hr,
body.dark-mode .article-text-flow [style*="border-top"] {
  border-color: #334155 !important;
}
body.dark-mode .article-text-flow a[style*="background"] {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}

/* Detail sidebar */
body.dark-mode .sidebar-ad-box,
body.dark-mode .site-ad-detail-top,
body.dark-mode .site-ad-sidebar,
body.dark-mode .site-ad-long {
  background: #0f172a !important;
  border-color: #263449 !important;
}
body.dark-mode .ad-slot-300 {
  background: #111827 !important;
  color: #94a3b8 !important;
}
body.dark-mode .cricket-widget-container,
body.dark-mode .news-tabs-card {
  background: #111827 !important;
  color: #e5e7eb !important;
  border-color: #263449 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.18) !important;
}
body.dark-mode .cw-header,
body.dark-mode .cw-ground,
body.dark-mode .cw-team span,
body.dark-mode .tab-news-date {
  color: #cbd5e1 !important;
}
body.dark-mode .cw-header .match-type {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}
body.dark-mode .cw-vs-badge,
body.dark-mode .cw-nav-arrow {
  background: #1e293b !important;
  color: #e5e7eb !important;
  border-color: #334155 !important;
}
body.dark-mode .tab-header-row {
  border-color: #263449 !important;
}
body.dark-mode .tab-nav-item {
  color: #94a3b8 !important;
}
body.dark-mode .tab-nav-item.active {
  color: #f8fafc !important;
}
body.dark-mode .tab-news-item {
  border-color: #263449 !important;
}
body.dark-mode .tab-news-text h4 {
  color: #f8fafc !important;
}

/* Inline-light styles from the detail template */
body.dark-mode [style*="background:#fff"],
body.dark-mode [style*="background: #fff"],
body.dark-mode [style*="background:#ffffff"],
body.dark-mode [style*="background: #ffffff"] {
  background: #111827 !important;
}
body.dark-mode [style*="color:#0f172a"],
body.dark-mode [style*="color: #0f172a"],
body.dark-mode [style*="color:#1e293b"],
body.dark-mode [style*="color: #1e293b"],
body.dark-mode [style*="color:#111"],
body.dark-mode [style*="color: #111"] {
  color: #f8fafc !important;
}
body.dark-mode [style*="border:1px solid #e2e8f0"],
body.dark-mode [style*="border: 1px solid #e2e8f0"],
body.dark-mode [style*="border-bottom:1px solid #e2e8f0"],
body.dark-mode [style*="border-top:1px solid #e2e8f0"] {
  border-color: #334155 !important;
}

/* Weather / live / utility widgets */
body.dark-mode .weather-sidebar-widget {
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.18) !important;
}
body.dark-mode .live-card,
body.dark-mode .live-tv-card,
body.dark-mode .live-info {
  background: #0f172a !important;
  color: #f8fafc !important;
}

/* Forms and static content pages */
body.dark-mode .page-card,
body.dark-mode .static-page,
body.dark-mode .contact-card,
body.dark-mode .contact-form,
body.dark-mode .about-card,
body.dark-mode .policy-card,
body.dark-mode .terms-card {
  background: #111827 !important;
  color: #e5e7eb !important;
  border-color: #263449 !important;
}
body.dark-mode .page-card h1,
body.dark-mode .page-card h2,
body.dark-mode .page-card h3,
body.dark-mode .static-page h1,
body.dark-mode .static-page h2,
body.dark-mode .static-page h3,
body.dark-mode .contact-card h2,
body.dark-mode .about-card h2 {
  color: #f8fafc !important;
}

/* Footer links must remain visible */
body.dark-mode .footer-links a,
body.dark-mode footer a {
  color: #cbd5e1 !important;
}
body.dark-mode .footer-links a:hover,
body.dark-mode footer a:hover {
  color: #fff !important;
}

/* Avoid white focus/selection artifacts */
body.dark-mode ::selection {
  background: #dc2626;
  color: #fff;
}

@media (max-width: 768px) {
  body.dark-mode .article-content-box {
    padding: 16px !important;
  }
  body.dark-mode .article-headline {
    font-size: 23px !important;
  }
}
html.pre-dark body { background:#070b12 !important; color:#e5e7eb !important; }


/* =========================================================
   FINAL DARK MODE: CATEGORY + DETAIL + TICKER CONTRAST PASS
   These rules intentionally come last so they override older
   page-local/light-theme rules without changing the light theme.
========================================================= */
body.dark-mode .breaking,
body.dark-mode .breaking-content-wrapper,
body.dark-mode .breaking-content,
body.dark-mode .breaking-content span,
body.dark-mode .breaking-content span a {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}
body.dark-mode .breaking-content span a:hover { color:#ffffff !important; }

body.dark-mode .category-feed-box,
body.dark-mode .category-feed-box .category-posts-list,
body.dark-mode .cat-media-item,
body.dark-mode .cat-text-wrap {
  background:#111827 !important;
  color:#e5e7eb !important;
  border-color:#263449 !important;
}
body.dark-mode .category-feed-box {
  box-shadow:0 8px 28px rgba(0,0,0,.16) !important;
}
body.dark-mode .cat-post-title,
body.dark-mode .category-feed-box .cat-post-title,
body.dark-mode .cat-media-item .cat-post-title {
  color:#f8fafc !important;
}
body.dark-mode .cat-post-desc,
body.dark-mode .cat-post-date,
body.dark-mode .category-feed-box .cat-post-desc,
body.dark-mode .category-feed-box .cat-post-date {
  color:#cbd5e1 !important;
}
body.dark-mode .cat-post-title:hover,
body.dark-mode .cat-media-item:hover .cat-post-title {
  color:#fca5a5 !important;
}
body.dark-mode .breadcrumb-nav,
body.dark-mode .breadcrumb-nav span {
  color:#94a3b8 !important;
}
body.dark-mode .breadcrumb-nav a { color:#7dd3fc !important; }

/* Detail page: every local white panel/text becomes theme-aware. */
body.dark-mode .article-layout-wrapper,
body.dark-mode .article-layout-wrapper > * {
  color:#e5e7eb !important;
}
body.dark-mode .article-content-box,
body.dark-mode .article-content-box[style],
body.dark-mode .article-content-box *[style*="background:#fff"],
body.dark-mode .article-content-box *[style*="background:#ffffff"] {
  background-color:#111827 !important;
}
body.dark-mode .article-content-box {
  border-color:#263449 !important;
  color:#e5e7eb !important;
}
body.dark-mode .article-content-box .article-headline,
body.dark-mode .article-content-box h1,
body.dark-mode .article-content-box h2,
body.dark-mode .article-content-box h3 {
  color:#f8fafc !important;
}
body.dark-mode .article-content-box p,
body.dark-mode .article-content-box li,
body.dark-mode .article-content-box td,
body.dark-mode .article-content-box th,
body.dark-mode .article-content-box span,
body.dark-mode .article-content-box div {
  color:#e5e7eb !important;
}
body.dark-mode .article-content-box .article-meta-row,
body.dark-mode .article-content-box .article-meta-row * {
  color:#cbd5e1 !important;
  border-color:#334155 !important;
}
body.dark-mode .article-content-box .article-text-flow,
body.dark-mode .article-content-box .article-text-flow * {
  color:#e5e7eb !important;
}
body.dark-mode .article-content-box .article-text-flow a { color:#7dd3fc !important; }

/* Any page-local white panel left by legacy templates. */
body.dark-mode .category-feed-box,
body.dark-mode .article-content-box,
body.dark-mode .news-tabs-card,
body.dark-mode .cricket-widget-container,
body.dark-mode .sidebar-ad-box,
body.dark-mode .site-ad-detail-top,
body.dark-mode .site-ad-sidebar,
body.dark-mode .site-ad-long {
  background:#111827 !important;
  border-color:#263449 !important;
}

/* Strong override for common inline light colors used in old templates. */
body.dark-mode [style*="color:#0f172a"],
body.dark-mode [style*="color: #0f172a"],
body.dark-mode [style*="color:#111827"],
body.dark-mode [style*="color: #111827"],
body.dark-mode [style*="color:#1e293b"],
body.dark-mode [style*="color: #1e293b"] {
  color:#f8fafc !important;
}
body.dark-mode [style*="background:#fff"],
body.dark-mode [style*="background: #fff"],
body.dark-mode [style*="background:#ffffff"],
body.dark-mode [style*="background: #ffffff"] {
  background:#111827 !important;
}
body.dark-mode [style*="border:1px solid #e2e8f0"],
body.dark-mode [style*="border: 1px solid #e2e8f0"],
body.dark-mode [style*="border-bottom:1px solid #e2e8f0"],
body.dark-mode [style*="border-bottom: 1px solid #e2e8f0"] {
  border-color:#334155 !important;
}


/* Accessibility and responsive safety additions (2026-10) */
:focus-visible { outline: 3px solid #1769e0; outline-offset: 2px; }
img, video, iframe { max-width: 100%; }
pre, code, table { max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 480px) {
  input, select, textarea, button { max-width: 100%; }
  .container, .container-fluid, .content, main { min-width: 0; }
}
