:root {
  color-scheme: dark;
  --bg: #090909;
  --bg-soft: #0e0e0e;
  --panel: #121212;
  --panel-2: #171717;
  --text: #f4f1eb;
  --muted: #aaa59c;
  --muted-2: #77736d;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --red: #ff1708;
  --red-2: #ff3a2f;
  --red-dark: #c20f04;
  --green: #68d391;
  --yellow: #f0c36a;
  --max: 1240px;
  --header: 72px;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection,
::selection {
  background: var(--red);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  color: inherit;
}

img,
svg,
video {
  max-width: 100%;
}

.site-shell {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  height: var(--header);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 9, 0.88);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(calc(100% - 48px), var(--max));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
}

.brand__name {
  font-size: 17px;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.site-nav a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.button--primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.button--primary:hover {
  border-color: var(--red-2);
  background: var(--red-2);
}

.button--quiet {
  border-color: transparent;
  color: var(--muted);
}

.button--quiet:hover {
  color: var(--text);
  border-color: var(--line);
}

.icon-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.mobile-menu-button {
  display: none;
}

.page-main {
  min-height: calc(100vh - var(--header));
}

.hero {
  padding: 84px 0 54px;
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 56px;
  align-items: end;
}

.kicker {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 920px;
  font-weight: 680;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(54px, 7vw, 92px);
}

.hero__copy {
  margin: 27px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__meta {
  border-left: 1px solid var(--line);
  padding-left: 32px;
  display: grid;
  gap: 22px;
}

.meta-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 20px;
  align-items: baseline;
}

.meta-row + .meta-row {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.meta-row__label {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta-row__value {
  color: var(--text);
  font-size: 14px;
}

.meta-row__value code {
  font-family: var(--mono);
  font-size: 12px;
}

.live-section {
  padding: 60px 0 74px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: 40px;
  margin-bottom: 28px;
  align-items: end;
}

.section-head h2,
.editorial-section h2,
.download-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 650;
}

.section-head p,
.editorial-section__intro,
.download-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.player-lab {
  border: 1px solid var(--line-strong);
  background: #050505;
  border-radius: 12px;
  overflow: hidden;
}

.player-lab__bar {
  min-height: 58px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: #101010;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d6d1ca;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 23, 8, 0.16);
}

.stream-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.stream-input,
.search-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  background: #090909;
  color: var(--text);
  padding: 0 13px;
  font-family: var(--mono);
  font-size: 12px;
  transition: border-color 160ms ease, background 160ms ease;
}

.stream-input:focus,
.search-input:focus {
  border-color: rgba(255, 255, 255, 0.34);
  background: #0d0d0d;
}

.stream-input::placeholder,
.search-input::placeholder {
  color: #5f5c57;
}

.format-chip {
  min-width: 58px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

#fireplayer-demo {
  width: 100%;
  height: 100%;
}

.player-lab__footer {
  min-height: 48px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
  background: #0d0d0d;
}

.stream-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.stream-status::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: var(--muted-2);
}

.stream-status[data-state="ready"]::before {
  background: var(--green);
}

.stream-status[data-state="loading"]::before {
  background: var(--yellow);
}

.stream-status[data-state="error"]::before {
  background: var(--red);
}

.stream-status span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-lab__hint {
  white-space: nowrap;
}

.editorial-section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.editorial-section__head {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  margin-bottom: 50px;
}

.editorial-section__eyebrow {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.editorial-section__lead {
  max-width: 740px;
}

.editorial-section__lead h2 {
  margin-bottom: 18px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability {
  min-height: 210px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.capability__index {
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
}

.capability h3 {
  margin: 48px 0 9px;
  font-size: 23px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.capability p {
  margin: 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
}

.code-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}

.code-feature__copy h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 650;
}

.code-feature__copy p {
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 540px;
}

.code-block {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #070707;
}

.code-block__bar {
  height: 42px;
  padding: 0 12px 0 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.copy-code {
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  cursor: pointer;
}

.copy-code:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

pre {
  margin: 0;
  overflow: auto;
  padding: 22px;
  color: #dedbd6;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  tab-size: 2;
}

code {
  font-family: var(--mono);
}

.token-keyword,
.token-function {
  color: #ff776d;
}

.token-string {
  color: #c6d78e;
}

.token-comment {
  color: #66625d;
}

.plugin-ledger {
  border-top: 1px solid var(--line);
}

.plugin-row {
  min-height: 72px;
  padding: 15px 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.plugin-row__name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
}

.plugin-row__desc {
  color: var(--muted);
  font-size: 14px;
}

.plugin-row__version {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
}

.closing-panel {
  padding: 76px 0 92px;
  border-top: 1px solid var(--line);
}

.closing-panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.closing-panel h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 650;
}

.closing-panel p {
  margin: 20px 0 0;
  color: var(--muted);
  max-width: 620px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 36px;
}

.site-footer__inner {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.footer-copy {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--text);
}

.page-hero {
  padding: 72px 0 62px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(54px, 8vw, 98px);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 60px;
  align-items: end;
}

.page-hero__aside {
  padding-left: 26px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.page-hero__aside strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
}

.download-section {
  padding: 64px 0 90px;
}

.download-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.download-heading p {
  margin-top: 14px;
}

.release {
  border-top: 1px solid var(--line-strong);
}

.release-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  min-height: 128px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.release-row__title h3 {
  margin: 0 0 5px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.release-row__title span,
.release-row__body,
.release-row__meta {
  color: var(--muted);
  font-size: 13px;
}

.release-row__title span,
.release-row__meta {
  font-family: var(--mono);
  font-size: 11px;
}

.release-row__body p {
  margin: 0;
  max-width: 650px;
}

.release-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.install-strip {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #0d0d0d;
}

.install-strip__label,
.install-strip__command,
.install-strip__copy {
  min-height: 62px;
  display: flex;
  align-items: center;
}

.install-strip__label {
  padding: 0 18px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.install-strip__command {
  padding: 0 22px;
  font-family: var(--mono);
  font-size: 12px;
  overflow: auto;
  white-space: nowrap;
}

.install-strip__copy {
  padding: 0 10px;
}

.checksum-table {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
}

.checksum-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.checksum-table td:first-child {
  width: 32%;
  color: var(--muted);
}

.checksum-table td:last-child {
  word-break: break-all;
}

.docs-layout {
  width: min(calc(100% - 48px), 1440px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 274px minmax(0, 900px) minmax(170px, 1fr);
  gap: 46px;
  align-items: start;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: calc(var(--header) + 24px);
  max-height: calc(100vh - var(--header) - 48px);
  overflow: auto;
  scrollbar-width: thin;
}

.docs-sidebar {
  padding: 30px 20px 50px 0;
  border-right: 1px solid var(--line);
}

.docs-search {
  position: relative;
  margin-bottom: 24px;
}

.docs-search kbd {
  position: absolute;
  right: 9px;
  top: 9px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
}

.docs-nav-group + .docs-nav-group {
  margin-top: 24px;
}

.docs-nav-group__title {
  margin: 0 0 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.docs-nav {
  display: grid;
  gap: 2px;
}

.docs-nav a {
  padding: 6px 8px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
  transition: background 140ms ease, color 140ms ease;
}

.docs-nav a:hover,
.docs-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.docs-content {
  min-width: 0;
  padding: 58px 0 100px;
}

.docs-intro {
  padding-bottom: 46px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.docs-intro .kicker {
  margin-bottom: 18px;
}

.docs-intro h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 650;
}

.docs-intro p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.doc-section {
  padding: 54px 0 12px;
  scroll-margin-top: calc(var(--header) + 18px);
}

.doc-section + .doc-section {
  border-top: 1px solid var(--line);
}

.doc-section[hidden] {
  display: none;
}

.doc-section__kicker {
  color: var(--red);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.doc-section h2 {
  margin: 9px 0 15px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 640;
}

.doc-section h3 {
  margin: 32px 0 10px;
  font-size: 20px;
  letter-spacing: -0.025em;
  font-weight: 620;
}

.doc-section p,
.doc-section li {
  color: var(--muted);
  font-size: 14px;
}

.doc-section p {
  margin: 0 0 16px;
}

.doc-section ul {
  margin: 10px 0 24px;
  padding-left: 20px;
}

.doc-section strong {
  color: var(--text);
  font-weight: 600;
}

.doc-section a:not(.button) {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.doc-section a:not(.button):hover {
  border-bottom-color: var(--red);
}

.doc-section .code-block {
  margin: 18px 0 24px;
}

.doc-table-wrap {
  overflow: auto;
  margin: 22px 0 30px;
  border-top: 1px solid var(--line-strong);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 13px;
}

.doc-table th,
.doc-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc-table th:first-child,
.doc-table td:first-child {
  padding-left: 0;
}

.doc-table th {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.doc-table td {
  color: var(--muted);
}

.doc-table td:first-child {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.doc-table code {
  color: #dcd7d0;
  font-size: 11px;
}

.note {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 2px solid var(--red);
  background: rgba(255, 23, 8, 0.055);
  color: var(--muted);
  font-size: 13px;
}

.note strong {
  color: var(--text);
}

.docs-toc {
  padding-top: 58px;
}

.docs-toc__title {
  margin: 0 0 12px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.docs-toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted-2);
  font-size: 12px;
}

.docs-toc a:hover,
.docs-toc a.is-active {
  color: var(--text);
}

.docs-empty {
  display: none;
  padding: 70px 0;
  color: var(--muted);
}

.docs-empty.is-visible {
  display: block;
}

.inline-code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #111;
  color: #dedbd6;
  font-family: var(--mono);
  font-size: 0.87em;
}

.status-pill {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 1120px) {
  .hero__grid,
  .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__meta,
  .page-hero__aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }

  .docs-layout {
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 34px;
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --header: 64px;
  }

  .site-shell,
  .site-header__inner,
  .site-footer__inner,
  .docs-layout {
    width: min(calc(100% - 30px), var(--max));
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    position: absolute;
    display: none;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    padding: 12px 15px 16px;
    background: #0b0b0b;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 12px;
  }

  .header-actions .button:not(.mobile-menu-button) {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero {
    padding-top: 58px;
  }

  .hero__grid {
    gap: 38px;
  }

  .section-head,
  .editorial-section__head,
  .code-feature,
  .closing-panel__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .player-lab__bar {
    grid-template-columns: 1fr auto;
  }

  .live-chip {
    display: none;
  }

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

  .plugin-row {
    grid-template-columns: 1fr auto;
  }

  .plugin-row__desc {
    grid-column: 1 / -1;
  }

  .release-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .release-row__actions {
    justify-content: flex-start;
  }

  .install-strip {
    grid-template-columns: 1fr auto;
  }

  .install-strip__label {
    display: none;
  }

  .docs-layout {
    display: block;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }

  .docs-nav-groups {
    display: none;
  }

  .docs-sidebar.is-open .docs-nav-groups {
    display: grid;
    margin-top: 18px;
  }

  .docs-search {
    margin: 0;
  }

  .docs-content {
    padding-top: 40px;
  }
}

@media (max-width: 600px) {
  .site-shell,
  .site-header__inner,
  .site-footer__inner,
  .docs-layout {
    width: min(calc(100% - 24px), var(--max));
  }

  .brand__name {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.055em;
  }

  .hero__actions,
  .release-row__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .meta-row {
    grid-template-columns: 90px 1fr;
  }

  .live-section {
    padding-top: 42px;
  }

  .player-lab {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin-left: -12px;
    margin-right: -12px;
  }

  .player-lab__bar {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .format-chip {
    display: none;
  }

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

  .stream-form .button {
    min-height: 40px;
  }

  .player-lab__footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 11px 13px;
  }

  .player-lab__hint {
    white-space: normal;
  }

  .editorial-section {
    padding: 68px 0;
  }

  .capability {
    min-height: 180px;
    padding: 22px;
  }

  .capability h3 {
    margin-top: 32px;
  }

  .plugin-row {
    gap: 8px 18px;
  }

  .closing-panel {
    padding: 58px 0 70px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .install-strip {
    display: block;
  }

  .install-strip__command {
    min-height: 54px;
    padding: 0 15px;
    border-bottom: 1px solid var(--line);
  }

  .install-strip__copy {
    padding: 8px;
  }

  .checksum-table td:first-child {
    width: 40%;
  }

  .docs-intro h1 {
    font-size: 48px;
  }

  .doc-section h2 {
    font-size: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

.hero--brand .hero__grid { align-items: center; }
.hero__brand-panel { min-width: 0; display: flex; align-items: center; justify-content: center; }
.hero__brand-mark { width: min(100%, 390px); display: grid; place-items: center; }
.hero__brand-mark img { width: 100%; height: auto; display: block; }
.section-actions { margin-top: 24px; }
.player-lab__hint { color: var(--muted-2); }
a.player-lab__hint:hover { color: var(--text); }
.page-hero--compact { padding-bottom: 46px; }
.playground-section { padding: 58px 0 100px; }
.player-lab--large .player-stage { max-height: none; width: 100%; }
.player-lab--large #fireplayer-demo { width: 100% !important; height: 100% !important; }
.playground-notes { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; padding-top: 54px; margin-top: 54px; border-top: 1px solid var(--line); }
.playground-notes h2 { margin: 10px 0 0; font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -.04em; font-weight: 640; }
.playground-notes__body p { margin: 0 0 14px; color: var(--muted); }
.event-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 30px; }
.event-cloud code { padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; background: #0d0d0d; color: #d9d5ce; font-size: 11px; }
.release-row__actions--wrap { flex-wrap: wrap; }
.download-heading--checksums { margin-top: 66px; margin-bottom: 18px; }
.download-footnote { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.download-footnote > div { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; }
.download-footnote img { width: 38px; height: 38px; }
.download-footnote p { margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
@media (max-width: 860px) { .hero__brand-mark { width: min(72vw, 330px); } .playground-notes { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 600px) { .hero__brand-mark { width: min(76vw, 260px); } .download-footnote { grid-template-columns: 1fr; } .download-footnote p { text-align: left; } }


.docs-search .search-input {
  padding-right: 76px;
}

.docs-search__clear {
  position: absolute;
  right: 42px;
  top: 7px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.docs-search__clear:hover,
.docs-search__clear:focus-visible {
  color: var(--text);
}

.docs-search__clear[hidden] {
  display: none;
}

.docs-search-status {
  min-height: 16px;
  margin: -16px 0 18px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
}

.docs-nav--plugins {
  margin: 3px 0 6px 8px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.docs-nav--plugins a {
  padding-top: 4px;
  padding-bottom: 4px;
  color: var(--muted-2);
  font-size: 12px;
}

.docs-search-mark {
  padding: 0 .08em;
  border-radius: 2px;
  background: rgba(255, 23, 8, .22);
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255, 58, 47, .75);
}

.plugin-doc__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.plugin-doc__heading h2 {
  margin-bottom: 10px;
}

.plugin-doc__heading p {
  max-width: 720px;
}

.plugin-doc__heading .status-pill {
  flex: 0 0 auto;
  margin-top: 15px;
}

.plugin-doc__install {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  margin: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plugin-doc__install span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.plugin-doc__install code {
  padding: 12px 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.plugin-doc__api {
  line-height: 2;
}

@media (max-width: 600px) {
  .plugin-doc__heading {
    display: block;
  }
  .plugin-doc__heading .status-pill {
    display: inline-flex;
    margin: 0 0 10px;
  }
  .plugin-doc__install {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }
  .plugin-doc__install code {
    padding: 0;
  }
}


.config-page {
  background: #080808;
}

.config-hero {
  padding-bottom: 38px;
}

.config-hero .page-hero__aside {
  max-width: 420px;
}

.config-section {
  padding: 28px 0 88px;
}

.config-shell {
  width: min(calc(100% - 30px), 1480px);
  margin: 0 auto;
}

.config-workbench {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #070707;
}

.config-toolbar {
  min-height: 58px;
  padding: 9px 10px 9px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #101010;
}

.config-toolbar__identity {
  min-width: 0;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d6d1ca;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.config-toolbar__identity::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255,23,8,.14);
}

.config-preset {
  height: 38px;
  min-width: 168px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #090909;
  color: var(--text);
  padding: 0 34px 0 12px;
  outline: 0;
  font-family: var(--mono);
  font-size: 11px;
}

.config-preset:focus {
  border-color: rgba(255,255,255,.34);
}

.config-toolbar .button {
  min-height: 38px;
  height: 38px;
  padding: 0 13px;
  font-size: 12px;
}

.config-grid {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(440px, .92fr) minmax(500px, 1.08fr);
}

.config-pane {
  min-width: 0;
  background: #080808;
}

.config-pane + .config-pane {
  border-left: 1px solid var(--line);
}

.config-pane__head {
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #0d0d0d;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.config-pane__meta {
  color: var(--muted-2);
  text-transform: none;
  letter-spacing: 0;
}

.config-run-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
}

.config-run-state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}

.config-run-state[data-state="running"]::before {
  background: var(--yellow);
}

.config-run-state[data-state="ready"]::before {
  background: var(--green);
}

.config-run-state[data-state="error"]::before {
  background: var(--red);
}

.config-code-wrap {
  height: 648px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  background: #070707;
}

.config-lines {
  overflow: hidden;
  padding: 16px 10px 18px 0;
  border-right: 1px solid rgba(255,255,255,.07);
  color: #4f4c48;
  background: #090909;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.62;
  text-align: right;
  user-select: none;
  white-space: pre;
}

.config-code {
  width: 100%;
  height: 100%;
  resize: none;
  border: 0;
  outline: 0;
  padding: 16px 18px 18px;
  background: #070707;
  color: #e8e4dc;
  caret-color: var(--red-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.62;
  tab-size: 2;
  white-space: pre;
  overflow: auto;
}

.config-code::selection {
  background: rgba(255,23,8,.34);
}

.config-preview-stack {
  height: 648px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 170px;
}

.config-preview {
  min-height: 0;
  background: #000;
}

.config-preview iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

.config-console {
  min-height: 0;
  border-top: 1px solid var(--line);
  background: #090909;
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr);
}

.config-console__head {
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.config-console__clear {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted-2);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
}

.config-console__clear:hover {
  color: var(--text);
}

.config-console__output {
  overflow: auto;
  padding: 0 12px 12px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
}

.config-log {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid rgba(255,255,255,.055);
  color: #aaa59c;
}

.config-log:first-child {
  border-top: 0;
}

.config-log__level {
  color: #605d58;
  text-transform: uppercase;
}

.config-log[data-level="error"] {
  color: #ff847b;
}

.config-log[data-level="warn"] {
  color: #e8c375;
}

.config-log[data-level="info"] .config-log__level {
  color: #7ccf9b;
}

.config-empty-log {
  color: #5e5a55;
  padding: 9px 0;
}

.config-foot {
  min-height: 48px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #0d0d0d;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
}

.config-foot code {
  color: #aaa59c;
}

.config-note-grid {
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
}

.config-note {
  min-width: 0;
}

.config-note__index {
  display: block;
  margin-bottom: 13px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.config-note h2 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -.025em;
}

.config-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.config-note code {
  font-family: var(--mono);
  font-size: 11px;
}

@media (max-width: 1120px) {
  .config-grid {
    grid-template-columns: minmax(370px, .82fr) minmax(430px, 1.18fr);
  }

  .config-code-wrap,
  .config-preview-stack {
    height: 590px;
  }
}

@media (max-width: 900px) {
  .config-toolbar {
    flex-wrap: wrap;
  }

  .config-toolbar__identity {
    width: 100%;
  }

  .config-preset {
    flex: 1 1 160px;
  }

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

  .config-pane + .config-pane {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .config-code-wrap {
    height: 520px;
  }

  .config-preview-stack {
    height: 650px;
  }

  .config-note-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 600px) {
  .config-shell {
    width: 100%;
  }

  .config-workbench {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .config-toolbar {
    padding: 10px 12px;
  }

  .config-toolbar .button {
    width: auto;
    flex: 1 1 auto;
  }

  .config-code-wrap {
    grid-template-columns: 42px minmax(0, 1fr);
    height: 470px;
  }

  .config-lines,
  .config-code {
    font-size: 11px;
  }

  .config-preview-stack {
    height: 560px;
    grid-template-rows: minmax(0, 1fr) 150px;
  }

  .config-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .config-note-grid {
    padding-left: 15px;
    padding-right: 15px;
  }
}
