/* ===========================================================
   Stay a Moment — homepage encouragement card
   Matches the site's EB Garamond / Courier Prime Code aesthetic.
   =========================================================== */

.stay-a-moment {
  margin: 2rem 0 2.5rem 0;
  text-align: center;
}

.sam-heading {
  font-family: 'EB Garamond', 'Noto Serif KR', serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.02em;
}

.sam-sub {
  font-family: 'EB Garamond', 'Noto Serif KR', serif;
  font-size: 1rem;
  font-style: italic;
  color: #666;
  margin: 0 0 1.25rem 0;
}

/* --- Prompt form --- */

.sam-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sam-input {
  width: 100%;
  max-width: 32rem;
  padding: 0.75rem 1rem;
  font-family: 'EB Garamond', 'Noto Serif KR', serif;
  font-size: 1rem;
  line-height: 1.5;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 6px;
  resize: none;
  color: #000;
}
.sam-input:focus {
  outline: none;
  border-color: #888;
  background: #fff;
}
.sam-input::placeholder {
  color: #999;
  font-style: italic;
}

.sam-submit {
  font-family: 'Courier Prime Code', monospace;
  font-size: 0.95rem;
  padding: 0.5rem 1.5rem;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.15s, color 0.15s;
}
.sam-submit:hover { background: #000; color: #fff; }
.sam-submit:disabled { opacity: 0.4; cursor: wait; }

/* --- Chip row (quick-pick moods) --- */

.sam-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: 32rem;
  margin: 0 auto;
}

.sam-chip {
  font-family: 'Courier Prime Code', monospace;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  background: transparent;
  color: #555;
  border: 1px solid #ddd;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.sam-chip:hover { border-color: #000; color: #000; background: #f5f5f5; }

.sam-or {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #888;
  margin: 0.75rem 0 0.6rem;
}

/* --- Loading state --- */

.sam-loading {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: #888;
  padding: 2rem 0;
}
.sam-loading::after {
  content: "...";
  display: inline-block;
  animation: sam-dots 1.4s infinite;
}
@keyframes sam-dots {
  0%, 20% { content: "."; }
  40% { content: ".."; }
  60%, 100% { content: "..."; }
}

/* --- Triad result --- */

.sam-result {
  text-align: left;
  max-width: 36rem;
  margin: 1.5rem auto 0;
  border-top: 1px solid #eee;
  padding-top: 1.75rem;
}

.sam-scripture {
  text-align: center;
  margin-bottom: 2rem;
}
.sam-scripture-text {
  font-family: 'EB Garamond', 'Noto Serif KR', serif;
  font-size: 1.2rem;
  line-height: 1.65;
  margin: 0 0 0.5rem 0;
}
.sam-scripture-ref {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}
.sam-scripture-ref a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }

.sam-section-label {
  font-family: 'Courier Prime Code', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #999;
  margin: 1.75rem 0 0.5rem 0;
  text-align: center;
}

.sam-excerpt-text {
  font-family: 'EB Garamond', 'Noto Serif KR', serif;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 0.75rem 0;
}
.sam-excerpt-source {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: #888;
  text-align: right;
  margin: 0;
}
.sam-excerpt-source a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }

.sam-song {
  text-align: center;
}
.sam-song-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  margin: 0 0 0.25rem 0;
}
.sam-song-scripture {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 0.75rem 0;
}
.sam-streaming {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-family: 'Courier Prime Code', monospace;
  font-size: 0.85rem;
}
.sam-streaming a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1px;
}
.sam-streaming a:hover { color: #000; border-bottom-color: #000; }

.sam-artist-note {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.8rem;
  color: #999;
  margin-top: 1.25rem;
  line-height: 1.5;
}
.sam-artist-note a { color: #777; }

/* --- Crisis card --- */

.sam-crisis {
  text-align: center;
  max-width: 32rem;
  margin: 1.5rem auto 0;
  padding: 1.75rem 1.25rem;
  border: 2px solid #333;
  border-radius: 8px;
  background: #fff;
}
.sam-crisis-message {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.5rem 0;
}
.sam-crisis-resource {
  margin: 0.75rem 0;
  font-family: 'EB Garamond', serif;
}
.sam-crisis-resource a {
  font-weight: 500;
  color: #000;
  text-decoration: underline;
}
.sam-crisis-phone {
  font-family: 'Courier Prime Code', monospace;
  font-size: 1.1rem;
  display: block;
  margin: 0.25rem 0;
}
.sam-crisis-note {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}
.sam-crisis-closing {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  line-height: 1.65;
  margin: 1.5rem 0 0 0;
  color: #333;
}

/* --- Error states --- */

.sam-error {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: #888;
  padding: 1.5rem 0;
  text-align: center;
  line-height: 1.5;
}

/* --- Responsive --- */

@media (max-width: 640px) {
  .sam-input, .sam-chips, .sam-result { max-width: 100%; }
  .sam-heading { font-size: 1.25rem; }
  .sam-scripture-text { font-size: 1.1rem; }
}

/* --- Playlist link below song --- */

.sam-playlist-link {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #888;
  margin-top: 1.25rem;
  text-align: center;
}
.sam-playlist-link a {
  color: #555;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.sam-playlist-link a:hover { color: #000; }

/* ===========================================================
   Playlist pages (/music/playlist/<slug>/)
   =========================================================== */

.playlist-page {
  max-width: 44rem;
  margin: 0 auto;
}

.playlist-header {
  text-align: center;
  margin-bottom: 2rem;
}

.playlist-eyebrow {
  font-family: 'Courier Prime Code', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #999;
  margin: 0 0 0.5rem 0;
}

.playlist-title {
  font-family: 'EB Garamond', 'Noto Serif KR', serif;
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.01em;
}

.playlist-description {
  font-family: 'EB Garamond', 'Noto Serif KR', serif;
  font-style: italic;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 32rem;
}

.playlist-streaming {
  text-align: center;
  margin: 1.5rem 0 2rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.playlist-streaming-label {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: #888;
  font-size: 0.95rem;
  margin: 0 0 0.5rem 0;
}

.playlist-streaming-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-family: 'Courier Prime Code', monospace;
  font-size: 0.9rem;
}
.playlist-streaming-links a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
}
.playlist-streaming-links a:hover { color: #000; border-bottom-color: #000; }

.playlist-songs {
  list-style: none;
  counter-reset: playlist-counter;
  padding: 0;
  margin: 0;
}

.playlist-song {
  counter-increment: playlist-counter;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  gap: 1.5rem;
}

.playlist-song::before {
  content: counter(playlist-counter, decimal-leading-zero);
  font-family: 'Courier Prime Code', monospace;
  font-size: 0.8rem;
  color: #bbb;
  flex: 0 0 2rem;
  padding-top: 0.2rem;
}

.playlist-song-info { flex: 1; min-width: 0; }

.playlist-song-title {
  font-family: 'EB Garamond', 'Noto Serif KR', serif;
  font-size: 1.1rem;
  margin: 0 0 0.2rem 0;
}

.playlist-song-qualifier {
  color: #888;
  font-size: 0.9rem;
  font-style: italic;
}

.playlist-song-scripture {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: #777;
  font-size: 0.9rem;
  margin: 0;
}

.playlist-song-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 0.9rem;
  font-family: 'Courier Prime Code', monospace;
  font-size: 0.8rem;
  flex: 0 0 auto;
  max-width: 18rem;
}
.playlist-song-links a {
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
}
.playlist-song-links a:hover { color: #000; border-bottom-color: #000; }

@media (max-width: 640px) {
  .playlist-song { flex-direction: column; gap: 0.4rem; }
  .playlist-song-links { justify-content: flex-start; max-width: 100%; }
}
