:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #1f1f1f;
  --text: #f5f5f5;
  --text-dim: #8a8a8a;
  --accent: #4f46e5;
  --accent-hover: #6366f1;
  --radius: 12px;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.btn:hover {
  background: #1c1c1c;
  border-color: #2a2a2a;
}

.btn.copied {
  background: #14532d;
  border-color: #166534;
  color: #bbf7d0;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.player-wrap {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.title.empty {
  color: var(--text-dim);
  font-style: italic;
}

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.player video {
  width: 100%;
  height: 100%;
  display: block;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-dim);
  font-size: 13px;
}

.meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.error {
  width: 100%;
  max-width: 600px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.error h1 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.error p {
  color: var(--text-dim);
  font-size: 14px;
}

.landing {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.landing h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.landing p {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 24px;
}

.code {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--text);
}

@media (max-width: 640px) {
  .topbar { padding: 12px 16px; }
  .main { padding: 16px; }
  .landing h1 { font-size: 24px; }
}
