:root {
  color-scheme: light;
  --ink: #111114;
  --text: #252333;
  --muted: #5f5872;
  --primary: #4b2cf5;
  --primary-soft: #ece8ff;
  --amber: #ffb800;
  --canvas: #f7f6ff;
  --surface: #ffffff;
  --surface-muted: #fbfaff;
  --border: #ded9f0;
  --border-strong: #cac3df;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, var(--canvas), #ffffff 50%, rgba(255, 184, 0, 0.16)),
    var(--canvas);
  color: var(--ink);
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.coming-soon,
.share-page {
  align-items: center;
  display: grid;
  justify-content: center;
  min-height: 100vh;
  padding: 36px 22px;
}

.content {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  max-width: 980px;
  width: 100%;
}

.intro {
  min-width: 0;
}

.lockup {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.brand-mark {
  height: 48px;
  object-fit: contain;
  width: 48px;
}

.wordmark {
  color: var(--ink);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.wordmark strong {
  color: var(--primary);
}

.strapline {
  background: var(--amber);
  color: var(--ink);
  font-weight: 900;
  line-height: 1;
  padding: 12px 16px;
  text-transform: uppercase;
}

h1 {
  color: var(--primary);
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}

.preview-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(37, 35, 51, 0.14);
  padding: 20px;
}

.preview-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.preview-header h2 {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0;
}

.count-pill,
.rank {
  align-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 34px;
  min-width: 44px;
  padding: 7px 10px;
}

.count-pill,
.rank-top {
  background: var(--amber);
  color: var(--ink);
}

.watch-card {
  align-items: flex-start;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 12px;
  padding: 14px;
}

.watch-card-top {
  border-left: 4px solid var(--amber);
}

.watch-card h3 {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
  margin: 0 0 6px;
}

.watch-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.share-shell {
  max-width: 680px;
  width: min(100%, 680px);
}

.share-header {
  text-align: center;
}

.share-lockup {
  margin-bottom: 14px;
}

.share-kicker {
  background: var(--amber);
  color: var(--ink);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 900;
  margin: 0 0 14px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.share-status,
.shared-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 70px rgba(37, 35, 51, 0.14);
  margin-top: 24px;
}

.share-status {
  align-items: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 28px;
  text-align: center;
}

.share-status h2,
.share-status p {
  margin: 0;
}

.share-status h2 {
  color: var(--ink);
  font-size: 1.25rem;
}

.share-status p {
  color: var(--muted);
  line-height: 1.5;
}

.share-status-error {
  border-color: var(--amber);
}

.loader {
  animation: spin 0.9s linear infinite;
  border: 3px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 999px;
  height: 34px;
  width: 34px;
}

.shared-list {
  display: grid;
  gap: 12px;
}

.shared-card {
  display: grid;
  gap: 18px;
  grid-template-columns: 120px minmax(0, 1fr);
  padding: 18px;
}

.share-poster {
  aspect-ratio: 2 / 3;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  object-fit: cover;
  width: 120px;
}

.share-copy {
  min-width: 0;
}

.share-meta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.share-copy h2 {
  color: var(--ink);
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.1;
  margin: 0;
}

.share-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 12px 0 0;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.primary-link,
.secondary-link {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
}

.primary-link {
  background: var(--primary);
  color: var(--surface);
}

.secondary-link {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--primary);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 820px) {
  .content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .coming-soon {
    padding: 28px 16px;
  }

  .lockup {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-mark {
    align-self: center;
  }

  .strapline {
    text-align: center;
  }

  .preview-card {
    border-radius: 18px;
    padding: 16px;
  }

  .shared-card {
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 14px;
  }

  .share-poster {
    width: 92px;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }
}
