:root {
  --bg: #070707;
  --ink: #f4f1ec;
  --muted: rgba(244, 241, 236, 0.62);
  --line: rgba(255, 255, 255, 0.1);
  --red: #ff1f1f;
  --red-deep: #9d0000;
  --card-w: 210px;
  --row-pad: max(48px, 5vw);
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  overflow: hidden;
}
body.ready { overflow: auto; }
html.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}
body.modal-open {
  position: fixed;
  top: var(--modal-scroll-top, 0);
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 241, 236, 0.42) transparent;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(244, 241, 236, 0.28);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red);
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: transparent; }
img { display: block; max-width: 100%; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Splash: logo wipes on left to right, then the whole frame fades. */
#splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #000;
}
.splash-lockup {
  width: min(88vw, 920px);
}
.splash-stage {
  position: relative;
  width: 100%;
}
.splash-progress {
  --splash-p: 0;
  position: relative;
  width: min(520px, 62%);
  height: 22px;
  margin: 26px auto 0;
}
.splash-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgba(255, 255, 255, 0.16);
}
.splash-progress-fill {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  transform: scaleX(var(--splash-p));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--red-deep), var(--red) 62%, #fff);
  box-shadow: 0 0 18px rgba(255, 31, 31, 0.55);
}
.splash-progress-edge {
  position: absolute;
  top: 50%;
  left: calc(var(--splash-p) * 100%);
  width: 2px;
  height: 18px;
  margin: -9px 0 0 -1px;
  background: linear-gradient(180deg, transparent, #fff, var(--red), transparent);
  box-shadow: 0 0 24px 6px rgba(255, 40, 40, 0.85);
  opacity: 0;
  animation: splash-bar-edge 1.15s var(--ease) forwards;
}
@keyframes splash-bar-edge {
  0% { opacity: 0; }
  8% { opacity: 1; }
  100% { opacity: 1; }
}
.splash-stage img {
  width: 100%;
  height: auto;
  clip-path: inset(0 100% 0 0);
  transform: translateX(-6%) scale(0.94);
  animation: wipe 1.15s var(--ease) forwards;
}
.splash-edge {
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, #fff, var(--red), transparent);
  box-shadow: 0 0 24px 6px rgba(255, 40, 40, 0.85);
  offset-anchor: 0 50%;
  opacity: 0;
  animation: edge 1.15s var(--ease) forwards;
}
#splash.leave {
  animation: splash-out 0.85s var(--ease) forwards;
  pointer-events: none;
}
@keyframes wipe {
  0% { clip-path: inset(0 100% 0 0); transform: translateX(-6%) scale(0.94); }
  62% { clip-path: inset(0 0 0 0); transform: translateX(0) scale(1.015); }
  100% { clip-path: inset(0 0 0 0); transform: translateX(0) scale(1); }
}
@keyframes edge {
  0% { transform: translateX(0); opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateX(min(88vw, 920px)); opacity: 0; }
}
@keyframes splash-out {
  to { opacity: 0; visibility: hidden; }
}

.app {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(8px);
  min-height: 100%;
}
body.ready .app {
  animation: arrive 1s var(--ease) forwards;
}
@keyframes arrive {
  to { opacity: 1; transform: none; filter: none; }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  height: var(--nav-h);
  padding: 0 4vw;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0));
}
.nav-left { display: flex; align-items: center; gap: 22px; min-width: 0; }
.brand { height: 36px; flex: none; display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav-tools { justify-self: end; display: flex; align-items: center; gap: 12px; }
.browse-control { position: relative; }
.browse-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s;
}
.browse-toggle svg { width: 12px; height: 8px; transition: transform 0.2s; }
.browse-toggle:hover,
.browse-toggle:focus-visible,
.browse-toggle[aria-expanded="true"] { color: white; }
.browse-toggle[aria-expanded="true"] { border-bottom-color: var(--red); }
.browse-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.browse-menu {
  position: absolute;
  z-index: 45;
  top: calc(100% + 12px);
  right: 0;
  width: min(400px, calc(100vw - 24px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(13, 14, 17, 0.98);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(18px);
  animation: browse-menu-in 0.18s var(--ease) both;
}
.browse-menu[hidden] { display: none !important; }
@keyframes browse-menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.browse-menu-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--line);
}
.browse-menu-heading strong { font-size: 16px; }
.browse-menu-heading span { color: var(--muted); font-size: 11px; font-weight: 600; }
.browse-section { margin-top: 14px; }
.browse-section h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.browse-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.browse-card {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.browse-card:hover,
.browse-card:focus-visible,
.browse-card.is-current {
  transform: translateY(-1px);
  border-color: rgba(255, 31, 31, 0.52);
  background: rgba(255, 255, 255, 0.07);
}
.browse-card > svg,
.browse-updates > svg { width: 21px; height: 21px; flex: none; color: var(--red); }
.browse-card span { min-width: 0; }
.browse-card strong,
.browse-card em { display: block; }
.browse-card strong { font-size: 13px; font-weight: 650; }
.browse-card em { margin-top: 2px; color: var(--muted); font-size: 10px; font-style: normal; }
.browse-updates {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 4px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.browse-updates > span { margin-left: auto; color: var(--muted); font-size: 20px; }
.browse-updates:hover { color: white; }
.browse-toggle .update-pip,
.browse-updates .update-pip { display: none; }
.browse-toggle.has-new { color: white; }
.browse-toggle.has-new .update-pip {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 31, 31, 0.55);
  animation: update-pip 1.8s ease-out infinite;
}
.browse-updates.has-new { color: white; }
.browse-updates.has-new .update-pip {
  display: inline-block;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 31, 31, 0.16);
  color: #ffb4b4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  animation: update-pip 1.8s ease-out infinite;
}
.browse-updates.has-new > span[aria-hidden="true"] { margin-left: 8px; }
@keyframes update-pip {
  0% { box-shadow: 0 0 0 0 rgba(255, 31, 31, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(255, 31, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 31, 31, 0); }
}
.search-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.search-toggle:hover,
.search-toggle:focus-visible {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}
.search-toggle svg { width: 21px; height: 21px; }
.search { position: relative; width: 100%; }
.suggest {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(420px, 62vh);
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #101010;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.suggest[hidden] { display: none !important; }
.suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
}
.suggest-item.is-on, .suggest-item:hover { background: rgba(255, 255, 255, 0.06); }
.suggest-item img, .suggest-blank {
  width: 36px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  background: #1a1a1a;
  flex: none;
}
.suggest-item strong { display: block; font-size: 14px; font-weight: 600; }
.suggest-item em { color: var(--muted); font-style: normal; font-size: 12px; }
.suggest-item mark { background: none; color: var(--red); font-weight: 700; }
.suggest-item.is-person img, .suggest-item.is-person .suggest-blank {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.suggest-empty { margin: 0; padding: 12px 10px; color: var(--muted); font-size: 13px; }
.suggest-idle {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 48px 24px;
  text-align: center;
  font-size: 16px;
}
.search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.search input:focus {
  border-color: rgba(255, 31, 31, 0.7);
  background: rgba(0, 0, 0, 0.45);
}
.search-dialog {
  position: fixed;
  top: calc(var(--nav-h) + 16px);
  left: 50%;
  flex-direction: column;
  width: min(920px, calc(100vw - 40px));
  height: min(740px, calc(100vh - var(--nav-h) - 40px));
  max-height: calc(100vh - var(--nav-h) - 32px);
  margin: 0;
  padding: 18px 18px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(255, 31, 31, 0.16), transparent 42%),
    #101010;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7);
  transform: translateX(-50%);
}
.search-dialog[open] { display: flex; }
.search-panel-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.search-bar-row { display: flex; align-items: center; gap: 10px; }
.search-panel-inner .search { flex: 1; min-width: 0; }
.search-panel-inner .search input {
  padding: 15px 22px;
  font-size: 17px;
}
.search-panel-inner .suggest {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  flex: 1;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.38);
  box-shadow: none;
}
.search-panel-inner .suggest-item { gap: 16px; padding: 10px 12px; }
.search-panel-inner .suggest-item img,
.search-panel-inner .suggest-blank { width: 72px; height: 106px; border-radius: 8px; }
.search-panel-inner .suggest-item.is-person img,
.search-panel-inner .suggest-item.is-person .suggest-blank {
  width: 72px;
  height: 106px;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: #1a1a1a;
}
.search-panel-inner .suggest-item strong { font-size: 18px; }
.search-panel-inner .suggest-item em { font-size: 14px; }
.search-close {
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
}
.search-close:hover,
.search-close:focus-visible { background: rgba(255, 255, 255, 0.13); color: white; }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: white;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 78vh;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + 8vh) 4vw 5vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  touch-action: pan-y;
}
.hero[hidden] { display: none; }
.hero-copy.hero-enter-next { animation: hero-copy-next 0.48s var(--ease) both; }
.hero-copy.hero-enter-prev { animation: hero-copy-prev 0.48s var(--ease) both; }
@keyframes hero-copy-next {
  from { opacity: 0; transform: translateX(44px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes hero-copy-prev {
  from { opacity: 0; transform: translateX(-44px); }
  to { opacity: 1; transform: translateX(0); }
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 90%, rgba(255, 31, 31, 0.55), transparent 46%),
    radial-gradient(ellipse at 78% 18%, rgba(120, 0, 0, 0.45), transparent 42%),
    radial-gradient(ellipse at 60% 70%, rgba(255, 255, 255, 0.05), transparent 30%),
    linear-gradient(160deg, #141414 0%, #070707 55%, #1a0505 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.15) 58%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 20%, #070707 96%);
}
.hero-copy { position: relative; z-index: 1; max-width: 740px; }
.hero-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: background 0.2s, border-color 0.2s;
}
.hero-arrow svg {
  display: block;
  width: 19px;
  height: 19px;
}
.hero-arrow:hover,
.hero-arrow:focus-visible {
  border-color: white;
  background: rgba(255, 31, 31, 0.85);
}
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
.hero-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
}
.hero-dot {
  position: relative;
  display: block;
  flex: none;
  width: 9px;
  height: 9px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s, border-color 0.2s, background 0.2s;
}
.hero-dot:hover,
.hero-dot:focus-visible { background: white; }
.hero-dot.is-on {
  width: 26px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.16);
}
.hero-dot.is-on:hover,
.hero-dot.is-on:focus-visible { background: rgba(255, 255, 255, 0.16); }
.hero-dot-progress {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  animation: hero-dot-fill 5s linear both;
}
.hero.is-paused .hero-dot-progress { animation-play-state: paused; }
@keyframes hero-dot-fill {
  to { transform: scaleX(1); }
}
.kicker {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
}
.hero-bg img,
.sheet-hero img,
.card-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg img { object-position: center; visibility: hidden; opacity: 0; }
.hero-bg img.is-on { visibility: visible; opacity: 1; }
@media (min-width: 801px) {
  .hero-bg img { object-position: center top; }
}
.hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.86;
  margin: 12px 0 18px;
  letter-spacing: -0.03em;
}
.hero h1.long { font-size: clamp(40px, 5.4vw, 84px); }
.hero h1 em { font-style: italic; color: #fff; }
.hero-meta { color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.hero p.synopsis {
  font-size: 18px;
  line-height: 1.45;
  max-width: 520px;
  color: rgba(244, 241, 236, 0.86);
}
.actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: white;
  color: #111;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.35s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid var(--line);
}
.btn.play { background: var(--red); color: white; }
.play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}

body.ready .hero-copy > * {
  animation: lift 0.9s var(--ease) both;
}
body.ready .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
body.ready .hero-copy > *:nth-child(3) { animation-delay: 0.14s; }
body.ready .hero-copy > *:nth-child(4) { animation-delay: 0.2s; }
body.ready .hero-copy > *:nth-child(5) { animation-delay: 0.26s; }
@keyframes lift {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.row { padding: 8px 0 28px; }
.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 var(--row-pad) 12px;
}
.row h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.row-head.has-note {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.row-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.row.is-grid .row-head {
  padding-left: max(88px, 7vw);
  padding-right: max(88px, 7vw);
}
.poster-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 72px;
  padding: 20px max(88px, 7vw) 80px;
}
.poster-grid .card { width: auto; }
.poster-grid .card-art { height: auto; aspect-ratio: 2 / 3; }
.poster-grid .card-sub {
  width: auto;
  margin-top: 12px;
}
.browse-catalog {
  padding: calc(var(--nav-h) + 12px) max(88px, 7vw) 48px;
}
.browse-catalog-head h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.browse-sorts,
.browse-genres {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.browse-genres {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.browse-sorts button,
.browse-genres button {
  padding: 4px 0 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
}
.browse-sorts button.is-on,
.browse-genres button.is-on {
  color: white;
  box-shadow: inset 0 -2px 0 var(--red);
}
.browse-reset {
  margin-left: auto;
  padding: 7px 14px !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px;
  color: var(--ink) !important;
  box-shadow: none !important;
}
.browse-reset:hover,
.browse-reset:focus-visible { border-color: rgba(255, 255, 255, 0.28) !important; }
.browse-status {
  margin: 28px 0;
  color: var(--muted);
  text-align: center;
}
.poster-grid.is-browse {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  padding: 22px 0 28px;
}
.poster-grid.is-browse .card { min-width: 0; animation: none; }
.browse-more {
  display: block;
  margin: 8px auto 12px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}
.browse-more:hover,
.browse-more:focus-visible { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.08); }
.browse-more:disabled { opacity: 0.6; }
.scroller-wrap { position: relative; }
.scroller {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  overflow-anchor: none;
  scroll-snap-type: x proximity;
  padding: 16px var(--row-pad) 28px;
  scroll-padding-inline: var(--row-pad);
  scrollbar-width: none;
}
.scroller.is-free { scroll-snap-type: none; }
.scroller::-webkit-scrollbar { display: none; }
.row-bar {
  position: absolute;
  z-index: 3;
  left: var(--row-pad);
  right: var(--row-pad);
  bottom: 2px;
  height: 16px;
  opacity: 0;
  pointer-events: none;
  cursor: grab;
  transition: opacity 0.28s var(--ease);
}
.row-bar.is-off { display: none; }
.row-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.row-bar-thumb {
  position: absolute;
  left: 0;
  bottom: 4px;
  height: 5px;
  border-radius: 999px;
  background: rgba(244, 241, 236, 0.72);
}
.row-bar.is-drag { cursor: grabbing; }
.row-bar:hover .row-bar-thumb,
.row-bar.is-drag .row-bar-thumb { background: white; }
@media (hover: hover) and (pointer: fine) {
  .row:hover .row-bar:not(.is-off),
  .row:focus-within .row-bar:not(.is-off),
  .row-bar.is-drag:not(.is-off) {
    opacity: 1;
    pointer-events: auto;
  }
}
.nudge {
  position: absolute;
  top: 34%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  color: white;
  line-height: 0;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s;
}
.nudge svg { display: block; width: 18px; height: 18px; }
.scroller-wrap:hover .nudge { opacity: 1; }
.nudge.prev { left: 16px; }
.nudge.next { right: 16px; }

.card {
  position: relative;
  flex: none;
  width: var(--card-w);
  scroll-snap-align: start;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  animation: card-in 0.7s var(--ease) both;
}
.card.is-ranked { width: calc(var(--card-w) + 64px); }
.card-art {
  position: relative;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  transform: translateZ(0);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.card:hover .card-art {
  transform: translateY(-8px) scale(1.035);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 31, 31, 0.35);
}
.card.is-disabled,
.card.is-disabled * {
  cursor: default;
  pointer-events: none;
}
.card.is-disabled:hover .card-art,
.card.is-disabled .card-art {
  transform: none;
  box-shadow: none;
}
.card.is-disabled:hover .sheen { animation: none; }
.wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.78));
}
.sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.22), transparent 70%);
  transform: translateX(-120%);
}
.card:hover .sheen { animation: sheen 0.8s var(--ease); }
@keyframes sheen { to { transform: translateX(120%); } }
.card-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  line-height: 0.95;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 8px;
}
.progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}
.progress span {
  display: block;
  height: 100%;
  background: var(--red);
}
.card-sub {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: var(--card-w);
  margin-top: 10px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 13px;
}
.card-sub strong {
  color: white;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank {
  position: absolute;
  left: calc(var(--card-w) - 18px);
  bottom: 28px;
  z-index: 3;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 92px;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 16px 80px;
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  max-width: none;
  width: min(880px, calc(100vw - 32px));
}
#detail {
  width: min(1680px, calc(100vw - 64px));
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
}
#detail .continue-jump {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 18px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: var(--red);
  color: white;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
}
#detail .continue-jump[hidden] { display: none; }
#detail .continue-jump svg { width: 24px; height: 24px; }
#detail .continue-jump.is-up svg { transform: rotate(180deg); }
#detail .continue-jump:hover { background: #e00; }
#detail .continue-jump:focus-visible { outline: 2px solid white; outline-offset: 3px; }
dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}
#idle-prompt {
  width: min(1080px, calc(100vw - 40px));
  max-height: none;
  overflow: visible;
}
#idle-prompt::backdrop {
  background: rgba(7, 7, 7, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.idle-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: rgba(16, 16, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  animation: pop 0.45s var(--ease);
}
.idle-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 22px;
  line-height: 1;
}
.idle-close:hover { background: rgba(0, 0, 0, 0.75); }
.idle-banner {
  display: block;
  width: 100%;
  height: min(420px, 46vh);
  min-height: 280px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #111;
}
.idle-banner img,
.idle-blank {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #111;
}
.idle-copy { padding: 22px 26px 22px; }
.idle-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
}
.idle-card h2 {
  margin: 6px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.idle-card h2 em { font-style: italic; }
.idle-spot { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.idle-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 800px) {
  #idle-prompt { width: calc(100vw - 20px); }
  .idle-banner { height: 210px; min-height: 0; }
  .idle-copy { padding: 16px 16px 18px; }
}
dialog[open] { overscroll-behavior: contain; }
.sheet, .player {
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  animation: pop 0.45s var(--ease);
}
#detail .sheet {
  height: 100%;
  display: flex;
  flex-direction: column;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.sheet-hero {
  height: 460px;
  flex: none;
  position: relative;
  overflow: hidden;
  background: #111;
}
.sheet-hero img.hero-fill {
  object-fit: cover;
  filter: blur(32px) saturate(1.1) brightness(0.55);
  transform: scale(1.16);
}
.sheet-hero img.hero-fit {
  object-fit: contain;
  object-position: center;
  z-index: 1;
}
.sheet-hero .wash { z-index: 2; }
.sheet-top { z-index: 3; }
.sheet-body {
  padding: 22px 24px 26px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 8px;
}
.title-side {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.sheet h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(40px, 4vw, 68px);
  margin: 0;
  line-height: 0.9;
  min-width: 0;
}
.sheet .synopsis {
  margin: 12px 0 0;
  line-height: 1.45;
  color: rgba(244, 241, 236, 0.86);
}
.sheet-top {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
}
.close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  color: white;
}
.close.report {
  display: grid;
  place-items: center;
  padding: 0;
}
.close.report svg { width: 16px; height: 16px; }

#player { width: min(1040px, calc(100vw - 24px)); }
.player { background: #000; }
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
}
.player-bar span {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
}
.episodes-panel { margin-top: 26px; }
.episodes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.episodes-head h4,
.cast-panel h4,
.similar-panel h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.episodes-head h4::before,
.cast-panel h4::before,
.similar-panel h4::before {
  content: "";
  width: 3px;
  height: 22px;
  border-radius: 99px;
  background: var(--red);
}
.episodes-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.season-menu { position: relative; }
.season-menu-btn,
.episode-search input {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #121212;
  color: white;
}
.season-menu-btn {
  min-width: 138px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.season-menu-btn i {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.season-menu-list {
  position: fixed;
  z-index: 30;
  width: 180px;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border-radius: 12px;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.season-menu-list[hidden] { display: none; }
.season-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 9px 10px;
}
.season-option:hover,
.season-option.is-on { color: white; background: rgba(255, 255, 255, 0.06); }
.season-option.is-on { background: rgba(255, 31, 31, 0.16); }
.episode-search { display: block; }
.episode-search input {
  width: 230px;
  padding: 0 14px 0 36px;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a8a29a' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='M10.5 10.5 14 14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px 50%;
}
.episode-search input:focus { border-color: rgba(255, 31, 31, 0.7); }
.episode-search input::placeholder { color: rgba(244, 241, 236, 0.42); }
.episodes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.episode-note { color: var(--muted); margin: 12px 0 0; }
.season-split {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 2px;
  color: rgba(244, 241, 236, 0.78);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.season-split::before,
.season-split::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.14);
}
.episode {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
}
.episode:hover { background: #141414; border-color: rgba(255, 255, 255, 0.16); }
.episode.is-disabled,
.episode.is-disabled * {
  cursor: default;
  pointer-events: none;
}
.episode.is-disabled:hover { background: #0c0c0c; border-color: rgba(255, 255, 255, 0.08); }
.episode:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.episode.is-current {
  border-color: rgba(255, 31, 31, 0.85);
  background: rgba(255, 31, 31, 0.08);
}
.ep-thumb {
  position: relative;
  flex: none;
  width: 168px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}
.ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ep-num {
  position: absolute;
  left: 6px;
  bottom: 6px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.82);
  color: white;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.ep-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-top: 2px;
}
.ep-copy strong {
  color: white;
  font-size: 15px;
  font-weight: 600;
}
.ep-copy em {
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}
.ep-desc {
  margin-top: 4px;
  color: rgba(244, 241, 236, 0.62);
  font-size: 13.5px;
  line-height: 1.45;
}
.cast-panel { margin-top: 28px; }
.cast-row {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
.cast-card {
  flex: none;
  width: 148px;
  scroll-snap-align: start;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.45s var(--ease);
}
.cast-card:hover { transform: translateY(-4px); }
.cast-card:focus-visible {
  outline: 2px solid var(--red, #ff1f1f);
  outline-offset: 3px;
}
.cast-photo {
  position: relative;
  width: 148px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  margin-bottom: 10px;
}
.cast-photo img,
.cast-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cast-photo img { z-index: 1; object-fit: cover; object-position: center 18%; }
.cast-fallback {
  z-index: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 42px;
}
.cast-card strong {
  display: block;
  color: white;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.cast-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}
.similar-panel { margin-top: 28px; }
.similar-row {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  overflow-x: auto;
  padding: 12px 2px 10px;
  scroll-snap-type: x proximity;
}
.similar-row .card { width: 148px; }
.similar-row .card-art { height: 214px; border-radius: 12px; }
.similar-row .card-sub { width: 148px; }

body.watch {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
}
.watch-frame {
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.watch-frame.is-locked { pointer-events: none; }
.ad-gate {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 88px 22px 48px;
  text-align: center;
  background: #000;
}
.ad-gate[hidden] { display: none !important; }
.ad-gate h1 {
  max-width: 14ch;
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  line-height: 0.95;
}
.ad-gate p { max-width: 38ch; margin: 0; color: var(--muted); font-size: 16px; }
.ad-count {
  color: var(--red);
  font-size: 22px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
#ad-retry { margin-top: 8px; }
#ad-retry[hidden] { display: none !important; }
.watch-back {
  position: fixed;
  z-index: 5;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.watch-back:hover { background: rgba(255, 31, 31, 0.9); }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 28px var(--row-pad) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer a {
  color: white;
  text-decoration: none;
}
.site-footer a:hover { color: var(--red); }
.footer-links { display: flex; gap: 18px; }
.tmdb-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 620px;
  font-size: 12px;
  line-height: 1.45;
}
.tmdb-attribution img {
  display: block;
  width: 72px;
  height: auto;
}
.update-page {
  position: relative;
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 88px;
}
.updates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}
.update-page .brand-mark { display: block; width: 132px; }
.updates-back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.updates-back svg { width: 17px; height: 17px; }
.updates-back:hover,
.updates-back:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 31, 31, 0.55);
  background: rgba(255, 31, 31, 0.12);
}
.updates-intro {
  margin: 68px 0 34px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
}
.updates-intro .kicker { margin: 0 0 16px; }
.update-page h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(58px, 8vw, 96px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.update-page h1 span { color: var(--red); }
.updates-lead {
  max-width: 52ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.updates-timeline {
  position: relative;
  display: grid;
  gap: 24px;
}
.updates-timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 196px;
  width: 1px;
  background: linear-gradient(#ff1f1f, rgba(255, 31, 31, 0.34));
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}
.update.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  align-items: start;
  gap: 40px;
  margin: 0;
}
.timeline-entry::before {
  position: absolute;
  top: 23px;
  left: 196px;
  width: 11px;
  transform: translateX(-50%);
  height: 11px;
  border: 2px solid #221014;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px rgba(255, 31, 31, 0.45);
  content: "";
}
.update time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 8px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: right;
}
.update.is-new .update-card {
  border-color: rgba(255, 31, 31, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 31, 31, 0.16), 0 16px 44px rgba(0, 0, 0, 0.2);
}
.update.is-new::before { animation: update-pip 1.8s ease-out infinite; }
.update-new {
  display: inline-block;
  margin-left: 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 31, 31, 0.16);
  color: #ffb4b4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  vertical-align: 1px;
}
.update-card {
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018) 55%), #0b0b0c;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, transform 0.2s;
}
.timeline-entry:hover .update-card {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.17);
}
.update-card h2 {
  margin: 0 0 14px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.03em;
}
.update-body { color: rgba(244, 241, 236, 0.88); font-size: 16px; line-height: 1.55; }
.update-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px 0;
  border-radius: 14px;
  cursor: zoom-in;
}
.update-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.92);
}
.update-lightbox[hidden] { display: none; }
.update-lightbox-stage {
  position: absolute;
  inset: 0;
  overflow: auto;
}
.update-lightbox-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: max(100%, fit-content);
  height: max(100%, fit-content);
  min-width: 100%;
  min-height: 100%;
}
.update-lightbox img {
  display: block;
  max-width: none;
  margin: 0;
  border-radius: 0;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}
.update-lightbox-stage.is-zoomed img { cursor: zoom-out; }
.update-lightbox-stage.is-panning,
.update-lightbox-stage.is-panning img { cursor: grabbing; }
.update-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.update-lightbox-close:hover { background: rgba(0, 0, 0, 0.75); }
.update-edited {
  display: inline-block;
  margin-left: 0;
  color: rgba(244, 241, 236, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.update-card.is-edited { cursor: pointer; }
.update-compare { display: none; }
.update-card.is-open .update-current { display: none; }
.update-card.is-open .update-compare { display: grid; gap: 18px; }
.update-compare section { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.update-compare section:first-child { padding-top: 0; border-top: 0; }
.update-version {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.updates-loading,
.updates-empty {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}
.updates-loading { color: var(--muted); }
.updates-empty { display: grid; gap: 7px; }
.updates-empty strong { font-size: 18px; }
.updates-empty span { color: var(--muted); font-size: 14px; }
.updates-retry {
  justify-self: start;
  margin-top: 12px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-weight: 600;
}
.settings-page .updates-intro { margin-bottom: 30px; }
.settings-section {
  margin-top: 18px;
  padding: 26px 28px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)), #0b0b0c;
}
.settings-danger { border-color: rgba(255, 90, 90, 0.2); }
.settings-danger > .settings-row:last-child { padding-bottom: 8px; }
.settings-danger-button {
  display: inline-flex;
  min-height: 40px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(255, 70, 70, 0.4);
  border-radius: 999px;
  background: rgba(255, 31, 31, 0.12);
  color: #ffb4b4;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s;
}
.settings-danger-button:hover,
.settings-danger-button:focus-visible {
  border-color: var(--red);
  background: rgba(255, 31, 31, 0.24);
}
.settings-danger-button:disabled { cursor: wait; opacity: 0.6; }
.settings-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.settings-section-heading .kicker { margin: 0 0 5px; font-size: 10px; }
.settings-section-heading h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
}
.settings-row {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 4px;
}
.settings-row strong { display: block; font-size: 14px; font-weight: 600; }
.settings-row p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.settings-email-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}
.verification-status {
  padding: 6px 10px;
  border: 1px solid rgba(255, 190, 92, 0.3);
  border-radius: 999px;
  background: rgba(255, 190, 92, 0.08);
  color: #ffd28b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.settings-inline-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: white;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.settings-inline-link:hover,
.settings-inline-link:focus-visible { border-color: rgba(255, 31, 31, 0.6); background: rgba(255, 31, 31, 0.12); }
.settings-inline-link:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.settings-inline-link:disabled:hover { border-color: var(--line); background: rgba(255, 255, 255, 0.045); }
.settings-inline-link[hidden],
.verification-status[hidden] { display: none; }
.verification-dialog {
  position: fixed;
  width: min(440px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 32px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: linear-gradient(145deg, #171719, #0b0b0c 70%);
  color: var(--ink);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.7);
}
.verification-dialog::backdrop { background: rgba(0, 0, 0, 0.76); backdrop-filter: blur(7px); }
.verification-dialog .kicker { margin: 0 0 10px; font-size: 10px; }
.verification-dialog h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.verification-copy { margin: 12px 0 0; color: rgba(244, 241, 236, 0.78); font-size: 14px; line-height: 1.55; }
.verification-copy strong { color: white; overflow-wrap: anywhere; }
.verification-preview {
  margin: 16px 0 20px;
  padding: 10px 12px;
  border-left: 2px solid var(--red);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.verification-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.verification-code {
  width: 100%;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: white;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.42em;
  text-align: center;
}
.verification-code:focus { border-color: rgba(255, 31, 31, 0.72); outline: none; }
.verification-code::placeholder { color: rgba(255, 255, 255, 0.26); }
.verification-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.verification-dismiss { margin: 0; }
.destructive-dialog .settings-check-row {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.settings-check-row strong,
.settings-check-row small { display: block; }
.settings-check-row strong { font-size: 14px; }
.settings-check-row small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.settings-check-row input { width: 18px; height: 18px; flex: none; accent-color: var(--red); }
.wipe-confirm-copy {
  margin: 17px 0 0;
  color: #ffd28b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.confirmation-text-input { font-size: 16px; letter-spacing: normal; text-align: left; }
.delete-confirm-label { margin-top: 16px; }
.destructive-dialog .verification-actions { margin-top: 20px; }
.destructive-dialog .settings-inline-link { cursor: pointer; }
.destructive-dialog .settings-danger-button { min-height: 44px; }
.verification-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 21px;
}
.verification-close:hover { background: rgba(255, 255, 255, 0.14); }
.settings-toggle-row { cursor: pointer; }
.settings-toggle-row input {
  position: relative;
  width: 46px;
  height: 26px;
  flex: none;
  margin: 0;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: #292929;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.settings-toggle-row input::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  content: "";
  transition: transform 0.2s;
}
.settings-toggle-row input:checked {
  border-color: var(--red);
  background: var(--red);
}
.settings-toggle-row input:checked::before { transform: translateX(20px); }
.settings-toggle-row input:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.settings-save-note {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.settings-save-note.is-error { color: #ffb4b4; }
.update-body p { margin: 0 0 10px; }
.update-body h3 {
  margin: 14px 0 6px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}
.update-body blockquote {
  margin: 10px 0;
  padding-left: 12px;
  border-left: 3px solid var(--red);
  color: var(--muted);
}
.update-body code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
  padding: 0 4px;
  border-radius: 4px;
  background: #1a1a1a;
}
.update-body pre {
  margin: 10px 0;
  padding: 12px 14px;
  overflow: auto;
  border-radius: 12px;
  background: #111;
}
.update-body pre code { padding: 0; background: transparent; }
.update-body ul, .update-body ol { margin: 8px 0; padding-left: 1.3em; }
.update-body a { color: white; }
.update-body a:hover { color: var(--red); }
.update-body .spoiler {
  border-radius: 4px;
  background: #1a1a1a;
  color: transparent;
  cursor: pointer;
}
.update-body .spoiler:hover, .update-body .spoiler.is-open { color: inherit; }
.update-body .log-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #1c1e2a;
  color: inherit;
  text-decoration: none;
}
.update-body a.log-card::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex: none;
  background: currentColor;
  opacity: 0.8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10.6 13.4a1 1 0 0 1 0-1.4l.3-.3a4 4 0 0 1 5.7 0l1.2 1.2a4 4 0 0 1 0 5.7l-.3.3a1 1 0 0 1-1.4-1.4l.3-.3a2 2 0 0 0 0-2.8l-1.2-1.2a2 2 0 0 0-2.8 0l-.3.3a1 1 0 0 1-1.5-.1zm2.8-2.8a1 1 0 0 1 0 1.4l-.3.3a4 4 0 0 1-5.7 0L6.2 11a4 4 0 0 1 0-5.7l.3-.3a1 1 0 0 1 1.4 1.4l-.3.3a2 2 0 0 0 0 2.8l1.2 1.2a2 2 0 0 0 2.8 0l.3-.3a1 1 0 0 1 1.5.1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10.6 13.4a1 1 0 0 1 0-1.4l.3-.3a4 4 0 0 1 5.7 0l1.2 1.2a4 4 0 0 1 0 5.7l-.3.3a1 1 0 0 1-1.4-1.4l.3-.3a2 2 0 0 0 0-2.8l-1.2-1.2a2 2 0 0 0-2.8 0l-.3.3a1 1 0 0 1-1.5-.1zm2.8-2.8a1 1 0 0 1 0 1.4l-.3.3a4 4 0 0 1-5.7 0L6.2 11a4 4 0 0 1 0-5.7l.3-.3a1 1 0 0 1 1.4 1.4l-.3.3a2 2 0 0 0 0 2.8l1.2 1.2a2 2 0 0 0 2.8 0l.3-.3a1 1 0 0 1 1.5.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.donate-bubble {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: calc(var(--donate-base-bottom, 22px) + var(--donate-footer-lift, 0px));
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 18px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.45s var(--ease);
}
body:not(.ready) .donate-bubble { opacity: 0; pointer-events: none; }
.donate-bubble svg { width: 22px; height: 22px; }
.donate-bubble:hover { transform: translateY(-3px) scale(1.04); }
.donate-dialog {
  width: min(460px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
}
#donate.donate-dialog {
  width: min(920px, calc(100vw - 32px));
}
.donate-card {
  position: relative;
  max-height: calc(100vh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 28px 24px 22px;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 22px;
  animation: pop 0.45s var(--ease);
}
#donate .donate-card-wide {
  padding: 38px 42px 40px;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 31, 31, 0.1), transparent 38%),
    #101010;
}
#donate .donate-heading { padding-right: 48px; }
#donate .donate-heading h2 {
  margin-top: 8px;
  font-size: clamp(40px, 5vw, 54px);
}
#donate .donate-lead {
  max-width: 660px;
  margin-top: 10px;
}
.donate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}
.donate-section-heading h3,
.donate-apply-box h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.donate-section-heading p,
.donate-apply-box > p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.donate-coins {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.donate-card .kicker {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.donate-card h2 {
  margin: 6px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.donate-lead, .donate-note, .donate-status, .donate-wallet-note { color: var(--muted); line-height: 1.5; }
.donate-wallet-note { margin: 0; }
.donate-lead { margin: 12px 0 0; }
.coin {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}
.coin strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0;
}
.coin strong span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: right;
}
.addr {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #161616;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.35s var(--ease);
}
.addr span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
}
.addr em {
  flex: none;
  margin-left: auto;
  color: var(--red);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
}
.addr:hover, .addr:focus-visible { border-color: rgba(255, 31, 31, 0.7); }
.donate-next { display: grid; gap: 14px; }
.donate-benefit {
  padding: 18px 18px 17px;
  border: 1px solid rgba(255, 31, 31, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 31, 31, 0.13), rgba(255, 31, 31, 0.035));
}
.donate-benefit-label {
  display: block;
  color: #ff7777;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.donate-benefit strong {
  display: block;
  margin-top: 8px;
  font-size: 21px;
}
.donate-benefit p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.donate-apply-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}
.donate-apply-start,
.donate-apply .btn { width: 100%; }
.donate-apply-start { margin-top: 16px; }
#donate .donate-apply-start { margin-top: 16px; }
.donate-apply { display: grid; gap: 10px; margin-top: 16px; }
.donate-apply[hidden] { display: none; }
.donate-apply label { color: var(--muted); font-size: 13px; }
.donate-apply input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #161616;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.donate-apply input:focus { outline: 2px solid var(--red); outline-offset: 2px; }
#donate .donate-apply .btn { margin-top: 0; }
#donate .donate-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}
#donate .donate-status[hidden] { display: none; }
.report-reasons {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}
.report-dialog { width: min(900px, calc(100vw - 32px)); }
#report .report-form {
  padding: 38px 42px 40px;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(255, 31, 31, 0.12), transparent 38%),
    #101010;
}
.report-heading { max-width: 680px; padding-right: 44px; }
#report .report-heading h2 {
  margin-top: 8px;
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1;
  overflow-wrap: anywhere;
}
.report-lead { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.report-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 24px;
  align-items: start;
  margin-top: 26px;
}
.report-reasons legend { margin: 0 0 12px; color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.report-reasons label {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: #e8e4df;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.report-reasons label:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.045); }
.report-reasons label:has(input:checked) { border-color: rgba(255, 31, 31, 0.62); background: linear-gradient(110deg, rgba(255, 31, 31, 0.12), rgba(255, 31, 31, 0.035)); color: white; }
.report-reasons input {
  appearance: none;
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: #111;
}
.report-reasons input:checked { border: 5px solid var(--red); background: white; }
.report-reasons input:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.report-details {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}
.report-details h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.report-details > div p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.report-card .field-label { display: block; margin: 2px 0 -6px; color: var(--muted); font-size: 12px; font-weight: 600; }
#report .report-card textarea {
  width: 100%;
  min-height: 150px;
  margin-top: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  background: #0c0c0c;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
}
#report .report-card textarea:focus { outline: 2px solid var(--red); outline-offset: 2px; }
#report .report-details > .btn { width: 100%; margin-top: 0; }
#report .donate-status { margin: 0; }
#report .donate-status[hidden] { display: none; }
.donate-status a { color: white; }
.live-note {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(420px, calc(100vw - 28px));
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #101010;
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
body.watch .live-note { bottom: 28px; }
.live-stack {
  position: fixed;
  z-index: 70;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 28px));
  pointer-events: none;
}
.live-stack .live-note {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: none;
  padding: 12px 42px 12px 12px;
  white-space: pre-wrap;
  word-break: break-word;
  pointer-events: auto;
}
.note-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.note-copy { min-width: 0; }
.live-note.is-info { border-color: rgba(61, 126, 255, 0.5); }
.live-note.is-info .note-mark { background: #3d7eff; color: white; }
.live-note.is-notice { border-color: rgba(244, 241, 236, 0.28); }
.live-note.is-notice .note-mark {
  background: #f4f1ec;
  color: #161616;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 600;
}
.live-note.is-warning { border-color: rgba(245, 180, 0, 0.55); }
.live-note.is-warning .note-mark { background: #f5b400; color: #1a1200; }
.live-note.is-urgent { border-color: rgba(255, 31, 31, 0.7); }
.live-note.is-urgent .note-mark { background: #ff1f1f; color: white; font-size: 16px; letter-spacing: -0.06em; }
.live-close {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.35s var(--ease);
}
.live-stack .live-note:hover .live-close,
.live-stack .live-note:focus-within .live-close,
.live-close.is-shown { opacity: 1; }
@media (hover: none) {
  .live-close { opacity: 1; }
}
body.watch .live-stack { top: 76px; }
.donate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
body.legal,
body:has(> .missing) { overflow: auto; height: auto; min-height: 100%; }
.updates-page-body {
  background-color: #160a0d;
  background-image: linear-gradient(180deg, #4a151c 0%, #301016 42%, #221014 100%);
  background-attachment: fixed;
}
.dmca-card {
  width: min(640px, 100%);
  padding: 36px 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #101010;
  text-align: left;
}
.dmca-card img { width: 140px; margin-bottom: 22px; }
.dmca-card h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 58px);
  line-height: 0.95;
  margin: 0 0 14px;
}
.dmca-card h2 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 600;
}
.dmca-card p {
  margin: 0 0 12px;
  color: rgba(244, 241, 236, 0.74);
  line-height: 1.55;
}
.dmca-card a { color: white; }
.dmca-card a:hover { color: var(--red); }
@media (max-width: 640px) {
  .update-page {
    width: calc(100% - 32px);
    padding: 16px 0 56px;
  }
  .update-page .brand-mark { width: 116px; }
  .updates-back {
    min-height: 40px;
    gap: 7px;
    padding: 0 12px;
    font-size: 12px;
  }
  .updates-intro { margin: 50px 0 26px; padding-bottom: 22px; }
  .update-page h1 { font-size: clamp(54px, 15vw, 76px); }
  .updates-lead { margin-top: 12px; font-size: 14px; }
  .updates-timeline { gap: 20px; }
  .updates-timeline::before,
  .timeline-entry::before { left: 5px; }
  .update.timeline-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding-left: 24px;
  }
  .timeline-entry::before {
    top: 2px;
    width: 10px;
    height: 10px;
  }
  .update time { justify-content: flex-start; margin: 0; text-align: left; }
  .update-card { padding: 20px 18px; border-radius: 15px; }
  .update-card h2 { font-size: 32px; }
  .update-body { font-size: 15px; }
  .updates-loading,
  .updates-empty { padding: 22px 18px; }
  .settings-section { padding: 21px 18px 15px; border-radius: 15px; }
  .settings-section-heading h2 { font-size: 30px; }
  .settings-row { gap: 12px; }
  .settings-email-actions { align-items: flex-end; flex-direction: column; }
  .verification-dialog { padding: 28px 22px 22px; }
  .verification-dialog h2 { font-size: 36px; }
  .verification-actions { align-items: stretch; flex-direction: column-reverse; }
  .verification-actions > * { justify-content: center; }
}
.missing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: #070707;
  color: white;
  font-family: Outfit, "Segoe UI", sans-serif;
}
.missing-card {
  width: min(520px, 100%);
  text-align: center;
}
.missing-card img { width: 180px; margin: 0 auto 28px; }
.missing-card h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.9;
  margin: 8px 0 12px;
}
.missing-card p { color: rgba(244, 241, 236, 0.72); line-height: 1.5; }
.missing-card .btn { margin-top: 22px; text-decoration: none; }
.screen .scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: scan 3.4s linear infinite;
}
@keyframes scan { from { top: -20%; } to { top: 100%; } }
.screen-title {
  position: absolute;
  inset: auto 28px 72px 28px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(36px, 5vw, 68px);
}
.transport {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 16px;
}
.bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  animation: playhead 36s linear forwards;
}
@keyframes playhead { to { width: 100%; } }
.time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.rate-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin: 0;
}
.rate {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  display: grid;
  place-items: center;
}
.rate svg { width: 20px; height: 20px; }
.rate.down svg { transform: rotate(180deg); }
.rate.love { width: 58px; display: flex; gap: 0; }
.rate:hover, .rate.is-on { background: white; color: #111; }
.more-like {
  flex: none;
  margin: 0;
  border: 0;
  background: transparent;
  color: rgba(244, 241, 236, 0.62);
  font-size: 13px;
  line-height: 1.2;
  padding: 0;
  text-align: right;
  text-decoration: none;
  white-space: nowrap;
}
.more-like:hover, .more-like.is-on { color: white; }
.login-pop {
  margin: 12px 0 0;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 12px;
  background: white;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.account { position: relative; }
.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  padding: 8px;
  border-radius: 16px;
  background: #141414;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 4px;
}
.account-menu[hidden] { display: none; }
.account-menu a[hidden],
.account-menu button[hidden] { display: none; }
.account-menu a,
.account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: white;
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  font: inherit;
}
.account-menu a:hover,
.account-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.account-email {
  margin: 0;
  padding: 8px 12px 4px;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-card {
  width: min(440px, 100%);
  text-align: left;
}
.auth-card img { width: 160px; margin: 0 0 22px; }
.auth-card h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 0.9;
  margin: 8px 0 8px;
}
.auth-note { margin: 0 0 18px; color: rgba(244, 241, 236, 0.72); }
.auth-card label {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}
.auth-card input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: white;
  outline: none;
}
.auth-card input:focus { border-color: rgba(255, 31, 31, 0.7); }
.auth-error {
  margin: 14px 0 0;
  color: #ffb4b4;
  font-size: 14px;
}
.auth-card .btn {
  margin-top: 18px;
  border: 0;
  cursor: pointer;
}
.auth-switch { margin: 16px 0 0; color: var(--muted); }
.auth-switch a { color: white; }

@media (max-width: 800px) {
  :root { --row-pad: 20px; --nav-h: 76px; }
  .nav {
    height: auto;
    min-height: var(--nav-h);
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding-top: 12px;
    padding-bottom: 8px;
  }
  .nav-left { grid-row: 1; grid-column: 1; }
  .brand { grid-row: 1; grid-column: 1; }
  .nav-tools { grid-row: 1; grid-column: 2; }
  .scroller { gap: 16px; }
  .search-dialog {
    top: calc(var(--nav-h) + 8px);
    width: calc(100vw - 16px);
    height: calc(100vh - var(--nav-h) - 16px);
    padding: 12px;
  }
  .browse-menu {
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    right: 12px;
  }
  .hero { min-height: 74vh; }
  .hero-arrow { width: 38px; height: 38px; font-size: 26px; }
  .hero-arrow.prev { left: 12px; }
  .hero-arrow.next { right: 12px; }
  .hero-dots { bottom: 18px; gap: 7px; }
  .hero-dot { width: 7px; height: 7px; }
  .hero-dot.is-on { width: 22px; }
  .donate-bubble {
    --donate-base-bottom: 14px;
    right: 14px;
    height: 52px;
    padding: 0 16px 0 14px;
  }
  .live-stack { top: 128px; }
  .donate-card { padding: 24px 16px 18px; }
  .donate-card h2 { font-size: 32px; }
  #donate.donate-dialog { width: min(640px, calc(100vw - 24px)); }
  #donate .donate-card-wide { padding: 26px 20px 22px; }
  #donate .donate-heading h2 { font-size: clamp(36px, 8vw, 46px); }
  .donate-layout { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
  .donate-next { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-dialog { width: min(680px, calc(100vw - 24px)); }
  #report .report-form { padding: 26px 20px 22px; }
  #report .report-heading h2 { font-size: clamp(36px, 8vw, 46px); }
  .report-form-layout { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
  .hero h1 { font-size: 64px; }
  #detail {
    width: min(420px, calc(100vw - 24px));
    height: min(680px, calc(100vh - 24px));
  }
  .sheet-hero { height: 180px; }
  .sheet-hero img.hero-fill { display: none; }
  .sheet-hero img.hero-fit { object-fit: cover; }
  .title-row { align-items: flex-start; gap: 10px; }
  .title-side { flex-direction: column; align-items: flex-end; max-width: 46%; }
  .sheet h3 { font-size: 36px; }
  .more-like { font-size: 12px; white-space: normal; }
  :root { --card-w: 160px; }
  .card-art { height: 230px; }
  .row.is-grid .row-head,
  .poster-grid { padding-left: 24px; padding-right: 24px; }
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .poster-grid.is-browse { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .browse-catalog { padding: calc(var(--nav-h) + 8px) 24px 36px; }
  .browse-reset { margin-left: 0; }
  .poster-grid .card-art { height: auto; }
  .nudge { display: none; }
  .episodes-head { align-items: stretch; flex-direction: column; }
  .episodes-tools { flex-direction: column; align-items: stretch; }
  .season-menu-btn, .episode-search input { width: 100%; }
  .ep-thumb { width: 112px; }
  .cast-card, .cast-photo { width: 112px; }
  .dmca-card { padding: 28px 20px 22px; }
  .ep-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .tmdb-attribution {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
}

@media (max-width: 520px) {
  #donate .donate-card-wide { padding: 24px 16px 18px; }
  #report .report-form { padding: 24px 16px 18px; }
  .donate-coins,
  .donate-next { grid-template-columns: 1fr; }
  .donate-coins { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
  .hero-dot-progress { animation-duration: 5s !important; }
  .hero-dot-progress { animation-duration: 0.01ms; }
}

.settings-page-body {
  background:
    radial-gradient(ellipse at 50% -28%, rgba(255, 255, 255, 0.075), transparent 52%),
    #090a0c;
}
.settings-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(920px, calc(100% - 48px));
  padding: 26px 0 72px;
}
.settings-page > .updates-header,
.settings-page > .updates-intro { grid-column: 1 / -1; }
.settings-page .updates-header {
  min-height: 54px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.settings-page .brand-mark { width: 124px; }
.settings-page .updates-back {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78);
}
.settings-page .updates-back:hover,
.settings-page .updates-back:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
}
.settings-page .updates-intro {
  margin: 24px 0 4px;
  padding: 0 0 20px;
  border-bottom-color: rgba(255, 255, 255, 0.09);
}
.settings-page .updates-intro .kicker,
.settings-page .settings-section-heading .kicker {
  color: rgba(255, 255, 255, 0.46);
  letter-spacing: 0.15em;
}
.settings-page h1 {
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}
.settings-page h1 span { color: rgba(255, 255, 255, 0.42); }
.settings-page .updates-lead {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}
.settings-page .settings-section {
  min-width: 0;
  margin: 0;
  padding: 20px 22px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}
.settings-page .settings-danger { border-color: rgba(255, 255, 255, 0.09); }
.settings-page .settings-section-heading {
  padding-bottom: 12px;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.settings-page .settings-section-heading .kicker {
  margin-bottom: 4px;
  font-size: 9px;
}
.settings-page .settings-section-heading h2 {
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.settings-page .settings-row {
  min-height: 68px;
  gap: 12px;
  padding: 14px 0 3px;
}
.settings-page .settings-row strong { font-size: 13px; }
.settings-page .settings-row p {
  max-width: 44ch;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  line-height: 1.5;
}
.settings-page .settings-email-actions { gap: 7px; }
.settings-page .verification-status {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}
.settings-page .settings-inline-link {
  min-height: 34px;
  padding: 0 11px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
}
.settings-page .settings-inline-link:hover,
.settings-page .settings-inline-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}
.settings-page .settings-toggle-row input {
  width: 40px;
  height: 23px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.13);
}
.settings-page .settings-toggle-row input::before {
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
}
.settings-page .settings-toggle-row input:checked {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.82);
}
.settings-page .settings-toggle-row input:checked::before {
  background: #17181a;
  transform: translateX(17px);
}
.settings-page .settings-save-note {
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
}
.settings-page .settings-danger-button {
  min-height: 34px;
  padding: 0 11px;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}
.settings-page .settings-danger-button:hover,
.settings-page .settings-danger-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.settings-page .settings-danger-button:disabled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.35);
}
.settings-page #delete-account-open,
.settings-page #delete-account-open:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
}
.settings-page #delete-account-open:hover { background: rgba(255, 255, 255, 0.06); color: white; }
.settings-page .settings-danger:last-of-type .settings-row { align-items: flex-start; }
.settings-page .settings-danger:last-of-type .settings-row > div { max-width: 38ch; }
.settings-page .verification-dialog {
  border-color: rgba(255, 255, 255, 0.13);
  background: linear-gradient(145deg, #1a1b1e, #101113 70%);
}
.settings-page .verification-dialog .kicker { color: rgba(255, 255, 255, 0.45); }
.settings-page .verification-preview {
  border-left-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.045);
}
.settings-page .wipe-confirm-copy { color: rgba(255, 255, 255, 0.68); }
.settings-page .settings-check-row input { accent-color: #e5e5e5; }
.settings-page .destructive-dialog .settings-danger-button {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}
.settings-page .destructive-dialog .settings-danger-button:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
}
@media (max-width: 720px) {
  .settings-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: min(520px, calc(100% - 32px));
    padding: 16px 0 48px;
  }
  .settings-page > .updates-header,
  .settings-page > .updates-intro { grid-column: 1; }
  .settings-page .updates-intro { margin-top: 18px; }
  .settings-page .settings-section { padding: 17px 17px 13px; border-radius: 12px; }
  .settings-page .settings-row { align-items: center; }
  .settings-page .settings-row p { font-size: 10px; }
  .settings-page .settings-email-actions { align-items: flex-end; }
}
