/* Media-rich fan portal — rebuild-spec */
:root {
  --bg: #120e10;
  --ink: #f0e6ea;
  --muted: #a89098;
  --accent: #b00020;
  --card: #1c1418;
  --line: #3a242c;
  --radius: 14px;
  --sans: "Segoe UI", "Trebuchet MS", Candara, sans-serif;
  --display: Georgia, "Palatino Linotype", "Book Antiqua", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 8% -8%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 55%),
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 42%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand {
  font-family: var(--display); font-size: 1.12rem; color: var(--ink);
  text-decoration: none; letter-spacing: 0.02em; white-space: nowrap;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.hero {
  position: relative; min-height: min(86vh, 700px); margin: 0 -4vw;
  padding: 4.8rem 4vw 2.8rem; display: grid; align-content: end;
  isolation: isolate; overflow: hidden; animation: rise 0.85s ease both;
}
.hero-collage {
  position: absolute; inset: 0; z-index: -2; display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr; gap: 0.35rem;
}
.hero-collage img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05) contrast(1.05);
}
.hero-collage img:nth-child(1) { grid-row: 1 / 3; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.65) 48%, rgba(0,0,0,0.25) 100%), linear-gradient(180deg, transparent 35%, var(--bg) 100%);
}
.hero-kicker {
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(245,247,250,0.75); margin: 0 0 0.7rem;
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.hero-kicker span {
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px; padding: 0.25rem 0.55rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 500; margin: 0 0 0.35rem;
  font-size: clamp(2.3rem, 6.5vw, 4rem); line-height: 1.05; max-width: 14ch;
}
.hero-romaji { margin: 0 0 0.75rem; color: var(--accent); letter-spacing: 0.04em; }
.hero .lead { max-width: 46ch; margin: 0 0 1.2rem; color: rgba(245,247,250,0.82); }
.cta-group { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.btn {
  display: inline-flex; align-items: center; padding: 0.72rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--accent);
  color: #0b0d10; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 32%, transparent); color: inherit; }
.btn-ghost {
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  color: #f5f7fa;
  border-color: color-mix(in srgb, #f5f7fa 35%, transparent);
}
.section { padding: 2.6rem 0; }
.section h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem); margin: 0 0 0.7rem;
}
.section .sub { color: var(--muted); margin: 0 0 1.25rem; max-width: 62ch; }
.about-grid { display: grid; gap: 1.25rem; grid-template-columns: 1.45fr 1fr; }
.panel {
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem;
}
.panel p { margin: 0 0 0.9rem; color: var(--muted); }
.facts { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.facts li { margin: 0.4rem 0; }
.meta-grid { display: grid; gap: 0.7rem; }
.meta {
  padding: 0.9rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
}
.meta b {
  display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.2rem;
}
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem;
}
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gallery img { width: 100%; height: 210px; object-fit: cover; display: block; }
.gallery figcaption { font-size: 0.78rem; color: var(--muted); padding: 0.45rem 0.6rem; }
.trailer-embed {
  margin: 0 0 1.4rem; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--card);
}
.trailer-embed .frame { background: #000; }
.trailer-embed .trailer-body { padding: 0.95rem 1.1rem 1.1rem; }
.trailer-embed h3 { margin: 0 0 0.35rem; font-family: var(--display); font-weight: 500; font-size: 1.1rem; }
.trailer-embed p { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.92rem; }
.trailer-embed iframe { display: block; width: 100%; min-height: 360px; border: 0; }
.res-grid, .role-grid, .net-grid, .char-grid {
  display: grid; gap: 0.85rem;
}
.res-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.role-grid, .char-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.net-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.res-card, .role-card, .char-card {
  display: block; text-decoration: none; color: inherit;
  padding: 1rem 1.05rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  transition: border-color 0.2s ease, transform 0.25s ease;
}
.char-card { padding: 0; overflow: hidden; }
.char-card img { width: 100%; height: 220px; object-fit: cover; display: block; background: #111; }
.char-card .body { padding: 0.9rem 1rem 1.05rem; }
.res-card:hover, .role-card:hover, .char-card:hover {
  border-color: var(--accent); transform: translateY(-2px); color: inherit;
}
.res-card strong, .role-card strong, .char-card strong {
  display: block; margin-bottom: 0.3rem; font-family: var(--display); font-weight: 500;
}
.res-card span, .role-card span, .char-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.net-item {
  display: block; text-decoration: none; color: var(--ink);
  padding: 0.7rem 0.8rem; border-radius: 10px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 88%, transparent); font-size: 0.88rem;
}
.net-item:hover, .net-item.is-current { border-color: var(--accent); color: var(--ink); }
.page { padding: 2rem 0 3rem; }
.page h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.75rem, 3.4vw, 2.35rem); margin: 0 0 0.75rem;
}
.prose p { max-width: 70ch; color: var(--muted); }
.prose ul { color: var(--muted); max-width: 70ch; }
.char-hero {
  display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 1.25rem; align-items: start;
  margin: 1rem 0 1.5rem;
}
.char-hero img {
  width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; background: #111;
}
.site-footer {
  margin: 2rem 0 2.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.88rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.05rem; margin-bottom: 0.65rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .attr { max-width: 75ch; line-height: 1.5; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .about-grid, .char-hero, .hero-collage { grid-template-columns: 1fr; }
  .hero-collage { grid-template-rows: 180px 140px; }
  .hero-collage img:nth-child(1) { grid-row: auto; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .nav { justify-content: flex-start; }
  .hero { min-height: 70vh; padding-top: 3.6rem; }
  .trailer-embed iframe { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
