/* ── Embed Player (iframe) ─────────────────────────────────────────────────── */

.page {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
  color: var(--color-text-primary, #e2e8f0);
}

.playerArea {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stretch video/audio to fill available space */
.playerArea video,
.playerArea canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.controls {
  flex: 0 0 auto;
}

.branding {
  flex: 0 0 auto;
  padding: 0.25rem 0.5rem;
  text-align: center;
  font-size: 0.625rem;
  color: var(--color-text-muted, #64748b);
  background: rgba(0, 0, 0, 0.6);
}

.branding a {
  color: var(--color-accent, #00ffd1);
  text-decoration: none;
}

.branding a:hover {
  text-decoration: underline;
}

/* ── Loading / Error ──────────────────────────────────────────────────────── */

.loadingState,
.errorState {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: #000;
  color: var(--color-text-muted, #64748b);
  font-size: 0.875rem;
}

.errorState {
  flex-direction: column;
  gap: 0.5rem;
}

.errorMessage {
  color: var(--color-error, #ef4444);
}
