:root {
  --bg: #f6f6f4;
  --text: #17181a;
  --muted: #64666b;
  --frame: #000;
  --line: #e2e2de;
  --accent: #5b5bd6;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --text: #ececec;
    --muted: #9a9ca1;
    --line: #26282c;
    --accent: #8e8cf0;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left));
}

[hidden] { display: none !important; }

.frame {
  background: var(--frame);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.meta { padding: 20px 4px 0; }

.meta h1 {
  margin: 0;
  font-size: clamp(20px, 3.2vw, 28px);
  line-height: 1.25;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.meta p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.notice {
  margin: 12vh auto 0;
  max-width: 440px;
  text-align: center;
}

.notice h1 {
  margin: 16px 0 8px;
  font-size: 22px;
  font-weight: 650;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 3s; }
}

@media (max-width: 600px) {
  .page { padding-top: 0; padding-left: 0; padding-right: 0; }
  .frame { border-radius: 0; box-shadow: none; }
  .meta { padding: 16px 16px 0; }
  .notice { padding: 0 16px; }
}
