:root {
  color-scheme: light;

  /* Claude Design tokens */
  --bg: #f5f4ed;
  --surface: #faf9f5;
  --surface-warm: #e8e6dc;
  --fg: #141413;
  --fg-2: #3d3d3a;
  --muted: #5e5d59;
  --meta: #87867f;
  --border: #f0eee6;
  --border-soft: #e8e6dc;
  --accent: #c96442;
  --accent-on: #faf9f5;
  --accent-hover: #b85736;
  --danger: #b53333;

  --font-display: "Anthropic Serif", Georgia, "Times New Roman", serif;
  --font-body: "Anthropic Sans", Inter, "Arial", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

main {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0em;
  line-height: 1.15;
  margin: 0 0 40px;
  color: var(--fg);
}

#status {
  font-size: 15px;
  color: var(--fg-2);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.sub {
  font-size: 13px;
  color: var(--meta);
  margin: 0 0 32px;
}

#progress-bar {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.track {
  width: 100%;
  height: 6px;
  background: var(--border-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.2s ease-out;
}

.progress-row {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

#progress-percent {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--fg);
}

.detail {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.01em;
}

.error {
  margin-top: 24px;
  font-size: 13px;
  color: var(--danger);
  max-width: 380px;
  line-height: 1.6;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

#player-screen {
  padding: 16px;
}

#video {
  width: 100%;
  max-width: 960px;
  max-height: 80vh;
  background: var(--fg);
  border-radius: 16px;
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .wordmark {
    font-size: 34px;
  }
}
