html, body {
  margin: 0;
  height: 100%;
  background: #161616;
  color: #f2f2f2;
  overflow: hidden;
  font-family: "Google Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* The Canopy wordmark from canopysf.com (885x400, white type, green arc,
   transparent). Shown at 440 CSS px wide, so it has 2x pixels to spare on a
   1080p-rendered receiver. */
cast-media-player {
  --background-color: #161616;
  --background-image: radial-gradient(ellipse at 50% 35%, #232823 0%, #161616 70%);
  --splash-background: #161616;
  --splash-image: url("/canopy-logo.png");
  --splash-size: 440px 199px;
  --logo-background: #161616;
  --logo-image: url("/canopy-logo.png");
  --logo-size: 440px 199px;
  --progress-color: #00a400;
  --font-family: "Google Sans", Roboto, Arial, sans-serif;
  position: absolute;
  inset: 0;
}

#idle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: radial-gradient(ellipse at 50% 35%, #232823 0%, #161616 70%);
  transition: opacity 0.6s ease;
  z-index: 10;
}

#idle.hidden {
  opacity: 0;
  pointer-events: none;
}

#idle .logo {
  width: 440px;
  height: auto;
  margin-bottom: 1.2rem;
}

#idle p {
  margin: 0;
  font-size: 24px;
  color: #a8a8a8;
}

#idle.loading p::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.5em;
  vertical-align: -0.1em;
  border: 3px solid rgba(168, 168, 168, 0.35);
  border-top-color: #00a400;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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