/* ============================================
   KPMC VoiceFit AI — Premium Design System
   ============================================ */

:root {
  --bg-0: #07070c;
  --bg-1: #0d0d16;
  --bg-2: #14141f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-mid: rgba(255, 255, 255, 0.12);
  --text-1: #ffffff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.48);
  --accent: #c9a7ff;
  --accent-2: #8b5cf6;
  --accent-3: #ec4899;
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f59e0b 100%);
  --gradient-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.12));
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.35);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

html, body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

#app-root {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-0);
  box-shadow: 0 0 0 1px var(--border-soft);
}

/* ========== Screen System ========== */
.screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  animation: fadeIn 0.4s ease;
}

.screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Splash Screen ========== */
#screen-splash {
  position: relative;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  text-align: center;
  overflow: hidden;
}

.splash-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.25), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.2), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.1), transparent 60%);
  animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.splash-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
}

.brand-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.splash-logo-wrap {
  margin: 20px auto 28px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-soft);
  border: 1px solid var(--border-mid);
  box-shadow: var(--shadow-glow);
}

.sound-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}

.sound-wave span {
  display: block;
  width: 4px;
  background: var(--gradient);
  border-radius: 4px;
  animation: wave 1.2s ease-in-out infinite;
}

.sound-wave span:nth-child(1) { animation-delay: 0.0s; height: 40%; }
.sound-wave span:nth-child(2) { animation-delay: 0.1s; height: 60%; }
.sound-wave span:nth-child(3) { animation-delay: 0.2s; height: 80%; }
.sound-wave span:nth-child(4) { animation-delay: 0.3s; height: 100%; }
.sound-wave span:nth-child(5) { animation-delay: 0.4s; height: 70%; }
.sound-wave span:nth-child(6) { animation-delay: 0.5s; height: 50%; }
.sound-wave span:nth-child(7) { animation-delay: 0.6s; height: 90%; }
.sound-wave span:nth-child(8) { animation-delay: 0.7s; height: 60%; }
.sound-wave span:nth-child(9) { animation-delay: 0.8s; height: 80%; }
.sound-wave span:nth-child(10) { animation-delay: 0.9s; height: 40%; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.splash-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
  line-height: 1.1;
}

.splash-title .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.splash-subtitle {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 40px;
}

.splash-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  font-size: 15px;
  color: var(--text-1);
  backdrop-filter: blur(10px);
}

.feature-item i {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  border-radius: 10px;
  color: var(--accent);
  font-size: 14px;
}

.splash-footer {
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.3px;
}

.splash-footer strong {
  color: var(--text-2);
  font-weight: 600;
}

/* ========== Buttons ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  background: var(--gradient);
  border: none;
  border-radius: 16px;
  color: white;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: 14px;
  color: var(--text-1);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-mid);
}

.btn-full { width: 100%; }

/* ========== Screen Header ========== */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
}

.btn-back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  color: var(--text-1);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.06);
}

.step-indicator {
  display: flex;
  gap: 6px;
  align-items: center;
}

.step {
  width: 24px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

.step.active {
  background: var(--gradient);
  width: 32px;
}

.step.done {
  background: var(--accent-2);
}

.screen-body {
  flex: 1;
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
}

.screen-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.screen-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 32px;
}

.screen-desc small {
  display: block;
  margin-top: 6px;
  color: var(--text-3);
  font-size: 13px;
}

/* ========== Microphone UI ========== */
.mic-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0 32px;
}

.mic-visualizer {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.mic-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  opacity: 0;
}

.mic-ring.ring-1 { width: 140px; height: 140px; }
.mic-ring.ring-2 { width: 170px; height: 170px; }
.mic-ring.ring-3 { width: 200px; height: 200px; }

.mic-visualizer.recording .mic-ring {
  animation: ringPulse 2s ease-out infinite;
}

.mic-visualizer.recording .ring-2 { animation-delay: 0.5s; }
.mic-visualizer.recording .ring-3 { animation-delay: 1s; }

@keyframes ringPulse {
  0% { opacity: 0.8; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.4); }
}

.mic-button {
  position: relative;
  z-index: 2;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient);
  border: 4px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
}

.mic-button:hover:not(:disabled) {
  transform: scale(1.05);
}

.mic-visualizer.recording .mic-button {
  background: linear-gradient(135deg, #ef4444, #ec4899);
  animation: micPulse 1.5s ease-in-out infinite;
}

@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 60px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 100px rgba(239, 68, 68, 0.7); }
}

.record-timer {
  font-size: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  color: var(--text-1);
  margin-bottom: 10px;
}

.record-status {
  font-size: 14px;
  color: var(--text-3);
  min-height: 20px;
}

.record-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-2);
}

.tip-item i {
  color: var(--accent);
  width: 16px;
  text-align: center;
}

.record-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.record-actions.hidden { display: none; }

.record-actions .btn-secondary { flex: 1; }
.record-actions .btn-primary { flex: 2; }

/* ========== Analyzing Screen ========== */
#screen-analyzing {
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  text-align: center;
}

.analyzing-content {
  width: 100%;
}

.analyzing-spinner {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent-2);
  animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
  width: 140px;
  height: 140px;
  animation-duration: 2s;
}
.spinner-ring:nth-child(2) {
  width: 110px;
  height: 110px;
  border-top-color: var(--accent-3);
  animation-duration: 1.5s;
  animation-direction: reverse;
}
.spinner-ring:nth-child(3) {
  width: 80px;
  height: 80px;
  border-top-color: #f59e0b;
  animation-duration: 1s;
}

.analyzing-spinner i {
  font-size: 32px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.analyze-status {
  font-size: 15px;
  color: var(--text-2);
  margin: 20px 0 24px;
  min-height: 22px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 6px;
  transition: width 0.3s ease;
}

/* ========== Profile Form ========== */
.voice-summary-card {
  padding: 18px;
  background: var(--gradient-soft);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  margin-bottom: 28px;
}

.summary-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.summary-text {
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.5;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}

.form-label i {
  color: var(--accent);
  font-size: 13px;
}

.radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-group.vertical {
  flex-direction: column;
}

.radio-item {
  flex: 1;
  min-width: max-content;
  cursor: pointer;
}

.radio-group.vertical .radio-item { width: 100%; }

.radio-item input {
  display: none;
}

.radio-item span {
  display: block;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  color: var(--text-2);
  font-size: 14px;
  text-align: center;
  transition: all 0.2s ease;
}

.radio-item input:checked + span {
  background: var(--gradient-soft);
  border-color: var(--accent-2);
  color: var(--text-1);
  font-weight: 600;
}

.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  cursor: pointer;
}

.chip input {
  display: none;
}

.chip span {
  display: inline-block;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  color: var(--text-2);
  font-size: 14px;
  transition: all 0.2s ease;
}

.chip input:checked + span {
  background: var(--gradient-soft);
  border-color: var(--accent-2);
  color: var(--text-1);
  font-weight: 600;
}

.profile-form button[type="submit"] {
  margin-top: 12px;
}

/* ========== Result Screen ========== */
.result-hero {
  padding: 28px 24px;
  background: var(--gradient-soft);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 22px;
  margin-bottom: 24px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff, #c9a7ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 22px;
}

.voice-stats {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.stat-box {
  padding: 12px 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  text-align: center;
}

.stat-label {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}

.voice-traits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.trait-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.trait-label {
  color: var(--text-3);
  min-width: 50px;
}

.trait-bar {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  overflow: hidden;
}

.trait-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 6px;
  transition: width 0.8s ease;
}

.trait-val {
  font-weight: 600;
  color: var(--text-1);
  font-size: 12px;
  min-width: 40px;
  text-align: right;
}

.trait-tag {
  flex: 1;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  color: var(--text-1);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

/* ========== Insights ========== */
.insights-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.section-title i {
  color: var(--accent);
}

.insights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insights-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  border-bottom: 1px solid var(--border-soft);
}

.insights-list li:last-child { border-bottom: none; }

.insights-list li::before {
  content: '✦';
  color: var(--accent);
  font-size: 14px;
  margin-top: 2px;
}

/* ========== Song Recommendations ========== */
.recommendations-section {
  margin-bottom: 28px;
}

.song-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.song-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.song-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-1px);
}

.song-card.rank-1 {
  background: var(--gradient-soft);
  border-color: rgba(139, 92, 246, 0.35);
}

.song-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.song-rank {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  flex-shrink: 0;
}

.song-card.rank-1 .song-rank {
  background: var(--gradient);
  color: white;
}

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

.song-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 3px;
  letter-spacing: -0.3px;
}

.song-artist {
  font-size: 13px;
  color: var(--text-3);
}

.song-score {
  text-align: right;
}

.score-value {
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.score-label {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.song-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.song-tag {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  font-size: 11px;
  color: var(--text-2);
}

.song-tag.difficulty-easy { color: #22c55e; border-color: rgba(34, 197, 94, 0.3); }
.song-tag.difficulty-medium { color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
.song-tag.difficulty-hard { color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }
.song-tag.year-tag { color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ========== Karaoke Badge Row (금영 + TJ) ========== */
.karaoke-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.karaoke-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  user-select: none;
}

.karaoke-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.karaoke-badge:active {
  transform: translateY(0);
}

.karaoke-badge .brand {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  letter-spacing: 0.5px;
}

.karaoke-badge .code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.karaoke-badge i {
  font-size: 9px;
  opacity: 0.8;
}

/* 금영노래방 — 따뜻한 앰버 계열 */
.ky-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(236, 72, 153, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.ky-badge .brand {
  color: #fde68a;
  background: rgba(120, 53, 15, 0.55);
}

/* TJ미디어 — 시원한 블루/퍼플 계열 */
.tj-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #c7d2fe;
}

.tj-badge .brand {
  color: #dbeafe;
  background: rgba(30, 58, 138, 0.55);
}

.song-reason {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.song-reason i {
  color: var(--accent);
  margin-top: 3px;
  font-size: 11px;
}

.key-shift {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.result-actions {
  margin-bottom: 20px;
}

.result-footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
}

.result-footer p {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
  line-height: 1.5;
}

.result-footer p i {
  color: var(--accent);
  margin-right: 4px;
}

.kpmc-sign {
  margin-top: 12px !important;
  font-size: 11px !important;
  letter-spacing: 0.5px;
}

.kpmc-sign .fa-heart {
  color: var(--accent-3) !important;
}

.kpmc-sign strong {
  color: var(--text-1);
  font-weight: 700;
}

/* ========== 감성 공유 카드 버튼 (미니멀 네이비) ========== */
.share-card-wrap {
  margin: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.share-card-btn {
  width: 100%;
  max-width: 420px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 1px solid rgba(240, 198, 116, 0.3);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(15, 15, 35, 0.4);
  color: #ffffff;
  font-family: inherit;
}

.share-card-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 15, 35, 0.55);
  border-color: rgba(240, 198, 116, 0.55);
}

.share-card-btn:active:not(:disabled) {
  transform: translateY(0);
}

.share-card-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.share-card-btn .share-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.share-card-btn .share-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex: 1;
  text-align: left;
}

.share-card-btn .share-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.share-card-btn .share-sub {
  font-size: 12px;
  color: rgba(240, 198, 116, 0.85);
  font-weight: 400;
}

.share-hint {
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
  letter-spacing: -0.1px;
  opacity: 0.8;
}

/* ========== PWA 홈 화면에 추가 배너 ========== */
.install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 16px;
  z-index: 9999;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  border: 1px solid rgba(240, 198, 116, 0.35);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  color: #fff;
  animation: installSlideUp 0.35s ease;
  max-width: 480px;
  margin: 0 auto;
}

@keyframes installSlideUp {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.install-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
}

.install-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.install-text {
  flex: 1;
  min-width: 0;
}

.install-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.install-sub {
  font-size: 11.5px;
  color: rgba(240, 198, 116, 0.85);
  margin-top: 2px;
}

.install-cta {
  background: linear-gradient(135deg, #f0c674 0%, #d4af37 100%);
  color: #0f0f23;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  transition: transform 0.15s ease;
}

.install-cta:active {
  transform: scale(0.95);
}

.install-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.75);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.install-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.install-ios-guide {
  padding: 10px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.install-ios-guide i {
  color: #f0c674;
  margin: 0 2px;
}

/* ========== Utilities ========== */
.hidden { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
