/* The films' site (website/src/build.py writes the pages): night-club purple and disco gold. Phone first; no web fonts, no
   scripts. */
:root {
  --bg: #1a0630; --bg2: #220a3d; --card: #2a0b4a; --card2: #351160; --line: #47206f;
  --text: #f4ecff; --muted: #c9b6e6; --accent: #ffc93c; --pink: #ff4fb8; --paper: #f3e3c8;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text);
  background: radial-gradient(1200px 500px at 15% -10%, rgba(255, 79, 184, .22), transparent 60%),
              radial-gradient(900px 420px at 95% 0%, rgba(255, 201, 60, .14), transparent 60%), var(--bg);
  background-repeat: no-repeat;
  font: 16px/1.55 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
a { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(26, 6, 48, .88); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 900; font-size: 19px; text-decoration: none;
  letter-spacing: .2px; text-shadow: 0 0 18px rgba(255, 79, 184, .55); }
.brand img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 2px var(--accent); }
nav { display: flex; gap: 4px; margin: 0 -8px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; padding: 6px 8px; border-radius: 10px; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: var(--text); background: var(--card); }
nav a.tt { color: var(--pink); }

main { padding-top: 24px; padding-bottom: 40px; }
section { margin-top: 40px; }
h1 { font-size: 34px; line-height: 1.15; margin: 8px 0 8px; color: var(--accent); }
h2 { font-size: 23px; line-height: 1.2; margin: 0; }
h2.small { font-size: 17px; margin: 22px 0 10px; color: var(--muted); }
.lead { font-size: 18px; color: var(--text); margin: 0 0 12px; max-width: 760px; }
.sum, .empty { color: var(--muted); }
.crumbs { margin: 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.head a, .head span { font-size: 15px; font-weight: 700; color: var(--muted); }
.head a { color: var(--accent); text-decoration: none; }

/* home */
.hero { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; text-align: center; margin-top: 8px; }
.hero img { width: 168px; height: 168px; margin: 0 auto; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 4px var(--accent), 0 0 56px rgba(255, 79, 184, .6); }
.hero h1 { font-size: 40px; margin: 0; text-shadow: 0 0 28px rgba(255, 79, 184, .5); }
.tagline { font-size: 19px; font-weight: 700; color: var(--text); margin: 8px auto 20px; max-width: 560px; }
.button { display: inline-block; background: var(--pink); color: #fff; font-weight: 900; padding: 13px 26px; border-radius: 999px;
  text-decoration: none; box-shadow: 0 6px 24px rgba(255, 79, 184, .45); }
.button:hover { filter: brightness(1.08); }
@media (min-width: 720px) {
  .hero { grid-template-columns: 220px 1fr; text-align: left; gap: 32px; }
  .hero img { width: 220px; height: 220px; }
  .hero h1 { font-size: 52px; }
  .tagline { margin-left: 0; }
}

/* film cards */
.films { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 720px) { .films { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 28px 18px; } }
.film { min-width: 0; }
.thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--card);
  box-shadow: 0 0 0 1px var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.thumb:hover img { transform: scale(1.04); }
.nothumb { display: grid; place-items: center; height: 100%; padding: 12px; text-align: center; font-weight: 800; color: var(--muted); }
.rank { position: absolute; top: 8px; left: 8px; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; display: grid;
  place-items: center; background: var(--accent); color: #1a0630; font-weight: 900; font-size: 15px; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.play { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 7px 8px; border-radius: 10px; text-align: center;
  background: rgba(26, 6, 48, .82); color: var(--text); font-weight: 800; font-size: 13px; opacity: 0; transition: opacity .2s ease; }
.thumb:hover .play, .thumb:focus-visible .play { opacity: 1; }
.film h3 { font-size: 16px; line-height: 1.25; margin: 10px 0 2px; }
.film h3 a { color: var(--text); text-decoration: none; }
.film h3 a:hover { color: var(--accent); }
.film p { margin: 0; }
.sub { color: var(--muted); font-size: 13px; font-weight: 700; }
.cast { display: flex; flex-wrap: wrap; gap: 0; margin-top: 8px !important; padding-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; }

.face { display: block; border-radius: 50%; overflow: hidden; background: var(--paper); flex: none; }
.face img { width: 100%; height: 100%; }
.face.sm { width: 30px; height: 30px; margin-left: -6px; box-shadow: 0 0 0 2px var(--bg); }
.face.md { width: 44px; height: 44px; }
.face:hover { position: relative; z-index: 1; box-shadow: 0 0 0 2px var(--accent); }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  text-decoration: none; white-space: nowrap; }
a.chip:hover { background: color-mix(in srgb, var(--c) 28%, transparent); }
h1 .chip { font-size: 30px; padding: 4px 18px; gap: 10px; }

/* themes */
.themes-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.themes-mini a { display: grid; grid-template-columns: 28px 26px 1fr; align-items: center; gap: 8px; padding: 11px 14px;
  border-radius: 12px; background: var(--card); color: var(--text); text-decoration: none; font-weight: 800; }
.themes-mini a:hover { background: var(--card2); }
.themes-mini .n { color: var(--accent); font-size: 17px; }
.themes-mini .em { font-size: 19px; }
.themes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.theme a { display: grid; grid-template-columns: 34px 1fr; gap: 6px 12px; padding: 16px; border-radius: var(--radius);
  background: var(--card); color: var(--text); text-decoration: none; }
.theme a:hover { background: var(--card2); }
.theme .n { font-size: 26px; font-weight: 900; color: var(--accent); line-height: 1.1; }
.theme .body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.theme .what { color: var(--text); }
.theme .strip { grid-column: 2; display: flex; gap: 6px; }
.theme .strip img { width: 54px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; }
@media (min-width: 720px) {
  .theme a { grid-template-columns: 44px 1fr auto; align-items: center; }
  .theme .strip { grid-column: 3; }
  .theme .strip img { width: 64px; }
}

/* characters */
.chars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 720px) { .chars { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; } }
main > h2 { margin: 32px 0 14px; }
h3.group { font-size: 15px; font-weight: 900; color: var(--pink); text-transform: uppercase; letter-spacing: .8px; margin: 0 0 12px; }
.chars + h3.group { margin-top: 28px; }
.char a { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--card);
  color: var(--text); text-decoration: none; box-shadow: 0 0 0 1px var(--line); }
.char a:hover { background: var(--card2); box-shadow: 0 0 0 2px var(--accent); }
.char .portrait { display: block; background: var(--paper); aspect-ratio: 4 / 5; }
.char .portrait img { width: 100%; height: 100%; object-fit: cover; }
.char .name { font-weight: 900; font-size: 17px; margin: 10px 12px 0; }
.char .line { color: var(--muted); font-size: 13.5px; line-height: 1.4; margin: 6px 12px 14px; flex: 1; }

.profile { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 12px; }
.profile .portrait { background: var(--paper); border-radius: var(--radius); overflow: hidden; max-width: 340px; width: 100%; margin: 0 auto;
  box-shadow: 0 0 0 4px var(--accent), 0 0 48px rgba(255, 79, 184, .35); }
.profile h1 { margin: 0; font-size: 40px; }
.profile .pron { color: var(--pink); font-weight: 800; margin: 2px 0 10px; }
@media (min-width: 760px) {
  .profile { grid-template-columns: 320px 1fr; gap: 36px; align-items: start; }
  .profile .portrait { position: sticky; top: 76px; }
}
dl { margin: 18px 0 0; display: grid; grid-template-columns: 1fr; gap: 4px; }
dt { font-weight: 900; color: var(--accent); font-size: 14px; text-transform: uppercase; letter-spacing: .6px; margin-top: 10px; }
dd { margin: 0; }
@media (min-width: 760px) {
  dl { grid-template-columns: 170px 1fr; gap: 12px 18px; }
  dt { margin-top: 2px; }
}
.pals { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.pals li { display: flex; align-items: center; gap: 10px; }
.pals a:not(.face) { color: var(--text); font-weight: 800; text-decoration: none; }

.lost { text-align: center; padding: 40px 0; }
.lost img { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 12px; }

footer { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 36px; color: var(--muted); font-size: 14px; }
footer p { margin: 0; }
