/* =========================================================
   Favorites page only. Red accent comes from <body class="personal">.
   ========================================================= */

/* Two categories per row on a computer, one on a phone */
.fav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.category {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 4px;
  padding: 22px;
}
.category .label { margin: 0 0 16px; color: var(--accent); }

/* Picture of the #1 on the left, ranked list on the right */
.cat-body { display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: center; }

.cover { aspect-ratio: 2 / 3; border-radius: 3px; overflow: hidden; border: 1px solid var(--line); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.fit { background: #000; }
.cover.fit img { object-fit: contain; }

/* ---------- The ranked list ---------- */
.ranks { list-style: none; margin: 0; padding: 0; }
.ranks li { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); }
.ranks li:first-child { border-top: none; }

.rank {
  font-size: 28px;
  font-weight: 700;
  color: var(--muted);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.ranks li:first-child .rank { color: var(--accent); }   /* the #1 gets the red number */

/* Each row is a link to IMDb / Spotify / BGG */
.ranks a {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  text-decoration: none;
}
.ranks .name { font-weight: 600; font-size: 17px; }
.ranks .meta { color: var(--muted); font-size: 12px; font-family: "Space Grotesk", system-ui, sans-serif; letter-spacing: 0.06em; }
.ranks a:hover .name { color: var(--accent); }
.ranks a:hover .meta { color: var(--text); }

/* Link from the Board games card to the full shelf */
.more-link { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* ---------- Places: two cards side by side, each a stacked list ---------- */
.place-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.place-row a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  background: var(--bg);
}
.place-row a:hover { border-color: var(--accent); }
.place-row .name { font-weight: 600; font-size: 18px; }
.place-row .meta { color: var(--muted); font-size: 12px; font-family: "Space Grotesk", system-ui, sans-serif; margin-left: auto; }
.place-row li:first-child .rank { color: var(--accent); }

/* ---------- Phones ---------- */
@media (max-width: 900px) {
  .fav-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 32px; padding-bottom: 64px; }
  .cat-body { grid-template-columns: 96px 1fr; gap: 16px; }
  .category { padding: 18px; }
  .place-row a { padding: 12px 14px; flex-wrap: nowrap; }
  .place-row .name { font-size: 16px; }
  .place-row .meta { font-size: 0; }                  /* hide the words on phones... */
  .place-row .meta::after { content: "↗"; font-size: 14px; }   /* ...keep just the arrow */
}
