/* ─── Meditation Player ─────────────────────────────────────── */
.meditation-player-root {
  --mp-bg:          #f0eeea;
  --mp-card:        #f7f5f2;
  --mp-primary:     #5f7c6e;
  --mp-fg:          #2e3830;
  --mp-muted:       #8a9a90;
  --mp-border:      #ddd9d3;
  --mp-weiter-bg:   #2e3830;
  --mp-weiter-fg:   #f7f5f2;
  --mp-radius:      1rem;
  --mp-font:        system-ui, -apple-system, "Segoe UI", sans-serif;

  font-family: var(--mp-font);
  background: var(--mp-bg);
  border-radius: var(--mp-radius);
  padding: 2.5rem 2rem;
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
}

.meditation-player-root * { box-sizing: border-box; }

/* states */
.mp-loading,
.mp-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  color: var(--mp-muted);
  font-size: .9rem;
}

.mp-spinner {
  width: 2rem; height: 2rem;
  border: 3px solid var(--mp-border);
  border-top-color: var(--mp-primary);
  border-radius: 50%;
  animation: mp-spin .8s linear infinite;
}
@keyframes mp-spin { to { transform: rotate(360deg); } }

.mp-error { color: #b94a4a; }
.mp-error svg { width: 2.5rem; height: 2.5rem; }

.mp-retry {
  margin-top: .5rem;
  padding: .5rem 1.5rem;
  background: var(--mp-primary);
  color: #fff;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  font-size: .875rem;
  font-family: var(--mp-font);
  transition: opacity .2s;
}
.mp-retry:hover { opacity: .85; }

/* player */
.mp-player { display: flex; flex-direction: column; gap: 0; }

.mp-header { text-align: center; margin-bottom: 2rem; }
.mp-label {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mp-primary);
  opacity: .75;
  margin: 0 0 .5rem;
}
.mp-title {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--mp-fg);
  margin: 0;
  line-height: 1.3;
}

/* progress */
.mp-progress-wrap { margin-bottom: 1.75rem; }
.mp-progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--mp-border);
  cursor: pointer;
  outline: none;
  display: block;
}
.mp-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: var(--mp-primary);
  border-radius: 50%;
  margin-top: -5px;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.mp-progress::-moz-range-thumb {
  width: 14px; height: 14px;
  background: var(--mp-primary);
  border-radius: 50%;
  border: none;
}
.mp-times {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--mp-muted);
  margin-top: .5rem;
  font-variant-numeric: tabular-nums;
}

/* play button */
.mp-controls { display: flex; justify-content: center; }
.mp-play-btn {
  width: 5rem; height: 5rem;
  border-radius: 50%;
  background: var(--mp-weiter-bg);
  color: var(--mp-weiter-fg);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mp-font);
  transition: transform .2s, opacity .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.mp-play-btn:hover { transform: scale(1.06); }
.mp-play-btn:disabled { opacity: .45; cursor: default; transform: none; }
.mp-play-btn svg { width: 2rem; height: 2rem; fill: currentColor; }
.mp-play-btn .mp-spinner {
  width: 1.75rem; height: 1.75rem;
  border-color: rgba(255,255,255,.3);
  border-top-color: #fff;
}

/* pause overlay */
.mp-pause-overlay {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.5rem;
  animation: mp-fade-in .4s ease;
}
@keyframes mp-fade-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }

.mp-weiter-btn {
  padding: 1rem 3rem;
  background: var(--mp-weiter-bg);
  color: var(--mp-weiter-fg);
  border: none;
  border-radius: 3rem;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  font-family: var(--mp-font);
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  transition: transform .2s, box-shadow .2s;
}
.mp-weiter-btn:hover { transform: scale(1.04); box-shadow: 0 8px 28px rgba(0,0,0,.28); }

.mp-voice-hint { font-size: .8rem; color: var(--mp-muted); margin: 0; }

.mp-mic {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem;
}
.mp-mic-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--mp-primary);
  opacity: .18;
  animation: mp-pulse 2s ease-in-out infinite;
}
@keyframes mp-pulse {
  0%, 100% { transform: scale(1); opacity: .18; }
  50%       { transform: scale(1.6); opacity: .08; }
}
.mp-mic-icon {
  position: relative; z-index: 1;
  background: var(--mp-card);
  border: 1px solid rgba(95,124,110,.3);
  border-radius: 50%;
  padding: .55rem;
  color: var(--mp-primary);
  display: flex;
}
.mp-mic-icon svg { width: 1.1rem; height: 1.1rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* finished */
.mp-finished {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; padding: 1rem 0; text-align: center;
  animation: mp-fade-in .6s ease;
}
.mp-finished-ring {
  width: 5rem; height: 5rem;
  border-radius: 50%;
  background: rgba(95,124,110,.12);
  display: flex; align-items: center; justify-content: center;
}
.mp-finished-ring-inner {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: rgba(95,124,110,.22);
  animation: mp-pulse 3s ease-in-out infinite;
}
.mp-finished h2 {
  font-size: 1.4rem; font-weight: 300;
  color: var(--mp-fg); margin: 0;
}
.mp-finished p {
  color: var(--mp-muted); font-size: .875rem;
  font-weight: 300; margin: 0;
}
