/* Workout detail, the video preview page (README "Screens", 3): workout-hero (crumbs, stage and
   player, workout-facts), workout-below (trial-card, related, up-next, prog-links). */

/* ------------------------------------------------------------------ dark hero */
.workout-hero {
  background: var(--player-green);
  color: #fff;
}
.workout-hero__inner {
  padding-top: clamp(20px, 3vw, 36px);
  padding-bottom: clamp(36px, 4vw, 56px);
  display: grid;
  gap: 20px;
}
.crumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crumbs li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.crumbs li:not(:last-child)::after {
  content: "\203A";
}
.crumbs a {
  color: inherit;
  text-decoration: none;
}
.crumbs li:first-child a {
  color: var(--lime);
  font-weight: 600;
}
.crumbs a:hover,
.crumbs li:first-child a:hover {
  color: #fff;
}
.crumbs [aria-current] {
  color: #fff;
}
.workout-hero__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.stage {
  position: relative;
  border-radius: var(--r-card-l);
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #3a4f2f, #1f2a1c);
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
}
.player {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--t1) 0 14px, var(--t2) 14px 28px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.player__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.player__tag {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px 0 8px;
  border-radius: var(--r-pill);
  background: rgba(31, 42, 28, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.player__tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}
.player__mute {
  position: absolute;
  right: 12px;
  top: 12px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 0;
  background: rgba(31, 42, 28, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.player__mute::after {
  /* a 44 px target around the 28 px pill */
  content: "";
  position: absolute;
  inset: -8px 0;
}
.player__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 70px 14px 16px;
  background: linear-gradient(to top, rgba(31, 42, 28, 0.9), rgba(31, 42, 28, 0));
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}
.player__full {
  font-size: 12px;
  color: var(--on-dark-80);
}

.workout-facts {
  display: grid;
  gap: 22px;
  padding: clamp(4px, 1vw, 12px) 0;
}
.workout-facts__pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.workout-facts__text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-dark-80);
  text-wrap: pretty;
  white-space: pre-line;
}
.workout-facts__scheduled {
  font-size: 14px;
  color: var(--lime);
  font-weight: 600;
}
.workout-facts__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.workout-facts__trial {
  color: var(--lime);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.workout-facts__trial:hover {
  color: #fff;
}
.workout-facts__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  border-top: 1px solid var(--on-dark-line);
  padding-top: 20px;
  margin: 0;
}
.workout-facts__meta div {
  display: grid;
  gap: 4px;
}
.workout-facts__meta dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.workout-facts__meta dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

/* ------------------------------------------------------------------ below, on light */
.workout-below {
  padding: clamp(48px, 6vw, 88px) 0 var(--section);
}
.workout-below__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.workout-below__column {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.trial-card {
  background: var(--lime);
  border-radius: var(--r-card-m);
  padding: 22px;
  display: grid;
  gap: 14px;
}
.trial-card__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.trial-card__offer {
  display: grid;
  gap: 4px;
}
.trial-card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
}
.trial-card__sub {
  font-size: 14px;
  color: var(--on-lime-2);
}
.trial-card__price {
  display: grid;
  justify-items: end;
  gap: 2px;
}
.trial-card__was {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: line-through;
}
.trial-card__now {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
}
.trial-card__saving {
  font-size: 11px;
  font-weight: 700;
  color: var(--eyebrow);
}
.trial-card__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-lime-2);
}
.related {
  display: grid;
  gap: 18px;
}
.related__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.related__list {
  display: grid;
  gap: 10px;
}
.related-row {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 10px;
  animation: sm-in 0.25s ease-out;
  transition: box-shadow 0.2s ease-out;
}
.related-row:hover {
  box-shadow: 0 10px 24px rgba(31, 42, 26, 0.08);
  color: var(--ink);
}
.related-row__thumb {
  width: 64px;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-thumb);
  flex: none;
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--t1) 0 8px, var(--t2) 8px 16px);
  display: grid;
  place-items: center;
}
.related-row__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.related-row__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.related-row__meta {
  font-size: 13px;
  color: var(--text-3);
}
.up-next {
  background: var(--green);
  color: #fff;
  border-radius: var(--r-card);
  padding: 22px;
  display: grid;
  gap: 10px;
}
.up-next__link {
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
}
.up-next__link:hover {
  color: var(--lime);
}
.up-next__meta {
  font-size: 13px;
  color: var(--on-dark-72);
}
.prog-links {
  display: grid;
  gap: 10px;
}
.prog-links__list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.prog-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--chip-border);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.prog-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.prog-link__count {
  color: var(--text-muted);
  font-weight: 500;
}
@media (pointer: coarse) {
  .crumbs a {
    padding: 12px 0;
    margin: -12px 0;
  }
  .prog-link::after {
    content: "";
    position: absolute;
    inset: -4px 0;
  }
}
