/* Minimal standalone styling loosely matching the app's MD3 dark theme.
   GLM 5.2 may restyle this later (taskboard/13) — keep selectors semantic. */

:root {
  --bg: #121318;
  --surface: #1d1e25;
  --on-surface: #e4e1e9;
  --on-surface-variant: #c8c5d0;
  --primary: #bfc2ff;
  --on-primary: #272b60;
  --error: #ffb4ab;
  --outline: #47464f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--on-surface);
  font-family: "Roboto", system-ui, sans-serif;
  line-height: 1.5;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
}

.subtitle {
  margin: 4px 0 24px;
  color: var(--on-surface-variant);
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--on-surface-variant);
}

textarea,
input[type="text"] {
  width: 100%;
  background: var(--bg);
  color: var(--on-surface);
  border: 1px solid var(--outline);
  border-radius: 8px;
  padding: 10px 12px;
  font: 13px/1.4 monospace;
  resize: vertical;
}

textarea:focus,
input[type="text"]:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}

button {
  border: none;
  border-radius: 20px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--outline);
}

button.primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.turn-details summary {
  cursor: pointer;
  color: var(--on-surface-variant);
  font-size: 14px;
}

.turn-details[open] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hint {
  margin: 0;
  font-size: 13px;
  color: var(--on-surface-variant);
}

.error {
  margin: 0;
  font-size: 14px;
  color: var(--error);
}

.status {
  margin: 0;
  font-size: 15px;
}

.player video {
  width: 100%;
  border-radius: 12px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-controls {
  display: flex;
  gap: 12px;
}

.limitations {
  color: var(--on-surface-variant);
  font-size: 13px;
  padding: 0 4px;
}
