/* ndtv-theme.css — NDTV-inspired homepage enhancements:
   live ribbon, ranked "most read" widget, web-stories section spacing,
   and small polish on existing badges/labels. Loaded after news-pro.css
   so it can extend, not fight, the existing design system. */

/* ── Live ribbon ───────────────────────────────────────────────────────── */
.fp-live-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px auto;
  padding: 10px 14px;
  background: #1a1a1a;
  border-radius: var(--radius);
  color: #fff;
}
.fp-live-ribbon__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.fp-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: fpLivePulse 1.4s infinite;
}
@keyframes fpLivePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.fp-live-ribbon__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fp-live-ribbon__text strong {
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-live-ribbon__text span {
  font-size: 12px;
  color: #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-live-ribbon__more {
  flex-shrink: 0;
  color: #fff;
  font-size: 12px;
  text-decoration: underline;
  white-space: nowrap;
}

/* ── Web Stories homepage section ─────────────────────────────────────── */
.fp-home-stories {
  margin: 6px auto 18px;
}
.fp-home-stories .web-stories-rail {
  padding-top: 4px;
}

/* ── Ranked "most read" widget (NDTV trending sidebar) ───────────────────── */
.fp-ranked-list {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 14px 14px 6px;
  margin-bottom: 16px;
}
.fp-section-label--ranked {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
}
.fp-ranked-list ol {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.fp-ranked-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-bg-alt);
}
.fp-ranked-list li:last-child { border-bottom: none; }
.fp-rank-number {
  flex-shrink: 0;
  font-family: var(--font-english);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-text-light);
  width: 26px;
  line-height: 1;
}
.fp-ranked-list li.is-top .fp-rank-number {
  color: var(--color-primary);
}
.fp-ranked-list li a {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--color-text);
  text-decoration: none;
}
.fp-ranked-list li a:hover { color: var(--color-primary); }

/* ── Small polish on existing elements ────────────────────────────────── */
.nav-special--stories {
  color: #b3001b !important;
  font-weight: 700;
}
.theme-toggle-btn { position: relative; }
.theme-icon { display: inline-block; }
html[data-theme="light"] .theme-icon--dark,
html:not([data-theme]) .theme-icon--dark { display: none; }
html[data-theme="dark"] .theme-icon--light { display: none; }

@media (max-width: 720px) {
  .fp-live-ribbon__text span { display: none; }
}
