/* Sample video watch page. Everything visual comes from the site's own
   components; this file only adds the player, chapter and transcript layout. */
.wv-hero { padding: 12px 0 58px; }
.wv-hero h1 { font-size: clamp(2rem, 3.5vw, 2.9rem); margin-bottom: 8px; }
.wv-hero .lead { max-width: 1040px; font-size: 1.02rem; text-wrap: pretty; }
.wv-hero .jump-row { margin-top: 26px; }
/* The film is the main content of the page, so the player gets most of the first screen. */
.wv-hero > .container { max-width: 1380px; }
.wv-feature { grid-template-columns: minmax(0, 2.75fr) minmax(0, 1fr); gap: 16px 24px; align-items: stretch; margin: 20px 0 0; padding: 18px; text-align: left; }
.case-feature .wv-player, .case-feature .wv-player:hover { cursor: default; transform: none; background: #000; align-self: start; box-shadow: 0 22px 50px rgba(0, 0, 0, .45); }
.wv-player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.wv-player video::cue { background: rgba(7, 12, 18, .82); color: #fff; font-family: var(--font-body); font-size: .92em; }
.wv-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.wv-copy .case-tag { margin-bottom: 10px; }
/* The rows share the panel's height evenly, so it always lines up with the video. */
.wv-facts { display: flex; flex-direction: column; width: 100%; flex: 1 1 auto; margin-bottom: 12px; }
.wv-facts > div { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 31px; padding: 4px 0; border-top: 1px solid var(--line); font-size: .87rem; line-height: 1.3; }
.wv-facts > div:last-child { border-bottom: 1px solid var(--line); }
.wv-facts dt { color: var(--muted); }
.wv-facts dd { font-family: var(--font-head); font-weight: 600; text-align: right; }
.wv-copy .btn { width: 100%; }

.wv-chapter-nav { grid-column: 1 / -1; }
.wv-chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.wv-chapter { display: flex; align-items: baseline; gap: 10px; height: 100%; padding: 9px 13px; color: var(--muted); background: rgba(14, 24, 38, .6); border: 1px solid var(--line); border-radius: 10px; font-size: .82rem; line-height: 1.3; transition: color .2s, background .2s, border-color .2s, transform .2s; }
.wv-chapter b { flex: none; font: 700 .76rem var(--font-head); color: var(--teal); font-variant-numeric: tabular-nums; }
.wv-chapter:hover, .wv-chapter:focus-visible, .wv-chapter.is-on { color: var(--text); border-color: rgba(16, 208, 208, .55); background: rgba(16, 208, 208, .08); }
.wv-chapter:hover { transform: translateY(-2px); }

a.wv-scene { display: block; color: inherit; }
/* Scene buttons sit in the corner so they never cover words in the artwork. */
.aslot.wv-scene .aframe .play { inset: auto 12px 12px auto; width: 42px; height: 42px; margin: 0; transform: none; }
.aslot.wv-scene .aframe .play svg { width: 15px; height: 15px; }
.wv-subhead { font-size: 1rem; margin: 38px 0 14px; color: var(--muted); }
#related .work-meta h3 a { color: inherit; }
#related .work-meta h3 a:hover { color: var(--teal); }
#compare .cmp tbody th { width: 17%; }

.wv-about { margin-top: 30px; }
.wv-h3 { margin: 46px auto 10px; max-width: 820px; font-size: clamp(1.25rem, 2vw, 1.55rem); text-align: center; text-wrap: balance; }
.wv-h3 + .cmp-wrap, .wv-h3 + .steps, .wv-h3 + .fit-grid, .wv-h3 + .aud-list { margin-top: 22px; }
.wv-h3-sub { max-width: 760px; margin: 0 auto 22px; color: var(--muted); text-align: center; }
.wv-facts-box { max-width: 860px; margin: 34px auto 0; }
.wv-transcript { margin: 0; padding: 12px 26px; }
.wv-line { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; margin: 0 -12px; padding: 13px 12px; border-radius: 10px; border-top: 1px solid var(--line); color: var(--text); font-size: .98rem; line-height: 1.66; transition: background .25s; }
.wv-line:first-child { border-top: 0; }
.wv-line.is-on { background: rgba(16, 208, 208, .09); }
.key-facts a.wv-time { align-self: start; border-bottom: 0; font: 700 .8rem/1.9 var(--font-head); color: var(--teal); font-variant-numeric: tabular-nums; }
.key-facts a.wv-time:hover { color: var(--green); }
.wv-note { margin-top: 14px; color: var(--muted); font-size: .84rem; text-align: center; }
.wv-author { max-width: 860px; margin: 22px auto 0; }
.wv-author a { color: var(--teal); }
.wv-author a:hover { color: var(--green); }
.wv-rights-line { max-width: 860px; margin: 14px auto 0; color: var(--muted); font-size: .8rem; line-height: 1.5; text-align: center; }
.wv-rights-line a { color: var(--teal); white-space: nowrap; }
.wv-rights-line a:hover { color: var(--green); }
.wv-rights { display: block; scroll-margin-top: 110px; }
.wv-rights .a-name { margin-bottom: 8px; font-size: 1rem; }
.wv-rights p { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.wv-rights p + p { margin-top: 8px; }

/* Vertical films: the same panel beside a 9:16 player. */
.wv-feature.is-portrait { grid-template-columns: clamp(300px, calc((100vh - 330px) * .5625), 384px) minmax(0, 1fr); max-width: 960px; margin-inline: auto; }
.wv-feature.is-portrait .wv-player { aspect-ratio: 9 / 16; }

@media (max-width: 1080px) {
  .wv-feature { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .wv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
  .wv-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 701px) and (max-width: 1080px) {
  .wv-feature.is-portrait { grid-template-columns: 300px minmax(0, 1fr); }
  .wv-feature.is-portrait .wv-facts { display: flex; }
}
@media (max-width: 700px) {
  .wv-hero > .container { display: flex; flex-direction: column; }
  .wv-hero > .container > * { order: 3; }
  .wv-hero > .container > .eyebrow, .wv-hero > .container > h1 { order: 1; }
  .wv-hero > .container > .wv-feature { order: 2; margin-top: 8px; }
  .wv-hero .lead { margin: 18px auto 0; }
  .wv-feature.is-portrait { grid-template-columns: minmax(0, 1fr); }
  .wv-feature.is-portrait .wv-player { width: 100%; max-width: 360px; justify-self: center; }
}
@media (max-width: 560px) {
  .wv-hero { padding-bottom: 42px; }
  .wv-feature { padding: 12px; border-radius: 18px; }
  .wv-facts { grid-template-columns: minmax(0, 1fr); }
  .wv-chapter { flex-direction: column; gap: 1px; padding: 8px 10px; }
  .wv-transcript { padding: 8px 16px; }
  .wv-line { grid-template-columns: 44px minmax(0, 1fr); gap: 8px; font-size: .94rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wv-chapter, .wv-line { transition: none; }
  .wv-chapter:hover { transform: none; }
}
