/* Brand: matches mobile app theme (src/theme/colors.ts) */
:root {
  --us-bg: #0a0a0a;
  --us-primary: #e50914;
  --us-text: #ffffff;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--us-bg);
  color: var(--us-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
}

cast-media-player {
  --background-color: var(--us-bg);
  --splash-image: url('assets/logo.png');
  --progress-color: var(--us-primary);
  --theme-hue: 0;
  width: 100%;
  height: 100%;
}

/* Splash overlay shown only before the player attaches a media item.
   CAF hides the <cast-media-player> until LOAD; we show our own logo+spinner. */
.splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: var(--us-bg);
  z-index: 10;
  transition: opacity 0.3s ease;
}

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

.splash-logo {
  width: 240px;
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(229, 9, 20, 0.35));
}

.splash-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--us-primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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