/* Power rankings page (its own page; the main page's styles.css provides colors, the logo, pills and
   the site toolbar). */
.rk-title { margin: 6px 0 0; font-family: Creepster, Impact, fantasy; font-size: clamp(1.6rem, 5vw, 2.4rem); letter-spacing: .05em; color: var(--text); }
.rk { max-width: 980px; margin: 0 auto; padding: 0 16px 60px; }
.rk-summary { margin: 0 0 6px; text-align: center; font-size: 14px; color: var(--text-dim); }
.rk-how { margin: 0 auto 18px; max-width: 640px; font-size: 13px; color: var(--text-dim); text-align: center; }
.rk-how summary { cursor: pointer; color: var(--text-dim); }
.rk-how p { text-align: left; line-height: 1.5; }

/* Shared pieces. */
.rk-poster { position: relative; flex: 0 0 auto; overflow: hidden; border-radius: 4px; background: hsl(var(--hue, 0) 40% 14%); }
.rk-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rk-poster .rk-initial { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: rgba(255, 255, 255, .35); }
.rk-rating { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.rk-movie { font-weight: 600; }
.rk-sub { color: var(--text-dim); font-size: 12px; }
.rk-rank { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-dim); text-align: right; }

/* ---------- The table ---------- */
.rk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rk-table thead th {
  position: sticky;
  top: 0; /* flush with the top edge, so no rows show above it while scrolling */
  z-index: 2;
  padding: 10px 8px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.rk-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.rk-table tbody tr:hover td { background: var(--bg-raised); }
.rk-table .rk-poster { width: 36px; height: 54px; }
.rk-table .c-rank { width: 3.2em; }
.rk-table .c-poster { width: 52px; }
.rk-table .c-num { white-space: nowrap; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.rk-table th.c-rating, .rk-table td.c-rating { text-align: right; }
.rk-table .rk-inline-meta { display: none; }

/* Phones: Released and Watched fold under the title. */
@media (max-width: 600px) {
  .rk { padding: 0 8px 40px; }
  .rk-table .c-num { display: none; }
  .rk-table .rk-inline-meta { display: block; margin-top: 2px; }
  .rk-table td { padding: 6px 4px; }
  .rk-table .c-poster { width: 40px; }
  .rk-table .rk-poster { width: 30px; height: 45px; }
}
