:root {
  color-scheme: dark;
  --bg: oklch(0.095 0 0);
  --surface: oklch(0.145 0.008 110);
  --surface-raised: oklch(0.19 0.012 110);
  --ink: oklch(0.965 0.006 110);
  --muted: oklch(0.72 0.014 110);
  --primary: oklch(0.50 0.105 110);
  --primary-strong: oklch(0.39 0.085 110);
  --accent: oklch(0.77 0.13 58);
  --danger: oklch(0.68 0.16 28);
  --focus: oklch(0.82 0.14 90);
  --reader-bg: oklch(0.92 0.022 110);
  --reader-ink: oklch(0.22 0.018 110);
  --reader-muted: oklch(0.45 0.018 110);
  --reader-rule: oklch(0.82 0.018 110);
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-reading: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --z-sticky: 20;
  --z-dialog: 40;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: oklch(0.04 0 0);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: oklch(0.04 0 0);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
input,
[tabindex] {
  outline: none;
}

button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  box-shadow: 0 0 0 3px var(--focus);
}

button {
  border: 0;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.app-frame {
  position: relative;
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
}

.view {
  min-height: 100dvh;
}

.login-view {
  display: flex;
  flex-direction: column;
  padding: max(24px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 85% 5%, oklch(0.31 0.07 110 / .36), transparent 34%),
    var(--bg);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.brand-rule {
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.login-copy {
  margin-top: clamp(54px, 14vh, 118px);
}

.domain-label,
.app-mark,
.section-heading > p,
.welcome-block > p,
.player-copy > p,
.sheet-header p,
.transcript-block > span,
.transcript-heading > span {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .035em;
}

.login-copy h1 {
  max-width: 8ch;
  margin: 0;
  font-size: 44px;
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.login-copy > p:last-child {
  max-width: 31ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
}

.login-form {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 44px;
}

.login-form label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.login-form input {
  width: 100%;
  min-height: 52px;
  margin: 0 0 18px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid oklch(0.34 0.015 110);
  border-radius: 10px;
  background: var(--surface);
  font-size: 16px;
}

.login-form input::placeholder {
  color: oklch(0.68 0.012 110);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 66px;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  min-height: 52px;
  padding: 0 14px;
}

.primary-button,
.secondary-button {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.primary-button {
  color: oklch(1 0 0);
  background: var(--primary);
}

.primary-button:hover,
.primary-button:active {
  background: var(--primary-strong);
}

.primary-button:active,
.secondary-button:active,
.icon-button:active,
.destination-row:active,
.mv-row:active {
  transform: scale(.98);
}

.secondary-button {
  color: oklch(1 0 0);
  background: var(--primary-strong);
}

.text-button {
  min-height: 44px;
  padding: 0 10px;
  color: inherit;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
}

.prototype-note {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.form-error {
  margin: -4px 0 14px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

.shell-view {
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

.app-header,
.immersive-header {
  position: sticky;
  z-index: var(--z-sticky);
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(66px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 20px 0;
  background: var(--bg);
}

.app-mark {
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .11em;
}

.page-context {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.icon-button:hover {
  background: var(--surface-raised);
}

.icon-button svg,
.destination-row svg,
.nav-button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-content {
  padding: 18px 20px 28px;
}

.welcome-block {
  padding: 38px 0 34px;
}

.welcome-block h2,
.section-heading h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 590;
  line-height: 1.18;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.continue-panel {
  display: flex;
  width: 100%;
  padding: 22px;
  flex-direction: column;
  align-items: flex-start;
  color: oklch(0.98 0.005 110);
  border-radius: 14px;
  background: var(--primary-strong);
  text-align: left;
}

.continue-label {
  margin-bottom: 28px;
  color: oklch(0.86 0.04 110);
  font-size: 12px;
}

.continue-panel strong {
  margin-bottom: 7px;
  font-family: var(--font-reading);
  font-size: 22px;
}

.continue-panel > span:not(.continue-label, .continue-action) {
  color: oklch(0.88 0.02 110);
  font-size: 13px;
}

.continue-action {
  align-self: flex-end;
  margin-top: 30px;
  font-size: 13px;
  font-weight: 650;
}

.destination-list {
  margin-top: 24px;
  border-top: 1px solid oklch(0.28 0.012 110);
}

.destination-row {
  display: flex;
  width: 100%;
  min-height: 92px;
  align-items: center;
  gap: 16px;
  padding: 18px 2px;
  border-bottom: 1px solid oklch(0.28 0.012 110);
  background: transparent;
  text-align: left;
  transition: color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.destination-row:hover {
  color: var(--accent);
}

.destination-index {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-raised);
  font-family: var(--font-reading);
}

.destination-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.destination-copy strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
}

.destination-copy span {
  color: var(--muted);
  font-size: 13px;
}

.destination-copy .coming-soon-tag {
  padding: 3px 7px;
  color: oklch(0.90 0.045 58);
  border-radius: 999px;
  background: oklch(0.31 0.055 58);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.section-heading {
  padding: 42px 0 34px;
}

.book-entry {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 20px;
  align-items: start;
}

.book-entry + .book-entry {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid oklch(0.28 0.012 110);
}

.book-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  padding: 0;
  overflow: hidden;
  border-radius: 6px 12px 12px 6px;
  background: #080808;
  box-shadow: -6px 0 0 oklch(0.25 0.035 110);
}

.book-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover-edition {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  min-width: 42px;
  min-height: 30px;
  padding: 0 9px;
  place-items: center;
  color: oklch(0.16 0.02 85);
  border: 1px solid oklch(0.88 0.08 85 / .55);
  border-radius: 999px;
  background: oklch(0.88 0.10 85 / .94);
  box-shadow: 0 3px 12px oklch(0.04 0 0 / .35);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

.book-cover-edition.is-legacy {
  color: oklch(0.88 0.015 110);
  border-color: oklch(0.60 0.02 110 / .45);
  background: oklch(0.24 0.015 110 / .92);
}

.book-meta {
  padding-top: 4px;
}

.book-meta > p:first-child {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
}

.book-meta h3 {
  margin: 0 0 10px;
  font-family: var(--font-reading);
  font-size: 22px;
}

.book-meta > p:not(:first-child) {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.book-meta .secondary-button {
  width: 100%;
  min-height: 46px;
}

.protected-book-cover {
  display: flex;
  padding: 16px 14px 14px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--ink);
  background: oklch(0.18 0.018 110);
  box-shadow: -6px 0 0 oklch(0.30 0.04 110);
  text-align: left;
}

.protected-book-cover::after {
  position: absolute;
  top: 0;
  right: 12px;
  width: 1px;
  height: 100%;
  background: oklch(0.38 0.035 110);
  content: "";
}

.protected-cover-type,
.protected-cover-lock {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.protected-book-cover strong {
  font-family: var(--font-reading);
  font-size: 34px;
  letter-spacing: .08em;
}

.protected-book-view {
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.protected-book-body {
  display: flex;
  width: 100%;
  max-width: 35rem;
  margin: auto;
  padding: 52px 28px max(40px, env(safe-area-inset-bottom));
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.protected-book-body > p:first-child {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.protected-book-body h1 {
  margin: 0;
  font-family: var(--font-reading);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: .05em;
}

.protected-book-body > p:not(:first-child) {
  margin: 20px 0 36px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.protected-book-body .secondary-button {
  width: 100%;
}

.mv-list {
  border-top: 1px solid oklch(0.28 0.012 110);
}

.mv-row {
  display: grid;
  width: 100%;
  grid-template-columns: 88px 1fr 24px;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid oklch(0.28 0.012 110);
  background: transparent;
  text-align: left;
  transition: color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.mv-row:hover {
  color: var(--accent);
}

.mv-poster {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--poster-bg, var(--surface-raised));
}

.mv-poster::before,
.orbit-mark::before {
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid oklch(0.92 0.02 110 / .72);
  border-radius: 50%;
  content: "";
  transform: rotate(-22deg) scaleY(.42);
}

.mv-poster::after {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: translate(21px, -8px);
}

.mv-kind {
  position: relative;
  z-index: 1;
  display: none;
  font-family: var(--font-reading);
  font-size: 25px;
  font-weight: 650;
}

.mv-poster.is-audio::before,
.mv-poster.is-audio::after {
  display: none;
}

.mv-poster.is-audio .mv-kind {
  display: block;
}

.mv-copy {
  min-width: 0;
}

.mv-copy strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.mv-copy span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-arrow {
  color: var(--muted);
  font-size: 20px;
}

.asset-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.comics-heading {
  padding-bottom: 30px;
}

.comics-coming-soon {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid oklch(0.28 0.012 110);
  border-bottom: 1px solid oklch(0.28 0.012 110);
}

.comic-page-mark {
  position: relative;
  display: grid;
  width: 104px;
  aspect-ratio: 3 / 4;
  flex: 0 0 104px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 34px;
  gap: 5px;
  padding: 14px;
  overflow: hidden;
  color: var(--accent);
  border-radius: 5px 9px 9px 5px;
  background: var(--surface-raised);
  box-shadow: -5px 0 0 oklch(0.30 0.035 110);
}

.comic-page-mark span {
  grid-column: 1 / -1;
  place-self: center;
  font-family: var(--font-reading);
  font-size: 40px;
  line-height: 1;
}

.comic-page-mark i {
  display: block;
  border-radius: 2px;
  background: oklch(0.31 0.025 110);
}

.comics-status-copy {
  min-width: 0;
}

.comics-status-copy > span {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 9px;
  color: oklch(0.90 0.045 58);
  border-radius: 999px;
  background: oklch(0.31 0.055 58);
  font-size: 11px;
  font-weight: 700;
}

.comics-status-copy h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.4;
  text-wrap: balance;
}

.comics-status-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-wrap: pretty;
}

.bottom-nav {
  position: fixed;
  z-index: var(--z-sticky);
  right: auto;
  bottom: 0;
  left: 50%;
  width: min(100%, 480px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: calc(68px + env(safe-area-inset-bottom));
  padding: 6px 12px env(safe-area-inset-bottom);
  border-top: 1px solid oklch(0.25 0.01 110);
  background: oklch(0.105 0.004 110 / .96);
}

.nav-button {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
}

.nav-button svg {
  width: 21px;
}

.nav-button.is-active {
  color: var(--accent);
}

.reader-view {
  --reader-font-size: 19px;
  color: var(--reader-ink);
  background: var(--reader-bg);
  color-scheme: light;
}

.reader-view[data-theme="dark"] {
  --reader-bg: oklch(0.13 0.007 110);
  --reader-ink: oklch(0.90 0.009 110);
  --reader-muted: oklch(0.68 0.012 110);
  --reader-rule: oklch(0.27 0.01 110);
  color-scheme: dark;
}

.reader-view .immersive-header {
  color: var(--reader-ink);
  border-bottom: 1px solid var(--reader-rule);
  background: var(--reader-bg);
}

.immersive-header > p {
  max-width: 60%;
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-icon:hover {
  background: var(--reader-rule);
}

.reader-scroll {
  position: relative;
  height: calc(100dvh - 122px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-y pinch-zoom;
}

.reader-content {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 36px 24px 42px;
  column-width: calc(min(100vw, 480px) - 48px);
  column-gap: 48px;
  column-fill: auto;
  font-family: var(--font-reading);
}

.chapter-title-block {
  break-inside: avoid-column;
}

.reader-content .chapter-number {
  display: block;
  margin-bottom: 14px;
  color: var(--reader-muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 650;
}

.reader-content h1 {
  margin: 0 0 44px;
  font-size: calc(var(--reader-font-size) * 1.68);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.reader-content h2 {
  margin: 46px 0 18px;
  font-size: calc(var(--reader-font-size) * 1.18);
  line-height: 1.55;
  break-after: avoid-column;
}

.reader-content p {
  max-width: 34em;
  margin: 0 auto 1.15em;
  font-size: var(--reader-font-size);
  line-height: 1.85;
  text-align: justify;
  text-wrap: pretty;
  orphans: 2;
  widows: 2;
}

.reader-content p:first-of-type::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  font-size: 3.1em;
  font-weight: 700;
  line-height: .9;
}

.reader-footer {
  position: fixed;
  z-index: var(--z-sticky);
  right: auto;
  bottom: 0;
  left: 50%;
  width: min(100%, 480px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 52px 1fr 104px;
  min-height: calc(56px + env(safe-area-inset-bottom));
  align-items: center;
  gap: 10px;
  padding: 0 16px env(safe-area-inset-bottom);
  color: var(--reader-ink);
  border-top: 1px solid var(--reader-rule);
  background: var(--reader-bg);
}

.reader-position {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.page-turn-controls {
  display: grid;
  grid-template-columns: repeat(2, 48px);
  gap: 4px;
}

.reader-page-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--reader-ink);
  border-radius: 50%;
  background: transparent;
  font-size: 25px;
  line-height: 1;
  transition: background-color 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

.reader-page-button:hover:not(:disabled) {
  background: var(--reader-rule);
}

.reader-page-button:disabled {
  cursor: default;
  opacity: .28;
}

.reading-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--reader-rule);
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 180ms var(--ease-out);
}

#reading-progress-text {
  color: var(--reader-muted);
  font-size: 11px;
  text-align: left;
}

.sheet-dialog {
  width: min(100%, 480px);
  max-height: 78dvh;
  margin: auto auto 0;
  padding: 12px 20px max(24px, env(safe-area-inset-bottom));
  color: var(--ink);
  border: 0;
  border-radius: 16px 16px 0 0;
  background: var(--surface);
  overflow: hidden;
}

.sheet-dialog::backdrop {
  background: oklch(0.02 0 0 / .72);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 2px;
  background: oklch(0.42 0.012 110);
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
}

.sheet-header h2 {
  margin: 0;
  font-size: 23px;
}

.dialog-close {
  font-size: 24px;
}

.toc-list {
  max-height: calc(78dvh - 106px);
  overflow-y: auto;
  border-top: 1px solid oklch(0.30 0.012 110);
}

.toc-button {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  color: var(--ink);
  border-bottom: 1px solid oklch(0.30 0.012 110);
  background: transparent;
  text-align: left;
}

.toc-button.is-current {
  color: var(--accent);
}

.toc-number {
  width: 62px;
  flex: 0 0 62px;
  color: var(--muted);
  font-size: 12px;
}

.toc-button strong {
  font-size: 14px;
  line-height: 1.5;
}

.compact-sheet {
  max-height: none;
}

.secondary-unlock-copy {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.secondary-unlock-form {
  display: flex;
  flex-direction: column;
}

.secondary-unlock-form label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.secondary-unlock-form input {
  width: 100%;
  min-height: 52px;
  margin: 0 0 18px;
  padding: 0 66px 0 14px;
  color: var(--ink);
  border: 1px solid oklch(0.34 0.015 110);
  border-radius: 10px;
  background: var(--surface-raised);
  font-size: 16px;
}

.secondary-unlock-form input::placeholder {
  color: oklch(0.68 0.012 110);
}

.secondary-unlock-form .primary-button {
  width: 100%;
}

.setting-group,
.switch-row {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid oklch(0.30 0.012 110);
}

.setting-group > span,
.setting-group legend,
.switch-row strong {
  font-size: 14px;
  font-weight: 650;
}

.segmented-control,
.theme-options {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-raised);
}

.segmented-control button,
.segmented-control output,
.theme-options button {
  display: grid;
  min-width: 44px;
  min-height: 40px;
  place-items: center;
  border-radius: 7px;
  background: transparent;
}

.theme-options button.is-selected {
  color: oklch(1 0 0);
  background: var(--primary-strong);
}

.switch-row span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.switch-row small {
  color: var(--muted);
  font-size: 12px;
}

.switch-row input {
  width: 46px;
  height: 26px;
  accent-color: var(--primary);
}

.player-view {
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
  background: var(--bg);
}

.player-header {
  position: relative;
}

.privacy-dot {
  width: 8px;
  height: 8px;
  margin: 20px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px oklch(0.50 0.105 110 / .16);
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: oklch(0.06 0 0);
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-stage audio {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  left: 20px;
  width: calc(100% - 40px);
  min-height: 48px;
}

.video-stage.is-audio .video-placeholder {
  padding-bottom: 58px;
}

.video-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  align-content: center;
  gap: 24px;
  background:
    radial-gradient(circle at 50% 48%, oklch(0.35 0.055 110 / .55), transparent 26%),
    oklch(0.075 0 0);
}

.orbit-mark {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
}

.orbit-mark::before {
  width: 88px;
}

.orbit-mark::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: translate(34px, -15px);
}

.video-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.player-copy {
  padding: 30px 20px 16px;
}

.player-copy h1 {
  margin: 0 0 14px;
  font-size: 31px;
  font-weight: 620;
  line-height: 1.22;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.player-copy > p:not(:first-child) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.transcript-block {
  margin-top: 28px;
  padding: 18px 0 0;
  border-top: 1px solid oklch(0.28 0.012 110);
}

.transcript-heading {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.transcript-heading > span {
  margin-bottom: 0;
}

.lyric-follow-button {
  min-height: 40px;
  padding: 0 12px;
  color: var(--accent);
  border: 1px solid oklch(0.42 0.035 110);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.lyric-viewport {
  position: relative;
  height: min(42dvh, 360px);
  min-height: 260px;
  margin-top: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: oklch(0.42 0.02 110) transparent;
  scrollbar-width: thin;
  touch-action: pan-y;
}

.synced-lyrics {
  padding-block: 34%;
}

.lyric-line {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  padding: 8px 14px 8px 18px;
  color: var(--muted);
  border-radius: 8px;
  background: transparent;
  font-family: var(--font-reading);
  font-size: 17px;
  line-height: 1.65;
  text-align: left;
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.lyric-line::before {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 2px;
  width: 3px;
  border-radius: 2px;
  background: transparent;
  content: "";
}

.lyric-line.is-active {
  color: var(--ink);
  background: oklch(0.25 0.025 110 / .55);
  font-weight: 700;
  transform: translateX(3px);
}

.lyric-line.is-active::before {
  background: var(--accent);
}

.lyric-line:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.lyric-empty {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-reading);
  font-size: 17px;
  line-height: 1.85;
  white-space: pre-line;
}

.player-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 24px;
}

.player-actions > span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 359px) {
  .login-copy h1,
  .welcome-block h2,
  .section-heading h2 {
    font-size: 32px;
  }

  .book-entry {
    grid-template-columns: 39% 1fr;
    gap: 16px;
  }

  .continue-action {
    max-width: 100%;
    align-self: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

html[data-reduce-motion="true"] *,
html[data-reduce-motion="true"] *::before,
html[data-reduce-motion="true"] *::after {
  scroll-behavior: auto !important;
  transition-duration: .01ms !important;
  animation-duration: .01ms !important;
}
