:root {
  --paper: #f4f0e6;
  --paper-deep: #e8dfce;
  --ink: #17231f;
  --muted: #68716a;
  --vermilion: #b83a24;
  --line: rgba(23, 35, 31, 0.18);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); line-height: 1.8; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; background: var(--ink); color: white; padding: .6rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { max-width: 1240px; margin: auto; padding: 1.35rem 2rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-family: var(--serif); font-weight: 700; letter-spacing: .04em; }
.brand-mark { display: grid; place-items: center; width: 2.35rem; aspect-ratio: 1; background: var(--vermilion); color: white; border-radius: 50%; font-size: 1.25rem; }
.site-header nav { display: flex; gap: 2rem; font-size: .9rem; font-weight: 700; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--vermilion); }
.hero { max-width: 1240px; margin: auto; padding: 5.5rem 2rem 2rem; }
.hero-kicker, .eyebrow { color: var(--vermilion); font: 700 .72rem/1 var(--sans); letter-spacing: .18em; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 7vw; align-items: end; padding: 2rem 0 4rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
h1 { font-size: clamp(3.4rem, 7.5vw, 7rem); line-height: 1.12; letter-spacing: -.055em; }
h1 em { color: var(--vermilion); font-style: normal; position: relative; }
h1 em::after { content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .05em; height: .08em; background: currentColor; opacity: .55; transform: rotate(-1.5deg); }
.hero-lead { margin: 2rem 0 0; font-family: var(--serif); font-size: clamp(1rem, 1.6vw, 1.25rem); }
.search-panel { background: var(--ink); color: white; padding: 2rem; box-shadow: 16px 16px 0 var(--paper-deep); }
.search-panel label { display: block; margin-bottom: .8rem; font-family: var(--serif); font-size: 1.1rem; }
.search-field { display: flex; border-bottom: 1px solid rgba(255,255,255,.5); }
.search-field input { min-width: 0; flex: 1; padding: .8rem 0; border: 0; outline: 0; background: transparent; color: white; font: inherit; }
.search-field input::placeholder { color: rgba(255,255,255,.55); }
.search-field button { border: 0; background: transparent; color: white; font: 700 1rem var(--sans); cursor: pointer; }
.search-panel > p { margin: .8rem 0 0; color: rgba(255,255,255,.6); font-size: .78rem; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 1.3rem 1.5rem; border-right: 1px solid var(--line); }
.stats div:last-child { border: 0; }
.stats dt { color: var(--muted); font-size: .75rem; letter-spacing: .1em; }
.stats dd { margin: 0; font: 500 clamp(1.8rem, 3vw, 2.6rem) var(--serif); }
.stats dd span { margin-left: .25rem; font: .75rem var(--sans); }
.section { max-width: 1240px; margin: auto; padding: 6rem 2rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 2rem; }
.section-heading h2 { margin-top: .55rem; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.faces-section { padding-bottom: 1rem; }
.face-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.face-gallery a { position: relative; min-height: 300px; overflow: hidden; background: var(--ink); color: white; text-decoration: none; }
.face-gallery img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: center top; opacity: .82; filter: saturate(.65); transition: transform .35s, opacity .35s, filter .35s; }
.face-gallery a:hover img { transform: scale(1.035); opacity: 1; filter: saturate(1); }
.face-gallery span { position: absolute; inset: auto 0 0; padding: 3.5rem 1.2rem 1.2rem; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.face-gallery strong, .face-gallery small { display: block; }
.face-gallery strong { font: 1.35rem var(--serif); }
.face-gallery small { margin-top: .25rem; color: rgba(255,255,255,.7); font-size: .68rem; }
.discovery-section { padding-bottom: 2rem; }
.discovery-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.discovery-grid > a { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; min-height: 210px; padding: 2rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-decoration: none; transition: background .2s, color .2s; }
.discovery-grid > a:hover { background: var(--ink); color: white; }
.discovery-grid > a > span { color: var(--vermilion); font: 500 2rem var(--serif); }
.discovery-grid p { margin: 0 0 .45rem; color: var(--vermilion); font-size: .65rem; font-weight: 700; letter-spacing: .12em; }
.discovery-grid h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.discovery-grid small { display: block; margin-top: .65rem; color: var(--muted); }
.discovery-grid > a:hover small { color: rgba(255,255,255,.7); }
.discovery-grid b { color: var(--vermilion); font-size: 1.4rem; }
.brush-number { color: var(--paper-deep); font: 700 7rem/1 var(--serif); }
.featured-card { position: relative; display: grid; grid-template-columns: .7fr 1.5fr 1fr; gap: 2rem; align-items: center; padding: 3rem; border: 1px solid var(--ink); text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.featured-card:hover { background: var(--ink); color: white; transform: translateY(-3px); }
.featured-year { font: 500 2.7rem/1 var(--serif); }
.featured-year span { display: block; margin-bottom: .4rem; font: .7rem var(--sans); letter-spacing: .14em; }
.featured-faces { display: flex; margin-bottom: 1.4rem; padding-left: .5rem; }
.featured-faces img { width: 4.5rem; aspect-ratio: 1; margin-left: -.5rem; border: 3px solid var(--paper); border-radius: 50%; object-fit: cover; object-position: center top; filter: saturate(.75); }
.featured-card:hover .featured-faces img { border-color: var(--ink); filter: saturate(1); }
.featured-copy > p:first-child { color: var(--vermilion); font-size: .75rem; font-weight: 700; }
.featured-copy h3 { font-size: clamp(2rem, 4.5vw, 4rem); }
.featured-copy > p:last-child { margin-bottom: 0; color: var(--muted); }
.featured-card:hover .featured-copy > p:last-child { color: rgba(255,255,255,.7); }
.featured-card dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; text-align: center; }
.featured-card dl div { border-left: 1px solid var(--line); }
.featured-card dt { font-size: .7rem; color: var(--muted); }
.featured-card dd { margin: 0; font: 2rem var(--serif); }
.card-arrow { position: absolute; right: 1.5rem; top: 1rem; color: var(--vermilion); font-size: 1.5rem; }
.eras-section { padding-top: 3rem; }
.text-link { font-size: .85rem; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.era-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.era-list a { display: flex; justify-content: space-between; align-items: baseline; padding: 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.era-list a:hover { background: var(--paper-deep); }
.era-list span { font: 1.2rem var(--serif); }
.era-list small { color: var(--muted); }
.site-footer { max-width: 1240px; margin: 4rem auto 0; padding: 2.5rem 2rem; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.page-shell { max-width: 1240px; min-height: 65vh; margin: auto; padding: 0 2rem 5rem; }
.page-intro { max-width: 780px; padding: 5rem 0 4rem; }
.page-intro h1, .detail-hero h1, .entity-hero h1 { margin: .8rem 0 1rem; font-size: clamp(3.4rem, 7vw, 6.5rem); }
.page-intro > p:last-child { max-width: 650px; color: var(--muted); font-family: var(--serif); font-size: 1.05rem; }
.record-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.record-card { min-height: 250px; padding: 1.8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s, color .2s; }
.record-card:hover { background: var(--ink); color: white; }
.record-card-top { display: flex; min-height: 2.6rem; align-items: center; justify-content: space-between; }
.cast-stack { display: flex; padding-left: .55rem; }
.cast-stack img { width: 2.6rem; aspect-ratio: 1; margin-left: -.55rem; border: 2px solid var(--paper); border-radius: 50%; object-fit: cover; object-position: center top; filter: saturate(.7); transition: transform .2s, filter .2s; }
.record-card:hover .cast-stack img { border-color: var(--ink); filter: saturate(1); }
.record-card:hover .cast-stack img:nth-child(odd) { transform: translateY(-.15rem); }
.record-card h2 { margin: 1.2rem 0 .6rem; font-size: 1.65rem; }
.record-card > p { min-height: 3.6em; color: var(--muted); font-size: .82rem; }
.record-card:hover > p { color: rgba(255,255,255,.65); }
.record-year { color: var(--vermilion); font: 700 .75rem var(--sans); letter-spacing: .12em; }
.record-card dl { display: flex; gap: 1.5rem; margin: 1.4rem 0 0; }
.record-card dl div { display: flex; align-items: baseline; gap: .35rem; }
.record-card dt { color: var(--muted); font-size: .7rem; }
.record-card dd { margin: 0; font: 1.4rem var(--serif); }
.breadcrumb { display: flex; gap: .7rem; padding-top: 2rem; color: var(--muted); font-size: .78rem; }
.breadcrumb a { text-underline-offset: .25em; }
.detail-hero { padding: 4rem 0; border-bottom: 1px solid var(--ink); }
.detail-hero.has-cast { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.detail-hero > p { color: var(--muted); }
.detail-hero-copy > p { color: var(--muted); }
.hero-cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.hero-cast a { position: relative; min-width: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink); color: white; text-decoration: none; }
.hero-cast img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.65); opacity: .85; transition: transform .25s, filter .25s, opacity .25s; }
.hero-cast a:hover img { transform: scale(1.04); filter: saturate(1); opacity: 1; }
.hero-cast span { position: absolute; inset: auto 0 0; padding: 2rem .55rem .5rem; background: linear-gradient(transparent, rgba(0,0,0,.86)); }
.hero-cast strong, .hero-cast small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-cast strong { font: .78rem var(--serif); }
.hero-cast small { color: rgba(255,255,255,.7); font-size: .55rem; }
.detail-facts { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); max-width: 720px; margin: 2.5rem 0 0; border: 1px solid var(--line); }
.detail-facts div { padding: 1rem 1.2rem; border-right: 1px solid var(--line); }
.detail-facts div:last-child { border: 0; }
.detail-facts dt { color: var(--muted); font-size: .68rem; }
.detail-facts dd { margin: 0; font: 1.6rem var(--serif); }
.date-range { font-size: .8rem; }
.hero-action { margin: 2rem 0 0; }
.hero-action .button-link { color: white; }
.hero-action span { margin-left: 1.4rem; }
.detail-section { padding: 5rem 0 2rem; }
.detail-section .section-heading > span { color: var(--muted); font-size: .8rem; }
.role-list { border-top: 1px solid var(--ink); }
.role-row { display: grid; grid-template-columns: minmax(200px, .8fr) 1.2fr; gap: 2rem; padding: 1.4rem 1rem; border-bottom: 1px solid var(--line); }
.role-row h3 { display: inline; margin-left: .75rem; font-size: 1.2rem; }
.role-row h3 a, .casting-list a, .appearance-list a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.role-row > div > p { margin: .2rem 0 0 3.65rem; color: var(--muted); font-size: .75rem; }
.role-rank { display: inline-block; width: 2.8rem; color: var(--vermilion); font-size: .68rem; font-weight: 700; }
.casting-list { display: flex; flex-wrap: wrap; gap: .8rem 2rem; }
.casting-list p { display: inline-flex; align-items: center; margin: 0; }
.casting-list small, .appearance-actor small { margin-left: .5rem; color: var(--muted); }
.source-link { text-align: right; }
.source-link a { text-underline-offset: .3em; }
.episode-preview { padding-bottom: 0; }
.episode-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.episode-preview-grid article { min-height: 160px; padding: 1.3rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.episode-preview-grid span { color: var(--vermilion); font-size: .7rem; font-weight: 700; }
.episode-preview-grid h3 { margin: .8rem 0 1.2rem; font-size: 1.05rem; }
.episode-preview-grid time, .episode-guide time { color: var(--muted); font-size: .72rem; }
.episode-hero { max-width: 900px; padding: 4.5rem 0 3.5rem; }
.episode-hero h1 { margin: .8rem 0 1.5rem; font-size: clamp(3rem, 7vw, 6rem); }
.episode-hero h1 small { display: block; margin-top: .75rem; color: var(--muted); font: 400 .24em var(--sans); letter-spacing: .18em; }
.episode-hero > p:last-child { max-width: 680px; color: var(--muted); font-family: var(--serif); }
.episode-guide { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.episode-guide article { display: grid; grid-template-columns: 5rem 1fr; gap: 1.2rem; align-items: center; min-height: 130px; padding: 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.episode-guide article.has-summary { align-items: start; }
.episode-number { display: flex; align-items: baseline; color: var(--vermilion); }
.episode-number strong { margin: 0 .12em; font: 500 2.6rem/1 var(--serif); }
.episode-number span { font-size: .62rem; font-weight: 700; }
.episode-guide h2 { margin-bottom: .35rem; font-size: 1.15rem; }
.episode-copy { min-width: 0; }
.episode-summary { margin-top: 1rem; border-top: 1px solid var(--line); }
.episode-summary > p { margin: .8rem 0 0; font-family: var(--serif); font-size: .9rem; line-height: 1.9; }
.summary-pending { margin: .8rem 0 0; color: var(--muted); font-size: .68rem; }
.episode-references { padding: 4rem 0 1rem; border-bottom: 1px solid var(--line); }
.episode-references h2 { margin: .5rem 0 1.2rem; font-size: 1.5rem; }
.episode-references ul { margin: 0; padding: 0; list-style: none; }
.episode-references li { padding: .7rem 0; border-top: 1px solid var(--line); font-size: .78rem; }
.episode-references a { overflow-wrap: anywhere; text-underline-offset: .25em; }
.actor-sort { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: 0 0 1.25rem; }
.directory-action { margin: -1.3rem 0 2rem; }
.directory-action .button-link span { margin-left: 1rem; }
.actor-sort > span { margin-right: .3rem; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.actor-sort button { padding: .62rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: 700 .72rem var(--sans); cursor: pointer; }
.actor-sort button:hover { border-color: var(--ink); }
.actor-sort button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }
.actor-sort button:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 2px; }
.name-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.name-grid > a { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1rem; align-items: center; min-height: 110px; padding: 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.name-grid > a:hover { background: var(--paper-deep); }
.name-grid h2 { font-size: 1.1rem; }
.name-grid p { margin: .2rem 0 0; color: var(--muted); font-size: .68rem; }
.name-mark { display: grid; place-items: center; width: 3rem; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; color: var(--vermilion); font: 1.25rem var(--serif); }
.name-thumbnail { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; object-position: center top; background: var(--paper-deep); }
.entity-hero { display: flex; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding: 4rem 0; border-bottom: 1px solid var(--ink); }
.entity-hero figure { width: clamp(9rem, 20vw, 15rem); flex: 0 0 auto; margin: 0; }
.entity-monogram { display: grid; place-items: center; width: clamp(9rem, 20vw, 15rem); aspect-ratio: 1; flex: 0 0 auto; background: var(--ink); color: var(--paper); border-radius: 50%; font: clamp(4rem, 9vw, 8rem)/1 var(--serif); }
.entity-monogram.actor { background: var(--vermilion); }
.portrait { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: center top; background: var(--paper-deep); }
.image-credit { margin: .7rem 0 0; color: var(--muted); font-size: .58rem; line-height: 1.4; overflow-wrap: anywhere; }
.image-credit a { text-underline-offset: .2em; }
.entity-hero p { margin: .2rem 0; color: var(--muted); }
.aliases { padding: 1.2rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.aliases strong { margin-right: 1.2rem; color: var(--ink); }
.appearance-list { border-top: 1px solid var(--ink); }
.appearance-list article { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; padding: 1.5rem; border-bottom: 1px solid var(--line); }
.appearance-list p { margin: 0; }
.appearance-drama { font: 1.15rem var(--serif); }
.appearance-drama span { margin-right: 1rem; color: var(--vermilion); font: .75rem var(--sans); }
.appearance-actor { display: flex; align-items: center; color: var(--muted); }
.entity-summary { max-width: 760px; margin: 2rem 0 0; padding: 1.2rem 1.4rem; border-left: 3px solid var(--vermilion); background: var(--paper-deep); color: var(--muted); font-family: var(--serif); }
.entity-summary strong { margin: 0 .15em; color: var(--ink); font-size: 1.1em; }
.ranking-note { display: flex; gap: 1.5rem; margin-bottom: 2rem; padding: 1rem 1.3rem; background: var(--paper-deep); font-size: .78rem; }
.ranking-note strong { flex: 0 0 auto; color: var(--vermilion); }
.ranking-note p { margin: 0; color: var(--muted); }
.ranking-list { margin: 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.ranking-list > li { display: grid; grid-template-columns: 5.5rem minmax(200px, .85fr) 1.3fr auto; gap: 1.5rem; align-items: center; min-height: 110px; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.ranking-list > li.top-rank { background: color-mix(in srgb, var(--paper-deep) 70%, transparent); }
.ranking-position { color: var(--vermilion); font: 500 2rem/1 var(--serif); text-align: center; }
.ranking-position small { margin: 0 .12rem; font: 700 .6rem var(--sans); }
.ranking-entity { display: flex; align-items: center; gap: 1rem; min-width: 0; text-decoration: none; }
.ranking-entity .portrait, .ranking-entity .entity-monogram { width: 4.2rem; flex: 0 0 4.2rem; font-size: 1.8rem; }
.ranking-entity strong, .ranking-entity small { display: block; }
.ranking-entity strong { font: 1.2rem var(--serif); }
.ranking-entity small { color: var(--muted); font-size: .65rem; }
.ranking-works { margin: 0; color: var(--muted); font-size: .72rem; }
.ranking-list dl { display: grid; grid-template-columns: repeat(2, 5.2rem); margin: 0; text-align: center; }
.ranking-list dl div { border-left: 1px solid var(--line); }
.ranking-list dt { color: var(--muted); font-size: .62rem; }
.ranking-list dd { margin: 0; font: 1.7rem var(--serif); }
.ranking-list dd small { margin-left: .15rem; font: .6rem var(--sans); }
.portrayal-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.portrayal-grid > a { display: grid; grid-template-columns: 5rem 1fr auto; gap: 1.2rem; align-items: center; min-height: 120px; padding: 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.portrayal-grid > a:hover { background: var(--paper-deep); }
.portrayal-grid .portrait, .portrayal-grid .entity-monogram { width: 5rem; font-size: 2rem; }
.portrayal-grid strong, .portrayal-grid small, .portrayal-grid em { display: block; }
.portrayal-grid strong { font: 1.25rem var(--serif); }
.portrayal-grid small { color: var(--vermilion); font-size: .68rem; font-weight: 700; }
.portrayal-grid em { margin-top: .25rem; overflow: hidden; color: var(--muted); font-size: .65rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.portrayal-grid b { color: var(--vermilion); }
.inline-avatar { width: 3rem; height: 3rem; margin-right: .7rem; border-radius: 50%; object-fit: cover; object-position: center top; background: var(--paper-deep); }
.empty-state { padding: 3rem; background: var(--paper-deep); color: var(--muted); text-align: center; }
.era-directory { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.era-directory a { min-height: 140px; padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.era-directory a:hover { background: var(--ink); color: white; }
.era-directory h2 { margin-bottom: 2rem; font-size: 1.4rem; }
.era-directory span { color: var(--muted); font-size: .76rem; }
.search-page-form { max-width: 820px; padding: 2rem; background: var(--ink); color: white; }
.search-page-form label { display: block; margin-bottom: .5rem; font-family: var(--serif); }
.search-page-form > div { display: flex; border-bottom: 1px solid rgba(255,255,255,.45); }
.search-page-form input { flex: 1; min-width: 0; padding: .9rem 0; border: 0; outline: 0; background: transparent; color: white; font: 1rem var(--sans); }
.search-page-form button { border: 0; background: transparent; color: white; font-weight: 700; cursor: pointer; }
.search-status { margin: 2rem 0 1rem; color: var(--muted); font-size: .8rem; }
.search-results { border-top: 1px solid var(--line); }
.search-results > a { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.search-results > a:hover { background: var(--paper-deep); }
.search-results img, .search-result-mark { width: 4rem; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: center top; }
.search-result-mark { display: grid; place-items: center; border: 1px solid var(--line); color: var(--vermilion); font: 1.25rem var(--serif); }
.search-results small { display: block; color: var(--vermilion); font-size: .68rem; font-weight: 700; }
.search-results h2 { font-size: 1.15rem; }
.search-results p { margin: 0; color: var(--muted); font-size: .75rem; }
.not-found { padding-top: 8rem; text-align: center; }
.not-found h1 { margin: 1rem 0 3rem; font-size: clamp(2.5rem, 6vw, 5rem); }
.button-link { display: inline-block; padding: .8rem 1.4rem; background: var(--ink); color: white; text-decoration: none; }

@media (max-width: 760px) {
  .site-header { padding: 1rem; }
  .brand span:last-child { font-size: .82rem; }
  .site-header nav { gap: .9rem; font-size: .76rem; }
  .site-header nav a:nth-child(2), .site-header nav a:nth-child(5) { display: none; }
  .hero { padding: 3.5rem 1rem 1rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; }
  h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 4rem 1rem; }
  .face-gallery { grid-template-columns: repeat(2, 1fr); }
  .face-gallery a, .face-gallery img { min-height: 240px; }
  .brush-number { display: none; }
  .featured-card { grid-template-columns: 1fr; padding: 2rem; }
  .discovery-grid { grid-template-columns: 1fr; }
  .discovery-grid > a { min-height: 170px; padding: 1.4rem; }
  .featured-faces img { width: 4rem; }
  .featured-card dl { border-top: 1px solid var(--line); padding-top: 1.5rem; }
  .era-list { grid-template-columns: repeat(2, 1fr); }
  .site-footer { margin-top: 2rem; padding: 2rem 1rem; display: block; }
  .page-shell { padding: 0 1rem 3rem; }
  .page-intro { padding: 3.5rem 0 2.5rem; }
  .page-intro h1, .detail-hero h1, .entity-hero h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .record-grid, .name-grid { grid-template-columns: 1fr; }
  .record-card { min-height: 210px; }
  .detail-facts { grid-template-columns: repeat(2, 1fr); }
  .detail-facts div:nth-child(2) { border-right: 0; }
  .detail-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-hero.has-cast { grid-template-columns: 1fr; gap: 2rem; }
  .hero-cast { max-width: 34rem; }
  .role-row, .appearance-list article { grid-template-columns: 1fr; gap: .7rem; }
  .ranking-list > li { grid-template-columns: 3.7rem 1fr auto; gap: .8rem; padding: 1rem .4rem; }
  .ranking-position { font-size: 1.5rem; }
  .ranking-entity .portrait, .ranking-entity .entity-monogram { width: 3.5rem; flex-basis: 3.5rem; }
  .ranking-works { display: none; }
  .ranking-list dl { grid-template-columns: 4.1rem; }
  .ranking-list dl div:nth-child(2) { display: none; }
  .portrayal-grid { grid-template-columns: 1fr; }
  .role-row { padding: 1.2rem 0; }
  .entity-hero { align-items: flex-start; gap: 1.5rem; }
  .entity-hero figure, .entity-monogram { width: 6.5rem; }
  .era-directory { grid-template-columns: repeat(2, 1fr); }
  .episode-preview-grid, .episode-guide { grid-template-columns: 1fr; }
  .episode-preview-grid article { min-height: 130px; }
  .episode-guide article { min-height: 110px; padding: 1rem; }
}
