.mn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }

.movie {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s, box-shadow .18s;
}
.movie:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.poster { aspect-ratio: 2/3; width: 100%; object-fit: cover; background: var(--surface-2); display: block; }
.poster.fallback { display: grid; place-items: center; font-size: 40px; color: var(--text-faint); }
.movie-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.movie-title { font-weight: 700; font-size: 15px; line-height: 1.25; }
.movie-meta { font-size: 12px; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.avg-pill {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-weight: 800; font-size: 14px; padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(252,211,77,.18), rgba(245,158,11,.12));
  border: 1px solid rgba(252,211,77,.3); color: var(--gold);
}
.avg-pill.none { background: var(--surface-2); border-color: var(--border); color: var(--text-faint); }
.movie-actions { display: flex; gap: 7px; margin-top: auto; }
.movie-actions .btn { flex: 1; }

/* Leaderboards */
.lb-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .lb-wrap { grid-template-columns: 1fr; } }
.lb-card h3 { margin: 0 0 4px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.lb-card .sub { color: var(--text-dim); font-size: 13px; margin: 0 0 14px; }
.mlb-row { display: grid; grid-template-columns: 28px auto 1fr auto; gap: 10px; align-items: center; padding: 9px 6px; }
.mlb-row + .mlb-row { border-top: 1px solid var(--border); }
.mlb-rank { font-weight: 800; color: var(--text-faint); text-align: center; }
.mlb-row.r1 .mlb-rank { color: var(--gold); } .mlb-row.r2 .mlb-rank { color: var(--silver); } .mlb-row.r3 .mlb-rank { color: var(--bronze); }
.mlb-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlb-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.mlb-score small { color: var(--text-faint); font-weight: 600; font-size: 11px; display: block; }

/* Rating modal */
.rate-head { display: flex; gap: 14px; }
.rate-head img { width: 80px; border-radius: 8px; }
.big-rating { font-size: 44px; font-weight: 850; text-align: center; font-variant-numeric: tabular-nums; }
.slider { width: 100%; accent-color: var(--accent); }
.ratings-list { display: flex; flex-direction: column; gap: 2px; }
.rating-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 4px; }
.rating-item + .rating-item { border-top: 1px solid var(--border); }
.rating-val { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); }

/* Gate */
.gate { text-align: center; padding: 40px 20px; }
.gate .emoji { font-size: 50px; }
.gate h2 { margin: 14px 0 6px; }

.empty-state { text-align: center; padding: 36px; color: var(--text-dim); }
