/* ==========================================================================
   Videos in EEG Fundamentals (components/fundamentals-videos.js)

   The entry buttons, the full-screen view of every video grouped by course
   section, and the player the thumbnails grow into. Quiet surfaces, one
   accent, generous space; motion eases out and stays short, and stops when
   the reader asks for reduced motion.
   ========================================================================== */

/* ---------------------------------------------------------------- entries */

.fv-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  background: rgba(163, 43, 120, 0.11);
  background: color-mix(in srgb, var(--accent-color) 12%, transparent);
  color: var(--accent-color) !important;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), background 180ms ease;
}
.fv-entry:hover { background: color-mix(in srgb, var(--accent-color) 20%, transparent); }
.fv-entry:active { transform: scale(0.98); }
.fv-entry:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 2px; }
.fv-entry-glyph,
.fv-play-glyph {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 0.62em solid currentColor;
  border-top: 0.38em solid transparent;
  border-bottom: 0.38em solid transparent;
  margin-left: 0.12em;
}
.fv-entry-side { display: flex; width: 100%; box-sizing: border-box; margin: 0.65rem 0 0.4rem; justify-content: flex-start; }
.fv-entry-count {
  margin-left: auto;
  min-width: 1.6rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: rgba(163, 43, 120, 0.14);
  background: color-mix(in srgb, var(--accent-color) 16%, transparent);
  font-size: 0.78rem;
  text-align: center;
}
.fv-entry-top { display: none; }
@media (max-width: 1199px) {
  body.has-fv #lead-simulator-container > .fr-index-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: calc(100% - 8.5rem - 24px);
    min-height: 44px;
    margin-left: 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    vertical-align: top;
    box-sizing: border-box;
  }
  .fv-entry-top { display: inline-flex; width: 8rem; min-height: 44px; margin: 0 12px 0.5rem 0.5rem; vertical-align: top; box-sizing: border-box; }
  body.has-fv #lead-simulator-container > .fr-mobile-progress { margin-left: 12px !important; margin-right: 12px !important; }
  .fv-entry-side { display: none; }
}

/* ------------------------------------------------------------- the view */

html.fv-open, html.fv-open body { overflow: hidden; }

.fv {
  position: fixed;
  inset: 0;
  z-index: 6000;
  color: var(--text-color);
  font-family: inherit;
}
.fv[hidden] { display: none; }

.fv-sheet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 320ms cubic-bezier(.2,.8,.2,1), transform 420ms cubic-bezier(.2,.8,.2,1);
}
.fv.is-in .fv-sheet { opacity: 1; transform: none; }
.fv-sheet[hidden] { display: none; }

.fv-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2.2rem) clamp(1rem, 4vw, 3rem) 1rem;
  border-bottom: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--bg-color) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.fv-kicker { margin: 0 0 0.2rem; color: var(--accent-color); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.fv-title { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.fv-sub { margin: 0.45rem 0 0; color: var(--text-secondary); font-size: 0.95rem; }
.fv-head-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.fv-continue {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--action-bg);
  color: var(--action-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), background 180ms ease;
}
.fv-continue:hover { background: var(--action-hover); transform: translateY(-1px); }
.fv-continue:active { transform: scale(0.98); }

.fv-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-color);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.fv-close:hover { background: var(--surface-3); }
.fv-close:active { transform: scale(0.94); }
.fv-close svg, .fv-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.fv-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem clamp(1rem, 4vw, 3rem) 3rem;
  -webkit-overflow-scrolling: touch;
}
.fv-group { max-width: 1320px; margin: 1.6rem auto 0; }
.fv-group-title { margin: 0 0 0.8rem; font-size: 1.05rem; font-weight: 750; letter-spacing: -0.01em; color: var(--text-color); }
.fv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fv-foot { max-width: 1320px; margin: 2.4rem auto 0; color: var(--text-secondary); font-size: 0.9rem; }
.fv-foot a { color: var(--accent-color); }

.fv-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 14px;
}
.fv.is-in .fv-card { animation: fv-rise 520ms cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 24ms + 60ms); }
@keyframes fv-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fv-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 1px 2px rgba(30, 20, 45, 0.08), 0 0 0 1px rgba(var(--border-rgb), 0.9);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms ease;
}
.fv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 420ms cubic-bezier(.2,.8,.2,1); }
.fv-card:hover .fv-thumb { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30, 20, 45, 0.16), 0 0 0 1px rgba(var(--border-rgb), 0.9); }
.fv-card:hover .fv-thumb img { transform: scale(1.03); }
.fv-card:active .fv-thumb { transform: scale(0.985); }
.fv-card:focus-visible { outline: none; }
.fv-card:focus-visible .fv-thumb { box-shadow: 0 0 0 3px var(--bg-color), 0 0 0 6px var(--accent-color); }
.fv-dur {
  position: absolute;
  right: 0.5rem;
  bottom: 0.55rem;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: rgba(20, 14, 30, 0.72);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
}
.fv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(20, 14, 30, 0.18); opacity: 0; }
.fv-bar i { display: block; height: 100%; width: 0; background: var(--action-bg); }
.fv-card.is-started .fv-bar, .fv-card.is-done .fv-bar { opacity: 1; }
.fv-check {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--action-bg);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 200ms ease, transform 260ms cubic-bezier(.2,.8,.2,1);
}
.fv-check::after { content: ''; position: absolute; left: 0.5rem; top: 0.3rem; width: 0.35rem; height: 0.65rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.fv-card.is-done .fv-check { opacity: 1; transform: none; }
.fv-card-text { display: block; padding: 0.65rem 0.15rem 0; }
.fv-num { display: block; color: var(--text-secondary); font-size: 0.78rem; font-weight: 650; }
.fv-name { display: block; margin-top: 0.15rem; font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.005em; }

/* ----------------------------------------------------------- the player */

.fv-theater {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #0d0a12;
  color: #f6f3fa;
  opacity: 0;
  transition: opacity 280ms ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.fv-theater.is-in { opacity: 1; }
.fv-theater[hidden] { display: none; }
.fv.is-direct .fv-back { visibility: hidden; }

.fv-tbar { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem clamp(0.75rem, 3vw, 1.6rem); }
.fv-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 44px;
  padding: 0.35rem 0.95rem 0.35rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}
.fv-back:hover { background: rgba(255, 255, 255, 0.18); }
.fv-theater .fv-close { background: rgba(255, 255, 255, 0.1); color: #fff; }
.fv-theater .fv-close:hover { background: rgba(255, 255, 255, 0.2); }

.fv-stage {
  width: min(100% - 2rem, 1180px, (100vh - 330px) * 16 / 9);
  min-width: min(100% - 2rem, 640px);
  margin: 0 auto 2rem;
}
.fv-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.fv-frame video:focus { outline: none; }
.fv-frame video:focus-visible { outline: 3px solid #f6b3d8; outline-offset: -3px; }
.fv-frame video { display: block; width: 100%; height: 100%; background: #000; }
.fv-ghost {
  position: fixed;
  z-index: 6001;
  object-fit: cover;
  border-radius: 16px;
  transform-origin: 0 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.fv-info { padding: 1.1rem 0.2rem 0; }
.fv-pos { margin: 0; color: rgba(255, 255, 255, 0.62); font-size: 0.82rem; font-weight: 650; letter-spacing: 0.02em; }
.fv-ptitle { margin: 0.2rem 0 0; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; color: #fff; }
.fv-resume { margin: 0.35rem 0 0; min-height: 1.2em; color: rgba(255, 255, 255, 0.7); font-size: 0.86rem; }
.fv-linkish { padding: 0; border: 0; background: none; color: #f6b3d8; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 0.16em; cursor: pointer; }

.fv-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.25rem; margin-top: 0.9rem; }
.fv-speed { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.2rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.fv-speed-label { padding: 0 0.5rem 0 0.6rem; color: rgba(255, 255, 255, 0.62); font-size: 0.8rem; font-weight: 650; }
.fv-speed button {
  min-width: 3rem;
  min-height: 38px;
  padding: 0.2rem 0.55rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.fv-speed button:hover { background: rgba(255, 255, 255, 0.12); }
/* quieter than the tabs below it: the speed is a setting, the tabs are places */
.fv-speed button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.24); color: #fff; }
.fv-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fv-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}
.fv-links a:hover { background: rgba(255, 255, 255, 0.18); }

.fv-links a[hidden] { display: none; }

/* Chapters, Transcript, Quiz: one segmented control, one panel at a time */
.fv-tabs {
  display: inline-flex;
  gap: 0.2rem;
  margin-top: 1.1rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.fv-tab {
  min-height: 38px;
  padding: 0.25rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.fv-tab:hover { background: rgba(255, 255, 255, 0.12); }
.fv-tab[aria-selected="true"] { background: #fff; color: #1d1726; }
@media (pointer: coarse) { .fv-tab { min-height: 44px; } }
.fv-panel[hidden] { display: none !important; }
.fv-panel:focus { outline: none; }
.fv-panel:focus-visible { outline: 3px solid #f6b3d8; outline-offset: 4px; border-radius: 10px; }

.fv-transcript {
  max-height: min(46vh, 26rem);
  margin-top: 0.9rem;
  padding: 0.2rem 0.9rem 0.2rem 0.2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.fv-tp-head { margin: 1rem 0 0.35rem; color: #fff; font-size: 0.95rem; font-weight: 750; }
.fv-tp {
  margin: 0 0 0.7rem;
  padding: 0.15rem 0 0.15rem 0.7rem;
  border-left: 3px solid transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
  line-height: 1.6;
  transition: color 200ms ease, border-color 200ms ease;
}
.fv-tp.is-current { border-left-color: #f6b3d8; color: #fff; }
.fv-tp-t {
  padding: 0.05rem 0.4rem;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #f6b3d8;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.fv-tp-t:hover { background: rgba(255, 255, 255, 0.2); }

.fv-quiz { margin-top: 0.9rem; max-width: 46rem; }
.fv-quiz-note { margin: 0 0 0.9rem; color: rgba(255, 255, 255, 0.62); font-size: 0.88rem; }
.fv-q { margin: 0 0 1.1rem; padding: 0; border: 0; min-width: 0; }
.fv-q-text { padding: 0; margin: 0 0 0.6rem; color: #fff; font-size: 1rem; font-weight: 700; line-height: 1.45; }
.fv-q-n { display: block; margin-bottom: 0.15rem; color: rgba(255, 255, 255, 0.55); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em; }
.fv-opts { display: grid; gap: 0.45rem; }
.fv-opt {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 0.93rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.fv-opt:hover:not(:disabled) { background: rgba(255, 255, 255, 0.11); }
.fv-opt:disabled { cursor: default; opacity: 0.55; }
.fv-opt.is-right { opacity: 1; border-color: #5fd39a; background: rgba(95, 211, 154, 0.14); }
.fv-opt.is-chosen.is-wrong { opacity: 1; border-color: #ff8f9a; background: rgba(255, 143, 154, 0.12); }
.fv-why { margin-top: 0.6rem; color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; line-height: 1.55; animation: fv-fade 240ms ease both; }
.fv-why strong { color: #fff; }
.fv-quiz-score { display: flex; align-items: center; gap: 0.9rem; margin: 0.4rem 0 0.8rem; color: #fff; font-weight: 700; }
.fv-quiz-score p { margin: 0; }
.fv-quiz-again {
  min-height: 40px;
  padding: 0.3rem 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.fv-quiz-again:hover { background: rgba(255, 255, 255, 0.2); }

.fv-chapters {
  display: flex;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  padding: 0 0 0.4rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
@media (min-width: 721px) {
  .fv-chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; }
  .fv-chapters button { min-width: 0; max-width: none; width: 100%; height: 100%; }
}
@media (pointer: coarse) {
  .fv-speed button { min-height: 44px; }
}
.fv-chapters.has-more {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 4rem), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 4rem), transparent);
}
.fv-chapters button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 9.5rem;
  max-width: 13rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.fv-chapters button:hover { background: rgba(255, 255, 255, 0.11); }
.fv-chapters button[aria-current="true"] { border-color: #f6b3d8; background: rgba(246, 179, 216, 0.14); }
.fv-ch-t { color: rgba(255, 255, 255, 0.6); font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fv-ch-name { font-size: 0.86rem; font-weight: 650; line-height: 1.3; }

.fv-upnext {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 30rem;
  margin-top: 1rem;
  padding: 0.5rem;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease;
}
.fv-upnext:hover { background: rgba(255, 255, 255, 0.12); }
.fv-upnext[hidden] { display: none; }
.fv-upnext img { width: 128px; height: 72px; flex-shrink: 0; border-radius: 9px; object-fit: cover; }
.fv-upnext-text { display: flex; flex-direction: column; gap: 0.15rem; }
.fv-upnext-kicker { color: rgba(255, 255, 255, 0.62); font-size: 0.76rem; font-weight: 700; }
.fv-upnext-title { font-size: 0.95rem; font-weight: 700; line-height: 1.3; }

.fv-theater button:focus-visible, .fv-theater a:focus-visible { outline: 3px solid #f6b3d8; outline-offset: 2px; }

/* when a video ends: what comes next */
.fv-end {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem;
  background: rgba(10, 7, 16, 0.78);
  backdrop-filter: blur(8px);
  text-align: center;
  animation: fv-fade 300ms ease both;
}
.fv-end[hidden] { display: none; }
@keyframes fv-fade { from { opacity: 0; } to { opacity: 1; } }
.fv-end-kicker { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; font-weight: 700; }
.fv-end-title { margin: 0; max-width: 32rem; font-size: clamp(1.1rem, 2.4vw, 1.6rem); font-weight: 800; color: #fff; }
.fv-end-actions { display: flex; gap: 0.6rem; margin-top: 0.8rem; }
.fv-end-play, .fv-end-cancel {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.35rem 1.1rem 0.35rem 0.45rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1d1726;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.fv-end-cancel { padding: 0.35rem 1.1rem; background: rgba(255, 255, 255, 0.14); color: #fff; }
.fv-ring { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; }
.fv-ring svg { position: absolute; inset: 0; width: 36px; height: 36px; transform: rotate(-90deg); }
.fv-ring circle { fill: none; stroke: rgba(29, 23, 38, 0.15); stroke-width: 3.5; }
.fv-ring .fv-ring-run { stroke: var(--action-bg); stroke-dasharray: 119.4; stroke-dashoffset: 0; }
.fv-end.is-counting .fv-ring-run { animation: fv-count var(--fv-count, 6s) linear both; }
.fv-end.is-stopped .fv-ring, .fv-end.is-stopped .fv-end-cancel { display: none; }
.fv-end.is-stopped .fv-end-play { padding-left: 1.1rem; }
@keyframes fv-count { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 119.4; } }
.fv-ring-n { position: relative; font-size: 0.85rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ small screens */

@media (max-width: 720px) {
  .fv-tabs { display: flex; }
  .fv-tab { flex: 1; padding: 0.25rem 0.5rem; }
  .fv-transcript { max-height: none; overflow: visible; padding-right: 0; }
  .fv-head { flex-direction: column; align-items: stretch; gap: 0.85rem; padding-top: 1rem; }
  .fv-head-actions { justify-content: space-between; }
  .fv-head .fv-close { position: absolute; top: 0.75rem; right: 0.75rem; }
  .fv-continue { flex: 1; justify-content: center; }
  .fv-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
  .fv-stage { width: 100%; min-width: 0; margin: 0 0 2rem; }
  .fv-frame { border-radius: 0; }
  .fv-info { padding: 1rem 1rem 0; }
  .fv-row { flex-direction: column; align-items: stretch; }
  .fv-speed { justify-content: space-between; }
  .fv-links a { flex: 1; justify-content: center; }
}
/* phones: a list, thumbnail beside the title, so all 21 are quick to scan */
@media (max-width: 600px) {
  .fv-group { margin-top: 1.3rem; }
  .fv-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .fv-card { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 0.85rem; align-items: center; }
  .fv-card-text { padding: 0; }
  .fv-name { font-size: 0.95rem; }
  .fv-thumb { border-radius: 10px; }
  .fv-dur { right: 0.35rem; bottom: 0.4rem; font-size: 0.7rem; }
  .fv-check { top: 0.35rem; right: 0.35rem; width: 1.3rem; height: 1.3rem; }
  .fv-check::after { left: 0.43rem; top: 0.24rem; width: 0.3rem; height: 0.58rem; }
  .fv-card:hover .fv-thumb { transform: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .fv-tbar { position: absolute; z-index: 2; left: 0; right: 0; padding: 0.4rem 0.6rem; pointer-events: none; }
  .fv-tbar > * { pointer-events: auto; }
  .fv-stage { width: min(100%, (100vh) * 16 / 9); }
  .fv-frame { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fv-sheet, .fv-theater, .fv-thumb, .fv-thumb img, .fv-entry, .fv-continue { transition: none !important; }
  .fv.is-in .fv-card, .fv-end { animation: none !important; }
  .fv-sheet { transform: none; }
}
