/* The /lists pages (scripts/build-list-pages.mjs). Same look as the rest of the site:
   black, gold, Lato, glass cards. Website relaunch, 25 September 2026. */
:root { --gold: #e4b348; --gold-dim: #9F7A2D; --ink: #000; --glass: rgba(22, 22, 24, 0.82); --hairline: rgba(228, 179, 72, 0.35); }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--ink); color: #fff; font-family: 'Lato', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }

.nav { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; padding: 18px 24px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { width: 42px; height: 42px; }
.nav-brand span { font-size: 20px; font-weight: 900; color: var(--gold); letter-spacing: .5px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--gold-dim); text-decoration: none; font-size: 14px; font-weight: 700; }
.nav-links a:hover { color: var(--gold); }
.nav-links .nav-cta { background: var(--gold); color: #000; padding: 8px 16px; border-radius: 999px; }
.nav-links .nav-cta:hover { color: #000; box-shadow: 0 0 18px rgba(228, 179, 72, .45); }

.list-hero { max-width: 820px; margin: 0 auto; padding: 26px 24px 10px; text-align: center;
  background: radial-gradient(ellipse at 50% -30%, rgba(228, 179, 72, .12), transparent 65%); }
.crumbs { color: var(--gold-dim); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 6px; }
/* headings in Bebas Neue, as on the rest of the site (assets/site.css) */
.list-hero h1 { color: var(--gold); font: 400 70px 'Bebas Neue', 'Lato', sans-serif; letter-spacing: 1.5px; line-height: 1.02; margin-top: 10px; }
.list-hero .intro { color: #d2d2d2; font-size: 17px; line-height: 1.65; margin: 16px auto 0; max-width: 700px; }
.list-cta { margin-top: 22px; }
.list-cta p { color: #bdbdbd; font-size: 14.5px; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 36px 22px; justify-content: center; align-items: center; margin-top: 28px; }
/* Room for the "Beta testers wanted" label drawn above the Google Play badge (owner, 26 September). */
.store-buttons:has(.store-badge.beta) { padding-top: 20px; }
.store-badge { position: relative; display: block; line-height: 0; }
.store-badge img { height: 50px; width: auto; }
.store-badge img.play { height: 75px; margin: -12px 0; }
.store-badge.beta::after { content: 'Beta testers wanted'; position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; background: var(--gold); color: #000; font-size: 10px; font-weight: 900; letter-spacing: .5px;
  text-transform: uppercase; padding: 3px 8px; border-radius: 10px; line-height: 1.3; }

/* "Download this list, as an image" (owner, 2 October 2026): built to sit with the App Store
   badge, the same 50px height, black, thin grey border, two lines of text. */
.dl-badge { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 14px 0 10px;
  background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 9px; cursor: pointer;
  font-family: Lato, system-ui, sans-serif; line-height: 1; }
.dl-badge:hover { border-color: var(--gold); }
.dl-badge:disabled { opacity: .7; cursor: progress; }
.dl-badge svg { flex: none; color: var(--gold); }
.dl-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.dl-small { font-size: 10.5px; letter-spacing: .2px; }
.dl-big { font-size: 19px; font-weight: 700; letter-spacing: -.2px; }

.list-body { max-width: 1100px; margin: 0 auto; padding: 28px 24px 10px; }
.list-count { color: var(--gold-dim); font-weight: 900; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.title-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; }
.title-card { display: flex; flex-direction: column; }
.title-card img, .no-poster { width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: 10px; object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 10px 26px rgba(0, 0, 0, .6); background: #151515; }
.t-name { color: #f2f2f2; font-weight: 700; font-size: 14px; line-height: 1.3; margin-top: 8px; }
.t-year { color: #8d8d8d; font-size: 13px; margin-top: 2px; }

.list-more { margin: 48px auto 0; max-width: 720px; text-align: center; background: var(--glass); border: 1px solid var(--hairline);
  border-radius: 22px; padding: 28px 24px 30px; }
.list-more h2 { color: var(--gold); font: 400 36px 'Bebas Neue', 'Lato', sans-serif; letter-spacing: 1.5px; line-height: 1.05; }
.list-more p { color: #cfcfcf; font-size: 15px; line-height: 1.6; margin-top: 8px; }

.related { margin-top: 44px; text-align: center; }
.related h2 { color: #fff; font: 400 30px 'Bebas Neue', 'Lato', sans-serif; letter-spacing: 1.5px; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.related-links a { text-decoration: none; color: #e6e6e6; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid #333; }
.related-links a:hover { border-color: var(--gold); color: var(--gold); }
.related-links a.all { color: var(--gold); border-color: var(--hairline); }

/* the /lists index: one card per group, four fixed posters (owner, 26 September) */
.gr-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 8px; }
/* A short last row sits in the middle, not hard left (TV Shows has 10 groups). */
.gr-grid > .gr-card { flex: 0 0 calc((100% - 44px) / 3); min-width: 0; }
.gr-card { display: flex; flex-direction: column; text-decoration: none; background: var(--glass); border: 1px solid #2a2a2a; border-radius: 20px;
  padding: 12px 12px 18px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.gr-card:hover, .gr-card:focus-visible { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(228, 179, 72, .12); }
.gr-posters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gr-posters img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; display: block; background: #151515; }
.gr-text { display: flex; flex-direction: column; align-items: flex-start; padding: 14px 6px 0; }
.gr-name { font: 400 40px 'Bebas Neue', 'Lato', sans-serif; color: var(--gold); letter-spacing: 1.5px; line-height: 1; }
.gr-tag { color: #d0d0d0; font-size: 15px; line-height: 1.45; margin-top: 6px; }
.gr-n { color: #8f8f8f; font-size: 13px; font-weight: 700; margin-top: 8px; }

/* a group page: the owner's pick, 25 September (four posters per list on design A's card, B's lettering) */
.wl-toggle { display: flex; width: max-content; margin: 6px auto 10px; background: #141414; border: 1px solid #333; border-radius: 999px; padding: 4px; }
.wl-toggle button { border: 0; background: none; color: #aaa; font: 800 15px 'Lato', sans-serif; padding: 10px 26px; border-radius: 999px; cursor: pointer; }
.wl-toggle button.on { background: var(--gold); color: #000; }
.wl-pane[hidden] { display: none; }
.wl-group { margin-top: 46px; }
.wl-head { display: flex; align-items: center; justify-content: center; gap: 14px; }
.wl-head h2 { font: 400 64px 'Bebas Neue', 'Lato', sans-serif; color: var(--gold); letter-spacing: 2px; line-height: 1; }
.wl-chip { font: 800 13px 'Lato', sans-serif; color: #000; background: var(--gold); padding: 5px 12px; border-radius: 999px; }
.wl-tag { text-align: center; color: #bdbdbd; font-size: 16px; margin: 8px 0 24px; }
.wl-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.wl-grid > .wl-card { flex: 0 0 calc((100% - 66px) / 4); min-width: 0; }
@media (max-width: 960px) { .wl-grid > .wl-card { flex-basis: calc((100% - 44px) / 3); } }
@media (max-width: 700px) { .wl-grid > .wl-card { flex-basis: calc((100% - 22px) / 2); } }
.wl-card { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; background: var(--glass);
  border: 1px solid #2a2a2a; border-radius: 18px; padding: 10px 10px 16px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.wl-card:hover, .wl-card:focus-visible { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(228, 179, 72, .12); }
.wl-posters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; width: 100%; }
.wl-posters img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; display: block; background: #151515; }
.wl-name { color: #fff; font-weight: 900; font-size: 19px; margin-top: 12px; }
.wl-n { color: var(--gold-dim); font-weight: 700; font-size: 13px; margin-top: 3px; }
.wl-n::after { content: " \203A"; color: var(--gold); font-size: 16px; }
.list-body > .wl-pane:first-of-type, .list-body > .wl-toggle ~ .wl-pane { margin-top: 18px; }

footer { text-align: center; padding: 50px 24px 46px; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--gold-dim); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--gold); }
.footer-features { margin-top: 12px; }
.tmdb { color: #6f6f6f; font-size: 12px; margin-top: 18px; }

@media (max-width: 960px) { .gr-grid > .gr-card { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 640px) {
  .gr-grid { gap: 14px; }
  .gr-grid > .gr-card { flex-basis: 100%; }
  .gr-card { flex-direction: row; align-items: center; gap: 14px; padding: 10px; }
  .gr-posters { grid-template-columns: repeat(2, 1fr); gap: 4px; width: 132px; flex: none; }
  .gr-posters img { border-radius: 6px; }
  .gr-text { padding: 0; }
  .gr-name { font-size: 32px; }
  .gr-tag { font-size: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .list-hero .intro { font-size: 16px; }
  .title-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 16px 12px; }
  .wl-grid { gap: 12px; }
  .wl-grid > .wl-card { flex-basis: calc((100% - 12px) / 2); }
  .wl-head h2 { font-size: 50px; }
  .list-hero h1 { font-size: 50px; }
  .list-more h2 { font-size: 30px; }
  .wl-name { font-size: 16px; }
  .wl-card { padding: 7px 7px 12px; }
  .t-name { font-size: 13px; }
}

/* The app's movie card, opened from a poster (site/assets/movie-card.js). Colours, sizes and
   type follow src/components/movie/MovieCard.tsx and MovieDetailsCard.tsx; #ffc84f is the app's gold. */
.title-card[data-id] { cursor: pointer; }
.title-card[data-id]:hover img, .title-card[data-id]:focus-visible img { border-color: rgba(255, 200, 79, .7); }
.title-card[data-id]:focus-visible { outline: none; }
html.mc-open { overflow: hidden; }
.mc-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .82); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 16px; }
.mc-box { width: min(420px, 100%); margin: auto 0; background: var(--glass); border: 1px solid var(--hairline); border-radius: 22px;
  padding: 12px 14px 16px; box-shadow: 0 0 40px rgba(255, 200, 79, .12); }
.mc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mc-hint { flex: 1; text-align: center; color: #ffc84f; font-size: 14px; font-weight: 700; padding-left: 34px; }
.mc-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 200, 79, .4); background: rgba(255, 255, 255, .05);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.mc-card { position: relative; height: clamp(440px, calc(100dvh - 250px), 660px); perspective: 1400px; cursor: pointer; outline: none; }
.mc-inner { position: absolute; inset: 0; transition: transform .55s cubic-bezier(.4, .2, .2, 1); transform-style: preserve-3d; }
.mc-card.flipped .mc-inner { transform: rotateY(180deg); }
.mc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #070707;
  border: 1px solid rgba(255, 200, 79, .22); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.mc-back { transform: rotateY(180deg); }
.mc-bg { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); object-fit: cover; opacity: .28; pointer-events: none; }
.mc-bg-back { opacity: .5; }
.mc-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .2); }
.mc-front-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: 16px 16px 0; }
.mc-poster { height: 56%; aspect-ratio: 2 / 3; max-width: 62%; border: 1.5px solid rgba(255, 200, 79, .45); border-radius: 14px;
  overflow: hidden; margin-bottom: 16px; flex-shrink: 0; background: #000; }
.mc-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-title { align-self: stretch; color: #ffc84f; font: 700 22px/28px 'Lato', sans-serif; text-align: center; margin-bottom: 10px; }
.mc-big { font-size: 28px; line-height: 1.2; margin-bottom: 8px; }
.mc-meta { display: flex; justify-content: space-between; width: 100%; margin-bottom: 14px; }
.mc-loading { justify-content: center; padding: 10px 0; }
.mc-spin { width: 26px; height: 26px; border: 3px solid rgba(255, 200, 79, .25); border-top-color: #ffc84f; border-radius: 50%; animation: mc-spin .8s linear infinite; }
@keyframes mc-spin { to { transform: rotate(360deg); } }
.mc-mi { flex: 1; display: flex; align-items: center; justify-content: center; }
.mc-ic { width: 18px; height: 18px; color: #ffc84f; margin-right: 6px; display: inline-flex; }
.mc-ic svg, .mc-pill svg { width: 100%; height: 100%; }
.mc-mt { display: flex; flex-direction: column; align-items: center; }
.mc-mt b { color: #fff; font-size: 20px; font-weight: 700; }
.mc-mt small { color: #ffc84f; opacity: .85; font-size: 13px; font-weight: 700; }
.mc-genres { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-height: 56px; overflow: hidden; }
.mc-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 200, 79, .4);
  border-radius: 999px; padding: 3px 8px; color: #ffc84f; font-size: 13px; font-weight: 700; white-space: nowrap; }
.mc-pill svg { width: 14px; height: 14px; color: #fff; }
.mc-btns { position: relative; display: flex; gap: 8px; padding: 12px 12px 16px; }
.mc-btn { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: #ffc84f; color: #000; font: 700 15px 'Lato', sans-serif;
  box-shadow: 0 0 14px rgba(255, 200, 79, .4); cursor: pointer; }
.mc-btn:disabled { opacity: .45; cursor: default; }
.mc-wide { width: 100%; margin-top: 12px; }
.mc-back-body { position: relative; flex: 1; min-height: 0; padding: 24px 24px 16px; display: flex; flex-direction: column; }
.mc-overview { color: #fff; font-size: 16px; line-height: 1.4; max-height: clamp(120px, 28%, 240px); overflow-y: auto; margin-bottom: 12px;
  padding-right: 8px; cursor: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .55) rgba(255, 255, 255, .12); }
.mc-k { color: #ffc84f; font-size: 18px; font-weight: 700; }
.mc-sec { margin-bottom: 8px; }
.mc-cast { display: flex; justify-content: space-between; margin-bottom: 16px; }
.mc-cm { flex: 1; display: flex; flex-direction: column; align-items: center; margin: 0 4px; text-align: center; }
.mc-cm img, .mc-noimg { width: 60px; height: 90px; border-radius: 4px; object-fit: cover; margin-bottom: 8px; background: #1a1a1a; }
.mc-cm b { color: #fff; font-size: 14px; margin-bottom: 4px; }
.mc-cm i { color: #ccc; font-size: 12px; }
.mc-line { color: #fff; font-size: 16px; line-height: 1.5; }
.mc-center { text-align: center; padding: 8px 0; }
.mc-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid rgba(255, 200, 79, .22); }
.mc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mc-cta { text-align: center; margin-top: 14px; }
/* No "Beta testers wanted" label in the card's box: the badge goes to the beta sign-up anyway (owner) */
.mc-cta .store-buttons, .mc-cta .store-buttons:has(.store-badge.beta) { margin-top: 0; padding-top: 0; gap: 12px 16px; }
.mc-cta .store-badge.beta::after { content: none; }
.mc-cta .store-badge img { height: 42px; }
.mc-cta .store-badge img.play { height: 63px; margin: -10px 0; }
.mc-box:has(.mc-trailer) { width: min(900px, 100%); }

/* Streaming service tabs above a watchlist (owner, 4 October 2026). Filled in by the Worker
   (src-worker/list-services.js); each tab is its own page. One row that scrolls sideways on a
   phone, styled like the Movies / TV switch. */
.svc-tabs { margin: 0 0 22px; }
.svc-label { color: var(--gold-dim); font-weight: 900; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.svc-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.svc-row::-webkit-scrollbar { display: none; }
.svc-tab { flex: none; display: inline-flex; align-items: center; gap: 7px; background: #141414; border: 1px solid #333; border-radius: 999px;
  color: #ddd !important; font: 800 14px 'Lato', sans-serif; padding: 9px 16px; text-decoration: none; white-space: nowrap; }
.svc-tab span { color: #8d8d8d; font-weight: 700; font-size: 13px; }
.svc-tab:hover { border-color: var(--gold); }
.svc-tab.on { background: var(--gold); border-color: var(--gold); color: #000 !important; }
.svc-tab.on span { color: rgba(0, 0, 0, .65); }
.svc-source { color: #8d8d8d; font-size: 12px; margin-top: 8px; }

/* The search box on /lists (owner, 6 October 2026), above the Movies / TV switch. Results drop down
   below it and sit over the group cards; site/assets/list-search.js fills them. */
.wl-search { position: relative; max-width: 560px; margin: 4px auto 18px; }
.wl-search input { width: 100%; box-sizing: border-box; background: #141414; border: 1px solid #333; border-radius: 999px;
  color: #f2f2f2; font: 700 16px 'Lato', sans-serif; padding: 13px 20px; outline: none; }
.wl-search input::placeholder { color: #8d8d8d; font-weight: 400; }
.wl-search input:focus { border-color: var(--gold); box-shadow: 0 0 14px rgba(228, 179, 72, .25); }
.wl-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); background: #111; border: 1px solid #333;
  border-radius: 16px; padding: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, .7); max-height: 70vh; overflow-y: auto; text-align: left; }
.wl-rh { color: var(--gold-dim); font-weight: 900; letter-spacing: 2px; text-transform: uppercase; font-size: 11px; margin: 8px 10px 4px; }
.wl-hit { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 10px; text-decoration: none; }
a.wl-hit:hover, a.wl-hit:focus-visible { background: #1d1d1d; }
.wl-hn { color: #f2f2f2 !important; font-weight: 800; font-size: 15px; }
.wl-hs { color: #9a9a9a; font-size: 13px; line-height: 1.5; }
.wl-hs a { color: var(--gold) !important; font-weight: 700; text-decoration: none; }
.wl-none { color: #9a9a9a; margin: 10px; font-size: 14px; }
.wl-tl { text-decoration: none; }
.wl-tl:hover, .wl-tl:focus-visible { color: var(--gold) !important; }
/* One title's page (/lists/find): its poster beside the heading */
.find-head { display: flex; align-items: center; gap: 22px; justify-content: center; text-align: left; }
.find-poster { width: 120px; height: auto; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 10px 26px rgba(0, 0, 0, .6); flex: none; }
.find-head h1 { margin: 0 0 8px; }
.find-head .intro { margin: 0; }
@media (max-width: 600px) { .find-head { flex-direction: column; text-align: center; gap: 14px; } .find-poster { width: 110px; } }
