/* ===========================
   SINGLE RANKED LIST PAGE
   =========================== */

.list-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 32px 60px;
}

/* Header */
.lp-head { margin-bottom: 28px; }

.lp-head-top {
  display: flex;
  align-items: center;
  gap: 28px;
}

.lp-head-text { flex: 1 1 auto; min-width: 0; }

/* Rasa artwork.

   The source PNGs are square with a pure-black frame, which would show as
   a hard edge on the cream light theme and a near-miss edge on the dark
   one (#FAF7F2 / #12100E — neither is the artwork's #030304). A radial
   mask feathers the frame away instead of matching a colour, so the same
   rule holds in both themes and survives any future palette change.
   The compositions are themselves circular, so the mask follows the art. */
.lp-rasa {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
}

.lp-rasa img {
  display: block;
  width: 132px;
  height: 132px;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 46%, transparent 62%);
  mask-image: radial-gradient(circle at 50% 48%, #000 46%, transparent 62%);
}

.lp-rasa-name {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.lp-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 0.5px solid var(--gold-border);
  background: var(--gold-bg);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 14px;
}

.lp-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 10px;
}

.lp-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 14px;
}

.lp-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 0.5px solid var(--ink3);
}

.lp-intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 16px;
  margin: 22px 0 30px;
}


/* Just-outside mentions.

   Deliberately quieter than a ranked row: no rank, no poster, no link.
   These record where the editor drew the line, so they should read as a
   footnote to the list rather than a continuation of it. */
.lp-mentions {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 0.5px solid var(--ink3);
}

.lp-mentions-head {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.lp-mentions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-mention {
  font-size: 13px;
  color: var(--text-muted);
  border: 0.5px solid var(--ink3);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.lp-mention-year { opacity: 0.6; }

/* Ranked rows */
.lp-films { display: flex; flex-direction: column; gap: 14px; }

.lp-row {
  display: grid;
  grid-template-columns: 44px 92px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--ink2);
  border: 0.5px solid var(--ink3);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.18s ease;
}

.lp-row:hover { border-color: var(--gold-dim); }

.lp-rank {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1;
  padding-top: 4px;
}

.lp-rank.gold { color: #C9A84C; }
.lp-rank.silver { color: #A8A8A8; }
.lp-rank.bronze { color: #B87333; }

.lp-poster {
  width: 92px;
  height: 138px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--ink3);
}

.lp-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lp-poster-score {
  position: absolute;
  right: 5px; bottom: 5px;
  min-width: 26px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.lp-info { min-width: 0; }

.lp-film-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.lp-film-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.lp-blurb {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.lp-rasas { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

/* why_it_ranks — collapsed by default, opened on click */
.lp-why {
  border-top: 0.5px solid var(--ink3);
  margin-top: 10px;
  padding-top: 10px;
}

.lp-why-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lp-why-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-top: 8px;
}

.lp-why-body[hidden] { display: none; }

/* Empty / not-found states */
.lp-empty {
  border: 0.5px dashed var(--ink3);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
}

.lp-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.lp-empty-sub { font-size: 13px; line-height: 1.6; }

@media (max-width: 700px) {
  .list-wrap { padding: 20px 18px 48px; }
  .lp-title { font-size: 25px; }
  .lp-head-top { gap: 16px; }
  .lp-rasa img { width: 88px; height: 88px; }
  .lp-row { grid-template-columns: 30px 72px 1fr; gap: 12px; padding: 12px; }
  .lp-rank { font-size: 22px; }
  .lp-poster { width: 72px; height: 108px; }
}
