:root {
  --bg: #0f172a;
  --card: #1e293b;
  --border: #334155;
  --text: #ffffff;
  --muted: #94a3b8;
  --pink: #ff4db3;
  --purple: #7b61ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
}

body {
  line-height: 1.5;
}

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

.topbar {
  padding: 20px 20px 8px;
  text-align: center;
}

.brand {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand span {
  color: var(--pink);
}

.content {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 20px 32px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.thumbnail-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 62vh;
  background: #111827;
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e293b 0%, #111827 100%);
  color: var(--muted);
  font-weight: 700;
}

.body {
  padding: 18px 18px 20px;
}

.title {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
}

.creator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: #111827;
}

.avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-weight: 900;
  font-size: 1rem;
}

.creator-name {
  font-weight: 800;
  font-size: 1rem;
}

.creator-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.stats {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--pink);
  color: var(--text);
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-secondary:disabled {
  opacity: 0.7;
  cursor: default;
}

.hint {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.footer {
  padding: 16px 20px 28px;
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (min-width: 640px) {
  .content {
    padding-top: 24px;
  }

  .thumbnail-wrap {
    max-height: 520px;
    aspect-ratio: 9 / 14;
  }
}

/* Email verification landing (/verify-email) */
.verify-content {
  display: flex;
  align-items: center;
}

.verify-card {
  width: 100%;
}

.verify-body {
  padding: 36px 22px 28px;
  text-align: center;
}

.verify-state {
  display: none;
  flex-direction: column;
  align-items: center;
}

.verify-state.is-active {
  display: flex;
}

.verify-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
}

.verify-message {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  max-width: 28ch;
}

.verify-spinner {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--pink);
  animation: verify-spin 0.8s linear infinite;
}

.verify-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.verify-icon-success {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.verify-icon-error {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.verify-state .actions {
  width: 100%;
  max-width: 280px;
}

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

@media (max-width: 380px) {
  .verify-body {
    padding: 28px 16px 24px;
  }

  .verify-title {
    font-size: 1.2rem;
  }
}

/* Reset password landing (/reset-password) */
.reset-form {
  width: 100%;
  text-align: left;
}

.reset-label {
  display: block;
  margin: 0 0 6px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.reset-label + .reset-input + .reset-label {
  margin-top: 14px;
}

.reset-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #111827;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.reset-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(255, 77, 179, 0.25);
}

.reset-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
}

.reset-form-error {
  margin: 12px 0 0;
  color: #f87171;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.reset-form-actions {
  margin-top: 20px;
}

.reset-form .btn:disabled {
  opacity: 0.7;
  cursor: default;
}
