/* Watchlist page and profile section. Category grid/card rules stay in
   category.css; this file adds the locked overlay, type headings, and
   the remove-X. Faded teaser posters use opacity only — no grayscale. */

.watchlist-page h1.type-h1 { text-wrap: balance; }
.watchlist-page .type-lede { text-wrap: pretty; }

.watchlist-type {
  margin-top: 28px;
  min-width: 0;
}
.watchlist-type:first-child { margin-top: 8px; }
.watchlist-type h2 {
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-wrap: balance;
}

.watchlist-page .type-shelf-grid { margin-top: 32px; }

.watchlist-hint {
  color: #595959;
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}
.watchlist-hint i { font-style: italic; }
.watchlist-hint .watchlist-chip {
  display: inline-block;
  height: auto;
  margin: 0 4px;
  padding: 0;
  border: 0;
  background: none;
  vertical-align: -6px;
  pointer-events: none;
}
.watchlist-hint .watchlist-chip img {
  height: 28px;
  width: auto;
  display: inline-block;
}

/* Signed-in cards: same type-poster-grid as category pages, plus a remove X. */
.watchlist-page .type-poster-grid .poster-tile,
.nwsm-watchlist-card .type-poster-grid .poster-tile {
  position: relative;
}
.card-x {
  z-index: 6;
  color: #fff;
  cursor: pointer;
  background: #111111b8;
  border: 0;
  border-radius: 50%;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0 0 2px;
  font-size: 18px;
  line-height: 1;
  display: grid;
  position: absolute;
  top: 8px;
  right: 8px;
}
.card-x:hover,
.card-x:focus-visible { background: #111; }

/* Signed-out: faded (opacity + light wash), never grayscale, not clickable. */
.watchlist-locked {
  position: relative;
  margin-top: 32px;
  min-width: 0;
}
.watchlist-ghost {
  pointer-events: none;
  user-select: none;
}
.watchlist-ghost .poster-tile {
  opacity: 0.4;
  filter: none;
  pointer-events: none;
}
.watchlist-ghost .poster-art {
  /* Light wash over the art, not a gray filter. */
  background-image: linear-gradient(#ffffff66, #ffffff66);
  background-blend-mode: lighten;
}

/* Message sits on top of the faded grid. */
.watchlist-veil {
  pointer-events: none;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 16px 64px;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff14 0%, #ffffff55 48%, #ffffff88 100%);
}
.watchlist-msg {
  pointer-events: auto;
  box-sizing: border-box;
  width: min(32rem, 100%);
  max-width: 32rem;
  margin: 0 auto;
  padding: 28px 28px 24px;
  color: #111;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line, #e6e6e6);
  border-radius: 16px;
  box-shadow: 0 16px 40px -12px #00000033;
}
.watchlist-msg p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: pretty;
}
.watchlist-msg .watchlist-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.watchlist-cta .btn,
.watchlist-cta .join-cta {
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: auto;
  min-height: 44px;
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  line-height: 1;
}
.watchlist-page .btn.red {
  color: #fff;
  background: var(--red, #d51920);
  border: 0;
}
.watchlist-page .btn.red:hover { background: #b9151b; }
.watchlist-cta .join-cta,
.watchlist-page .btn.ghost {
  color: #111;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ccc;
  font-weight: 500;
}
.watchlist-cta .join-cta:hover,
.watchlist-page .btn.ghost:hover { background: #f7f7f7; }

/* Profile account-tab section: same cards, fewer columns in the narrow card. */
.nwsm-watchlist-card .join-lede,
.nwsm-watchlist-card .type-lede {
  color: #595959;
  max-width: 42rem;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}
.nwsm-watchlist-card .type-poster-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .nwsm-watchlist-card .type-poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.nwsm-watchlist-card .watchlist-type { margin-top: 20px; }
.nwsm-watchlist-card .watchlist-type:first-child { margin-top: 0; }

@media (max-width: 639px) {
  .watchlist-msg { padding: 22px 18px 20px; }
  .watchlist-msg p { font-size: 16px; }
  .watchlist-veil { padding: 28px 12px 40px; align-items: flex-start; }
}

/* Current Access / mobile Watchlist item. */
.access-menu a[aria-current="page"],
.menu-full nav a[aria-current="page"] { font-weight: 650; }
