/* SadFans Web — Dark theme, mobile-first */

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

:root {
  --bg: #121212;
  --bg-card: #1E1E1E;
  --text: #FFFFFF;
  --text-muted: #999999;
  --accent: #E8001D;
  --accent-hover: #FF1A33;
  --radius: 12px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px;
  text-align: center;
}

.logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: block;
}

h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.subhead {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.4;
}

/* Persona cards */
.persona-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.persona-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.persona-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.persona-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.persona-info .role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.persona-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Email form */
.email-form {
  margin-bottom: 40px;
}

.email-form h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.email-form .input-group {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid #333;
  background: var(--bg-card);
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.email-form input[type="email"]::placeholder {
  color: #666;
}

.email-form input[type="email"]:focus {
  border-color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--text);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--text);
}

/* Share pages */
.share-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  text-align: left;
}

.share-card .team-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.share-card .episode-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.share-card .meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.share-card .quote {
  font-size: 16px;
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin: 16px 0;
}

.share-card .host-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.share-card .host-row img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.share-card .host-row .host-name {
  font-weight: 600;
  font-size: 14px;
}

.share-card .host-row .host-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* Heatmap bars */
.misery-list {
  list-style: none;
  margin: 16px 0;
}

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

.misery-item .rank {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.misery-item .team-name {
  font-weight: 700;
  width: 48px;
  flex-shrink: 0;
}

.misery-bar-wrap {
  flex: 1;
  background: #2A2A2A;
  border-radius: 6px;
  height: 28px;
  overflow: hidden;
  position: relative;
}

.misery-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}

.misery-score {
  font-size: 14px;
  font-weight: 700;
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

/* Profile */
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 16px;
  border: 3px solid var(--accent);
}

.profile-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-team {
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}

audio {
  width: 100%;
  max-width: 360px;
  margin: 16px auto;
  display: block;
  border-radius: var(--radius);
}

/* CTA section */
.cta {
  margin: 32px 0;
}

.cta p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Footer */
.footer {
  padding: 24px 0;
  font-size: 13px;
  color: #555;
  border-top: 1px solid #222;
  margin-top: 40px;
}

/* 404 */
.four-oh-four {
  padding-top: 80px;
}

.four-oh-four h1 {
  font-size: 64px;
  color: var(--accent);
  margin-bottom: 16px;
}

.four-oh-four p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Form success */
.form-msg {
  font-size: 14px;
  margin-top: 8px;
  min-height: 20px;
}

.form-msg.success {
  color: #4CAF50;
}

.form-msg.error {
  color: var(--accent);
}
