* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fafc;
  color: #111827;
}
.center {
  width: min(720px, calc(100vw - 32px));
  margin: 12vh auto 0;
}
.watch {
  width: min(960px, 100vw);
  margin: 0 auto;
  padding: 12px;
}
h1 { font-size: 28px; margin: 0 0 18px; }
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 17px;
}
button, .button, a#open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 10px 8px 0 0;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #111827;
  color: white;
  text-decoration: none;
  font-weight: 650;
}
button.secondary {
  background: #e5e7eb;
  color: #111827;
}
form button { width: 100%; }
video {
  display: block;
  width: 100%;
  max-height: 82vh;
  background: #000;
  border-radius: 6px;
}
nav { margin-top: 24px; }
nav a { color: #2563eb; margin-right: 16px; }
.recent-strip {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding: 2px 0 18px;
}
.recent-item {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #111827;
}
.recent-item img,
.recent-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
button.danger {
  background: #991b1b;
}
.muted, #status { color: #475569; }
pre {
  overflow: auto;
  padding: 12px;
  background: #e5e7eb;
  border-radius: 6px;
}
