* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #4f9dff;
}

html, body {
  width: 100%;
  height: 100%;
  background: #0b0d12;
  color: #f5f5f5;
  font-family: 'Segoe UI', Arial, sans-serif;
  overflow: hidden;
}

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

.hidden { display: none !important; }

h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.subtitle {
  font-size: 1.4rem;
  color: #9aa0a8;
  margin-bottom: 32px;
}

.qrcode-box {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(79, 157, 255, 0.25);
}

.pairing-hint {
  margin-top: 28px;
  font-size: 1.1rem;
  color: #9aa0a8;
}

#pairing-url {
  color: var(--accent);
  font-weight: bold;
}

.pulse-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 rgba(79, 157, 255, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 157, 255, 0.6); }
  70% { box-shadow: 0 0 0 30px rgba(79, 157, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 157, 255, 0); }
}

#player-screen {
  padding: 0;
  position: relative;
}

#video {
  width: 100vw;
  height: 100vh;
  background: #000;
  object-fit: contain;
}

.now-playing {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.55);
  padding: 10px 20px;
  border-radius: 8px;
}

.unpair-btn {
  margin-top: 48px;
  background: transparent;
  border: 1px solid #2a2e37;
  color: #6b7280;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}

.unpair-btn:hover,
.unpair-btn:focus {
  color: #f5f5f5;
  border-color: #6b7280;
}
