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

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --text: #e8eaf0;
  --muted: #8a90a4;
  --accent: #7c5cff;
  --accent-hover: #9277ff;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
}

main.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

main.watch {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

header { margin-bottom: 1.5rem; }

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

h1 { font-size: 1.4rem; margin-bottom: 0.25rem; overflow-wrap: anywhere; }

.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }

.hint { color: var(--muted); font-size: 0.9rem; }

video {
  width: 100%;
  border-radius: 12px;
  background: #000;
  max-height: 70vh;
}

.pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 2rem;
  background: var(--surface);
  border-radius: 12px;
  color: var(--muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--surface);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.actions { display: flex; gap: 0.75rem; margin-top: 1rem; }

button, .button {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:hover, .button:hover { background: var(--accent-hover); }

.button, button.secondary { background: var(--surface); color: var(--text); }
