/* Card shell */
.movie-card {
  --bm-radius: 16px;
  --bm-gap: 16px;
  --bm-pad: 16px;
  --bm-shadow: 0 6px 20px rgba(0,0,0,.08);
  --bm-border: 1px solid rgba(0,0,0,.06);
  background: #fff;
  border: var(--bm-border);
  border-radius: var(--bm-radius);
  box-shadow: var(--bm-shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.movie-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  border-color: rgba(0,0,0,.12);
}

/* Layout */
.movie-card .card-container {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--bm-gap);
  padding: var(--bm-pad);
  align-items: start;
}

/* Poster */
.movie-card .poster {
  border-radius: 12px;
  overflow: hidden;
  background: #f4f6f8;
  aspect-ratio: 2 / 3; /* keeps space while image loads */
  width: 100%;
}

.movie-card .poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback when no image */
.movie-card .bm-noimg {
  width: 100%;
  height: 100%;
  min-height: 210px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #7a8899;
  background:
    linear-gradient(135deg, #eef2f6, #f6f8fb);
}

/* Info */
.movie-card .movie-info {
  display: grid;
  gap: 8px;
}

.movie-card .movie-title h3 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .2px;
}

.movie-card .movie-title a {
  color: #0f172a;
  text-decoration: none;
}

.movie-card .movie-title a:hover,
.movie-card .movie-title a:focus {
  text-decoration: underline;
}

.movie-card .bm-year {
  margin-left: 6px;
  color: #6b7280;
  font-weight: 600;
}

.movie-card .movie-meta {
  display: grid;
  gap: 6px;
}

.movie-card .bm-genres {
  color: #374151;
  font-size: .9rem;
}

.movie-card .bm-small-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  color: #4b5563;
  font-size: .9rem;
}

.movie-card .bm-sep {
  opacity: .5;
}

.movie-card .bm-rating {
  font-weight: 700;
}

.movie-card .bm-vcount {
  margin-left: 4px;
  font-weight: 500;
  color: #6b7280;
  font-size: .8rem;
}

/* Compact / mobile */
@media (max-width: 640px) {
  .movie-card .card-container {
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .movie-card .movie-title h3 {
    font-size: 1rem;
  }

  .movie-card .bm-genres {
    font-size: .85rem;
  }

  .movie-card .bm-small-meta {
    font-size: .85rem;
    gap: 6px;
  }
}

/* Optional: dense list spacing variant */
.movie-card.is-dense .card-container {
  padding: 12px;
}

.movie-card.is-dense .movie-title h3 {
  font-size: 1rem;
}

.movie-card.is-dense .bm-genres,
.movie-card.is-dense .bm-small-meta {
  font-size: .85rem;
}

/* Buzzmelt slider — main + thumbnails */
.buzzmelt-splide-wrapper { max-width: 980px; margin: 0 auto 2rem; }
.bm-slide-image { width: 100%; height: 480px; object-fit: cover; display: block; }
.bm-slide-title { text-align: center; font-weight: 600; font-size: 1.15rem; padding: 10px 8px; background: rgba(255,255,255,0.95); margin-top: -6px; }
.buzzmelt-splide-thumb .bm-thumb-image { width: 100%; height: 64px; object-fit: cover; display: block; }
.bm-slide-noimg, .bm-thumb-noimg { display:flex; align-items:center; justify-content:center; min-height:64px; background:#f4f4f4; color:#666; }
