/* ==========================================================================
   BuzzMelt — Clean Dark Cinema
   ========================================================================== */

/* ── Tokens — synced with critical.css (Deep Blue Cinema) ────────────────── */
:root {
  --bm-bg: #0a0e1a;
  --bm-bg-alt: #0d1221;
  --bm-surface: #111827;
  --bm-surface-2: #1a2235;
  --bm-border: #1f2937;
  --bm-border-light: #162032;

  --bm-text: #f1f5f9;
  --bm-text-muted: #94a3b8;
  --bm-text-light: #475569;

  --bm-accent: #3b82f6;
  --bm-accent-dark: #2563eb;
  --bm-accent-light: #60a5fa;
  --bm-accent-bg: rgba(59, 130, 246, 0.12);

  --bm-gold: #fbbf24;

  --bm-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  --bm-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.75);
  --bm-shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.85);

  --bm-radius-sm: 3px;
  --bm-radius: 6px;
  --bm-radius-lg: 10px;
  --bm-radius-xl: 16px;

  --bm-poster-ratio: 2 / 3;
  --bm-backdrop-ratio: 16 / 9;
  --bm-header-height: 64px;

  --bm-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --bm-font-serif: 'Playfair Display', Georgia, serif;
  --bm-transition: 0.18s ease;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--bm-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--bm-text);
  background: var(--bm-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--bm-accent);
  text-decoration: none;
  transition: color var(--bm-transition);
}

a:hover {
  color: var(--bm-accent-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--bm-font);
  font-weight: 700;
  line-height: 1.25;
  color: var(--bm-text);
  margin-top: 0;
}

.bm-serif {
  font-family: var(--bm-font-serif);
}

.bm-site-main {
  min-height: 60vh;
}

/* ── Bootstrap dark overrides ────────────────────────────────────────────── */
.text-muted {
  color: var(--bm-text-muted) !important;
}

.text-dark {
  color: var(--bm-text) !important;
}

.border {
  border-color: var(--bm-border) !important;
}

.dropdown-menu {
  background: var(--bm-surface);
  border-color: var(--bm-border);
}

.dropdown-item {
  color: var(--bm-text-muted);
}

.dropdown-item:hover {
  background: var(--bm-surface-2);
  color: var(--bm-text);
}

.dropdown-divider {
  border-color: var(--bm-border);
}

.dropdown-item-text {
  color: var(--bm-text-muted);
}

.form-control,
.form-select {
  background: var(--bm-surface);
  border-color: var(--bm-border);
  color: var(--bm-text);
}

.form-control:focus,
.form-select:focus {
  background: var(--bm-surface);
  border-color: var(--bm-accent);
  color: var(--bm-text);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-control::placeholder {
  color: var(--bm-text-light);
}

.form-check-input {
  background-color: var(--bm-surface);
  border-color: var(--bm-border);
}

.form-check-input:checked {
  background-color: var(--bm-accent);
  border-color: var(--bm-accent);
}

.form-check-label {
  color: var(--bm-text-muted);
}

.form-label {
  color: var(--bm-text);
}

/* ══════════════════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════════════════ */
.bm-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(10, 14, 26, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bm-border);
}

.bm-navbar {
  height: var(--bm-header-height);
  padding-block: 0;
}

.bm-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0;
  margin-right: 2rem;
}

.bm-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--bm-text);
  letter-spacing: -0.03em;
}

.bm-logo-text span {
  color: var(--bm-accent);
}

.bm-logo img {
  max-height: 36px;
  width: auto;
}

.bm-navbar .navbar-nav .nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bm-text-muted);
  padding: 0.5rem 0.75rem;
  position: relative;
  transition: color var(--bm-transition);
}

.bm-navbar .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--bm-accent);
  transform: scaleX(0);
  transition: transform var(--bm-transition);
  transform-origin: left;
}

.bm-navbar .navbar-nav .nav-link:hover,
.bm-navbar .navbar-nav .current-menu-item>.nav-link {
  color: var(--bm-text);
}

.bm-navbar .navbar-nav .nav-link:hover::after,
.bm-navbar .navbar-nav .current-menu-item>.nav-link::after {
  transform: scaleX(1);
}

.bm-navbar .dropdown-menu {
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  box-shadow: var(--bm-shadow);
  padding: 0.5rem 0;
  min-width: 180px;
}

.bm-nav-actions .btn-link {
  color: var(--bm-text-muted);
  font-size: 1.05rem;
  padding: 0;
}

.bm-nav-actions .btn-link:hover {
  color: var(--bm-text);
}

.bm-btn-login {
  font-size: 0.8rem;
  border: 1px solid var(--bm-border);
  color: var(--bm-text-muted);
  background: transparent;
  border-radius: var(--bm-radius-sm);
  padding: 0.3rem 0.75rem;
  transition: all var(--bm-transition);
}

.bm-btn-login:hover {
  border-color: var(--bm-text-muted);
  color: var(--bm-text);
  background: transparent;
}

.bm-btn-register {
  font-size: 0.8rem;
  background: var(--bm-accent);
  color: #fff;
  border: none;
  border-radius: var(--bm-radius-sm);
  padding: 0.3rem 0.75rem;
  transition: background var(--bm-transition);
}

.bm-btn-register:hover {
  background: var(--bm-accent-dark);
  color: #fff;
}

.bm-avatar {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--bm-border);
  transition: border-color var(--bm-transition);
}

.bm-user-btn:hover .bm-avatar {
  border-color: var(--bm-accent);
}

.navbar-toggler {
  border-color: var(--bm-border) !important;
}

.navbar-toggler-icon {
  filter: invert(0.7);
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

/* Search bar */
.bm-search-bar {
  background: var(--bm-bg-alt);
  border-top: 1px solid var(--bm-border);
}

.bm-search-bar .search-form {
  display: flex;
  gap: 0.5rem;
}

.bm-search-bar .search-field {
  flex: 1;
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  color: var(--bm-text);
  border-radius: var(--bm-radius);
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-family: var(--bm-font);
  outline: none;
  transition: border-color var(--bm-transition);
}

.bm-search-bar .search-field:focus {
  border-color: var(--bm-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.bm-search-bar .search-field::placeholder {
  color: var(--bm-text-light);
}

.bm-search-bar .search-submit {
  background: var(--bm-accent);
  color: #fff;
  border: none;
  border-radius: var(--bm-radius);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--bm-transition);
}

.bm-search-bar .search-submit:hover {
  background: var(--bm-accent-dark);
}

/* Mobile nav */
@media (max-width: 991.98px) {
  .bm-navbar {
    height: auto;
    min-height: var(--bm-header-height);
  }

  .bm-navbar .navbar-collapse {
    background: var(--bm-bg-alt);
    border-top: 1px solid var(--bm-border);
    padding: 0.75rem 0;
  }

  .bm-navbar .navbar-nav .nav-link::after {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   HOMEPAGE HERO
══════════════════════════════════════════════════════════════════════════ */
.bm-home-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bm-bg);
}

.bm-home-hero__backdrop {
  position: absolute;
  inset: 0;
  background-image: var(--bm-hero-backdrop);
  background-size: cover;
  background-position: center top;
  filter: brightness(0.22) saturate(0.55);
  transform: scale(1.04);
}

/* bottom gradient to page bg */
.bm-home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bm-bg) 0%, rgba(10, 14, 26, 0.5) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.bm-home-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.bm-home-hero__content {
  max-width: 680px;
}

.bm-home-hero__genres {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.875rem;
}

.bm-home-hero__title {
  font-family: var(--bm-font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.15;
}

.bm-home-hero__title a {
  color: inherit;
}

.bm-home-hero__title a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.bm-home-hero__year {
  font-family: var(--bm-font);
  font-size: 0.45em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 0.3em;
  vertical-align: middle;
}

.bm-home-hero__tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  margin-bottom: 0.875rem;
}

.bm-home-hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bm-gold);
  margin-bottom: 0.5rem;
}

/* ── Genre bar ────────────────────────────────────────────────────────────── */
.bm-genre-bar {
  background: var(--bm-bg-alt);
  border-bottom: 1px solid var(--bm-border);
  padding: 0.625rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.bm-genre-bar::-webkit-scrollbar {
  display: none;
}

.bm-genre-bar .container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  padding-bottom: 2px;
}

/* ── Home sections ────────────────────────────────────────────────────────── */
.bm-home-section {
  padding: 2.5rem 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.375rem;
}

.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);
}

.bm-section-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bm-text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  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 aliases */
.bm-section {
  padding: 2.5rem 0;
}

.bm-section-alt {
  background: var(--bm-bg-alt);
}

.bm-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.375rem;
  gap: 1rem;
}

.bm-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bm-text);
  margin: 0;
}

/* Reviews grid */
.bm-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   POSTER CARDS
══════════════════════════════════════════════════════════════════════════ */
.bm-poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 1rem;
}

@media (min-width: 576px) {
  .bm-poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  }
}

@media (min-width: 768px) {
  .bm-poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  }
}

@media (min-width: 1200px) {
  .bm-poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  }
}

.bm-poster-card {
  position: relative;
  border-radius: var(--bm-radius);
  overflow: hidden;
  background: var(--bm-surface);
  transition: transform var(--bm-transition), box-shadow var(--bm-transition);
  cursor: pointer;
}

.bm-poster-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bm-shadow-hover);
}

/* BEM link wrapper */
.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: #111;
}

.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.05);
}

/* 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.9) 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.6rem;
}

.bm-poster-card:hover .bm-poster-card__overlay,
.bm-poster-card:hover .bm-poster-overlay {
  opacity: 1;
}

/* Rating chip in overlay */
.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.2rem 0.4rem;
  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.2rem 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 btn on card */
.bm-poster-card__wl {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 3;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  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;
}

/* Badge (type) in overlay */
.bm-badge--type {
  align-self: flex-start;
  background: rgba(59, 130, 246, 0.25);
  color: var(--bm-accent-light);
}

/* Card body (below poster) */
.bm-poster-card__body,
.bm-poster-caption {
  padding: 0.6rem 0.5rem 0.7rem;
}

.bm-poster-card__title,
.bm-poster-caption-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bm-text);
  line-height: 1.35;
  margin: 0 0 0.2rem;
  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: 1rem;
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  overflow: hidden;
  transition: border-color var(--bm-transition), box-shadow var(--bm-transition);
  padding: 0.875rem;
}

.bm-card-wide:hover {
  border-color: var(--bm-surface-2);
  box-shadow: var(--bm-shadow);
}

.bm-card-wide-poster {
  flex-shrink: 0;
  width: 70px;
}

.bm-card-wide-poster img {
  width: 70px;
  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.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-card-wide-meta {
  font-size: 0.8125rem;
  color: var(--bm-text-muted);
  margin-bottom: 0.375rem;
}

.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;
}

/* ══════════════════════════════════════════════════════════════════════════
   PERSON CARDS
══════════════════════════════════════════════════════════════════════════ */
.bm-person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
}

.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.5rem;
  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.5rem;
}

.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);
}

/* ══════════════════════════════════════════════════════════════════════════
   SINGLE BODY ENTRY POINT
══════════════════════════════════════════════════════════════════════════ */
/* Hero is fully handled by style.css (.bm-hero-single) */

.bm-btn-primary {
  background: var(--bm-accent);
  color: #fff;
  border: none;
  border-radius: var(--bm-radius);
  padding: 0.5rem 1.25rem;
  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.5rem 1.25rem;
  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.55);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════
   SINGLE BODY & INFO PANEL
══════════════════════════════════════════════════════════════════════════ */
.bm-single-body {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.bm-info-panel {
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.bm-info-panel-title {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bm-text-light);
  margin-bottom: 1rem;
}

.bm-info-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
  font-size: 0.875rem;
}

.bm-info-label {
  color: var(--bm-text-muted);
  flex-shrink: 0;
  min-width: 105px;
}

.bm-info-value {
  color: var(--bm-text);
  font-weight: 500;
}

.bm-info-value a {
  color: var(--bm-accent);
}

.bm-info-value a:hover {
  color: var(--bm-accent-light);
}

/* ══════════════════════════════════════════════════════════════════════════
   CAST ROW
══════════════════════════════════════════════════════════════════════════ */
.bm-cast-section {
  margin-bottom: 2rem;
}

.bm-cast-row {
  display: flex;
  gap: 0.875rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--bm-border) transparent;
}

.bm-cast-row::-webkit-scrollbar {
  height: 3px;
}

.bm-cast-row::-webkit-scrollbar-track {
  background: transparent;
}

.bm-cast-row::-webkit-scrollbar-thumb {
  background: var(--bm-border);
  border-radius: 2px;
}

.bm-cast-item {
  flex-shrink: 0;
  width: 86px;
  text-align: center;
  text-decoration: none;
  color: var(--bm-text);
}

.bm-cast-item:hover {
  color: var(--bm-accent);
}

.bm-cast-photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.4rem;
  border: 2px solid var(--bm-border);
  transition: border-color var(--bm-transition);
}

.bm-cast-item:hover .bm-cast-photo {
  border-color: var(--bm-accent);
}

.bm-cast-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.6rem;
  color: var(--bm-text-light);
  margin: 0 auto 0.4rem;
}

.bm-cast-name {
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.1rem;
}

.bm-cast-character {
  font-size: 0.68rem;
  color: var(--bm-text-light);
}

.bm-cast-orig-name {
  display: block;
  font-size: 0.63rem;
  color: var(--bm-text-light);
  font-style: italic;
  line-height: 1.3;
  margin-top: 0.1rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   CREW SECTION
══════════════════════════════════════════════════════════════════════════ */
.bm-crew-section {
  padding: 2.5rem 0
}

.bm-crew-grid {
  display: grid;
  gap: 0;
}

.bm-crew-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.25rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--bm-border);
  align-items: baseline;
}

.bm-crew-row:last-child {
  border-bottom: none;
}

.bm-crew-label {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--bm-text-light);
  padding-top: 0.15rem;
}

.bm-crew-members {
  font-size: 0.875rem;
  color: var(--bm-text);
  line-height: 1.7;
}

.bm-crew-member {
  white-space: nowrap;
}

.bm-crew-members a {
  color: var(--bm-text);
  text-decoration: none;
  transition: color var(--bm-transition);
}

.bm-crew-members a:hover {
  color: var(--bm-accent);
}

.bm-crew-job {
  font-size: 0.73rem;
  color: var(--bm-text-light);
}

.bm-crew-sep {
  color: var(--bm-text-light);
}

@media (max-width: 575.98px) {
  .bm-crew-row {
    grid-template-columns: 100px 1fr;
    gap: 0.75rem;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   FILTERS BAR
══════════════════════════════════════════════════════════════════════════ */
.bm-filters-bar {
  background: var(--bm-bg-alt);
  border-bottom: 1px solid var(--bm-border);
  padding: 0.625rem 0;
  position: sticky;
  top: var(--bm-header-height);
  z-index: 100;
}

/* Scrollable row — no wrap so pills stay on one line */
.bm-filters-bar__form,
.bm-filters-form {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  padding-bottom: 2px;
  /* prevent clipping of focus ring */
}

.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;
}

/* Pill-shaped selects */
.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.35rem 2rem 0.35rem 0.875rem;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  /* Custom chevron arrow */
  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='%23888888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem 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(230, 92, 0, 0.2);
}

/* Highlight when a non-default value is selected */
.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='%23e65c00'/%3E%3C/svg%3E");
}

.bm-filters-bar__select option,
.bm-filter-select option {
  background: var(--bm-surface);
  color: var(--bm-text);
}

/* Clear-all link */
.bm-filters-bar__clear {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--bm-text-muted);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  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: rgba(230, 92, 0, 0.08);
}

/* Legacy flat-name 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.35rem 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;
}

/* Light-theme overrides */
[data-theme="light"] .bm-filters-bar__select,
[data-theme="light"] .bm-filter-select {
  background-color: #ffffff;
  color: #444444;
  border-color: #d0d0d0;
  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='%23666666'/%3E%3C/svg%3E");
}

[data-theme="light"] .bm-filters-bar__select:hover,
[data-theme="light"] .bm-filter-select:hover {
  border-color: #999;
  color: #111;
}

[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='%23e65c00'/%3E%3C/svg%3E");
}

[data-theme="light"] .bm-filters-bar__select option,
[data-theme="light"] .bm-filter-select option {
  background: #ffffff;
  color: #111111;
}

/* ══════════════════════════════════════════════════════════════════════════
   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.28rem 0.75rem;
  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;
}

/* ══════════════════════════════════════════════════════════════════════════
   RATINGS
══════════════════════════════════════════════════════════════════════════ */
.bm-rating-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.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);
}

/* ══════════════════════════════════════════════════════════════════════════
   REVIEW CARDS
══════════════════════════════════════════════════════════════════════════ */
.bm-review-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bm-review-card {
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 1.25rem;
  background: var(--bm-surface);
  transition: border-color var(--bm-transition);
}

.bm-review-card:hover {
  border-color: var(--bm-surface-2);
}

.bm-review-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bm-review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--bm-border);
}

.bm-review-meta {
  flex: 1;
  min-width: 0;
}

.bm-review-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bm-text);
  margin-bottom: 0.1rem;
}

.bm-review-date {
  font-size: 0.75rem;
  color: var(--bm-text-light);
}

.bm-review-rating-inline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bm-gold);
}

.bm-review-summary {
  font-size: 0.9375rem;
  font-weight: 600;
  font-style: italic;
  color: var(--bm-text);
  margin-bottom: 0.5rem;
}

.bm-review-excerpt {
  font-size: 0.875rem;
  color: var(--bm-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bm-spoiler-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #d97706;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   REVIEW FORM
══════════════════════════════════════════════════════════════════════════ */
.bm-review-form-wrap {
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-lg);
  padding: 1.75rem;
  margin-top: 2rem;
}

.bm-review-form-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--bm-text);
}

.bm-star-picker {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.bm-star-picker-star {
  font-size: 1.75rem;
  color: var(--bm-border);
  cursor: pointer;
  transition: color var(--bm-transition), transform var(--bm-transition);
  line-height: 1;
}

.bm-star-picker-star:hover,
.bm-star-picker-star.active {
  color: var(--bm-gold);
}

.bm-star-picker-star:hover {
  transform: scale(1.15);
}

.bm-star-picker-label {
  font-size: 0.875rem;
  color: var(--bm-text-muted);
  margin-left: 0.5rem;
  align-self: center;
}

.bm-review-form .form-control {
  background: var(--bm-bg-alt);
}

.bm-review-form .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bm-text);
  margin-bottom: 0.375rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   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.28);
  border-radius: var(--bm-radius);
  padding: 0.5rem 1rem;
  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.55);
  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.5rem;
}

.bm-archive-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--bm-text);
}

.bm-archive-count {
  font-size: 0.875rem;
  color: var(--bm-text-muted);
}

.bm-archive-content {
  padding: 2rem 0 3rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════════════════════════ */
.bm-pagination {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding: 2rem 0;
}

.bm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--bm-radius-sm);
  font-size: 0.875rem;
  color: var(--bm-text-muted);
  border: 1px solid var(--bm-border);
  text-decoration: none;
  background: var(--bm-surface);
  transition: all var(--bm-transition);
}

.bm-pagination .page-numbers:hover {
  background: var(--bm-surface-2);
  color: var(--bm-text);
}

.bm-pagination .page-numbers.current {
  background: var(--bm-accent);
  border-color: var(--bm-accent);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════
   BREADCRUMBS
══════════════════════════════════════════════════════════════════════════ */
.bm-breadcrumbs {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
  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);
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════════════ */
.bm-footer {
  background: #080808;
  border-top: 1px solid var(--bm-border);
  color: rgba(255, 255, 255, 0.55);
  margin-top: auto;
}

.bm-footer-heading {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 1rem;
}

.bm-footer-links {
  margin: 0;
  padding: 0;
}

.bm-footer-links li {
  margin-bottom: 0.5rem;
}

.bm-footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--bm-transition);
}

.bm-footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.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.32);
  line-height: 1.6;
}

.bm-footer-social .bm-social-link {
  color: rgba(255, 255, 255, 0.38);
  font-size: 1.1rem;
  transition: color var(--bm-transition);
}

.bm-footer-social .bm-social-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.bm-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.28);
}

.bm-footer-bottom a {
  color: rgba(255, 255, 255, 0.38);
}

.bm-footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ══════════════════════════════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════════════════════════════ */
.bm-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  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 {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.bm-badge-anime {
  background: rgba(236, 72, 153, 0.15);
  color: #f9a8d4;
}

.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: 5rem 1rem;
}

.bm-no-results-icon {
  font-size: 4rem;
  color: var(--bm-border);
  margin-bottom: 1rem;
}

.bm-no-results-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bm-text);
  margin-bottom: 0.5rem;
}

.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: 2rem 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  .bm-poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 0.75rem;
  }

  .bm-section,
  .bm-home-section {
    padding: 2rem 0;
  }

  .bm-home-hero {
    min-height: 420px;
  }

  .bm-reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .bm-poster-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
  }

  .bm-home-hero {
    min-height: 360px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN BAR OFFSET
══════════════════════════════════════════════════════════════════════════ */
.admin-bar .bm-header {
  top: 32px;
}

.admin-bar .bm-filters-bar {
  top: calc(var(--bm-header-height) + 32px);
}

@media (max-width: 782px) {
  .admin-bar .bm-header {
    top: 46px;
  }

  .admin-bar .bm-filters-bar {
    top: calc(var(--bm-header-height) + 46px);
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   LIGHT THEME  [data-theme="light"]
══════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --bm-bg: #e8edf2;
  --bm-bg-alt: #dfe5ec;
  --bm-surface: #edf1f6;
  --bm-surface-2: #d6dde7;
  --bm-border: #c2ccd8;
  --bm-border-light: #cfd7e2;
  --bm-text: #1a2535;
  --bm-text-muted: #4e6070;
  --bm-text-light: #7a8f9e;
  --bm-gold: #b45309;
  --bm-shadow: 0 2px 10px rgba(15, 25, 40, 0.1);
  --bm-shadow-hover: 0 6px 22px rgba(15, 25, 40, 0.16);
  --bm-shadow-lg: 0 12px 38px rgba(15, 25, 40, 0.18);
}

/* Header */
[data-theme="light"] .bm-header {
  background: rgba(232, 237, 242, 0.96);
  border-bottom-color: var(--bm-border);
}

[data-theme="light"] .bm-navbar .navbar-nav .nav-link {
  color: #555;
}

[data-theme="light"] .bm-navbar .navbar-nav .nav-link:hover,
[data-theme="light"] .bm-navbar .navbar-nav .current-menu-item>.nav-link {
  color: #111;
}

[data-theme="light"] .bm-nav-actions .btn-link {
  color: #666;
}

[data-theme="light"] .bm-nav-actions .btn-link:hover {
  color: #111;
}

[data-theme="light"] .bm-navbar .dropdown-menu {
  background: #fff;
  border-color: var(--bm-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .bm-navbar .dropdown-item {
  color: #555;
}

[data-theme="light"] .bm-navbar .dropdown-item:hover {
  background: #f5f5f5;
  color: #111;
}

[data-theme="light"] .navbar-toggler-icon {
  filter: none;
}

/* Search bar */
[data-theme="light"] .bm-search-bar {
  background: #f6f6f6;
  border-color: var(--bm-border);
}

[data-theme="light"] .bm-search-bar .search-field {
  background: #fff;
  border-color: var(--bm-border);
  color: #111;
}

[data-theme="light"] .bm-search-bar .search-field::placeholder {
  color: #aaa;
}

/* Hero */
[data-theme="light"] .bm-home-hero__backdrop {
  filter: brightness(0.38) saturate(0.75);
}

[data-theme="light"] .bm-home-hero::after {
  background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0.55) 40%, transparent 70%);
}

/* Hero single — light theme: keep dark overlay regardless of site theme */
[data-theme="light"] .bm-hero-single {
  background: #1a2535;
}

/* Genre bar */
[data-theme="light"] .bm-genre-bar {
  background: #f6f6f6;
  border-bottom-color: var(--bm-border);
}

/* Sections */
[data-theme="light"] .bm-home-section--alt,
[data-theme="light"] .bm-section-alt {
  background: #f6f6f6;
}

/* Poster card */
[data-theme="light"] .bm-poster-card {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

[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: #e8e8e8;
}

[data-theme="light"] .bm-poster-card__placeholder,
[data-theme="light"] .bm-poster-placeholder {
  background: #efefef;
  color: #ccc;
}

[data-theme="light"] .bm-poster-card__wl {
  background: rgba(0, 0, 0, 0.35);
}

/* Filters */
[data-theme="light"] .bm-filters-bar {
  background: #fff;
  border-color: var(--bm-border);
}

[data-theme="light"] .bm-filter-select {
  background: #fff;
  border-color: var(--bm-border);
  color: #111;
}

[data-theme="light"] .bm-filter-select option {
  background: #fff;
  color: #111;
}

/* Wide card */
[data-theme="light"] .bm-card-wide {
  background: #fff;
  border-color: #ebebeb;
}

/* Info panel */
[data-theme="light"] .bm-info-panel {
  background: #f6f6f6;
  border-color: var(--bm-border);
}

/* Crew */
[data-theme="light"] .bm-crew-section {
  border-top-color: var(--bm-border);
}

[data-theme="light"] .bm-crew-row {
  border-bottom-color: var(--bm-border);
}

[data-theme="light"] .bm-crew-members a {
  color: #111;
}

/* Cast */
[data-theme="light"] .bm-cast-photo,
[data-theme="light"] .bm-cast-photo-placeholder {
  border-color: var(--bm-border);
  background: #efefef;
}

[data-theme="light"] .bm-cast-item {
  color: #111;
}

/* Reviews */
[data-theme="light"] .bm-review-card {
  background: #fff;
  border-color: var(--bm-border);
}

[data-theme="light"] .bm-review-form-wrap {
  background: #f6f6f6;
  border-color: var(--bm-border);
}

[data-theme="light"] .bm-review-form .form-control {
  background: #fff;
}

[data-theme="light"] .bm-star-picker-star {
  color: #e2e2e2;
}

/* Archive */
[data-theme="light"] .bm-archive-header {
  background: #f6f6f6;
  border-color: var(--bm-border);
}

/* Pagination */
[data-theme="light"] .bm-pagination .page-numbers {
  background: #fff;
  border-color: var(--bm-border);
  color: #666;
}

[data-theme="light"] .bm-pagination .page-numbers:hover {
  background: #f6f6f6;
  color: #111;
}

/* Badges */
[data-theme="light"] .bm-badge-movie {
  background: #dbeafe;
  color: #1e40af;
}

[data-theme="light"] .bm-badge-tv {
  background: #dcfce7;
  color: #15803d;
}

[data-theme="light"] .bm-badge-anime {
  background: #fce7f3;
  color: #be185d;
}

[data-theme="light"] .bm-badge-documentary {
  background: #fef3c7;
  color: #92400e;
}

[data-theme="light"] .bm-badge-person {
  background: #f3e8ff;
  color: #7e22ce;
}

[data-theme="light"] .bm-badge--type {
  background: rgba(59, 130, 246, 0.1);
  color: var(--bm-accent-dark);
}

/* Person cards */
[data-theme="light"] .bm-person-headshot {
  border-color: var(--bm-border);
}

[data-theme="light"] .bm-person-headshot-placeholder {
  background: #efefef;
  border-color: var(--bm-border);
}

/* Breadcrumbs on dark heroes stay the same (white on dark backdrop) */

/* Bootstrap overrides */
[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
  background: #fff;
  border-color: var(--bm-border);
  color: #111;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus {
  background: #fff;
  color: #111;
}

[data-theme="light"] .form-control::placeholder {
  color: #aaa;
}

[data-theme="light"] .form-check-input {
  background-color: #fff;
  border-color: #ccc;
}

[data-theme="light"] .form-check-label {
  color: var(--bm-text-muted);
}

[data-theme="light"] .dropdown-menu {
  background: #fff;
  border-color: var(--bm-border);
}

[data-theme="light"] .dropdown-item {
  color: #555;
}

[data-theme="light"] .dropdown-item:hover {
  background: #f5f5f5;
  color: #111;
}

[data-theme="light"] .dropdown-divider {
  border-color: var(--bm-border);
}

[data-theme="light"] .dropdown-item-text {
  color: #666;
}

/* Theme toggle icon state */
[data-theme="light"] #bm-theme-icon::before {
  content: "\f497";
}

/* bi-moon-stars */
[data-theme="dark"] #bm-theme-icon::before {
  content: "\f5a2";
}

/* bi-sun */

/* Toggle button style */
.bm-theme-toggle {
  transition: color var(--bm-transition);
}
/* ── Country Badge ─────────────────────────────────────────────────────── */
.bm-country-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--bm-text-muted);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--bm-border);
  white-space: nowrap;
  cursor: default;
  user-select: none;
}
.bm-country-badge:empty { display: none; }
