/* 2020Bharat engagement — Surprise, newsletter, shorts. Scoped, no theme rewrite. */

.bb-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.bb-surprise,
.bb-surprise-panel {
  background: var(--trend-elev, #12141a);
  border: 1px solid var(--trend-line, rgba(244,240,230,.1));
  border-radius: 20px;
  padding: 22px;
}

.bb-surprise-panel p { color: var(--trend-muted, #9b9588); max-width: 52ch; }

.bb-surprise-toolbar,
.bb-surprise-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.bb-surprise-go,
.bb-surprise-actions a,
.bb-surprise-actions button,
.bb-surprise-explore,
.bb-nl-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  font: 700 14px/1 var(--trend-sans, inherit);
  cursor: pointer;
  text-decoration: none;
}

.bb-surprise-go { background: var(--trend-accent, #ff6a2a); color: #140801 !important; }
.bb-surprise-explore,
.bb-surprise-actions button,
.bb-surprise-actions a.bb-surprise-ghost {
  background: rgba(244,240,230,.08);
  color: var(--trend-ink, #f4f0e6);
}

.bb-surprise-actions a.bb-surprise-read {
  background: var(--trend-accent, #ff6a2a);
  color: #140801 !important;
}

.bb-surprise-slot { margin-top: 22px; }
.bb-surprise-slot[hidden] { display: none !important; }

.bb-surprise-card {
  max-width: 860px;
}

.bb-surprise-kicker {
  margin: 0 0 10px;
  color: #7ec8ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bb-surprise-media {
  margin: 0 0 18px;
  background: #0b0c0f;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: min(52vh, 460px);
}

.bb-surprise-media img {
  width: 100%;
  height: auto;
  max-height: min(52vh, 460px);
  object-fit: contain !important;
  background: #0b0c0f;
  border-radius: 0;
}

.bb-surprise-body h3 {
  font-family: var(--trend-serif, Georgia, serif);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin: 10px 0 8px;
}

.bb-surprise-meta {
  color: var(--trend-muted, #9b9588);
  font-size: 13px;
  margin: 0 0 12px;
}

.bb-surprise-excerpt {
  color: #d7d0c3;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 62ch;
}

.bb-surprise-related {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--trend-line, rgba(244,240,230,.1));
}

.bb-surprise-related h4 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--trend-muted);
}

.bb-surprise-related a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--trend-line);
}

.bb-surprise-searching {
  color: var(--trend-ink);
  font-weight: 700;
}

.trend-root .gp-surprise-slot .bb-card.gp-surprise-card,
.trend-root .bb-surprise-card.bb-card {
  background: transparent;
}

.trend-root .gp-surprise-slot .bb-surprise-media img,
.trend-root .bb-surprise-card img {
  height: auto !important;
  object-fit: contain !important;
}

.bb-today-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.bb-today-list a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background: var(--trend-elev);
  border: 1px solid var(--trend-line);
  border-radius: 14px;
}

.bb-today-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--trend-accent-soft);
  color: var(--trend-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.bb-today-copy {
  display: grid;
  gap: 4px;
}

.bb-today-copy strong { font-size: 17px; letter-spacing: -.02em; }
.bb-today-meta { color: var(--trend-muted); font-size: 13px; }

.bb-sixty-grid,
.bb-minute-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 800px) {
  .bb-sixty-grid { grid-template-columns: 1fr 1fr; }
  .bb-minute-grid { grid-template-columns: repeat(3, 1fr); }
  .bb-today-list { grid-template-columns: 1fr 1fr; }
}

.bb-sixty-card,
.bb-minute-card {
  background: var(--trend-elev);
  border: 1px solid var(--trend-line);
  border-radius: 16px;
  padding: 18px;
}

.bb-sixty-card h3,
.bb-minute-card strong {
  font-family: var(--trend-serif);
  font-size: 22px;
  letter-spacing: -.03em;
  display: block;
  margin: 6px 0 12px;
}

.bb-sixty-card ul { margin: 0 0 16px; padding-left: 18px; color: #d7d0c3; }
.bb-sixty-card li { margin: 0 0 8px; }
.bb-sixty-more { color: var(--trend-accent) !important; font-weight: 700; }
.bb-minute-card span { color: var(--trend-muted); font-size: 13px; }

.bb-shorts-scroller { position: relative; }
.bb-shorts-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 12px;
  scrollbar-width: thin;
}

.bb-short-card {
  flex: 0 0 min(72vw, 240px);
  scroll-snap-align: start;
}

.bb-short-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #171920;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

.bb-short-media img,
.bb-short-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bb-short-fallback { background: linear-gradient(160deg, #1a2236, #ff6a2a 140%); }
.bb-short-play {
  position: absolute;
  inset: auto auto 14px 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(20,8,1,.82);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.bb-short-platform {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11,12,15,.78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}
.bb-short-chip { margin: 10px 0 4px; font-size: 12px; color: var(--trend-muted); }
.bb-short-card h3 { font-size: 15px; line-height: 1.35; margin: 0 0 4px; }
.bb-short-meta { margin: 0; color: var(--trend-muted); font-size: 12px; }

.bb-shorts-nav {
  display: none;
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #f4f0e6;
  color: #140801;
  cursor: pointer;
}
.bb-shorts-prev { left: -8px; }
.bb-shorts-next { right: -8px; }
@media (min-width: 900px) {
  .bb-shorts-nav { display: inline-flex; align-items: center; justify-content: center; }
  .bb-short-card { flex-basis: 220px; }
}

.bb-short-overlay {
  position: fixed;
  inset: 0;
  z-index: 13000;
  background: rgba(8,10,14,.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.bb-short-overlay[hidden] { display: none !important; }
.bb-short-dialog {
  width: min(420px, 100%);
  background: #12141a;
  border-radius: 18px;
  padding: 10px 12px 14px;
  position: relative;
}
.bb-short-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}
.bb-short-frame {
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.bb-short-frame iframe { width: 100%; height: 100%; border: 0; }
.bb-short-dialog h2 { font-size: 16px; margin: 0; flex: 1; line-height: 1.3; }
.bb-short-why { margin: 10px 4px 4px; }
.bb-short-why-kicker { color: var(--trend-accent); font-weight: 700; margin: 0 0 6px; }
.bb-short-close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(244,240,230,.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.bb-nl {
  margin: 10px 0 12px;
}
.bb-nl-footer-label {
  margin: 0 0 8px;
  color: var(--trend-accent, #ff6a2a);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bb-nl-form { display: flex; flex-wrap: nowrap; gap: 6px; max-width: 320px; }
.bb-nl-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(244,240,230,.16);
  background: rgba(11,12,15,.45);
  color: #f4f0e6;
  padding: 0 12px;
  font-size: 13px;
}
.bb-nl-form button {
  min-height: 38px;
  padding: 0 14px;
  background: #f4f0e6;
  color: #140801;
  flex: 0 0 auto;
}
.bb-nl-msg { margin: 8px 0 0; font-size: 12px; color: var(--trend-muted, #9b9588); }
.bb-nl-msg.is-ok { color: #6fd3b2; }
.bb-nl-msg.is-err { color: #ff8d6b; }
.bb-nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

.bb-nl-pop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10500;
  width: min(360px, calc(100% - 24px));
  background: #17120e;
  color: #f4f0e6;
  border: 1px solid rgba(255,106,42,.35);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.bb-nl-pop[hidden] { display: none !important; }
.bb-nl-pop h3 { margin: 0 0 6px; font-size: 18px; }
.bb-nl-pop p { margin: 0 0 12px; color: #c8c2b6; font-size: 14px; }
.bb-nl-pop-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: #c8c2b6; font-size: 22px; cursor: pointer; }

.bb-continue-cta { margin-top: 22px; }
.bb-article-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}
.bb-article-tools button {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--trend-line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 600;
}

.bb-shorts-page { padding: 12px 0 48px; }
.bb-shorts-feed {
  display: grid;
  gap: 18px;
  max-width: 420px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .bb-surprise-panel, .bb-surprise { padding: 16px; }
  .bb-today-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .bb-shorts-track { scroll-behavior: auto; }
}
