.vw-watch-page {
  --watch-accent: #a73714;
  --watch-gutter: clamp(18px, 4.2vw, 64px);
  --watch-serif: Georgia, "Times New Roman", serif;
  padding-top: calc(var(--site-nav-height, 80px) + clamp(22px, 3vw, 48px));
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-body, system-ui);
}

html[data-appearance="dark"] .vw-watch-page { --watch-accent: #ff8d61; }

.tutorial-article.vw-watch-page .article-reading.container-reading {
  width: min(calc(100% - 2 * var(--watch-gutter)), 1120px);
  max-width: none;
  margin-inline: auto;
  padding-top: 0;
}

.vw-watch-page .tutorial-learning-content {
  max-width: none;
  padding-top: 0;
  margin-top: 0;
}

.vw-watch-intro {
  margin: 0 auto clamp(19px, 3.1vw, 42px);
  text-align: center;
}

.vw-watch-back {
  display: inline-flex;
  align-items: center;
  min-height: 37px;
  color: var(--color-ink-soft);
  font-size: .76rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
}

.vw-watch-intro h1 {
  max-width: 22ch;
  margin: .13em auto 0;
  font-family: var(--watch-serif);
  font-size: clamp(2.65rem, calc(1.25rem + 5.15vw), 6.1rem);
  font-weight: 400;
  letter-spacing: -.053em;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}

.vw-watch-figure { margin: 0; }
.vw-watch-stage,
.vw-watch-notes { scroll-margin-top: calc(var(--site-nav-height, 80px) + 20px); }

.vw-watch-player {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #0b0b0b;
}

.vw-watch-player :is(a, iframe) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.vw-watch-player img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vw-watch-player--drawing a { background: #fff; }
.vw-watch-player--drawing img { object-fit: contain; }

.vw-watch-play-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(52px, 5vw, 70px);
  aspect-ratio: 1;
  border: 1px solid #ffffff90;
  border-radius: 50%;
  background: #121212e6;
  color: #fff;
  transition: background .18s ease, border-color .18s ease;
}

.vw-watch-player a:hover .vw-watch-play-icon { background: #000; border-color: #fff; }
.vw-watch-play-icon svg { margin-inline-start: 3px; }

.vw-watch-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .45rem 1.4rem;
  padding-block: .75rem;
  color: var(--color-ink-soft);
  font-size: .84rem;
  line-height: 1.55;
}

.vw-watch-caption a,
.vw-watch-version a {
  color: var(--color-ink);
  text-decoration-color: var(--color-rule);
  text-underline-offset: .22em;
}

.vw-watch-external { white-space: nowrap; }
.vw-watch-external span { color: var(--color-ink-soft); }

.vw-watch-notes {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(210px, 1fr);
  gap: clamp(32px, 7.5vw, 116px);
  margin-top: clamp(24px, 4vw, 56px);
  padding-top: clamp(24px, 3.5vw, 48px);
  border-top: 1px solid var(--color-rule);
}

#lesson-notes-title,
#watch-cues-title {
  margin: 0;
  color: var(--color-ink-soft);
  font: 400 .77rem/1.5 var(--font-body, system-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tutorial-learning-content .vw-watch-deck {
  margin: .6rem 0 1.6rem;
  font-family: var(--watch-serif);
  font-size: clamp(1.5rem, 2.55vw, 2.13rem);
  line-height: 1.22;
  letter-spacing: -.025em;
  text-wrap: pretty;
}

.vw-watch-reading-section { margin-top: 1.6rem; }
.vw-watch-reading-section h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
}
.vw-watch-reading-section p,
.vw-watch-version {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 1rem;
  line-height: 1.68;
}
.vw-watch-version {
  padding: 0 0 0 .9rem;
  border-inline-start: 1px solid var(--watch-accent);
  font-size: .92rem;
}

.vw-watch-cues ol {
  list-style: none;
  margin: .65rem 0 0;
  padding: 0;
  border-top: 1px solid var(--color-rule);
}

.vw-watch-cues a {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: baseline;
  gap: .5rem;
  min-height: 44px;
  padding: .64rem 0;
  border-bottom: 1px solid var(--color-rule);
  color: var(--color-ink);
  font-size: .93rem;
  line-height: 1.4;
  text-decoration: none;
}

.vw-watch-time { color: var(--watch-accent); font-variant-numeric: tabular-nums; }

.vw-watch-page a:hover { color: var(--watch-accent); }
.vw-watch-page a:focus-visible {
  outline: 2px solid var(--watch-accent);
  outline-offset: 3px;
}
.vw-watch-page .vw-watch-player a:focus-visible { outline-offset: -4px; }

@media (max-width: 720px) {
  .vw-watch-notes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .vw-watch-intro h1 { font-size: clamp(1.9rem, 8.8vw, 2.65rem); }
  .vw-watch-back { min-height: 44px; }
  .vw-watch-caption { padding-block: .65rem; }
  .vw-watch-external { min-height: 44px; align-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .vw-watch-play-icon { transition: none; }
}
