/* BBS Video Stories – every rule is scoped under .bbs-vs so it won't clash with the site theme */


.bbs-vs {
  --bbs-blue: #1565d8;
  --bbs-blue-dark: #0f4fb0;
  --bbs-ink: #14171f;
  --bbs-muted: #4a5263;
  --bbs-line: #dde1e8;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(20px, 4cqi, 48px) clamp(16px, 5cqi, 64px);
  container-type: inline-size;
  container-name: bbsvs;
  box-sizing: border-box;
  font-family: inherit;
  color: var(--bbs-ink);
  background: #f4f5f7;
}
.bbs-vs *, .bbs-vs *::before, .bbs-vs *::after { box-sizing: border-box; }
.bbs-vs a { color: var(--bbs-blue-dark); }
.bbs-vs a:hover { color: #0b3a82; }
.bbs-vs button { font-family: inherit; }
.bbs-vs button:focus-visible, .bbs-vs a:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }

.bbs-vs__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  border-bottom: 2px solid var(--bbs-ink); padding-bottom: 14px; margin-bottom: 24px;
}
.bbs-vs__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bbs-blue-dark); }
.bbs-vs__title { margin: 4px 0 0; font-size: 40px; font-weight: 600; line-height: 1; }

.bbs-vs__cats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bbs-vs__chip {
  min-height: 36px; padding: 0 14px; border-radius: 18px; font-size: 14px; font-weight: 500; cursor: pointer;
  background: #fff; color: var(--bbs-ink); border: 1px solid #c9ced8;
}
.bbs-vs__chip[aria-pressed="true"] { background: var(--bbs-ink); color: #fff; border-color: var(--bbs-ink); }

.bbs-vs__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); gap: 32px; }

.bbs-vs__player { position: relative; aspect-ratio: 16 / 9; background: #0b1220; border-radius: 12px; overflow: hidden; }
.bbs-vs__player iframe, .bbs-vs__player .bbs-vs__yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bbs-vs__missing {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #c3cad8; text-align: center; padding: 24px; background: #0b1220;
}
.bbs-vs__missing[hidden] { display: none; }
.bbs-vs__missing p { margin: 4px 0; }
.bbs-vs__missing-small { font-size: 14px; color: #8a96ad; }

.bbs-vs__info { margin-top: 16px; }
.bbs-vs__meta { display: flex; gap: 10px; font-size: 13px; color: var(--bbs-muted); }
.bbs-vs__cat { font-weight: 600; color: var(--bbs-blue-dark); text-transform: uppercase; letter-spacing: .06em; }
.bbs-vs__story { margin: 6px 0; font-size: 28px; font-weight: 600; line-height: 1.2; }
.bbs-vs__read { font-size: 14px; font-weight: 500; }

.bbs-vs__side-head {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px;
  font-size: 13px;
}
.bbs-vs__side-head span { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bbs-muted); }
.bbs-vs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bbs-vs__list[data-empty]::after { content: "No video stories in this category yet."; color: var(--bbs-muted); font-size: 14px; }

.bbs-vs__item {
  width: 100%; min-height: 76px; display: flex; gap: 14px; align-items: center; padding: 10px; text-align: left;
  border-radius: 10px; cursor: pointer; background: #fff; border: 1px solid var(--bbs-line);
}
.bbs-vs__item:hover { border-color: #9fb6d8; }
.bbs-vs__item[aria-current="true"] { background: #e6effc; border-color: var(--bbs-blue); }
.bbs-vs__thumb {
  position: relative; width: 112px; aspect-ratio: 16 / 9; flex-shrink: 0; border-radius: 6px; overflow: hidden;
  background: #394766 center / cover no-repeat; display: flex; align-items: center; justify-content: center;
}
.bbs-vs__thumb svg { position: relative; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.bbs-vs__bars { display: none; gap: 3px; align-items: flex-end; height: 16px; position: relative; }
.bbs-vs__bars span { width: 3px; background: #fff; border-radius: 1px; animation: bbs-eq 0.9s ease-in-out infinite; }
.bbs-vs__bars span:nth-child(2) { animation-delay: .2s; }
.bbs-vs__bars span:nth-child(3) { animation-delay: .4s; }
@keyframes bbs-eq { 0%,100% { height: 5px; } 50% { height: 16px; } }
.bbs-vs__item[aria-current="true"].is-playing .bbs-vs__bars { display: flex; }
.bbs-vs__item[aria-current="true"].is-playing .bbs-vs__play { display: none; }
.bbs-vs__item-meta { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #5b6374; }
.bbs-vs__item[aria-current="true"] .bbs-vs__item-meta { color: var(--bbs-blue-dark); }
.bbs-vs__item-title { font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--bbs-ink); margin-top: 4px; }

@media (prefers-reduced-motion: reduce) { .bbs-vs__bars span { animation: none; height: 12px; } }

/* Narrow container (phone, or a narrow content column): stack the list under the player */
@container bbsvs (max-width: 860px) {
  .bbs-vs__head { flex-direction: column; align-items: flex-start; }
  .bbs-vs__cats { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
  .bbs-vs__chip { flex-shrink: 0; }
  .bbs-vs__body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bbs-vs__title { font-size: 32px; }
  .bbs-vs__story { font-size: 22px; }
  .bbs-vs__list { max-height: none; }
}
@container bbsvs (max-width: 420px) {
  .bbs-vs__thumb { width: 96px; }
}
/* Fallback for very old browsers without container queries */
@supports not (container-type: inline-size) {
  @media (max-width: 960px) {
    .bbs-vs__body { grid-template-columns: minmax(0, 1fr); }
  }
}

/* Guard against theme (JNews/Elementor) styles leaking in */
.bbs-vs h2.bbs-vs__title, .bbs-vs h3.bbs-vs__story { text-transform: none; letter-spacing: normal; color: var(--bbs-ink); padding: 0; border: 0; }
.bbs-vs h3.bbs-vs__story { margin: 6px 0; }
.bbs-vs button.bbs-vs__chip, .bbs-vs button.bbs-vs__item { box-shadow: none; text-transform: none; letter-spacing: normal; line-height: 1.3; margin: 0; height: auto; }
.bbs-vs button.bbs-vs__chip { color: var(--bbs-ink); background: #fff; }
.bbs-vs button.bbs-vs__chip[aria-pressed="true"] { color: #fff; background: var(--bbs-ink); }
.bbs-vs button.bbs-vs__item { color: var(--bbs-ink); background: #fff; }
.bbs-vs button.bbs-vs__item[aria-current="true"] { background: #e6effc; }
.bbs-vs__list li { margin: 0; padding: 0; list-style: none; }
.bbs-vs__list li::before { content: none; }
.bbs-vs__item-text { display: flex; flex-direction: column; min-width: 0; }
.bbs-vs__item-title { display: block; }
.bbs-vs__list { max-height: 560px; overflow-y: auto; }

/* Video layers: YouTube and Facebook */
.bbs-vs__layer { position: absolute; inset: 0; }
.bbs-vs__player iframe.bbs-vs__fb { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.bbs-vs__player video.bbs-vs__file { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.bbs-vs__ext { font-size: 14px; font-weight: 500; }
.bbs-vs__read { margin-right: 16px; }
.bbsvs-replaced.alignfull .bbs-vs { max-width: none; }

/* ---------- Poster, like YouTube's own embed before it plays ---------- */
.bbs-vs__poster { position: absolute; inset: 0; cursor: pointer; background: #0b1220 center / cover no-repeat; }
.bbs-vs__ov-top {
  position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 12px;
  padding: 16px 20px 40px; background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,0)); color: #fff; pointer-events: none;
}
.bbs-vs__ov-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: #fff; }
.bbs-vs__ov-text { min-width: 0; }
.bbs-vs__ov-title { font-size: 18px; line-height: 1.35; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,.5); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bbs-vs__ov-channel { font-size: 14px; opacity: .9; margin-top: 2px; }
.bbs-vs button.bbs-vs__poster-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0; margin: 0; border: 0; background: none; cursor: pointer; line-height: 0;
}
.bbs-vs__poster-play.is-yt svg { width: 68px; height: 48px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.bbs-vs__poster:hover .bbs-vs__poster-play.is-yt svg { transform: scale(1.06); }
.bbs-vs__poster-btn {
  width: 84px; height: 84px; border-radius: 50%; background: rgba(21,101,216,.92);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0,0,0,.45);
}
.bbs-vs__poster-btn svg { margin-left: 4px; }
.bbs-vs a.bbs-vs__watch {
  position: absolute; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; background: rgba(23,23,23,.8); color: #fff; text-decoration: none;
  font-size: 17px; line-height: 1; border: 2px solid transparent;
}
.bbs-vs a.bbs-vs__watch strong { font-weight: 600; letter-spacing: -.2px; }
.bbs-vs a.bbs-vs__watch:hover, .bbs-vs a.bbs-vs__watch:focus-visible { background: #000; border-color: #3ea6ff; color: #fff; }
@container bbsvs (max-width: 520px) {
  .bbs-vs__ov-title { font-size: 15px; } .bbs-vs a.bbs-vs__watch { font-size: 14px; padding: 8px 12px; right: 12px; bottom: 12px; }
  .bbs-vs__poster-btn { width: 64px; height: 64px; }
}

/* ---------- Dzongkha (Tibetan script) ---------- */
.bbs-vs:is(:lang(dz),:lang(dzo)), .bbs-vs:lang(bo) {
  --bbs-tibetan-fallback: "BBS Dzongkha", "Jomolhari", "Noto Serif Tibetan", "DDC Uchen", "Microsoft Himalaya", "Tibetan Machine Uni", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}
.bbs-vs:is(:lang(dz),:lang(dzo)) .bbs-vs__item-title, .bbs-vs:is(:lang(dz),:lang(dzo)) .bbs-vs__story, .bbs-vs:is(:lang(dz),:lang(dzo)) .bbs-vs__title,
.bbs-vs:is(:lang(dz),:lang(dzo)) .bbs-vs__side-head span, .bbs-vs:is(:lang(dz),:lang(dzo)) .bbs-vs__item-meta, .bbs-vs:is(:lang(dz),:lang(dzo)) .bbs-vs__read, .bbs-vs:is(:lang(dz),:lang(dzo)) .bbs-vs__ext,
.bbs-vs:lang(bo) .bbs-vs__item-title, .bbs-vs:lang(bo) .bbs-vs__story {
  font-family: var(--bbs-tibetan, var(--bbs-tibetan-fallback));
}
/* Tibetan script needs more line height and reads better slightly larger */
.bbs-vs:is(:lang(dz),:lang(dzo)) .bbs-vs__item-title { font-size: 17px; line-height: 1.7; }
.bbs-vs:is(:lang(dz),:lang(dzo)) .bbs-vs__story { line-height: 1.6; }
.bbs-vs:is(:lang(dz),:lang(dzo)) .bbs-vs__item-meta { text-transform: none; letter-spacing: 0; }

/* ---------- Dark style (style="dark"), like the theme's players ---------- */
.bbs-vs.bbs-vs--dark {
  --bbs-ink: #ffffff; --bbs-muted: #b9c0cc; --bbs-line: #2a2d33;
  background: #000; color: #fff;
}
.bbs-vs--dark .bbs-vs__head { border-bottom-color: #3a3d44; }
.bbs-vs--dark a { color: #7fb2ff; }
.bbs-vs--dark a:hover { color: #b3d1ff; }
.bbs-vs--dark .bbs-vs__eyebrow, .bbs-vs--dark .bbs-vs__cat, .bbs-vs--dark .bbs-vs__item[aria-current="true"] .bbs-vs__item-meta { color: #fff; }
.bbs-vs--dark .bbs-vs__meta { color: #b9c0cc; }
.bbs-vs--dark .bbs-vs__player { border-radius: 0; }
.bbs-vs--dark .bbs-vs__side { background: #161616; padding: 0 0 8px; align-self: stretch; }
.bbs-vs--dark .bbs-vs__side-head { padding: 14px 16px 0; }
.bbs-vs--dark .bbs-vs__side-head span { color: #b9c0cc; }
.bbs-vs--dark .bbs-vs__list { gap: 0; }
.bbs-vs--dark button.bbs-vs__item { background: transparent; border: 0; border-bottom: 1px solid #2a2d33; border-radius: 0; padding: 14px 16px; color: #fff; }
.bbs-vs--dark button.bbs-vs__item:hover { background: #22252b; }
.bbs-vs--dark button.bbs-vs__item[aria-current="true"] { background: #1565d8; }
.bbs-vs--dark .bbs-vs__item-title { color: #fff; }
.bbs-vs--dark .bbs-vs__item-meta { color: #a9b1bd; }
.bbs-vs--dark button.bbs-vs__chip { background: transparent; color: #fff; border-color: #555a63; }
.bbs-vs--dark button.bbs-vs__chip[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.bbs-vs--dark .bbs-vs__poster { background-color: #000; }
/* Without a heading, the dark section sits flush like the theme's players */
.bbs-vs--dark:not(:has(.bbs-vs__head)) { padding-top: 24px; padding-bottom: 24px; }
.bbs-vs__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@container bbsvs (min-width: 861px) {
  .bbs-vs--dark .bbs-vs__body { gap: 0; }
  .bbs-vs--dark .bbs-vs__side .bbs-vs__list { max-height: 520px; }
}

/* ---------- Dark style: match the theme's "Currently Playing" players ---------- */
.bbs-vs.bbs-vs--dark { padding: 24px 0; }
.bbs-vs--dark .bbs-vs__info, .bbs-vs--dark .bbs-vs__side-head { display: none; }
@container bbsvs (min-width: 861px) {
  .bbs-vs--dark .bbs-vs__body { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0; }
  /* the list is exactly as tall as the video and scrolls */
  .bbs-vs--dark .bbs-vs__side { height: 0; min-height: 100%; display: flex; flex-direction: column; padding: 0; }
  .bbs-vs--dark .bbs-vs__side .bbs-vs__list { flex: 1 1 auto; max-height: none; overflow-y: auto; }
}
.bbs-vs--dark .bbs-vs__side { background: #161616; }
.bbs-vs--dark .bbs-vs__list::-webkit-scrollbar { width: 8px; }
.bbs-vs--dark .bbs-vs__list::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 4px; }
.bbs-vs--dark button.bbs-vs__item { padding: 16px 22px; gap: 20px; border-bottom: 1px solid #2a2a2a; align-items: center; position: relative; }
.bbs-vs--dark .bbs-vs__thumb { width: 128px; background-color: #000; border-radius: 0; }
.bbs-vs--dark .bbs-vs__thumb .bbs-vs__play, .bbs-vs--dark .bbs-vs__thumb .bbs-vs__bars { display: none !important; }
/* title first, then the date (like the theme's durations) */
.bbs-vs--dark .bbs-vs__item-text { gap: 6px; }
.bbs-vs--dark .bbs-vs__item-title { order: 1; font-size: 17px; font-weight: 700; line-height: 1.45; margin: 0; }
.bbs-vs--dark .bbs-vs__item-meta { order: 2; font-size: 15px; font-weight: 400; text-transform: none; letter-spacing: 0; color: #9a9a9a; }
/* current video: blue bar with "Currently Playing", the title and a big play circle (no picture) */
.bbs-vs--dark button.bbs-vs__item[aria-current="true"] { background: #1565d8; padding: 20px 110px 20px 22px; min-height: 96px; overflow: hidden; }
.bbs-vs--dark .bbs-vs__item[aria-current="true"] .bbs-vs__thumb { display: none; }
.bbs-vs--dark .bbs-vs__item[aria-current="true"] .bbs-vs__item-meta { order: 0; color: #e8f0ff; font-size: 17px; }
.bbs-vs--dark .bbs-vs__item[aria-current="true"] .bbs-vs__item-title { font-weight: 700; }
.bbs-vs__now-icon { display: none; }
.bbs-vs--dark .bbs-vs__item[aria-current="true"] .bbs-vs__now-icon {
  display: flex; position: absolute; right: -18px; top: 50%; transform: translateY(-50%);
  width: 118px; height: 118px; border-radius: 50%; background: rgba(255,255,255,.45); align-items: center; justify-content: center;
}
.bbs-vs--dark .bbs-vs__now-icon svg { width: 52px; height: 52px; margin-right: 14px; }
/* Dzongkha text: always the font's own regular letters, never a browser-made bold or slant
   (a fake bold distorts the brackets, slashes and numbers). Wins over every bold rule above. */
.bbs-vs:is(:lang(dz),:lang(dzo)) :is(.bbs-vs__item-title, .bbs-vs__ov-title, .bbs-vs__story, .bbs-vs__title),
.bbs-vs.bbs-vs--dark:is(:lang(dz),:lang(dzo)) .bbs-vs__item[aria-current="true"] .bbs-vs__item-title {
  font-weight: 400; font-style: normal; font-synthesis: none;
}
