:root {
  color-scheme: dark;
  --bg: #05070a;
  --ink: #f3ead8;
  --muted: #aeb8c8;
  --gold: #e2b76b;
  --blue: #79cfff;
  --line: rgba(226, 183, 107, 0.28);
  --panel: rgba(7, 10, 16, 0.86);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Fiction / comics shelf prototype */
.library-hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 5.8rem auto 0;
  min-height: 260px;
  border: 1px solid rgba(216, 191, 126, 0.24);
  border-radius: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.94), rgba(5, 8, 13, 0.54)),
    url("/assets/observation-archive-console@2x.png") center / cover;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.comics-library-hero {
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.92), rgba(5, 8, 13, 0.5)),
    url("/assets/mobius-nexus@2x.webp") center / cover;
}

.library-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.9rem);
  line-height: 0.98;
}

.library-page {
  display: grid;
  gap: 2rem;
}

.library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.1rem;
  align-items: start;
}

.library-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.library-section-head h2 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.cover-card {
  appearance: none;
  border: 1px solid rgba(216, 191, 126, 0.18);
  border-radius: 12px;
  background: rgba(7, 10, 16, 0.82);
  color: var(--ink);
  text-align: left;
  padding: 0.72rem;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.cover-card:hover,
.cover-card:focus-visible,
.cover-card.is-active {
  border-color: rgba(216, 191, 126, 0.72);
  background: rgba(19, 24, 34, 0.94);
  transform: translateY(-3px);
}

.cover-frame {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #10151f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-card strong {
  display: block;
  min-height: 2.55rem;
  margin-top: 0.7rem;
  font-size: 0.94rem;
  line-height: 1.25;
}

.cover-card small {
  display: inline-flex;
  margin-top: 0.45rem;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
}

.library-rank-panel {
  position: sticky;
  top: 5.5rem;
  border: 1px solid rgba(216, 191, 126, 0.18);
  border-radius: 14px;
  background: rgba(7, 10, 16, 0.78);
  padding: 1rem;
}

.library-rank-panel ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.library-rank-panel li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.library-rank-panel li span {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.admin-ready-note {
  margin-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 1rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-ready-note strong {
  color: var(--ink);
}

.reader-panel {
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: stretch;
  border: 1px solid rgba(216, 191, 126, 0.2);
  border-radius: 16px;
  padding: clamp(1rem, 3vw, 1.5rem);
  background:
    radial-gradient(circle at 22% 18%, rgba(216, 191, 126, 0.16), transparent 22rem),
    rgba(7, 10, 16, 0.88);
}

.reader-cover {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #10151f;
}

.reader-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reader-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.reader-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 4vw, 3.8rem);
  line-height: 1;
}

.reader-body {
  max-width: 720px;
  min-height: 130px;
  border-left: 2px solid rgba(216, 191, 126, 0.72);
  padding-left: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.mini-panel-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1rem 0;
}

.mini-panel-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 980px) {
  .library-layout {
    grid-template-columns: 1fr;
  }

  .library-rank-panel {
    position: static;
  }

  .cover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .library-hero {
    align-items: start;
    flex-direction: column;
    margin-top: 5.2rem;
    min-height: 220px;
  }

  .library-section-head {
    align-items: start;
    flex-direction: column;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .cover-card {
    padding: 0.55rem;
  }

  .reader-panel {
    grid-template-columns: 1fr;
  }

  .reader-cover {
    max-width: 240px;
  }

  .mini-panel-row {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 72% 0%, rgba(92, 125, 169, 0.2), transparent 34%),
    linear-gradient(180deg, #05070a 0%, #090d14 52%, #05070a 100%);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #05070a;
  border-bottom: 1px solid rgba(226, 183, 107, 0.22);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 4, 8, 0.82), rgba(2, 4, 8, 0.18) 46%, rgba(2, 4, 8, 0.34) 100%),
    linear-gradient(180deg, rgba(2, 4, 8, 0.12) 0%, rgba(2, 4, 8, 0.2) 68%, rgba(2, 4, 8, 0.78) 100%),
    radial-gradient(circle at 42% 78%, rgba(226, 183, 107, 0.15), transparent 18%);
}

.hero-reference {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
}

.hero-nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 4vw, 72px) 0;
}

.hero-brand,
.hero-nav-links {
  display: flex;
  align-items: center;
}

.hero-brand {
  gap: 12px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.hero-nav-links {
  gap: clamp(14px, 2.2vw, 38px);
}

.hero-nav-links a {
  color: #f4efe2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.video-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
  line-height: 1;
}

.video-nav-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  z-index: 30;
  width: 220px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(226, 183, 107, 0.22);
  border-radius: 8px;
  background: rgba(3, 6, 10, 0.96);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav .video-nav > a,
.hero-nav-links .video-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 1em;
}

.video-nav:hover .video-nav-menu,
.video-nav:focus-within .video-nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.video-nav-menu a {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: none;
}

.video-nav-menu a:hover,
.video-nav-menu a:focus-visible {
  background: rgba(226, 183, 107, 0.12);
  color: var(--gold);
}

.hero-nav-links .language-switch,
.site-nav .language-switch {
  border: 1px solid rgba(226, 183, 107, 0.38);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--gold);
  background: rgba(7, 10, 16, 0.58);
}

.hero-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(440px, 0.78fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "content ."
    "stats gates";
  gap: clamp(22px, 3vw, 46px) clamp(30px, 5vw, 80px);
  min-height: calc(100vh - 78px);
  padding: clamp(48px, 7vh, 82px) clamp(20px, 5vw, 82px) clamp(44px, 6vh, 76px);
}

.hero-content {
  grid-area: content;
  width: min(610px, calc(100% - 40px));
  align-self: center;
  margin: 0;
}

.hero-content h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 7.4vw, 114px);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.62);
}

.hero-tagline {
  max-width: 560px;
  margin-bottom: 14px;
  color: #e8c987;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 31px);
  font-weight: 700;
  line-height: 1.2;
}

.hero-summary {
  max-width: 520px;
  margin-bottom: 24px;
  color: #d8e1ed;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.command-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid rgba(121, 207, 255, 0.34);
  border-radius: 2px;
  background: rgba(7, 13, 22, 0.66);
  color: #f4efe2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  text-decoration: none;
}

.command-button.primary {
  border-color: rgba(226, 183, 107, 0.78);
  background: linear-gradient(135deg, rgba(226, 183, 107, 0.58), rgba(69, 43, 18, 0.72));
}

.hero-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: clamp(12px, 2vw, 34px);
  width: min(610px, calc(100% - 40px));
  margin: 0;
  align-self: end;
}

.hero-stats div {
  min-width: 0;
}

.hero-stats dt {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: #d5deed;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-gate-strip {
  grid-area: gates;
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 12px;
  width: min(610px, 100%);
  align-self: end;
  justify-self: end;
}

.hero-gate-strip a {
  position: relative;
  min-height: clamp(116px, 16vh, 152px);
  overflow: hidden;
  border: 1px solid rgba(226, 183, 107, 0.44);
  border-radius: 4px;
  color: #f4efe2;
  text-decoration: none;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.44);
}

.hero-gate-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero-gate-strip a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 6, 10, 0.04), rgba(3, 6, 10, 0.82));
}

.hero-gate-strip span {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
  bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.1;
}

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

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 14px;
  width: auto;
  height: auto;
  transform: translateX(-50%);
  color: rgba(244, 239, 226, 0.78);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.archive {
  position: relative;
  z-index: 1;
}

.section-band {
  padding: clamp(56px, 7vw, 92px) clamp(22px, 5vw, 72px);
  border-bottom: 1px solid rgba(174, 184, 200, 0.14);
}

.gateway-strip {
  padding: 26px clamp(18px, 5vw, 72px) clamp(44px, 5vw, 68px);
  border-bottom: 1px solid rgba(174, 184, 200, 0.14);
}

.world-band {
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.9), rgba(6, 11, 18, 0.74)),
    url("/assets/mobius-nexus.webp") center / cover fixed;
}

.archive-band {
  background:
    linear-gradient(180deg, rgba(6, 9, 14, 0.96), rgba(7, 12, 19, 0.9)),
    url("/assets/scenes/nexus-1.jpg") center / cover fixed;
}

.create-band {
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.95), rgba(8, 11, 18, 0.7)),
    url("/assets/scenes/abyss-1.jpg") center / cover;
}

.section-head {
  width: min(920px, 100%);
  margin-bottom: 28px;
}

.section-head.compact {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 600;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.2;
}

p {
  color: #d5deed;
  line-height: 1.72;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.concept-grid article,
.concept-link,
.featured-district,
.archive-grid article {
  border: 1px solid rgba(226, 183, 107, 0.2);
  background: rgba(5, 8, 13, 0.78);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.concept-link {
  display: block;
  min-height: 430px;
  color: inherit;
  text-decoration: none;
}

.concept-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-bottom: 1px solid rgba(226, 183, 107, 0.18);
}

.concept-grid div,
.archive-grid article {
  padding: 18px;
}

.concept-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.district-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.featured-district {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(260px, 0.38fr);
  min-height: 390px;
  color: inherit;
  text-decoration: none;
}

.featured-district img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.featured-district div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.district-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.district-list a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 14px;
  border: 1px solid rgba(121, 207, 255, 0.17);
  background: rgba(9, 14, 22, 0.72);
  color: #dce8f8;
  text-decoration: none;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.archive-grid article {
  min-height: 220px;
}

@media (max-width: 1100px) {
  .hero {
    min-height: 980px;
  }

  .hero-reference {
    object-position: 56% top;
  }

  .hero-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "content"
      "stats"
      "gates";
    min-height: auto;
    padding-top: 72px;
  }

  .hero-content {
    align-self: start;
  }

  .hero-gate-strip {
    justify-self: start;
    width: min(760px, 100%);
  }

  .concept-grid,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .district-layout,
  .featured-district {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1101px) and (max-height: 820px) {
  .hero-nav {
    padding-top: 18px;
  }

  .hero-brand img {
    width: 46px;
    height: 46px;
  }

  .hero-main {
    min-height: calc(100vh - 64px);
    padding-top: 28px;
    padding-bottom: 34px;
    gap: 18px clamp(28px, 4vw, 64px);
  }

  .hero-content h1 {
    font-size: clamp(48px, 6.4vw, 84px);
  }

  .hero-tagline {
    font-size: clamp(18px, 1.75vw, 25px);
  }

  .hero-summary {
    max-width: 480px;
    margin-bottom: 16px;
    line-height: 1.48;
  }

  .command-button {
    min-height: 42px;
  }

  .hero-stats dt {
    font-size: clamp(26px, 2.6vw, 38px);
  }

  .hero-gate-strip a {
    min-height: 104px;
  }
}

@media (max-width: 720px) {
  .hero {
    aspect-ratio: auto;
    min-height: auto;
    padding-bottom: 34px;
  }

  .hero-reference {
    height: 100%;
    min-height: 0;
    object-position: 58% top;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(2, 4, 8, 0.64), rgba(2, 4, 8, 0.42) 34%, rgba(2, 4, 8, 0.9) 100%),
      linear-gradient(90deg, rgba(2, 4, 8, 0.82), rgba(2, 4, 8, 0.28));
  }

  .hero-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }

  .hero-brand img {
    width: 42px;
    height: 42px;
  }

  .hero-brand span {
    font-size: 13px;
  }

  .hero-nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
  }

  .hero-nav-links a {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(226, 183, 107, 0.26);
    background: rgba(4, 8, 13, 0.56);
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .hero-main {
    display: block;
    min-height: auto;
    padding: 42px 18px 0;
  }

  .hero-content {
    width: auto;
    margin: 0;
  }

  .hero-content h1 {
    max-width: 360px;
    font-size: clamp(44px, 15vw, 72px);
  }

  .hero-summary {
    max-width: 420px;
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .command-button {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .hero-stats,
  .hero-gate-strip {
    width: auto;
    margin: 28px 0 0;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(226, 183, 107, 0.24);
  }

  .hero-gate-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-gate-strip a {
    min-height: 136px;
  }

  .scroll-cue {
    position: relative;
    left: auto;
    bottom: auto;
    display: inline-block;
    margin: 24px 18px 0;
    transform: none;
  }

  .section-band {
    padding: 44px 18px;
  }

  .concept-grid,
  .archive-grid,
  .district-list {
    grid-template-columns: 1fr;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(226, 183, 107, 0.24);
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(18px);
}

.site-brand {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  color: #e7dfcf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.site-nav a {
  text-decoration: none;
}

.page-hero {
  min-height: clamp(320px, 42vh, 420px);
  display: grid;
  align-items: end;
  padding: clamp(74px, 8vw, 120px) clamp(22px, 5vw, 72px) clamp(34px, 5vw, 66px);
  border-bottom: 1px solid rgba(226, 183, 107, 0.18);
  background:
    linear-gradient(90deg, rgba(4, 6, 10, 0.9), rgba(4, 6, 10, 0.34)),
    var(--page-bg, url("/assets/mobius-nexus.png")) center / cover;
}

.page-hero-content {
  width: min(860px, 100%);
}

.page-hero h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5.2vw, 74px);
  line-height: 1;
  font-weight: 600;
}

.page-hero p {
  width: min(640px, 100%);
  font-size: clamp(15px, 1.4vw, 18px);
}

.video-directory-hero {
  min-height: clamp(210px, 28vh, 280px);
  padding-top: clamp(68px, 7vw, 92px);
  padding-bottom: clamp(22px, 3vw, 34px);
  background-position: center 42%;
}

.video-directory-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4.2vw, 58px);
}

.video-directory-hero p {
  margin-bottom: 0;
}

.page-main {
  padding: clamp(42px, 6vw, 78px) clamp(18px, 5vw, 72px) 90px;
}

.video-directory-main {
  padding-top: clamp(26px, 4vw, 42px);
}

.video-console-page {
  min-height: calc(100vh - 74px);
  padding: clamp(14px, 2vw, 26px) clamp(14px, 2.4vw, 34px) clamp(18px, 2.8vw, 36px);
  background:
    radial-gradient(circle at 52% 16%, rgba(78, 142, 172, 0.16), transparent 42%),
    radial-gradient(circle at 18% 84%, rgba(226, 183, 107, 0.1), transparent 34%),
    #02060a;
}

.video-hub {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 150px);
  display: grid;
  gap: clamp(26px, 4vw, 50px);
  align-content: start;
  border: 1px solid rgba(226, 183, 107, 0.24);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 48px);
  background:
    linear-gradient(180deg, rgba(2, 6, 10, 0.62), rgba(2, 6, 10, 0.96)),
    url("/assets/video-archive-hero-v2.webp") center / cover no-repeat;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.video-hub-copy {
  width: min(820px, 100%);
  position: relative;
  z-index: 1;
}

.video-hub-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 7vw, 6.8rem);
  line-height: 0.95;
}

.video-hub-copy p:last-child {
  width: min(620px, 100%);
  color: #c9d4e1;
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.video-category-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.video-category-card {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  border: 1px solid rgba(226, 183, 107, 0.22);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(5, 9, 14, 0.78);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.video-category-card:hover,
.video-category-card:focus-visible {
  border-color: rgba(226, 183, 107, 0.78);
  background:
    radial-gradient(circle at 50% 0, rgba(226, 183, 107, 0.16), transparent 64%),
    rgba(8, 13, 20, 0.92);
  transform: translateY(-4px);
}

.video-category-card small {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.video-category-card h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.video-category-card strong {
  min-height: 1.2rem;
  overflow: hidden;
  color: #c9d4e1;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.district-video-section {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.video-console {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(226, 183, 107, 0.28);
  background: #02060a;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(128, 211, 232, 0.08);
}

.video-console::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 10, 0.44), rgba(3, 6, 10, 0.04) 34%, rgba(3, 6, 10, 0.02) 66%, rgba(3, 6, 10, 0.34)),
    linear-gradient(180deg, rgba(3, 6, 10, 0.02), rgba(3, 6, 10, 0.06) 58%, rgba(3, 6, 10, 0.2)),
    url("/assets/video-archive-hero-v2.webp") center / cover no-repeat;
  filter: saturate(1.18) contrast(1.12) brightness(1.16);
}

.video-console::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 100% 8px,
    radial-gradient(circle at 50% 54%, transparent 0 42%, rgba(2, 6, 10, 0.2) 84%),
    linear-gradient(180deg, transparent 0 70%, rgba(2, 6, 10, 0.32));
}

.video-console-copy {
  position: relative;
  z-index: 2;
  width: min(330px, calc(100% - 32px));
  margin: clamp(18px, 3vw, 42px) 0 0 clamp(18px, 3vw, 42px);
  padding: 16px 18px 18px;
  border-left: 1px solid rgba(226, 183, 107, 0.5);
  background: linear-gradient(90deg, rgba(2, 6, 10, 0.7), rgba(2, 6, 10, 0.08));
}

.video-console-copy h1 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.6vw, 40px);
  line-height: 1;
}

.video-console-copy p:last-child {
  color: #c9d4e1;
  font-size: 14px;
}

.district-video-gate-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  padding: 0;
  perspective: 1500px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.district-video-gate-grid.is-directory {
  position: static;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  perspective: none;
  transform-style: flat;
  pointer-events: auto;
}

.district-video-gate-grid.is-directory::before {
  display: none;
}

.district-video-gate-grid.is-directory .district-video-gate {
  position: relative;
  inset: auto;
  width: auto;
  --gate-y: 0;
  --gate-ry: 0deg;
  --gate-rz: 0deg;
  --gate-scale: 1;
}

.district-video-gate-grid::before {
  content: "";
  position: absolute;
  left: clamp(20px, 3vw, 54px);
  right: clamp(20px, 3vw, 54px);
  bottom: clamp(34px, 4.4vw, 70px);
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(226, 183, 107, 0.72), transparent),
    linear-gradient(90deg, transparent, rgba(128, 211, 232, 0.4), transparent);
  box-shadow: 0 0 22px rgba(226, 183, 107, 0.34);
}

.district-video-gate {
  position: absolute;
  width: clamp(150px, 11vw, 214px);
  aspect-ratio: 16 / 9.7;
  min-height: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(226, 183, 107, 0.44);
  border-radius: 16px;
  color: var(--paper);
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(8, 14, 22, 0.62), rgba(3, 6, 10, 0.26)),
    #03060a;
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(128, 211, 232, 0.09),
    inset 0 0 30px rgba(128, 211, 232, 0.08);
  transform: translateY(var(--gate-y, 0)) rotateY(var(--gate-ry, 0)) rotateZ(var(--gate-rz, 0)) scale(var(--gate-scale, 1));
  transform-origin: center bottom;
  transition: border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
  pointer-events: auto;
}

.district-video-gate:hover {
  border-color: rgba(226, 183, 107, 0.92);
  transform: translateY(calc(var(--gate-y, 0) - 10px)) rotateY(var(--gate-ry, 0)) rotateZ(0deg) scale(calc(var(--gate-scale, 1) + 0.04));
  filter: brightness(1.12);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(226, 183, 107, 0.24),
    inset 0 0 34px rgba(128, 211, 232, 0.12);
}

.district-video-gate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  opacity: 0.98;
  filter: saturate(0.96) contrast(1.08);
}

.district-video-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 6, 10, 0.02), rgba(3, 6, 10, 0.16) 42%, rgba(3, 6, 10, 0.8)),
    linear-gradient(90deg, rgba(226, 183, 107, 0.1), transparent 28%, rgba(128, 211, 232, 0.08));
  border-radius: inherit;
}

.district-video-gate::before {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 1;
  border: 1px solid rgba(244, 230, 198, 0.16);
  border-radius: 12px;
  pointer-events: none;
}

.district-video-gate h2,
.district-video-gate small,
.district-video-gate strong {
  position: absolute;
  z-index: 2;
  display: block;
  margin-inline: 12px;
}

.district-video-gate h2 {
  left: 0;
  right: 0;
  bottom: 43px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(13px, 1vw, 18px);
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.82);
}

.district-video-gate small {
  left: 0;
  bottom: 25px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.district-video-gate strong {
  left: 0;
  right: 0;
  bottom: 9px;
  overflow: hidden;
  color: #f4efe2;
  font-size: 9px;
  opacity: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 160ms ease;
}

.district-video-gate:hover strong {
  opacity: 0.82;
}

.district-video-gate:nth-child(1) {
  left: 24%;
  top: 6%;
  --gate-y: 0;
  --gate-ry: -18deg;
  --gate-rz: -1.5deg;
  --gate-scale: 1.04;
}

.district-video-gate:nth-child(2) {
  left: 33%;
  top: 23%;
  width: clamp(138px, 10vw, 190px);
  --gate-y: 0;
  --gate-ry: -13deg;
  --gate-rz: 0.8deg;
}

.district-video-gate:nth-child(3) {
  left: 17%;
  top: 42%;
  --gate-y: 0;
  --gate-ry: -9deg;
  --gate-rz: -0.6deg;
  --gate-scale: 1.03;
}

.district-video-gate:nth-child(4) {
  left: 42%;
  bottom: 7%;
  width: clamp(164px, 12.4vw, 240px);
  --gate-y: 0;
  --gate-ry: -5deg;
  --gate-rz: 0.7deg;
}

.district-video-gate:nth-child(5) {
  right: 24%;
  top: 9%;
  --gate-y: 0;
  --gate-scale: 1.08;
}

.district-video-gate:nth-child(6) {
  right: 9%;
  top: 15%;
  --gate-y: 0;
  --gate-ry: 5deg;
  --gate-rz: -0.7deg;
}

.district-video-gate:nth-child(7) {
  right: 15%;
  top: 43%;
  --gate-y: 0;
  --gate-ry: 9deg;
  --gate-rz: 0.6deg;
  --gate-scale: 1.03;
}

.district-video-gate:nth-child(8) {
  left: 7%;
  bottom: 7%;
  --gate-y: 0;
  --gate-ry: 13deg;
  --gate-rz: -0.8deg;
}

.district-video-gate:nth-child(9) {
  right: 7%;
  bottom: 7%;
  --gate-y: 0;
  --gate-ry: 18deg;
  --gate-rz: 1.5deg;
  --gate-scale: 1.04;
}

.video-gate-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.video-gate {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(226, 183, 107, 0.28);
  background:
    linear-gradient(145deg, rgba(13, 18, 26, 0.88), rgba(5, 8, 13, 0.72)),
    radial-gradient(circle at 80% 12%, rgba(121, 207, 255, 0.14), transparent 30%);
  color: var(--paper);
  padding: 12px;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.video-gate:hover {
  border-color: rgba(226, 183, 107, 0.68);
  background:
    linear-gradient(145deg, rgba(26, 25, 24, 0.94), rgba(6, 10, 16, 0.8)),
    radial-gradient(circle at 80% 12%, rgba(226, 183, 107, 0.2), transparent 34%);
  transform: translateY(-3px);
}

.video-gate span,
.video-gate small {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-gate h2 {
  margin: 8px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.18vw, 20px);
  line-height: 1.08;
}

.video-gate p {
  margin: 0 0 10px;
  color: #b8c4d2;
  font-size: 11px;
  line-height: 1.42;
}

.video-gate strong {
  display: block;
  min-height: 28px;
  color: #f4efe2;
  font-size: 11px;
  font-weight: 600;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.page-card,
.wide-panel {
  border: 1px solid rgba(226, 183, 107, 0.2);
  background: rgba(7, 11, 17, 0.78);
  padding: 22px;
}

.archive-entry-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.archive-entry-card:hover {
  border-color: rgba(226, 183, 107, 0.5);
  background: rgba(18, 24, 34, 0.9);
  transform: translateY(-2px);
}

.page-card img,
.page-card video,
.wide-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 18px;
  border: 1px solid rgba(226, 183, 107, 0.16);
  background: #03060a;
}

.video-library {
  margin: 24px 0 32px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  min-width: 0;
  border: 1px solid rgba(226, 183, 107, 0.22);
  background: rgba(4, 8, 13, 0.86);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #03060a;
}

.video-card-body {
  padding: 18px;
}

.video-card-body h3 {
  margin: 0 0 10px;
}

.video-card-body p {
  margin-bottom: 0;
}

.streaming-library {
  position: relative;
  display: grid;
  gap: 18px;
}

.streaming-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 420px) auto;
  gap: 16px;
  align-items: end;
}

.streaming-toolbar h2,
.streaming-shelf-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.streaming-search {
  display: grid;
  gap: 7px;
  color: #9fb1c5;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.streaming-search input {
  min-height: 42px;
  border: 1px solid rgba(121, 207, 255, 0.24);
  border-radius: 999px;
  background: rgba(5, 9, 14, 0.9);
  color: var(--paper);
  padding: 0 16px;
  font: inherit;
  outline: none;
}

.streaming-search input:focus {
  border-color: rgba(226, 183, 107, 0.72);
  box-shadow: 0 0 0 3px rgba(226, 183, 107, 0.1);
}

.streaming-count {
  align-self: center;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.streaming-shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.streaming-shelf-head p,
.streaming-empty {
  margin: 0;
  color: #9fb1c5;
}

.video-menu-list.streaming-poster-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 14px;
}

.video-menu-card {
  min-width: 0;
  display: grid;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--paper);
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.video-menu-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(121, 207, 255, 0.2);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 0, rgba(121, 207, 255, 0.18), transparent 62%),
    #03060a;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.video-menu-thumb video,
.video-menu-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.88;
}

.video-menu-thumb i {
  position: absolute;
  right: 10px;
  bottom: 9px;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff8e8;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.1em;
  padding: 0 10px;
  text-transform: uppercase;
}

.video-menu-card:hover .video-menu-thumb,
.video-menu-card:focus-visible .video-menu-thumb,
.video-menu-card.active .video-menu-thumb {
  border-color: rgba(226, 183, 107, 0.76);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  transform: scale(1.035);
}

.video-menu-meta,
.video-menu-card small {
  display: block;
  color: #9fb1c5;
  font-size: 12px;
}

.video-menu-card strong {
  display: block;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-menu-card small {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-watch-modal[hidden] {
  display: none;
}

.video-watch-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 72px clamp(16px, 4vw, 56px) 28px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(14px);
}

.video-watch-shell {
  position: relative;
  width: min(1180px, 100%);
  max-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
  overflow: hidden;
  border: 1px solid rgba(226, 183, 107, 0.3);
  border-radius: 8px;
  background: #03060a;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.video-watch-shell video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-watch-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3vw, 42px);
  background:
    radial-gradient(circle at 0 0, rgba(226, 183, 107, 0.12), transparent 44%),
    rgba(5, 8, 12, 0.96);
}

.video-watch-copy h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.98;
}

.video-watch-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: var(--paper);
  padding: 0 13px;
  cursor: pointer;
}

.channel-gate-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.channel-gate {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(121, 207, 255, 0.2);
  background:
    radial-gradient(circle at 50% 0, rgba(121, 207, 255, 0.14), transparent 58%),
    rgba(6, 10, 16, 0.86);
  color: var(--paper);
  padding: 11px;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.channel-gate:hover,
.channel-gate.active {
  border-color: rgba(226, 183, 107, 0.72);
  background:
    radial-gradient(circle at 50% 0, rgba(226, 183, 107, 0.2), transparent 58%),
    rgba(12, 14, 18, 0.92);
}

.channel-gate strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(13px, 1vw, 17px);
  line-height: 1.05;
}

.wide-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(280px, 0.44fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 16px;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 0 10px;
  border: 1px solid rgba(121, 207, 255, 0.22);
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.text-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(226, 183, 107, 0.34);
  padding: 0 14px;
  color: var(--gold);
  text-decoration: none;
}

.story-page,
.comics-page {
  display: grid;
  gap: 22px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 46px);
}

.story-hero,
.comics-hero {
  min-height: clamp(390px, 52vh, 560px);
}

.fiction-console,
.comic-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(360px, 0.52fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(226, 183, 107, 0.24);
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.94), rgba(7, 12, 20, 0.62)),
    radial-gradient(circle at 76% 45%, rgba(121, 207, 255, 0.15), transparent 34%),
    rgba(5, 8, 13, 0.88);
  padding: clamp(24px, 4vw, 46px);
}

.fiction-console::before,
.comic-feature::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(226, 183, 107, 0.1);
  pointer-events: none;
}

.fiction-console-copy,
.comic-feature > div:first-child {
  position: relative;
  z-index: 1;
}

.fiction-console h2,
.comic-feature h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 0.98;
}

.fiction-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 420px;
  border: 1px solid rgba(226, 183, 107, 0.18);
  background:
    radial-gradient(circle at center, rgba(226, 183, 107, 0.18), transparent 13%),
    radial-gradient(circle at center, transparent 27%, rgba(121, 207, 255, 0.12) 28%, transparent 29%),
    radial-gradient(circle at center, transparent 48%, rgba(226, 183, 107, 0.16) 49%, transparent 50%),
    linear-gradient(140deg, rgba(3, 6, 10, 0.4), rgba(8, 14, 23, 0.82));
}

.fiction-orbit::before {
  content: "FICTION";
  display: grid;
  place-items: center;
  width: 132px;
  aspect-ratio: 1;
  border: 1px solid rgba(226, 183, 107, 0.46);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.16em;
  background: rgba(4, 8, 13, 0.82);
  box-shadow: 0 0 36px rgba(226, 183, 107, 0.16);
}

.fiction-orbit span {
  position: absolute;
  min-width: 112px;
  border: 1px solid rgba(226, 183, 107, 0.24);
  background: rgba(4, 8, 13, 0.78);
  padding: 9px 12px;
  color: #f4efe2;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.fiction-orbit span:nth-child(1) { transform: translate(-118px, -138px); }
.fiction-orbit span:nth-child(2) { transform: translate(126px, -102px); }
.fiction-orbit span:nth-child(3) { transform: translate(152px, 78px); }
.fiction-orbit span:nth-child(4) { transform: translate(-132px, 118px); }
.fiction-orbit span:nth-child(5) { transform: translate(0, 166px); }

.chapter-index,
.story-system,
.character-arc-board,
.issue-grid-section,
.panel-sequence {
  padding: clamp(18px, 3vw, 28px) 0 0;
}

.chapter-rail {
  display: grid;
  grid-template-columns: 1.15fr 0.92fr 0.92fr;
  gap: 16px;
}

.chapter-file,
.story-module-grid article,
.arc-lanes article,
.comic-issue-grid article {
  border: 1px solid rgba(226, 183, 107, 0.22);
  background:
    linear-gradient(180deg, rgba(8, 13, 20, 0.88), rgba(4, 7, 11, 0.92)),
    rgba(4, 8, 13, 0.86);
}

.chapter-file {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.chapter-file img,
.comic-issue-grid img,
.panel-strip img {
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(226, 183, 107, 0.16);
  background: #03060a;
}

.chapter-file img {
  aspect-ratio: 4 / 3;
  margin-bottom: auto;
}

.chapter-file span,
.comic-cover-stack span,
.comic-issue-grid span,
.arc-lanes span {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter-file h3,
.comic-issue-grid h3 {
  margin: 12px 0 8px;
  font-size: clamp(22px, 2vw, 32px);
}

.story-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.story-module-grid article {
  min-height: 180px;
  padding: 20px;
}

.story-module-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  margin-bottom: 18px;
  border: 1px solid rgba(121, 207, 255, 0.28);
  border-radius: 50%;
  color: var(--blue);
  font-size: 11px;
}

.story-module-grid h3 {
  margin: 0 0 8px;
}

.arc-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.arc-lanes article {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.arc-lanes strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.6vw, 25px);
  line-height: 1.08;
}

.comic-feature {
  grid-template-columns: minmax(0, 0.38fr) minmax(420px, 0.62fr);
}

.comic-cover-stack {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  perspective: 1200px;
}

.comic-cover-stack article {
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(226, 183, 107, 0.28);
  background: rgba(4, 8, 13, 0.86);
  padding: 12px;
  transform: rotateY(-8deg);
}

.comic-cover-stack article:nth-child(2) {
  min-height: 420px;
  transform: translateY(-20px);
}

.comic-cover-stack article:nth-child(3) {
  transform: rotateY(8deg);
}

.comic-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 12px;
  border: 1px solid rgba(226, 183, 107, 0.14);
}

.comic-cover-stack h3 {
  margin: 7px 0 0;
  font-size: clamp(20px, 2vw, 30px);
}

.comic-issue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.comic-issue-grid article {
  padding: 14px;
}

.comic-issue-grid img {
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
}

.panel-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.05fr;
  gap: 12px;
  align-items: stretch;
}

.panel-strip figure {
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 183, 107, 0.22);
  background: rgba(4, 8, 13, 0.86);
}

.panel-strip img {
  height: calc(100% - 44px);
  min-height: 220px;
  display: block;
}

.panel-strip figcaption {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.creator-economy-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(300px, 0.42fr);
  gap: 22px;
  align-items: stretch;
  margin: 18px 0;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(226, 183, 107, 0.24);
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.9), rgba(7, 12, 20, 0.7)),
    url("/assets/observation-archive-console.png") center / cover;
}

.creator-economy-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 36%, rgba(121, 207, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(5, 8, 13, 0.16), rgba(5, 8, 13, 0.74));
}

.creator-economy-copy,
.market-terminal {
  position: relative;
  z-index: 1;
}

.creator-economy-copy h2 {
  width: min(720px, 100%);
}

.market-terminal {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 320px;
  padding: 22px;
  border: 1px solid rgba(121, 207, 255, 0.18);
  background: rgba(5, 8, 13, 0.72);
  box-shadow: inset 0 0 48px rgba(121, 207, 255, 0.05);
}

.market-terminal span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(226, 183, 107, 0.2);
  color: #e7dfcf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.market-terminal span:last-child {
  border-color: rgba(226, 183, 107, 0.46);
  color: var(--gold);
  box-shadow: 0 0 26px rgba(226, 183, 107, 0.1);
}

.creator-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.creator-flow article {
  min-height: 220px;
  padding: 20px;
  border: 1px solid rgba(226, 183, 107, 0.18);
  background: rgba(7, 11, 17, 0.68);
}

.creator-flow span {
  display: block;
  margin-bottom: 36px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.creator-submit-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(320px, 0.55fr);
  gap: 18px;
  margin: 18px 0;
}

.creator-submit-copy,
.creator-form,
.submission-card {
  border: 1px solid rgba(226, 183, 107, 0.2);
  background: rgba(7, 11, 17, 0.74);
}

.creator-submit-copy {
  padding: clamp(24px, 4vw, 42px);
}

.creator-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
}

.creator-form label {
  display: grid;
  gap: 8px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.creator-form input,
.creator-form select,
.creator-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(121, 207, 255, 0.18);
  border-radius: 0;
  background: rgba(3, 6, 10, 0.86);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  padding: 12px;
}

.creator-form textarea {
  min-height: 116px;
  resize: vertical;
}

.creator-form .rights-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #d5deed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.creator-form .rights-confirm input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.creator-form input:focus,
.creator-form select:focus,
.creator-form textarea:focus {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.form-submit {
  justify-self: start;
  background: rgba(226, 183, 107, 0.08);
  cursor: pointer;
}

.form-status {
  min-height: 28px;
  margin: 0;
  color: #d5deed;
}

.creator-notice {
  margin: -2px 0 0;
  color: #9eaabd;
  font-size: 12px;
  line-height: 1.55;
}

.submission-archive {
  margin-top: clamp(34px, 5vw, 60px);
}

.submission-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.submission-card {
  min-height: 190px;
  padding: 20px;
}

.submission-card span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.submission-card h3 {
  margin-bottom: 6px;
}

.submission-card dl {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.submission-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(226, 183, 107, 0.12);
  padding-top: 8px;
}

.submission-card dt,
.submission-card dd {
  margin: 0;
  color: #aeb8c8;
  font-size: 12px;
}

.submission-card dd {
  color: var(--gold);
}

.admin-hero {
  min-height: 360px;
}

.admin-main {
  padding-top: 34px;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.admin-panel {
  border: 1px solid rgba(226, 183, 107, 0.2);
  background: rgba(7, 11, 17, 0.68);
  padding: 22px;
}

.admin-list,
.admin-content-grid {
  display: grid;
  gap: 12px;
}

.admin-content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-review-card,
.admin-content-card {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(121, 207, 255, 0.16);
  background: rgba(3, 6, 10, 0.64);
  padding: 16px;
}

.admin-review-card > div:first-child span,
.admin-content-card > span {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.admin-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-controls select {
  min-height: 42px;
  border: 1px solid rgba(226, 183, 107, 0.18);
  background: rgba(5, 8, 13, 0.9);
  color: var(--ink);
  padding: 0 10px;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: #d5deed;
}

.admin-content-card dl {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.admin-content-card dl div {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(226, 183, 107, 0.12);
  padding-top: 8px;
}

.admin-content-card dt,
.admin-content-card dd {
  margin: 0;
  color: #aeb8c8;
  font-size: 12px;
}

.admin-content-card dd {
  color: var(--gold);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .video-console {
    min-height: auto;
    padding-bottom: 18px;
  }

  .video-gate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .video-category-grid,
  .district-video-gate-grid.is-directory,
  .district-video-gate-grid,
  .channel-gate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .streaming-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .video-menu-list.streaming-poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .video-watch-modal {
    padding: 78px 14px 22px;
  }

  .video-watch-shell {
    max-height: calc(100vh - 100px);
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .video-watch-shell video {
    min-height: auto;
  }

  .district-video-gate-grid:not(.is-directory) {
    position: relative;
    inset: auto;
    display: grid;
    gap: 10px;
    padding-top: 44px;
    pointer-events: auto;
  }

  .district-video-gate {
    position: relative;
    inset: auto !important;
    width: auto !important;
    --gate-y: 0 !important;
    --gate-ry: 0deg !important;
    --gate-rz: 0deg !important;
    --gate-scale: 1 !important;
  }

  .page-grid,
  .video-grid,
  .video-player-layout,
  .wide-panel,
  .fiction-console,
  .comic-feature,
  .creator-economy-panel,
  .creator-flow,
  .creator-submit-panel,
  .submission-list,
  .admin-shell,
  .admin-content-grid {
    grid-template-columns: 1fr;
  }

  .fiction-orbit {
    min-height: 360px;
  }

  .chapter-rail,
  .story-module-grid,
  .comic-issue-grid,
  .panel-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arc-lanes,
  .comic-cover-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comic-cover-stack article,
  .comic-cover-stack article:nth-child(2),
  .comic-cover-stack article:nth-child(3) {
    min-height: auto;
    transform: none;
  }

  .admin-controls {
    grid-template-columns: 1fr;
  }
}

.districts-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.district-header {
  position: fixed;
  inset: 0 0 auto;
}

.district-console {
  --district-sheet: url("/assets/district-generated/nine-world-contact-sheet.png");
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 25vw);
  gap: 16px;
  padding: 88px 18px 16px;
  background:
    radial-gradient(ellipse at 42% 52%, rgba(226, 183, 107, 0.2), transparent 28%),
    radial-gradient(circle at 68% 18%, rgba(97, 214, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(3, 5, 9, 0.94), rgba(4, 6, 10, 0.98)),
    url("/assets/homepage-final-reference@2x.png") center / cover fixed;
}

.district-stage {
  position: relative;
  min-height: calc(100vh - 120px);
  overflow: hidden;
  border: 1px solid rgba(226, 183, 107, 0.28);
  background:
    linear-gradient(180deg, rgba(5, 8, 13, 0.72), rgba(5, 8, 13, 0.86)),
    radial-gradient(circle at 46% 52%, rgba(226, 183, 107, 0.12), transparent 34%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 232, 185, 0.05),
    inset 0 0 90px rgba(0, 0, 0, 0.72);
}

.district-stage::before,
.district-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(226, 183, 107, 0.24);
  border-radius: 50%;
}

.district-stage::before {
  left: 2%;
  right: 8%;
  top: 31%;
  height: 42%;
  transform: rotate(-5deg);
  box-shadow:
    0 0 42px rgba(226, 183, 107, 0.18),
    inset 0 0 28px rgba(226, 183, 107, 0.07);
}

.district-stage::after {
  left: 7%;
  right: 16%;
  top: 38%;
  height: 25%;
  transform: rotate(4deg);
}

.district-hud {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr repeat(5, minmax(44px, 8vw)) 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  pointer-events: none;
}

.district-hud::before,
.district-hud::after,
.district-hud span {
  content: "";
  height: 2px;
  background: rgba(226, 183, 107, 0.24);
}

.district-hud span.active {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 20px rgba(226, 183, 107, 0.42);
}

.district-hud-top {
  top: 20px;
}

.district-hud-bottom {
  bottom: 20px;
}

.district-copy {
  position: absolute;
  left: 28px;
  top: 28px;
  z-index: 2;
  width: auto;
  opacity: 0.82;
}

.district-copy h1 {
  display: none;
}

.district-copy p:not(.eyebrow) {
  font-size: 15px;
  color: #cbd6e8;
}

.district-orbit {
  position: absolute;
  inset: 0;
}

.orbit-ring {
  position: absolute;
  left: 3%;
  right: 4%;
  top: 34%;
  height: 38%;
  border: 1px solid rgba(226, 183, 107, 0.22);
  border-radius: 50%;
  transform: rotate(-5deg);
  background:
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(226, 183, 107, 0.12) 43%, transparent 47%),
    linear-gradient(90deg, transparent, rgba(226, 183, 107, 0.18), transparent);
  box-shadow: 0 0 46px rgba(226, 183, 107, 0.1);
}

.world-card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  width: clamp(132px, 13.2vw, 230px);
  color: #f3ead8;
  text-decoration: none;
  transform: rotate(var(--rot));
  transform-origin: center;
  animation: districtFloat 5.8s ease-in-out infinite;
  animation-delay: var(--delay);
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.5));
}

.world-image-card {
  position: relative;
  display: block;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 28%);
  border-radius: 16px;
  overflow: hidden;
  background-image: var(--district-sheet);
  background-repeat: no-repeat;
  background-size: 306% 306%;
  background-position: var(--bg-x) var(--bg-y);
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 193, 0.08),
    inset 0 -38px 55px rgba(0, 0, 0, 0.54);
}

.world-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 8, 13, 0.04), rgba(5, 8, 13, 0.22) 55%, rgba(5, 8, 13, 0.58)),
    radial-gradient(circle at 50% 108%, color-mix(in srgb, var(--accent), transparent 58%), transparent 36%);
}

.world-image-card i {
  display: none;
}

.world-card span {
  position: absolute;
  left: 50%;
  bottom: -20px;
  display: block;
  width: max-content;
  max-width: 92%;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 44%);
  background: linear-gradient(90deg, rgba(5, 8, 13, 0.92), rgba(18, 20, 25, 0.74));
  color: #f5e7c8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(11px, 0.8vw, 13px);
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.world-card::after {
  display: none;
}

.world-card:hover,
.world-card:focus-visible,
.world-card.active {
  z-index: 5;
  animation-play-state: paused;
}

.world-card:hover span,
.world-card:focus-visible span,
.world-card.active span {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.world-card:hover .world-image-card,
.world-card:focus-visible .world-image-card,
.world-card.active .world-image-card {
  border-color: var(--accent);
  box-shadow:
    0 0 36px color-mix(in srgb, var(--accent), transparent 66%),
    inset 0 -42px 58px rgba(0, 0, 0, 0.56);
}

.zero-card img {
  filter: saturate(0.82) contrast(1.08);
}

@keyframes districtFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--rot));
  }
  50% {
    transform: translate3d(0, -14px, 0) rotate(var(--rot));
  }
}

.district-inspector {
  min-height: calc(100vh - 120px);
  border: 1px solid rgba(226, 183, 107, 0.28);
  background:
    linear-gradient(180deg, rgba(5, 8, 13, 0.92), rgba(5, 8, 13, 0.84)),
    radial-gradient(circle at 60% 48%, rgba(226, 183, 107, 0.08), transparent 48%);
  box-shadow: inset 0 0 60px rgba(226, 183, 107, 0.05), 0 24px 70px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.district-inspector-visual {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-bottom: 1px solid rgba(226, 183, 107, 0.2);
  background-image:
    linear-gradient(180deg, rgba(5, 8, 13, 0.02), rgba(5, 8, 13, 0.32)),
    var(--district-sheet);
  background-repeat: no-repeat;
  background-size: 306% 306%;
  background-position: center, var(--bg-x) var(--bg-y);
  box-shadow: inset 0 -34px 54px rgba(0, 0, 0, 0.62);
}

.inspector-body {
  padding: 24px;
}

.inspector-body h2 {
  font-size: clamp(28px, 2.5vw, 42px);
  line-height: 0.98;
}

.district-law {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.inspector-lines {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.inspector-lines span {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(226, 183, 107, 0.42), transparent);
}

.inspector-lines span:nth-child(2) {
  width: 72%;
}

.inspector-lines span:nth-child(3) {
  width: 86%;
}

.inspector-lines span:nth-child(4) {
  width: 54%;
}

@media (max-width: 1080px) {
  .district-console {
    grid-template-columns: 1fr;
  }

  .district-stage {
    aspect-ratio: 16 / 10;
    min-height: 680px;
  }

  .district-inspector {
    min-height: auto;
  }

  .district-inspector {
    display: grid;
    grid-template-columns: minmax(0, 0.52fr) minmax(280px, 0.48fr);
  }
}

@media (max-width: 520px) {
  .video-gate-grid {
    grid-template-columns: 1fr;
  }

  .video-category-grid,
  .district-video-gate-grid.is-directory,
  .district-video-gate-grid,
  .channel-gate-grid {
    grid-template-columns: 1fr;
  }

  .video-menu-list.streaming-poster-grid {
    grid-template-columns: 1fr;
  }

  .streaming-shelf-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .chapter-rail,
  .story-module-grid,
  .arc-lanes,
  .comic-cover-stack,
  .comic-issue-grid,
  .panel-strip {
    grid-template-columns: 1fr;
  }

  .fiction-console,
  .comic-feature {
    padding: 20px;
  }

  .fiction-console h2,
  .comic-feature h2 {
    font-size: 32px;
  }

  .fiction-orbit {
    min-height: 320px;
  }

  .fiction-orbit span {
    min-width: 88px;
    padding: 7px 8px;
    font-size: 10px;
  }

  .fiction-orbit span:nth-child(1) { transform: translate(-88px, -112px); }
  .fiction-orbit span:nth-child(2) { transform: translate(92px, -84px); }
  .fiction-orbit span:nth-child(3) { transform: translate(104px, 56px); }
  .fiction-orbit span:nth-child(4) { transform: translate(-94px, 92px); }
  .fiction-orbit span:nth-child(5) { transform: translate(0, 132px); }

  .video-console-page {
    padding: 12px;
  }

  .video-console-copy {
    width: auto;
    margin: 18px 14px 0;
  }

  .district-video-gate-grid {
    padding-inline: 14px;
  }

  .district-console {
    padding: 138px 14px 18px;
  }

  .district-stage {
    aspect-ratio: auto;
    min-height: 980px;
  }

  .district-copy {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    padding: 22px;
  }

  .district-orbit {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 18px 22px;
  }

  .orbit-ring,
  .district-stage::before,
  .district-stage::after {
    display: none;
  }

  .world-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: none;
    animation: none;
  }

  .world-image-card {
    aspect-ratio: 4 / 3;
  }

  .world-card::after {
    display: none;
  }

  .district-inspector {
    grid-template-columns: 1fr;
  }
}

/* Final shelf overrides: keep fiction/comics reader panels from overlapping older page rules. */
.library-page .library-layout {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
}

.library-page .cover-grid {
  grid-template-columns: repeat(4, minmax(118px, 1fr));
}

.library-page .library-rank-panel {
  min-width: 0;
}

.library-page .admin-ready-note,
.library-page [data-admin-ready] {
  display: none;
}

.library-page .shelf-note {
  margin-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 1rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.library-page .shelf-note strong {
  color: var(--ink);
}

.library-page .reader-panel {
  position: relative;
  overflow: hidden;
  grid-template-columns: clamp(170px, 18vw, 240px) minmax(0, 1fr);
  align-items: start;
  min-height: 0;
}

.library-page .reader-cover {
  width: 100%;
  max-width: 240px;
  align-self: start;
}

.library-page .reader-copy {
  min-width: 0;
  align-self: start;
  padding-top: 0.2rem;
  z-index: 1;
}

.library-page .reader-copy h2 {
  max-width: 980px;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  overflow-wrap: anywhere;
}

.library-page .reader-body {
  max-width: 760px;
  min-height: 0;
}

.library-page .mini-panel-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-page .mini-panel-row img {
  min-width: 0;
}

.library-page .comic-reader-panel {
  display: block;
}

.library-page .comic-reader-panel .reader-copy {
  display: block;
}

.library-page .comic-reader-panel .reader-body {
  max-width: 760px;
  margin-bottom: 1.1rem;
}

.library-page .comic-reader-panel .mini-panel-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.library-page .comic-reader-panel .mini-panel-row img {
  height: 100%;
  aspect-ratio: 16 / 10;
}

@media (max-width: 1180px) {
  .library-page .cover-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 860px) {
  .library-page .library-layout,
  .library-page .reader-panel {
    grid-template-columns: 1fr;
  }

  .library-page .reader-cover {
    max-width: 220px;
  }
}

@media (max-width: 560px) {
  .library-page .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-page .reader-copy h2 {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .library-page .mini-panel-row,
  .library-page .comic-reader-panel .mini-panel-row {
    grid-template-columns: 1fr;
  }
}
