/* =========================================================
   Morgan Faget · "Datasheet" design system
   (_design/main.css is the copy used by the static mockups)
   ========================================================= */

/* ---------- Fonts (self-hosted, Latin subsets, see assets/fonts/LICENSE.md) ---------- */
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-wght.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  --bg: #f3f3f1;
  --surface: #fafaf8;
  --ink: #0b0b0b;
  --dim: #5d5d5a;
  --hair: #cfcfca;       /* thin separators inside a block */
  --line: var(--ink);    /* thick rules between blocks */
  --sig: #d4ff3a;        /* the only colour: used as a background, never as text on light */
  --on-sig: #0b0b0b;
  --cover-bg: #0b0b0b;   /* talk covers stay dark in both themes */
  --cover-ink: #efefea;

  --font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --rule: 2px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] {
  --bg: #0d0d0c; --surface: #151514; --ink: #efefea; --dim: #9b9b95; --hair: #2b2b29;
  --cover-bg: #1a1a18;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0c; --surface: #151514; --ink: #efefea; --dim: #9b9b95; --hair: #2b2b29;
    --cover-bg: #1a1a18;
  }
}

/* Smooth cross-page transitions (progressive enhancement, no JS) */
@view-transition { navigation: auto; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 700; line-height: 1.05; letter-spacing: -.03em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--sig); color: var(--on-sig); }
/* The highlight starts a little below the top of the line box so it doesn't cover the descenders of the line above */
mark { background: linear-gradient(transparent 14%, var(--sig) 14%); color: var(--on-sig); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.sheet { width: min(100%, var(--container)); margin-inline: auto; }
@media (min-width: 1240px) { .sheet { border-inline: var(--rule) solid var(--line); } }
.pad { padding-inline: var(--gutter); }
.mono { font: 500 .8rem/1.4 var(--font-mono); letter-spacing: .02em; }
.caps { text-transform: uppercase; letter-spacing: .06em; }
.dim { color: var(--dim); }
.link { font: 500 .85rem var(--font-mono); border-bottom: 2px solid var(--sig); white-space: nowrap; }
.link:hover { background: var(--sig); color: var(--on-sig); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10; background: var(--bg);
  border-bottom: var(--rule) solid var(--line);
}
.site-header .sheet { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; min-height: 60px; }
.wordmark { display: flex; align-items: baseline; gap: .6rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.wordmark .mono { color: var(--dim); }
.nav { display: flex; gap: 1.75rem; margin-left: auto; font: 500 .8rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.nav a { padding: .2rem 0; border-bottom: 2px solid transparent; }
.nav a i { font-style: normal; color: var(--dim); margin-right: .35rem; }
.nav a:hover { border-color: var(--hair); }
.nav a[aria-current] { border-color: var(--sig); }
.header-actions { display: flex; gap: .5rem; align-items: center; }
.lang-switch { display: flex; border: var(--rule) solid var(--ink); font: 600 .75rem var(--font-mono); letter-spacing: .06em; }
.lang-switch a, .lang-switch span { height: 34px; padding: 0 .55rem; display: grid; place-items: center; }
.lang-switch span { background: var(--ink); color: var(--bg); }
.lang-switch a:hover { background: var(--sig); color: var(--on-sig); }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  border: var(--rule) solid var(--ink); background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--sig); color: var(--on-sig); border-color: var(--on-sig); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 600 .95rem var(--font-sans); padding: .75rem 1.2rem; cursor: pointer;
  border: var(--rule) solid var(--ink); background: transparent; color: var(--ink);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--ink); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-sig { background: var(--sig); color: var(--on-sig); border-color: var(--on-sig); }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Spec table (hero, talk header) ---------- */
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs caption { text-align: left; font: 600 .78rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; padding-bottom: .75rem; }
.specs th, .specs td { text-align: left; padding: .6rem 0; border-top: 1px solid var(--hair); vertical-align: top; }
.specs th { font: 500 .8rem var(--font-mono); color: var(--dim); width: 42%; padding-right: 1rem; padding-top: .75rem; }
.specs .num { font-weight: 700; font-size: 1.7rem; line-height: 1; letter-spacing: -.03em; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; border-bottom: var(--rule) solid var(--line); }
.hero > div { padding-block: clamp(2rem, 5vw, 3.5rem); }
.hero > div + div { border-left: var(--rule) solid var(--line); }
.hero h1 { font-size: clamp(3rem, 8.5vw, 6.6rem); line-height: .92; letter-spacing: -.05em; margin: 1.1rem 0 1.5rem; }
.hero .lead { font-size: 1.2rem; max-width: 40ch; margin-bottom: 2rem; }

/* ---------- Venues strip ---------- */
/* Any number of venues: label column, then one equal column per venue */
.venues { display: grid; grid-template-columns: auto; grid-auto-flow: column; grid-auto-columns: 1fr; border-bottom: var(--rule) solid var(--line); }
.venues > * { padding: 1rem var(--gutter); border-left: 1px solid var(--hair); font-weight: 500; white-space: nowrap; }
.venues > :first-child { border-left: 0; color: var(--dim); }
.venues a:hover { background: var(--sig); color: var(--on-sig); }
.venues span { align-self: anchor-center; }

/* ---------- Section head ---------- */
.sec {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: baseline;
  padding-top: 3.5rem; padding-bottom: 1rem; border-bottom: var(--rule) solid var(--line);
}
.sec .n { font: 500 .85rem var(--font-mono); }
.sec h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- Talk cover (auto-generated, no image to design) ---------- */
.cover {
  position: relative; aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 1.75rem); background-color: var(--cover-bg); color: var(--cover-ink);
  background-image: radial-gradient(rgb(255 255 255 / .12) 1px, transparent 1.2px);
  background-size: 18px 18px; overflow: hidden;
}
.cover .top { display: flex; justify-content: space-between; gap: 1rem; font: 500 .75rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.cover .title { font-weight: 700; font-size: clamp(1.4rem, 3.2vw, 2.4rem); line-height: 1; letter-spacing: -.035em; max-width: 16ch; }
.cover .title::after { content: ""; display: block; width: 3.5rem; height: 6px; background: var(--sig); margin-top: .9rem; }
.play {
  position: absolute; right: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(1rem, 2.5vw, 1.75rem);
  width: 58px; height: 58px; display: grid; place-items: center; background: var(--sig);
  transition: transform .2s var(--ease);
}
.play::before { content: ""; border-left: 16px solid var(--on-sig); border-block: 10px solid transparent; margin-left: 4px; }
a:hover > .cover .play, .cover:hover .play { transform: scale(1.08); }
.cover .dur { position: absolute; right: calc(clamp(1rem, 2.5vw, 1.75rem) + 70px); bottom: clamp(1.1rem, 2.5vw, 1.85rem); font: 500 .8rem var(--font-mono); opacity: .8; }

/* ---------- Offer (companies / schools) ---------- */
.offer-intro { padding-block: 1.5rem; font-size: 1.15rem; max-width: 60ch; }
.offer { display: grid; grid-template-columns: 1fr 1fr; border-block: var(--rule) solid var(--line); }
.offer-card { padding: 1.75rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.offer-card + .offer-card { border-left: var(--rule) solid var(--line); }
.offer-head { display: flex; flex-direction: column; gap: .5rem; }
.offer-head h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.offer-head h3::after { content: ""; display: block; width: 3rem; height: 6px; background: var(--sig); margin-top: .7rem; }
.offer .pitch { font-size: 1.05rem; }
.offer-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.offer-lists h4 { margin: 0 0 .6rem; font: 600 .75rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; padding-bottom: .5rem; border-bottom: 1px solid var(--hair); }
.offer-lists ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.offer-lists li { position: relative; padding: .3rem 0 .3rem 1.1rem; }
.offer-lists li::before { content: ""; position: absolute; left: 0; top: .8rem; width: 6px; height: 6px; background: var(--ink); }
.offer-card > .btn { margin-top: auto; align-self: flex-start; }
.subhead { margin: 0; padding-top: 2.5rem; padding-bottom: .75rem; font: 600 .78rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; border-bottom: var(--rule) solid var(--line); }

/* ---------- Featured talk ---------- */
.featured { display: grid; grid-template-columns: 1.25fr 1fr; border-bottom: var(--rule) solid var(--line); }
.featured > .cover-link { display: block; border-right: var(--rule) solid var(--line); }
.featured .cover { height: 100%; aspect-ratio: auto; min-height: 300px; }
.featured .body { padding: 1.75rem var(--gutter); display: flex; flex-direction: column; gap: 1rem; }
.featured h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); view-transition-name: talk-title; }
.featured .cover { view-transition-name: talk-thumb; }
.featured .summary { color: var(--dim); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.25rem; margin: 0; font-size: .92rem; }
.kv dt { font: 500 .78rem/1.9 var(--font-mono); color: var(--dim); }
.kv dd { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .04em; padding: .15rem .45rem; border: 1px solid var(--ink); }
a.tag:hover { background: var(--sig); color: var(--on-sig); border-color: var(--on-sig); }
.featured .actions { margin-top: auto; }

/* ---------- Rows (talks, courses, posts) ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li > a, .rows > li > .row {
  display: grid; gap: 1.25rem; align-items: center;
  padding: 1rem var(--gutter); border-bottom: 1px solid var(--hair);
  transition: background .12s;
}
.rows > li > a:hover { background: var(--sig); color: var(--on-sig); }
.rows > li > a:hover .dim { color: inherit; }
.rows > li > a:hover .tag { border-color: currentColor; }
.rows h3 { font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.2; }
.rows .head { font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding-block: .6rem; }
.fmt { font: 500 .75rem var(--font-mono); border: 1px solid currentColor; padding: .15rem .45rem; justify-self: end; white-space: nowrap; }

.talk-rows > li > * { grid-template-columns: 9.5rem 1fr 11rem 6rem; }
.course-rows > li > * { grid-template-columns: 9.5rem 1fr 15rem 7rem; }
.course-rows .btn { justify-self: end; }
.post-rows > li > a { grid-template-columns: 1fr; gap: .3rem; padding-inline: 0; }

/* ---------- Writing + About ---------- */
.split { display: grid; grid-template-columns: 1.2fr 1fr; }
.split > div { padding-bottom: 1rem; }
.split > div + div { border-left: var(--rule) solid var(--line); }
.split .sec { padding-inline: var(--gutter); }
.split .post-rows { padding-inline: var(--gutter); }
.about { padding: 1.5rem var(--gutter) 0; display: flex; flex-direction: column; gap: 1rem; }
.about .actions { margin-top: .75rem; }

/* ---------- Newsletter / CTA (inverted block) ---------- */
.invert {
  margin-top: 4rem; background: var(--ink); color: var(--bg);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: end;
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}
.invert h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-top: .75rem; max-width: 22ch; }
.invert p { margin-top: .9rem; opacity: .7; }
.invert a { border-bottom: 1px solid currentColor; }
.invert form { display: flex; border: var(--rule) solid var(--bg); }
.invert input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: inherit;
  font: 1rem var(--font-mono); padding: .85rem 1rem; outline: none;
}
.invert input::placeholder { color: inherit; opacity: .5; }
.invert form:focus-within { outline: 2px solid var(--sig); outline-offset: 3px; }
.invert form .btn { border: 0; }
.invert form .btn:hover { transform: none; box-shadow: none; filter: brightness(.95); }
.invert small { display: block; margin-top: .75rem; font: .78rem var(--font-mono); opacity: .6; }

/* ---------- Footer ---------- */
footer { border-top: var(--rule) solid var(--line); }
footer .sheet { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.25rem 2rem; font: 500 .78rem var(--font-mono); color: var(--dim); }
footer nav { display: flex; gap: 1.25rem; text-transform: uppercase; letter-spacing: .06em; }
footer a:hover { color: var(--ink); }

/* =========================================================
   Talk page
   ========================================================= */
.crumbs { padding-block: 1rem; border-bottom: 1px solid var(--hair); }
.crumbs a { font: 500 .8rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.crumbs a:hover { background: var(--sig); color: var(--on-sig); }

.talk-head { display: grid; grid-template-columns: 1.5fr 1fr; border-bottom: var(--rule) solid var(--line); }
.talk-head > div { padding-block: clamp(1.75rem, 4vw, 3rem); }
.talk-head > div + div { border-left: var(--rule) solid var(--line); }
.talk-head h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: .95; letter-spacing: -.045em; margin: 1rem 0 1.25rem; view-transition-name: talk-title; }
.talk-head .lead { font-size: 1.2rem; color: var(--dim); max-width: 46ch; }

.video { border-bottom: var(--rule) solid var(--line); cursor: pointer; }
.video .cover { aspect-ratio: 21 / 9; view-transition-name: talk-thumb; }
.video .cover .title { font-size: clamp(1.8rem, 5vw, 3.6rem); }
.video .play { width: 76px; height: 76px; }
.video .play::before { border-left-width: 20px; border-block-width: 12px; }
.video .cover .dur { right: calc(clamp(1rem, 2.5vw, 1.75rem) + 90px); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.layout > aside { border-left: var(--rule) solid var(--line); }
.prose { padding: 2.5rem var(--gutter) 3rem; max-width: 46rem; }
.prose h2 { font-size: 1.7rem; margin: 2.75rem 0 .9rem; display: flex; gap: .9rem; align-items: baseline; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .n { font: 500 .8rem var(--font-mono); color: var(--dim); letter-spacing: 0; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose li { margin: .35rem 0; }
.prose ul { padding-left: 1.1rem; }
.prose ul li::marker { content: "■  "; font-size: .6em; }
.prose a { border-bottom: 2px solid var(--sig); }
.prose a:hover { background: var(--sig); color: var(--on-sig); }
.prose blockquote {
  margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 6px solid var(--sig); background: var(--surface);
  font-weight: 500; font-size: 1.4rem; line-height: 1.3; letter-spacing: -.02em;
}
.prose code { font: .86em var(--font-mono); background: var(--surface); border: 1px solid var(--hair); padding: .05em .35em; }

aside { align-self: start; position: sticky; top: 62px; }
.panel { border-bottom: var(--rule) solid var(--line); padding: 1.25rem var(--gutter) 1.5rem; }
.panel h3 { font: 600 .78rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.resource { display: grid; grid-template-columns: 3rem 1fr; gap: .9rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--hair); }
.resource:first-of-type { border-top: 0; padding-top: 0; }
.resource .ic { height: 2.4rem; display: grid; place-items: center; border: 1px solid var(--ink); font: 600 .7rem var(--font-mono); }
.resource:hover .ic { background: var(--sig); color: var(--on-sig); border-color: var(--on-sig); }
.resource small { display: block; font: .75rem var(--font-mono); color: var(--dim); }
.history { width: 100%; border-collapse: collapse; font-size: .88rem; }
.history th { text-align: left; font: 500 .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); padding-bottom: .4rem; }
.history td { padding: .5rem .5rem .5rem 0; border-top: 1px solid var(--hair); vertical-align: top; }
.history td:first-child { font: 500 .78rem var(--font-mono); white-space: nowrap; }
aside .btn { width: 100%; }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-block: var(--rule) solid var(--line); }
.pager a { padding: 1.25rem var(--gutter); display: flex; flex-direction: column; gap: .3rem; transition: background .12s; }
.pager a + a { border-left: var(--rule) solid var(--line); text-align: right; }
.pager a:hover { background: var(--sig); color: var(--on-sig); }
.pager a:hover .dim { color: inherit; }
.pager strong { font-size: 1.15rem; letter-spacing: -.015em; }
.layout + .pager { margin-top: 0; }

/* ---------- Entrance motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .6s var(--ease) both; }
  .reveal:nth-child(2) { animation-delay: .06s; }
  .reveal:nth-child(3) { animation-delay: .12s; }
  .reveal:nth-child(4) { animation-delay: .18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, ::view-transition-group(*) { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero, .featured, .split, .invert, .talk-head, .layout, .offer { grid-template-columns: 1fr; }
  .offer-card + .offer-card { border-left: 0; border-top: var(--rule) solid var(--line); }
  .hero > div + div, .split > div + div, .talk-head > div + div, .layout > aside { border-left: 0; border-top: var(--rule) solid var(--line); }
  .featured > .cover-link { border-right: 0; border-bottom: var(--rule) solid var(--line); }
  .venues { grid-template-columns: 1fr 1fr; grid-auto-flow: row; }
  .venues > * { border-left: 0; border-top: 1px solid var(--hair); }
  .venues > :first-child { grid-column: 1 / -1; border-top: 0; }
  aside { position: static; }
  .featured .cover { aspect-ratio: 16 / 9; min-height: 0; }
  .video .cover { aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  .nav { order: 3; width: 100%; margin-left: 0; gap: 1.25rem; overflow-x: auto; padding-bottom: .6rem; }
  .header-actions { margin-left: auto; }
  .header-actions > .btn { display: none; }
  .talk-rows > li > *, .course-rows > li > * { grid-template-columns: 1fr auto; gap: .35rem 1rem; }
  .talk-rows .when, .course-rows .when { grid-column: 1 / -1; }
  .talk-rows .where, .course-rows .where { grid-column: 1; }
  .rows .head { display: none !important; }
  .pager { grid-template-columns: 1fr; }
  .offer-lists { grid-template-columns: 1fr; }
  .pager a + a { border-left: 0; border-top: var(--rule) solid var(--line); }
  .cover .dur { display: none; }
}

/* =========================================================
   Site-only additions (pages the mockups don't cover)
   ========================================================= */
.sec h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.split > :only-child { grid-column: 1 / -1; border-left: 0; }
.rows h3 a:hover { background: var(--sig); color: var(--on-sig); }
.empty { padding-block: 2.5rem; color: var(--dim); font: 500 .9rem var(--font-mono); }

.post-head { padding-block: clamp(2rem, 5vw, 3.5rem); border-bottom: var(--rule) solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
.post-head h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: .95; letter-spacing: -.045em; max-width: 20ch; }
.post-head .lead { font-size: 1.2rem; color: var(--dim); max-width: 50ch; }
.prose-post { margin-inline: auto; max-width: 44rem; padding-bottom: 4rem; }
.prose .specs { margin: 0 0 1.5rem; }
.prose .btn { border-bottom: var(--rule) solid var(--ink); }
.prose .btn-primary:hover { background: var(--ink); color: var(--bg); }

.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-img ~ .top, .cover-img ~ .title { position: relative; }
.video.playing { aspect-ratio: 16 / 9; cursor: auto; }
.video iframe { display: block; width: 100%; height: 100%; border: 0; }
.pager > span { display: none; }
