/* Volontairement conservateur : ces regles doivent tenir sur le navigateur
   d'une TV de plusieurs annees (pas de grid, pas de variables CSS). */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0b0d10;
  color: #f2f4f7;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.screen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;
  text-align: center;
}
.screen.active { display: block; }

.center {
  position: absolute;
  top: 50%; left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 560px;
}

/* --- TV --- */
.tv-label {
  font-size: 2.2vw;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #8a93a6;
  margin: 0 0 3vh 0;
}
.tv-code {
  font-size: 18vw;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  color: #fff;
}
.tv-hint {
  font-size: 2vw;
  color: #6a7385;
  margin-top: 4vh;
}
.tv-hint strong { color: #9aa4b8; font-weight: 600; }

#video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}
body.live { background: #000; cursor: none; }

/* --- PC --- */
.card {
  background: #14181e;
  border: 1px solid #232a34;
  border-radius: 14px;
  padding: 34px 30px;
  text-align: left;
}
h1 { font-size: 20px; margin: 0 0 4px 0; font-weight: 600; }
.sub { color: #8a93a6; font-size: 14px; margin: 0 0 26px 0; }
label { display: block; font-size: 13px; color: #8a93a6; margin-bottom: 8px; }

#code {
  width: 100%;
  font-size: 38px;
  letter-spacing: 0.35em;
  text-align: center;
  padding: 14px 10px;
  border-radius: 10px;
  border: 1px solid #2a3240;
  background: #0d1117;
  color: #fff;
  font-family: inherit;
}
#code:focus { outline: none; border-color: #3d7dff; }

button {
  width: 100%;
  margin-top: 18px;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  border: 0;
  border-radius: 10px;
  background: #3d7dff;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}
button:disabled { background: #232a34; color: #6a7385; cursor: default; }
button.stop { background: #2a3240; }

.status { margin-top: 14px; font-size: 13px; min-height: 18px; color: #8a93a6; }
.status.ok { color: #4ade80; }
.status.err { color: #f87171; }

.dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #f87171;
  margin-right: 8px;
  vertical-align: middle;
}
.live-title { font-size: 18px; font-weight: 600; margin: 0 0 6px 0; }
.muted { color: #6a7385; font-size: 13px; }
a { color: #6d9bff; }
