.stream-hero {
  position: relative;
  padding-top: clamp(54px, 8vw, 96px);
  padding-bottom: clamp(62px, 9vw, 108px);
  overflow-x: clip;
  background:
    linear-gradient(180deg, var(--color-bg), var(--color-deep)),
    radial-gradient(closest-side, var(--color-accent-haze), transparent);
}

.stream-hero::after {
  position: absolute;
  right: 8%;
  bottom: 5%;
  width: 24px;
  height: 20px;
  background: var(--color-warning);
  clip-path: polygon(0 0, 100% 24%, 28% 100%);
  content: "";
}

.stream-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(42px, 7vw, 86px);
}

.stream-hero-copy {
  position: relative;
  z-index: 2;
}

.stream-hero-copy .badge {
  margin-bottom: 18px;
}

.stream-hero-copy h1 {
  max-width: 680px;
}

.stream-hero-copy .lead {
  max-width: 680px;
}

.stream-hero-copy .button-row {
  margin-top: 28px;
}

.stream-hero-copy .trust-row {
  justify-content: flex-start;
  margin-top: 24px;
}

.stream-console {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-high);
}

.stream-console::before {
  position: absolute;
  top: 0;
  right: 19%;
  width: 22%;
  height: 100%;
  background: linear-gradient(180deg, var(--color-accent-haze), transparent);
  content: "";
  pointer-events: none;
}

.console-top {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: var(--color-deepest);
}

.console-light {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.console-light.is-yellow {
  background: var(--color-warning);
}

.console-light.is-pink {
  background: var(--color-pink);
}

.console-caption {
  margin-left: auto;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.console-screen {
  position: relative;
  min-height: 370px;
  padding: 28px;
  background:
    linear-gradient(180deg, var(--color-panel), var(--color-deep)),
    radial-gradient(closest-side, var(--color-accent-haze), transparent);
}

.media-source,
.media-destination {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--color-panel-raised);
  box-shadow: var(--shadow-low);
}

.media-source {
  bottom: 34px;
  left: 28px;
}

.media-destination {
  top: 30px;
  right: 28px;
}

.source-label {
  color: var(--color-accent-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.source-name {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
}

.media-route-svg {
  position: absolute;
  inset: 52px 20px 46px;
  width: calc(100% - 40px);
  height: calc(100% - 98px);
}

.media-grid-line {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 1;
  opacity: 0.42;
}

.media-route-line {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 5;
  stroke-linecap: round;
}

.media-node {
  fill: var(--color-accent);
  stroke: var(--color-gate);
  stroke-width: 3;
}

.media-node-start {
  fill: var(--color-success);
}

.media-node-warn {
  fill: var(--color-warning);
}

.media-node-end {
  fill: var(--color-gate);
  stroke: var(--color-accent);
}

.console-slots {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-rule);
}

.console-slots span {
  min-width: 0;
  padding: 13px 16px;
  background: var(--color-deepest);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
}

.stream-toc-wrap {
  position: relative;
  z-index: 5;
  padding-top: 26px;
}

.stream-article section[id] {
  scroll-margin-top: var(--toc-offset);
}

.stream-matrix,
.error-table {
  width: 100%;
  min-width: 900px;
}

.stream-matrix th,
.stream-matrix td,
.error-table th,
.error-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-rule);
  text-align: left;
  vertical-align: top;
}

.stream-matrix th,
.error-table th {
  background: var(--color-panel-raised);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 750;
}

.stream-matrix td,
.error-table td {
  color: var(--color-muted);
}

.stream-matrix td:first-child,
.error-table td:first-child {
  color: var(--color-text);
  font-weight: 700;
}

.support-state {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 9px;
  overflow: hidden;
  border-radius: var(--radius-xs);
  background: var(--color-accent-haze);
  color: var(--color-accent-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

.matrix-note {
  max-width: var(--reading-max);
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

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

.ip-panel {
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-low);
}

.ip-panel.is-raised {
  background: var(--color-panel-raised);
  box-shadow: var(--shadow-high);
}

.ip-panel p {
  color: var(--color-muted);
}

.ip-code,
.selection-code {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--color-accent-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.reading-callout {
  max-width: var(--reading-max);
  margin-top: 30px;
}

.quality-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(38px, 7vw, 90px);
}

.quality-notes {
  display: grid;
  gap: 12px;
}

.quality-notes article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  box-shadow: var(--shadow-low);
}

.quality-notes h3 {
  font-size: 20px;
}

.quality-notes p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.quality-mark {
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.quality-mark.is-warning {
  background: var(--color-warning);
}

.quality-mark.is-pink {
  background: var(--color-pink);
}

.bandwidth-checklist {
  margin-top: 44px;
  padding: clamp(26px, 5vw, 44px);
  border-radius: var(--radius-md);
  background: var(--color-deep);
  box-shadow: var(--shadow-low);
}

.bandwidth-checklist ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 34px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: quality-step;
}

.bandwidth-checklist li {
  position: relative;
  padding-left: 38px;
  color: var(--color-muted);
  counter-increment: quality-step;
}

.bandwidth-checklist li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  background: var(--color-panel-raised);
  color: var(--color-accent-soft);
  content: counter(quality-step);
  font-family: var(--font-mono);
  font-size: 11px;
}

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

.diagnostic-panel {
  max-width: var(--reading-max);
  margin-top: 34px;
  padding: clamp(26px, 5vw, 42px);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-low);
}

.diagnostic-panel p {
  color: var(--color-muted);
}

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

.selection-flow article {
  position: relative;
  min-height: 280px;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  box-shadow: var(--shadow-low);
}

.selection-flow article:nth-child(even) {
  background: var(--color-panel-raised);
}

.selection-flow article::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  content: "";
}

.selection-flow article:nth-child(even)::after {
  background: var(--color-warning);
}

.selection-flow h3 {
  font-size: 20px;
}

.selection-flow p {
  color: var(--color-muted);
  font-size: 14px;
}

.service-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  margin-top: 46px;
  background: var(--color-deep);
}

.service-facts p {
  color: var(--color-muted);
}

.service-actions {
  display: grid;
  min-width: 190px;
  gap: 12px;
}

.stream-text-link {
  padding: 8px 4px;
  color: var(--color-accent-soft);
  font-weight: 650;
  text-align: center;
}

.stream-text-link:hover {
  color: var(--color-text);
}

.closing-note {
  max-width: var(--reading-max);
  margin-top: 72px;
}

.closing-note p {
  color: var(--color-muted);
}

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

  .stream-console {
    width: min(680px, 100%);
    margin-inline: auto;
  }

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

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

@media (max-width: 720px) {
  .stream-hero {
    padding-top: 42px;
  }

  .stream-hero::after {
    display: none;
  }

  .stream-hero-copy .trust-row {
    display: grid;
    justify-content: stretch;
  }

  .console-screen {
    min-height: 300px;
    padding: 18px;
  }

  .media-source {
    bottom: 20px;
    left: 18px;
  }

  .media-destination {
    top: 20px;
    right: 18px;
  }

  .ip-layout,
  .selection-flow,
  .bandwidth-checklist ol,
  .service-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .selection-flow article {
    min-height: 0;
  }

  .service-actions {
    width: 100%;
    min-width: 0;
  }

  .service-actions .btn-primary,
  .service-actions .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .console-screen {
    min-height: 250px;
  }

  .console-slots {
    grid-template-columns: minmax(0, 1fr);
  }

  .media-route-svg {
    inset: 45px 8px 38px;
    width: calc(100% - 16px);
    height: calc(100% - 83px);
  }

  .media-source,
  .media-destination {
    padding: 7px 9px;
  }

  .source-name {
    font-size: 11px;
  }

  .quality-notes article {
    padding: 18px;
  }
}