/* TV Display Page */

/* Hide the navbar on TV page — TV is a display device */
.tv-game .header {
  display: none;
}

.tv-game .page-container {
  padding: 0;
  margin: 0;
}

.tv-game .main-content {
  padding: 0;
  margin: 0;
  min-height: 100vh;
}

.tv-game footer {
  display: none;
}

/* Waiting screen */
.tv-waiting {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0f;
  color: #fff;
  z-index: 1;
}

.tv-waiting-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.tv-logo {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 24px;
}

.tv-code-label {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
}

.tv-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
  font-family: 'Courier New', monospace;
  line-height: 1;
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.15);
}

.tv-hint {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: #666;
  max-width: 400px;
  margin-top: 8px;
}

.tv-new-code-btn {
  margin-top: 32px;
  padding: 10px 24px;
  border: 1px solid #333;
  background: transparent;
  color: #555;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.tv-new-code-btn:hover {
  border-color: #555;
  color: #888;
}

/* Iframe */
.tv-iframe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 10;
}

/* Active state overlay */
.tv-overlay {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 8px 16px;
  transition: opacity 0.4s;
}

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

.tv-overlay-code {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Courier New', monospace;
}

.tv-stop-btn {
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tv-stop-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
