@font-face {
  font-family: "Inter";
  src: url("inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --text: #1f2328;
  --muted: #59636e;
  --border: #d1d9e0;
  --accent: #0969da;
  --accent-soft: #ddf4ff;
  --shadow: 0 1px 2px rgba(31, 35, 40, 0.06), 0 8px 24px rgba(31, 35, 40, 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #151b23;
    --text: #f0f6fc;
    --muted: #9198a1;
    --border: #3d444d;
    --accent: #4493f8;
    --accent-soft: #12263f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root.theater {
    --bg: #0d1117;
    --surface: #151b23;
    --text: #f0f6fc;
    --muted: #9198a1;
    --border: #3d444d;
    --accent: #4493f8;
    --accent-soft: #12263f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
    --bg: #0b1220;
    --surface: #151d2e;
    --border: #2a3550;
    --muted: #a9b6c9;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2 { line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.5rem 1rem; background: var(--surface); border-radius: 6px; }
.skip:focus { top: 1rem; }

.site-header { border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.header-link { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 0.4rem 0.75rem; border-radius: 6px; }
.header-link:hover { background: var(--surface); }
main.wrap { flex: 1; padding-top: 2.5rem; padding-bottom: 3rem; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; padding: 1.1rem 0; }
.site-footer p { margin-top: 0; margin-bottom: 0; }

main > h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 0.5rem; }
.lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
.directory { display: grid; gap: 1.5rem 2.5rem; margin-top: 2rem; align-items: start; }
.paths { min-width: 0; }
.roles { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.role { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; padding: 0.4rem 0.85rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; transition: border-color 0.15s ease, background-color 0.15s ease; }
.role strong { font-size: 0.95rem; font-weight: 600; }
.role span { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
a.role:hover { border-color: var(--accent); }
a.role[aria-current] { border-color: var(--accent); background: var(--accent-soft); }
.role-off { border-style: dashed; }
.role-off strong { color: var(--muted); font-weight: 500; }
@media (min-width: 820px) {
  .directory { grid-template-columns: 16.5rem minmax(0, 1fr); }
  .directory nav { position: sticky; top: 1rem; }
  .roles { flex-direction: column; flex-wrap: nowrap; gap: 0.25rem; }
  .role { border-radius: 8px; border-color: transparent; padding: 0.5rem 0.75rem; }
  a.role:hover { border-color: transparent; background: var(--surface); }
  a.role[aria-current] { border-color: transparent; background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
  .role-off { border-style: solid; }
}

.search { display: block; width: 100%; max-width: 26rem; font: inherit; padding: 0.65rem 0.9rem; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.path { margin-top: 1.5rem; scroll-margin-top: 1rem; }
.path h2 { font-size: 1.35rem; margin: 0 0 0.25rem; }
.hint { color: var(--muted); margin: 0; }
.videos { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-direction: column; gap: 0.75rem; }
.item { display: flex; align-items: center; gap: 1rem; padding: 0.65rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.num { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.results .num { display: none; }
.thumb { flex: none; width: 168px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #0b1220; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); }
.text { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.text strong { font-size: 1.05rem; font-weight: 650; }
.text span { color: var(--muted); font-size: 0.925rem; }
.dur { margin-left: auto; padding-right: 0.5rem; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); margin: 1rem 0 0; }
@media (max-width: 560px) {
  .thumb { width: 104px; }
  .dur { display: none; }
  .item { gap: 0.7rem; }
}

.theater main.wrap { padding-top: 1.25rem; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 0.925rem; }
.back:hover { color: var(--text); }
.video { width: min(100%, calc((100vh - 15rem) * 16 / 9)); min-width: min(100%, 20rem); margin: 1rem auto 0; border-radius: 12px; overflow: hidden; background: #05080d; box-shadow: var(--shadow); }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.below { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-top: 1.25rem; }
.below h1 { font-size: 1.35rem; margin: 0 0 0.15rem; }
.below .lead { font-size: 0.95rem; }
.next { display: inline-block; padding: 0.6rem 1.1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.next:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
