/* Sizes are px for a 1920x1080 TV canvas (Cast receivers render at that size). */
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: sans-serif;
  color: #fff;
}

[hidden] { display: none !important; }

cast-media-player,
#local-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* RESIZE_MODE_FIT: always fully visible */
  background: #000;
  /* The overlay below replaces the default Cast player chrome. */
  --splash-image: none;
  --playback-logo-image: none;
}

#logo {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 180px;
  height: 180px;
  object-fit: contain;
}

#info {
  position: absolute;
  right: 36px;
  bottom: 36px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: bold;
}

.row svg {
  width: 26px;
  height: 26px;
  margin-right: 12px;
  fill: #fff;
}

#controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.3s;
}

#controls.visible { opacity: 1; }
#controls-title { font-weight: bold; }
#controls .hint { margin-left: auto; margin-right: 360px; opacity: 0.7; font-size: 22px; }

#waiting {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: #000;
}
