:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #53616c;
  --soft: #edf3f1;
  --paper: #f8faf9;
  --panel: #ffffff;
  --line: #d7e0dc;
  --teal: #08746d;
  --teal-strong: #045a55;
  --coral: #c84f35;
  --blue: #2f5f98;
  --gold: #d9a624;
  --ok: #126b3a;
  --bad: #aa2d2d;
  --shadow: 0 18px 60px rgba(16, 24, 32, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html:has(body.clips-page) {
  background: #030504;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body::-webkit-scrollbar-track {
  background: #030504;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, rgba(19, 208, 191, 0.42), rgba(255, 202, 82, 0.46));
  border: 2px solid #030504;
  border-radius: 999px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #050706;
  line-height: 1.5;
}

a {
  color: inherit;
}

code,
pre,
kbd {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

button,
input,
select,
textarea {
  font: inherit;
}

.cinema-hero {
  --cinema-rail: 260px;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #101012;
  isolation: isolate;
}

#cinema-canvas,
.cinema-video,
.cinema-video-empty,
.cinema-stage-chrome {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
}

#cinema-canvas {
  display: block;
  z-index: 0;
  opacity: 1;
  transition: opacity 220ms ease;
}

.cinema-video {
  z-index: 1;
  object-fit: cover;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity 520ms ease;
}

.cinema-video.is-active {
  z-index: 2;
}

.cinema-video.is-ready {
  opacity: 1;
}

.cinema-video-empty {
  z-index: 3;
  pointer-events: none;
  background: transparent;
  box-shadow: none;
  transition: opacity 700ms ease;
}

.cinema-video-empty::before,
.cinema-video-empty::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cinema-video-empty::before {
  inset: 9% 6% 14%;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.cinema-video-empty::after {
  left: 10%;
  right: 10%;
  bottom: 14%;
  height: 1px;
  background: transparent;
}

.cinema-hero.has-generated-video .cinema-video-empty {
  opacity: 0;
}

.cinema-hero.is-restoring-video #cinema-canvas,
.cinema-hero.is-restoring-video .cinema-video-empty {
  opacity: 0;
}

.cinema-sidebar {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: var(--cinema-rail);
  padding: 16px 12px;
  background: transparent;
  border-right: 0;
  box-shadow: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.cinema-side-head,
.cinema-channel,
.cinema-top-actions {
  display: flex;
  align-items: center;
}

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

.cinema-side-head {
  gap: 9px;
  justify-content: space-between;
  height: 42px;
}

.cinema-brand-logo {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: contain;
  filter: drop-shadow(0 7px 16px rgba(15, 220, 202, 0.2));
}

.cinema-fold-glyph {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0;
  background: transparent;
  box-shadow: inset 4px 0 rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.cinema-brand-word {
  margin: 0;
  flex: 1;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.cinema-channel-stack {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.cinema-channel-stack::-webkit-scrollbar {
  width: 0;
}

.cinema-channel {
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px;
  border: 0;
  border-radius: 5px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.cinema-channel.is-active {
  background: transparent;
}

.cinema-thumb {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 18px rgba(0, 0, 0, 0.18);
}

.thumb-one {
  background: conic-gradient(from 10deg, #f42e75, #a367ff, #14e8ff, #ffd45d, #f42e75);
}

.thumb-two {
  background: radial-gradient(circle, #797d82, #202226 62%, #0f1011);
}

.thumb-three {
  background: conic-gradient(from 160deg, #ff3558, #6d35ff, #1ff6d8, #ff3558);
}

.thumb-four {
  background: conic-gradient(from 220deg, #f0422f, #f4dc3a, #2464ff, #f0422f);
}

.thumb-five {
  background: radial-gradient(circle at 40% 38%, #ffffff, #565b61 18%, #191b1d 70%);
}

.thumb-six {
  background: conic-gradient(from 40deg, #ffd45d, #fa5c43, #42156a, #13e6d1, #ffd45d);
}

.channel-tone-empty {
  background: radial-gradient(circle at 42% 40%, rgba(255, 255, 255, 0.72), rgba(34, 42, 48, 0.48) 22%, rgba(11, 13, 15, 0.95) 72%);
}

.channel-tone-0 {
  background: conic-gradient(from 10deg, #20c9bd, #f0c95a, #d65b3f, #20c9bd);
}

.channel-tone-1 {
  background: conic-gradient(from 150deg, #315f96, #20c9bd, #f0c95a, #315f96);
}

.channel-tone-2 {
  background: conic-gradient(from 220deg, #d65b3f, #f0c95a, #21a99d, #d65b3f);
}

.channel-tone-3 {
  background: radial-gradient(circle at 35% 30%, #f8faf9, #20c9bd 24%, #315f96 68%);
}

.channel-tone-4 {
  background: conic-gradient(from 80deg, #f0c95a, #8b2fff, #20c9bd, #f0c95a);
}

.channel-tone-5 {
  background: linear-gradient(135deg, #101820, #08746d 48%, #d65b3f);
}

.cinema-channel-lines {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.cinema-channel-lines i,
.cinema-side-tools span,
.cinema-side-footer span,
.cinema-top-actions span,
.choice i {
  display: block;
  border-radius: 999px;
  font-style: normal;
  letter-spacing: 0;
}

.cinema-channel-lines i {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cinema-channel-lines i + i {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 640;
}

.cinema-side-popover {
  position: fixed;
  z-index: 9;
  width: 292px;
  padding: 0;
  border: 1px solid rgba(156, 246, 0, 0.22);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(9, 13, 16, 0.5);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26), 0 0 36px rgba(32, 201, 189, 0.1);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.cinema-side-popover[hidden] {
  display: none;
}

.cinema-channel-form {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.cinema-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cinema-dialog-head h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.2;
}

.cinema-dialog-head button {
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 760;
}

.cinema-channel-form label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.cinema-channel-form input,
.cinema-channel-form textarea {
  min-width: 0;
  width: 100%;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.18);
  outline: none;
}

.cinema-channel-form input {
  height: 32px;
}

.cinema-channel-form textarea {
  min-height: 72px;
  padding-top: 8px;
  resize: vertical;
}

.cinema-channel-form input:focus,
.cinema-channel-form textarea:focus {
  border-color: rgba(32, 201, 189, 0.72);
  box-shadow: 0 0 0 3px rgba(32, 201, 189, 0.14);
}

.cinema-channel-form button,
.cinema-side-tools button,
.cinema-side-tools a,
.cinema-mini-action,
.cinema-top-actions button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.cinema-channel-form > button {
  height: 34px;
  border-radius: 5px;
  color: #101820;
  background: #9cf600;
  font-size: 12px;
  font-weight: 860;
  cursor: pointer;
}

.cinema-channel-form p {
  min-height: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  line-height: 1.35;
}

.cinema-side-tools {
  display: grid;
  gap: 9px;
  margin-top: -6px;
  margin-bottom: 0;
  width: 208px;
}

.cinema-side-tools span,
.cinema-side-tools button,
.cinema-side-tools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(123, 41, 255, 0.7), rgba(139, 47, 255, 0.64));
  font-size: 14px;
  font-weight: 820;
  line-height: 1.18;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cinema-side-tools button + span,
.cinema-side-tools button + a,
.cinema-side-tools a + a,
.cinema-side-tools span + span,
.cinema-side-tools span + a {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
}

.cinema-story-cta {
  width: 100%;
  height: 46px;
  padding-block: 6px;
}

.cinema-story-cta h1 {
  margin: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.12;
}

.cinema-side-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 4px 8px 2px;
}

.cinema-side-footer span:first-child {
  width: auto;
  height: auto;
  color: rgba(255, 255, 255, 0.44);
  background: none;
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.cinema-side-footer a {
  width: max-content;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  text-decoration: underline;
}

.cinema-mini-list {
  display: grid;
  gap: 10px;
}

.cinema-mini-list div,
.cinema-mini-action {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: repeat(2, auto);
  column-gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 0;
  color: inherit;
  background: none;
  text-align: left;
  text-decoration: none;
}

.cinema-mini-list span {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  opacity: 0.58;
}

.cinema-clips-action span {
  clip-path: polygon(24% 12%, 80% 50%, 24% 88%);
  background: rgba(255, 255, 255, 0.3);
}

.cinema-mini-action span {
  position: relative;
}

.cinema-mini-action span::before,
.cinema-mini-action span::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.38);
  border-radius: 999px;
}

.cinema-mini-action span::before {
  left: 16px;
  top: 8px;
  width: 2px;
  height: 18px;
}

.cinema-mini-action span::after {
  left: 8px;
  top: 16px;
  width: 18px;
  height: 2px;
}

.cinema-mini-list strong,
.cinema-mini-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cinema-mini-list strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.1;
}

.cinema-mini-list small {
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
}

.cinema-stage-chrome {
  z-index: 4;
  pointer-events: none;
}

.cinema-top-actions,
.cinema-chat-panel {
  pointer-events: auto;
}

.cinema-top-actions {
  position: absolute;
  top: 17px;
  right: 16px;
  gap: 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.cinema-description-cta-wrap {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: min(860px, calc(100vw - var(--cinema-rail) - 480px));
  transform: translateX(-50%);
  transition: transform 180ms ease;
  pointer-events: auto;
}

.cinema-description-cta-wrap.is-collapsed {
  transform: translate(-50%, calc(100% - 8px));
}

.cinema-description-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 8px 18px;
  border: 1px solid rgba(190, 146, 255, 0.5);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(90deg, rgba(123, 41, 255, 0.7), rgba(139, 47, 255, 0.64));
  box-shadow: 0 0 30px rgba(124, 45, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.86);
  touch-action: manipulation;
  backdrop-filter: blur(2px);
}

.cinema-description-cta:hover {
  border-color: rgba(210, 178, 255, 0.68);
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(90deg, rgba(133, 54, 255, 0.76), rgba(150, 64, 255, 0.7));
}

.cinema-description-cta-toggle {
  position: absolute;
  top: -9px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 16px;
  padding: 0;
  border: 1px solid rgba(210, 178, 255, 0.58);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(123, 41, 255, 0.74), rgba(139, 47, 255, 0.68));
  box-shadow: 0 0 18px rgba(124, 45, 255, 0.22);
  cursor: pointer;
}

.cinema-description-cta-toggle::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: translateY(-2px) rotate(45deg);
}

.cinema-description-cta-wrap.is-collapsed .cinema-description-cta-toggle::before {
  transform: translateY(2px) rotate(225deg);
}

.cinema-top-actions span,
.cinema-top-actions .cinema-pricing-link,
.cinema-top-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(20, 15, 31, 0.2);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 760;
}

.cinema-top-actions button:nth-child(1) {
  width: 64px;
}

.cinema-top-actions button:nth-child(2) {
  width: 100px;
  color: #17151e;
  background: rgba(255, 255, 255, 0.52);
  text-shadow: none;
}

.cinema-top-actions .recording {
  gap: 5px;
  width: auto;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  padding-inline: 4px;
}

.cinema-top-actions .recording::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4733;
  box-shadow: 0 0 10px rgba(255, 71, 51, 0.78);
}

.cinema-top-actions #viewer-count {
  width: 112px;
}

.cinema-chat-panel {
  position: absolute;
  top: 132px;
  right: 24px;
  bottom: 52px;
  z-index: 3;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(400px, 28vw);
  min-width: 320px;
  overflow: hidden;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.cinema-chat-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 24px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.cinema-chat-feed::-webkit-scrollbar {
  width: 5px;
}

.cinema-chat-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.cinema-chat-empty,
.cinema-chat-message {
  margin: 0;
  border-radius: 8px;
  line-height: 1.3;
}

.cinema-chat-empty {
  padding: 12px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 12px;
}

.cinema-chat-message {
  display: grid;
  gap: 4px;
  align-self: stretch;
  padding: 9px 11px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(194, 244, 199, 0.08);
  box-shadow: none;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.86);
}

.cinema-chat-message:nth-child(2n) {
  background: rgba(239, 180, 195, 0.08);
}

.cinema-chat-message:nth-child(3n) {
  background: rgba(225, 232, 179, 0.08);
}

.cinema-chat-message b {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1;
}

.cinema-chat-message time {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 650;
}

.cinema-chat-message span {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 590;
}

.cinema-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  position: relative;
  z-index: 2;
}

.cinema-chat-input-row {
  --image-button-size: 38px;
  display: grid;
  grid-template-columns: var(--image-button-size) minmax(0, 1fr) minmax(58px, max-content);
  align-items: stretch;
  gap: 7px;
}

.cinema-image-picker { position: relative; width: var(--image-button-size); height: var(--image-button-size); border-radius: 8px; }
.cinema-image-picker:focus-within { outline: 2px solid #d7f3df; outline-offset: 3px; }
.cinema-image-picker #chat-image { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; padding: 0; cursor: pointer; }

.cinema-image-picker #chat-image-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: var(--image-button-size);
  padding: 0;
  color: #edfff7;
  background: rgba(14, 23, 26, 0.78);
  border: 1px solid rgba(195, 241, 220, 0.3);
}

.cinema-image-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: rgba(12, 20, 23, 0.92);
  border: 1px solid rgba(195, 241, 220, 0.28);
  border-radius: 10px;
}

.cinema-image-preview[hidden] { display: none; }
.cinema-image-preview img { width: 58px; height: 58px; object-fit: cover; border-radius: 5px; }
.cinema-image-preview div { display: grid; gap: 5px; min-width: 0; flex: 1; }
.cinema-image-preview strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: 12px; }
.cinema-image-preview small { color: #b7c9c2; font-size: 10px; line-height: 1.4; }
.cinema-image-preview #chat-image-remove { min-width: 32px; padding: 0; background: transparent; color: #fff; font-size: 22px; }
.cinema-chat-form.is-dragging { outline: 2px solid #d7f3df; outline-offset: 5px; border-radius: 8px; }
.cinema-chat-form button:disabled { cursor: wait; opacity: 0.55; }
.cinema-chat-form button:focus-visible { outline: 2px solid #d7f3df; outline-offset: 3px; }

.cinema-chat-form input,
.cinema-chat-form button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
}

.cinema-chat-form input {
  min-width: 0;
  padding: 0 12px;
  color: #b5c6c0;
  background: rgba(8, 17, 19, 0.88);
  box-shadow: inset 0 0 0 1.5px rgba(151, 225, 203, 0.58), 0 2px 12px rgba(0, 0, 0, 0.22);
  text-shadow: none;
}

.cinema-chat-form input::placeholder {
  color: #788c84;
  opacity: 1;
}

#chat-message:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1.5px rgba(174, 246, 222, 0.88), 0 0 0 3px rgba(151, 225, 203, 0.1);
}

.cinema-chat-form button {
  color: #ffffff;
  background: rgba(255, 71, 51, 0.82);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.cinema-chat-input-row #chat-submit {
  padding-inline: 12px;
  white-space: nowrap;
}

.cinema-chat-status {
  min-height: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  line-height: 1.25;
}

.cinema-chat-status[data-status="error"] {
  color: #ffb9b0;
}

.cinema-chat-status[data-status="success"] {
  color: rgba(140, 255, 0, 0.9);
}

.cinema-quota-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 20;
  width: min(360px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  pointer-events: auto;
  color: #ffffff;
  border: 1px solid rgba(126, 90, 255, 0.62);
  border-radius: 8px;
  background: rgba(10, 8, 22, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 36px rgba(100, 42, 255, 0.26);
  backdrop-filter: blur(14px);
}

.cinema-quota-dialog[hidden] {
  display: none;
}

.cinema-quota-card {
  display: grid;
  gap: 13px;
  padding: 14px;
}

.cinema-quota-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cinema-quota-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: 0;
}

.cinema-quota-head button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cinema-quota-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.42;
}

.cinema-quota-primary {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(126, 55, 255, 0.96), rgba(84, 24, 185, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.cinema-vignette,
.cinema-shutter {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cinema-vignette {
  z-index: 2;
  background: transparent;
}

.cinema-shutter {
  z-index: 7;
  background: transparent;
  mix-blend-mode: normal;
}

.cinema-hero button:focus-visible,
.cinema-hero a:focus-visible,
.cinema-hero input:focus-visible {
  outline: 0;
}

.clips-page {
  color: #f4fbf8;
  background: #030504;
  min-height: 100vh;
  overflow-x: hidden;
}

.clips-page::before,
.clips-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.clips-page::before {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 40%, rgba(32, 201, 189, 0.34), transparent 27%),
    radial-gradient(circle at 70% 18%, rgba(255, 169, 66, 0.2), transparent 30%),
    radial-gradient(circle at 18% 70%, rgba(123, 41, 255, 0.18), transparent 32%),
    #030504;
}

.clips-page::after {
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 201, 189, 0.08) 1px, transparent 1px);
  background-size: 100% 5px, 76px 76px;
  opacity: 0.36;
}

.clips-page .site-header {
  position: static;
  color: #f4fbf8;
  background: rgba(3, 5, 4, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.clips-page .brand-logo {
  box-shadow: 0 0 22px rgba(32, 201, 189, 0.34);
}

.clips-page .nav-links a {
  color: rgba(244, 251, 248, 0.68);
}

.clips-page .nav-links a:hover {
  color: #ffffff;
}

.clips-page-main {
  display: grid;
  place-items: start center;
  min-height: calc(100vh - 72px);
  padding: 40px 20px 80px;
  background:
    radial-gradient(circle at 52% 36%, rgba(32, 201, 189, 0.26), transparent 30%),
    radial-gradient(circle at 78% 12%, rgba(255, 169, 66, 0.16), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 201, 189, 0.065) 1px, transparent 1px),
    #030504;
  background-size: auto, auto, 100% 5px, 76px 76px, auto;
}

.clips-page-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: min(1320px, calc(100% - 32px));
}

.clips-page-hero {
  min-width: 0;
  border: 1px solid rgba(32, 201, 189, 0.26);
  border-radius: 8px;
  background: rgba(5, 8, 9, 0.54);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(8px);
}

.clips-page-hero {
  display: grid;
  grid-template-columns: auto minmax(190px, 0.34fr) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
}

.clips-page-hero .eyebrow {
  margin: 0;
  color: #9cf600;
}

.clips-page-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.1;
}

.clips-page-hero p:not(.eyebrow) {
  margin: 0;
  color: rgba(244, 251, 248, 0.72);
  font-size: 14px;
}

.clips-page .secondary-button {
  justify-self: start;
  margin-top: 0;
  border-color: rgba(190, 146, 255, 0.5);
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(90deg, rgba(123, 41, 255, 0.74), rgba(139, 47, 255, 0.68));
}

.clips-history-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.clips-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.clips-history-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
}

.clips-history-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.clips-page-refresh,
.clips-share-selected,
.clips-card-share,
.clips-share-bar button,
.clips-share-result button,
.share-actions button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(156, 246, 0, 0.34);
  border-radius: 6px;
  color: #dfffc2;
  background: rgba(156, 246, 0, 0.1);
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.clips-share-selected,
.clips-card-share,
.clips-share-result button,
.share-actions button {
  border-color: rgba(122, 83, 255, 0.44);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(122, 83, 255, 0.82), rgba(13, 160, 148, 0.56));
}

.clips-page-refresh:disabled,
.clips-share-selected:disabled,
.clips-card-share:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.clips-share-bar,
.clips-share-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 8, 9, 0.68);
  color: rgba(244, 251, 248, 0.74);
  font-size: 12px;
  font-weight: 760;
}

.clips-share-result input {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 0 10px;
  color: #f4fbf8;
  background: rgba(255, 255, 255, 0.06);
}

.clips-share-result a,
.share-actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 0 13px;
  color: #9cf600;
  text-decoration: none;
  font-size: 12px;
  font-weight: 820;
}

.clips-page-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.clips-page-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(244, 251, 248, 0.62);
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
}

.clips-video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 8, 9, 0.62);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.clips-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(32, 201, 189, 0.18), transparent 42%),
    radial-gradient(circle at 72% 22%, rgba(156, 246, 0, 0.16), transparent 30%),
    #020403;
}

.clips-video,
.clips-video-empty {
  display: block;
  width: 100%;
  height: 100%;
}

.clips-video {
  object-fit: cover;
  background: #020403;
}

.clips-video-empty {
  display: grid;
  place-items: center;
  color: rgba(244, 251, 248, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.clips-card-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 13px;
}

.clips-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.clips-card-head span {
  flex: 0 0 auto;
  border: 1px solid rgba(156, 246, 0, 0.24);
  border-radius: 999px;
  padding: 4px 8px;
  color: #dfffc2;
  background: rgba(156, 246, 0, 0.08);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.clips-video-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.25;
}

.clips-video-card p {
  margin: 0;
  color: rgba(244, 251, 248, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.clips-video-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: rgba(244, 251, 248, 0.54);
  font-size: 11px;
  font-weight: 720;
}

.clips-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

.clips-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: rgba(244, 251, 248, 0.72);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.clips-select-input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #9cf600;
}

.clips-card-link {
  color: #9cf600;
  text-decoration: none;
}

.share-page {
  min-height: 100vh;
  color: #f4fbf8;
  background:
    linear-gradient(90deg, rgba(14, 212, 197, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(156, 246, 0, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 72% 14%, rgba(217, 166, 36, 0.18), transparent 32%),
    #030504;
  background-size: 76px 76px, 24px 24px, auto, auto;
}

.share-page .site-header {
  color: #f4fbf8;
  background: rgba(3, 5, 4, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.share-page-main {
  min-height: calc(100vh - 70px);
  padding: 64px 24px;
  background: transparent;
}

.share-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.share-player-panel,
.share-detail-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 8, 9, 0.74);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.share-player-panel {
  overflow: hidden;
  display: grid;
}

.share-player-stage {
  position: relative;
  background: #020403;
}

.share-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020403;
}

.share-player-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  border: 1px solid rgba(156, 246, 0, 0.24);
  border-radius: 8px;
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.share-player-badge span,
.share-player-badge strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-player-badge span {
  color: #9cf600;
  font-size: 11px;
  font-weight: 860;
  text-transform: uppercase;
}

.share-player-badge strong {
  color: rgba(244, 251, 248, 0.82);
  font-size: 12px;
}

.share-render-status {
  position: absolute;
  inset: 50% auto auto 50%;
  display: none;
  align-items: center;
  gap: 8px;
  max-width: min(320px, calc(100% - 36px));
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
  text-align: center;
  font-size: 13px;
  font-weight: 820;
  pointer-events: none;
}

.share-render-status.is-visible {
  display: inline-flex;
}

.share-render-status.is-waiting::before {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #9cf600;
  border-radius: 999px;
  content: "";
  animation: share-render-status-spin 0.78s linear infinite;
}

@keyframes share-render-status-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-render-status.is-waiting::before {
    animation-duration: 1.6s;
  }
}

.share-merge-strip {
  display: flex;
  gap: 6px;
  min-height: 82px;
  overflow-x: auto;
  padding: 12px 14px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(8, 18, 17, 0.94), rgba(3, 6, 6, 0.98));
  scrollbar-width: none;
}

.share-merge-strip::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.share-merge-segment {
  position: relative;
  flex: var(--share-segment-weight) 1 104px;
  min-width: 104px;
  max-width: 240px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 8px;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  color: #f4fbf8;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  text-align: left;
}

.share-merge-segment::before {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: rgba(156, 246, 0, 0.68);
  content: "";
  opacity: 0.28;
}

.share-merge-segment.is-active {
  border-color: rgba(156, 246, 0, 0.44);
  background: rgba(156, 246, 0, 0.09);
}

.share-merge-segment.is-active::before {
  opacity: 1;
}

.share-merge-segment span {
  grid-row: span 2;
  color: #9cf600;
  font-weight: 860;
}

.share-merge-segment strong,
.share-merge-segment small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-merge-segment strong {
  font-size: 12px;
  line-height: 1.2;
}

.share-merge-segment small {
  color: rgba(244, 251, 248, 0.52);
  font-size: 11px;
  font-weight: 760;
}

.share-merge-empty {
  margin: auto;
  color: rgba(244, 251, 248, 0.56);
  font-size: 12px;
  font-weight: 760;
}

.share-player-editor {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #171719;
}

.share-range-head,
.share-range-values {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.share-range-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.share-range-head span,
.share-range-values span {
  color: rgba(244, 251, 248, 0.42);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.share-range-head p {
  margin: 0;
  color: rgba(244, 251, 248, 0.58);
  font-size: 13px;
}

.share-range-head strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 860;
  text-transform: uppercase;
}

.share-range-track {
  position: relative;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 12.5%),
    #101012;
  cursor: grab;
  touch-action: none;
}

.share-range-track::before {
  position: absolute;
  inset: 27px 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  content: "";
}

.share-range-selection {
  position: absolute;
  top: -2px;
  bottom: -2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 34px;
  border: 1px solid #ff3f2e;
  border-radius: 4px;
  background: rgba(255, 63, 46, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: grab;
}

.share-range-selection strong {
  color: rgba(244, 251, 248, 0.44);
  font-size: 16px;
  font-weight: 760;
  pointer-events: none;
}

.share-range-handle {
  width: 12px;
  height: calc(100% - 8px);
  margin: 4px;
  border: 1px solid #ff3f2e;
  border-radius: 3px;
  background: #1b1b1d;
  cursor: ew-resize;
}

.share-range-values {
  align-items: stretch;
}

.share-range-values div {
  flex: 1 1 0;
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
}

.share-range-values strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.15;
}

.share-range-values div:nth-child(2) strong {
  color: #ff5a45;
}

.share-render-save {
  align-self: end;
  min-width: 116px;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  color: #171719;
  background: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 860;
}

.share-render-save:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.share-detail-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.share-detail-panel h1 {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.12;
}

.share-detail-panel p:not(.eyebrow) {
  margin: 0;
  color: rgba(244, 251, 248, 0.68);
  font-size: 14px;
}

.share-playlist {
  display: grid;
  gap: 8px;
}

.share-playlist-item {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 10px;
  align-items: center;
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 9px 10px;
  color: #f4fbf8;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  text-align: left;
}

.share-playlist-item.is-active {
  border-color: rgba(156, 246, 0, 0.38);
  background: rgba(156, 246, 0, 0.08);
}

.share-playlist-item span {
  grid-row: span 2;
  color: #9cf600;
  font-weight: 860;
}

.share-playlist-item strong,
.share-playlist-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-playlist-item strong {
  font-size: 13px;
}

.share-playlist-item small {
  color: rgba(244, 251, 248, 0.52);
  font-size: 11px;
  font-weight: 760;
}

.share-editor {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2px;
}

.share-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.share-editor-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.2;
}

.share-editor-head button,
.share-editor-controls button {
  min-height: 30px;
  border: 1px solid rgba(156, 246, 0, 0.28);
  border-radius: 6px;
  padding: 0 10px;
  color: #dfffc2;
  background: rgba(156, 246, 0, 0.08);
  cursor: pointer;
  font-size: 11px;
  font-weight: 820;
}

.share-editor-head .share-save {
  border-color: rgba(122, 83, 255, 0.44);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(122, 83, 255, 0.82), rgba(13, 160, 148, 0.56));
}

.share-editor-head button:disabled,
.share-editor-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.share-editor-list,
.share-library-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.share-editor-list::-webkit-scrollbar,
.share-library-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.share-editor-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.share-editor-item.is-active {
  border-color: rgba(156, 246, 0, 0.36);
  background: rgba(156, 246, 0, 0.07);
}

.share-editor-item > div:first-child {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 8px;
  min-width: 0;
}

.share-editor-item span {
  grid-row: span 2;
  color: #9cf600;
  font-weight: 860;
}

.share-editor-item strong,
.share-editor-item small,
.share-library-item strong,
.share-library-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-editor-item strong,
.share-library-item strong {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.2;
}

.share-editor-item small,
.share-library-item small {
  color: rgba(244, 251, 248, 0.52);
  font-size: 11px;
  font-weight: 760;
}

.share-editor-controls {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-library-item {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  color: #f4fbf8;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-align: left;
}

.share-library-item span {
  grid-row: span 2;
  color: #9cf600;
  font-size: 11px;
  font-weight: 860;
}

.share-library-item:hover,
.share-editor-controls button:hover,
.share-editor-head button:hover {
  border-color: rgba(156, 246, 0, 0.4);
}

.share-editor-empty,
.share-editor-status {
  margin: 0;
  color: rgba(244, 251, 248, 0.58);
  font-size: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px 32px;
  background: rgba(248, 250, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header.compact {
  position: static;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 144px;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.14);
}

.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 28px;
  scroll-margin-top: 92px;
}

.hero-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 230px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 46px;
  line-height: 1.04;
}

h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
}

h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
}

.hero-lede {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-lede.narrow {
  max-width: 820px;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.status-strip span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  color: var(--teal-strong);
  background: #e7f5f2;
  border: 1px solid #b7dbd5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.visual-rail {
  display: flex;
  align-items: stretch;
  min-height: 230px;
  padding: 14px;
  background: #101820;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-rail img {
  width: 100%;
  min-height: 210px;
  object-fit: cover;
  border-radius: 6px;
}

.model-shell {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 20px;
  background: #101820;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.model-intro {
  display: grid;
  gap: 9px;
  color: #f4fbf8;
}

.model-intro p {
  max-width: 820px;
  margin: 0;
  color: rgba(244, 251, 248, 0.72);
}

.model-intro .eyebrow {
  margin: 4px 0 0;
  color: #8feadf;
}

.back-link {
  width: fit-content;
  color: rgba(244, 251, 248, 0.68);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.back-link:hover {
  color: #ffffff;
}

.model-badges,
.model-tabs,
.form-actions,
.preview-heading,
.check-row {
  display: flex;
  align-items: center;
}

.model-badges {
  flex-wrap: wrap;
  gap: 8px;
}

.model-badges span {
  min-height: 28px;
  padding: 5px 10px;
  color: #dffaf6;
  background: rgba(143, 234, 223, 0.12);
  border: 1px solid rgba(143, 234, 223, 0.24);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 780;
}

.model-tabs {
  gap: 8px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}

.model-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  color: rgba(244, 251, 248, 0.72);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
}

.model-tab.is-active,
.model-tab:hover {
  color: #101820;
  background: #f4fbf8;
}

.workbench-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(340px, 1.1fr) minmax(290px, 0.95fr) minmax(330px, 1.1fr);
  gap: 18px;
  align-items: stretch;
  scroll-margin-top: 92px;
}

.tool-panel {
  min-width: 0;
  min-height: 420px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.06);
}

.panel-heading {
  display: flex;
  flex-direction: column;
  min-height: 66px;
}

.stacked-form,
.generation-form {
  display: grid;
  gap: 10px;
}

label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fbfdfc;
  border: 1px solid #c9d5d1;
  border-radius: 8px;
  outline: none;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 116, 109, 0.14);
}

.additional-settings {
  margin-top: 2px;
  padding: 12px;
  background: #f6faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.additional-settings summary {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.additional-settings p {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.check-row {
  gap: 8px;
  width: fit-content;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.estimate-box {
  padding: 10px 12px;
  color: #6f5200;
  background: #fff9e8;
  border: 1px solid #f0dc97;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 760;
}

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

.form-actions {
  gap: 8px;
}

.form-actions .secondary-button,
.form-actions .primary-button {
  flex: 1;
}

.inline-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
}

.form-grid {
  display: grid;
  gap: 10px;
}

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

.form-grid label {
  display: grid;
  gap: 6px;
}

.primary-button,
.secondary-button,
.icon-button,
.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.primary-button {
  color: #ffffff;
  background: var(--teal);
}

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

.secondary-button {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.secondary-button:hover {
  border-color: var(--teal);
}

.icon-button {
  min-width: 62px;
  color: var(--teal-strong);
  background: #e7f5f2;
  border-color: #b7dbd5;
}

.danger-button {
  color: var(--bad);
  background: #fff1ef;
  border-color: #f1c3bb;
}

.wide {
  width: 100%;
}

.inline-link {
  margin-top: 16px;
  width: fit-content;
}

.notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 8px;
  align-items: start;
  margin-top: 12px;
  padding: 12px;
  background: #fff9e8;
  border: 1px solid #f0dc97;
  border-radius: 8px;
}

.notice-label {
  grid-column: 1 / -1;
  color: #7b5b00;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.notice code {
  min-width: 0;
  overflow: hidden;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #f0dc97;
  border-radius: 6px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.table-wrap {
  width: 100%;
  margin-top: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}

.key-panel table {
  table-layout: auto;
}

.key-panel th:nth-child(1),
.key-panel td:nth-child(1) {
  width: 22%;
}

.key-panel th:nth-child(2),
.key-panel td:nth-child(2) {
  width: 25%;
}

.key-panel th:nth-child(3),
.key-panel td:nth-child(3) {
  width: 14%;
}

.key-panel th:nth-child(4),
.key-panel td:nth-child(4),
.key-panel th:nth-child(5),
.key-panel td:nth-child(5) {
  width: 19%;
}

.key-panel td code {
  white-space: nowrap;
}

th,
td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

th {
  color: var(--muted);
  background: #f1f6f4;
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.mini-button {
  width: 100%;
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  white-space: normal;
}

.mini-button:hover {
  border-color: var(--teal);
}

.mini-button[disabled],
button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.result-state {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-state strong {
  color: var(--ink);
}

.preview-heading {
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.next-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.next-actions span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.next-actions .secondary-button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
}

.download-link.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.preview-heading span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.preview-heading .secondary-button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
}

#result-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 12px 0;
  background: #000000;
  border-radius: 8px;
}

.code-box {
  min-height: 210px;
  max-height: 360px;
  margin: 14px 0 0;
  padding: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  color: #e8fff9;
  background: #101820;
  border: 1px solid #283742;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.preview-box {
  min-height: 150px;
}

.code-sample {
  min-height: 302px;
}

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

.tab-button {
  color: var(--muted);
  background: #ffffff;
  border-color: var(--line);
}

.tab-button.is-active {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.content-band {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 24px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 6px;
  max-width: 760px;
  margin-bottom: 18px;
}

.section-copy,
.prose p,
.source-cta p {
  color: var(--muted);
  font-size: 16px;
}

.prose {
  max-width: 920px;
}

.prose h2 {
  margin-top: 22px;
  font-size: 22px;
}

.prose p {
  margin: 12px 0;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: start;
}

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

.route-list code {
  display: block;
  min-height: 42px;
  padding: 11px;
  color: #f7fffb;
  background: #101820;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.flow-figure {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.05);
}

.flow-figure img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 6px;
  background: #101820;
}

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

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

.facts-grid article,
.fit-grid article,
details {
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.facts-grid p,
.fit-grid p,
details p {
  margin: 0;
  color: var(--muted);
}

details {
  margin: 10px 0;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin-top: 10px;
}

.source-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

main,
.site-footer {
  background: var(--paper);
}

.page-main {
  min-height: calc(100vh - 150px);
}

.creator-main {
  background:
    linear-gradient(180deg, #f8faf9 0%, #ffffff 54%, #f4f8f6 100%);
}

.creator-hero,
.creator-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.creator-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: stretch;
  padding: 54px 0 26px;
}

.creator-hero-copy {
  display: grid;
  align-content: center;
  min-height: 390px;
  padding: 40px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(91, 25, 204, 0.98), rgba(121, 45, 230, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, rgba(255, 255, 255, 0) 1px 18px);
  border-radius: 8px;
  overflow: hidden;
}

.creator-hero-copy .eyebrow {
  color: #c5ff36;
}

.creator-hero-copy p:not(.eyebrow) {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.creator-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.creator-hero-actions .primary-button {
  color: #101820;
  background: #c5ff36;
}

.creator-hero-actions .secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.creator-preview {
  display: grid;
  place-items: center;
  min-height: 390px;
  padding: 24px;
  background:
    linear-gradient(155deg, #101820, #162432 55%, #241a42),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 0 1px, rgba(255, 255, 255, 0) 1px 6px);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.creator-preview-frame {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 330px);
  padding: 36px 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 35%, rgba(32, 201, 189, 0.25), rgba(32, 201, 189, 0) 38%),
    rgba(255, 255, 255, 0.045);
}

.creator-preview-frame img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  filter: drop-shadow(0 18px 34px rgba(32, 201, 189, 0.28));
}

.creator-preview-frame span,
.creator-step-grid span {
  color: #c5ff36;
  font-size: 12px;
  font-weight: 850;
}

.creator-preview-frame strong {
  font-size: 24px;
  line-height: 1.12;
  text-align: center;
}

.creator-preview-frame small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 720;
}

.creator-section {
  padding: 32px 0;
}

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

.creator-step-grid article {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.05);
}

.creator-step-grid span {
  color: var(--coral);
}

.creator-step-grid p {
  margin: 0;
  color: var(--muted);
}

.creator-form-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(520px, 1fr);
  gap: 34px;
  align-items: start;
  padding: 48px 52px 50px;
  color: #ffffff;
  background: linear-gradient(135deg, #5b19cc, #641ed5);
  border-radius: 8px;
  overflow: hidden;
}

.creator-apply-copy {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.creator-apply-copy .eyebrow {
  color: #c5ff36;
}

.creator-apply-copy h2 {
  max-width: 460px;
  font-size: 38px;
  line-height: 1.04;
}

.creator-apply-copy p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.creator-application-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16, 24, 32, 0.24);
}

.creator-application-card label {
  display: grid;
  gap: 7px;
}

.creator-application-card label small {
  color: #8b949c;
  font-size: 11px;
  font-weight: 650;
}

.creator-channel-fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid #d4ddd9;
  border-radius: 8px;
}

.creator-channel-fieldset legend {
  padding: 0 8px;
  font-size: 13px;
  font-weight: 850;
}

.creator-channel-fieldset small {
  margin-left: 8px;
  color: #8b949c;
  font-size: 11px;
  font-weight: 650;
}

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

.form-hint {
  margin: -8px 0 0;
  color: #6e7a82;
  font-size: 12px;
}

.creator-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.creator-submit-row p {
  margin: 0;
  color: #6e7a82;
  font-size: 13px;
}

.creator-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  background: #986ad8;
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
}

.creator-submit-button:hover {
  background: #8252cc;
}

.creator-submit-button[disabled] {
  opacity: 0.64;
}

.creator-application-status {
  min-height: 22px;
  margin: 0;
  color: #66737b;
  font-size: 13px;
  font-weight: 720;
}

.creator-application-status[data-status="success"] {
  color: var(--ok);
}

.creator-application-status[data-status="error"] {
  color: var(--bad);
}

.creator-faq {
  padding-bottom: 50px;
}

.source-list ul {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

.source-list li {
  color: var(--muted);
}

.source-list a {
  color: var(--blue);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.hidden {
  display: none !important;
}

.inner-page {
  background: var(--paper);
}

.inner-main {
  padding-bottom: 18px;
}

.inner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 26px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 24px;
  padding: 48px 0 36px;
  align-items: stretch;
}

.inner-hero-copy {
  display: grid;
  align-content: center;
  min-height: 360px;
  padding: 34px;
  color: #f8faf9;
  background:
    linear-gradient(130deg, #101820 0%, #163740 58%, #4e3b1d 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, rgba(255, 255, 255, 0) 1px 18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.inner-hero-copy .eyebrow {
  color: #ffd45d;
}

.inner-hero-copy h1 {
  max-width: 820px;
}

.inner-hero-copy .hero-lede {
  color: rgba(248, 250, 249, 0.76);
}

.intent-line {
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 7px 10px;
  color: #f8faf9;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 720;
}

.intent-line strong {
  color: #ffd45d;
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  padding: 5px 9px;
  color: #23413d;
  background: #e7f5f2;
  border: 1px solid #b7dbd5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.source-strip .source-pill {
  color: #eafffb;
  background: rgba(143, 234, 223, 0.12);
  border-color: rgba(143, 234, 223, 0.28);
}

.source-pill a,
.source-inline a,
.media-source a,
.table-source a,
.source-map a {
  color: inherit;
  font-weight: 850;
}

.inner-hero-stats {
  display: grid;
  gap: 12px;
}

.inner-hero-stats article {
  display: grid;
  align-content: center;
  min-height: 112px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.06);
}

.inner-hero-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.inner-hero-stats strong {
  display: block;
  margin: 7px 0 10px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.1;
}

.inner-section {
  margin-bottom: 24px;
}

.inner-prose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: none;
}

.inner-prose p {
  margin: 0;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.source-inline {
  display: inline;
  color: #40535d;
  font-size: 14px;
  font-weight: 740;
}

.inner-card-grid,
.media-grid,
.source-map-grid,
.related-grid,
.page-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.inner-card-grid article,
.source-map-grid article,
.page-link-grid a,
.related-grid a {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.05);
}

.inner-card-grid p,
.source-map-grid p,
.page-link-grid p,
.related-grid span {
  margin: 0;
  color: var(--muted);
}

.card-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.inner-table-wrap table {
  min-width: 780px;
}

.inner-table-wrap th:last-child,
.inner-table-wrap td:last-child {
  width: 170px;
}

.table-source {
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
}

.media-section {
  width: min(1260px, calc(100% - 48px));
}

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

.media-grid:has(.media-card:nth-child(3)) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.media-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  background: #101820;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050706;
}

.media-card div {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.media-card h3 {
  color: #f8faf9;
}

.media-card p {
  margin: 0;
  color: rgba(248, 250, 249, 0.72);
  font-size: 13px;
}

.media-source {
  color: #b7f3eb !important;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.calculator-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calculator-panel label {
  display: grid;
  gap: 7px;
}

.calculator-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  align-content: center;
  padding: 20px;
  color: #ffffff;
  background:
    linear-gradient(130deg, #0e1c23, #0b514c 54%, #704b15),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, rgba(255, 255, 255, 0) 1px 10px);
  border-radius: 8px;
}

.calculator-result strong {
  font-size: 32px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.calc-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.calculator-result p {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.pricing-plans-section {
  width: min(1260px, calc(100% - 48px));
}

.pricing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 16px;
}

.pricing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 32, 0.06);
}

.pricing-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 112px;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: #40535d;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.pricing-toggle button[data-pricing-billing="annual"] {
  min-width: 174px;
}

.annual-savings {
  color: #d9412b;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.pricing-toggle button.is-active {
  color: #ffffff;
  background: #101820;
}

.pricing-toggle button.is-active .annual-savings {
  color: #ff7a66;
}

.pricing-status {
  min-height: 22px;
  margin: 0;
  color: #40535d;
  font-size: 13px;
  font-weight: 720;
  text-align: right;
}

.pricing-status.is-error {
  color: var(--bad);
}

.pricing-status.is-ok {
  color: var(--ok);
}

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

.pricing-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 470px;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16, 24, 32, 0.06);
}

.pricing-card.is-popular {
  border-color: rgba(8, 116, 109, 0.42);
  box-shadow: 0 18px 42px rgba(8, 116, 109, 0.13);
}

.pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 24px;
  padding: 4px 8px;
  color: #ffffff;
  background: var(--teal);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 880;
  text-transform: uppercase;
}

.pricing-card .plan-kicker {
  margin: 0;
  padding-right: 116px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.pricing-card:not(.is-popular) .plan-kicker {
  padding-right: 0;
}

.pricing-card h3 {
  margin: 0;
  color: #101820;
  font-size: 30px;
  line-height: 1.05;
}

.plan-summary {
  margin: 0;
  min-height: 64px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.plan-price {
  margin-top: 4px;
  color: #101820;
  font-size: 36px;
  font-weight: 850;
  line-height: 1;
}

.plan-price small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.plan-due {
  min-height: 20px;
  margin: 0;
  color: #64736f;
  font-size: 13px;
  font-weight: 720;
}

.plan-features {
  display: grid;
  gap: 8px;
  margin: 2px 0 16px;
  padding: 0;
  color: #33443f;
  font-size: 13px;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 18px;
}

.plan-features li::before {
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
  content: "✓";
}

.pricing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  border: 1px solid #9ab1aa;
  border-radius: 8px;
  color: #101820;
  background: #ffffff;
  font-weight: 850;
  cursor: pointer;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pricing-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 24, 32, 0.12);
}

.pricing-button.primary {
  color: #ffffff;
  background: #101820;
  border-color: #101820;
}

.pricing-button.trial-button {
  border-color: rgba(8, 116, 109, 0.36);
  color: var(--teal-strong);
  background: #edf8f5;
}

.pricing-button.is-loading {
  pointer-events: none;
  opacity: 0.72;
}

.pricing-footnote {
  margin: 14px 0 0;
  padding: 13px 15px;
  color: #40535d;
  background: #ffffff;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
}

.success-main {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.success-panel {
  width: min(720px, calc(100% - 48px));
  margin: 42px auto;
  padding: 34px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.success-panel h1 {
  margin: 0 0 10px;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.related-grid a {
  min-height: 112px;
  color: var(--ink);
}

.related-grid span,
.page-link-grid span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

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

.source-map-grid article span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.research-hub {
  border-top: 1px solid var(--line);
}

.page-link-grid a {
  min-height: 150px;
  color: var(--ink);
}

.page-link-grid a:hover,
.related-grid a:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

@media (max-width: 1280px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .cinema-chat-panel {
    width: 340px;
    min-width: 0;
  }

  .visual-rail {
    min-height: 210px;
  }

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

  .media-grid:has(.media-card:nth-child(3)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 821px) and (max-width: 1500px) {
  .workbench-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .cinema-hero {
    --cinema-rail: 74px;
  }

  .cinema-sidebar {
    gap: 11px;
    padding: 11px 8px;
  }

  .cinema-side-head {
    justify-content: center;
  }

  .cinema-brand-logo {
    width: 42px;
    height: 42px;
  }

  .cinema-fold-glyph,
  .cinema-brand-word,
  .cinema-channel-lines,
  .cinema-mini-list strong,
  .cinema-mini-list small,
  .cinema-side-footer {
    display: none;
  }

  .cinema-mini-list div,
  .cinema-mini-action {
    display: flex;
    justify-content: center;
    min-height: 34px;
  }

  .cinema-mini-list span {
    grid-row: auto;
  }

  .cinema-side-popover {
    width: min(260px, calc(100vw - var(--cinema-rail) - 18px));
  }

  .cinema-channel {
    justify-content: center;
    min-height: 42px;
    padding: 5px;
  }

  .cinema-thumb {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .cinema-side-tools span,
  .cinema-side-tools button,
  .cinema-side-tools a {
    display: none;
  }

  .cinema-side-footer {
    justify-content: center;
    padding: 0;
  }

  .cinema-side-footer span:last-child {
    margin-left: 0;
  }

  .cinema-top-actions {
    top: 11px;
    right: 8px;
    gap: 4px;
  }

  .cinema-top-actions button:nth-child(1),
  .cinema-top-actions button:nth-child(2),
  .cinema-top-actions .recording,
  .cinema-top-actions #viewer-count {
    width: 24px;
    height: 22px;
    overflow: hidden;
    padding: 0;
    color: transparent;
    font-size: 0;
  }




  .cinema-chat-panel {
    top: auto;
    right: 10px;
    bottom: 34px;
    width: calc(100% - var(--cinema-rail) - 20px);
    max-height: 318px;
    padding: 9px;
  }

  .cinema-chat-message {
    padding: 8px 10px;
  }

  .cinema-chat-message span {
    font-size: 13px;
  }

  .cinema-chat-input-row {
    --image-button-size: 34px;
    grid-template-columns: var(--image-button-size) minmax(0, 1fr) minmax(50px, max-content);
  }

  .cinema-chat-form input,
  .cinema-chat-form button {
    min-height: 34px;
  }

  .cinema-description-cta-wrap {
    left: calc(var(--cinema-rail) + ((100vw - var(--cinema-rail)) / 2));
    right: auto;
    bottom: 8px;
    width: calc(100vw - var(--cinema-rail) - 26px);
  }

  .cinema-description-cta {
    min-height: 42px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .clips-page-main {
    min-height: auto;
    padding: 28px 14px 48px;
  }

  .clips-page-shell {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .clips-page-hero {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .clips-history-card {
    padding: 0;
  }

  .clips-history-head,
  .clips-history-actions,
  .clips-share-bar,
  .clips-share-result {
    align-items: stretch;
    flex-direction: column;
  }

  .clips-share-result input,
  .clips-share-result button,
  .clips-share-result a {
    width: 100%;
  }

  .clips-page-hero h1 {
    font-size: 30px;
  }

  .share-page-main {
    min-height: auto;
    padding: 28px 14px 48px;
  }

  .share-shell {
    grid-template-columns: 1fr;
  }

  .share-detail-panel {
    padding: 16px;
  }

  .share-player-badge {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
  }

  .share-merge-strip {
    min-height: 74px;
    padding: 10px;
  }

  .share-player-editor {
    padding: 14px;
  }

  .share-range-head,
  .share-range-values {
    align-items: stretch;
    flex-direction: column;
  }

  .share-range-track {
    height: 52px;
  }

  .share-render-save {
    width: 100%;
  }

  .share-editor-head,
  .share-editor-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .share-editor-item,
  .share-library-item {
    grid-template-columns: 1fr;
  }

  .share-library-item span {
    grid-row: auto;
  }

  .share-detail-panel h1 {
    font-size: 24px;
  }

  .hero-shell,
  .content-band {
    width: min(100% - 28px, 1180px);
  }

  .hero-copy {
    min-height: 0;
    padding: 20px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 24px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .workbench-grid,
  .split-band,
  .source-cta,
  .facts-grid,
  .fit-grid,
  .inner-hero,
  .inner-prose,
  .inner-card-grid,
  .media-grid,
  .media-grid:has(.media-card:nth-child(3)),
  .source-map-grid,
  .related-grid,
  .page-link-grid,
  .calculator-grid,
  .calculator-panel,
  .pricing-grid,
  .creator-hero,
  .creator-form-panel,
  .creator-step-grid,
  .route-list {
    grid-template-columns: 1fr;
  }

  .inner-hero,
  .media-section {
    width: min(100% - 28px, 1180px);
    padding-top: 24px;
  }

  .pricing-plans-section {
    width: min(100% - 28px, 1180px);
  }

  .pricing-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-toggle,
  .pricing-toggle button {
    width: 100%;
  }

  .pricing-status {
    text-align: left;
  }

  .pricing-card {
    min-height: 0;
  }

  .inner-hero-copy {
    min-height: 0;
    padding: 24px;
  }

  .inner-hero-stats strong,
  .calculator-result strong {
    font-size: 26px;
  }

  .inner-card-grid article,
  .source-map-grid article,
  .page-link-grid a,
  .related-grid a {
    min-height: 0;
  }

  .creator-hero,
  .creator-section {
    width: min(100% - 28px, 1180px);
  }

  .creator-hero {
    padding-top: 24px;
  }

  .creator-hero-copy,
  .creator-preview,
  .creator-form-panel {
    min-height: 0;
  }

  .creator-hero-copy,
  .creator-form-panel {
    padding: 24px;
  }

  .creator-apply-copy {
    position: static;
  }

  .creator-apply-copy h2 {
    font-size: 29px;
  }

  .form-grid.three {
    grid-template-columns: 1fr;
  }

  .creator-submit-row {
    grid-template-columns: 1fr;
  }

  .creator-submit-button {
    width: 100%;
  }

  .tool-panel {
    min-height: 0;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px;
  }

  .key-panel .table-wrap {
    overflow: visible;
    border: 0;
  }

  .key-panel table,
  .key-panel thead,
  .key-panel tbody,
  .key-panel tr,
  .key-panel th,
  .key-panel td {
    display: block;
    width: auto;
  }

  .key-panel th:nth-child(1),
  .key-panel td:nth-child(1),
  .key-panel th:nth-child(2),
  .key-panel td:nth-child(2),
  .key-panel th:nth-child(3),
  .key-panel td:nth-child(3),
  .key-panel th:nth-child(4),
  .key-panel td:nth-child(4),
  .key-panel th:nth-child(5),
  .key-panel td:nth-child(5) {
    width: auto;
  }

  .key-panel thead {
    display: none;
  }

  .key-panel tbody {
    display: grid;
    gap: 10px;
  }

  .key-panel tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    background: #f8fbfa;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .key-panel td {
    padding: 0;
    border-bottom: 0;
  }

  .key-panel td:nth-child(1),
  .key-panel td:nth-child(2),
  .key-panel td:nth-child(3),
  .key-panel td[colspan] {
    grid-column: 1 / -1;
  }

  .key-panel td:nth-child(1) {
    font-weight: 750;
  }

  .key-panel td:nth-child(2) code {
    display: block;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .key-panel td:nth-child(3) {
    color: var(--teal-strong);
    font-weight: 800;
  }

  .key-panel td:nth-child(4),
  .key-panel td:nth-child(5) {
    grid-column: auto;
  }

  .key-panel td:nth-child(4) .mini-button,
  .key-panel td:nth-child(5) .mini-button {
    min-height: 42px;
    white-space: nowrap;
  }

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

  .next-actions .secondary-button {
    width: 100%;
  }

  .inner-table-wrap {
    overflow: visible;
    border: 0;
  }

  .inner-table-wrap table,
  .inner-table-wrap thead,
  .inner-table-wrap tbody,
  .inner-table-wrap tr,
  .inner-table-wrap th,
  .inner-table-wrap td {
    display: block;
    width: auto;
    min-width: 0;
  }

  .inner-table-wrap table {
    min-width: 0;
  }

  .inner-table-wrap thead {
    display: none;
  }

  .inner-table-wrap tbody {
    display: grid;
    gap: 10px;
  }

  .inner-table-wrap tr {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .inner-table-wrap td {
    padding: 0;
    border-bottom: 0;
  }

  .inner-table-wrap td:first-child {
    color: var(--ink);
    font-weight: 850;
  }

  .inner-table-wrap td:last-child {
    width: auto;
  }
}

@media (max-width: 460px) {
  .cinema-hero {
    --cinema-rail: 64px;
  }

  .cinema-sidebar {
    padding-inline: 7px;
  }

  .cinema-channel {
    min-height: 38px;
  }

  .cinema-thumb {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .cinema-chat-panel {
    max-height: 284px;
  }

  .cinema-chat-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .cinema-chat-form button {
    min-height: 32px;
  }

  .nav-links {
    gap: 12px;
  }

  .inline-control {
    grid-template-columns: 1fr;
  }

  .notice {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button,
  .icon-button,
  .tab-button {
    white-space: normal;
  }
}

.cinema-pricing-link { text-decoration: none; }
.cinema-pricing-link:hover { color: #fff; background: rgba(20, 15, 31, 0.6); }
.pricing-plans-section h1 { margin: 0; font-size: 36px; line-height: 1.15; }
@media (max-width: 820px) {
  .pricing-plans-section h1 { font-size: 28px; }
}

/* Story homepage: the theater remains its own full-screen surface. */
.series-home { color-scheme: dark; }
.series-story { background: #050706; --series-cream: #e9e9de; --series-muted: #a4b2a9; --series-mint: #b8e3c9; max-width: 1200px; margin: 0 auto; padding: 0 40px; color: var(--series-cream); }
.series-story p { color: var(--series-muted); font-size: 16px; line-height: 1.8; }
.series-story a, .series-story button { -webkit-tap-highlight-color: transparent; }
.series-story a:focus-visible, .series-story button:focus-visible { outline: 2px solid var(--series-mint); outline-offset: 6px; }
.series-section-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; border-bottom: 1px solid #26362d; font-size: 13px; }
.series-section-nav a { text-decoration: none; color: #becbc1; }
.series-section-nav a:hover { color: #fff; }
.series-section-nav > a { color: var(--series-mint); }
.series-section-nav div { display: flex; gap: 28px; }
.series-intro { display: grid; grid-template-columns: 1.08fr 1fr; gap: 72px; padding: 116px 0 110px; }
.series-story .series-eyebrow { margin: 0 0 24px; font-size: 11px; font-weight: 600; color: var(--series-mint); letter-spacing: .16em; text-transform: uppercase; }
.series-intro h1 { margin: 0 0 42px; color: var(--series-cream); font-size: clamp(42px, 4.2vw, 64px); font-weight: 550; line-height: 1.09; letter-spacing: -.055em; }
.series-intro h1 em { font-family: Georgia, 'Times New Roman', serif; color: var(--series-mint); font-weight: 400; letter-spacing: -.04em; }
.series-intro-copy h2 { margin: 0 0 20px; color: var(--series-muted); font-size: 13px; font-weight: 500; }
.series-story .series-lead { color: var(--series-cream); font-size: 24px; line-height: 1.5; letter-spacing: -.025em; margin: 0 0 24px; }
.series-intro-copy > p:not(.series-lead) { margin: 0 0 18px; }
.series-text-link { display: inline-flex; align-items: baseline; gap: 22px; color: var(--series-mint); font-size: 14px; text-decoration: none; border-bottom: 1px solid #496653; padding-bottom: 9px; }
.series-text-link:hover { color: #fff; border-color: #c1dfca; }
.series-section-heading h2, .series-plans h2 { margin: 0; color: var(--series-cream); font-size: clamp(36px, 3.9vw, 54px); font-weight: 480; line-height: 1.13; letter-spacing: -.045em; }
.series-section-heading > p:last-child { max-width: 520px; margin: 24px 0 0; }
.series-starters { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; border-top: 1px solid #26362d; padding: 90px 0; }
.series-script { border-top: 1px solid #48624f; }
.series-script-row { display: grid; grid-template-columns: 102px 1fr; gap: 20px; padding: 28px 0 30px; border-bottom: 1px solid #26362d; }
.series-beat { font-family: ui-monospace, monospace; font-size: 10px; line-height: 1.6; color: #abc5b4; padding-top: 6px; letter-spacing: .05em; }
.series-script h3 { margin: 0 0 12px; font-size: 18px; font-weight: 500; }
.series-story .series-script-line { font-family: Georgia, 'Times New Roman', serif; font-size: 22px; line-height: 1.55; color: #d0d8ce; margin: 0 0 20px; }
.series-line-button { display: inline-flex; align-items: center; gap: 24px; border: 0; padding: 7px 0; min-height: 40px; background: none; color: var(--series-mint); font-size: 13px; cursor: pointer; }
.series-line-button:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.series-story .series-script-note { font-size: 12px; line-height: 1.65; margin: 20px 0 0; color: #a9b6ac; }
.series-continuity { padding: 88px 0 90px; border-top: 1px solid #26362d; }
.series-continuity .series-section-heading { display: grid; grid-template-columns: 1fr 1fr; column-gap: 90px; align-items: end; }
.series-continuity .series-eyebrow { grid-column: 1 / -1; }
.series-continuity .series-section-heading > p:last-child { margin: 0; }
.series-flow { margin: 44px 0 42px; }
.series-flow img { display: block; width: 100%; height: auto; border: 1px solid #314738; }
.series-flow figcaption { margin: 13px 0 0; color: #a4b2a9; font-size: 12px; }
.series-continuity-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.series-continuity-notes h3 { font-size: 20px; font-weight: 500; margin: 0 0 18px; }
.series-continuity-notes p { margin: 0 0 16px; }
.series-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding: 90px 0; border-top: 1px solid #26362d; }
.series-plans > div:first-child > p:not(.series-eyebrow) { max-width: 400px; margin: 25px 0 30px; }
.series-plan-list { border-top: 1px solid #48624f; }
.series-plan-list > div { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid #26362d; }
.series-plan-list > div > span { font-size: 18px; }
.series-plan-list small { display: block; font-size: 12px; font-weight: 400; line-height: 1.8; color: #a4b2a9; }
.series-plan-list strong { font-size: 24px; line-height: 1.2; font-weight: 450; text-align: right; }
.series-plan-list > p { font-size: 12px; line-height: 1.7; margin: 18px 0 0; }
.series-questions { border-top: 1px solid #26362d; padding: 90px 0; }
.series-faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 90px; margin-top: 48px; }
.series-faq-list article { padding-top: 20px; border-top: 1px solid #26362d; }
.series-faq-list h3 { margin: 0 0 14px; font-size: 18px; line-height: 1.4; font-weight: 500; }
.series-faq-list p { margin: 0; font-size: 14px; line-height: 1.8; }
.series-footer { display: flex; flex-wrap: wrap; align-items: center; column-gap: 30px; row-gap: 22px; padding: 36px 0 46px; border-top: 1px solid #26362d; }
.series-footer a { font-size: 12px; text-decoration: none; }
.series-footer a:hover { color: var(--series-mint); }
.series-footer .series-footer-brand { font-size: 18px; font-weight: 700; letter-spacing: -.04em; }
.series-footer p { font-size: 12px; flex: 1 1 250px; margin: 0; }
#about, #story-starters, #continuity, #plans { scroll-margin-top: 24px; }
@media (max-width: 800px) {
  .series-story { padding: 0 28px; }
  .series-intro { gap: 40px; padding: 80px 0; }
  .series-intro h1 { font-size: 44px; }
  .series-starters, .series-plans { gap: 44px; }
  .series-script-row { grid-template-columns: 1fr; gap: 10px; }
  .series-continuity .series-section-heading, .series-continuity-notes, .series-faq-list { column-gap: 44px; }
}
@media (max-width: 600px) {
  .series-story { padding: 0 24px; }
  .series-section-nav { align-items: flex-start; flex-direction: column; gap: 16px; padding: 24px 0; font-size: 12px; }
  .series-section-nav div { gap: 24px; flex-wrap: wrap; }
  .series-intro, .series-starters, .series-plans { grid-template-columns: 1fr; gap: 42px; padding: 64px 0; }
  .series-intro h1 { font-size: clamp(42px, 11vw, 56px); margin-bottom: 30px; }
  .series-intro-copy h2 { margin-bottom: 18px; }
  .series-story .series-lead { font-size: 24px; }
  .series-section-heading h2, .series-plans h2 { font-size: 38px; }
  .series-continuity, .series-questions { padding: 64px 0; }
  .series-continuity .series-section-heading, .series-continuity-notes, .series-faq-list { grid-template-columns: 1fr; gap: 30px; }
  .series-continuity .series-eyebrow { margin: 0; }
  .series-continuity .series-section-heading > p:last-child { margin: 0; }
  .series-flow { margin: 30px 0; }
  .series-story p { font-size: 15px; line-height: 1.85; }
  .series-story .series-script-line { font-size: 23px; line-height: 1.5; }
  .series-script-row { padding: 22px 0; }
  .series-story .series-script-note, .series-plan-list > p, .series-footer p { font-size: 12px; }
  .series-faq-list { margin-top: 34px; }
  .series-faq-list p { font-size: 14px; }
  .series-footer { column-gap: 24px; padding: 30px 0; }
  .series-footer p { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
