:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: #11141a;
  --text: #f6f7fb;
  --muted: #9aa4b2;
  --line: #252b35;
  --accent: #e50914;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgb(8 9 11 / 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: block;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.page {
  width: min(960px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.intro {
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 0.96;
  letter-spacing: 0;
}

.seo-h1 {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  color: var(--muted);
}

h2 {
  margin: 36px 0 14px;
  font-size: 22px;
  letter-spacing: 0;
}

p {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.stats > div {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 14px;
  background: var(--panel);
}

.stats strong,
.feature-grid h3 {
  font-size: 15px;
  letter-spacing: 0;
}

.stats span,
.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.feature-grid article {
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

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

.demo {
  display: grid;
  grid-template-columns: 140px 120px minmax(320px, 1fr) 96px 96px auto;
  gap: 10px;
  align-items: end;
  padding: 16px 0 28px;
}

.demo label:nth-child(3) {
  min-width: 0;
}

.demo label:nth-child(3) input {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select,
button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0 12px;
}

button {
  cursor: pointer;
  padding: 0 16px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.demo button[type="submit"] {
  min-width: 132px;
  height: 42px;
  padding: 0 18px;
  white-space: nowrap;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgb(229 9 20 / 0.24);
}

.demo button[type="submit"]:hover {
  filter: brightness(1.08);
}

.preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border: 1px solid var(--line);
  background: #000;
}

iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

pre {
  overflow-x: auto;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050607;
}

code {
  color: #dce6f6;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.table > div {
  display: grid;
  grid-template-columns: minmax(140px, max-content) 1fr;
  gap: 8px 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.table strong {
  word-break: break-word;
}

.table > div:last-child {
  border-bottom: 0;
}

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

.embed-body {
  overflow: hidden;
  background: #000;
}

.player-shell {
  position: fixed;
  inset: 0;
  background: #000;
}

.player-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgb(255 255 255 / 0.08), transparent 34%),
    linear-gradient(135deg, rgb(229 9 20 / 0.18), transparent 42%),
    #000;
}

.player-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}


.provider-frame,
.native-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #000;
}

.play-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

.play-fallback button {
  min-height: 44px;
  border-color: rgb(255 255 255 / 0.3);
  background: rgb(0 0 0 / 0.72);
  pointer-events: auto;
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  color: #fff;
  font-size: 13px;
  text-align: center;
  text-shadow: 0 1px 6px rgb(0 0 0 / 0.9);
  pointer-events: none;
}

.provider-bar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: auto;
}

.provider-bar button {
  min-height: 36px;
  padding: 0 14px;
  border-color: rgb(255 255 255 / 0.28);
  background: rgb(0 0 0 / 0.66);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.provider-bar button.is-active {
  border-color: var(--accent);
  background: var(--accent);
}

.player-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  z-index: 4;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.68), transparent);
}

.custom-player .player-topbar {
  display: none;
}

.default-player .source-toggle {
  top: 66px;
}

.default-player .source-panel {
  top: 112px;
}

@media (max-width: 640px) {
  .default-player .source-toggle {
    top: 58px;
  }

  .default-player .source-panel {
    top: 104px;
  }
}

.player-topbar span {
  margin-left: 10px;
  color: var(--muted);
  font-size: 13px;
}

.icon-button {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-color: rgb(255 255 255 / 0.18);
  background: rgb(0 0 0 / 0.42);
  font-size: 28px;
  line-height: 1;
}

.loader,
.unavailable {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(460px, calc(100vw - 40px));
  text-align: center;
}

.loader-mark {
  width: 52px;
  height: 52px;
  border: 4px solid rgb(255 255 255 / 0.14);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

.loader p {
  margin: 10px 0 0;
  color: var(--text);
  font-weight: 700;
}

.loader small,
.unavailable p {
  color: var(--muted);
}

.unavailable h1 {
  font-size: 30px;
  line-height: 1.1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 820px) {
  .demo {
    grid-template-columns: 1fr 1fr;
  }

  .stats,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .demo button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 0 16px;
  }

  .demo,
  .stats,
  .feature-grid,
  .table > div {
    grid-template-columns: 1fr;
  }

  .preview {
    min-height: 240px;
  }
}


.embed-output {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 28px 0 24px;
}

.copy-field {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.copy-field input,
.copy-field textarea {
  flex: 1 1 auto;
  min-width: 0;
}

.copy-btn {
  flex: 0 0 auto;
  align-self: flex-start;
  white-space: nowrap;
  padding: 0 16px;
}

.embed-output input,
.embed-output textarea {
  width: 100%;
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050607;
  color: var(--text);
  font: 13px/1.45 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  resize: vertical;
}

.embed-code-field {
  text-transform: uppercase;
}

.player-copy {
  padding: 26px 0 0;
}

.player-copy h2 {
  margin-top: 0;
}

.player-copy p {
  max-width: 860px;
}



.showcase-carousel {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.showcase-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: carousel-scroll 42s linear infinite;
}

.showcase-track-reverse {
  transform: translateX(-220px);
  animation-name: carousel-scroll-reverse;
  animation-duration: 52s;
}

.showcase-carousel figure {
  position: relative;
  flex: 0 0 clamp(190px, 24vw, 300px);
  height: clamp(108px, 14vw, 168px);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050607;
  box-shadow: 0 16px 32px rgb(0 0 0 / 0.22);
}

.showcase-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
}

.showcase-carousel figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(0 0 0 / 0.42), transparent 58%),
    linear-gradient(135deg, rgb(229 9 20 / 0.13), transparent 45%);
}

@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 5px)); }
}

@keyframes carousel-scroll-reverse {
  from { transform: translateX(calc(-50% - 5px)); }
  to { transform: translateX(0); }
}


.benefits {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.benefits article {
  min-height: 138px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.benefits h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.benefits p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.custom-player .player-bg {
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.25), rgb(0 0 0 / 0.78)),
    linear-gradient(135deg, rgb(229 9 20 / 0.22), rgb(11 13 18 / 0.7));
}

.source-panel {
  position: absolute;
  top: 64px;
  left: 18px;
  z-index: 6;
  display: grid;
  width: min(260px, calc(100vw - 36px));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.14);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.35);
}

.source-toggle {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 7;
  width: 50px;
  min-width: 0;
  min-height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: rgb(255 255 255 / 0.28);
  border-radius: 50%;
  background: rgb(0 0 0 / 0.42);
  color: #fff;
  backdrop-filter: blur(10px);
}

.source-toggle svg {
  width: 26px;
  height: 26px;
}

.source-toggle:hover,
.source-toggle:focus-visible {
  border-color: rgb(255 255 255 / 0.55);
  background: rgb(0 0 0 / 0.6);
}

.source-panel-title {
  color: rgb(255 255 255 / 0.85);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.source-panel-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
}

.source-panel-brand img {
  border-radius: 4px;
  display: block;
}

.custom-provider-menu {
  position: static;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.custom-provider-menu button {
  min-height: 36px;
  padding: 0 12px;
  border-color: rgb(255 255 255 / 0.22);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.10);
  color: #fff;
  font-size: 12px;
  text-align: left;
  text-transform: none;
  font-weight: 600;
}

.custom-provider-menu button.is-active {
  border-color: #1b7dbc;
  background: #1b7dbc;
}

@media (max-width: 820px) {
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .showcase-carousel figure {
    flex-basis: 180px;
    height: 104px;
  }

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

  .source-panel {
    top: 56px;
    left: 10px;
    width: min(260px, calc(100vw - 20px));
    padding: 10px;
  }

  .source-toggle {
    top: 10px;
    left: 10px;
  }

  .custom-provider-menu {
    grid-template-columns: 1fr;
  }
}


.provider-prompt {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgb(0 0 0 / 0.22), rgb(0 0 0 / 0.76));
}

.provider-prompt button {
  display: grid;
  place-items: center;
  gap: 6px;
  width: 118px;
  height: 118px;
  padding: 0;
  border-radius: 999px;
  border-color: rgb(255 255 255 / 0.28);
  background: linear-gradient(180deg, #3298ce, #1b7dbc);
  box-shadow: 0 20px 44px rgb(0 0 0 / 0.38);
}

.provider-prompt span {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.provider-prompt small {
  max-width: 96px;
  color: rgb(255 255 255 / 0.72);
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .provider-prompt button {
    width: 88px;
    height: 88px;
  }

  .provider-prompt span {
    font-size: 16px;
  }
}
