:root {
  --bg: #0b0e0d;
  --bg-soft: #101514;
  --surface: #141a18;
  --surface-2: #1a221f;
  --ink: #eef2ef;
  --muted: #9aa9a2;
  --faint: #71807a;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --gold: #e8b64c;
  --gold-bright: #f7d27f;
  --gold-soft: rgba(232, 182, 76, .13);
  --teal: #4fd1b0;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 22px 50px rgba(0, 0, 0, .45);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif Malayalam", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Malayalam", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
  background:
    /* film grain */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E") repeat,
    /* faint dot grid, like a contact sheet */
    radial-gradient(circle, rgba(255, 255, 255, .065) .8px, transparent 1.3px) 0 0 / 24px 24px repeat,
    /* vignette */
    radial-gradient(125% 95% at 50% 38%, transparent 52%, rgba(0, 0, 0, .38) 100%),
    /* warm and cool light pools */
    radial-gradient(1100px 620px at 82% -8%, rgba(232, 182, 76, .13), transparent 62%),
    radial-gradient(900px 520px at -12% 6%, rgba(79, 209, 176, .08), transparent 60%),
    radial-gradient(1000px 720px at 6% 108%, rgba(232, 182, 76, .07), transparent 66%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(232, 182, 76, .3); }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

img { max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(34px, 4.6vw, 58px); }
h2 { font-size: clamp(22px, 2.4vw, 28px); }
h3 { font-size: 18px; }
h4 { font-size: 15px; }

.wrap { width: min(100% - 44px, 1240px); margin: 0 auto; }

main { padding: 0 0 80px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #14100a;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 12, 11, .78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--gold); flex: none; }
.brand-text span { color: var(--gold); }

.nav {
  display: flex;
  gap: 26px;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.search { display: flex; align-items: center; gap: 0; position: relative; }
.search svg {
  position: absolute;
  left: 13px;
  color: var(--faint);
  pointer-events: none;
}
.search input[type="search"] {
  width: 290px;
  padding: 10px 92px 10px 38px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color .2s, background .2s;
}
.search input[type="search"]::placeholder { color: var(--faint); }
.search input[type="search"]:focus {
  outline: none;
  border-color: rgba(232, 182, 76, .55);
  background: rgba(255, 255, 255, .08);
}
.search button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--gold);
  color: #17120a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.search button:hover { background: var(--gold-bright); }

/* -------------------------------------------------------------------- hero */

.hero { padding: 54px 0 44px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 52px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: .98;
  letter-spacing: -.03em;
  margin: 12px 0 18px;
}
.hero-copy h1 em { font-style: italic; color: var(--gold); }
.hero-copy .lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 52ch;
  margin: 0 0 26px;
}

.hero-search { display: flex; gap: 10px; max-width: 470px; }
.hero-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.hero-search input[type="search"]::placeholder { color: var(--faint); }
.hero-search input[type="search"]:focus { outline: none; border-color: rgba(232, 182, 76, .55); }
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  background: var(--gold);
  color: #17120a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.hero-search button:hover { background: var(--gold-bright); }

.hero-links { display: flex; gap: 20px; margin-top: 18px; font-size: 14px; }
.hero-links a { color: var(--muted); font-weight: 600; }
.hero-links a:hover { color: var(--gold); }

.hero-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  transform: rotate(-2deg) scale(1.02);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 98%);
}
.hero-wall .wall-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.hero-wall img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.hero-wall .wall-card:nth-child(3n + 1) { transform: translateY(22px) rotate(1.4deg); }
.hero-wall .wall-card:nth-child(3n + 2) { transform: translateY(-12px); }
.hero-wall .wall-card:nth-child(3n) { transform: translateY(30px) rotate(-1.4deg); }
.hero-wall .wall-card:hover { transform: translateY(-4px) scale(1.03); }

/* ---------------------------------------------------------------- stat bar */

.stat-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.stat-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.stat {
  padding: 26px 22px;
  border-left: 1px solid var(--line);
  color: var(--ink);
  transition: background .2s;
}
.stat:first-child { border-left: 0; }
.stat:hover { background: var(--gold-soft); color: var(--ink); }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-lyrics strong, .stat-lyrics:hover span { color: var(--gold-bright); }

/* ---------------------------------------------------------------- sections */

.section { margin-top: 54px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section-head h2 { margin-top: 6px; }
.section-head .film-meta { color: var(--faint); font-size: 12.5px; margin: 4px 0 0; }
.eyebrow {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.more { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.more:hover { color: var(--gold-bright); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  min-width: 0;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}
.two-col > * { min-width: 0; }

.detail .panel { margin: 22px 0; }

.count {
  display: inline-block;
  min-width: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  vertical-align: 3px;
}

/* ------------------------------------------------------------ poster cards */

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 28px 20px;
}

.poster-card { display: block; color: var(--ink); }
.poster-card:hover { color: var(--ink); }

.thumb-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .38);
  border: 1px solid rgba(255, 255, 255, .06);
}
.thumb-wrap img,
.thumb-wrap .thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), filter .3s;
}
.poster-card:hover .thumb-wrap img,
.poster-card:hover .thumb-wrap .thumb { transform: scale(1.055); }
.poster-card:hover .thumb-wrap { border-color: rgba(232, 182, 76, .4); }

.thumb-wrap .year-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(8, 10, 9, .72);
  backdrop-filter: blur(6px);
  color: #f3ece0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
}

.card-title {
  display: block;
  margin-top: 11px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.32;
  transition: color .2s;
}
.poster-card:hover .card-title { color: var(--gold); }
.card-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.mono {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background:
    radial-gradient(130% 100% at 50% 0%, hsl(var(--h) 28% 30%), hsl(var(--h) 34% 12%) 72%);
  color: #f1e3c4;
  font-family: var(--font-display);
  overflow: hidden;
  text-align: center;
}
.mono b { font-weight: 600; font-size: 40px; line-height: 1; }
.mono small { font-family: var(--font-body); font-size: 10px; letter-spacing: .2em; color: rgba(255, 255, 255, .55); }

/* thumbnails in lists */
.thumb {
  display: block;
  width: 56px;
  height: 84px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, .07);
}
.thumb.mono {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.thumb.mono b { font-size: 18px; }
.thumb.mono small { display: none; }
.thumb-wrap .mono b { font-size: 40px; }

/* --------------------------------------------------------------- portraits */

.face-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
  gap: 26px 18px;
}

.face-card { color: var(--ink); display: block; }
.face-card:hover { color: var(--ink); }

.face-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.face-photo .face-img,
.face-photo .mono {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.face-photo .mono { display: flex; font-size: 46px; }
.face-card:hover .face-img,
.face-card:hover .face-photo .mono { transform: scale(1.04); }
.face-card:hover .face-photo { border-color: rgba(232, 182, 76, .4); }

.face-photo .rank {
  position: absolute;
  left: 9px;
  top: 9px;
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(8, 10, 9, .74);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.face-name {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  transition: color .2s;
}
.face-card:hover .face-name { color: var(--gold); }
.face-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }

/* home actor rows */
.faces-panel .face-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; }
.faces-panel .face-photo { aspect-ratio: 1 / 1; border-radius: 12px; }
.faces-panel .face-name { font-size: 14.5px; }
.faces-panel .face-meta { font-size: 11.5px; }
.faces-panel .eyebrow { color: var(--faint); }

/* avatars (compact) */
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, .08);
}
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.md { width: 44px; height: 44px; font-size: 15px; }
.avatar.lg { width: 62px; height: 62px; font-size: 21px; }

/* ---------------------------------------------------------------- decades */

.decade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
}
.decade-tile {
  position: relative;
  display: block;
  padding: 18px 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
  transition: border-color .2s, transform .2s, background .2s;
}
.decade-tile:hover {
  border-color: rgba(232, 182, 76, .45);
  background: var(--surface-2);
  transform: translateY(-2px);
  color: var(--ink);
}
.decade-num {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
}
.decade-count { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.decade-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: calc(var(--w) * 1%);
  background: linear-gradient(90deg, rgba(232, 182, 76, .35), var(--gold));
}

/* -------------------------------------------------------------- song cards */

.song-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}
.song-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s, background .2s, transform .2s;
}
.song-card:hover {
  border-color: rgba(232, 182, 76, .4);
  background: var(--surface-2);
  transform: translateY(-2px);
  color: var(--ink);
}
.song-thumb {
  display: block;
  width: 54px;
  height: 80px;
  flex: none;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
}
.song-thumb img, .song-thumb .thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.song-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.song-title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.song-film { font-size: 12.5px; color: var(--muted); }
.song-sing { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------- page heads */

.page-head { padding: 46px 0 6px; }
.page-head h1 { margin: 8px 0 6px; }
.lede { color: var(--muted); font-size: 16.5px; max-width: 70ch; margin: 8px 0 0; }

/* --------------------------------------------------------------- controls */

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 26px 0 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .022);
}
.filters input[type="search"], .filters select {
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  min-width: 200px;
}
.filters input[type="search"]::placeholder { color: var(--faint); }
.filters select option { background: var(--surface-2); color: var(--ink); }
.filters input[type="search"]:focus, .filters select:focus {
  outline: none;
  border-color: rgba(232, 182, 76, .55);
}
.filters .check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.filters .check input { accent-color: var(--gold); width: 16px; height: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.btn:hover { border-color: rgba(232, 182, 76, .55); background: rgba(255, 255, 255, .05); color: var(--ink); text-decoration: none; }
.btn-primary { background: var(--gold); border-color: var(--gold); color: #17120a; }
.btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: #17120a; }
.btn-disabled { color: var(--faint); border-color: var(--line); background: transparent; pointer-events: none; }
.btn-link { font-size: 13.5px; font-weight: 600; padding: 8px 4px; }

.alphabet { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 26px; }
.alphabet a {
  min-width: 34px;
  text-align: center;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.alphabet a:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.alphabet a.active { background: var(--gold); color: #17120a; }

/* ---------------------------------------------------------------- listings */

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px;
}
.person-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s, background .2s, transform .2s;
}
.person-card:hover {
  border-color: rgba(232, 182, 76, .4);
  background: var(--surface-2);
  transform: translateY(-1px);
  color: var(--ink);
}
.person-body { display: flex; flex-direction: column; min-width: 0; }
.person-name {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.person-counts { margin-top: 2px; font-size: 12px; color: var(--muted); }

.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.org-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s, background .2s, transform .2s;
}
.org-card:hover { border-color: rgba(232, 182, 76, .4); background: var(--surface-2); transform: translateY(-1px); color: var(--ink); }
.org-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 17px;
  border: 1px solid rgba(232, 182, 76, .25);
}
.org-name { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.org-meta { display: block; color: var(--muted); font-size: 12px; }

/* -------------------------------------------------------------- detail hero */

.detail-hero {
  position: relative;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.detail-hero.has-bg::before {
  content: "";
  position: absolute;
  inset: -60px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center 22%;
  filter: blur(46px) saturate(1.25);
  transform: scale(1.18);
  opacity: .32;
}
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 14, 13, .9) 0%, rgba(11, 14, 13, .55) 55%, rgba(11, 14, 13, .35) 100%);
  pointer-events: none;
}
.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 32px;
}
.detail-hero-inner.no-poster { grid-template-columns: minmax(0, 1fr); }

.poster-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .1);
}
.poster-figure img, .poster-figure .thumb { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.poster-figure .mono { width: 100%; aspect-ratio: 2 / 3; font-size: 56px; }
.poster-figure .mono b { font-size: 56px; }
.poster-figure figcaption {
  padding: 7px 11px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  background: rgba(0, 0, 0, .25);
  border-top: 1px solid var(--line);
}
.poster-figure figcaption a { color: var(--muted); }
.poster-figure figcaption a:hover { color: var(--gold); }

.portrait-figure { max-width: 250px; }
.portrait-figure .portrait-img,
.portrait-figure .mono {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  font-size: 68px;
}
.portrait-figure .mono { display: flex; }

.detail-copy { padding-top: 4px; min-width: 0; }
.detail-copy h1 { margin: 10px 0 6px; overflow-wrap: anywhere; }
.meta-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.meta-pills span, .meta-pills a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}
.meta-pills a { color: var(--ink); }
.meta-pills a:hover { border-color: rgba(232, 182, 76, .5); color: var(--gold); }

.link-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }

/* breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 28px;
  font-size: 12.5px;
  color: var(--faint);
  letter-spacing: .02em;
}
.crumbs a { color: var(--faint); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--muted); }

/* -------------------------------------------------------------- film detail */

.detail .section { margin-top: 34px; }
.detail .section-head { margin-bottom: 16px; }

.sub {
  margin: 24px 0 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.sub:first-of-type { margin-top: 2px; }

.credit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.credit-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .055);
  min-width: 0;
}
.credit-person { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; min-width: 0; }
.credit-person:hover { color: var(--gold); }
.credit-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-as { color: var(--muted); font-size: 13px; }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-lead { background: rgba(232, 182, 76, .16); color: var(--gold-bright); }
.badge-supporting { background: rgba(79, 209, 176, .12); color: #8fe6cf; }
.badge-guest { background: rgba(255, 255, 255, .06); color: var(--muted); }
.badge-lyrics { background: rgba(79, 209, 176, .14); color: #8fe6cf; margin-left: 6px; }

.crew-list {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 10px 20px;
  margin: 0;
  font-size: 14.5px;
}
.crew-list dt { color: var(--faint); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.crew-list dd { margin: 0; line-height: 1.6; }
.crew-list dd a { color: var(--ink); }
.crew-list dd a:hover { color: var(--gold); }

.film-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.film-list li { display: flex; gap: 9px; align-items: baseline; }
.film-list a { color: var(--ink); font-weight: 500; }
.film-list a:hover { color: var(--gold); }

/* person: poster rail */
.poster-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 132px;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.poster-rail .rail-card { display: block; color: var(--ink); }
.poster-rail .thumb-wrap { border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.poster-rail .rail-title {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.poster-rail .rail-year { display: block; color: var(--faint); font-size: 11px; }
.poster-rail .rail-card:hover .rail-title { color: var(--gold); }

/* ------------------------------------------------------------------ tables */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.table-wrap.flat { border: 0; background: transparent; border-radius: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
tbody td { padding: 11px 16px; border-bottom: 1px solid rgba(255, 255, 255, .045); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255, 255, 255, .028); }
tbody td a { color: var(--ink); font-weight: 500; }
tbody td a:hover { color: var(--gold); }
td.num, th.num { text-align: right; }
.w-year { width: 78px; white-space: nowrap; color: var(--muted); }
td.empty { text-align: center; color: var(--muted); padding: 34px 14px; }
td .muted, td.muted { color: var(--muted); }
td .muted a, td.muted a { color: var(--muted); }

/* songs by film */
.song-film {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  margin-bottom: 14px;
}
.song-film .thumb { width: 62px; height: 92px; }
.song-film-body { min-width: 0; }
.song-film-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.song-film-head h2 { font-size: 21px; }
.song-film-head h2 a { color: var(--ink); }
.song-film-head h2 a:hover { color: var(--gold); }
.song-film-head .film-meta { color: var(--faint); font-size: 12px; margin-top: 2px; }
.song-film-head .film-meta a { color: var(--faint); }
.song-film-head .film-meta a:hover { color: var(--gold); }

/* search */
.search-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 26px; align-items: start; margin-top: 26px; }
.search-list { display: grid; gap: 6px; }
.search-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.search-row:hover { background: var(--surface); border-color: var(--line); color: var(--ink); }
.search-row .thumb { width: 44px; height: 66px; }
.search-row .search-name { font-weight: 600; font-size: 14.5px; }
.search-row .search-sub { display: block; color: var(--muted); font-size: 12px; }

/* org detail */
.org-hero-copy .lede { margin-top: 12px; }

/* --------------------------------------------------------------- pagination */

.pager {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.pager-info { color: var(--faint); font-size: 12.5px; letter-spacing: .03em; }

/* ------------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
  padding: 48px 0 30px;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .6fr) minmax(0, .6fr);
  gap: 40px;
  padding-bottom: 32px;
}
.footer-brand .brand-text { font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.footer-brand .brand-text span { color: var(--gold); }
.footer-brand p { margin: 10px 0 0; max-width: 46ch; line-height: 1.65; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 6px 0 12px;
}
.footer-col a { display: block; color: var(--muted); padding: 4px 0; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.65;
}
.footer-bottom p { margin: 0; }
.site-footer code {
  background: rgba(255, 255, 255, .06);
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- notfound */

.notfound { text-align: center; padding: 90px 22px 60px; }
.notfound .eyebrow { margin-top: 12px; }
.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 150px);
  line-height: 1;
  color: var(--gold);
  opacity: .9;
}
.notfound h1 { margin: 10px 0 12px; }
.notfound p { color: var(--muted); }
.notfound .link-row { justify-content: center; }

/* ------------------------------------------------------------------ misc */

.note { color: var(--faint); font-size: 12.5px; margin: 12px 0 0; }
.note.filter-note { margin-top: -14px; margin-bottom: 26px; }
.empty { color: var(--muted); padding: 10px 0; }

.lyrics-box {
  white-space: pre-wrap;
  font-size: 16.5px;
  line-height: 1.9;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-wall { max-width: 560px; transform: none; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3n + 1) { border-left: 0; }
  .stat:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .search input[type="search"] { width: 200px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .search-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .header-inner { gap: 14px; }
  .nav { order: 3; flex: 1 0 100%; width: 100%; gap: 20px; padding-bottom: 4px; }
  .search { margin-left: auto; }
  .hero { padding-top: 36px; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .detail-hero-inner { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 24px; }
  .poster-figure { max-width: 190px; }
  .portrait-figure { max-width: 190px; }
  .faces-panel .face-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .credit-list { grid-template-columns: minmax(0, 1fr); }
  .crew-list { grid-template-columns: minmax(110px, 140px) 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { position: static; }
  .header-inner { min-height: 0; padding-top: 12px; padding-bottom: 10px; }
  .brand { font-size: 19px; }
  .search { order: 2; flex: 1 0 100%; margin-left: 0; }
  .search input[type="search"] { width: 100%; padding-right: 84px; }
  .search button { padding: 0 16px; font-size: 12.5px; }
  .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 6px;
    padding-right: 26px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; }
  .hero-copy h1 { font-size: clamp(38px, 12vw, 52px); }
  .hero-search { flex-direction: column; }
  .hero-search button { padding: 13px; }
  .hero-wall {
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    max-height: 430px;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 99%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 99%);
  }
  .hero-wall .wall-card:nth-child(n + 7) { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 18px 16px; }
  .stat:nth-child(3n + 1) { border-left: 1px solid var(--line); }
  .stat:nth-child(2n + 1) { border-left: 0; }
  .stat:nth-child(-n + 3) { border-bottom: 0; }
  .stat:nth-child(-n + 6) { border-bottom: 1px solid var(--line); }
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 22px 14px; }
  .face-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 20px 12px; }
  .faces-panel .face-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faces-panel .face-photo { aspect-ratio: 4 / 5; }
  .detail-hero-inner { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .poster-figure, .portrait-figure { max-width: 170px; }
  .detail-copy h1 { font-size: clamp(30px, 8vw, 42px); }
  .panel { padding: 20px 18px; }
  .section-head { align-items: flex-start; }
  .song-film { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .song-film .thumb { width: 48px; height: 72px; }
  .table-wrap { border-radius: var(--radius-sm); }
  table { min-width: 520px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .org-grid { grid-template-columns: minmax(0, 1fr); }
  .people-grid { grid-template-columns: minmax(0, 1fr); }
  .poster-rail { grid-auto-columns: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------- lyrics + karaoke */

.lyric-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lyric-tab {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.lyric-tab:hover { color: var(--ink); }
.lyric-tab.is-active { background: var(--gold); color: #17120a; }
.lyric-pane[hidden] { display: none; }

.karaoke-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 22px;
  align-items: start;
}
.karaoke-layout.no-video { grid-template-columns: minmax(0, 1fr); }
.karaoke-frame {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.karaoke-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.karaoke-hint { margin: 0 0 12px; color: var(--faint); font-size: 12.5px; }
.karaoke-script ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.karaoke-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
.karaoke-line:hover { background: rgba(255, 255, 255, .045); color: var(--ink); }
.karaoke-line .stamp { padding-top: 2px; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.karaoke-line.is-current { background: rgba(232, 182, 76, .12); color: var(--ink); }
.karaoke-line.is-current .stamp { color: var(--gold); }

@media (max-width: 860px) {
  .karaoke-layout { grid-template-columns: minmax(0, 1fr); }
  .karaoke-script ol { max-height: none; }
}
