html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #050505;
  font-family: system-ui, sans-serif;
}

cast-media-player,
#telemetry-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

cast-media-player {
  z-index: 1;
}

#telemetry-overlay {
  pointer-events: none;
  z-index: 4;
}

.receiver-chrome {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 64px);
  box-sizing: border-box;
  color: #fff;
  pointer-events: none;
  background:
    linear-gradient(90deg, #ff6b00 0 12px, transparent 12px),
    linear-gradient(135deg, rgba(5, 5, 5, 0.96), rgba(18, 18, 18, 0.78));
  transition: opacity 160ms ease, background 160ms ease;
}

.receiver-chrome--playing,
.receiver-chrome--ready {
  opacity: 0;
}

.receiver-chrome--paused {
  background: linear-gradient(135deg, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.05));
}

.receiver-chrome--buffering {
  background: linear-gradient(135deg, rgba(5, 5, 5, 0.52), rgba(5, 5, 5, 0.24));
}

.receiver-chrome--error {
  background:
    linear-gradient(90deg, #d32f2f 0 12px, transparent 12px),
    linear-gradient(135deg, rgba(5, 5, 5, 0.96), rgba(24, 6, 6, 0.82));
}

.receiver-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.receiver-brand__mark {
  display: grid;
  place-items: center;
  width: clamp(48px, 5vw, 76px);
  height: clamp(48px, 5vw, 76px);
  color: #3d1600;
  background: #ff6b00;
  border-radius: 8px;
  font-size: clamp(21px, 2.3vw, 34px);
  font-weight: 900;
  line-height: 1;
}

.receiver-brand__wordmark {
  color: #fff;
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

#receiver-status {
  align-self: flex-start;
  max-width: min(72vw, 900px);
  color: #ffdbc9;
  font-size: clamp(21px, 2.4vw, 36px);
  font-weight: 650;
  line-height: 1.18;
  text-shadow: 0 2px 12px #000;
}

#secondary-video {
  position: fixed;
  right: 5vw;
  top: 5vh;
  width: 27vw;
  max-width: 420px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 3;
}
