:root {
  --navy: #0a2540;
  --navy-deep: #06182b;
  --saffron: #ff671f;
  --india-green: #046a38;
  --brand: #0a2540;
  --brand-accent: #ff671f;
}

body { background-color: #f7f9fc; }

.brand-tricolor {
  height: 3px;
  background: linear-gradient(90deg, #ff671f 0 33.33%, #ffffff 33.33% 66.66%, #046a38 66.66% 100%);
}

.live-dot {
  width: 8px; height: 8px; border-radius: 999px; background: #fde047;
  box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.7);
  animation: pulseDot 1.4s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(253, 224, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(253, 224, 71, 0); }
}

.ticker-wrap { mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent); }
.ticker-track { animation: ticker 45s linear infinite; width: max-content; }
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* PWA install banner — visible after JS adds .is-visible */
.pwa-install-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(120%);
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
.pwa-install-banner.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}
.pwa-install-banner[hidden] {
  display: none !important;
}
.pwa-install-banner__inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #06182b;
  color: #e2e8f0;
  box-shadow: 0 12px 40px rgba(6, 24, 43, .45);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #ff671f 0 33%, #fff 33% 66%, #046a38 66% 100%) 1;
}
.pwa-install-banner__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  flex: 0 0 auto;
}
.pwa-install-banner__copy { flex: 1 1 140px; min-width: 0; }
.pwa-install-banner__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.pwa-install-banner__text {
  margin: 2px 0 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.35;
}
.pwa-install-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.pwa-install-banner__later {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font: 600 12px/1 "Noto Sans Devanagari", system-ui, sans-serif;
  padding: 8px 10px;
  cursor: pointer;
}
.pwa-install-banner__go {
  border: 0;
  border-radius: 999px;
  background: #ff671f;
  color: #fff;
  font: 800 12px/1 "Noto Sans Devanagari", system-ui, sans-serif;
  padding: 10px 14px;
  cursor: pointer;
}
.pwa-ios-hint {
  max-width: 480px;
  margin: 8px auto 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0a2540;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
}
.pwa-ios-hint[hidden] { display: none !important; }
.pwa-ios-hint strong { color: #fff; }
.pwa-install-btn.hidden { display: none !important; }

.section-title {
  font-family: "Tiro Devanagari Hindi", "Noto Sans Devanagari", serif;
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--navy);
}
.section-bar {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 3px solid var(--saffron); padding-bottom: 0.4rem; margin-bottom: 1rem;
}

.home-vertical-rail {
  padding: 1rem 1rem 0.75rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.home-vertical-rail--shorts {
  background: linear-gradient(180deg, #eef3f9 0%, #fff 55%);
  border-color: #d7e3f0;
}
.home-vertical-rail--reels {
  background: linear-gradient(180deg, #fff4ee 0%, #fff 55%);
  border-color: #ffd8c2;
}
.home-vertical-rail--stories {
  background: linear-gradient(180deg, #fff8e8 0%, #fff 55%);
  border-color: #f3e0a8;
}
.top-reel-widget {
  box-shadow: 0 10px 28px rgba(10, 37, 64, .08);
}

.story-img { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.group:hover .story-img { transform: scale(1.04); }

.prose-hi p { margin-bottom: 1.15rem; line-height: 1.85; font-size: 1.125rem; color: #1e293b; }
.prose-hi h2 { font-family: "Tiro Devanagari Hindi", serif; font-size: 1.5rem; margin: 1.5rem 0 0.75rem; }
.prose-hi a { color: #0a2540; text-decoration: underline; text-underline-offset: 3px; }

.webstory-card {
  aspect-ratio: 9/16;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  background: #0a2540;
}
.webstory-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(6, 24, 43, .88));
}

.brand-banner {
  position: relative;
  overflow: hidden;
  background: #0a2540;
}
.brand-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 140px;
  max-height: 220px;
}

.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }

/* Compact language switcher — top right */
.lang-switch {
  position: relative;
  z-index: 60;
}
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 28px;
  padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 103, 31, 0.65);
  background: rgba(255, 103, 31, 0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lang-switch__btn svg {
  width: 13px;
  height: 13px;
  color: #ff671f;
  flex: 0 0 auto;
}
.lang-switch__btn svg:last-child {
  width: 8px;
  height: 5px;
  color: rgba(255, 255, 255, 0.85);
}
.lang-switch__btn:hover,
.lang-switch.is-open .lang-switch__btn {
  background: #ff671f;
  border-color: #ff671f;
  box-shadow: 0 4px 14px rgba(255, 103, 31, 0.35);
}
.lang-switch__btn:hover svg,
.lang-switch.is-open .lang-switch__btn svg {
  color: #fff;
}
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 168px;
  max-height: 280px;
  overflow: auto;
  border-radius: 12px;
  background: #0a2540;
  border: 1px solid rgba(255, 103, 31, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.lang-switch__menu button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}
.lang-switch__menu button:hover,
.lang-switch__menu button.is-active {
  background: rgba(255, 103, 31, 0.2);
  color: #fff;
}

/* Kill Google Translate default UI completely */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-menu-frame,
#goog-gt-tt,
.goog-tooltip,
iframe.goog-te-banner-frame,
.goog-te-gadget {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body > .skiptranslate:not(#langMenu) {
  display: none !important;
}
body { top: 0 !important; }
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* Language menu (fixed portal — also inlined in header) */
#langMenu.lang-switch__menu {
  display: none;
  position: fixed;
  z-index: 99999;
}
#langMenu.lang-switch__menu.is-open {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .live-dot, .story-img { animation: none !important; transition: none !important; }
}

/* Share bar */
.share-bar {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef4fb 100%);
  border: 1px solid rgba(10, 37, 64, 0.08);
}
.share-bar--compact {
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.share-bar__head { margin-bottom: 0.75rem; }
.share-bar__title {
  font-weight: 800;
  color: #0a2540;
  font-size: 0.95rem;
  margin: 0;
}
.share-bar__sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}
.share-bar__label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0a2540;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.share-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.15rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 0;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.18);
  opacity: 0.95;
}
.share-btn svg { flex: 0 0 auto; }
.share-btn--native { background: #0a2540; }
.share-btn--wa { background: #25d366; }
.share-btn--fb { background: #1877f2; }
.share-btn--x { background: #111111; }
.share-btn--tg { background: #229ed9; }
.share-btn--copy { background: #ff671f; }
.share-btn--copy.is-copied { background: #046a38; }
.share-bar--compact .share-btn span { display: none; }
.share-bar--compact .share-btn { width: 2.15rem; padding: 0; justify-content: center; }
.share-bar--compact .share-btn--native span { display: none; }

@media (max-width: 640px) {
  .share-bar:not(.share-bar--compact) .share-btn span { display: none; }
  .share-bar:not(.share-bar--compact) .share-btn {
    width: 2.35rem;
    padding: 0;
    justify-content: center;
  }
}

/* Advertisement slots */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.5rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px dashed rgba(10, 37, 64, 0.12);
}
.ad-slot__label {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}
.ad-slot__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ad-slot__link {
  display: block;
  width: 100%;
  max-width: 970px;
}
.ad-slot__img {
  display: block;
  width: 100%;
  max-width: 970px;
  height: auto;
  margin: 0 auto;
  border-radius: 0.35rem;
  object-fit: contain;
  background: #f8fafc;
}
.ad-slot--box .ad-slot__link,
.ad-slot--box .ad-slot__img {
  max-width: 300px;
}
.ad-slot__html {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.ad-slot--cover-fill {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.ad-slot--cover-fill .ad-slot__inner {
  flex: 1;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot--cover-fill .ad-slot__label {
  margin: 0;
  padding: 0.25rem 0.5rem;
}
.ad-slot--adsense .adsbygoogle {
  min-width: 100%;
}


/* Professional pagination — always horizontal controls */
.pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2.5rem;
  width: 100%;
  clear: both;
  grid-column: 1 / -1;
}
.pager__meta {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}
.pager__controls {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
}
.pager__pages {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pager__pages > li {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0a2540;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: border-color .15s, background .15s, color .15s;
}
.pager__btn:hover {
  border-color: #0a2540;
  color: #0a2540;
}
.pager__btn.is-active {
  background: #0a2540;
  border-color: #0a2540;
  color: #fff;
  cursor: default;
}
.pager__btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.pager__btn--nav {
  min-width: auto;
  padding: 0 0.95rem;
}
.pager__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.05em;
  user-select: none;
}
.pager--admin {
  margin-top: 1.5rem;
  align-items: flex-start;
}
.pager--admin .pager__controls {
  justify-content: flex-start;
}
.pager--admin .pager__btn.is-active {
  background: #0a2540;
}
@media (max-width: 640px) {
  .pager__meta { font-size: 11px; }
  .pager__btn {
    min-width: 2.1rem;
    height: 2.1rem;
    font-size: 0.8rem;
  }
}

/* Site social icons (brand channels) */
.site-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.site-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background .15s, transform .15s, color .15s;
}
.site-social svg {
  width: 1rem;
  height: 1rem;
}
.site-social:hover {
  transform: translateY(-1px);
  background: #ff671f;
  color: #fff;
}
.site-socials--header .site-social {
  width: 1.7rem;
  height: 1.7rem;
  background: rgba(255, 255, 255, 0.1);
}
.site-socials--header .site-social svg {
  width: 0.85rem;
  height: 0.85rem;
}
.site-socials--inline .site-social,
.site-socials--footer .site-social {
  background: #0a2540;
}
.site-socials--inline .site-social:hover,
.site-socials--footer .site-social:hover {
  background: #ff671f;
}
.site-social--fb { background: #1877f2; }
.site-social--x { background: #111; }
.site-social--ig { background: #e1306c; }
.site-social--yt { background: #ff0000; }
.site-social--wa { background: #25d366; }
.site-social--tg { background: #229ed9; }
.site-social--in { background: #0a66c2; }
.site-social--th { background: #111; }
.site-socials--header .site-social--fb,
.site-socials--header .site-social--x,
.site-socials--header .site-social--ig,
.site-socials--header .site-social--yt,
.site-socials--header .site-social--wa,
.site-socials--header .site-social--tg,
.site-socials--header .site-social--in,
.site-socials--header .site-social--th {
  background: rgba(255, 255, 255, 0.12);
}
.site-socials--header .site-social:hover {
  background: #ff671f;
}

