/**
 * BoloBolo Show - Modern Web Layout Shell (Phase 1)
 * Modeled after the Flutter Web Experience (https://mobi.boloboloshow.com)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Gurmukhi:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-gurmukhi: 'Noto Sans Gurmukhi', var(--font-sans);

  /* Colors (Light Default) */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-surface-hover: #f8fafc;
  --bg-surface-translucent: rgba(255, 255, 255, 0.94);
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Brand Accents */
  --brand-red: #dc2626;
  --brand-red-hover: #b91c1c;
  --brand-orange: #c45115;
  --brand-amber-bg: #fef3c7;
  --brand-amber-border: #fde68a;
  --brand-amber-text: #92400e;
  --fab-amber-border: #f59e0b;

  /* Status Colors */
  --emerald-green: #16a34a;
  --emerald-green-dark: #15803d;
  --emerald-bg: #ecfdf5;
  --emerald-progress: #bbf7d0;
  --neutral-progress: #f1f5f9;

  /* Typography Colors */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-disabled: #94a3b8;

  /* Shadows */
  --shadow-pill: 0 4px 16px -1px rgba(0, 0, 0, 0.07), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-fab: 0 8px 20px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.08);

  /* Radii */
  --radius-full: 9999px;
  --radius-3xl: 1.5rem;
  --radius-2xl: 1.125rem;
  --radius-xl: 0.875rem;
  --radius-lg: 0.625rem;
}

/* ==========================================================================
   THEME MODES & PRESETS (Flutter AppTheme Parity)
   ========================================================================== */
html[data-theme="dark"] {
  --bg-canvas: #0f0f14;
  --bg-surface: #161622;
  --bg-surface-subtle: #1c1c2a;
  --bg-surface-hover: #222232;
  --bg-surface-translucent: rgba(22, 22, 34, 0.94);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);

  --brand-orange: #ffb300;
  --brand-amber-bg: rgba(255, 179, 0, 0.15);
  --brand-amber-border: rgba(255, 179, 0, 0.4);
  --brand-amber-text: #fcd34d;
  --fab-amber-border: #ffb300;

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-subtle: #94a3b8;
  --text-disabled: #64748b;

  --emerald-progress: rgba(22, 163, 74, 0.35);
  --neutral-progress: rgba(255, 255, 255, 0.08);

  --shadow-pill: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 12px 30px rgba(0, 0, 0, 0.6);
  --shadow-fab: 0 8px 24px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg-canvas: #0f0f14;
    --bg-surface: #161622;
    --bg-surface-subtle: #1c1c2a;
    --bg-surface-hover: #222232;
    --bg-surface-translucent: rgba(22, 22, 34, 0.94);
    --border-subtle: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.22);

    --brand-orange: #ffb300;
    --brand-amber-bg: rgba(255, 179, 0, 0.15);
    --brand-amber-border: rgba(255, 179, 0, 0.4);
    --brand-amber-text: #fcd34d;
    --fab-amber-border: #ffb300;

    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-subtle: #94a3b8;
    --text-disabled: #64748b;

    --emerald-progress: rgba(22, 163, 74, 0.35);
    --neutral-progress: rgba(255, 255, 255, 0.08);
  }
}

/* Palette Preset 2: OLED Midnight & Electric Gold */
html[data-preset="oled-gold"][data-theme="dark"],
html[data-preset="oled-gold"]:not([data-theme="light"]) {
  --bg-canvas: #000000;
  --bg-surface: #121216;
  --bg-surface-subtle: #18181b;
  --bg-surface-hover: #222227;
  --bg-surface-translucent: rgba(18, 18, 22, 0.95);
  --border-subtle: #27272a;
  --border-strong: #3f3f46;
  --brand-orange: #fbbf24;
  --brand-amber-text: #fde047;
}

/* Palette Preset 3: Midnight Sapphire & Cyan-Gold */
html[data-preset="sapphire-gold"][data-theme="dark"],
html[data-preset="sapphire-gold"]:not([data-theme="light"]) {
  --bg-canvas: #070d18;
  --bg-surface: #0f1a2e;
  --bg-surface-subtle: #16233b;
  --bg-surface-hover: #1e3050;
  --bg-surface-translucent: rgba(15, 26, 46, 0.95);
  --border-subtle: #1e293b;
  --border-strong: #334155;
  --brand-orange: #facc15;
  --brand-amber-text: #fef08a;
}

/* Palette Preset 4: Warm Editorial & Espresso */
html[data-preset="warm-editorial"][data-theme="dark"],
html[data-preset="warm-editorial"]:not([data-theme="light"]) {
  --bg-canvas: #141210;
  --bg-surface: #1f1c18;
  --bg-surface-subtle: #292524;
  --bg-surface-hover: #383330;
  --bg-surface-translucent: rgba(31, 28, 24, 0.95);
  --border-subtle: #3d3835;
  --border-strong: #57534e;
  --brand-orange: #f59e0b;
  --brand-amber-text: #fcd34d;
}

/* Light Theme Preset Variants */
html[data-preset="oled-gold"][data-theme="light"] {
  --bg-canvas: #f9fafb;
  --border-subtle: #e5e7eb;
  --brand-orange: #c2410c;
}
html[data-preset="sapphire-gold"][data-theme="light"] {
  --bg-canvas: #f1f5f9;
  --border-subtle: #cbd5e1;
  --brand-orange: #d97706;
}
html[data-preset="warm-editorial"][data-theme="light"] {
  --bg-canvas: #fbf9f5;
  --border-subtle: #e7e3da;
  --brand-orange: #b45309;
}

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

html {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-canvas);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  overflow-x: hidden;
  color: var(--text-main);
}

/* ==========================================================================
   1. FLOATING STICKY HEADER PILL
   ========================================================================== */
.bbs-header-wrapper {
  position: sticky;
  top: 0.75rem;
  z-index: 50;
  width: 100%;
  padding-inline: 0.75rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

@media (min-width: 640px) {
  .bbs-header-wrapper {
    top: 1rem;
    padding-inline: 1.5rem;
  }
}

.bbs-header-pill {
  pointer-events: auto;
  width: 100%;
  max-width: 72rem; /* 1152px / max-w-6xl */
  height: 3.5rem;
  padding-inline: 1rem;
  padding-block: 0.5rem;
  background-color: var(--bg-surface-translucent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 640px) {
  .bbs-header-pill {
    padding-inline: 1.5rem;
  }
}

.bbs-header-pill:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-elevated);
}

/* Brand Logo & Name */
.bbs-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.bbs-brand-icon {
  width: 2.125rem;
  height: 2.125rem;
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: var(--radius-full);
}

.bbs-brand-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .bbs-brand {
    gap: 0.75rem;
  }
  .bbs-brand-icon {
    width: 2.25rem;
    height: 2.25rem;
    max-width: 36px;
    max-height: 36px;
  }
  .bbs-brand-name {
    font-size: 1.125rem;
  }
}

/* Header Action Icons */
.bbs-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

@media (min-width: 640px) {
  .bbs-nav-actions {
    gap: 0.5rem;
  }
}

.bbs-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-subtle);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  position: relative;
}

.bbs-icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.bbs-icon-btn:hover {
  background-color: var(--bg-surface-subtle);
  color: var(--text-main);
}

.bbs-icon-btn:active {
  transform: scale(0.94);
}

.bbs-icon-btn.is-active {
  background-color: var(--brand-amber-bg);
  color: var(--brand-amber-text);
  box-shadow: 0 1px 3px rgba(146, 64, 14, 0.12);
}

/* ==========================================================================
   2. MAIN CONTENT LAYOUT SHELL
   ========================================================================== */
.bbs-main-content {
  flex: 1;
  width: 100%;
  max-width: 72rem; /* 1152px */
  margin-inline: auto;
  padding-inline: 0.75rem;
  padding-block: 0.5rem 1rem;
}

@media (min-width: 640px) {
  .bbs-main-content {
    padding-inline: 1.5rem;
    padding-block: 0.5rem 1.5rem;
  }
}

/* Feed Container with Scroll Snap */
.bbs-feed-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .bbs-feed-container {
    gap: 3rem;
  }
}

.bbs-story-item {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 4.75rem; /* Clean snap offset below top bar */
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

@media (min-width: 640px) {
  .bbs-story-item {
    scroll-margin-top: 5rem;
  }
}

@media (min-width: 1024px) {
  .bbs-story-item {
    scroll-margin-top: 5.125rem;
    height: calc(100dvh - 5.875rem);
    min-height: calc(100dvh - 5.875rem);
    max-height: calc(100dvh - 5.875rem);
  }
}

/* Dual-Column Card Grid (Desktop) / Single-Column Stack (Mobile & Tablet) */
.bbs-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 32rem; /* Centered mobile container */
  margin-inline: auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .bbs-card-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    align-items: stretch;
    gap: 1.75rem;
    height: 100%;
    max-height: 100%;
  }
}

/* Card Container */
.bbs-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-3xl);
  padding: 1.125rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .bbs-card {
    padding: 1.25rem;
    gap: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .bbs-card {
    height: 100%;
    max-height: 100%;
  }

  .bbs-card-content {
    overflow-y: auto;
    scrollbar-width: thin;
    justify-content: flex-start;
  }
}

/* Category Pill */
.bbs-category-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.875rem;
  border-radius: var(--radius-full);
  background-color: var(--brand-orange);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(196, 81, 21, 0.25);
  transition: opacity 0.15s ease;
}

.bbs-category-pill:hover {
  opacity: 0.92;
}

.bbs-category-pill svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: currentColor;
}

/* Title text reduced to 1.0rem */
.bbs-story-title {
  font-size: 1.0rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
  margin: 0;
}

.bbs-story-title.is-gurmukhi {
  font-family: var(--font-gurmukhi);
  font-size: 1.0rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .bbs-story-title {
    font-size: 1.0rem;
  }
  .bbs-story-title.is-gurmukhi {
    font-size: 1.0rem;
  }
}

/* One smaller size of intro text */
.bbs-story-intro {
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
}

.bbs-story-intro.is-gurmukhi {
  font-family: var(--font-gurmukhi);
  font-size: 0.9688rem;
  line-height: 1.55;
}

/* Fullnews field in left column */
.bbs-story-fullnews {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: #fafbfc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 0.75rem 0.875rem;
  max-height: 12rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.bbs-story-fullnews p {
  margin-block: 0.35rem;
}

.bbs-story-fullnews.is-gurmukhi {
  font-family: var(--font-gurmukhi);
  font-size: 0.9063rem;
  line-height: 1.65;
}

/* ==========================================================================
   3. VOTING / POLL RESULTS COMPONENT (REDUCED TO 75% HEIGHT)
   ========================================================================== */
.bbs-poll-container {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 0.75rem 0.875rem;
  background-color: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Results Declared Badge */
.bbs-poll-status-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--emerald-bg);
  border: 1px solid var(--emerald-green);
  color: var(--emerald-green-dark);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bbs-poll-status-badge svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: currentColor;
}

/* Poll Option List */
.bbs-poll-options {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.bbs-poll-row {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  min-height: 2.25rem; /* Exactly 75% of previous 3rem */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 0.75rem;
  padding-block: 0.25rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.bbs-poll-row:hover {
  border-color: var(--border-strong);
}

.bbs-poll-row.is-winner {
  border: 1.5px solid var(--emerald-green);
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.12);
}

/* Background Progress Fill */
.bbs-progress-fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  background-color: var(--neutral-progress);
  transition: inline-size 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.bbs-poll-row.is-winner .bbs-progress-fill {
  background-color: var(--emerald-progress);
}

/* Content on Top of Progress Fill */
.bbs-poll-label-group {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
}

.bbs-poll-circle {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface);
  font-size: 0.6875rem;
  flex-shrink: 0;
}

.bbs-poll-row.is-winner .bbs-poll-circle {
  border-color: var(--emerald-green);
  background-color: var(--emerald-green);
  color: #ffffff;
}

.bbs-poll-circle svg {
  width: 0.65rem;
  height: 0.65rem;
  fill: currentColor;
}

/* Highest Votes Badge */
.bbs-winner-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.0625rem 0.375rem;
  border-radius: var(--radius-full);
  background-color: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 0.625rem;
  font-weight: 700;
}

.bbs-poll-percent {
  position: relative;
  z-index: 10;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
}

.bbs-poll-row.is-winner .bbs-poll-percent {
  color: var(--emerald-green-dark);
}

/* Footer Lock Status */
.bbs-poll-lock-note {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-subtle);
  padding-top: 0.1rem;
}

.bbs-poll-lock-note svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: currentColor;
}

/* ==========================================================================
   4. POSTER / INFOGRAPHIC MEDIA CARD (RIGHT COLUMN - MATCHES LEFT COLUMN HEIGHT)
   ========================================================================== */
.bbs-card-poster {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.bbs-poster-media {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface-subtle);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  padding: 0.5rem;
}

.bbs-poster-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-xl);
}

@media (max-width: 1023px) {
  .bbs-card-poster {
    min-height: 22rem;
  }
  .bbs-poster-img {
    max-height: min(65vh, 500px);
  }
}

.bbs-poster-placeholder {
  width: 100%;
  min-height: 18rem;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius-xl);
}

.bbs-placeholder-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-full);
  background: rgba(220, 38, 38, 0.2);
  border: 1.5px solid #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  color: #ef4444;
}

.bbs-placeholder-icon svg {
  width: 1.625rem;
  height: 1.625rem;
  fill: currentColor;
}

.bbs-placeholder-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: block;
}

.bbs-placeholder-sub {
  font-size: 0.8125rem;
  color: #94a3b8;
  max-width: 18rem;
  display: block;
}

/* ==========================================================================
   5. SINGLE-COLUMN MERGED VIDEO LAYOUT (CENTERED YOUTUBE PLAYER)
   ========================================================================== */
.bbs-card-grid.is-video-grid {
  grid-template-columns: 1fr;
  max-width: 48rem;
  margin-inline: auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .bbs-card-grid.is-video-grid {
    grid-template-columns: 1fr;
    max-width: 52rem;
    height: 100%;
    max-height: 100%;
    align-items: stretch;
  }
}

.bbs-card-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 1.25rem 1rem;
  height: 100%;
  max-height: 100%;
}

@media (min-width: 640px) {
  .bbs-card-video {
    padding: 1.5rem 2rem;
  }
}

.bbs-card-video .bbs-category-pill {
  margin-bottom: 0.25rem;
}

.bbs-card-video .bbs-story-title {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}

.bbs-card-video .bbs-story-intro {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.bbs-video-player-wrapper {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  max-height: min(48vh, 26rem);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background-color: #000000;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.35);
  margin-block: 0.5rem 0.75rem;
  flex-shrink: 0;
  position: relative;
}

.bbs-youtube-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.bbs-card-video .bbs-story-fullnews {
  text-align: left;
  max-width: 46rem;
  margin-inline: auto;
  width: 100%;
}

.bbs-card-video .bbs-poll-container {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  text-align: left;
}

/* Feed Sentinel & Loader for Infinite Scroll */
.bbs-feed-sentinel {
  width: 100%;
  padding-block: 1.5rem 2.5rem;
  display: flex;
  justify-content: center;
}

.bbs-feed-loader {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-subtle);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.bbs-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border-strong);
  border-top-color: var(--brand-red);
  border-radius: 50%;
  animation: bbs-spin 0.8s linear infinite;
}

@keyframes bbs-spin {
  to { transform: rotate(360deg); }
}

/* App Download Badges */
.bbs-download-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}

.bbs-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-lg);
  background-color: #0f172a;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.bbs-app-badge:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.bbs-app-badge svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

.bbs-disclaimer {
  font-size: 0.6875rem;
  color: var(--text-disabled);
  line-height: 1.5;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   5. FLOATING ACTION BUTTONS (FABS)
   ========================================================================== */
.bbs-fab-compass {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-start: 1.25rem;
  z-index: 40;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-full);
  background-color: #fef9f5;
  border: 2px solid var(--fab-amber-border);
  color: var(--brand-amber-text);
  box-shadow: var(--shadow-fab);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bbs-fab-compass:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.16);
}

.bbs-fab-compass svg {
  width: 1.625rem;
  height: 1.625rem;
  fill: currentColor;
}

.bbs-fab-share {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 40;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  color: var(--brand-orange);
  box-shadow: var(--shadow-fab);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bbs-fab-share:hover {
  transform: scale(1.06);
  border-color: var(--border-strong);
}

.bbs-fab-share svg {
  width: 1.375rem;
  height: 1.375rem;
  fill: currentColor;
}

/* ==========================================================================
   6. MODALS & DIALOGS
   ========================================================================== */
.bbs-dialog {
  border: none;
  background: transparent;
  padding: 1rem;
  margin: auto;
  max-width: 36rem;
  width: calc(100% - 2rem);
  color: inherit;
}

.bbs-dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bbs-dialog-panel {
  background-color: var(--bg-surface);
  border-radius: var(--radius-3xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevated);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.bbs-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bbs-dialog-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
}

.bbs-close-btn {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  border: none;
  background-color: var(--bg-surface-subtle);
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.bbs-close-btn:hover {
  background-color: var(--border-subtle);
  color: var(--text-main);
}

.bbs-search-input {
  width: 100%;
  height: 3rem;
  padding-inline: 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bbs-search-input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(196, 81, 21, 0.15);
}

.bbs-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bbs-tag-chip {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bbs-tag-chip:hover {
  background-color: var(--brand-amber-bg);
  border-color: var(--brand-amber-border);
  color: var(--brand-amber-text);
}

/* ==========================================================================
   7. SETTINGS MENU, THEME SELECTOR & ACCOUNT SHEETS
   ========================================================================== */
.bbs-dialog-panel-scrollable {
  max-height: calc(90dvh - 3rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.25rem;
}

.bbs-dialog-panel-scrollable::-webkit-scrollbar {
  width: 6px;
}

.bbs-dialog-panel-scrollable::-webkit-scrollbar-thumb {
  background-color: var(--border-strong);
  border-radius: var(--radius-full);
}

.bbs-settings-container {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.bbs-settings-section {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.bbs-settings-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bbs-settings-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--brand-amber-bg);
  color: var(--brand-amber-text);
  border: 1px solid var(--brand-amber-border);
  text-transform: none;
  letter-spacing: normal;
}

/* Account & Profile Card */
.bbs-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.bbs-user-card:hover {
  border-color: var(--brand-orange);
  background-color: var(--bg-surface-hover);
}

.bbs-user-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  background-color: var(--brand-amber-bg);
  border: 1.5px solid var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange);
  flex-shrink: 0;
  overflow: hidden;
}

.bbs-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bbs-user-avatar svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.bbs-user-info {
  flex: 1;
  min-width: 0;
}

.bbs-user-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bbs-user-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bbs-user-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-lg);
  background-color: var(--brand-amber-bg);
  color: var(--brand-orange);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--brand-amber-border);
  flex-shrink: 0;
}

/* App Appearance (Theme Selector) */
.bbs-segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.bbs-segment-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-subtle);
  background-color: var(--bg-surface-subtle);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bbs-segment-btn:hover {
  border-color: var(--brand-orange);
}

.bbs-segment-btn.is-active {
  border-color: var(--brand-orange);
  background-color: var(--brand-amber-bg);
  color: var(--brand-orange);
  box-shadow: 0 0 0 1px var(--brand-orange);
}

.bbs-segment-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

/* Color Theme Palette Presets */
.bbs-presets-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bbs-preset-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.875rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-subtle);
  background-color: var(--bg-surface-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}

.bbs-preset-card:hover:not(:disabled) {
  border-color: var(--brand-orange);
}

.bbs-preset-card.is-active {
  border-color: var(--brand-orange);
  background-color: var(--brand-amber-bg);
  box-shadow: 0 0 0 1px var(--brand-orange);
}

.bbs-preset-swatches {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0.35rem;
  border-radius: var(--radius-lg);
  background-color: rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-subtle);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.bbs-swatch-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: var(--radius-full);
  border: 0.5px solid rgba(0, 0, 0, 0.2);
}

.bbs-preset-meta {
  flex: 1;
  min-width: 0;
}

.bbs-preset-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
}

.bbs-preset-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bbs-preset-check {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--brand-orange);
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.bbs-preset-check svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.bbs-preset-locked-box {
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-strong);
  background-color: var(--bg-surface-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Content Language Selector */
.bbs-language-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.bbs-lang-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.35rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-subtle);
  background-color: var(--bg-surface-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.bbs-lang-btn:hover {
  border-color: var(--brand-orange);
}

.bbs-lang-btn.is-active {
  border-color: var(--brand-orange);
  background-color: var(--brand-amber-bg);
  box-shadow: 0 0 0 1px var(--brand-orange);
}

.bbs-lang-name {
  font-size: 0.8125rem;
  font-weight: 700;
}

.bbs-lang-native {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.bbs-lang-btn.is-active .bbs-lang-native {
  color: var(--brand-orange);
}

/* Help & Support / Action Rows */
.bbs-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bbs-action-row:hover {
  border-color: var(--brand-orange);
  background-color: var(--bg-surface-hover);
}

.bbs-action-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bbs-action-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-lg);
  background-color: var(--brand-amber-bg);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bbs-action-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.bbs-action-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.bbs-action-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.bbs-action-chevron {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--text-subtle);
}

.bbs-action-chevron svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Clear Memory Button */
.bbs-btn-outline {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--brand-orange);
  background-color: transparent;
  color: var(--brand-orange);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bbs-btn-outline:hover {
  background-color: var(--brand-amber-bg);
}

.bbs-btn-outline svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* Toast Notification */
.bbs-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--text-main);
  color: var(--bg-surface);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-xl);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  max-width: min(90vw, 32rem);
  box-shadow: var(--shadow-elevated);
  z-index: 100;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  pointer-events: none;
}

.bbs-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   STATIC & CONTENT PAGES (V2 / NewSite Redesign)
   ========================================================================== */
.bbs-page-container {
  max-width: 56rem; /* 896px */
  margin-inline: auto;
  padding-block: 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bbs-page-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 640px) {
  .bbs-page-card {
    padding: 2.25rem;
  }
}

.bbs-page-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.bbs-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--brand-amber-bg);
  color: var(--brand-amber-text);
  border: 1px solid var(--brand-amber-border);
  margin-bottom: 0.75rem;
}

.bbs-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0 0 0.5rem 0;
}

@media (min-width: 640px) {
  .bbs-page-title {
    font-size: 2.125rem;
  }
}

.bbs-page-subtitle {
  font-size: 1rem;
  color: var(--text-subtle);
  line-height: 1.5;
  margin: 0;
}

/* Page Prose Typography */
.bbs-prose {
  color: var(--text-muted);
  font-size: 0.96875rem;
  line-height: 1.75;
}

.bbs-prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.bbs-prose h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.bbs-prose p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.bbs-prose ul, .bbs-prose ol {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.bbs-prose li {
  margin-bottom: 0.375rem;
}

.bbs-prose strong, .bbs-prose b {
  color: var(--text-main);
  font-weight: 600;
}

.bbs-prose a {
  color: var(--brand-orange);
  text-decoration: none;
  font-weight: 500;
}

.bbs-prose a:hover {
  text-decoration: underline;
}

.bbs-prose hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 1.75rem 0;
}

/* Callout Box */
.bbs-callout {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  margin: 1.25rem 0;
}

.bbs-callout-warning {
  background-color: var(--brand-amber-bg);
  border-color: var(--brand-amber-border);
  color: var(--brand-amber-text);
}

.bbs-callout-success {
  background-color: var(--emerald-bg);
  border-color: var(--emerald-progress);
  color: var(--emerald-green-dark);
}

/* Form Styles */
.bbs-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .bbs-form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bbs-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.bbs-form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
}

.bbs-form-input,
.bbs-form-textarea {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.bbs-form-input:focus,
.bbs-form-textarea:focus {
  background-color: var(--bg-surface);
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(196, 81, 21, 0.15);
}

.bbs-form-textarea {
  resize: vertical;
  min-height: 120px;
}

.bbs-form-error {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-red);
  margin-top: 0.25rem;
}

.bbs-form-submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.bbs-btn-primary,
.bbs-prose a.bbs-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--brand-red);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-decoration: none !important;
}

.bbs-btn-primary:hover {
  background-color: var(--brand-red-hover);
}

.bbs-btn-primary:active {
  transform: scale(0.98);
}

.bbs-alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.bbs-alert-success {
  background-color: var(--emerald-bg);
  border: 1px solid var(--emerald-progress);
  color: var(--emerald-green-dark);
}

.bbs-alert-danger {
  background-color: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--brand-red);
}

/* App Download Banner in ShareApp */
.bbs-app-download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--bg-surface-subtle) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 1.5rem;
}

.bbs-app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.bbs-app-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 0.75rem 1.25rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bbs-app-badge-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--brand-orange);
}

/* ==========================================================================
   ADVERTISEMENT ITEMS & CARDS (V2 Single Column Centered)
   ========================================================================== */
.bbs-advt-item {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 4.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (min-width: 640px) {
  .bbs-advt-item {
    scroll-margin-top: 5rem;
  }
}

@media (min-width: 1024px) {
  .bbs-advt-item {
    scroll-margin-top: 5.125rem;
    height: calc(100dvh - 5.875rem);
    min-height: calc(100dvh - 5.875rem);
    max-height: calc(100dvh - 5.875rem);
  }
}

.bbs-advt-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 4.75rem;
  width: 100%;
  max-width: 36rem;
  height: 100%;
  max-height: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-inline: auto;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 640px) {
  .bbs-advt-card {
    scroll-margin-top: 5rem;
    max-width: 44rem;
    padding: 1rem 1.25rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  .bbs-advt-card {
    scroll-margin-top: 5.125rem;
    max-width: 56rem; /* Proportionately increased width to match full screen height */
    padding: 1rem 1.5rem 1.5rem;
  }
}
    max-width: 56rem; /* Proportionately increased width to match full screen height */
    padding: 1rem 1.5rem 1.5rem;
  }
}

.bbs-advt-card:hover {
  border-color: var(--brand-amber-border);
  box-shadow: var(--shadow-elevated);
}

.bbs-advt-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.bbs-advt-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-subtle);
  color: var(--text-subtle);
  border: 1px solid var(--border-subtle);
}

.bbs-advt-pill.is-splash {
  background-color: var(--brand-amber-bg);
  color: var(--brand-amber-text);
  border-color: var(--brand-amber-border);
}

.bbs-advt-cat-name {
  display: none !important;
}

.bbs-advt-media {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
}

.bbs-advt-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
}

.bbs-advt-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  transition: transform 0.25s ease;
}

.bbs-advt-card:hover .bbs-advt-img {
  transform: scale(1.01);
}

.bbs-advt-footer,
.bbs-advt-title,
.bbs-advt-cta {
  display: none !important;
}
