/* ISEKAI - isekai-only streaming homepage, presented as a tilted desktop mockup. */

:root {
  --bg: #111111;
  --panel: #1a1a1a;
  --fg: #ffffff;
  --muted: #b3b3b3;
  --dim: #858585;
  --red: #e5202b;
  --ink-yellow: #ffd21f;
  --ink-red: #ee2b2b;
  --ink-blue: #2a6cff;
  --glass: rgba(20, 20, 20, 0.55);
  --glass-strong: rgba(17, 17, 17, 0.82);
  --hair: rgba(255, 255, 255, 0.12);
  --hair-soft: rgba(255, 255, 255, 0.07);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 64px;
  --card-w: 160px;
  --fog-tex: none;
  --fog-edge: linear-gradient(90deg, transparent, #000);
  --screen-w: 1440px;
  --screen-h: 900px;
  --s: 1;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
  background: #222 radial-gradient(1200px 700px at 50% 42vh, #343434 0%, #2a2a2a 55%, #222 100%) fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(255, 210, 31, 0.45); color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Stage: neutral dark gray room the mockup sits in ---------- */

.stage {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-content: start;
  padding: 24px 40px 72px;
}
.stage-bar {
  width: min(100%, 1240px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 36px;
  color: #8e8e8e;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.stage-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #d6d6d6;
  transition: background 0.2s ease-out, color 0.2s ease-out;
}
.stage-toggle:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.stage-toggle[aria-pressed="false"] { color: #8e8e8e; }
.stage-toggle .ico { width: 16px; height: 16px; }

.device-box {
  position: relative;
  width: calc(var(--screen-w) * var(--s));
  height: calc(var(--screen-h) * var(--s));
}
.device {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--screen-w);
  height: var(--screen-h);
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(160deg, #262626, #171717);
  border: 1px solid #3c3c3c;
  box-shadow:
    0 80px 140px -40px rgba(0, 0, 0, 0.85),
    0 36px 60px -24px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform-origin: center;
  transform: translate(-50%, -50%) perspective(2600px) rotateY(-9deg) rotateX(4deg) scale(var(--s));
}
.is-ready .device { transition: transform 0.9s var(--ease), box-shadow 0.9s var(--ease); }
.device::after {
  /* the lit edge of the frame */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.09), transparent 38%, transparent 62%, rgba(255, 255, 255, 0.04));
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude;
  padding: 1px;
}
.stage.is-flat .device {
  transform: translate(-50%, -50%) scale(var(--s));
  box-shadow:
    0 50px 100px -40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 11px;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
.page {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  scroll-behavior: smooth;
}
.page::-webkit-scrollbar { width: 10px; }
.page::-webkit-scrollbar-track { background: transparent; }
.page::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 999px; border: 3px solid var(--bg); }
.page::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

/* ---------- Navbar: transparent over the hero, glass controls ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 76px;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.55), transparent);
  transition: background 0.4s ease-out;
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hair-soft);
  opacity: 0;
  transition: opacity 0.4s ease-out;
  pointer-events: none;
}
.nav.is-scrolled::before { opacity: 1; }
.nav > * { position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; text-decoration: none; color: var(--fg); }
.logo { display: block; height: 44px; width: auto; transform-origin: 40% 60%; transition: transform 0.3s var(--ease); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); }
.brand:hover .logo { transform: rotate(-2deg) scale(1.05); }
.links { display: flex; gap: 28px; }
.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 0;
  transition: color 0.2s ease-out;
}
.links a:hover, .links a.is-active { color: var(--fg); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  width: 260px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--hair);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--muted);
  transition: border-color 0.2s ease-out, background 0.2s ease-out;
}
.search:focus-within { border-color: rgba(255, 255, 255, 0.28); background: rgba(20, 20, 20, 0.72); color: var(--fg); }
.search .ico { width: 18px; height: 18px; }
.search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--fg);
  font-size: 14px;
  caret-color: #fff;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 16px;
  background: var(--glass-strong);
  border: 1px solid var(--hair);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.search-results[hidden] { display: none; }
.sr {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 6px;
  border-radius: 10px;
  text-align: left;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.15s ease-out;
}
.sr:hover, .sr:focus-visible { background: rgba(255, 255, 255, 0.08); }
.sr img { width: 38px; height: 57px; object-fit: cover; border-radius: 6px; background: #222; }
.sr b { display: block; font-weight: 500; font-size: 14px; line-height: 1.25; }
.sr span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.sr-empty { padding: 14px 10px; color: var(--muted); font-size: 14px; }

.round-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--hair);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--fg);
  transition: background 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out;
}
.round-btn:hover { background: rgba(40, 40, 40, 0.7); border-color: rgba(255, 255, 255, 0.24); }
.round-btn:active { transform: scale(0.95); }
.badge {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 2px #141414;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--hair);
  transition: border-color 0.2s ease-out, transform 0.2s ease-out;
}
.avatar img { width: 100%; height: 100%; }
.avatar:hover { border-color: rgba(255, 255, 255, 0.4); }

/* ---------- Hero: three worlds, one sky ---------- */

.hero {
  position: relative;
  height: var(--screen-h);
  margin-top: -76px;
  overflow: hidden;
  background: var(--bg);
}
.worlds {
  position: absolute;
  inset: 0;
  display: flex;
}
.world {
  position: relative;
  flex: 26 1 0;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.7s var(--ease);
}
.world.is-focus { flex: 48 1 0; cursor: default; }
.world-img {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: var(--side, var(--pos, 50% 30%));
  filter: brightness(0.62) saturate(0.85) blur(1.4px);
  transform: scale(var(--side-scale, 1.02));
  transform-origin: 50% 100%;
  transition: filter 0.7s var(--ease), transform 1.4s var(--ease);
}
.world.is-focus .world-img { object-position: var(--pos, 50% 30%); filter: brightness(0.95) saturate(1) blur(0); transform: scale(1); }
.world:hover:not(.is-focus) .world-img { filter: brightness(0.78) saturate(0.95) blur(0.6px); }
.world-fog {
  position: absolute;
  inset: -10%;
  background: #111;
  opacity: 0.5;
  -webkit-mask-image: var(--fog-tex), var(--edge-mask);
  -webkit-mask-size: 1500px 1500px, 100% 100%;
  -webkit-mask-composite: source-in;
  mask-image: var(--fog-tex), var(--edge-mask);
  mask-size: 1500px 1500px, 100% 100%;
  mask-composite: intersect;
  animation: fog-drift 24s linear infinite alternate;
  pointer-events: none;
}
.world.is-focus .world-fog { opacity: 0.45; }
.world:nth-child(1) .world-fog { --edge-mask: linear-gradient(90deg, transparent 55%, #000 84%, transparent 100%); }
.world:nth-child(2) .world-fog { --edge-mask: linear-gradient(90deg, transparent 0%, #000 12%, transparent 34%, transparent 66%, #000 88%, transparent 100%); animation-delay: -9s; animation-direction: alternate-reverse; }
.world:nth-child(3) .world-fog { --edge-mask: linear-gradient(90deg, transparent 0%, #000 16%, transparent 45%); animation-delay: -16s; }
.world + .world { margin-left: -300px; }
.world + .world .world-img {
  /* fade fully in before the world underneath is clipped, so no edge survives */
  -webkit-mask-image: var(--fog-edge), linear-gradient(90deg, transparent 0, transparent 299px, #000 300px);
  -webkit-mask-size: 300px 100%, 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: source-over;
  mask-image: var(--fog-edge), linear-gradient(90deg, transparent 0, transparent 299px, #000 300px);
  mask-size: 300px 100%, 100% 100%;
  mask-repeat: no-repeat;
  mask-composite: add;
}
.world-seam {
  /* the fog bank over the overlap: deepest where the two worlds cross */
  position: absolute;
  top: 0;
  bottom: 0;
  width: 480px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(17, 17, 17, 0.3) 22%, rgba(17, 17, 17, 0.56) 45%, rgba(17, 17, 17, 0.3) 70%, transparent 100%);
}
.world-seam.l { left: 0; }
.world:first-child .world-seam { display: none; }
@keyframes fog-drift {
  from { -webkit-mask-position: 0 0, 0 0; mask-position: 0 0, 0 0; }
  to { -webkit-mask-position: 900px 240px, 0 0; mask-position: 900px 240px, 0 0; }
}
.world-label {
  position: absolute;
  left: 50%;
  bottom: 190px;
  transform: translate(-50%, 8px);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--hair);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.35s ease-out, transform 0.5s var(--ease);
  pointer-events: none;
}
.world:not(.is-focus):hover .world-label { opacity: 1; transform: translate(-50%, 0); }

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.88) 0%, rgba(17, 17, 17, 0.64) 14%, rgba(17, 17, 17, 0.4) 28%, rgba(17, 17, 17, 0.14) 42%, transparent 54%),
    linear-gradient(0deg, #111111 0%, rgba(17, 17, 17, 0.72) 11%, transparent 36%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.5) 0%, transparent 22%);
}
.hero-copy {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-52%);
  max-width: 560px;
  z-index: 2;
}
.hero-copy::before {
  /* a soft dark plate behind the copy only, so the shade can stay light elsewhere */
  content: '';
  position: absolute;
  inset: -90px -200px -90px -140px;
  z-index: -1;
  background: radial-gradient(ellipse 62% 55% at 34% 50%, rgba(17, 17, 17, 0.88) 0%, rgba(17, 17, 17, 0.62) 42%, rgba(17, 17, 17, 0.2) 72%, transparent 100%);
  pointer-events: none;
}
.hero-title {
  margin: 0;
  font-size: 56px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}
.hero-meta .score { color: var(--fg); display: inline-flex; align-items: center; gap: 4px; }
.score .ico { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.hero-synopsis {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 54ch;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6);
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.hero-copy > * { transition: opacity 0.45s ease-out, transform 0.6s var(--ease); }
.hero-copy.is-swapping > :not(.hero-dots) { opacity: 0; transform: translateY(8px); }

.btn {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px 0 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: transform 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.btn:active { transform: scale(0.97); }
.btn-play { background: #fff; color: #111; box-shadow: 0 12px 30px -12px rgba(255, 255, 255, 0.35); }
.btn-play .ico { fill: #111; stroke: none; width: 18px; height: 18px; }
.btn-play:hover { background: #e9e9e9; box-shadow: 0 16px 36px -12px rgba(255, 255, 255, 0.45); }
.btn-ghost {
  color: var(--fg);
  background: var(--glass);
  border: 1px solid var(--hair);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-ghost:hover { background: rgba(40, 40, 40, 0.7); border-color: rgba(255, 255, 255, 0.26); }
.btn-ghost .ico { width: 18px; height: 18px; }

.hero-dots { display: flex; gap: 0; margin-top: 28px; margin-left: -3px; }
.hero-dot {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.hero-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  transition: background 0.3s ease-out, box-shadow 0.5s var(--ease);
}
.hero-dot:hover::before { background: rgba(255, 255, 255, 0.55); }
.hero-dot[aria-selected="true"]::before { background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.16), 0 0 18px 4px rgba(255, 255, 255, 0.22); }

/* ---------- Rows ---------- */

.row, .timeline { scroll-margin-top: 84px; }
.rows { position: relative; z-index: 3; margin-top: -148px; padding-bottom: 20px; }
.row { margin: 0 0 36px; }
.row-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 0 var(--gutter);
  margin-bottom: 4px;
}
.row-head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.row-head p { margin: 0; color: var(--muted); font-size: 14px; }
.row-body { position: relative; }
.row-track {
  display: flex;
  gap: 16px;
  padding: 14px var(--gutter) 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 72px), transparent);
}
.row-track::-webkit-scrollbar { display: none; }
.row-arrow {
  position: absolute;
  top: 14px;
  height: calc(var(--card-w) * 1.5);
  width: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease-out, background 0.25s ease-out;
  z-index: 2;
}
.row-arrow.l { left: 0; background: linear-gradient(90deg, rgba(17, 17, 17, 0.9), transparent); }
.row-arrow.r { right: 0; background: linear-gradient(270deg, rgba(17, 17, 17, 0.9), transparent); }
.row-body:hover .row-arrow, .row-arrow:focus-visible { opacity: 1; }
.row-arrow .ico { width: 28px; height: 28px; stroke-width: 2.2; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.row-arrow[disabled] { opacity: 0 !important; pointer-events: none; }

.card {
  display: block;
  flex: none;
  width: var(--card-w);
  scroll-snap-align: start;
  text-align: left;
  color: var(--fg);
  text-decoration: none;
}
.card-art picture { display: block; width: 100%; height: 100%; }
.card-art {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #1f1f1f;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.75);
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out;
}
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.card:hover .card-art, .card:focus-visible .card-art {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 22px 40px -14px rgba(0, 0, 0, 0.85);
}
.card:focus-visible { outline: none; }
.card:focus-visible .card-art::after { box-shadow: inset 0 0 0 2px #fff; }
.tag {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.55);
  border: 1px solid var(--hair);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.card-title {
  margin: 10px 2px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-sub { margin: 2px 2px 0; color: var(--muted); font-size: 12px; }
.row-empty {
  margin: 0 var(--gutter);
  padding: 28px 24px;
  border: 1px dashed var(--hair);
  border-radius: 16px;
  color: var(--muted);
  font-size: 14px;
}
.row-empty b { color: var(--fg); font-weight: 500; }

/* ---------- Timeline ---------- */

.timeline { padding: 56px var(--gutter) 40px; }
.timeline-head { max-width: 720px; margin-bottom: 28px; }
.timeline-head h2 { margin: 0 0 10px; font-size: 34px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.timeline-sub { margin: 0; color: var(--muted); font-size: 15px; max-width: 62ch; }
.eras { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.era {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  line-height: 1;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out;
}
.era small { font-size: 12px; color: var(--dim); font-weight: 500; }
.era:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.24); }
.era[aria-selected="true"] { background: #fff; color: #111; border-color: #fff; }
.era[aria-selected="true"] small { color: #666; }
.era-note { margin: 18px 0 6px; color: var(--muted); font-size: 14px; max-width: 70ch; }

.year {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  padding: 26px 0 10px;
  border-top: 1px solid var(--hair-soft);
}
.year-label { position: sticky; top: 90px; align-self: start; }
.year-label b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.year-label b a { color: inherit; text-decoration: none; }
.year-label b a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.year-label span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.year-grid { display: flex; flex-wrap: wrap; gap: 18px 14px; }
.year-empty { color: var(--dim); font-size: 14px; padding: 8px 0; }
.mini { --card-w: 112px; width: var(--card-w); }
.mini .card-art { border-radius: 10px; }
.mini .card-title { font-size: 13px; }
.mini .card-sub { font-size: 11.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 2px 0; }
.chip {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.gap-years { color: var(--dim); font-size: 14px; padding: 16px 0 6px; border-top: 1px solid var(--hair-soft); }
.gap-years b { color: var(--muted); font-weight: 500; }

/* ---------- Footer ---------- */

.foot {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 36px var(--gutter) 56px;
  border-top: 1px solid var(--hair-soft);
  color: var(--muted);
}
.foot-brand { display: flex; align-items: center; gap: 18px; color: var(--fg); flex: none; }
.foot-logo { display: block; height: 108px; width: auto; }
.foot-tag { color: var(--dim); font-size: 13px; }
.foot-text { display: grid; gap: 12px; }
.foot-note { margin: 0; font-size: 13px; max-width: 72ch; line-height: 1.6; }
.foot-note a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--hair); }
.foot-note a:hover { border-color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--fg); }

/* ---------- Detail drawer ---------- */

.scrim {
  position: absolute;
  inset: 0;
  z-index: 29;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-out;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }
.detail {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 540px;
  z-index: 30;
  background: var(--panel);
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.9);
  transform: translateX(104%);
  transition: transform 0.55s var(--ease);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.detail.is-open { transform: none; }
.detail-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.detail-art {
  position: relative;
  height: 300px;
  background: #222 center / cover no-repeat;
}
.detail-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--panel) 0%, rgba(26, 26, 26, 0.3) 45%, transparent 100%);
}
.detail-art.is-poster { background-size: cover; background-position: 50% 20%; }
.detail-body { position: relative; padding: 0 32px 40px; margin-top: -70px; }
.detail-body h2 { margin: 0; font-size: 30px; line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.detail-native { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.detail-meta .score { color: var(--fg); display: inline-flex; align-items: center; gap: 4px; }
.detail-genres { margin: 10px 0 0; color: var(--dim); font-size: 13px; }
.detail-actions { display: flex; gap: 10px; margin: 22px 0 24px; }
.detail-actions .btn { height: 44px; font-size: 15px; }
.detail-synopsis { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.detail-note {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hair-soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.detail-note b { color: var(--fg); font-weight: 600; }
.detail-trailer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 2px;
  transition: border-color 0.2s ease-out;
}
.detail-trailer:hover { border-color: #fff; }
.detail-trailer-box { margin: 24px 0 14px; }

/* ---------- Trailer facade: thumbnail + play, iframe only after a click ---------- */

.trailer {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 720px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
}
.trailer-play { display: block; width: 100%; height: 100%; cursor: pointer; }
.trailer-play img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease), opacity 0.3s ease-out; }
.trailer-play:hover img { transform: scale(1.03); }
.play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.72);
  border: 1px solid var(--hair);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease), background 0.2s ease-out;
}
.play-badge .ico { width: 30px; height: 30px; fill: #fff; stroke: none; margin-left: 4px; }
.trailer-play:hover .play-badge { transform: scale(1.06); background: rgba(17, 17, 17, 0.85); }
.trailer-play:focus-visible { outline: none; }
.trailer-play:focus-visible .play-badge { box-shadow: 0 0 0 3px #fff; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.title-trailer { margin-top: 28px; max-width: 720px; }
.title-trailer h2 { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.title-trailer .source { margin: 10px 0 0; font-size: 13px; color: var(--dim); }
.title-trailer .source a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--hair); }
.title-trailer .source a:hover { border-color: #fff; }
.detail-trailer .ico { width: 16px; height: 16px; }

/* ---------- Toast ---------- */

.toast {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 40;
  transform: translate(-50%, 16px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--hair);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out, transform 0.5s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Capture mode (?full): the inner page becomes the document ---------- */

.stage.is-full, .stage.is-page { padding: 0; display: block; background: var(--bg); }
.stage.is-full .stage-bar, .stage.is-page .stage-bar { display: none; }
.stage.is-full .device-box, .stage.is-page .device-box { position: static; width: 100% !important; height: auto !important; margin: 0; }
.stage.is-full .device, .stage.is-page .device { position: static !important; width: var(--capture-w, 100%) !important; margin: 0; height: auto !important; padding: 0; border: 0; border-radius: 0; box-shadow: none; transform: none !important; }
.stage.is-full .device::after, .stage.is-page .device::after { display: none; }
.stage.is-full .screen, .stage.is-page .screen { height: auto; border-radius: 0; overflow: visible; }
.stage.is-full .page, .stage.is-page .page { height: auto; overflow: visible; overflow-x: clip; }
.stage.is-full .hero { height: 100vh; height: 100dvh; min-height: 780px; }
.stage.is-capture .hero { height: 900px; min-height: 0; }
body:has(.stage.is-full), body:has(.stage.is-page) { background: var(--bg); }
.stage.is-full .detail, .stage.is-full .scrim, .stage.is-page .detail, .stage.is-page .scrim { position: fixed; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .world-fog { animation: none; }
  .page { scroll-behavior: auto; }
  .world, .world-img, .device, .detail { transition-duration: 0.01s; }
}

/* ---------- Flat / phone layout: the mockup frame drops away ---------- */

@media (max-width: 900px) {
  :root { --gutter: 20px; --card-w: 128px; }
  .stage { padding: 0; display: block; background: var(--bg); }
  .stage-bar { display: none; }
  .device-box { width: auto; height: auto; }
  .device {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none !important;
  }
  .device::after { display: none; }
  .screen { height: 100dvh; border-radius: 0; }
  .hero { height: 100dvh; }
  .nav { gap: 16px; height: 64px; }
  .logo { height: 34px; }
  .foot-logo { height: 84px; }
  .foot-brand { flex-wrap: wrap; }
  .links { display: none; }
  .search { width: 44px; height: 40px; padding: 0 12px; }
  .search:focus-within { width: min(70vw, 300px); }
  .search input { opacity: 0; width: 0; }
  .search:focus-within input { opacity: 1; width: auto; }
  .search-results { width: min(86vw, 360px); }
  .worlds { flex-direction: column; }
  .world:not(.is-focus) { display: none; }
  .world + .world { margin-left: 0; margin-top: 0; }
  .world + .world .world-img { -webkit-mask-image: none; mask-image: none; }
  .world.is-focus .world-img { object-position: var(--mob, var(--pos, 50% 30%)); }
  .world-seam, .world-fog { display: none; }
  .world-label { display: none; }
  .hero-shade {
    background:
      linear-gradient(0deg, #111111 0%, rgba(17, 17, 17, 0.9) 30%, rgba(17, 17, 17, 0.4) 60%, transparent 85%),
      linear-gradient(180deg, rgba(17, 17, 17, 0.5) 0%, transparent 22%);
  }
  .hero-copy { left: var(--gutter); right: var(--gutter); top: auto; bottom: 150px; transform: none; max-width: none; }
  .hero-copy::before { display: none; }
  .hero-title { font-size: 38px; }
  .hero-synopsis { font-size: 14px; }
  .hero-actions { margin-top: 20px; }
  .hero-dots { margin-top: 16px; }
  .eyebrow { font-size: 11px; }
  .btn { height: 44px; font-size: 15px; padding: 0 20px 0 16px; }
  .rows { margin-top: -130px; }
  .row-arrow { display: none; }
  .timeline { padding: 32px var(--gutter) 24px; }
  .timeline-head h2 { font-size: 26px; }
  .year { grid-template-columns: 1fr; gap: 12px; }
  .year-label { position: static; display: flex; align-items: baseline; gap: 10px; }
  .year-label b { font-size: 26px; }
  .year-label span { margin: 0; }
  .mini { --card-w: 96px; }
  .foot { flex-direction: column; gap: 14px; padding-bottom: 40px; }
  .detail { width: 100%; }
  .detail-art { height: 240px; }
  .detail-body { padding: 0 var(--gutter) 40px; }
  .toast { white-space: normal; max-width: 86vw; text-align: center; border-radius: 18px; }
}

/* ---------- Page H1 eyebrow (homepage) ---------- */

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}
.dim { color: var(--dim); }

/* ---------- Sub-pages: title, year, about ---------- */

.stage.is-page .nav { position: sticky; top: 0; background: linear-gradient(180deg, rgba(17, 17, 17, 0.92), rgba(17, 17, 17, 0.6)); }
.stage.is-page main { position: relative; z-index: 0; min-height: 60vh; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px var(--gutter) 0; color: var(--dim); font-size: 13px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.kicker { margin: 0 0 10px; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.kicker a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--hair); }
.kicker a:hover { color: var(--fg); }

.title-page { position: relative; padding: 28px var(--gutter) 24px; }
.title-backdrop {
  position: absolute;
  left: 0; right: 0; top: -130px;
  height: 620px;
  z-index: -1;
  background-size: cover;
  background-position: 50% 30%;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  pointer-events: none;
}
.title-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 44px; align-items: start; }
.title-poster { position: sticky; top: 96px; }
.title-poster img, .title-poster picture { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9); background: #1f1f1f; }
.title-poster img { aspect-ratio: 2 / 3; object-fit: cover; }
.title-body h1 { margin: 0; font-size: 46px; line-height: 1.04; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; max-width: 22ch; }
.title-body .detail-meta { margin-top: 18px; }
.title-body .detail-meta small { color: var(--dim); font-weight: 500; margin-left: 4px; }
.title-body .detail-actions { margin: 24px 0 8px; }
.title-body .detail-actions .btn { height: 44px; font-size: 15px; }
.title-note, .title-synopsis { margin-top: 28px; max-width: 68ch; }
.title-note h2, .title-synopsis h2 { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.title-note { padding: 18px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--hair-soft); }
.title-note p, .title-synopsis p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.title-note b { color: var(--fg); font-weight: 600; }
.title-synopsis .source { margin-top: 10px; font-size: 13px; color: var(--dim); }
.title-synopsis .source a, .prose a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--hair); }
.title-synopsis .source a:hover, .prose a:hover { border-color: #fff; }
.row-head p a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--hair); }
.row-head p a:hover { color: var(--fg); }

.year-page { padding: 20px var(--gutter) 48px; }
.year-page h1 { margin: 0 0 12px; font-size: 44px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.year-page .timeline-head { max-width: 760px; margin-bottom: 18px; }
.year-nav { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 26px; }
.year-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hair); color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.year-nav a:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.3); }
.year-nav .ico { width: 16px; height: 16px; }
.year-grid.large { gap: 26px 16px; }
.year-list { margin-top: 44px; max-width: 76ch; }
.year-list h2 { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.year-list ol { margin: 0; padding: 0 0 0 1.4em; color: var(--muted); font-size: 15px; line-height: 1.7; }
.year-list time { display: inline-block; min-width: 5.2em; color: var(--dim); font-variant-numeric: tabular-nums; }
.year-list a { color: var(--fg); text-decoration: none; }
.year-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.year-list span { color: var(--dim); font-size: 13px; }

.prose { max-width: 74ch; padding: 20px var(--gutter) 64px; }
.prose h1 { margin: 0 0 18px; font-size: 42px; line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; }
.prose .lede { font-size: 18px; color: var(--fg); line-height: 1.55; }
.prose h2 { margin: 36px 0 10px; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--muted); font-size: 16px; line-height: 1.65; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose b { color: var(--fg); font-weight: 600; }

@media (max-width: 900px) {
  .crumbs { padding-top: 12px; }
  .title-page { padding-top: 16px; }
  .title-grid { grid-template-columns: 1fr; gap: 22px; }
  .title-poster { position: static; max-width: 200px; }
  .title-body h1 { font-size: 32px; }
  .title-backdrop { height: 420px; top: -64px; }
  .year-page h1, .prose h1 { font-size: 32px; }
  .prose h2 { font-size: 20px; }
  .year-grid.large { gap: 18px 12px; }
}
