:root {
  --bg-page: #ffffff;
  --bg-subtle: #f6f7f9;
  --bg-elevated: #ffffff;
  --text-main: #18191b;
  --text-muted: #5f6368;
  --border-hairline: #e6e8ec;
  --bhaskar-orange: #f37021;
  --bhaskar-orange-dark: #d85a10;
  --bhaskar-orange-soft: #fff4ec;
  --shadow-card: 0 2px 10px rgba(15, 23, 42, 0.04);
}
html.dark {
  --bg-page: #111317;
  --bg-subtle: #191c22;
  --bg-elevated: #1e222a;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-hairline: #282c36;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.28);
}

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

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  padding-bottom: 62px;
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

img, iframe, video {
  display: block;
  max-width: 100%;
  height: auto;
}

.hidden {
  display: none !important;
}

/* Container */
.db-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 12px;
}
@media (min-width: 640px) {
  .db-container { padding: 0 18px; }
}

/* Sticky Editorial Header */
.db-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}
.db-header-inner {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 10px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
@media (min-width: 768px) {
  .db-header-inner { height: 62px; padding: 0 18px; gap: 12px; }
}

.db-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.db-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bhaskar-orange), var(--bhaskar-orange-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(243, 112, 33, 0.28);
}
@media (min-width: 768px) {
  .db-logo-icon { width: 36px; height: 36px; font-size: 19px; }
}
.db-logo-text {
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.2px;
}
@media (min-width: 768px) {
  .db-logo-text { font-size: 24px; }
}

.db-top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .db-top-nav { gap: 14px; }
}

.db-nav-link {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--text-main);
}
.db-nav-link:hover, .db-nav-link.active {
  color: var(--bhaskar-orange);
  background: var(--bhaskar-orange-soft);
}
@media (min-width: 768px) {
  .db-nav-link { display: inline-flex; }
}

.db-city-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bhaskar-orange-soft);
  color: var(--bhaskar-orange);
  border: 1px solid rgba(243, 112, 33, 0.32);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  max-width: 94px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-city-btn:hover {
  background: var(--bhaskar-orange);
  color: #fff;
}
@media (min-width: 640px) {
  .db-city-btn { max-width: none; padding: 6px 14px; font-size: 12.5px; }
}

.db-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bhaskar-orange);
  color: #fff;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(243, 112, 33, 0.24);
}
.db-login-btn:hover {
  background: var(--bhaskar-orange-dark);
}
@media (min-width: 640px) {
  .db-login-btn { padding: 7px 16px; font-size: 12.5px; }
}

.db-icon-btn {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}
.db-icon-btn:hover {
  border-color: var(--bhaskar-orange);
  color: var(--bhaskar-orange);
}

/* Breaking News Ticker */
.db-ticker-bar {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  padding: 5px 0;
  font-size: 12px;
}
html.dark .db-ticker-bar {
  background: #241912;
  border-bottom-color: #4a2c18;
}
.db-ticker-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.db-ticker-badge {
  background: var(--bhaskar-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

/* Mobile Category Strip */
.db-mobile-cats {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 12px;
  border-top: 1px solid var(--border-hairline);
  white-space: nowrap;
  scrollbar-width: none;
}
.db-mobile-cats::-webkit-scrollbar { display: none; }
.db-mobile-cats a {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-muted);
}
.db-mobile-cats a:hover, .db-mobile-cats a.active {
  color: var(--bhaskar-orange);
  border-bottom: 2px solid var(--bhaskar-orange);
  padding-bottom: 2px;
}
@media (min-width: 1024px) {
  .db-mobile-cats { display: none; }
}

/* Ad Slots */
.db-ad-wrap {
  width: 100%;
  padding: 8px 0;
  text-align: center;
}
.db-ad-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.db-ad-box {
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
  padding: 10px;
  background: var(--bg-subtle);
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

/* 3-Column Editorial Layout */
.db-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}
@media (min-width: 1024px) {
  .db-grid { grid-template-columns: 215px minmax(0, 1fr) 310px; }
}

.db-left-rail {
  display: none;
  padding: 14px 12px 14px 0;
}
@media (min-width: 1024px) {
  .db-left-rail { display: block; }
}
.db-left-sticky {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.db-cat-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.db-cat-item:hover {
  background: var(--bg-subtle);
  color: var(--bhaskar-orange);
  transform: translateX(2px);
}
.db-cat-item.active {
  background: var(--bhaskar-orange-soft);
  color: var(--bhaskar-orange);
  font-weight: 800;
}

.db-center-feed {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
}
@media (min-width: 1024px) {
  .db-center-feed {
    border-left: 1px solid var(--border-hairline);
    border-right: 1px solid var(--border-hairline);
    padding: 16px 22px;
  }
}

/* Lead Story Card */
.db-lead-card {
  width: 100%;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}
.db-original-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.db-lead-title {
  font-size: 19.5px;
  font-weight: 900;
  line-height: 1.38;
  color: var(--text-main);
  word-break: break-word;
}
.db-lead-title:hover {
  color: var(--bhaskar-orange);
}
@media (min-width: 640px) {
  .db-lead-title { font-size: 25px; }
}
.db-lead-img-wrap {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-subtle);
  width: 100%;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-card);
}
.db-lead-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.db-lead-card:hover .db-lead-img-wrap img {
  transform: scale(1.015);
}

.db-bullets {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.db-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.db-bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bhaskar-orange);
  margin-top: 7px;
  flex-shrink: 0;
}

/* Horizontal News Row */
.db-story-row {
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.db-story-body {
  flex: 1 1 0%;
  min-width: 0;
}
.db-story-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.42;
  color: var(--text-main);
  word-break: break-word;
}
.db-story-title:hover {
  color: var(--bhaskar-orange);
}
@media (min-width: 640px) {
  .db-story-title { font-size: 18px; }
}

.db-story-thumb {
  width: 98px;
  height: 68px;
  border-radius: 9px;
  overflow: hidden;
  flex: 0 0 98px;
  background: var(--bg-subtle);
  position: relative;
  border: 1px solid var(--border-hairline);
}
@media (min-width: 640px) {
  .db-story-thumb { width: 144px; height: 96px; flex: 0 0 144px; }
}
.db-story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Meta & Action Icons */
.db-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  font-size: 11px;
  color: var(--text-muted);
}
.db-share-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  flex-shrink: 0;
}
.db-share-actions button, .db-share-actions a {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.db-share-actions button:hover, .db-share-actions a:hover {
  color: var(--bhaskar-orange);
}

/* Web Stories & Short Videos Strips */
.db-strip-section {
  width: 100%;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-hairline);
}
.db-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.db-strip-head h3 {
  font-size: 15.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
}
.db-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
}
@media (min-width: 640px) {
  .db-strip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
}
.db-vertical-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 14;
  border-radius: 11px;
  overflow: hidden;
  background: #111317;
  box-shadow: var(--shadow-card);
}
.db-vertical-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.db-vertical-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.25) 100%);
  padding: 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.db-vertical-overlay p {
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

/* Right Editorial Widgets Rail */
.db-right-rail {
  width: 100%;
  min-width: 0;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
@media (min-width: 1024px) {
  .db-right-rail { padding: 16px 0 16px 18px; }
}
.db-widget {
  width: 100%;
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 14px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
}
.db-widget-title {
  font-size: 13.5px;
  font-weight: 900;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Poll Bar */
.db-poll-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-page);
  color: var(--text-main);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 7px;
}
.db-poll-btn:hover {
  border-color: var(--bhaskar-orange);
}
.db-poll-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--bhaskar-orange-soft);
  z-index: 0;
}
.db-poll-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* City Chips & Rashifal Strip */
.db-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.db-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
}
.db-chip:hover {
  background: var(--bhaskar-orange);
  color: #fff;
  border-color: var(--bhaskar-orange);
}

.db-rashi-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.db-rashi-strip::-webkit-scrollbar { display: none; }
.br-btn {
  flex-shrink: 0;
  width: 48px;
  padding: 6px 4px;
  border-radius: 10px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-page);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}
.br-btn.active {
  border-color: var(--bhaskar-orange);
  background: var(--bhaskar-orange-soft);
  color: var(--bhaskar-orange);
}

/* City Selector Modal */
#cityModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
#cityModal.hidden, #cityModal.db-modal-closed {
  display: none !important;
}
.db-modal-box {
  background: var(--bg-page);
  color: var(--text-main);
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-hairline);
}

/* Mobile Bottom App Bar */
.db-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  max-width: 100%;
  height: 54px;
  background: var(--bg-page);
  border-top: 1px solid var(--border-hairline);
  z-index: 50;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}
@media (min-width: 1024px) {
  .db-bottom-nav { display: none !important; }
}
.db-bottom-nav a {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
}
.db-bottom-nav a.active {
  color: var(--bhaskar-orange);
}
.db-bottom-nav i {
  font-size: 19px;
  line-height: 1.1;
}
