/* ==================================================================
   /tools/safe-youtube-viewer and its /watch page, on the foundation
   look. A new free tool, built 2026-11-21 behind switch
   tools-safe-viewer.

   Layout unique to these two pages only. The first screen, the guide,
   the questions, the links and the close are the shared tool kit
   (foundation-tools.css); inputs, buttons, chips, the switch, badges,
   callouts, the data table, the point list and the numbered heads are
   the foundation's and are NOT redrawn here.

   Same shape as the frame by frame page (tools-frame-by-frame-fnd.css),
   whose sections 1, 2 and 4 are mirrored here with the sv- prefix rather
   than shared, so neither page can move the other. The time boxes mirror
   the embed code page's (.ecg3-times).

   The one part of its own: the cover (.sv-cover) laid over a paused or
   finished video, where YouTube puts its suggested videos. prior-art
   found nothing like it (2026-11-21).
   ================================================================== */

/* ------------------------------------------------------------------
   1. THE FIRST SCREEN
   ------------------------------------------------------------------ */
@media (min-width: 1024px) {
  .sv-top .fnd-tool-top__in { display: block; }
  /* A plain card, never pinned: the cards below would slide under it. */
  .fnd .sv .sv-out { position: relative; top: auto; }
  .fnd .sv .fnd-tool-lead { max-width: 960px; }
  .fnd .sv .fnd-tool-lead .fnd-display { max-width: none; }
}
.fnd .sv .fnd-tool-lead,
.fnd .sv .sv-ask,
.fnd .sv .sv-out,
.fnd .sv .sv-more { max-width: 760px; margin-left: auto; margin-right: auto; }

.fnd .sv .fnd-tool-lead { text-align: center; }
.fnd .sv .fnd-tool-lead .fnd-display,
.fnd .sv .fnd-tool-lead__sub { margin-left: auto; margin-right: auto; text-align: center; }
.fnd .sv .fnd-tool-lead__sub { text-wrap: balance; }
.fnd .sv h1.fnd-display,
.fnd .sv-qa__list summary,
.fnd.sv-page .fnd-tool-close .fnd-btn { text-wrap: balance; }
@media (max-width: 413px) {
  .fnd .sv .fnd-tool-lead .fnd-display { font-size: 2.15rem; }
}
@media (max-width: 559px) {
  .fnd .sv .fnd-tool-lead { margin-bottom: var(--fnd-s4); }
}

/* The bar sits bare on the page like a search box: no card around it. */
.fnd .sv .sv-ask { background: none; border: 0; border-radius: 0; box-shadow: none; }
.fnd .sv .sv-ask > .fnd-card-body { padding: 0; }
.sv-ask,
.sv-out { scroll-margin-top: 0; }

/* The paste bar: the fourth copy (citation .cite2-bar, embed .ecg3-bar,
   frame by frame .fbf-bar, this). Due to move into the foundation as one
   shared part. */
.fnd .sv-bar-in {
  display: flex; align-items: center; gap: var(--fnd-s2);
  background: var(--fnd-card);
  border: 1px solid var(--fnd-edge);
  border-radius: 999px;
  padding: 5px 5px 5px 20px;
  box-shadow: 0 1px 2px rgba(23, 20, 31, .05), 0 12px 28px -16px rgba(23, 20, 31, .3);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.fnd .sv-bar-in:focus-within {
  border-color: var(--fnd-text);
  box-shadow: 0 0 0 3px var(--fnd-accent-soft), 0 12px 28px -16px rgba(23, 20, 31, .3);
}
.sv-bar-in > .fa-link { flex: 0 0 auto; font-size: 15px; color: var(--fnd-text-faint); }
.fnd .sv .sv-bar-in .fnd-input {
  flex: 1 1 auto; width: auto; min-width: 0;
  padding: 0 var(--fnd-s1);
  background: transparent; border: 0; border-radius: 0;
}
.fnd .sv .sv-bar-in .fnd-input:focus { box-shadow: none; }
.fnd .sv-bar-in .fnd-btn { flex: 0 0 auto; border-radius: 999px; white-space: nowrap; }
.fnd .sv-bar-in:has(.fnd-btn:focus-visible) {
  border-color: var(--fnd-edge);
  box-shadow: 0 1px 2px rgba(23, 20, 31, .05), 0 12px 28px -16px rgba(23, 20, 31, .3);
}
@media (max-width: 559px) {
  .fnd .sv-bar-in { padding-left: 16px; }
}
@media (max-width: 413px) {
  .fnd .sv-bar-in .fnd-btn { padding: 0 var(--fnd-s3); }
}
@media (max-width: 379px) {
  .fnd .sv-bar-in { padding-left: 14px; }
  .sv-bar-in > .fa-link { display: none; }
}
.fnd .sv .sv-bar-in__help { margin: var(--fnd-s3) 0 0; text-align: center; text-wrap: pretty; }
.fnd .sv .sv-bar-in ~ .fnd-error { text-align: center; text-wrap: pretty; }

/* ------------------------------------------------------------------
   2. THE ANSWER: the video's name, the safe link, the class's player
   ------------------------------------------------------------------ */
.fnd .sv .sv-out { margin-top: var(--fnd-s5); }

.fnd .sv-exnote {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px var(--fnd-s2);
  margin: 0 0 var(--fnd-s4);
  font-size: var(--fnd-t-meta); line-height: 1.5; color: var(--fnd-text-soft);
  text-wrap: pretty;
}
.sv-out:not(.sv-out--example) .sv-exnote { display: none; }

.sv-video { margin-bottom: var(--fnd-s3); }
.fnd .sv .sv-out .sv-video { margin-top: 0; }
.fnd .sv-video__title {
  margin: 0;
  font-family: var(--fnd-display-font); font-weight: 700;
  font-size: var(--fnd-t-h3); line-height: 1.3; color: var(--fnd-text);
  text-wrap: balance; overflow-wrap: anywhere;
}
.sv-video__title:focus { outline: none; }
.fnd .sv-video__meta { margin: 2px 0 0; font-size: var(--fnd-t-meta); color: var(--fnd-text-soft); overflow-wrap: anywhere; }
.sv-video__meta:empty { display: none; }
.fnd .sv .sv-warn { margin: var(--fnd-s3) 0 0; text-wrap: pretty; }
.sv-warn[hidden] { display: none; }

/* The safe link and Copy: side by side on a computer, the button under
   the link on a phone. */
.sv-link { margin-bottom: var(--fnd-s4); }
.fnd .sv-link .fnd-label { margin: 0 0 var(--fnd-s2); }
.sv-link__row { display: flex; align-items: center; gap: var(--fnd-s2); }
.fnd .sv .sv-link__in {
  flex: 1 1 auto; min-width: 0;
  font-size: var(--fnd-t-sm); color: var(--fnd-text-soft);
  text-overflow: ellipsis;
}
.fnd .sv .sv-copy { flex: 0 0 auto; white-space: nowrap; }
.fnd .sv .sv-copy[data-copied="true"] { background: var(--fnd-ok); border-color: var(--fnd-ok); color: #fff; }
@media (max-width: 559px) {
  .sv-link__row { flex-direction: column; align-items: stretch; }
  .fnd .sv .sv-copy { justify-content: center; }
}
.fnd .sv-link__more { margin: var(--fnd-s1) 0 0; }
/* A video that cannot play: the link and its player look switched off,
   and Copy and Open cannot hand out a link that will not play. */
.sv-out--dead .sv-link,
.sv-out--dead .sv-app { opacity: .45; }
.sv-out--dead .sv-copy,
.sv-out--dead .sv-link__more a { pointer-events: none; }
/* The example's link is only there to show the shape of one: nothing to
   copy until the teacher's own video is in. */
.sv-out--example .sv-copy,
.sv-out--example .sv-link__more,
.sv-top:has(.sv-out--example) .sv-qr__save,
.sv-out--example .sv-mark,
.sv-out--dead .sv-mark { display: none; }
/* Open while there is nothing to open: it looks as locked as Copy. */
.fnd .sv .sv-textlink[aria-disabled="true"] { opacity: .45; cursor: not-allowed; text-decoration: none; }


/* Start here and End here under the playing preview (the same as the
   part card's own buttons, so a teacher on a phone never scrolls away from
   the video to mark the moment). */
.sv-mark { display: flex; flex-wrap: wrap; gap: var(--fnd-s2); margin-top: var(--fnd-s2); }
/* Marking in the row: which part plays gets its own line above it. */
.sv-bar:has(> .sv-mark:not([hidden])) > .sv-part { flex: 1 0 100%; }
.sv-mark[hidden] { display: none; }
.fnd .sv-mark__err { flex: 1 1 100%; margin: 0; }
.sv-app:has(.sv-player--tall) .sv-mark { justify-content: center; }
/* A Short on the tool page: the line under the player keeps its width. */
.sv-app:not(.sv-app--watch) .sv-player--tall + .sv-bar {
  max-width: 340px; margin-left: auto; margin-right: auto;
  width: min(100%, max(180px, calc((100vh - 320px) * .5625)));
  width: min(100%, max(180px, calc((100svh - 320px) * .5625)));
}

/* Text buttons grown to a 44px tap, in the accent so they read as things
   to press. */
.fnd .sv .sv-textlink.fnd-textbtn { --fnd-hit-y: 14px; font-size: var(--fnd-t-meta); color: var(--fnd-accent-deep); }
.fnd .sv .sv-textlink.fnd-textbtn:hover { color: var(--fnd-text); }
.sv-textlink .fa-external-link-alt { font-size: .85em; margin-left: 2px; }

/* ------------------------------------------------------------------
   3. THE PLAYER (both pages): the real YouTube player in its own shape,
   its picture until Play is pressed, and our cover over a paused or
   finished video. A Short keeps its tall shape, never wider than a
   phone screen.
   ------------------------------------------------------------------ */
.sv-player { position: relative; }
.sv-stage {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--fnd-r-sm);
  overflow: hidden;
  background: var(--fnd-ink);
}
/* A Short: the whole player (picture and its bar) keeps the tall width. */
.sv-stage--tall { aspect-ratio: 9 / 16; }
.sv-player--tall {
  max-width: 340px; margin-left: auto; margin-right: auto;
  width: min(100%, max(180px, calc((100vh - 320px) * .5625)));
  width: min(100%, max(180px, calc((100svh - 320px) * .5625)));
}
.sv-stage iframe,
.sv-stage .sv-yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.sv-poster {
  position: absolute; inset: 0; z-index: 2;
  display: block; width: 100%; height: 100%;
  padding: 0; margin: 0; border: 0; cursor: pointer;
  background: var(--fnd-ink);
}
.sv-poster[hidden] { display: none; }
.sv-poster img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity 150ms ease; }
.sv-poster:hover img { opacity: 1; }
.sv-poster__play {
  position: absolute; left: 50%; top: 50%;
  width: 68px; height: 48px; margin: -24px 0 0 -34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(23, 20, 31, .82); color: #fff; font-size: 20px;
  transition: transform 150ms ease, background-color 150ms ease;
}
.sv-poster:hover .sv-poster__play { transform: translateY(-1px) scale(1.04); background: rgba(23, 20, 31, .92); }
.sv-poster:focus-visible { outline: 3px solid var(--fnd-accent-deep); outline-offset: -3px; }
/* While YouTube's player loads after the first press. */
.sv-stage--busy .sv-poster { cursor: progress; }
.sv-stage--busy .sv-poster img { opacity: .6; }

/* THE SHIELD over the playing video: YouTube's frame gets no press and no
   hover, so its title, logo and "More videos" never open. If a phone will
   not start the video by itself, a hole opens over YouTube's own play
   button in the middle (and closes once it plays). */
.sv-shield { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.sv-shield--kick {
  clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 30% 30%, 30% 70%, 70% 70%, 70% 30%, 30% 30%);
}

/* OUR CONTROLS under the picture, joined to it as one dark player: the
   system's on-ink seek bar (as in the AI Video Editor's preview) with the
   time beside it. */
.sv-player--on .sv-stage { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.sv-ctl {
  display: flex; align-items: center; gap: var(--fnd-s1);
  padding: 2px var(--fnd-s2);
  background: var(--fnd-ink);
  border-radius: 0 0 var(--fnd-r-sm) var(--fnd-r-sm);
}
.sv-ctl[hidden] { display: none; }
.fnd .sv-ctl__b { color: var(--fnd-on-ink); transition: background-color 140ms ease, transform 140ms ease; }
@media (hover: hover) {
  .fnd .sv-ctl__b:hover { background: rgba(255,255,255,.1); color: var(--fnd-on-ink); transform: translateY(-1px); }
}
.sv-ctl__seek { flex: 1 1 auto; min-width: 0; }
.fnd .sv-ctl__seek { height: 44px; margin: 0 var(--fnd-s1); }
.sv-ctl__seek:disabled { opacity: .45; cursor: default; }
.sv-ctl__t {
  flex: 0 0 auto; white-space: nowrap;
  color: var(--fnd-on-ink-soft); font-size: var(--fnd-t-meta);
  font-variant-numeric: tabular-nums;
}
/* A narrow player (a Short, or a very small phone): the seek bar gets its
   own full row, with play, the time and the sound under it. */
.sv-player--tall .sv-ctl { flex-wrap: wrap; }
.fnd .sv-player--tall .sv-ctl__seek { order: -1; flex: 1 1 100%; margin: 0; }
.sv-player--tall .sv-ctl__t { margin-right: auto; }
@media (max-width: 359px) {
  .sv-ctl { flex-wrap: wrap; }
  .fnd .sv-ctl__seek { order: -1; flex: 1 1 100%; margin: 0; }
  .sv-ctl__t { margin-right: auto; }
}

/* THE COVER. Dark and blurred, so YouTube's suggestions under it cannot
   be read or pressed, while the paused picture still shows through as
   colour. Play, and Back 10 seconds while paused. */
.sv-cover {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--fnd-s3);
  padding: var(--fnd-s3);
  background: rgba(16, 14, 20, .62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
/* At the end YouTube fills the whole player with suggestions: nothing of
   them shows through. */
.sv-cover--end {
  background: rgba(16, 14, 20, .9);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}
.sv-cover[hidden],
.fnd .sv-cover .sv-cover__back[hidden] { display: none; }
/* The small ink panel that holds Play and Back 10 seconds. */
.sv-cover__box {
  display: flex; flex-direction: column; align-items: stretch;
  max-width: 100%;
  gap: var(--fnd-s2);
  padding: var(--fnd-s3);
  border-radius: var(--fnd-r);
}
.sv-cover__box > * { position: relative; } /* above the ink's light and grain */
.fnd .sv-cover__box .fnd-btn { white-space: nowrap; justify-content: center; }
/* A short stage on a phone: the two buttons side by side. */
@media (max-width: 413px) {
  .sv-stage:not(.sv-stage--tall) .sv-cover__box { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: var(--fnd-s2); }
  .fnd .sv-stage:not(.sv-stage--tall) .sv-cover__box .fnd-btn { padding: 0 var(--fnd-s3); }
}

/* One line over the top of the video, never over YouTube's buttons:
   "Tap play in the video to start it". */
/* A thin strip along the foot of the video: YouTube's title fills its
   top and its play button its middle, and the note must hide neither. */
.fnd .sv-note {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  margin: 0; padding: 5px 12px;
  background: rgba(16, 14, 20, .92); color: #fff;
  font-size: var(--fnd-t-micro); font-weight: 600; line-height: 1.35; text-align: center;
  text-wrap: balance;
  pointer-events: none;
}
.sv-note[hidden] { display: none; }
.fnd .sv-note--nudge { animation: sv-nudge 700ms ease; }
@keyframes sv-nudge {
  0%, 100% { background: rgba(16, 14, 20, .92); }
  35% { background: var(--fnd-accent-deep); }
}
@media (prefers-reduced-motion: reduce) { .fnd .sv-note--nudge { animation: none; } }
/* YouTube's own error screen leaves part of its frame see-through. */
.sv-stage iframe { background: #000; }
.fnd .sv .sv-link__why { margin: var(--fnd-s2) 0 0; text-wrap: pretty; }
.sv-link__why[hidden] { display: none; }

/* Leave full screen: only inside our full screen. */
.fnd .sv-exit {
  position: absolute; top: var(--fnd-s3); right: var(--fnd-s3); z-index: 5;
  background: rgba(16, 14, 20, .72); color: #fff;
}
.fnd .sv-exit:hover { background: rgba(16, 14, 20, .92); color: #fff; }
.sv-exit[hidden] { display: none; }

/* OUR FULL SCREEN keeps the cover (YouTube's own is turned off for that
   reason): the stage fills the screen and YouTube letterboxes inside it. */
.sv-player:fullscreen { background: #000; }
.sv-player--full,
.sv-player--full.sv-player--tall {
  display: flex; flex-direction: column;
  width: 100vw; height: 100vh; max-width: none; margin: 0;
  background: #000;
}
.sv-player--full .sv-stage,
.sv-player--full .sv-stage--tall {
  flex: 1 1 auto; min-height: 0;
  width: 100%; height: auto; max-width: none;
  aspect-ratio: auto; border-radius: 0;
}
.sv-player--full .sv-ctl { border-radius: 0; padding-bottom: max(2px, env(safe-area-inset-bottom)); }

/* Under the player: which part plays, and Full screen. */
.sv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: var(--fnd-s3); }
.fnd .sv-part {
  margin: var(--fnd-s2) 0 0; min-width: 0;
  font-size: var(--fnd-t-sm); font-weight: 600; color: var(--fnd-text-soft);
  font-variant-numeric: tabular-nums; text-wrap: pretty;
}
.fnd .sv-full { margin: var(--fnd-s2) 0 0 auto; }
.sv-part[hidden],
.sv-full[hidden] { display: none; }

/* ------------------------------------------------------------------
   4. THE WORKING CARDS: one part, captions and speed, the QR code, and
   why this one. One column at every width.
   ------------------------------------------------------------------ */
.fnd .sv .sv-more { grid-template-columns: minmax(0, 1fr); gap: var(--fnd-s5); margin-top: var(--fnd-s6); }
.fnd .sv .sv-card .fnd-tool-more__sub { margin: 4px 0 0; text-wrap: pretty; }
.fnd .sv-card__foot { margin: var(--fnd-s1) 0 0; }
.fnd .sv .sv-card .fnd-error { margin-top: var(--fnd-s3); text-wrap: pretty; }

/* Start at and End at: minutes and seconds in small boxes, side by side
   on a computer, stacked on a phone, each with its "here" button. */
.sv-times { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--fnd-s4) var(--fnd-s5); margin-top: var(--fnd-s4); }
@media (max-width: 639px) {
  .sv-times { grid-template-columns: minmax(0, 1fr); }
}
.sv-time { margin: 0; padding: 0; border: 0; min-width: 0; }
.sv-time .fnd-label { padding: 0; margin-bottom: var(--fnd-s2); }
.sv-opt { font-weight: 400; color: var(--fnd-text-faint); }
.sv-time__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fnd-s2); column-gap: var(--fnd-s4); }
.fnd .sv .sv-num {
  width: 72px; flex: 0 0 auto;
  font-weight: 700; font-variant-numeric: tabular-nums; text-align: center;
}
.fnd .sv .sv-num::placeholder { font-weight: 400; }
.fnd .sv .sv-num[aria-invalid="true"] { border-color: var(--fnd-danger); }
.sv-time__u { font-size: var(--fnd-t-sm); color: var(--fnd-text-soft); }
/* Each box keeps its word: "seconds" moves down with its own box, never
   alone. */
.sv-pair { display: inline-flex; align-items: center; gap: var(--fnd-s2); }
@media (max-width: 419px) {
  .sv-time__row { column-gap: var(--fnd-s3); }
  .fnd .sv .sv-time__row .sv-num { width: 64px; }
}
.fnd .sv .sv-here { margin-top: var(--fnd-s3); }

/* The switches: one per row, its words beside it, a quiet line under. */
.sv-sw { list-style: none; margin: var(--fnd-s4) 0 0; padding: 0; }
.sv-sw li + li { border-top: 1px solid var(--fnd-rule); }
.fnd .sv-sw .fnd-switch { display: flex; width: 100%; padding: 6px 0; font-size: var(--fnd-t-body); color: var(--fnd-text); }
.sv-sw__t { display: flex; flex-direction: column; min-width: 0; }
.sv-sw__d { font-size: var(--fnd-t-meta); color: var(--fnd-text-faint); text-wrap: pretty; }

/* Speed: the label over its six chips on a phone (three a row, each a
   full tap wide), beside them in one row when wider. */
.sv-set__row { display: flex; flex-direction: column; gap: var(--fnd-s2); margin-top: var(--fnd-s4); }
.fnd .sv-set__row .fnd-label { margin: 0; }
.fnd .sv .sv-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fnd .sv .sv-chips .fnd-chip-btn { justify-content: center; min-width: 44px; font-variant-numeric: tabular-nums; }
@media (min-width: 560px) {
  .sv-set__row { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--fnd-s4); }
  .fnd .sv .sv-chips { display: flex; flex: 0 1 auto; justify-content: flex-end; }
}
.fnd .sv .sv-speed-note { margin: var(--fnd-s2) 0 0; text-wrap: pretty; }

/* The QR code: the picture beside its words on a computer, above them on
   a phone. Drawn sharp on a canvas twice its shown size. */
.sv-qr { display: flex; align-items: center; gap: var(--fnd-s5); }
.sv-qr__pic {
  flex: 0 0 auto;
  padding: var(--fnd-s2);
  border: 1px solid var(--fnd-rule); border-radius: var(--fnd-r-sm);
  background: #fff;
}
.sv-qr__pic canvas { display: block; width: 140px; height: 140px; image-rendering: pixelated; }
.sv-qr__side { min-width: 0; flex: 1 1 auto; }
.fnd .sv .sv-qr__save { margin-top: var(--fnd-s3); }
.fnd .sv .sv-qr__save[data-done="true"] { background: var(--fnd-ok); border-color: var(--fnd-ok); color: #fff; }
@media (max-width: 559px) {
  .sv-qr { flex-direction: column; align-items: stretch; gap: var(--fnd-s4); }
  .sv-qr__pic { align-self: center; }
  .sv-qr__pic canvas { width: 168px; height: 168px; }
  .fnd .sv .sv-qr__save { width: 100%; justify-content: center; }
}

/* Why this one: a ticked list, each tick in the success green. */
.fnd .sv ul.sv-adds { margin-top: var(--fnd-s4); }
.fnd .sv ul.sv-adds li > i { flex: 0 0 auto; margin-top: .3em; font-size: 14px; color: var(--fnd-ok); }
.fnd .sv ul.sv-adds li > span { min-width: 0; text-wrap: pretty; }

/* ------------------------------------------------------------------
   5. THE GUIDE
   ------------------------------------------------------------------ */
.fnd .sv-guide .fnd-tool-read .fnd-h2 {
  margin-top: var(--fnd-s8);
  max-width: 24ch;
  scroll-margin-top: 0; /* the chrome keeps the header clear already */
}
.sv-guide .fnd-tool-read .fnd-h2:focus { outline: none; }
@media (max-width: 767px) {
  .fnd .sv-guide .fnd-tool-read .fnd-h2 { margin-top: var(--fnd-s7); }
}
.fnd .sv-guide .fnd-tool-read p a:not(.fnd-btn),
.fnd .sv-qa__list p a:not(.fnd-btn) { padding-block: 12px; }

.sv-steps { list-style: none; margin: var(--fnd-s4) 0 0; padding: 0; }
.sv-steps li + li { margin-top: var(--fnd-s5); }
.sv-steps .fnd-numhead { margin-bottom: var(--fnd-s2); }
.fnd .sv-steps .fnd-numhead__t { font-size: var(--fnd-t-h3); }
.sv-steps p { margin: 0; padding-left: calc(32px + var(--fnd-s3)); }
@media (max-width: 559px) {
  .sv-steps p { padding-left: 0; }
}

/* The old viewers table holds words: cells wrap. On a phone the second
   cell takes its own full line under the first. */
.fnd .sv-tbl tbody td:not(:first-child) { white-space: normal; font-variant-numeric: normal; }
.fnd .sv-tbl td:first-child { white-space: nowrap; }
@media (min-width: 640px) {
  .sv-tbl td { vertical-align: top; }
}
.fnd .sv-guide .sv-tbl td { text-wrap: pretty; }
@media (max-width: 639px) {
  .fnd .sv-guide .sv-tbl.fnd-tbl--data tbody td:last-child {
    order: 4; flex: 0 0 100%; min-width: 0; padding: 2px 0 0;
    white-space: normal; text-align: left; overflow-wrap: anywhere;
    font-weight: 400; color: var(--fnd-text); text-wrap: pretty;
  }
}
.fnd .sv-src { margin-top: var(--fnd-s4); text-wrap: pretty; }

/* ------------------------------------------------------------------
   6. THE WATCH PAGE (/tools/safe-youtube-viewer/watch): one video on a
   dark stage, its name above it, one line at the foot. No site header,
   no footer. On a laptop the whole video fits the screen without a
   scroll.
   ------------------------------------------------------------------ */
.fnd.sv-watch { background: var(--fnd-ink); }
/* Nothing but the video: the floating language button (shown here because
   the page has no header to hold it) sat on Full screen on a phone. */
.sv-watch #lang-switcher { display: none; }
.sv-w {
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  padding: var(--fnd-s5) 16px var(--fnd-s2);
}
/* Lifted above the ink surface's light and grain layers. */
.sv-w > * { position: relative; }
.sv-w__in { flex: 1 0 auto; width: 100%; max-width: 1120px; margin: 0 auto; }
.sv-w__head { margin: 0 auto var(--fnd-s3); }
.fnd .sv-w__t {
  margin: 0;
  font-family: var(--fnd-display-font); font-weight: 700;
  font-size: var(--fnd-t-h3); line-height: 1.3; color: var(--fnd-on-ink);
  text-wrap: balance; overflow-wrap: anywhere;
}
.fnd .sv-w__m { margin: 2px 0 0; font-size: var(--fnd-t-meta); color: var(--fnd-on-ink-soft); overflow-wrap: anywhere; text-wrap: pretty; }
.sv-w__m:empty { display: none; }
/* The player (the video and our bar under it) as wide as the screen
   allows, and never taller than it: about 260px stays free for the name,
   the bar, the line under it and the foot; 310px for a tall Short, whose
   bar takes two rows. */
.sv-app--watch .sv-player:not(.sv-player--full) {
  margin-left: auto; margin-right: auto;
  width: min(100%, max(280px, calc((100vh - 260px) * 16 / 9)));
  width: min(100%, max(280px, calc((100svh - 260px) * 16 / 9)));
}
.sv-app--watch .sv-player--tall:not(.sv-player--full) {
  width: min(100%, max(180px, calc((100vh - 310px) * .5625)));
  width: min(100%, max(180px, calc((100svh - 310px) * .5625)));
  max-width: 420px;
}
/* The name lines up with the video's own left edge, whatever its width. */
.sv-watch .sv-w__head { max-width: min(100%, max(280px, calc((100svh - 260px) * 16 / 9))); }
.sv-watch .sv-w__in:has(.sv-stage--tall) .sv-w__head { max-width: 420px; text-align: center; }
.sv-app--watch .sv-bar { margin: 0 auto; max-width: min(100%, max(280px, calc((100svh - 260px) * 16 / 9))); }
.sv-app--watch:has(.sv-stage--tall) .sv-bar { max-width: min(420px, 100%, max(180px, calc((100svh - 310px) * .5625))); }
.fnd .sv-app--watch .sv-part { color: var(--fnd-on-ink-soft); }
.fnd .sv-w__warn {
  margin: var(--fnd-s3) auto 0; max-width: 640px;
  font-size: var(--fnd-t-body); line-height: 1.5; color: var(--fnd-on-ink-warn, #F6C66A);
  text-align: center; text-wrap: pretty;
}
.sv-w__warn[hidden] { display: none; }

.sv-w__none { max-width: 520px; margin: 18vh auto 0; text-align: center; }
.fnd .sv-w__none .sv-w__m { margin: var(--fnd-s2) 0 var(--fnd-s5); font-size: var(--fnd-t-body); }

.fnd .sv-w__foot { margin: var(--fnd-s4) 0 0; text-align: center; font-size: var(--fnd-t-meta); }
.fnd .sv-w__foot a:not(.fnd-btn) {
  display: inline-block; padding-block: 12px;
  color: var(--fnd-on-ink-faint); text-decoration: none;
}
.fnd .sv-w__foot a:not(.fnd-btn):hover { color: var(--fnd-on-ink); text-decoration: underline; }
@media (max-width: 767px) {
  .sv-w { padding-top: var(--fnd-s4); }
}
