/*
Theme Name: Current Plus
Theme URI: https://currentplus.in
Author: CurrentPlus Team
Description: Custom Hindi news theme for currentplus.in — red & white editorial layout with breaking news ticker, multi-column grids, responsive on all devices.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: current-plus
Tags: news, hindi, magazine, custom-header, custom-menu, featured-images, post-formats
*/

/* ================================================
   CSS VARIABLES
================================================ */
:root {
  --red: #d0021b;
  --red-dark: #a80016;
  --red-light: #ff1a35;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --light-gray: #e8e8e8;
  --mid-gray: #999999;
  --dark-gray: #444444;
  --black: #111111;
  --text: #1a1a1a;
  --text-light: #666666;
  --border: #e0e0e0;
  --yellow: #f5c518;
  --font-hindi: 'Noto Sans Devanagari', 'Mangal', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-ui: 'DM Sans', 'Helvetica Neue', sans-serif;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius: 3px;
  --container: 1240px;
  --gap: 20px;
}

/* ================================================
   RESET & BASE
================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden; /* prevent horizontal scroll/shake */
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* prevent horizontal scroll/shake */
  max-width: 100%;
  position: relative;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ================================================
   CONTAINER
================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ================================================
   TOP BAR
================================================ */
.top-bar {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 2px solid var(--red);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.top-bar-date { color: #aaa; letter-spacing: 0.5px; }
.top-bar-links { display: flex; gap: 16px; }
.top-bar-links a {
  color: #ccc;
  font-size: 11px;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.top-bar-links a:hover { color: var(--red-light); }
.top-bar-social { display: flex; gap: 12px; }
.top-bar-social a {
  color: #ccc;
  font-size: 13px;
  transition: color 0.2s;
}
.top-bar-social a:hover { color: var(--red-light); }

/* ================================================
   DESKTOP HEADER
================================================ */
.desktop-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}
.desktop-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  width: 100%;
  overflow: hidden;
}
.site-branding {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.site-logo-link {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}
.site-logo-img {
  height: 56px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain;
  display: block;
}
.site-logo-link:hover .site-logo-img { opacity: 0.85; }
.logo-tagline {
  font-family: var(--font-hindi);
  font-size: 11px;
  color: var(--text-light);
  margin-top: 3px;
  white-space: nowrap;
}
.header-ad-banner {
  flex: 1;
  min-width: 0;
  max-width: 728px;
  height: 90px;
  background: var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  color: var(--mid-gray); font-size: 12px; font-family: var(--font-ui);
  border: 1px dashed var(--border);
  overflow: hidden;
}
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.live-tv-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--red); color: white;
  font-family: var(--font-ui); font-size: 12px; font-weight: 800;
  padding: 7px 12px; border-radius: 3px; white-space: nowrap;
  transition: background 0.2s; text-decoration: none;
}
.live-tv-btn:hover { background: var(--red-dark); color: white; }
.live-blink { color: white; font-size: 8px; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.header-search { flex-shrink: 0; }
.header-search form {
  display: flex; border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.header-search input {
  border: none; padding: 8px 12px; font-size: 13px;
  font-family: var(--font-ui); outline: none; width: 160px;
  background: var(--off-white);
}
.header-search button {
  background: var(--red); border: none; color: white;
  padding: 8px 14px; cursor: pointer; font-size: 13px;
  transition: background 0.2s;
}
.header-search button:hover { background: var(--red-dark); }
.desktop-search-icon {
  background: none; border: none; color: white;
  font-size: 16px; cursor: pointer; padding: 0 12px;
  margin-left: auto;
}

/* ================================================
   MOBILE HEADER — hidden on desktop by default
================================================ */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  gap: 8px;
  width: 100%;
}
.mob-hamburger {
  background: none; border: none;
  font-size: 22px; color: var(--text);
  cursor: pointer; padding: 6px;
  flex-shrink: 0; line-height: 1;
}
.mob-logo-link { display: block; line-height: 0; flex: 1; text-align: center; }
.mob-logo-img {
  height: 36px; width: auto;
  max-width: 140px; object-fit: contain;
  display: inline-block;
}
.mob-header-right { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.mob-live-badge {
  display: flex; align-items: center; gap: 4px;
  background: var(--red); color: white;
  font-family: var(--font-ui); font-size: 10px; font-weight: 800;
  padding: 4px 8px; border-radius: 3px; letter-spacing: 0.3px;
  text-decoration: none;
}
.live-blink-dot {
  width: 5px; height: 5px; background: white;
  border-radius: 50%; display: inline-block;
  animation: blink 1s infinite;
}
.mob-search-btn {
  background: none; border: none;
  color: var(--text); font-size: 18px;
  cursor: pointer; padding: 6px 8px; display: flex;
  align-items: center; text-decoration: none;
}
/* Mobile search dropdown */
.mob-search-bar {
  display: none;
  position: fixed;
  top: 52px; left: 0; right: 0;
  z-index: 999;
  background: white;
  border-bottom: 2px solid var(--red);
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.mob-search-bar.open { display: flex; }
.mob-search-bar form { display: flex; flex: 1; border: 1.5px solid var(--border); border-radius: 4px; overflow: hidden; }
.mob-search-bar input { flex: 1; border: none; padding: 9px 12px; font-size: 14px; outline: none; font-family: var(--font-hindi); }
.mob-search-bar button { background: var(--red); border: none; color: white; padding: 9px 14px; font-size: 14px; cursor: pointer; }
.mob-search-close { background: none; border: none; font-size: 18px; color: var(--text-light); cursor: pointer; padding: 6px; }

/* ================================================
   MOBILE SCROLL NAV — hidden on desktop
================================================ */
.mobile-scroll-nav {
  display: none;
  background: #1a1a2e;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 52px;
  z-index: 998;
  border-bottom: 2px solid var(--red);
}
.mobile-scroll-nav::-webkit-scrollbar { display: none; }
.mobile-scroll-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content; /* instead of min-width which can overflow */
  padding: 0 4px;
}
.msn-item {
  display: flex; align-items: center;
  padding: 10px 14px;
  font-family: var(--font-hindi);
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: color 0.15s, background 0.15s;
}
.msn-item:hover, .msn-item.active { color: white; background: rgba(255,255,255,0.08); }
.msn-home { color: white; font-size: 15px; }

/* ================================================
   DRAWER NAV
================================================ */
.drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 1100;
}
.drawer-overlay.open { display: block; }
.mobile-drawer {
  position: fixed; top: 0; left: -290px;
  width: 290px; height: 100%;
  background: #111; z-index: 1200;
  overflow-y: auto; overflow-x: hidden;
  transition: left 0.28s ease;
  display: flex; flex-direction: column;
  pointer-events: none;
}
.mobile-drawer.open { left: 0; pointer-events: all; }
.drawer-head {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--red); flex-shrink: 0;
}
.drawer-logo {
  height: 34px; width: auto; max-width: 160px;
  object-fit: contain;
  /* logo is black text — invert for dark header */
  filter: invert(1) brightness(2);
}
.drawer-close-btn {
  background: none; border: none;
  color: white; font-size: 20px;
  cursor: pointer; padding: 4px 8px;
}
.drawer-search-wrap {
  padding: 10px 14px;
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  flex-shrink: 0;
}
.drawer-search-wrap form { display: flex; border-radius: 4px; overflow: hidden; }
.drawer-search-wrap input {
  flex: 1; padding: 9px 12px; border: none;
  background: #2a2a2a; color: white; font-size: 13px; outline: none;
}
.drawer-search-wrap input::placeholder { color: #777; }
.drawer-search-wrap button { background: var(--red); border: none; color: white; padding: 9px 13px; cursor: pointer; font-size: 13px; }
.drawer-menu { list-style: none; padding: 0; margin: 0; flex: 1; }
.drawer-menu li { border-bottom: 1px solid #1e1e1e; }
.drawer-menu li a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  font-family: var(--font-hindi); font-size: 15px;
  color: #ccc; transition: all 0.15s;
}
.drawer-menu li a::before { content: '›'; color: var(--red); font-size: 20px; font-weight: 700; line-height: 1; }
.drawer-menu li a:hover { background: #1a1a1a; color: white; padding-left: 24px; }
.drawer-menu li.current-menu-item a { color: white; background: #1a1a1a; }
.drawer-social-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; border-top: 1px solid #1e1e1e;
}
.drawer-social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: #1e1e1e; color: #aaa;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: background 0.2s, color 0.2s;
}
.drawer-social-row a:hover { background: var(--red); color: white; }

/* ================================================
   NAVIGATION (DESKTOP)
================================================ */
.desktop-nav { background: var(--red); }
.mobile-scroll-nav-desktop { display: none; }
.nav-container { display: flex; align-items: stretch; }
.nav-menu { display: flex; align-items: stretch; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex; align-items: center;
  padding: 11px 16px;
  color: white; font-family: var(--font-ui);
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: background 0.15s;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a { background: var(--red-dark); }
.nav-menu .sub-menu {
  display: none; position: absolute;
  top: 100%; left: 0; min-width: 200px;
  background: white; box-shadow: var(--shadow-md);
  border-top: 3px solid var(--red); z-index: 999;
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu li a {
  display: block; padding: 9px 16px;
  font-family: var(--font-ui); font-size: 13px;
  color: var(--text); border-bottom: 1px solid var(--light-gray);
  transition: background 0.15s, color 0.15s;
}
.nav-menu .sub-menu li a:hover { background: var(--off-white); color: var(--red); }
.nav-toggle { display: none; }

/* ================================================
   BOTTOM NAV BAR — hidden on desktop, fixed on mobile
================================================ */
.bottom-nav-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  z-index: 1050;
  height: 54px;
  align-items: stretch;
  box-shadow: 0 -1px 8px rgba(0,0,0,0.12);
  /* Ensure it never causes horizontal scroll */
  max-width: 100vw;
  overflow: hidden;
}
.bnb-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #777;
  font-family: var(--font-ui);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  padding: 5px 2px 4px;
  min-width: 0;
  overflow: hidden;
  border: none;
  background: none;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.bnb-item svg {
  display: block;
  flex-shrink: 0;
}
.bnb-item span {
  font-size: 9.5px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  font-family: var(--font-hindi);
}
.bnb-item:hover,
.bnb-item.active { color: var(--red); }
.bnb-item.active svg,
.bnb-item:hover svg { stroke: var(--red); }
/* Cricket icon uses fill not stroke */
.bnb-item:nth-child(4) svg { stroke: none; }

.bnb-center {
  color: var(--red);
  position: relative;
}
.bnb-center svg { stroke: var(--red); }

/* Back to Top */
#backToTop {
  position: fixed;
  bottom: 70px;
  right: 14px;
  z-index: 1049;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(208,2,27,0.35);
  transition: background 0.2s;
  /* Prevent this from contributing to page width */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
#backToTop:hover { background: var(--red-dark); }

/* ================================================
   BREAKING NEWS TICKER
================================================ */
.breaking-ticker {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  height: 36px;
  /* Contain overflow from ticker */
  max-width: 100%;
  position: relative;
}
.ticker-label {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 16px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.ticker-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  /* Critical: contain the scrolling ticker */
  max-width: 100%;
}
.ticker-items {
  display: flex;
  gap: 0;
  /* Use translateX(100%) instead of 100vw — avoids viewport overflow */
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.ticker-items:hover { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-hindi);
  font-size: 13.5px;
  color: var(--text);
  padding: 0 24px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ticker-item::before {
  content: '●';
  color: var(--red);
  font-size: 8px;
}
.ticker-item a:hover { color: var(--red); }
@keyframes ticker-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ================================================
   HERO / MAIN FEATURED
================================================ */
.hero-section { background: var(--white); padding: 16px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: auto auto;
  gap: var(--gap);
}
.hero-main {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.hero-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-main:hover img { transform: scale(1.02); }
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  padding: 24px 20px 20px;
}
.hero-category-badge {
  display: inline-block;
  background: var(--red);
  color: white;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.hero-title {
  font-family: var(--font-hindi);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hero-meta {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.hero-side-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.hero-side-card:hover { box-shadow: var(--shadow-md); }
.hero-side-card img { width: 100%; height: 150px; object-fit: cover; }
.hero-side-card .card-body { padding: 12px; }
.hero-side-card .card-cat {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
}
.hero-side-card .card-title {
  font-family: var(--font-hindi);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
.hero-side-card .card-title:hover { color: var(--red); }

/* ================================================
   SECTION TITLES
================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.section-title {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: 0.2px;
  position: relative;
  padding-left: 12px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 2px; bottom: 2px;
  width: 4px;
  background: var(--red);
  border-radius: 2px;
}
.section-more {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-more:hover { color: var(--red-dark); }

/* ================================================
   MAIN LAYOUT
================================================ */
.main-content-area {
  padding: 20px 0 32px;
}
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* ================================================
   NEWS GRID - 3 COLUMNS
================================================ */
.news-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.news-card-img {
  position: relative;
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  transition: transform 0.35s;
}
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--red);
  color: white;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.news-card-body { padding: 13px 14px 14px; }
.news-card-cat {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.news-card-title {
  font-family: var(--font-hindi);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-title a:hover { color: var(--red); }
.news-card-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--mid-gray);
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-card-meta span { display: flex; align-items: center; gap: 4px; }

/* ================================================
   NEWS LIST (horizontal card)
================================================ */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-list-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background 0.15s;
}
.news-list-item:last-child { border-bottom: none; }
.news-list-item:hover { background: var(--off-white); }
.news-list-img {
  flex-shrink: 0;
  width: 100px;
  height: 72px;
  overflow: hidden;
  border-radius: var(--radius);
}
.news-list-img img { width: 100%; height: 100%; object-fit: cover; }
.news-list-body { flex: 1; min-width: 0; }
.news-list-cat {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.news-list-title {
  font-family: var(--font-hindi);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list-title a:hover { color: var(--red); }
.news-list-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--mid-gray);
}

/* ================================================
   VIDEO SECTION
================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.video-card:hover { box-shadow: var(--shadow-md); }
.video-thumb {
  position: relative;
  overflow: hidden;
}
.video-thumb img { width: 100%; height: 130px; object-fit: cover; }
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  background: rgba(208,2,27,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 14px;
  transition: background 0.2s, transform 0.2s;
}
.video-card:hover .play-btn { background: var(--red); transform: translate(-50%,-50%) scale(1.1); }
.video-duration {
  position: absolute;
  bottom: 6px; right: 8px;
  background: rgba(0,0,0,0.75);
  color: white;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
}
.video-card .card-body { padding: 10px 12px 12px; }
.video-card .card-title {
  font-family: var(--font-hindi);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card .card-title a:hover { color: var(--red); }

/* ================================================
   SIDEBAR
================================================ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.widget-title {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.widget-body { padding: 14px; }

/* Trending widget */
.trending-list { display: flex; flex-direction: column; gap: 0; }
.trending-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.trending-item:last-child { border-bottom: none; }
.trending-num {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 900;
  color: var(--light-gray);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.trending-item:nth-child(1) .trending-num,
.trending-item:nth-child(2) .trending-num,
.trending-item:nth-child(3) .trending-num { color: var(--red); }
.trending-title {
  font-family: var(--font-hindi);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
.trending-title a:hover { color: var(--red); }

/* Ad widget */
.ad-block {
  background: var(--light-gray);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  font-size: 12px;
  font-family: var(--font-ui);
  border: 1px dashed #ccc;
}

/* ================================================
   SECTION DIVIDER
================================================ */
.section-block {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

/* ================================================
   STATE / REGIONAL TABS
================================================ */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--red);
  margin-bottom: 16px;
  overflow-x: auto;
}
.tab-btn {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 16px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.tab-btn.active, .tab-btn:hover {
  color: var(--red);
  border-bottom-color: var(--red);
  background: var(--off-white);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ================================================
   FOOTER
================================================ */
.site-footer {
  background: #111;
  color: #ccc;
  margin-top: 32px;
}
.footer-top {
  border-bottom: 1px solid #2a2a2a;
  padding: 36px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-about .footer-logo-wrap { margin-bottom: 12px; }
.footer-about .footer-logo-img {
  height: 44px; width: auto; max-width: 180px;
  object-fit: contain; display: block;
}
.footer-about p {
  font-family: var(--font-hindi);
  font-size: 13px;
  line-height: 1.7;
  color: #999;
}
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  background: #222;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #aaa;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--red); color: white; }
.footer-widget-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; margin: 0; }
.footer-links li { list-style: none; }
.footer-links a {
  font-family: var(--font-hindi);
  font-size: 13px;
  color: #999;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: white; }
.footer-links a::before { content: '›'; color: var(--red); font-size: 16px; flex-shrink: 0; }
/* Cricket item has SVG — hide the pseudo arrow */
.footer-links li:has(svg) a::before { display: none; }
.footer-bottom {
  background: #0a0a0a;
  padding: 14px 0;
  /* Prevent reflow/shaking from dynamic content */
  min-height: 48px;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copyright {
  font-family: var(--font-ui);
  font-size: 12px;
  color: #666;
  /* Prevent long text from causing horizontal overflow */
  word-break: break-word;
  max-width: 100%;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a {
  font-family: var(--font-ui);
  font-size: 12px;
  color: #666;
  transition: color 0.15s;
}
.footer-bottom-links a:hover { color: var(--red); }

/* ================================================
   SINGLE POST
================================================ */
.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
}
.post-header { margin-bottom: 20px; }
.post-breadcrumb {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--mid-gray);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-breadcrumb a { color: var(--red); }
.post-title {
  font-family: var(--font-hindi);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 14px;
}
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.post-author-img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red);
}
.post-author-name {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.post-date {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--mid-gray);
}
.post-share {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; }
.share-fb { background: #1877F2; color: white; }
.share-tw { background: #000; color: white; }
.share-wa { background: #25D366; color: white; }
.post-featured-img { width: 100%; border-radius: var(--radius); margin-bottom: 24px; }
.post-content {
  font-family: var(--font-hindi);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}
.post-content p { margin-bottom: 18px; }
.post-content h2 {
  font-family: var(--font-hindi);
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--red);
}
.post-content blockquote {
  background: var(--off-white);
  border-left: 4px solid var(--red);
  padding: 16px 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--dark-gray);
}
.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0%;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  max-width: 100vw;
}

/* ================================================
   TAGS
================================================ */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-cloud a {
  font-family: var(--font-ui);
  font-size: 12px;
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--text-light);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.15s;
}
.tag-cloud a:hover { background: var(--red); color: white; border-color: var(--red); }

/* ================================================
   PAGINATION
================================================ */
.pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: all 0.15s;
}
.page-btn:hover, .page-btn.active { background: var(--red); color: white; border-color: var(--red); }

/* ================================================
   RESPONSIVE
================================================ */

/* Desktop only — force hide all mobile elements */
@media (min-width: 769px) {
  .mobile-header     { display: none !important; }
  .mobile-scroll-nav { display: none !important; }
  .mob-search-bar    { display: none !important; }
  .bottom-nav-bar    { display: none !important; }
  .mobile-drawer     { left: -290px !important; pointer-events: none !important; }
  .drawer-overlay    { display: none !important; }
}

/* ================================================
   TABLET (≤1024px)
================================================ */
@media (max-width: 1024px) {
  .news-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side-stack { flex-direction: row; gap: 14px; }
  .hero-side-card { flex: 1; }
  .hero-main img { height: 340px; }
  .header-search input { width: 130px; }
  .site-logo-img { height: 48px !important; max-width: 160px !important; }
  .header-ad-banner { max-width: 480px; height: 80px; }
}

/* ================================================
   MOBILE (≤768px)
================================================ */
@media (max-width: 768px) {

  /* Hide desktop, show mobile */
  .top-bar        { display: none; }
  .desktop-header { display: none; }
  .desktop-nav    { display: none; }
  .mobile-header     { display: flex; }
  .mobile-scroll-nav { display: block; }
  .bottom-nav-bar    { display: flex; }

  /* CRITICAL: push all content above fixed bottom nav */
  body { padding-bottom: 60px; }
  .site-footer { margin-bottom: 0; }
  /* Extra space at very bottom of footer so it clears the nav bar */
  .footer-bottom { padding-bottom: 20px; }

  .breaking-ticker { height: 32px; }
  .ticker-label { padding: 0 10px; font-size: 10px; gap: 4px; }
  .ticker-label-text { display: none; }
  .ticker-item { font-size: 12px; padding-right: 18px; }

  .hero-section { padding: 8px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-main img { height: 210px; }
  .hero-title { font-size: 16px; line-height: 1.4; }
  .hero-overlay { padding: 12px; }
  .hero-category-badge { font-size: 9px; }
  .hero-meta { font-size: 11px; }
  .hero-side-stack { flex-direction: column; gap: 10px; }
  .hero-side-card img { height: 120px; }
  .hero-side-card .card-title { font-size: 13px; }
  .hero-side-card .card-body { padding: 10px; }

  .main-content-area { padding: 8px 0 20px; }
  .content-sidebar-wrap { grid-template-columns: 1fr; gap: 12px; }
  .single-post-layout { grid-template-columns: 1fr; gap: 12px; padding: 12px 0; }
  .primary-content { order: 1; }
  .sidebar { order: 2; }

  .section-block { padding: 12px; margin-bottom: 10px; border-radius: 0; border-left: none; border-right: none; }
  .section-header { margin-bottom: 10px; padding-bottom: 8px; }
  .section-title { font-size: 14px; }

  .news-grid-3 { grid-template-columns: 1fr; gap: 10px; }
  .news-card-img img { height: 180px; }
  .news-card-title { font-size: 14px; }
  .news-card-body { padding: 10px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .video-thumb img { height: 110px; }
  .video-card .card-title { font-size: 12px; }

  .news-list-img { width: 88px; height: 64px; }
  .news-list-title { font-size: 13px; }
  .news-list-item { padding: 10px 0; }

  .tab-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tab-nav::-webkit-scrollbar { display: none; }
  .tab-btn { padding: 8px 11px; font-size: 12px; white-space: nowrap; }

  .sidebar-widget { border-radius: 0; }
  .widget-title { font-size: 12px; padding: 9px 12px; }
  .trending-num { font-size: 18px; width: 24px; }
  .trending-title { font-size: 12px; }

  .post-title { font-size: 20px; line-height: 1.4; }
  .post-content { font-size: 15px; line-height: 1.8; }
  .post-content h2 { font-size: 18px; }
  .post-meta-bar { flex-wrap: wrap; gap: 8px; }
  .post-share { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-top { padding: 20px 0 16px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-about .footer-logo-img { height: 36px; }
  .footer-copyright { font-size: 11px; }

  #backToTop { bottom: 70px; right: 14px; width: 38px; height: 38px; font-size: 14px; }
}

/* ================================================
   SMALL MOBILE (≤480px)
================================================ */
@media (max-width: 480px) {
  .container { padding: 0 10px; }
  .mob-logo-img { height: 32px; max-width: 120px; }
  .hero-main img { height: 185px; }
  .hero-title { font-size: 15px; }
  .video-grid { grid-template-columns: 1fr; }
  .news-card-img img { height: 170px; }
  .section-block { padding: 10px; }
  .news-list-img { width: 80px; height: 58px; }
  .post-title { font-size: 18px; }
  .post-content { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ================================================
   VERY SMALL (≤380px)
================================================ */
@media (max-width: 380px) {
  .mob-logo-img { height: 28px; max-width: 110px; }
  .hero-main img { height: 165px; }
  .mob-live-badge { font-size: 9px; padding: 3px 6px; }
  .post-title { font-size: 16px; }
  .msn-item { font-size: 12px; padding: 10px 10px; }
}

/* ================================================
   SHORTS PAGE
================================================ */
.shorts-page {
  position: fixed;
  inset: 0;
  background: #f0f0f0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top bar */
.shorts-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  padding: 0 16px;
  height: 48px;
  border-bottom: 2px solid var(--red);
  flex-shrink: 0;
  z-index: 10;
}
.shorts-back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 18px;
  border-radius: 50%; background: var(--off-white);
  transition: background 0.15s;
}
.shorts-back:hover { background: var(--light-gray); color: var(--text); }
.shorts-topbar-title {
  font-family: var(--font-ui);
  font-size: 15px; font-weight: 800;
  color: var(--text); letter-spacing: 0.3px;
}
.shorts-share-top {
  width: 36px; height: 36px;
  background: none; border: none;
  color: var(--text); font-size: 17px;
  cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.shorts-share-top:hover { background: var(--off-white); }

/* Progress bar */
.shorts-progress-bar {
  height: 3px;
  background: var(--light-gray);
  flex-shrink: 0;
}
.shorts-progress-fill {
  height: 100%;
  background: var(--red);
  transition: width 0.3s ease;
  width: 0%;
}

/* Cards container */
.shorts-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Individual card */
.short-card {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.short-card.active { display: flex; }

/* Card image */
.short-card-img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 55vw;
  max-height: 320px;
  background: #eee;
  overflow: hidden;
}
.short-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.short-no-img {
  display: flex; align-items: center; justify-content: center;
  background: #e8e8e8; color: #bbb; font-size: 48px;
}

/* Site badge (top left circle) */
.short-site-badge {
  position: absolute;
  top: 12px; left: 12px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid white;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--font-hindi);
  font-size: 18px; font-weight: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Counter top right */
.short-counter {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* Card content */
.short-card-content {
  padding: 16px 16px 12px;
  flex: 1;
}

/* Title */
.short-title {
  font-family: var(--font-hindi);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--black);
  margin-bottom: 10px;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}
.short-title a { color: inherit; }
.short-title a:hover { color: var(--red); }

/* Meta */
.short-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.short-cat {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.short-dot {
  color: var(--mid-gray);
  font-size: 12px;
}
.short-time {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--mid-gray);
}

/* Excerpt */
.short-excerpt {
  font-family: var(--font-hindi);
  font-size: 15px;
  line-height: 1.75;
  color: var(--dark-gray);
  margin-bottom: 18px;
}

/* Actions */
.short-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
}
.short-read-btn {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: white;
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 700;
  padding: 9px 20px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}
.short-read-btn:hover { background: var(--red-dark); color: white; }
.short-share-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.short-share-btn:hover { background: var(--red); color: white; border-color: var(--red); }

/* Up/Down navigation arrows */
.short-nav {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}
.short-nav-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, color 0.15s;
}
.short-nav-btn:hover { background: var(--red); color: white; border-color: var(--red); }

/* ================================================
   SHARE SHEET
================================================ */
.share-sheet-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
  align-items: flex-end;
}
.share-sheet-overlay.open { display: flex; }
.share-sheet {
  background: white;
  width: 100%;
  border-radius: 16px 16px 0 0;
  padding: 0 0 24px;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.share-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 700;
  color: var(--text);
}
.share-sheet-header button {
  background: none; border: none;
  font-size: 18px; color: var(--text-light);
  cursor: pointer;
}
.share-sheet-options {
  display: flex;
  gap: 12px;
  padding: 20px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.share-opt {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  min-width: 64px;
  text-decoration: none;
  background: none; border: none; cursor: pointer;
}
.share-opt i {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white;
}
.share-opt span {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600;
  color: var(--text); white-space: nowrap;
}
.share-wa i  { background: #25D366; }
.share-fb i  { background: #1877F2; }
.share-tw i  { background: #000; }
.share-tg i  { background: #229ED9; }
.share-copy i { background: var(--dark-gray); }

/* Desktop shorts — centered card layout */
@media (min-width: 769px) {
  .shorts-page { position: relative; background: #f0f0f0; min-height: 100vh; }
  .shorts-container { overflow: visible; flex: unset; }
  .short-card {
    position: relative; display: none;
    max-width: 480px; margin: 20px auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
  }
  .short-card.active { display: flex; }
  .short-card-img-wrap { height: 280px; max-height: 280px; }
  .short-nav { right: -56px; }
  .short-nav-btn { width: 44px; height: 44px; font-size: 16px; }
}

/* ================================================
   REELS / YOUTUBE SHORTS PAGE
================================================ */
.reels-page {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top bar */
.reels-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  padding: 0 14px;
  height: 48px;
  flex-shrink: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.reels-back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
  border-radius: 50%; background: rgba(255,255,255,0.1);
  transition: background 0.15s;
}
.reels-back:hover { background: rgba(255,255,255,0.2); color: white; }
.reels-topbar-title {
  font-family: var(--font-ui);
  font-size: 15px; font-weight: 800;
  color: white;
}
.reels-yt-btn {
  display: flex; align-items: center; gap: 5px;
  background: #ff0000;
  color: white;
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 800;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}
.reels-yt-btn:hover { background: #cc0000; color: white; }

/* Empty state */
.reels-empty {
  flex: 1; display: flex;
  align-items: center; justify-content: center;
}
.reels-empty-inner {
  text-align: center; color: white; padding: 32px 24px;
}
.reels-empty-inner i { font-size: 64px; color: #ff0000; margin-bottom: 16px; display: block; }
.reels-empty-inner h3 { font-family: var(--font-hindi); font-size: 20px; margin-bottom: 10px; }
.reels-empty-inner p { font-family: var(--font-hindi); font-size: 14px; color: #aaa; margin-bottom: 20px; line-height: 1.7; }
.reels-setup-steps {
  text-align: left; margin: 20px 0;
  display: flex; flex-direction: column; gap: 16px;
}
.setup-step {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,0.05);
  border-radius: 8px; padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--red); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: 13px; font-weight: 800;
  flex-shrink: 0;
}
.setup-step strong { font-family: var(--font-ui); font-size: 13px; color: white; display: block; margin-bottom: 4px; }
.setup-step p { font-family: var(--font-ui); font-size: 12px; color: #aaa; margin: 0; line-height: 1.6; }
.setup-step a { color: #ff9800; }
.reels-setup-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: white;
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  padding: 11px 24px; border-radius: 4px;
  margin-top: 8px; transition: background 0.2s;
}
.reels-setup-btn:hover { background: var(--red-dark); color: white; }

/* Admin refresh bar */
.reels-admin-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
}
.reels-refresh-btn {
  background: var(--red); color: white; border: none;
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 4px; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: background 0.2s;
}
.reels-refresh-btn:hover { background: var(--red-dark); }
.reels-cache-info {
  font-family: var(--font-ui); font-size: 11px; color: #aaa;
}

/* Container */
.reels-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Individual reel */
.reel-item {
  position: absolute;
  inset: 0;
  display: none;
  background: #000;
}
.reel-item.active { display: block; }

/* YouTube iframe */
.reel-player-wrap {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.reel-iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}

/* Lazy thumbnail */
.reel-thumb-lazy {
  position: absolute; inset: 0;
  cursor: pointer;
}
.reel-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.reel-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35);
}
.reel-play-overlay i {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #333;
  padding-left: 4px;
}
.reel-shorts-badge {
  position: absolute;
  bottom: 80px; right: 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 4px;
}
.reel-shorts-badge i { color: #ff0000; }

/* Bottom info overlay */
.reel-info-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 60px;
  padding: 20px 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}
.reel-channel-row {
  display: flex; align-items: center; gap: 10px;
}
.reel-channel-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid white;
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--font-hindi);
  font-size: 16px; font-weight: 900;
  flex-shrink: 0;
}
.reel-channel-name {
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 700; color: white;
  flex: 1;
}
.reel-yt-link {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.15);
  color: white; font-family: var(--font-ui);
  font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  white-space: nowrap;
  transition: background 0.2s;
}
.reel-yt-link i { color: #ff0000; }
.reel-yt-link:hover { background: rgba(255,255,255,0.25); color: white; }

/* Side action buttons */
.reel-side-actions {
  position: absolute;
  right: 10px; bottom: 90px;
  display: flex; flex-direction: column;
  gap: 16px; align-items: center;
}
.reel-action-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  color: white; background: none; border: none;
  cursor: pointer; text-decoration: none;
  font-size: 10px; font-family: var(--font-ui); font-weight: 600;
}
.reel-action-btn i {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.reel-action-btn:hover i { background: rgba(255,255,255,0.3); }
.reel-action-btn span { color: rgba(255,255,255,0.9); font-size: 10px; }

/* Counter */
.reel-counter {
  position: absolute;
  top: 10px; right: 12px;
  background: rgba(0,0,0,0.55);
  color: white; font-family: var(--font-ui);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}

/* Nav up/down buttons */
.reels-nav-btns {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px;
  z-index: 5;
}
.reels-nav-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white; font-size: 15px;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.15s;
}
.reels-nav-btn:hover { background: rgba(255,255,255,0.3); }
.reels-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Progress dots */
.reels-dots {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 4px;
}
.reel-dot {
  width: 4px; height: 4px;
  border-radius: 50%; background: rgba(255,255,255,0.35);
  transition: all 0.2s;
}
.reel-dot.active {
  width: 4px; height: 16px;
  border-radius: 2px; background: white;
}

/* Desktop layout */
@media (min-width: 769px) {
  .reels-page { position: relative; min-height: 100vh; background: #0a0a0a; }
  .reels-container { min-height: calc(100vh - 48px); }
  .reel-item { position: relative; max-width: 400px; margin: 0 auto; height: calc(100vh - 48px); }
  .reel-player-wrap { position: relative; height: 100%; }
  .reels-nav-btns { right: calc(50% - 220px); }
  .reels-dots { left: calc(50% - 220px); }
}

/* ================================================
   CRICKET SECTION
================================================ */
.cricket-section { border-top: 3px solid #d0021b; }
.cricket-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cricket-svg-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.cricket-svg-icon svg {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
/* Footer cricket link SVG */
.footer-links li a svg {
  flex-shrink: 0;
}

/* ================================================
   UTILITIES
================================================ */
.text-red { color: var(--red); }
.bg-red { background: var(--red); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ================================================
   WP ALIGNMENT CLASSES
================================================ */
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--mid-gray); text-align: center; margin-top: 4px; }
