/* MovieBase – Recommendations + Trends styling (GeneratePress-friendly) */

.mbp-trends,
.mbp-recommendations {
  margin: 18px 0 24px;
}

.mbp-trends h3,
.mbp-recommendations h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
}

.mbp-trends-grid,
.mbp-reco-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 768px) {
  .mbp-trends-grid,
  .mbp-reco-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

.mbp-trends-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  border: 1px solid rgba(0,0,0,0.10);
  background: #ffffff !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.mbp-trends-card:hover,
.mbp-trends-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.12);
  border-color: rgba(0,0,0,0.18);
}

.mbp-trends-card:focus {
  outline: 2px solid rgba(0,0,0,0.20);
  outline-offset: 2px;
}

.mbp-trends-card .mbp-similar-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Safety net: if theme sets insane widths/heights, cap it */
.mbp-trends-card .mbp-similar-poster {
  max-height: 420px;
}

.mbp-trends-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px 12px;
}

.mbp-trends-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  color: #111111 !important;
}

.mbp-trends-likes {
  font-size: 12px;
  line-height: 1.2;
  color: rgba(0,0,0,0.60);
  white-space: nowrap;
}

/* Trends list (text-only) */
.mbp-trends-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.mbp-trends-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.mbp-trends-item:first-child { border-top: 0; }

.mbp-trends-item a {
  text-decoration: none;
  color: #111111 !important;
}

.mbp-trends-item a:hover { text-decoration: underline; }

.mbp-trends-item .mbp-likecount {
  color: rgba(0,0,0,0.60);
  font-size: 12px;
}

/* Optional row layout with thumbnail */
.mbp-trends-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.mbp-trends-thumb{
  width:38px;
  height:56px;
  border-radius:10px;
  overflow:hidden;
  flex:0 0 auto;
  background: rgba(0,0,0,0.06);
}
.mbp-trends-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.mbp-trends-text{min-width:0}
.mbp-trends-text a{display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
