/* ── Public Short Player ───────────────────────────────────────────────────── */

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 2rem 1rem;
  background: var(--color-bg-body, #0b0f1a);
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 720px;
  width: 100%;
}

.video {
  width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  background: #000;
}

.meta {
  text-align: center;
}

.title {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary, #e2e8f0);
}

.creator {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted, #64748b);
}

.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.copyBtn {
  padding: 0.375rem 0.875rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  background: var(--color-bg-surface, #151b2e);
  color: var(--color-text-secondary, #94a3b8);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.copyBtn:hover {
  background: var(--color-accent-subtle, rgba(0, 255, 209, 0.12));
  color: var(--color-accent, #00ffd1);
}

.copied {
  color: var(--color-badge-approved-text, #22c55e);
}

.branding {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-muted, #64748b);
}

.branding a {
  color: var(--color-accent, #00ffd1);
  text-decoration: none;
}

.branding a:hover {
  text-decoration: underline;
}

/* ── Loading / Error ──────────────────────────────────────────────────────── */

.loadingState,
.errorState {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--color-text-muted, #64748b);
  font-size: 0.875rem;
}

.errorState {
  flex-direction: column;
  gap: 0.5rem;
}

.errorMessage {
  color: var(--color-error, #ef4444);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .page {
    padding: 1rem 0.5rem;
  }

  .title {
    font-size: 1rem;
  }
}
