/* Full-page dark layout */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Player wrapper – fills the entire viewport, centers the video */
#player-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}

/* Video fills the viewport while keeping its aspect ratio */
#player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Error message (hidden by default) */
#error-message {
  display: none;
  position: fixed;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  color: #e2e8f0;
  text-align: center;
  gap: 1rem;
  z-index: 100;
}

#error-message.visible {
  display: flex;
}

.error-icon {
  font-size: 3rem;
  color: #f59e0b;
}

.error-text {
  font-size: 1.4rem;
  font-weight: 600;
}

.error-hint {
  font-size: 0.95rem;
  color: #94a3b8;
}

.error-hint code {
  background: #1e293b;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #38bdf8;
}
