/* ==========================================================================
   BuzzMelt — Main Stylesheet
   All component styles below the fold.
   Tokens + base + header + hero are in critical.css (inlined).
   ========================================================================== */

/* ══════════════════════════════════════════════════════════════════════════
   HOME SECTIONS
══════════════════════════════════════════════════════════════════════════ */
.bm-home-section {
  padding: 4rem 0;
}

.bm-home-section--alt {
  background: var(--bm-bg-alt);
}

.bm-section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.bm-section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bm-text);
  margin: 0;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 1.125rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bm-border);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bm-section-heading-sub {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--bm-text-muted);
  opacity: 0.7;
}

.bm-section-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bm-text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: color var(--bm-transition);
}

.bm-section-link:hover {
  color: var(--bm-accent);
}

.bm-accent-text {
  color: var(--bm-accent) !important;
}

/* Legacy section aliases */
.bm-section {
  padding: 4rem 0;
}

.bm-section-alt {
  background: var(--bm-bg-alt);
}

.bm-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.bm-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bm-text);
  margin: 0;
}

/* Reviews grid */
.bm-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   TAB PILLS (Trending / Popular section tabs)
══════════════════════════════════════════════════════════════════════════ */
.bm-tab-pills {
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.bm-tab-pill {
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bm-text-muted);
  background: var(--bm-surface-2);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--bm-transition), color var(--bm-transition),
              border-color var(--bm-transition);
  white-space: nowrap;
}

.bm-tab-pill:hover {
  color: var(--bm-text);
  background: var(--bm-surface);
  border-color: var(--bm-border);
}

.bm-tab-pill--active {
  background: var(--bm-accent);
  color: #fff;
  border-color: var(--bm-accent);
}

.bm-tab-pill--active:hover {
  background: var(--bm-accent-dark);
  border-color: var(--bm-accent-dark);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════
   SCROLL ROW (horizontal poster strip)
══════════════════════════════════════════════════════════════════════════ */
.bm-scroll-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.875rem;
}

/* Loading state overlay */
.bm-scroll-row--loading {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* ══════════════════════════════════════════════════════════════════════════
   TMDB RATING BADGE on poster cards
══════════════════════════════════════════════════════════════════════════ */
.bm-poster-card__rating--tmdb {
  background: rgba(1, 210, 119, 0.9); /* TMDB green */
  color: #fff;
}

.bm-poster-card__reviews--tmdb {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.775rem;
  color: var(--bm-text-muted);
}

.bm-vote-count {
  font-size: 0.68rem;
  color: var(--bm-text-light);
}

/* ══════════════════════════════════════════════════════════════════════════
   TOP ARTICLES — 2-column numbered list
══════════════════════════════════════════════════════════════════════════ */
.bm-top-articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.bm-top-article-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--bm-border);
  text-decoration: none;
  color: inherit;
  transition: background var(--bm-transition);
}

.bm-top-article-item:nth-child(odd) {
  padding-right: 1.75rem;
  border-right: 1px solid var(--bm-border);
}
.bm-top-article-item:nth-child(even) {
  padding-left: 1.75rem;
}

/* Remove bottom border from last 2 items */
.bm-top-article-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.bm-top-article-item:hover .bm-top-article-title {
  color: var(--bm-accent);
}

/* Rank number */
.bm-top-article-rank {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bm-border);
  min-width: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* Gold for top 3 */
.bm-top-article-item:nth-child(1) .bm-top-article-rank,
.bm-top-article-item:nth-child(2) .bm-top-article-rank,
.bm-top-article-item:nth-child(3) .bm-top-article-rank {
  color: var(--bm-gold);
}

/* Thumbnail */
.bm-top-article-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--bm-radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bm-surface-2);
}

.bm-top-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bm-top-article-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bm-text-light);
  font-size: 1.25rem;
}

/* Text block */
.bm-top-article-meta {
  flex: 1;
  min-width: 0;
}

.bm-top-article-cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--bm-accent);
  display: block;
  margin-bottom: 0.2rem;
}

.bm-top-article-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bm-text);
  margin: 0 0 0.3rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--bm-transition);
}

.bm-top-article-date {
  font-size: 0.7rem;
  color: var(--bm-text-muted);
}

/* ══════════════════════════════════════════════════════════════════════════
   POSTER CARDS
══════════════════════════════════════════════════════════════════════════ */
.bm-poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 1.25rem;
}

/* Load More — card overflow hidden until button clicked */
.bm-poster-card--overflow { display: none; }

/* Load More button — hidden by default, shown via JS on non-mobile */
.bm-load-more-btn {
  display: none;
  margin: 1.25rem auto 0;
  padding: .5rem 2rem;
  background: var(--bm-accent-bg);
  color: var(--bm-accent-light);
  border: 1px solid var(--bm-accent);
  border-radius: var(--bm-radius);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--bm-transition), color var(--bm-transition);
}
.bm-load-more-btn:hover {
  background: var(--bm-accent);
  color: #fff;
}

.bm-poster-card {
  position: relative;
  border-radius: var(--bm-radius);
  overflow: hidden;
  background: var(--bm-surface);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.bm-poster-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--bm-shadow-hover);
}

.bm-poster-card__link {
  display: block;
  position: relative;
  text-decoration: none;
}

/* Image area */
.bm-poster-card__img-wrap,
.bm-poster-wrap {
  aspect-ratio: var(--bm-poster-ratio);
  overflow: hidden;
  position: relative;
  background: #0d1525;
}

.bm-poster-card__img,
.bm-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bm-poster-card:hover .bm-poster-card__img,
.bm-poster-card:hover .bm-poster-wrap img {
  transform: scale(1.06);
}

/* Placeholder */
.bm-poster-card__placeholder,
.bm-poster-placeholder {
  aspect-ratio: var(--bm-poster-ratio);
  background: var(--bm-surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bm-text-light);
  font-size: 2.5rem;
}

.bm-poster-placeholder span {
  font-size: 0.7rem;
  font-weight: 500;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hover overlay */
.bm-poster-card__overlay,
.bm-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 55%);
  opacity: 0;
  transition: opacity var(--bm-transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.625rem;
}

.bm-poster-card:hover .bm-poster-card__overlay,
.bm-poster-card:hover .bm-poster-overlay {
  opacity: 1;
}

/* Rating chip */
.bm-poster-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--bm-gold);
  background: rgba(0, 0, 0, 0.65);
  padding: 0.22rem 0.45rem;
  border-radius: var(--bm-radius-sm);
  backdrop-filter: blur(4px);
  align-self: flex-end;
}

.bm-poster-card__rating i {
  font-size: 0.6rem;
}

/* Legacy rating badge */
.bm-rating-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: var(--bm-gold);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.22rem 0.45rem;
  border-radius: var(--bm-radius-sm);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  backdrop-filter: blur(4px);
}

.bm-rating-badge i {
  font-size: 0.6rem;
}

/* Legacy overlay title */
.bm-poster-overlay-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.bm-poster-overlay-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Watchlist button on card */
.bm-poster-card__wl {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--bm-transition);
  backdrop-filter: blur(4px);
  opacity: 0;
}

.bm-poster-card:hover .bm-poster-card__wl,
.bm-poster-card__wl.bm-watchlist-btn--active {
  opacity: 1;
}

.bm-poster-card__wl:hover {
  background: var(--bm-accent);
  color: #fff;
}

.bm-poster-card__wl.bm-watchlist-btn--active {
  background: var(--bm-accent);
  color: #fff;
}

/* Type badge in overlay */
.bm-badge--type {
  align-self: flex-start;
  background: rgba(59, 130, 246, 0.25);
  color: var(--bm-accent-light);
}

/* Card body */
.bm-poster-card__body,
.bm-poster-caption {
  padding: 0.75rem 0.625rem 0.875rem;
}

.bm-poster-card__title,
.bm-poster-caption-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bm-text);
  line-height: 1.35;
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bm-poster-card__title a {
  color: inherit;
}

.bm-poster-card__title a:hover {
  color: var(--bm-accent);
}

.bm-poster-card__year,
.bm-poster-caption-year {
  font-size: 0.72rem;
  color: var(--bm-text-muted);
  display: inline-block;
}

.bm-poster-card__reviews {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: var(--bm-text-light);
  margin-left: 0.4rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   WIDE / HORIZONTAL CARDS
══════════════════════════════════════════════════════════════════════════ */
.bm-card-wide {
  display: flex;
  gap: 1.125rem;
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  transition: border-color var(--bm-transition), box-shadow var(--bm-transition);
  padding: 1rem;
}

.bm-card-wide:hover {
  border-color: var(--bm-accent);
  box-shadow: var(--bm-shadow);
}

.bm-card-wide-poster {
  flex-shrink: 0;
  width: 72px;
}

.bm-card-wide-poster img {
  width: 72px;
  aspect-ratio: var(--bm-poster-ratio);
  object-fit: cover;
  border-radius: var(--bm-radius-sm);
}

.bm-card-wide-body {
  flex: 1;
  min-width: 0;
}

.bm-card-wide-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bm-text);
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-card-wide-meta {
  font-size: 0.8125rem;
  color: var(--bm-text-muted);
  margin-bottom: 0.4rem;
}

.bm-card-wide-excerpt {
  font-size: 0.8125rem;
  color: var(--bm-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════════════
   FILTER PILLS (people archive role filter)
══════════════════════════════════════════════════════════════════════════ */
.bm-filters-bar__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .875rem 0;
}

.bm-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: .3rem .85rem;
  border: 1px solid var(--bm-border);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--bm-text-muted);
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--bm-transition);
}

.bm-filter-pill:hover {
  border-color: var(--bm-accent);
  color: var(--bm-accent);
}

.bm-filter-pill--active {
  background: var(--bm-accent);
  border-color: var(--bm-accent);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════
   PERSON CARDS
══════════════════════════════════════════════════════════════════════════ */
.bm-person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
}

.bm-person-card {
  text-align: center;
  text-decoration: none;
  color: var(--bm-text);
}

.bm-person-card:hover {
  color: var(--bm-accent);
}

.bm-person-headshot {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--bm-border);
  margin-bottom: 0.625rem;
  transition: border-color var(--bm-transition), box-shadow var(--bm-transition);
}

.bm-person-card:hover .bm-person-headshot {
  border-color: var(--bm-accent);
  box-shadow: 0 0 0 3px var(--bm-accent-bg);
}

.bm-person-headshot-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bm-surface-2);
  border: 2px solid var(--bm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--bm-text-light);
  margin-bottom: 0.625rem;
}

.bm-person-name {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.1rem;
}

.bm-person-character,
.bm-person-role {
  font-size: 0.75rem;
  color: var(--bm-text-muted);
}

/* ── Person card BEM (archive + cast row) ───────────────────────────────── */
.bm-person-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--bm-text);
  transition: transform var(--bm-transition);
}

.bm-person-card:hover {
  color: var(--bm-accent);
  transform: translateY(-3px);
}

.bm-person-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.bm-person-card__photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--bm-radius);
  background: var(--bm-surface-2);
  margin-bottom: .65rem;
  position: relative;
}

.bm-person-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .35s ease;
}

.bm-person-card:hover .bm-person-card__img {
  transform: scale(1.04);
}

.bm-person-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--bm-text-muted);
}

.bm-person-card__body {
  padding: 0 .15rem;
}

.bm-person-card__name {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 .2rem;
  color: var(--bm-text);
}

.bm-person-card:hover .bm-person-card__name {
  color: var(--bm-accent);
}

.bm-person-card__known-for {
  display: block;
  font-size: .75rem;
  color: var(--bm-text-muted);
  margin-bottom: .35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-person-card__roles {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}

/* ── Person single page ─────────────────────────────────────────────────── */
.bm-person-single {
  padding: 2.5rem 0 5rem;
}

.bm-person-single__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.bm-person-single__sidebar {
  position: sticky;
  top: calc(var(--bm-header-height, 60px) + 1.5rem);
}

.bm-person-single__headshot {
  margin-bottom: 1rem;
}

.bm-person-single__photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--bm-radius-lg);
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}

.bm-person-single__photo-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bm-surface-2);
  border-radius: var(--bm-radius-lg);
  border: 1px solid var(--bm-border);
  font-size: 4rem;
  color: var(--bm-text-muted);
}

/* Social links row */
.bm-person-single__socials {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bm-border);
}

.bm-person-single__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bm-surface-2);
  border: 1px solid var(--bm-border);
  color: var(--bm-text-muted);
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--bm-transition);
}

.bm-person-single__social-link:hover {
  background: var(--bm-accent);
  border-color: var(--bm-accent);
  color: #fff;
}

/* Personal info facts */
.bm-person-single__quick-facts {}

.bm-person-single__facts-heading {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--bm-text);
  margin: 0 0 .75rem;
}

.bm-person-single__fact {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--bm-border);
}

.bm-person-single__fact--link {
  border-bottom: none;
}

.bm-person-single__fact-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--bm-text-muted);
}

.bm-person-single__fact-value {
  font-size: .85rem;
  color: var(--bm-text);
  line-height: 1.45;
}

.bm-person-single__aka {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.bm-person-single__tmdb-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--bm-accent);
  text-decoration: none;
  padding: .4rem 0;
  transition: opacity var(--bm-transition);
}

.bm-person-single__tmdb-link:hover { opacity: .75; }

/* Main content */
.bm-person-single__name {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 .75rem;
  line-height: 1.1;
  color: var(--bm-text);
}

.bm-person-single__role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.5rem;
}

/* Biography */
.bm-person-single__bio {
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--bm-text-muted);
  margin-bottom: .5rem;
  max-width: 75ch;
}

.bm-person-single__bio--collapsible {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bm-person-single__bio--open {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.bm-person-single__bio-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  color: var(--bm-accent);
  padding: 0;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: opacity var(--bm-transition);
}

.bm-person-single__bio-toggle:hover { opacity: .75; }

/* Section headings inside main */
.bm-person-section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bm-text);
  margin: 0 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--bm-border);
}

/* ── Known For horizontal scroll ────────────────────────────────────────── */
.bm-person-known-for {
  margin-bottom: 2.5rem;
}

.bm-person-known-for__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--bm-border) transparent;
  scroll-snap-type: x mandatory;
}

.bm-person-known-for__track::-webkit-scrollbar { height: 4px; }
.bm-person-known-for__track::-webkit-scrollbar-track { background: transparent; }
.bm-person-known-for__track::-webkit-scrollbar-thumb { background: var(--bm-border); border-radius: 4px; }

.bm-kf-card {
  flex: 0 0 120px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: block;
}

.bm-kf-card__poster {
  position: relative;
  width: 120px;
  aspect-ratio: 2 / 3;
  border-radius: var(--bm-radius);
  overflow: hidden;
  background: var(--bm-surface-2);
  margin-bottom: .5rem;
  border: 1px solid var(--bm-border);
}

.bm-kf-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

a.bm-kf-card:hover .bm-kf-card__poster img { transform: scale(1.05); }

.bm-kf-card__no-poster {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--bm-text-muted);
}

.bm-kf-card__badge {
  position: absolute;
  bottom: 5px;
  left: 4px;
  right: 4px;
  background: rgba(0,0,0,.65);
  color: rgba(255,255,255,.75);
  font-size: .6rem;
  text-align: center;
  padding: .15rem .3rem;
  border-radius: 3px;
}

.bm-kf-card__title {
  font-size: .78rem;
  font-weight: 600;
  color: var(--bm-text);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

a.bm-kf-card:hover .bm-kf-card__title { color: var(--bm-accent); }

.bm-kf-card__year {
  font-size: .72rem;
  color: var(--bm-text-muted);
  margin: .15rem 0 0;
}

/* ── Credits table ──────────────────────────────────────────────────────── */
.bm-filmography { margin-top: 0; }

.bm-credits-section {
  margin-bottom: 2.5rem;
}

.bm-credits-table {
  display: flex;
  flex-direction: column;
}

.bm-credits-row {
  display: grid;
  grid-template-columns: 3.5rem 1rem 1fr auto;
  align-items: baseline;
  gap: 0 .5rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--bm-border);
  transition: background var(--bm-transition);
}

.bm-credits-row:last-child { border-bottom: none; }

.bm-credits-row--linked:hover {
  background: var(--bm-surface-2);
  border-radius: var(--bm-radius);
  padding-left: .5rem;
  padding-right: .5rem;
}

.bm-credits-row__year {
  font-size: .8rem;
  font-weight: 600;
  color: var(--bm-text-muted);
  white-space: nowrap;
  text-align: right;
}

.bm-credits-row__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bm-border);
  flex-shrink: 0;
  align-self: center;
  display: block;
}

.bm-credits-row--linked .bm-credits-row__dot { background: var(--bm-accent); }

.bm-credits-row__info {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}

.bm-credits-row__title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--bm-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.bm-credits-row__title:hover { color: var(--bm-accent); }

.bm-credits-row__role {
  font-size: .78rem;
  color: var(--bm-text-muted);
}

.bm-credits-row__episodes {
  font-size: .72rem;
  color: var(--bm-text-muted);
  margin-left: .25rem;
}

.bm-credits-row__badge {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--bm-accent);
  white-space: nowrap;
  padding: .15rem .4rem;
  border: 1px solid var(--bm-accent);
  border-radius: 100px;
  align-self: center;
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
/* Responsive: person single */
@media (max-width: 767.98px) {
  .bm-person-single__layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .bm-person-single__sidebar {
    position: static;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
  }
  .bm-person-single__headshot {
    width: 130px;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .bm-person-single__quick-facts {
    flex: 1;
  }
  .bm-person-single__name {
    font-size: 1.75rem;
  }
  .bm-person-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 1rem;
  }
  .bm-credits-row {
    grid-template-columns: 2.8rem 1rem 1fr;
  }
  .bm-credits-row__badge { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SINGLE MEDIA — IMDb-style HERO
   Layout: blurred backdrop BG → top bar (title | ratings) →
           media row (poster | trailer | side panel) → footer (genres, overview, credits)
══════════════════════════════════════════════════════════════════════════ */

/* ── Section wrapper ─────────────────────────────────────────────────── */
.bm-hero-single {
  position: relative;
  background: #060a18;
  overflow: hidden;
  border-bottom: 1px solid var(--bm-border);
}

/* ── Blurred backdrop ────────────────────────────────────────────────── */
.bm-hero-single__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  filter: blur(18px) brightness(0.22) saturate(0.5);
  transform: scale(1.06);
  /* hide blur edges */
  pointer-events: none;
}

.bm-hero-single__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(6, 10, 24, 0.55) 0%,
      rgba(6, 10, 24, 0.72) 60%,
      rgba(6, 10, 24, 0.92) 100%);
  pointer-events: none;
}

/* ── Inner container ─────────────────────────────────────────────────── */
.bm-hero-single__inner {
  position: relative;
  z-index: 2;
  padding-top: 2rem;
  padding-bottom: 1.75rem;
}

/* ── TOP BAR ─────────────────────────────────────────────────────────── */
.bm-hero-single__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.bm-hero-single__title-block {
  flex: 1;
  min-width: 0;
}

.bm-hero-single__title {
  font-family: var(--bm-font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0.4rem 0 0.3rem;
  line-height: 1.15;
}

.bm-hero-single__meta-strip {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin-top: 0.3rem;
}

.bm-hero-single__dot {
  opacity: 0.4;
  margin: 0 0.2rem;
}

/* Score block (ratings) */
.bm-hero-single__score-block {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.bm-hero-score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 70px;
}

.bm-hero-score-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.bm-hero-score-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.bm-hero-score-value .bi-star-fill {
  color: var(--bm-gold);
  font-size: 1rem;
}

.bm-hero-score-value em {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  font-style: normal;
}

.bm-hero-score-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.2rem;
}

/* ── MEDIA ROW ───────────────────────────────────────────────────────── */
.bm-hero-single__media {
  display: grid;
  grid-template-columns: 210px 1fr 100px;
  gap: 0;
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  box-shadow: var(--bm-shadow-lg);
  margin-bottom: 1.25rem;
  min-height: 315px;
}

/* Poster */
.bm-hero-single__poster {
  flex-shrink: 0;
  background: var(--bm-surface);
  overflow: hidden;
}

.bm-hero-single__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bm-hero-single__poster-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bm-surface-2);
  font-size: 3rem;
  color: var(--bm-text-light);
}

/* Trailer player */
.bm-hero-single__player {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

/* YouTube facade */
.bm-hero-facade {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-hero-facade__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter var(--bm-transition);
}

.bm-hero-facade:hover .bm-hero-facade__thumb {
  filter: brightness(0.85);
}

.bm-hero-facade__play {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.bm-hero-facade__play svg {
  width: 64px;
  height: 45px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: transform var(--bm-transition);
}

.bm-hero-facade:hover .bm-hero-facade__play svg {
  transform: scale(1.1);
}

.bm-hero-facade__play span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Loaded iframe */
.bm-hero-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* No trailer placeholder */
.bm-hero-single__no-trailer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bm-hero-single__no-trailer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.5);
}

.bm-hero-single__no-trailer-label {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bm-hero-single__no-trailer-label .bi {
  font-size: 2rem;
  opacity: 0.4;
}

.bm-hero-single__no-trailer--empty {
  background: var(--bm-surface);
  color: var(--bm-text-light);
  font-size: 3rem;
  align-items: center;
  justify-content: center;
}

/* Side panel */
.bm-hero-single__side {
  display: flex;
  flex-direction: column;
  background: var(--bm-surface);
  border-left: 1px solid var(--bm-border);
}

.bm-hero-side-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.875rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--bm-border);
  cursor: default;
  transition: background var(--bm-transition);
}

.bm-hero-side-card:last-child {
  border-bottom: none;
}

.bm-hero-side-card--link,
.bm-hero-side-card--btn {
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
}

.bm-hero-side-card--link:hover,
.bm-hero-side-card--btn:hover {
  background: var(--bm-surface-2);
}

.bm-hero-side-card__icon {
  font-size: 1.25rem;
  color: var(--bm-accent);
}

.bm-hero-side-card__count {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.bm-hero-side-card__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--bm-text-muted);
}

/* Watchlist active state */
.bm-hero-side-card.bm-watchlist-btn--active .bm-hero-side-card__icon {
  color: var(--bm-gold);
}

.bm-hero-side-card.bm-watchlist-btn--active .bm-hero-side-card__label {
  color: var(--bm-gold);
}

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.bm-hero-single__footer {
  padding-top: 0.25rem;
}

/* Genre pills */
.bm-hero-single__genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.875rem;
}

.bm-hero-genre-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.65);
  transition: all var(--bm-transition);
  text-decoration: none;
}

.bm-hero-genre-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* Tagline & overview */
.bm-hero-single__tagline {
  font-style: italic;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.bm-hero-single__overview {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 0.875rem;
  max-width: 820px;
}

/* Quick credits */
.bm-hero-single__credits {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.bm-hero-credit-row {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  font-size: 0.84rem;
  line-height: 1.4;
}

.bm-hero-credit-row__label {
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  min-width: 70px;
}

.bm-hero-credit-row__names {
  color: rgba(255, 255, 255, 0.7);
}

.bm-hero-credit-row__names a {
  color: var(--bm-accent-light);
}

.bm-hero-credit-row__names a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Buttons (keep for backward compat) */
.bm-btn-primary {
  background: var(--bm-accent);
  color: #fff;
  border: none;
  border-radius: var(--bm-radius);
  padding: 0.55rem 1.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--bm-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.bm-btn-primary:hover {
  background: var(--bm-accent-dark);
  color: #fff;
}

.bm-btn-outline-white {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--bm-radius);
  padding: 0.55rem 1.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--bm-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.bm-btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* Light theme overrides for hero */
[data-theme="light"] .bm-hero-single {
  background: #1a2535;
}

[data-theme="light"] .bm-hero-single__side {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .bm-hero-side-card {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .bm-hero-side-card--link:hover,
[data-theme="light"] .bm-hero-side-card--btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ══════════════════════════════════════════════════════════════════════════
   SINGLE BODY & INFO PANEL
══════════════════════════════════════════════════════════════════════════ */
.bm-single-body {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

/* ── 2-column layout: main + sidebar ───────────────────────────────── */
.bm-single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.bm-single-main {
  min-width: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════════════════════ */
.bm-single-sidebar {
  position: sticky;
  top: calc(var(--bm-header-height) + 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bm-sidebar-widget {
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-lg);
  padding: 1.125rem 1.25rem;
  margin-bottom: 1rem;
}

.bm-sidebar-widget:last-child {
  margin-bottom: 0;
}

.bm-sidebar-widget__title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bm-text-light);
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--bm-border);
}

/* Streaming badges */
.bm-sidebar-streaming {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bm-streaming-badge {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  background: var(--bm-surface-2);
  border-radius: var(--bm-radius);
  border-left: 3px solid var(--stream-color, var(--bm-accent));
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--bm-text);
}

.bm-streaming-badge .bi {
  color: var(--stream-color, var(--bm-accent));
  font-size: 1rem;
}

/* External links */
.bm-sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.bm-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--bm-radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--bm-accent);
  text-decoration: none;
  transition: background var(--bm-transition), color var(--bm-transition);
}

.bm-sidebar-link:hover {
  background: var(--bm-surface-2);
  color: var(--bm-accent-light);
}

.bm-sidebar-link .bi {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Genre/tag pills */
.bm-sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.bm-sidebar-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: var(--bm-surface-2);
  border: 1px solid var(--bm-border);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bm-text-muted);
  text-decoration: none;
  transition: all var(--bm-transition);
}

.bm-sidebar-tag:hover {
  background: var(--bm-accent-bg);
  border-color: var(--bm-accent);
  color: var(--bm-accent);
}

/* Related titles list */
.bm-sidebar-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bm-related-item {
  border-bottom: 1px solid var(--bm-border-light);
}

.bm-related-item:last-child {
  border-bottom: none;
}

.bm-related-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  text-decoration: none;
  color: var(--bm-text);
  transition: color var(--bm-transition);
}

.bm-related-link:hover {
  color: var(--bm-accent);
}

.bm-related-thumb {
  width: 44px;
  height: 62px;
  flex-shrink: 0;
  border-radius: var(--bm-radius-sm);
  overflow: hidden;
  background: var(--bm-surface-2);
}

.bm-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bm-related-thumb__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bm-text-light);
  font-size: 1rem;
}

.bm-related-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.bm-related-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  display: block;
  color: var(--bm-text);
}

.bm-related-link:hover .bm-related-title {
  color: var(--bm-accent);
}

.bm-related-meta {
  font-size: 0.72rem;
  color: var(--bm-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bm-related-score {
  color: var(--bm-gold);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 600;
}

.bm-related-score .bi {
  font-size: 0.65rem;
}

.bm-info-panel {
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-lg);
  padding: 1.375rem 1.75rem;
  margin-bottom: 2.5rem;
}

.bm-info-panel-title {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bm-text-light);
  margin-bottom: 0.875rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bm-border);
}

/* ── Simple 2-column list: Label:  Value ─────────────────────────── */
.bm-info-rows {
  display: flex;
  flex-direction: column;
}

.bm-info-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--bm-border-light);
  font-size: 0.875rem;
  align-items: baseline;
}

.bm-info-row:last-child {
  border-bottom: none;
}

.bm-info-label {
  color: var(--bm-text-muted);
  font-weight: 400;
  flex-shrink: 0;
}

.bm-info-label::after {
  content: ':';
}

/* adds the colon */

.bm-info-value {
  color: var(--bm-text);
  font-weight: 500;
  word-break: break-word;
}

.bm-info-value a {
  color: var(--bm-accent);
}

.bm-info-value a:hover {
  color: var(--bm-accent-light);
}

/* ══════════════════════════════════════════════════════════════════════════
   CAST ROW
══════════════════════════════════════════════════════════════════════════ */
/* ── Cast section header ─────────────────────────────────────────────── */
.bm-cast-section {
  padding: 0 0 2rem;
}

.bm-cast-section__header {
  margin-bottom: 1.25rem;
}

/* ── Seasons & Episodes ───────────────────────────────────────────────── */

/* Season tab bar */
.bm-seasons-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--bm-border);
  padding-bottom: 0;
}
.bm-season-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: var(--bm-radius) var(--bm-radius) 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bm-text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.bm-season-tab:hover             { color: var(--bm-text); }
.bm-season-tab--active           { color: var(--bm-accent); border-bottom-color: var(--bm-accent); }
.bm-season-tab__count {
  font-size: 0.75rem;
  background: var(--bm-surface-alt, var(--bm-surface));
  color: var(--bm-text-muted);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}
.bm-season-tab--active .bm-season-tab__count { background: color-mix(in srgb, var(--bm-accent) 15%, transparent); color: var(--bm-accent); }

/* Season panels */
.bm-season-panel { display: none; }
.bm-season-panel--active { display: block; }

.bm-season-overview {
  color: var(--bm-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Episode list */
.bm-episode-list { display: flex; flex-direction: column; gap: 0; }

.bm-episode {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--bm-border);
  align-items: flex-start;
}
.bm-episode:last-child { border-bottom: none; }

/* Episode still image */
.bm-episode__still {
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 16/9;
  border-radius: var(--bm-radius);
  overflow: hidden;
  background: var(--bm-surface);
}
.bm-episode__still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bm-episode__still-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bm-text-muted);
  font-size: 1.5rem;
}

/* Episode body */
.bm-episode__body { flex: 1; min-width: 0; }

.bm-episode__header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin-bottom: 0.4rem;
}
.bm-episode__number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bm-accent);
  background: color-mix(in srgb, var(--bm-accent) 12%, transparent);
  padding: 0.15rem 0.45rem;
  border-radius: var(--bm-radius);
  white-space: nowrap;
}
.bm-episode__name {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  color: var(--bm-text);
}
.bm-episode__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  font-size: 0.8125rem;
  color: var(--bm-text-muted);
  margin-left: auto;
}
.bm-episode__meta span + span::before {
  content: '·';
  margin-right: 0.6rem;
}
.bm-episode__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #f5c518;
}
.bm-episode__overview {
  font-size: 0.875rem;
  color: var(--bm-text-muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bm-cast-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bm-surface-2);
  color: var(--bm-text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ── Cast 2-column grid ──────────────────────────────────────────────── */
.bm-cast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.bm-cast-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--bm-border-light);
  text-decoration: none;
  color: var(--bm-text);
  transition: background var(--bm-transition), color var(--bm-transition);
  border-radius: var(--bm-radius-sm);
}

.bm-cast-card:hover {
  color: var(--bm-accent);
  background: var(--bm-surface);
}

.bm-cast-card--no-link {
  cursor: default;
}

.bm-cast-card--no-link:hover {
  color: var(--bm-text);
  background: transparent;
}

/* Photo */
.bm-cast-card__photo-wrap {
  flex-shrink: 0;
}

.bm-cast-card__photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bm-border);
  display: block;
  transition: border-color var(--bm-transition);
}

.bm-cast-card:hover .bm-cast-card__photo {
  border-color: var(--bm-accent);
}

.bm-cast-card__photo-placeholder {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--bm-surface-2);
  border: 2px solid var(--bm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--bm-text-light);
}

/* Info */
.bm-cast-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.bm-cast-card__name {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bm-text);
  display: block;
}

.bm-cast-card:hover .bm-cast-card__name {
  color: var(--bm-accent);
}

.bm-cast-card__role {
  font-size: 0.78rem;
  color: var(--bm-text-muted);
  display: block;
  line-height: 1.3;
}

.bm-cast-card__role--orig {
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════════════════
   CREW SECTION
══════════════════════════════════════════════════════════════════════════ */
.bm-crew-section {
  padding: 0 0 2rem;
}

/* Row grid: department label | names */
.bm-crew-rows {
  display: flex;
  flex-direction: column;
}

.bm-crew-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--bm-border-light);
  font-size: 0.875rem;
  align-items: baseline;
}

.bm-crew-row:last-child {
  border-bottom: none;
}

/* Department label — matches cast card name weight, clearly readable */
.bm-crew-dept {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--bm-text);
  flex-shrink: 0;
}

/* Names — full contrast, links use accent */
.bm-crew-names {
  color: var(--bm-text);
  font-weight: 400;
  line-height: 1.6;
  word-break: break-word;
}

.bm-crew-names a {
  color: var(--bm-text);
  text-decoration: none;
  transition: color var(--bm-transition);
}

.bm-crew-names a:hover {
  color: var(--bm-accent);
}

/* Job title in brackets */
.bm-crew-job {
  font-size: 0.73rem;
  color: var(--bm-text-muted);
}

.bm-crew-sep {
  color: var(--bm-border);
}

/* ══════════════════════════════════════════════════════════════════════════
   FILTERS BAR
══════════════════════════════════════════════════════════════════════════ */
.bm-filters-bar {
  background: var(--bm-bg-alt);
  border-bottom: 1px solid var(--bm-border);
  padding: 0.75rem 0;
  position: sticky;
  top: var(--bm-header-height);
  z-index: 100;
}

.bm-filters-bar__form,
.bm-filters-form {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.bm-filters-bar__form::-webkit-scrollbar,
.bm-filters-form::-webkit-scrollbar {
  display: none;
}

.bm-filters-bar__group {
  flex-shrink: 0;
}

.bm-filters-bar__group--sort {
  margin-left: auto;
  flex-shrink: 0;
}

.bm-filters-bar__select,
.bm-filter-select {
  appearance: none;
  -webkit-appearance: none;
  font-size: 0.8125rem;
  font-family: var(--bm-font);
  font-weight: 500;
  color: var(--bm-text-muted);
  background-color: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: 20px;
  padding: 0.4rem 2.125rem 0.4rem 0.9rem;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 8px 5px;
}

.bm-filters-bar__select:hover,
.bm-filter-select:hover {
  border-color: var(--bm-text-muted);
  color: var(--bm-text);
}

.bm-filters-bar__select:focus,
.bm-filter-select:focus {
  border-color: var(--bm-accent);
  color: var(--bm-text);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.bm-filters-bar__select.is-active,
.bm-filter-select.is-active {
  border-color: var(--bm-accent);
  color: var(--bm-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%233b82f6'/%3E%3C/svg%3E");
}

.bm-filters-bar__select option,
.bm-filter-select option {
  background: var(--bm-surface);
  color: var(--bm-text);
}

.bm-filters-bar__clear {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--bm-text-muted);
  text-decoration: none;
  padding: 0.4rem 0.875rem;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.bm-filters-bar__clear:hover {
  color: var(--bm-accent);
  border-color: var(--bm-accent);
  background: var(--bm-accent-bg);
}

/* Legacy fallbacks */
.bm-filter-btn {
  font-size: 0.8125rem;
  font-family: var(--bm-font);
  background: var(--bm-accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.4rem 0.875rem;
  cursor: pointer;
  font-weight: 500;
  transition: background var(--bm-transition);
}

.bm-filter-btn:hover {
  background: var(--bm-accent-dark);
}

.bm-filter-count {
  font-size: 0.8125rem;
  color: var(--bm-text-muted);
  margin-left: auto;
}

/* ══════════════════════════════════════════════════════════════════════════
   GENRE PILLS
══════════════════════════════════════════════════════════════════════════ */
.bm-genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bm-genre-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.875rem;
  border: 1px solid var(--bm-border);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--bm-text-muted);
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--bm-transition);
}

.bm-genre-pill:hover,
.bm-genre-pill.active {
  background: var(--bm-accent);
  border-color: var(--bm-accent);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════
   REVIEWS — Section, Rating Display, Form, Cards
   (Matches BEM classes used in template-parts/review/*.php)
══════════════════════════════════════════════════════════════════════════ */

/* ── Section wrapper ─────────────────────────────────────────────────── */
/* .bm-reviews-section inherits all spacing/heading from .bm-cast-section */
.bm-reviews-section {
  /* no extra overrides needed — .bm-cast-section handles padding & heading */
}

/* ── Inline ratings (poster cards, archive) ──────────────────────────── */
.bm-stars {
  display: inline-flex;
  gap: 0.1rem;
  color: var(--bm-gold);
  font-size: 0.875rem;
}

.bm-stars .bi-star {
  color: var(--bm-border);
}

.bm-rating-score {
  font-weight: 700;
  font-size: 1rem;
  color: var(--bm-text);
}

.bm-rating-out-of {
  font-size: 0.8125rem;
  color: var(--bm-text-muted);
}

.bm-rating-count {
  font-size: 0.8125rem;
  color: var(--bm-text-light);
}

/* ── Rating Display (score + distribution bars) ──────────────────────── */
.bm-rating-display {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-lg);
  margin-bottom: 1.5rem;
}

/* Left: big score + stars + count */
.bm-rating-display__summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  text-align: center;
}

.bm-rating-display__score {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.bm-rating-display__avg {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--bm-gold);
  /* gold score — instantly readable */
  line-height: 1;
}

.bm-rating-display__max {
  font-size: 1.125rem;
  color: var(--bm-text-muted);
  font-weight: 400;
}

.bm-rating-display__stars {
  display: flex;
  gap: 0.15rem;
  color: var(--bm-gold);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.bm-rating-display__stars .bi-star {
  color: var(--bm-border);
}

.bm-rating-display__count {
  font-size: 0.8125rem;
  color: var(--bm-text-muted);
  margin: 0;
}

/* Right: distribution bars 10→1 */
.bm-rating-display__bars {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bm-rating-display__bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bm-rating-display__bar-label {
  width: 14px;
  text-align: right;
  font-size: 0.75rem;
  color: var(--bm-text-muted);
  flex-shrink: 0;
}

.bm-rating-display__bar-track {
  flex: 1;
  height: 6px;
  background: #2e3038;
  /* visible trough inside the cool-dark card */
  border-radius: 99px;
  overflow: hidden;
}

.bm-rating-display__bar-fill {
  height: 100%;
  background: var(--bm-accent);
  border-radius: 99px;
  transition: width 0.5s ease;
  min-width: 0;
}

.bm-rating-display__bar-count {
  width: 18px;
  font-size: 0.7rem;
  color: var(--bm-text-light);
  text-align: left;
  flex-shrink: 0;
}

/* ── Write-a-review button state ─────────────────────────────────────── */
.bm-reviews-section__already-reviewed {
  font-size: 0.9rem;
  color: var(--bm-text-muted);
  margin-bottom: 1.5rem;
}

.bm-reviews-section__guest-prompt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--bm-text-muted);
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

/* ── View All Ratings link ─────────────────────────────────────────── */
.bm-reviews-section__view-all {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bm-border);
}

.bm-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bm-accent);
  border: 1px solid var(--bm-accent);
  border-radius: var(--bm-radius);
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  transition: background var(--bm-transition), color var(--bm-transition);
}

.bm-view-all-btn:hover {
  background: var(--bm-accent);
  color: #fff;
}

/* ── Review Like (Helpful) Button ────────────────────────────────── */
.bm-review-card__footer-left {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bm-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--bm-border);
  border-radius: 99px;
  color: var(--bm-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  transition: border-color var(--bm-transition), color var(--bm-transition), background var(--bm-transition);
  line-height: 1.4;
}

.bm-like-btn:hover {
  border-color: var(--bm-accent);
  color: var(--bm-accent);
  background: rgba(59, 130, 246, 0.08);
}

.bm-like-btn--active {
  border-color: var(--bm-accent);
  color: var(--bm-accent);
  background: rgba(59, 130, 246, 0.1);
}

.bm-like-btn--loading {
  opacity: 0.6;
}

.bm-like-count {
  font-weight: 700;
  font-size: 0.75rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   ALL RATINGS PAGE
══════════════════════════════════════════════════════════════════════════ */
.bm-all-ratings-page {
  padding: 2rem 0 4rem;
}

/* Breadcrumb */
.bm-all-ratings-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--bm-text-muted);
  margin-bottom: 1.75rem;
}

.bm-all-ratings-breadcrumb__sep {
  color: var(--bm-border);
}

.bm-all-ratings-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--bm-accent);
  text-decoration: none;
  font-weight: 500;
  transition: gap var(--bm-transition);
}

.bm-all-ratings-back:hover {
  gap: 0.5rem;
  color: var(--bm-accent-light);
}

/* Mini movie header */
.bm-all-ratings-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-lg);
  margin-bottom: 2rem;
}

.bm-all-ratings-header__poster {
  width: 56px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--bm-radius-sm);
  flex-shrink: 0;
}

.bm-all-ratings-header__type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bm-accent);
  display: block;
  margin-bottom: 0.25rem;
}

.bm-all-ratings-header__title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--bm-text);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.bm-all-ratings-header__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.bm-all-ratings-header__avg {
  font-weight: 700;
  color: var(--bm-text);
}

.bm-all-ratings-header__count {
  color: var(--bm-text-muted);
}

/* Ratings list grid */
.bm-all-ratings-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Pagination */
.bm-all-ratings-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.bm-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  justify-content: center;
  border-radius: var(--bm-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bm-text-muted);
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  text-decoration: none;
  transition: all var(--bm-transition);
}

.bm-page-btn:hover {
  border-color: var(--bm-accent);
  color: var(--bm-accent);
  background: rgba(59, 130, 246, 0.08);
}

.bm-page-btn--current {
  background: var(--bm-accent);
  border-color: var(--bm-accent);
  color: #fff;
  cursor: default;
}

.bm-page-btn--prev,
.bm-page-btn--next {
  font-size: 0.8rem;
}

.bm-page-numbers {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.bm-page-ellipsis {
  color: var(--bm-text-muted);
  padding: 0 0.2rem;
  font-size: 0.875rem;
}

/* ── Rating Window Notice ─────────────────────────────────────────────── */
.bm-rating-window-notice {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: var(--bm-radius-lg);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  border: 1px solid;
}

.bm-rating-window-notice--upcoming {
  background: color-mix(in srgb, var(--bm-accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--bm-accent) 30%, transparent);
  color: var(--bm-accent);
}

.bm-rating-window-notice--closed {
  background: color-mix(in srgb, var(--bm-text-muted) 10%, transparent);
  border-color: color-mix(in srgb, var(--bm-text-muted) 25%, transparent);
  color: var(--bm-text-muted);
}

/* ── Review Form Panel (collapsible) ─────────────────────────────────── */
.bm-review-form-panel {
  display: none;
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.bm-review-form-panel.bm-review-form--open {
  display: block;
}

/* Form field groups */
.bm-review-form__group {
  margin-bottom: 1.25rem;
}

.bm-review-form__group--inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bm-review-form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bm-text);
  margin-bottom: 0.45rem;
}

.bm-review-form__input,
.bm-review-form__textarea {
  width: 100%;
  background: var(--bm-bg-alt);
  /* darker than form panel so fields stand out */
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 0.6rem 0.875rem;
  color: var(--bm-text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color var(--bm-transition), box-shadow var(--bm-transition);
}

.bm-review-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.bm-review-form__input:focus,
.bm-review-form__textarea:focus {
  outline: none;
  border-color: var(--bm-accent);
  box-shadow: 0 0 0 3px var(--bm-accent-bg);
}

.bm-review-form__input::placeholder,
.bm-review-form__textarea::placeholder {
  color: var(--bm-text-light);
}

.bm-review-form__actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

/* Star picker */
.bm-star-picker {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.bm-star-btn {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  line-height: 1;
  border-radius: var(--bm-radius-sm);
  transition: background var(--bm-transition);
}

.bm-star-btn:focus-visible {
  outline: 2px solid var(--bm-accent);
  outline-offset: 2px;
}

.bm-star-btn .bm-star {
  font-size: 1.5rem;
  color: #3a3e48;
  /* bright enough to see on the dark form panel */
  transition: color var(--bm-transition), transform 0.15s ease;
  display: block;
  pointer-events: none;
}

.bm-star-btn:hover .bm-star,
.bm-star-btn.active .bm-star {
  color: var(--bm-gold);
  transform: scale(1.2);
}

.bm-star-picker__hint {
  font-size: 0.8125rem;
  color: var(--bm-text-muted);
  margin-left: 0.375rem;
  align-self: center;
  min-width: 80px;
}

/* Submission message */
.bm-review-message {
  padding: 0.75rem 1rem;
  border-radius: var(--bm-radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.bm-review-message--success {
  background: rgba(34, 197, 94, .10);
  border-color: rgba(34, 197, 94, .25);
  color: #4ade80;
}

.bm-review-message--error {
  background: rgba(239, 68, 68, .10);
  border-color: rgba(239, 68, 68, .25);
  color: #f87171;
}

/* ── Email Verification Notice ───────────────────────────────────── */
.bm-verify-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--bm-radius);
  margin-bottom: 1.5rem;
}

.bm-verify-notice__icon {
  font-size: 1.4rem;
  color: var(--bm-accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.bm-verify-notice__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.bm-verify-notice__body strong {
  font-size: 0.9375rem;
  color: var(--bm-text);
}

.bm-verify-notice__body p {
  font-size: 0.85rem;
  color: var(--bm-text-muted);
  margin: 0;
  line-height: 1.55;
}

.bm-verify-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bm-accent);
  color: #fff;
  border: none;
  border-radius: var(--bm-radius-sm);
  cursor: pointer;
  transition: opacity var(--bm-transition);
}

.bm-verify-send-btn:hover {
  opacity: 0.88;
}

.bm-verify-send-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.bm-verify-notice__feedback {
  display: inline-block;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--bm-radius-sm);
}

.bm-verify-notice__feedback--ok {
  background: rgba(34, 197, 94, .10);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, .25);
}

.bm-verify-notice__feedback--err {
  background: rgba(239, 68, 68, .10);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, .25);
}

/* ── Masked / Flagged Review Card ────────────────────────────────── */
.bm-review-card--masked {
  opacity: 0.7;
  border-left-color: #4b5563 !important;
}

.bm-review-card--masked:hover {
  background: var(--bm-surface) !important;
  border-left-color: #4b5563 !important;
}

.bm-review-card__avatar-placeholder--masked {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bm-surface-2);
  border: 1px solid var(--bm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bm-text-light);
  font-size: 1rem;
  flex-shrink: 0;
}

.bm-review-card__masked-notice {
  font-size: 0.78rem;
  color: var(--bm-text-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.5rem 0 0;
  font-style: italic;
}

/* ── Review Cards List ───────────────────────────────────────────────── */
.bm-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bm-review-card {
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-left: 3px solid var(--bm-border);
  /* accent stripe animates on hover */
  border-radius: var(--bm-radius-lg);
  padding: 1.375rem 1.5rem;
  transition: border-color var(--bm-transition), border-left-color var(--bm-transition), background var(--bm-transition), box-shadow var(--bm-transition);
}

.bm-review-card:hover {
  border-color: #3a3e4a;
  border-left-color: var(--bm-accent);
  /* orange left stripe on hover */
  background: #22262f;
  box-shadow: var(--bm-shadow);
}

/* Header row: author left, rating right */
.bm-review-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.bm-review-card__author {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.bm-review-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--bm-border);
}

.bm-review-card__author-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bm-text);
  line-height: 1.3;
}

.bm-review-card__date {
  display: block;
  font-size: 0.75rem;
  color: var(--bm-text-light);
  margin-top: 0.1rem;
}

/* Star rating on card */
.bm-review-card__rating {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.bm-star--sm {
  font-size: 0.75rem;
  color: var(--bm-border);
}

.bi-star-fill.bm-star--sm {
  color: var(--bm-gold);
}

.bm-review-card__score {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--bm-gold);
  margin-left: 0.3rem;
  white-space: nowrap;
}

/* Card body */
.bm-review-card__media-link {
  font-size: 0.8125rem;
  color: var(--bm-text-muted);
  margin-bottom: 0.5rem;
}

.bm-review-card__summary {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bm-text);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.bm-review-card__excerpt {
  font-size: 0.875rem;
  color: var(--bm-text-muted);
  line-height: 1.65;
  margin-bottom: 0.875rem;
}

.bm-review-card__excerpt p:last-child {
  margin-bottom: 0;
}

/* Card footer: spoiler badge + read-more link */
.bm-review-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #2e3038;
  margin-top: 0.25rem;
}

.bm-review-card__read-more {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bm-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--bm-transition), gap var(--bm-transition);
}

.bm-review-card__read-more:hover {
  color: var(--bm-accent-light);
  gap: 0.5rem;
}

/* ── Badges ──────────────────────────────────────────────────────────── */
.bm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--bm-radius-sm);
  padding: 0.15rem 0.5rem;
  border: 1px solid transparent;
}

.bm-badge--spoiler {
  color: #d97706;
  background: rgba(217, 119, 6, 0.10);
  border-color: rgba(217, 119, 6, 0.25);
}

/* ══════════════════════════════════════════════════════════════════════════
   WATCHLIST BUTTON
══════════════════════════════════════════════════════════════════════════ */
.bm-watchlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--bm-radius);
  padding: 0.55rem 1.125rem;
  cursor: pointer;
  transition: all var(--bm-transition);
}

.bm-watchlist-btn:hover,
.bm-watchlist-btn.bm-watchlisted {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.bm-watchlist-btn.bm-watchlisted .bi-bookmark {
  display: none;
}

.bm-watchlist-btn:not(.bm-watchlisted) .bi-bookmark-fill {
  display: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   ARCHIVE
══════════════════════════════════════════════════════════════════════════ */
.bm-archive-header {
  background: var(--bm-bg-alt);
  border-bottom: 1px solid var(--bm-border);
  padding: 2rem 0 1.75rem;
}

.bm-archive-header .bm-breadcrumb {
  margin-bottom: .85rem;
}

.bm-archive-title,
.bm-archive-header__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--bm-text);
}

.bm-archive-header__hero {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bm-archive-header__desc {
  margin-top: .4rem;
  font-size: .9375rem;
  max-width: 640px;
}

.bm-archive-count {
  font-size: 0.875rem;
  color: var(--bm-text-muted);
}

.bm-archive-content,
.bm-archive-body {
  padding: 2.5rem 0 4rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════════════════════════ */

/* Nav wrapper — WordPress outputs <nav class="navigation bm-pagination"> */
.navigation.bm-pagination {
  padding: 2.5rem 0 1.5rem;
}

/* Inner nav-links div becomes the flex row */
.navigation.bm-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* Hide the screen-reader heading */
.navigation.bm-pagination .screen-reader-text {
  display: none;
}

/* Every page number / link */
.bm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bm-text-muted);
  border: 1.5px solid transparent;
  text-decoration: none;
  background: var(--bm-surface);
  transition: background var(--bm-transition), color var(--bm-transition),
              border-color var(--bm-transition), box-shadow var(--bm-transition);
}

.bm-pagination .page-numbers:hover {
  background: var(--bm-surface-2);
  color: var(--bm-text);
  border-color: rgba(var(--bm-accent-rgb, 59,130,246), 0.4);
}

/* Active / current page */
.bm-pagination .page-numbers.current {
  background: var(--bm-accent);
  border-color: var(--bm-accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(var(--bm-accent-rgb, 59,130,246), 0.35);
  pointer-events: none;
}

/* Prev / Next — icon-only pills */
.bm-pagination .page-numbers.prev,
.bm-pagination .page-numbers.next {
  min-width: 40px;
  padding: 0 0.9rem;
  background: var(--bm-surface-2);
  border: 1.5px solid var(--bm-border);
  color: var(--bm-text);
  font-size: 0.95rem;
}

.bm-pagination .page-numbers.prev:hover,
.bm-pagination .page-numbers.next:hover {
  background: var(--bm-accent);
  border-color: var(--bm-accent);
  color: #fff;
}

/* Dots / ellipsis */
.bm-pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  color: var(--bm-text-muted);
  pointer-events: none;
  min-width: 24px;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════════════════════════════════════
   BREADCRUMBS
══════════════════════════════════════════════════════════════════════════ */
.bm-breadcrumbs {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 1.125rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.bm-breadcrumbs a {
  color: rgba(255, 255, 255, 0.55);
}

.bm-breadcrumbs a:hover {
  color: #fff;
}

.bm-breadcrumbs .sep {
  opacity: 0.35;
}

.bm-breadcrumbs-light {
  color: var(--bm-text-muted);
}

.bm-breadcrumbs-light a {
  color: var(--bm-text-muted);
}

.bm-breadcrumbs-light a:hover {
  color: var(--bm-accent);
}

/* ── Breadcrumb (BEM nav output) ─────────────────────────────────────────── */
.bm-breadcrumb {
  margin-bottom: 1rem;
}

.bm-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .8125rem;
}

.bm-breadcrumb__item {
  display: flex;
  align-items: center;
  color: var(--bm-text-muted);
}

/* Chevron separator between items */
.bm-breadcrumb__item + .bm-breadcrumb__item::before {
  content: '\203A'; /* › */
  margin: 0 .45rem;
  opacity: .45;
  font-size: .9em;
}

.bm-breadcrumb__item a {
  color: var(--bm-accent);
  text-decoration: none;
  transition: color var(--bm-transition);
}

.bm-breadcrumb__item a:hover {
  color: var(--bm-accent-hover, #60a5fa);
  text-decoration: underline;
}

.bm-breadcrumb__item--active {
  color: var(--bm-text);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════════════ */
.bm-footer {
  background: #060915;
  border-top: 1px solid var(--bm-border);
  color: rgba(255, 255, 255, 0.5);
  margin-top: auto;
}

.bm-footer-heading {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 1.125rem;
}

.bm-footer-links {
  margin: 0;
  padding: 0;
}

.bm-footer-links li {
  margin-bottom: 0.625rem;
}

.bm-footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--bm-transition);
}

.bm-footer-links a:hover {
  color: rgba(255, 255, 255, 0.88);
}

.bm-footer-brand-link {
  text-decoration: none;
}

.bm-footer-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.bm-footer-brand-link img {
  max-height: 34px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.bm-footer-desc {
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.7;
  font-size: 0.875rem;
}

.bm-footer-social .bm-social-link {
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.1rem;
  transition: color var(--bm-transition);
}

.bm-footer-social .bm-social-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Google Ads / Ad Network Wrappers ───────────────────────────────────────── */
.bm-ad-wrapper {
  text-align: center;
  overflow: hidden;
  clear: both;
}
.bm-ad-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bm-text-muted, #64748b);
  margin-bottom: 6px;
  line-height: 1;
  opacity: 0.6;
}
/* Leaderboard placements — max 970 px, centred */
.bm-ad-wrapper--home_after_hero,
.bm-ad-wrapper--home_after_articles,
.bm-ad-wrapper--article_before,
.bm-ad-wrapper--article_after,
.bm-ad-wrapper--media_after_cast,
.bm-ad-wrapper--archive_top {
  padding: 1.75rem 0;
  max-width: 970px;
  margin-inline: auto;
}
/* Rectangle / in-feed */
.bm-ad-wrapper--home_mid,
.bm-ad-wrapper--article_in_content {
  padding: 1.5rem 0;
  max-width: 100%;
  margin: 1.5rem 0;
}
/* Sidebar — confined to 300 px column */
.bm-ad-wrapper--article_sidebar,
.bm-ad-wrapper--media_sidebar {
  padding: 1.25rem 0;
  max-width: 300px;
  margin-inline: auto;
}
/* Responsive: on small screens shrink the leaderboard slots gracefully */
@media (max-width: 767px) {
  .bm-ad-wrapper--home_after_hero,
  .bm-ad-wrapper--home_after_articles,
  .bm-ad-wrapper--article_before,
  .bm-ad-wrapper--article_after,
  .bm-ad-wrapper--media_after_cast,
  .bm-ad-wrapper--archive_top {
    padding: 1rem 0;
  }
}

/* TMDB Attribution */
.bm-tmdb-attribution { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1rem; }
.bm-tmdb-logo { display: block; opacity: 0.8; transition: opacity 0.2s; max-width: 130px; height: auto; }
.bm-tmdb-logo:hover { opacity: 1; }
.bm-tmdb-notice {
  font-size: 0.7rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

.bm-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.25);
}

.bm-footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
}

.bm-footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.72);
}

/* ══════════════════════════════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════════════════════════════ */
.bm-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--bm-radius-sm);
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.bm-badge-movie {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.bm-badge-tv_series {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.bm-badge-documentary {
  background: rgba(245, 197, 24, 0.15);
  color: #fde68a;
}

.bm-badge-person {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
}

/* ══════════════════════════════════════════════════════════════════════════
   NO RESULTS
══════════════════════════════════════════════════════════════════════════ */
.bm-no-results {
  text-align: center;
  padding: 6rem 1rem;
}

.bm-no-results-icon {
  font-size: 4rem;
  color: var(--bm-border);
  margin-bottom: 1.25rem;
}

.bm-no-results-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--bm-text);
  margin-bottom: 0.625rem;
}

.bm-no-results-text {
  font-size: 0.9375rem;
  color: var(--bm-text-muted);
}

/* ══════════════════════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════════════════════ */
.bm-text-muted {
  color: var(--bm-text-muted) !important;
}

.bm-text-light {
  color: var(--bm-text-light) !important;
}

.bm-text-accent {
  color: var(--bm-accent) !important;
}

.bm-bg-alt {
  background-color: var(--bm-bg-alt) !important;
}

.bm-divider {
  border: none;
  border-top: 1px solid var(--bm-border);
  margin: 2.5rem 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   LIGHT THEME — Component overrides
══════════════════════════════════════════════════════════════════════════ */

/* Hero (single media) */
[data-theme="light"] .bm-hero-backdrop-img {
  filter: brightness(0.28) saturate(0.6);
}

[data-theme="light"] .bm-hero-backdrop::after {
  background: linear-gradient(to top, #e8edf2 0%, transparent 100%);
}

/* Sections */
[data-theme="light"] .bm-home-section--alt,
[data-theme="light"] .bm-section-alt {
  background: #dfe5ec;
}

/* Tab pills - light mode */
[data-theme="light"] .bm-tab-pill {
  background: #e8edf4;
  color: #4e6070;
  border-color: transparent;
}
[data-theme="light"] .bm-tab-pill:hover {
  background: #dce3ed;
  color: #1a2535;
}
[data-theme="light"] .bm-tab-pill--active {
  background: var(--bm-accent);
  color: #fff;
}

/* Scroll row - light mode scrollbar */

/* Poster card */
[data-theme="light"] .bm-poster-card {
  background: #edf1f6;
  box-shadow: 0 1px 4px rgba(15, 25, 40, 0.1);
}

[data-theme="light"] .bm-poster-card:hover {
  box-shadow: var(--bm-shadow-hover);
}

[data-theme="light"] .bm-poster-card__img-wrap,
[data-theme="light"] .bm-poster-wrap {
  background: #c2ccd8;
}

[data-theme="light"] .bm-poster-card__placeholder,
[data-theme="light"] .bm-poster-placeholder {
  background: #d6dde7;
  color: #7a8f9e;
}

[data-theme="light"] .bm-poster-card__wl {
  background: rgba(26, 37, 53, 0.45);
}

[data-theme="light"] .bm-badge--type {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

/* Filters */
[data-theme="light"] .bm-filters-bar {
  background: #dfe5ec;
  border-color: var(--bm-border);
}

[data-theme="light"] .bm-filters-bar__select,
[data-theme="light"] .bm-filter-select {
  background-color: #edf1f6;
  color: #4e6070;
  border-color: #c2ccd8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%234e6070'/%3E%3C/svg%3E");
}

[data-theme="light"] .bm-filters-bar__select:hover,
[data-theme="light"] .bm-filter-select:hover {
  border-color: #7a8f9e;
  color: #1a2535;
}

[data-theme="light"] .bm-filters-bar__select.is-active,
[data-theme="light"] .bm-filter-select.is-active {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%233b82f6'/%3E%3C/svg%3E");
}

[data-theme="light"] .bm-filters-bar__select option,
[data-theme="light"] .bm-filter-select option {
  background: #edf1f6;
  color: #1a2535;
}

/* Wide card */
[data-theme="light"] .bm-card-wide {
  background: #edf1f6;
  border-color: #c2ccd8;
}

[data-theme="light"] .bm-card-wide:hover {
  border-color: var(--bm-accent);
}

/* Info panel */
[data-theme="light"] .bm-info-panel {
  background: #dfe5ec;
  border-color: var(--bm-border);
}

/* Crew */
[data-theme="light"] .bm-crew-dept {
  color: var(--bm-text);
}

[data-theme="light"] .bm-crew-names {
  color: var(--bm-text);
}

[data-theme="light"] .bm-crew-names a {
  color: var(--bm-text);
}

[data-theme="light"] .bm-crew-names a:hover {
  color: var(--bm-accent);
}

[data-theme="light"] .bm-crew-row {
  border-bottom-color: var(--bm-border);
}

/* Cast */
/* Cast grid light theme */
[data-theme="light"] .bm-cast-section {
  border-top-color: var(--bm-border);
}

[data-theme="light"] .bm-cast-card {
  color: var(--bm-text);
}

[data-theme="light"] .bm-cast-card:hover {
  background: var(--bm-surface-2);
  color: var(--bm-accent);
}

[data-theme="light"] .bm-cast-card__photo,
[data-theme="light"] .bm-cast-card__photo-placeholder {
  border-color: var(--bm-border);
  background: var(--bm-surface-2);
}

/* Sidebar light theme */
[data-theme="light"] .bm-sidebar-widget {
  background: var(--bm-surface);
  border-color: var(--bm-border);
}

[data-theme="light"] .bm-streaming-badge {
  background: var(--bm-surface-2);
  color: var(--bm-text);
}

[data-theme="light"] .bm-sidebar-tag {
  background: var(--bm-surface-2);
  border-color: var(--bm-border);
  color: var(--bm-text-muted);
}

[data-theme="light"] .bm-sidebar-tag:hover {
  background: var(--bm-accent-bg);
  border-color: var(--bm-accent);
  color: var(--bm-accent);
}

/* Reviews */
/* [data-theme="light"] .bm-reviews-section — handled by .bm-cast-section light rules */
[data-theme="light"] .bm-rating-display {
  background: #e8edf4;
  border-color: #ccd4dd;
}

[data-theme="light"] .bm-rating-display__avg {
  color: var(--bm-accent);
}

[data-theme="light"] .bm-rating-display__bar-track {
  background: #c8d3df;
}

[data-theme="light"] .bm-review-form-panel {
  background: #e8edf4;
  border-color: #ccd4dd;
}

[data-theme="light"] .bm-review-form__input,
[data-theme="light"] .bm-review-form__textarea {
  background: #f4f6f9;
  border-color: #bcc8d4;
  color: #1a2535;
}

[data-theme="light"] .bm-review-form__input::placeholder,
[data-theme="light"] .bm-review-form__textarea::placeholder {
  color: #8a9bb0;
}

[data-theme="light"] .bm-review-card {
  background: #e8edf4;
  border-color: #ccd4dd;
  border-left-color: #ccd4dd;
}

[data-theme="light"] .bm-review-card:hover {
  background: #dde4ed;
  border-left-color: var(--bm-accent);
  border-color: #bcc8d4;
}

[data-theme="light"] .bm-review-card__footer {
  border-top-color: #ccd4dd;
}

[data-theme="light"] .bm-reviews-section__guest-prompt {
  background: #e8edf4;
  border-color: #ccd4dd;
}

[data-theme="light"] .bm-star-btn .bm-star {
  color: #b8c5d4;
}

/* Archive */
[data-theme="light"] .bm-archive-header {
  background: #dfe5ec;
  border-color: var(--bm-border);
}

/* Pagination */
[data-theme="light"] .bm-pagination .page-numbers {
  background: #edf1f6;
  color: #4e6070;
}
[data-theme="light"] .bm-pagination .page-numbers.prev,
[data-theme="light"] .bm-pagination .page-numbers.next {
  background: #e0e7f0;
  border-color: #c8d4e0;
  color: #1a2535;
}
[data-theme="light"] .bm-pagination .page-numbers:hover {
  background: #d6dde7;
  color: #1a2535;
  border-color: var(--bm-accent);
}

/* Badges — muted to suit the grey bg */
[data-theme="light"] .bm-badge-movie {
  background: #c3d4ef;
  color: #1e3a6e;
}

[data-theme="light"] .bm-badge-tv_series {
  background: #c3e0d2;
  color: #145233;
}

[data-theme="light"] .bm-badge-documentary {
  background: #ddd0b0;
  color: #5a3a0a;
}

[data-theme="light"] .bm-badge-person {
  background: #d8ccea;
  color: #4a1c7a;
}

/* Person cards */
[data-theme="light"] .bm-person-headshot {
  border-color: var(--bm-border);
}

[data-theme="light"] .bm-person-headshot-placeholder {
  background: #d6dde7;
  border-color: var(--bm-border);
}

/* Footer */
[data-theme="light"] .bm-footer {
  background: #dfe5ec;
  border-top-color: var(--bm-border);
  color: #4e6070;
}

[data-theme="light"] .bm-footer-heading {
  color: #7a8f9e;
}

[data-theme="light"] .bm-footer-links a {
  color: #4e6070;
}

[data-theme="light"] .bm-footer-links a:hover {
  color: #1a2535;
}

[data-theme="light"] .bm-footer-brand-name {
  color: #1a2535;
}

[data-theme="light"] .bm-footer-brand-link img {
  filter: brightness(0.15);
  opacity: 0.9;
}

[data-theme="light"] .bm-footer-desc {
  color: #7a8f9e;
}

[data-theme="light"] .bm-footer-social .bm-social-link {
  color: #7a8f9e;
}

[data-theme="light"] .bm-footer-social .bm-social-link:hover {
  color: #1a2535;
}

[data-theme="light"] .bm-footer-bottom {
  border-top-color: #c2ccd8;
  color: #7a8f9e;
}

[data-theme="light"] .bm-footer-bottom a {
  color: #4e6070;
}

[data-theme="light"] .bm-footer-bottom a:hover {
  color: #1a2535;
}

/* ══════════════════════════════════════════════════════════════════════════
   SINGLE PAGE — STACKED LAYOUT
   Hero → Details card → Overview → Cast → Crew → Reviews (single column)
══════════════════════════════════════════════════════════════════════════ */

/* Single section spacing */
.bm-single-section {
  margin-bottom: 2.5rem;
}

.bm-single-section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bm-text);
  margin: 0;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 1.125rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bm-border);
}

/* ── Trailer Section ─────────────────────────────────────────────────────── */

/* Constrain trailer to a readable max-width and centre it */
.bm-trailer-wrap {
  max-width: 860px;
}

/* Facade container — 16:9 aspect ratio, dark bg while thumbnail loads */
.bm-trailer-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  cursor: pointer;
  outline: none;
}

.bm-trailer-facade:focus-visible {
  box-shadow: 0 0 0 3px var(--bm-accent);
}

/* Thumbnail fills the facade */
.bm-trailer-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
  will-change: transform;
}

.bm-trailer-facade:hover .bm-trailer-thumb,
.bm-trailer-facade:focus-visible .bm-trailer-thumb {
  transform: scale(1.03);
  filter: brightness(0.65);
}

/* Dark gradient overlay so the play button stays readable */
.bm-trailer-facade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  transition: background 0.25s ease;
}

.bm-trailer-facade:hover::after,
.bm-trailer-facade:focus-visible::after {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.70) 100%);
}

/* Play button — centred absolutely */
.bm-trailer-play-btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  pointer-events: none;
}

/* YouTube-style SVG icon */
.bm-trailer-yt-icon {
  width: 68px;
  height: 48px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s ease;
}

.bm-trailer-yt-bg {
  fill: #ff0000;
  fill-opacity: 0.9;
  transition: fill-opacity 0.2s ease;
}

.bm-trailer-yt-arrow {
  fill: #fff;
}

.bm-trailer-facade:hover .bm-trailer-yt-bg,
.bm-trailer-facade:focus-visible .bm-trailer-yt-bg {
  fill-opacity: 1;
}

.bm-trailer-facade:hover .bm-trailer-yt-icon,
.bm-trailer-facade:focus-visible .bm-trailer-yt-icon {
  transform: scale(1.12);
}

/* "Play Trailer" text label below the icon */
.bm-trailer-play-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Actual iframe — replaces the facade on click */
.bm-trailer-iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--bm-radius-lg);
  background: #000;
}

/* ── Overview text ───────────────────────────────────────────────────────── */
/* Overview text */
.bm-overview-content {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--bm-text);
}

.bm-overview-content p {
  margin-bottom: 0.875rem;
}

.bm-overview-content p:last-child {
  margin-bottom: 0;
}

/* Genre pills row at bottom of info panel */
.bm-info-panel-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding-top: 1rem;
  margin-top: 0.875rem;
  border-top: 1px solid var(--bm-border);
}

/* Subtle year color in hero title */
.bm-hero-year {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85em;
  margin-left: 0.2em;
}

/* ══════════════════════════════════════════════════════════════════════════
   ARCHIVE HEADER — ICON BOX
══════════════════════════════════════════════════════════════════════════ */

.bm-archive-header-icon {
  width: 52px;
  height: 52px;
  background: var(--bm-surface-2);
  border-radius: var(--bm-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: var(--bm-accent);
  flex-shrink: 0;
}

.bm-archive-count strong {
  color: var(--bm-accent);
}

/* Light theme overrides */
[data-theme="light"] .bm-archive-header-icon {
  background: #d6dde7;
}

[data-theme="light"] .bm-info-panel-title {
  border-bottom-color: var(--bm-border);
}

[data-theme="light"] .bm-single-section-heading {
  border-bottom-color: var(--bm-border);
}

[data-theme="light"] .bm-info-panel-genres {
  border-top-color: var(--bm-border);
}

[data-theme="light"] .bm-overview-content {
  color: var(--bm-text);
}

/* ── Registration Form ──────────────────────────────────────────────────────── */
.bm-register-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.bm-register-form {
  background: var(--bm-card-bg);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-lg);
  padding: 2rem;
}

.bm-register-form__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .bm-register-form__row--two {
    grid-template-columns: 1fr;
  }
}

.bm-register-form__group {
  margin-bottom: 1.1rem;
}

.bm-register-form__label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--bm-text);
  margin-bottom: .35rem;
}

.bm-required {
  color: var(--bm-accent);
  margin-left: .15rem;
}

.bm-register-form__input {
  display: block;
  width: 100%;
  padding: .55rem .85rem;
  background: var(--bm-input-bg, var(--bm-surface));
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  color: var(--bm-text);
  font-size: .9375rem;
  transition: border-color var(--bm-transition);
}

.bm-register-form__input:focus {
  outline: none;
  border-color: var(--bm-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.bm-register-form__actions {
  margin-top: 1.5rem;
}

.bm-register-form__submit {
  width: 100%;
  padding: .65rem 1.5rem;
  font-size: 1rem;
}

.bm-register-form__login-link {
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--bm-text-muted);
  text-align: center;
}

.bm-register-form__login-link a {
  color: var(--bm-accent);
}

.bm-register-message {
  margin-top: 1rem;
  padding: .6rem .9rem;
  border-radius: var(--bm-radius);
  font-size: .9rem;
  font-weight: 500;
}

.bm-register-message--ok {
  background: rgba(70, 180, 80, .12);
  color: #2d8a3e;
  border: 1px solid rgba(70, 180, 80, .3);
}

.bm-register-message--err {
  background: rgba(220, 50, 50, .1);
  color: #c0392b;
  border: 1px solid rgba(220, 50, 50, .25);
}

/* ── Login Page ──────────────────────────────────────────────────────────────── */
.bm-login-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.bm-login-wrap {
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.bm-login-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.bm-login-header__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bm-text);
  margin-bottom: .35rem;
}

.bm-login-header__sub {
  color: var(--bm-text-muted);
  font-size: .9375rem;
  margin: 0;
}

.bm-login-form__password-wrap {
  position: relative;
}

.bm-login-form__password-wrap .bm-register-form__input {
  padding-right: 2.75rem;
}

.bm-login-form__toggle-pw {
  position: absolute;
  right: .65rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: .25rem;
  color: var(--bm-text-muted);
  cursor: pointer;
  line-height: 1;
  font-size: 1rem;
  transition: color var(--bm-transition);
}

.bm-login-form__toggle-pw:hover {
  color: var(--bm-text);
}

.bm-login-form__forgot-wrap {
  margin-top: .4rem;
  text-align: right;
}

.bm-login-form__forgot {
  font-size: .8125rem;
  color: var(--bm-accent);
  text-decoration: none;
}

.bm-login-form__forgot:hover {
  text-decoration: underline;
}

.bm-login-form__remember {
  margin-bottom: .75rem;
}

.bm-login-form__remember-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--bm-text-muted);
  cursor: pointer;
  user-select: none;
}

.bm-login-form__remember-check {
  width: 1rem;
  height: 1rem;
  accent-color: var(--bm-accent);
  cursor: pointer;
}

/* ── Own Rating Section ──────────────────────────────────────────────────────── */
.bm-own-rating-wrap {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bm-border);
}

.bm-own-rating-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bm-text);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
}

.bm-review-card--hidden-own {
  opacity: .7;
  border-style: dashed;
}

.bm-review-card__header-right {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.bm-badge--hidden {
  background: rgba(100, 116, 139, .15);
  color: var(--bm-text-muted);
  border: 1px solid var(--bm-border);
  font-size: .7rem;
  padding: .15rem .45rem;
  border-radius: var(--bm-radius);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.bm-badge--pending {
  background: rgba(245, 158, 11, .15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, .3);
  font-size: .7rem;
  padding: .15rem .45rem;
  border-radius: var(--bm-radius);
}

.bm-badge--disapproved {
  background: rgba(220, 50, 50, .1);
  color: #c0392b;
  border: 1px solid rgba(220, 50, 50, .25);
  font-size: .7rem;
  padding: .15rem .45rem;
  border-radius: var(--bm-radius);
}

/* Own-card action buttons */
.bm-own-card-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.bm-card-action-btn {
  background: transparent;
  border: 1px solid var(--bm-border);
  color: var(--bm-text-muted);
  font-size: .8125rem;
  padding: .2rem .65rem;
  border-radius: var(--bm-radius);
  cursor: pointer;
  transition: all var(--bm-transition);
}

.bm-card-action-btn:hover {
  border-color: var(--bm-accent);
  color: var(--bm-accent);
}

/* Hide button active state */
.bm-hide-rating-btn--active {
  border-color: var(--bm-accent);
  color: var(--bm-accent);
}

/* Edit lock notice */
.bm-edit-locked-notice {
  font-size: .85rem;
  color: var(--bm-text-muted);
  margin-top: .5rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}

/* Toggle row (spoilers + hide) */
.bm-review-form__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
}

.bm-toggle-label {
  display: flex;
  align-items: center;
  font-size: .875rem;
  color: var(--bm-text-muted);
  cursor: pointer;
  user-select: none;
}

.bm-register-notice {
  color: var(--bm-text-muted);
  text-align: center;
  padding: 2rem 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   NEWS / BLOG
══════════════════════════════════════════════════════════════════════════ */

/* Category nav bar */
.bm-news-cat-nav {
  background: var(--bm-surface);
  border-bottom: 1px solid var(--bm-border);
  padding: 0.6rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.bm-news-cat-nav .container {
  display: flex;
  gap: 0.4rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.bm-news-cat-badge {
  display: inline-block;
  background: var(--bm-accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}
.bm-news-cat-badge--sm { font-size: 0.625rem; padding: 0.15rem 0.45rem; }
.bm-news-archive { padding: 2.5rem 0 3rem; }

/* Featured hero card */
.bm-news-featured {
  margin-bottom: 2.5rem;
  border-radius: var(--bm-radius-lg, 12px);
  overflow: hidden;
  position: relative;
}
.bm-news-featured__link { display: block; text-decoration: none; color: inherit; }
.bm-news-featured__img-wrap { position: relative; aspect-ratio: 21 / 8; overflow: hidden; }
@media (max-width: 767px) { .bm-news-featured__img-wrap { aspect-ratio: 16 / 9; } }
.bm-news-featured__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}
.bm-news-featured__link:hover .bm-news-featured__img { transform: scale(1.03); }
.bm-news-featured__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 50%, transparent 100%);
}
.bm-news-featured__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 2rem;
}
.bm-news-featured__body .bm-news-cat-badge { margin-bottom: 0.6rem; }
.bm-news-featured__title {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}
.bm-news-featured__excerpt {
  color: rgba(255,255,255,0.78);
  font-size: 0.9375rem;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bm-news-featured__meta {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* News grid */
.bm-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.bm-news-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .bm-news-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .bm-news-grid, .bm-news-grid--3 { grid-template-columns: 1fr; } }

/* News card */
.bm-news-card {
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--bm-transition), box-shadow var(--bm-transition);
}
.bm-news-card:hover {
  border-color: rgba(59,130,246,0.45);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.bm-news-card__img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.bm-news-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.bm-news-card:hover .bm-news-card__img { transform: scale(1.04); }
.bm-news-card__img-placeholder {
  width: 100%; height: 100%;
  background: var(--bm-surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--bm-text-muted);
}
.bm-news-card__img-wrap .bm-news-cat-badge { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 1; }
.bm-news-card__body {
  padding: 1rem 1.1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bm-news-card__title {
  font-size: 0.975rem; font-weight: 700; margin: 0; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bm-news-card__title a { color: var(--bm-text); text-decoration: none; }
.bm-news-card__title a:hover { color: var(--bm-accent); }
.bm-news-card__excerpt {
  font-size: 0.8125rem; color: var(--bm-text-muted); margin: 0; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.bm-news-card__meta {
  display: flex; gap: 0.75rem; font-size: 0.75rem; color: var(--bm-text-muted);
  margin-top: auto; padding-top: 0.5rem; border-top: 1px solid var(--bm-border); flex-wrap: wrap;
}

/* Single post */
.bm-news-single { padding-bottom: 4rem; }
.bm-news-single__hero {
  position: relative; aspect-ratio: 21 / 8; overflow: hidden; max-height: 520px;
}
@media (max-width: 767px) { .bm-news-single__hero { aspect-ratio: 16 / 9; max-height: 280px; } }
.bm-news-single__hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-news-single__hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.05) 100%);
}
.bm-news-single__hero-content {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; padding-bottom: 2rem;
}
.bm-news-single__hero-content .bm-news-cat-badge { margin-bottom: 0.75rem; display: inline-block; }
.bm-news-single__title {
  font-size: clamp(1.375rem, 3.5vw, 2.25rem);
  font-weight: 800; color: #fff; margin: 0 0 0.75rem; line-height: 1.2; max-width: 800px;
}
.bm-news-single__title--no-hero { color: var(--bm-text); margin-top: 0.5rem; }
.bm-news-single__hero-meta {
  display: flex; gap: 1rem; font-size: 0.8125rem; color: rgba(255,255,255,0.65); flex-wrap: wrap; align-items: center;
}
.bm-news-single__author { color: inherit; text-decoration: none; }
.bm-news-single__author:hover { color: #fff; text-decoration: underline; }
.bm-news-single__layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 2.5rem; padding: 2.5rem 0 0; align-items: start;
}
@media (max-width: 991px) { .bm-news-single__layout { grid-template-columns: 1fr; } }
.bm-news-single__body { font-size: 1.0625rem; line-height: 1.8; color: var(--bm-text); }
.bm-news-single__body p { margin-bottom: 1.25rem; }
.bm-news-single__body h2 { font-size: 1.375rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.bm-news-single__body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.bm-news-single__body img { max-width: 100%; border-radius: var(--bm-radius); margin: 1rem 0; }
.bm-news-single__body blockquote {
  border-left: 3px solid var(--bm-accent); margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem; color: var(--bm-text-muted); font-style: italic;
}
.bm-news-single__tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  margin: 2rem 0; padding: 1.25rem 0;
  border-top: 1px solid var(--bm-border); border-bottom: 1px solid var(--bm-border);
}
.bm-news-single__tags-label {
  font-size: 0.8125rem; color: var(--bm-text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.bm-news-tag {
  display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--bm-border); font-size: 0.8rem; color: var(--bm-text-muted);
  text-decoration: none; transition: all var(--bm-transition);
}
.bm-news-tag:hover { border-color: var(--bm-accent); color: var(--bm-accent); background: var(--bm-accent-bg); }
.bm-news-single__author-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bm-surface); border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius); padding: 1.25rem; margin: 2rem 0;
}
.bm-news-single__author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bm-news-single__author-name { font-weight: 700; font-size: 1rem; color: var(--bm-text); text-decoration: none; display: block; margin-bottom: 0.25rem; }
.bm-news-single__author-name:hover { color: var(--bm-accent); }
.bm-news-single__author-bio { font-size: 0.875rem; color: var(--bm-text-muted); margin: 0; line-height: 1.5; }
.bm-news-single__post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--bm-border);
}
@media (max-width: 575px) { .bm-news-single__post-nav { grid-template-columns: 1fr; } }
.bm-news-single__nav-item {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.9rem 1rem; background: var(--bm-surface);
  border: 1px solid var(--bm-border); border-radius: var(--bm-radius);
  text-decoration: none; transition: border-color var(--bm-transition);
}
.bm-news-single__nav-item:hover { border-color: var(--bm-accent); }
.bm-news-single__nav-item--next { text-align: right; }
.bm-news-single__nav-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bm-text-muted); font-weight: 600; }
.bm-news-single__nav-title {
  font-size: 0.9rem; font-weight: 600; color: var(--bm-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35;
}

/* Sidebar widgets */
.bm-news-single__sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.bm-news-widget {
  background: var(--bm-surface); border: 1px solid var(--bm-border); border-radius: var(--bm-radius); padding: 1.25rem;
}
.bm-news-widget__heading {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--bm-text-muted); margin: 0 0 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--bm-border);
}
.bm-news-widget__cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.bm-news-widget__cat-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.45rem 0.6rem; border-radius: 6px;
  font-size: 0.875rem; color: var(--bm-text-muted); text-decoration: none;
  transition: background var(--bm-transition), color var(--bm-transition);
}
.bm-news-widget__cat-link:hover,
.bm-news-widget__cat-link--active { background: var(--bm-accent-bg); color: var(--bm-accent); }
.bm-news-widget__cat-count {
  font-size: 0.75rem; background: var(--bm-surface-2); color: var(--bm-text-muted);
  border-radius: 999px; padding: 0.1rem 0.5rem; font-weight: 600;
}
.bm-news-widget__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Related stories */
.bm-news-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--bm-border); }
