/*
 * The free video library - the parts only this page has.
 *
 * Everything else comes from home-2026.css, loaded alongside: the page sits
 * in the same .h26 wrapper as the home page below its hero, so the section
 * heads, chips, buttons and the closing band are the home page's own. What
 * is here follows that sheet's language, so the two read as one site:
 *
 *   colour  deep navy #071e2b and one accent, mint #70edcd, spent on the
 *           play buttons, numbers and active states - never on a large area
 *   edges   4-6px; hairlines rather than shadows
 *   type    very large, very tight headlines; 10-11px uppercase labels
 *
 * Every rule starts at .fc, the page's own wrapper.
 */

.fc [hidden] { display: none !important; }

.fc-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------------- hero */

.fc-hero {
  --h26-accent: var(--h26-mint);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 3.6vw, 52px) 0 0;
  background: var(--h26-ink);
  color: #fff;
}

/* the home hero's dotted field, still - this page is a place to read, not a show */
.fc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(#83e6dc1a 1px, transparent 1px);
  background-size: 32px 32px;
}
.fc-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -320px;
  right: -260px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #0ab89c38, transparent 66%);
  pointer-events: none;
}

.fc-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(28px, 3vw, 44px);
  padding: 0;
  list-style: none;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--h26-on-dark-2);
}
.fc-crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .45; }
.fc-crumbs a { color: inherit; text-decoration: none; }
.fc-crumbs a:hover { color: var(--h26-mint); }
.fc-crumbs [aria-current] { color: #fff; }

.fc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(36px, 4vw, 56px);
}

.fc-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #b9d6df;
}
.fc-eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--h26-mint);
  box-shadow: 0 0 15px #70edcd55;
}

.fc-hero h1 {
  margin: 0 0 22px;
  max-width: 14ch;
  font-size: clamp(42px, 5.2vw, 80px);
  line-height: 1.03;
  letter-spacing: -.06em;
  font-weight: 800;
  color: #fff;
}
.fc-hero h1 em { font-style: normal; color: var(--h26-mint); }

.fc-hero__lede {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.75;
  color: var(--h26-on-dark);
}

.fc-hero__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: 30px;
}

.fc-hero__link {
  padding: 12px 0;
  border-bottom: 1px solid #577382;
  font-size: 13px;
  font-weight: 800;
  color: #fff !important;
  text-decoration: none !important;
  transition: color .2s, border-color .2s;
}
.fc-hero__link:hover { color: var(--h26-mint) !important; border-color: var(--h26-mint); }

.fc-hero a:focus-visible,
.fc a:focus-visible,
.fc button:focus-visible,
.fc input:focus-visible {
  outline: 3px solid var(--h26-mint);
  outline-offset: 3px;
}

/* the newest video, big, one press from the top of the page */
.fc-feature { min-width: 0; }

.fc-feature__play {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #ffffff1f;
  border-radius: 6px;
  background: #0d2c3b;
}
.fc-feature__play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.fc-feature__play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #041720d9, transparent 55%);
  pointer-events: none;
}
.fc-feature__play:hover img { transform: scale(1.04); }

.fc-feature__label {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #d1f2ff30;
  border-radius: 3px;
  background: #061f2cb8;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e2f7fa;
}
.fc-feature__label > span { color: var(--h26-mint); font-size: 8px; }

.fc-feature__meta {
  margin: 16px 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--h26-mint);
}
.fc-feature__title {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.4;
  letter-spacing: -.02em;
  font-weight: 700;
  color: #fff;
}

/* the reel: the picture and the words fade across as the next video comes in */
.fc-feature__play img { transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .35s ease; }
.fc-feature__words { transition: opacity .35s ease; }
/* two lines kept for every title, so the stats below do not jump as it changes */
.fc-feature__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em;
}
.fc-feature.is-changing .fc-feature__play img,
.fc-feature.is-changing .fc-feature__words { opacity: 0; }

/* how long until the next one: a hairline along the foot of the picture */
.fc-feature__progress {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #ffffff1f;
}
.fc-feature__progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--h26-mint);
  transform: scaleX(0);
  transform-origin: left center;
}
.fc-feature.is-running .fc-feature__progress i { animation: fcReel var(--fc-reel, 5s) linear forwards; }
.fc-feature.is-held .fc-feature__progress i { animation-play-state: paused; }
@keyframes fcReel { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.fc-feature__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.fc-feature__bar[hidden] { display: none; }   /* no script, no reel: the buttons stay out */
.fc-feature__btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--h26-rule-dark);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: color .18s, border-color .18s;
}
.fc-feature__btn:hover { color: var(--h26-mint); border-color: var(--h26-mint); }
.fc-feature__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fc-feature__btn .fc-i-play { fill: currentColor; stroke-width: 1.5; }
.fc-feature__btn .fc-i-play,
.fc-feature__btn[aria-pressed="true"] .fc-i-pause { display: none; }
.fc-feature__btn[aria-pressed="true"] .fc-i-play { display: block; }
.fc-feature__count {
  margin-left: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--h26-on-dark-2);
  font-variant-numeric: tabular-nums;
}

/* the play button, the one place mint is spent on a shape */
.fc-playicon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: var(--h26-mint);
  color: #062b31;
  box-shadow: 0 0 0 8px #70edcd2e;
  transition: transform .2s, box-shadow .2s;
}
.fc-playicon svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; }
.fc-playicon--big { width: 76px; height: 76px; margin: -38px 0 0 -38px; box-shadow: 0 0 0 12px #70edcd2b; }
.fc-playicon--big svg { width: 28px; height: 28px; }
a:hover > .fc-playicon { transform: scale(1.08); box-shadow: 0 0 0 12px #70edcd38; }

/* four figures along the foot of the hero, the way the home hero lays out its paths */
.fc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--h26-rule-dark);
}
.fc-stat { padding: 22px 20px 26px 0; }
.fc-stat + .fc-stat { padding-left: 24px; border-left: 1px solid var(--h26-rule-dark); }
.fc-stat b {
  display: block;
  font-size: clamp(26px, 2.4vw, 40px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 800;
  color: var(--h26-mint);
  white-space: nowrap;
}
.fc-stat span {
  display: block;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--h26-on-dark-2);
}

/* ------------------------------------------------------ search and chips */

/* the hero is dark; the library opens on paper right under it */
.h26 .fc-hero + .section { border-top: 0; }

.fc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.fc-search {
  position: relative;
  flex: 1 1 360px;
  min-width: 0;
  margin: 0;
}
.fc-search svg {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  color: var(--h26-muted);
  pointer-events: none;
}
.fc-search input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 46px;
  border: 1px solid var(--h26-line-2);
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 14.5px;
  color: var(--h26-text);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .18s, box-shadow .18s;
}
.fc-search input::placeholder { color: var(--h26-muted); }
.fc-search input:focus { outline: 0; border-color: var(--h26-ink); box-shadow: 0 0 0 3px rgba(7, 30, 43, .08); }

.fc-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-kinds .chip { cursor: pointer; font-family: inherit; }

.fc-topics {
  display: flex;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0 0 20px;
  overflow-x: auto;
  border-bottom: 1px solid var(--h26-line);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.fc-topics .chip { text-decoration: none; }

.fc-found {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--h26-muted);
}

/* ------------------------------------------------------------- the cards */

.fc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fcv {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--h26-line);
  border-radius: var(--h26-edge);
  background: #fff;
  box-shadow: 0 1px 2px rgba(7, 30, 43, .04);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.fcv:hover {
  transform: translateY(-3px);
  border-color: var(--h26-line-2);
  box-shadow: 0 2px 4px rgba(7, 30, 43, .05), 0 16px 32px -20px rgba(7, 30, 43, .35);
}

.fcv__play {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d2c3b;
  border-bottom: 1px solid var(--h26-line);
}
.fcv__play img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.fcv__play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #04172099, transparent 55%);
  opacity: .75;
  transition: opacity .2s;
  pointer-events: none;
}
.fcv__play:hover img { transform: scale(1.05); }
.fcv__play:hover::after { opacity: 1; }
.fcv__play .fc-playicon { opacity: .92; }

.fcv__kind {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 3px;
  background: var(--h26-ink);
  color: var(--h26-mint);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.fcv__body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }

.fcv__topic {
  margin: 0 0 8px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--h26-accent);
}

.fcv__title {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.4;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--h26-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* at the foot of the card however long its title, so the rules line up across a row */
.fcv__tags {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--h26-line);
  font-size: 12px;
  line-height: 1.55;
  color: var(--h26-text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fcv__body > .fcv__title:last-child { margin-bottom: 0; }

.fc-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 34px; }
.fc-more__count { font-size: 12px; letter-spacing: .04em; color: var(--h26-muted); }

.fc-empty {
  padding: 48px 24px;
  border: 1px dashed var(--h26-line-2);
  border-radius: var(--h26-edge);
  background: var(--h26-paper);
  color: var(--h26-text-2);
  text-align: center;
}
.fc-empty p { margin: 0; line-height: 1.7; }
.fc-empty__h { margin: 0 0 6px !important; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--h26-ink); }
.fc-empty a { color: var(--h26-ink); font-weight: 800; }

/* ------------------------------------------------------ after the videos */

/*
 * A dark band, like the home page's. Every rule carries .h26 as well: the
 * theme's own ".h26 .section" paints each section white, and a plain
 * ".fc-next" loses to it - which left white words on a white page.
 */
.h26 .fc-next {
  --h26-accent: var(--h26-mint);
  background: var(--h26-ink);
  color: #fff;
  border-top: 0;
}
.h26 .fc-next .sec-head h2 { color: #fff; }
.h26 .fc-next .sec-head p { color: var(--h26-on-dark-2); }
.h26 .fc-next + .section { border-top: 0; }

.fc-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--h26-rule-dark);
}

.fc-path {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 28px 30px 0;
  color: #fff !important;
  text-decoration: none !important;
}
.fc-path + .fc-path { padding-left: 28px; border-left: 1px solid var(--h26-rule-dark); }
.fc-path__n { font-size: 10px; font-weight: 800; letter-spacing: .15em; color: var(--h26-mint); }
.fc-path__t {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.35;
  letter-spacing: -.02em;
  font-weight: 800;
}
.fc-path__t > span { color: var(--h26-mint); transition: transform .2s; }
.fc-path:hover .fc-path__t > span { transform: translate(3px, -3px); }
.fc-path__d { font-size: 13.5px; line-height: 1.7; color: var(--h26-on-dark-2); }

/*
 * The closing band: the wording on the left, the illustration on the right.
 * The home page keeps these rules in its own markup rather than in a shared
 * sheet, so this page carries the same ones - without them the picture fell
 * under the words at 900px wide.
 */
.h26.fc #start { padding-top: clamp(56px, 6vw, 96px); }
.fc .cta-band--img .cta-band__inner {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}
.fc .cta-band__copy { min-width: 0; }
.fc .cta-band--img .cta-band__art {
  flex: none;
  width: min(380px, 34vw);
  align-self: end;
  margin-bottom: -28px;
  pointer-events: none;
}
.fc .cta-band--img .cta-band__art img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  /* on a phone the picture would squeeze the buttons, so it steps aside */
  .fc .cta-band--img .cta-band__inner { grid-template-columns: 1fr; }
  .fc .cta-band--img .cta-band__art { display: none; }
}

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

.fc-player {
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--h26-deep);
  color: #fff;
  overflow: visible;
}
.fc-player::backdrop { background: rgba(4, 23, 32, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.fc-player[open] { animation: fcIn .22s ease-out; }

.fc-player__box { display: flex; flex-direction: column; }

.fc-player__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px 22px;
}
.fc-player__topic {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--h26-mint);
}
.fc-player__title { margin: 0; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.35; letter-spacing: -.02em; font-weight: 800; color: #fff; }

.fc-player__x {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--h26-rule-dark);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color .18s, color .18s;
}
.fc-player__x:hover { color: var(--h26-mint); border-color: var(--h26-mint); }
.fc-player__x svg { width: 16px; height: 16px; }

.fc-player__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.fc-player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.fc-player__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 18px 22px;
}
.fc-player .btn--ghost { color: #fff; border-color: var(--h26-rule-dark); }
.fc-player .btn--ghost:hover { color: var(--h26-mint); border-color: var(--h26-mint); }

@keyframes fcIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- narrower */

@media (max-width: 1000px) {
  .fc-hero__grid { grid-template-columns: 1fr; }
  .fc-feature { max-width: 640px; }
  .fc-paths { grid-template-columns: 1fr; }
  .fc-path, .fc-path + .fc-path { padding: 22px 0; border-left: 0; }
  .fc-path + .fc-path { border-top: 1px solid var(--h26-rule-dark); }
}

@media (max-width: 800px) {
  .fc-hero h1 { font-size: clamp(38px, 10vw, 58px); max-width: none; }
  .fc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-stat, .fc-stat + .fc-stat { padding: 18px 12px 20px 0; border-left: 0; }
  .fc-stat:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--h26-rule-dark); }
  .fc-stat:nth-child(n+3) { border-top: 1px solid var(--h26-rule-dark); }
  .fc-bar { gap: 10px; }
  .fc-search { flex-basis: 100%; }
  .fc-grid { gap: 14px; }
  .fc-player { width: 100vw; max-height: 100vh; border-radius: 0; }
  .fc-player__head { padding: 14px 12px 12px 16px; }
  .fc-player__foot { padding: 12px 12px 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .fcv, .fcv__play img, .fc-feature__play img, .fc-feature__words, .fc-playicon, .fc-path__t > span { transition: none; }
  .fc-feature.is-running .fc-feature__progress i { animation: none; }
  .fcv:hover, .fcv__play:hover img, .fc-feature__play:hover img, a:hover > .fc-playicon { transform: none; }
  .fc-player[open] { animation: none; }
}
