/* ---------------------------------------------------------------------------
   watch-form — URL + email signup component
   Amber/obsidian aesthetic, matches theme.css tokens.
   --------------------------------------------------------------------------- */

.watch-form {
  margin-top: 2rem;
  width: 100%;
  max-width: 520px;
}

.watch-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.watch-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.watch-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6456;
}

.watch-input {
  background: #111;
  border: 1px solid #2a2520;
  border-radius: 6px;
  color: #f0ead6;
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.watch-input::placeholder {
  color: #3a3530;
}

.watch-input:focus {
  border-color: #ffb400;
  box-shadow: 0 0 0 3px rgba(255, 180, 0, 0.12);
}

.watch-submit {
  background: #ffb400;
  border: none;
  border-radius: 6px;
  color: #0d0d0d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.5rem;
  transition: background 0.15s ease, transform 0.1s ease;
  width: 100%;
  margin-top: 0.25rem;
}

.watch-submit:hover:not(:disabled) {
  background: #ffc933;
}

.watch-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.watch-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Inline spinner — pure CSS so no icon dep */
.watch-submit-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #0d0d0d;
  border-radius: 50%;
  animation: watch-spin 0.65s linear infinite;
}

@keyframes watch-spin {
  to { transform: rotate(360deg); }
}

.watch-feedback {
  margin-top: 0.75rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  padding: 0.65rem 0.9rem;
  border-radius: 5px;
  line-height: 1.5;
}

.watch-feedback--success {
  background: rgba(60, 180, 90, 0.12);
  border: 1px solid rgba(60, 180, 90, 0.3);
  color: #6dbb85;
}

.watch-feedback--error {
  background: rgba(220, 60, 60, 0.1);
  border: 1px solid rgba(220, 60, 60, 0.25);
  color: #e07070;
}

.watch-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: #3a3530;
  margin: 0.7rem 0 0;
  letter-spacing: 0.02em;
}

/* ---- Selector picker panel ---- */

.selector-toggle-row {
  margin-top: 0.75rem;
}

.selector-toggle-btn {
  background: none;
  border: none;
  color: #5a5248;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s;
}

.selector-toggle-btn:hover {
  color: #ffb400;
}

.selector-badge {
  background: rgba(255, 180, 0, 0.15);
  border: 1px solid rgba(255, 180, 0, 0.3);
  color: #ffb400;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.25rem;
}

.selector-panel {
  margin-top: 0.75rem;
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.selector-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.selector-type-opt {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.76rem;
  color: #8a8078;
  cursor: pointer;
}

.selector-type-opt input[type="radio"] {
  accent-color: #ffb400;
  cursor: pointer;
}

.selector-type-opt:has(input:checked) {
  color: #f0ead6;
}

.selector-hint {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: #4a4540;
  line-height: 1.5;
}

.selector-hint code {
  color: #ffb400;
  font-family: inherit;
}

.selector-input-row {
  display: flex;
  gap: 0.5rem;
}

.selector-value-input {
  flex: 1;
  font-size: 0.82rem;
  padding: 0.55rem 0.75rem;
}

.selector-test-btn {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 5px;
  color: #f0ead6;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}

.selector-test-btn:hover:not(:disabled) {
  border-color: #ffb400;
  color: #ffb400;
}

.selector-test-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.selector-preview {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  border-radius: 4px;
  padding: 0.55rem 0.75rem;
  word-break: break-word;
  white-space: pre-wrap;
}

.selector-preview--success {
  background: rgba(51, 204, 102, 0.08);
  border: 1px solid rgba(51, 204, 102, 0.2);
  color: #6dbb85;
}

.selector-preview--error {
  background: rgba(220, 60, 60, 0.08);
  border: 1px solid rgba(220, 60, 60, 0.2);
  color: #e07070;
}
