html,
body {
  margin: 0;
  height: 100%;
  background: #1a140e; /* brand bg (brand/colors.yaml) */
  overflow: hidden;
}

/* Default CAF player fills the screen; tint its background to brand. */
cast-media-player {
  --background-color: #1a140e;
  --splash-image: none;
}

/* Brand overlay — hidden by default, shown for idle and splash. */
.overlay {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1a140e;
  z-index: 10;
}
.overlay.visible {
  display: flex;
}

.logo {
  width: 360px;
  max-width: 38vw;
  opacity: 0.95;
}

/* Poster only appears in splash mode (load/buffer). */
.poster {
  display: none;
  max-height: 56vh;
  border-radius: 10px;
  margin-bottom: 36px;
  box-shadow: 0 10px 48px rgba(0, 0, 0, 0.6);
}
.overlay.splash .poster {
  display: block;
}
/* In splash mode the logo is a smaller accent beneath the poster. */
.overlay.splash .logo {
  width: 200px;
}
