.stream-hero {
  position: relative;
  padding-top: 88px;
  padding-bottom: 84px;
  overflow-x: clip;
  background:
    linear-gradient(180deg, var(--color-panel-muted), var(--color-bg)),
    radial-gradient(circle, var(--color-dot) 1px, transparent 1.3px);
}

.stream-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--color-border);
  content: "";
}

.stream-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: end;
  gap: 64px;
}

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

.stream-hero h1 {
  max-width: 780px;
  margin-top: 16px;
}

.stream-lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--color-text-muted);
  font-size: 20px;
  line-height: 1.7;
}

.stream-console {
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-panel);
}

.stream-console::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  height: 60%;
  background: linear-gradient(135deg, transparent, var(--color-accent-bright));
  content: "";
  opacity: .12;
  mask-image: radial-gradient(circle, #000 1.5px, transparent 1.9px);
  mask-size: 8px 8px;
  pointer-events: none;
}

.stream-beams {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  max-width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.stream-beams span {
  position: absolute;
  top: -12%;
  width: 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-bright));
  opacity: .16;
  filter: blur(2px);
  animation: stream-pulse 8s ease-in-out infinite alternate;
}

.stream-beams span:nth-child(1) {
  right: 8%;
  height: 62%;
}

.stream-beams span:nth-child(2) {
  right: 17%;
  height: 86%;
  width: 9px;
  opacity: .24;
  animation-duration: 9s;
}

.stream-beams span:nth-child(3) {
  right: 28%;
  height: 52%;
  width: 18px;
  opacity: .12;
  animation-duration: 7s;
}

.stream-beams span:nth-child(4) {
  right: 39%;
  height: 75%;
  width: 11px;
  opacity: .2;
  animation-duration: 10s;
}

.stream-beams span:nth-child(5) {
  right: 51%;
  height: 45%;
  width: 7px;
}

.stream-beams span:nth-child(6) {
  right: 62%;
  height: 68%;
  width: 16px;
  opacity: .1;
  animation-duration: 9s;
}

@keyframes stream-pulse {
  to {
    opacity: .3;
  }
}

.stream-article {
  padding-top: 54px;
  padding-bottom: 96px;
}

.stream-article .toc-tabs {
  top: 12px;
}

.stream-section {
  padding-top: 80px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.stream-section:last-child {
  border-bottom: 0;
}

.stream-section .section-head {
  max-width: 920px;
}

.stream-copy {
  max-width: 900px;
}

.table-caption {
  margin: 18px 0 0;
  color: var(--color-text-muted);
  font-size: 13px;
}

.ip-grid {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ip-card {
  min-height: 310px;
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-panel);
}

.ip-card .badge {
  margin-bottom: 24px;
}

.ip-card h3 {
  font-size: 23px;
}

.ip-card p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.quality-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  align-items: start;
  gap: 44px;
}

.quality-panel {
  padding: 28px;
}

.quality-panel h3 {
  font-size: 22px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-text-muted);
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--color-border);
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--color-success);
  content: "✓";
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: clip;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-border);
  box-shadow: var(--shadow-panel);
}

.selection-grid article {
  padding: 28px;
  background: var(--color-panel);
}

.selection-grid h3 {
  font-size: 22px;
}

.selection-grid p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.device-notes {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.device-notes article {
  padding: 26px;
}

.device-notes h3 {
  font-size: 22px;
}

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

.stream-next {
  margin-top: 72px;
  padding: 42px;
  border: 1px solid var(--color-terminal-border);
  border-radius: var(--radius-md);
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-panel);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
}

.stream-next h2 {
  margin-top: 10px;
  margin-bottom: 14px;
  color: var(--color-terminal-text);
  font-size: clamp(30px, 4vw, 44px);
}

.stream-next p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--color-terminal-muted);
}

.stream-next .eyebrow {
  color: var(--color-terminal-muted);
}

.next-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.stream-next .btn-secondary {
  border-color: var(--color-accent-bright);
  color: var(--color-terminal-text);
}

.stream-next .btn-secondary:hover {
  background: var(--color-highlight-soft);
}

@media (max-width: 980px) {
  .stream-hero-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .stream-console {
    max-width: 620px;
  }

  .quality-layout {
    grid-template-columns: 1fr;
  }

  .device-notes {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  .stream-hero {
    padding-top: 68px;
    padding-bottom: 64px;
  }

  .stream-lead {
    font-size: 17px;
  }

  .stream-beams {
    width: 72%;
    opacity: .65;
  }

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

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

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

@media (max-width: 640px) {
  .stream-hero {
    padding-top: 52px;
    padding-bottom: 54px;
  }

  .stream-hero-inner {
    gap: 28px;
  }

  .stream-beams {
    width: 64%;
    max-width: 100%;
    opacity: .45;
  }

  .stream-console {
    width: 100%;
  }

  .stream-article {
    padding-top: 34px;
    padding-bottom: 72px;
  }

  .stream-section {
    padding-top: 62px;
    padding-bottom: 18px;
  }

  .selection-grid article,
  .quality-panel,
  .device-notes article {
    padding: 22px;
  }

  .stream-next {
    margin-top: 56px;
    padding: 28px 22px;
  }

  .next-links {
    align-items: stretch;
    flex-direction: column;
  }

  .next-links .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stream-beams span {
    animation: none;
  }
}