/* ============================================================
   yiqi365 GEO 改造版 · meditation-ui.css
   冥想功能组件：呼吸圆环 / 呼吸计时器 / 音频播放器控件
   （页面级布局在 main.css；支付/收银组件沿用 pay.css）
   ============================================================ */

/* ---------- 呼吸引导圆环（breathing-guide.html / noon 沉浸态） ---------- */
.yx-breath-stage {
  position: relative;
  width: min(320px, 72vw);
  aspect-ratio: 1;
  margin: 30px auto;
  display: grid;
  place-items: center;
}

.yx-breath-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(120, 180, 255, 0.35);
  box-shadow: inset 0 0 40px rgba(120, 180, 255, 0.08);
}

.yx-breath-core {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%,
      rgba(255, 255, 255, 0.95) 0%, rgba(180, 220, 255, 0.85) 30%,
      rgba(120, 180, 255, 0.55) 62%, rgba(60, 100, 190, 0.18) 100%);
  box-shadow: 0 0 46px rgba(120, 180, 255, 0.4);
  transition: transform 1s cubic-bezier(0.4, 0, 0.4, 1);
  will-change: transform;
}

/* 呼吸相位态（breathing-timer.js 切换） */
.yx-breath-stage[data-phase="inhale"] .yx-breath-core { transform: scale(1.28); }
.yx-breath-stage[data-phase="hold"]   .yx-breath-core { transform: scale(1.28); }
.yx-breath-stage[data-phase="exhale"] .yx-breath-core { transform: scale(1); }

.yx-breath-label {
  position: absolute;
  bottom: -46px;
  width: 100%;
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.yx-breath-label small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: rgba(232, 237, 246, 0.62);
  letter-spacing: 0.1em;
}

/* 节律进度环（conic-gradient 由 JS 更新 --p） */
.yx-breath-progress {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(var(--yx-accent) calc(var(--p, 0%) ), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  opacity: 0.7;
}

/* 节律选择档位 */
.yx-pattern-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 26px 0 8px;
}

.yx-pattern-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--yx-line);
  background: rgba(10, 16, 32, 0.5);
  color: var(--yx-text-dim);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}

.yx-pattern-btn[aria-pressed="true"] {
  color: #06101f;
  background: var(--yx-accent);
  border-color: transparent;
  font-weight: 600;
}

.yx-breath-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 34px 0 10px;
}

.yx-round-stat {
  text-align: center;
  color: var(--yx-text-dim);
  font-size: 14px;
  margin-top: 18px;
  font-variant-numeric: tabular-nums;
}

/* ---------- 音频播放器（meditation-list / breathing-guide 通用） ---------- */
.yx-player {
  position: sticky;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(680px, calc(100% - 32px));
  margin: 26px auto 0;
  padding: 12px 18px;
  border: 1px solid var(--yx-line);
  border-radius: 16px;
  background: rgba(8, 14, 28, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.yx-player .yx-player-toggle {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #78b4ff, #4d7fce);
  color: #06101f;
  font-size: 17px;
  cursor: pointer;
}

.yx-player .yx-player-info { flex: 1; min-width: 0; font-size: 14.5px; }
.yx-player .yx-player-info small { display: block; color: var(--yx-text-dim); font-size: 12.5px; }

.yx-player .yx-player-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--yx-text-dim);
  font-size: 12px;
}

.yx-player input[type="range"] {
  width: 96px;
  accent-color: var(--yx-accent);
}

/* 沉浸提示徽标 */
.yx-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 181, 112, 0.5);
  color: var(--yx-accent-gold);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

/* 加载与空态 */
.yx-loading,
.yx-empty {
  text-align: center;
  color: var(--yx-text-dim);
  padding: 40px 0;
  font-size: 15px;
}
