:root {
  --brand: #ce3300;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #717182;
  --border: #00000014;
  --font-mono: "Chivo Mono", monospace;
  --font-sans: "Inter", sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) 20px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* Header ---------------------------------------------------- */
.head {
  text-align: center;
  margin-bottom: clamp(28px, 5vh, 56px);
}

.wordmark {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.forline {
  margin-top: 14px;
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--muted);
  font-weight: 400;
}

.forline .store {
  color: var(--text);
  font-weight: 600;
}

/* Switcher -------------------------------------------------- */
.switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: clamp(24px, 4vh, 40px);
  box-shadow: 0 1px 2px #0000000a;
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.tab:hover { color: var(--text); }

.tab[aria-selected="true"] {
  background: var(--brand);
  color: #fff;
}

/* Stage / players ------------------------------------------ */
.stages { width: 100%; display: flex; justify-content: center; }
.stage { width: 100%; display: flex; justify-content: center; }
.stage[hidden] { display: none; }

.player {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px #00000014;
}

.stage--desktop .player { max-width: 920px; aspect-ratio: 16 / 10; }
.stage--mobile  .player { max-width: 340px; aspect-ratio: 9 / 19.5; }

/* Placeholder when a video isn't uploaded yet */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--surface);
  border: 1px dashed #00000026;
  padding: 24px;
}
.stage--desktop .placeholder { max-width: 920px; aspect-ratio: 16 / 10; }
.stage--mobile  .placeholder { max-width: 340px; aspect-ratio: 9 / 19.5; }

/* Footer ---------------------------------------------------- */
.foot {
  margin-top: clamp(36px, 7vh, 72px);
  font-family: var(--font-mono);
  font-size: 14px;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.foot a:hover { color: var(--brand); border-color: var(--brand); }
