.replay-page {
  --rp-ink: #142020;
  --rp-muted: #6d7474;
  --rp-accent: #824182;
  --rp-line: #e5e5e2;
  --rp-soft: #f3eaf3;
  background: #f7f7f5;
  color: var(--rp-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.65;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
.replay-page * {
  box-sizing: border-box;
}
.replay-page button,
.replay-page a,
.replay-page summary {
  touch-action: manipulation;
}
.replay-page button {
  font: inherit;
  cursor: pointer;
}
.replay-shell a {
  color: inherit;
  text-decoration: none;
}
.replay-page button:focus-visible,
.replay-page a:focus-visible,
.replay-page summary:focus-visible {
  outline: 2px solid var(--rp-accent);
  outline-offset: 4px;
}
.replay-page h1,
.replay-page h2,
.replay-page h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.25;
  text-wrap: balance;
}
.replay-page > .pt-navbar {
  position: sticky;
  top: 0;
  z-index: 90;
}
.replay-skip {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.replay-skip:focus {
  top: 8px;
}
.replay-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}
.replay-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  background: #fafafa;
  border-right: 1px solid var(--rp-line);
  padding: 24px 16px;
}
.replay-back {
  font-size: 12px;
  color: var(--rp-muted) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}
.replay-sidebar-title {
  padding: 18px 10px 24px;
}
.replay-sidebar-title > strong {
  display: block;
  font:
    600 21px/1.35 "Space Grotesk",
    sans-serif;
  margin-top: 8px;
}
.replay-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--rp-accent);
  margin: 0 0 8px;
}
.replay-contents > summary {
  display: none;
}
.replay-group {
  margin: 0 0 22px;
}
.replay-group h2 {
  font:
    700 11px/1.4 "Plus Jakarta Sans",
    sans-serif;
  color: var(--rp-muted);
  padding: 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 9px;
}
.replay-group ol,
.replay-chapters ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.replay-lesson-link {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 10px;
  border-radius: 8px;
  transition:
    background-color 0.15s,
    color 0.15s;
  min-height: 60px;
}
.replay-lesson-link:hover {
  background: #f0f0ed;
}
.replay-lesson-link.is-current {
  background: var(--rp-soft);
  color: var(--rp-accent);
}
.replay-lesson-number {
  color: var(--rp-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 22px;
  min-width: 20px;
}
.is-complete .replay-lesson-number {
  color: #24704f;
}
.replay-lesson-label strong {
  display: block;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.55;
}
.replay-lesson-label small {
  display: block;
  font-size: 11px;
  color: var(--rp-muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.replay-progress {
  padding: 18px 10px 0;
  border-top: 1px solid var(--rp-line);
  font-size: 11px;
  color: var(--rp-muted);
}
.replay-progress progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 5px;
  margin: 12px 0;
  background: #e7e7e3;
}
.replay-progress progress::-webkit-progress-bar {
  background: #e7e7e3;
  border-radius: 5px;
}
.replay-progress progress::-webkit-progress-value {
  background: var(--rp-accent);
  border-radius: 5px;
}
.replay-progress progress::-moz-progress-bar {
  background: var(--rp-accent);
}
.replay-progress small {
  font-size: 10px;
}
.replay-main {
  width: 100%;
  max-width: 1192px;
  padding: 36px clamp(24px, 4vw, 64px) 24px;
  margin: auto;
}
.replay-header {
  margin-bottom: 32px;
}
.replay-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 11px;
  color: var(--rp-muted);
}
.replay-access {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #24704f;
  background: #edf5ef;
  border: 1px solid #d7e7dc;
  border-radius: 5px;
  padding: 4px 8px;
}
.replay-header h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 20px 0 12px;
}
.replay-header > p {
  font-size: 14px;
  max-width: 780px;
  color: var(--rp-muted);
  margin: 0;
  line-height: 1.8;
  text-wrap: pretty;
}
.replay-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 11px;
  margin: 18px 0 22px;
  color: var(--rp-muted);
}
.replay-stats span + span:before {
  content: "·";
  margin-right: 20px;
}
.replay-intro {
  border-block: 1px solid var(--rp-line);
}
.replay-intro > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  list-style: none;
  padding: 14px 0;
  min-height: 46px;
}
.replay-intro > summary::-webkit-details-marker {
  display: none;
}
.replay-intro[open] > summary i:before {
  content: "\f63b";
}
.replay-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 10px 0 24px;
}
.replay-intro-grid h2 {
  font-size: 16px;
  margin: 0 0 12px;
}
.replay-intro-grid ul {
  padding-left: 18px;
  margin: 0;
  font-size: 12px;
  color: var(--rp-muted);
}
.replay-intro-grid li {
  margin-bottom: 8px;
}
.replay-lesson {
  scroll-margin-top: 90px;
}
.replay-view-mode {
  margin-bottom: 28px;
}
.replay-mode-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  background: #edede9;
}
.replay-mode-switch a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #596161;
  transition: background-color 0.15s, color 0.15s;
}
.replay-mode-switch a:hover {
  background: #f7f7f5;
  color: var(--rp-ink);
}
.replay-mode-switch a[aria-current="page"] {
  background: white;
  color: var(--rp-accent);
  box-shadow: 0 1px 3px rgb(20 32 32 / 10%);
}
.replay-view-mode > p {
  margin: 9px 0 0;
  color: var(--rp-muted);
  font-size: 11px;
}
.replay-lesson-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.replay-lesson-heading h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}
.replay-duration {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--rp-muted);
  font-variant-numeric: tabular-nums;
}
.replay-player {
  position: relative;
  scroll-margin-top: 90px;
  aspect-ratio: 16/9;
  background: #142020;
  border-radius: 10px;
  overflow: hidden;
}
.replay-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.replay-player-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--rp-line);
}
.replay-player-actions button {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--rp-line);
  background: white;
  border-radius: 6px;
  color: var(--rp-muted);
  transition:
    background-color 0.15s,
    color 0.15s;
}
.replay-player-actions button[hidden] {
  display: none;
}
.replay-player-actions button:hover {
  color: var(--rp-accent);
  background: var(--rp-soft);
}
.replay-player-actions .replay-resume {
  color: var(--rp-accent);
  border-color: #dbc5db;
}
.replay-complete[aria-pressed="true"] {
  color: #24704f;
  background: #edf5ef;
}
.replay-player-actions .replay-share {
  border-color: transparent;
  background: transparent;
  margin-left: auto;
}
.replay-description {
  font-size: 14px;
  line-height: 1.85;
  margin: 24px 0;
  color: #4d5959;
  max-width: 850px;
  text-wrap: pretty;
}
.replay-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0efea;
  padding: 16px 18px;
  border-radius: 8px;
  margin: 24px 0;
  color: #5c625d;
  font-size: 12px;
}
.replay-note p {
  margin: 0;
}
.replay-note i {
  padding-top: 2px;
}
.replay-notes,
.replay-links,
.replay-chapters {
  margin: 28px 0;
}
.replay-lesson h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 14px;
}
.replay-notes ul {
  padding-left: 20px;
  font-size: 13px;
  color: #4d5959;
  line-height: 1.85;
}
.replay-notes li {
  padding-left: 4px;
  margin: 8px 0;
}
.replay-prompt {
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  background: white;
  margin: 24px 0;
  overflow: hidden;
}
.replay-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
}
.replay-prompt-heading h3 {
  font-size: 16px;
  margin: 0;
}
.replay-prompt-heading .replay-eyebrow {
  display: block;
  margin-bottom: 5px;
}
.replay-prompt-heading button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--rp-line);
  border-radius: 6px;
  background: white;
  color: var(--rp-muted);
  font-size: 11px;
  padding: 8px 12px;
  min-height: 40px;
  flex-shrink: 0;
}
.replay-prompt pre {
  margin: 0;
  padding: 18px 22px;
  background: #fafaf8;
  border-block: 1px solid var(--rp-line);
  font:
    12px/1.9 "Plus Jakarta Sans",
    sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #43504d;
}
.replay-prompt > p {
  font-size: 10px;
  color: var(--rp-muted);
  margin: 0;
  padding: 12px 22px;
}
.replay-exercise {
  border-left: 3px solid var(--rp-accent);
  padding: 3px 0 3px 22px;
  margin: 30px 0;
}
.replay-exercise h3 {
  font-size: 17px;
  margin: 8px 0;
}
.replay-exercise p {
  font-size: 13px;
  line-height: 1.85;
  margin: 0;
  color: #4d5959;
}
.replay-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--rp-accent);
  min-height: 40px;
  margin-right: 22px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.replay-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--rp-line);
  margin-top: 36px;
  padding-top: 24px;
}
.replay-pager a {
  padding: 8px 0;
  display: block;
}
.replay-pager small {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--rp-muted);
  margin-bottom: 7px;
}
.replay-pager strong {
  font-size: 13px;
  font-weight: 600;
}
.replay-pager-next {
  text-align: right;
}
.replay-pager-next small {
  justify-content: flex-end;
}
.replay-pager a:hover strong {
  color: var(--rp-accent);
}
.replay-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--rp-line);
  padding-top: 20px;
  margin-top: 32px;
  font-size: 10px;
  color: var(--rp-muted);
}
.replay-footer a {
  color: var(--rp-accent);
}
.replay-announcement {
  font-size: 12px;
  color: var(--rp-accent);
  min-height: 20px;
}
.replay-gate {
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  padding: 48px 24px;
  background: white;
  text-align: center;
}
.replay-gate > i {
  font-size: 26px;
  color: var(--rp-accent);
}
.replay-gate h3 {
  margin-top: 14px;
}
.replay-gate p {
  font-size: 13px;
  color: var(--rp-muted);
}
.replay-gate a {
  display: inline-block;
  font-size: 12px;
  margin: 12px;
  padding: 10px 18px;
}
.replay-primary-link {
  background: var(--rp-accent);
  color: white !important;
  border-radius: 6px;
}
.replay-chapters li {
  border-bottom: 1px solid var(--rp-line);
}
.replay-chapters button {
  display: flex;
  gap: 18px;
  text-align: left;
  background: none;
  border: 0;
  padding: 12px 0;
  width: 100%;
  font-size: 12px;
}
.replay-chapters time {
  font-variant-numeric: tabular-nums;
  color: var(--rp-accent);
  min-width: 55px;
}
.replay-chapters button.is-active {
  color: var(--rp-accent);
  font-weight: 700;
}
.replay-full-chapters {
  margin: 0;
}
.replay-full-chapters h2 {
  margin: 0 10px 12px;
  color: var(--rp-muted);
  font: 700 11px/1.4 "Plus Jakarta Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.replay-full-chapters li {
  border-bottom: 0;
}
.replay-full-chapters button {
  padding: 12px 10px;
  gap: 10px;
  min-height: 44px;
  border-radius: 8px;
}
.replay-full-chapters button:hover {
  background: #f0f0ed;
}
.replay-full-chapters button.is-active {
  background: var(--rp-soft);
}
@media (min-width: 1600px) {
  .replay-main {
    max-width: 1230px;
  }
  .replay-shell {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}
@media (max-width: 1050px) {
  .replay-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .replay-main {
    padding: 28px 28px 20px;
  }
  .replay-sidebar {
    padding: 18px 10px;
  }
  .replay-header h1 {
    font-size: 28px;
  }
  .replay-lesson-heading h2 {
    font-size: 22px;
  }
  .replay-intro-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 760px) {
  .replay-shell {
    display: block;
  }
  .replay-sidebar {
    position: static;
    height: auto;
    overflow: visible;
    padding: 12px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--rp-line);
  }
  .replay-sidebar-title {
    display: none;
  }
  .replay-back {
    min-height: 36px;
  }
  .replay-contents > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    min-height: 44px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }
  .replay-contents > summary::-webkit-details-marker {
    display: none;
  }
  .replay-contents > summary > span + span {
    font-size: 10px;
    font-weight: 400;
    color: var(--rp-muted);
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .replay-contents nav {
    padding-top: 20px;
    max-height: 65vh;
    overflow-y: auto;
  }
  .replay-progress {
    display: none;
  }
  .replay-main {
    padding: 24px 20px;
  }
  .replay-meta {
    font-size: 10px;
    gap: 10px;
  }
  .replay-header h1 {
    font-size: 28px;
    margin-top: 18px;
  }
  .replay-header > p {
    font-size: 13px;
  }
  .replay-stats {
    gap: 6px 12px;
    font-size: 10px;
  }
  .replay-stats span + span:before {
    margin-right: 12px;
  }
  .replay-intro > summary {
    font-size: 11px;
    gap: 12px;
  }
  .replay-header {
    margin-bottom: 26px;
  }
  .replay-mode-switch {
    display: grid;
    width: 100%;
  }
  .replay-mode-switch a {
    padding-inline: 8px;
    gap: 6px;
    font-size: 11px;
  }
  .replay-full-chapters h2 {
    display: none;
  }
  .replay-lesson-heading h2 {
    font-size: 22px;
  }
  .replay-lesson-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .replay-duration {
    padding-top: 23px;
    font-size: 10px;
  }
  .replay-player {
    border-radius: 8px;
  }
  .replay-player-actions {
    gap: 4px;
  }
  .replay-player-actions button {
    padding: 6px 8px;
    min-height: 44px;
    font-size: 10px;
  }
  .replay-description {
    font-size: 13px;
    margin-top: 20px;
  }
  .replay-note {
    font-size: 11px;
    padding: 14px;
  }
  .replay-prompt-heading {
    padding: 16px;
  }
  .replay-prompt-heading h3 {
    font-size: 15px;
  }
  .replay-prompt pre {
    padding: 16px;
    font-size: 12px;
  }
  .replay-prompt > p {
    padding: 12px 16px;
  }
  .replay-prompt-heading button {
    min-height: 44px;
  }
  .replay-pager {
    gap: 18px;
  }
  .replay-pager strong {
    font-size: 12px;
  }
  .replay-footer {
    font-size: 10px;
  }
  .replay-chapters button {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .replay-page * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
