/* RestartiX TV — plain CSS targeting ES2017 / Chromium 55+ baseline. */
/* No oklch(), no var() chains, no flexbox gap (Safari 11 doesn't support  */
/* it on flex), no nesting. RGB hex only.                                  */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0a0a0a;
  color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}

.tv-shell {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  box-sizing: border-box;
}

.tv-brand {
  font-size: 28px;
  letter-spacing: 4px;
  opacity: 0.7;
  margin-bottom: 60px;
}

.tv-prompt {
  font-size: 36px;
  margin-bottom: 24px;
  max-width: 1200px;
  line-height: 1.4;
}

.tv-code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 140px;
  letter-spacing: 16px;
  font-weight: 700;
  color: #ffffff;
  background: #1a1a1a;
  padding: 32px 64px;
  border-radius: 24px;
  margin: 24px 0;
  display: inline-block;
}

.tv-hint {
  font-size: 24px;
  opacity: 0.5;
  margin-top: 40px;
  max-width: 900px;
}

.tv-status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 14px;
  opacity: 0.3;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.tv-error {
  color: #ff6b6b;
  font-size: 24px;
  margin-top: 32px;
}

/* play.html — native <video> fills the screen. object-fit:contain
   keeps the source aspect (no crop). Background black so letterbox
   bars are invisible. Pointer events disabled — phone is the
   controller; we never want a remote click to pause/seek. */
.tv-player-frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: 0;
  background: #000000;
  object-fit: contain;
  pointer-events: none;
}

.tv-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  z-index: 10;
}

.tv-overlay.tv-hidden {
  display: none;
}

.tv-ready-name {
  font-size: 48px;
  margin-bottom: 16px;
}

.tv-ready-session {
  font-size: 28px;
  opacity: 0.7;
}
