/* ── Тиждень ───────────────────────────────────────────────────────────── */

.week {
  background: linear-gradient(150deg, var(--sage-soft), var(--lilac-soft));
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.week__row { display: flex; align-items: baseline; justify-content: space-between; }
.week__title { font-size: var(--size-sm); margin: 0; }
.week__count { font-family: var(--font-display); font-size: var(--size-xl); font-weight: 600; margin: 0; }

.week__dots { display: flex; gap: 6px; margin: 14px 0 10px; }
.week__dot {
  flex: 1; height: 7px; border-radius: var(--radius-pill);
  background: rgba(46,40,35,.10);
}
.week__dot.is-on { background: var(--accent); }

/* Формулювання завжди підтримує: «4 з 7» замість «ви пропустили 3» */
.week__note { font-size: var(--size-xs); color: var(--ink-muted); margin: 0; line-height: 1.45; }

/* ── Порада під фазу ───────────────────────────────────────────────────── */

.advice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 15px 17px;
  margin-top: var(--gap);
  box-shadow: var(--shadow-card);
}
.advice__dot {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--card-pink);
  display: grid; place-items: center;
}
.advice p { margin: 0; font-size: var(--size-xs); line-height: 1.5; color: var(--ink-muted); }

/* ── Пропозиція дня ────────────────────────────────────────────────────── */

.pick {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  background: var(--card-pink);
  border: none; border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
  font-family: inherit; color: var(--ink); cursor: pointer;
}
.pick:active { transform: scale(.985); }
.pick__name { font-family: var(--font-display); font-size: var(--size-lg); font-weight: 500; }
.pick__meta { font-size: var(--size-xs); color: rgba(46,40,35,.6); display: block; margin-top: 3px; }
.pick__go { margin-left: auto; font-size: 20px; opacity: .5; }

/* ── Фільтри ───────────────────────────────────────────────────────────── */

.filters {
  display: flex; gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters .chip { flex-shrink: 0; }

/* ── Бібліотека ────────────────────────────────────────────────────────── */

.lib { display: grid; gap: 8px; }

.ex {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: none; border-radius: var(--radius-inner);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
  font-family: inherit; text-align: left; color: var(--ink); cursor: pointer;
  width: 100%;
}
.ex:active { transform: scale(.99); }
.ex__body { min-width: 0; flex: 1; }
.ex__name {
  font-size: var(--size-sm); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ex__meta { font-size: var(--size-xs); color: var(--ink-muted); margin-top: 2px; }

.ex__level { display: flex; gap: 2px; flex-shrink: 0; }
.ex__level i { width: 5px; height: 5px; border-radius: 50%; background: rgba(46,40,35,.14); }
.ex__level i.is-on { background: var(--accent); }

.lib-empty { text-align: center; padding: 22px; color: var(--ink-muted); font-size: var(--size-sm); }

/* ── Картка вправи ─────────────────────────────────────────────────────── */

/* Фото стартової і кінцевої позиції. Для «як це робити» вони
   пояснюють більше, ніж будь-який текст, тому стоять першими. */
.shots {
  display: flex; gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }

.shots img {
  width: 78%; flex-shrink: 0;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-inner);
  background: var(--surface);
  scroll-snap-align: center;
}

.shots__empty {
  width: 100%; aspect-ratio: 16/9;
  border-radius: var(--radius-inner);
  background: var(--sage-soft);
  display: grid; place-items: center;
  font-size: var(--size-xs); color: var(--ink-muted);
}

.dmeta { font-size: var(--size-xs); color: var(--ink-muted); margin: -10px 0 4px; }

.steps { margin: 0; padding-left: 20px; }
.steps li {
  font-size: var(--size-sm);
  line-height: 1.55;
  margin-bottom: 10px;
  padding-left: 4px;
}
.steps li::marker { color: var(--accent); font-weight: 500; }

/* Чесно кажемо, що текст ще не перекладено, замість тихо показати англійську */
.lang-note {
  margin: 10px 0 0;
  padding: 10px 13px;
  background: var(--butter-soft);
  border-radius: var(--radius-inner);
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-muted);
}

.warn {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--pink-soft);
  border-radius: var(--radius-inner);
  font-size: var(--size-xs);
  line-height: 1.5;
}

/* ── Список комплексів ─────────────────────────────────────────────────── */

.wlist { display: grid; gap: 10px; }

.wo {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  border: none; border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  font-family: inherit; color: var(--ink); cursor: pointer;
  background: var(--surface);
}
.wo:active { transform: scale(.99); }

/* Те, що підходить сьогодні, виглядає інакше — але решта лишається
   доступною: жінка має право зробити те, що хоче */
.wo.is-fit { background: var(--card-pink); }

.wo__body { flex: 1; min-width: 0; }
.wo__name { font-family: var(--font-display); font-size: var(--size-lg); font-weight: 500; }
.wo__desc { font-size: var(--size-xs); color: rgba(46,40,35,.62); margin-top: 3px; line-height: 1.4; }
.wo__meta { font-size: 11px; color: rgba(46,40,35,.5); margin-top: 6px; }
.wo__go {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%; background: rgba(255,255,255,.6);
  display: grid; place-items: center; font-size: 17px;
}

/* ── Бібліотека під розкриттям ─────────────────────────────────────────── */

.more { margin-top: 26px; }
.more__head {
  cursor: pointer; list-style: none;
  font-size: var(--size-xs); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-muted);
  padding: 12px 4px; display: flex; align-items: baseline; gap: 8px;
}
.more__head::-webkit-details-marker { display: none; }
.more__head::after { content: '⌄'; margin-left: auto; font-size: 15px; }
details[open] .more__head::after { content: '⌃'; }
.more__hint { text-transform: none; letter-spacing: 0; opacity: .7; font-size: 11px; }

/* ── Плеєр тренування ──────────────────────────────────────────────────── */

.wp {
  position: fixed; inset: 0; z-index: 70;
  background: var(--bg);
  max-width: 420px; margin: 0 auto;
  display: flex; flex-direction: column;
}

.wp__top { padding: 16px 20px 0; position: relative; }
.wp__close {
  position: absolute; right: 14px; top: 8px;
  width: 36px; height: 36px; border: none; background: none;
  font-size: 26px; color: var(--ink-muted); cursor: pointer; line-height: 1;
}
.wp__bar {
  height: 4px; background: rgba(46,40,35,.09);
  border-radius: var(--radius-pill); overflow: hidden; margin-right: 40px;
}
.wp__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.wp__pos { font-size: 11px; color: var(--ink-muted); margin: 8px 0 0; }

.wp__stage { flex: 1; overflow-y: auto; padding: 12px 20px 20px; }

.wp__img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-card); background: var(--surface);
  margin-bottom: 16px;
}

.wp__phase {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 4px;
}
.wp__name {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 500;
  margin: 0 0 6px; letter-spacing: -.02em; line-height: 1.15;
}
.wp__count {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
  color: var(--accent); margin: 0 0 14px; letter-spacing: -.03em;
}

.wp__steps { margin: 0; padding-left: 20px; }
.wp__steps li { font-size: var(--size-sm); line-height: 1.5; margin-bottom: 8px; }
.wp__steps li::marker { color: var(--ink-muted); }

.wp__tip {
  margin-top: 14px; padding: 11px 14px;
  background: var(--butter-soft); border-radius: var(--radius-inner);
  font-size: var(--size-xs); line-height: 1.5; color: var(--ink-muted);
}

.wp__foot { display: flex; gap: 10px; padding: 0 20px 30px; }
.wp__foot .btn { flex: 1; }
.wp__foot .btn--primary { flex: 2; }

/* Екран відпочинку */
.wp.is-rest .wp__stage { background: var(--sage-soft); }
