:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f4f4ec;
  background: #171817;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  padding: 0.8rem 1.1rem;
  background: #eaff6a;
  color: #171817;
  z-index: 2;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid #eaff6a; outline-offset: 6px; }
.masthead { padding: clamp(2rem, 4vw, 4rem) 1.5rem clamp(2rem, 3.5vw, 3.5rem); text-align: center; }
h1 { margin: 0; }
h1 img { display: block; width: min(100%, 46rem); height: auto; margin: 0 auto; }
.videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  width: min(100% - 3rem, 46rem);
  margin: 0 auto;
  padding-bottom: clamp(3rem, 5vw, 5rem);
  scroll-margin-top: 1.5rem;
}
.film { min-width: 0; margin: 0; }
.film-player { position: relative; }
.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #090909;
  cursor: pointer;
}
.play-cover[hidden] { display: none; }
.play-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.play-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid #ffffffb3;
  border-radius: 50%;
  background: #171817b3;
  color: #fff;
}
.play-icon svg { width: 2rem; height: 2rem; fill: currentColor; }
.play-cover:hover .play-icon, .play-cover:focus-visible .play-icon { background: #eaff6a; color: #171817; border-color: #eaff6a; }
video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 5;
  object-fit: contain;
  background: #090909;
  border-radius: 3px;
}
figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.duration {
  color: #a6aaa3;
  font: 0.8rem/1.4 ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.characters {
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #171817;
}
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 256px), 1fr));
  gap: 0;
}
.character-grid.sized {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  grid-template-columns: repeat(var(--columns), 256px);
  width: calc(var(--columns) * 256px);
}
.character-tile { position: relative; min-width: 0; }
.character-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0;
}
.character-number {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: block;
  width: auto;
  height: 16px;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px #000c);
  z-index: 3;
}
.character-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0;
  pointer-events: none;
  opacity: 0;
}
.is-preview-playing .character-preview { opacity: 1; }
.character-play-control {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.character-play-control[hidden] { display: none; }
.character-play-control:focus-visible { outline-offset: -4px; }
.character-tile.is-right-edge .character-number {
  right: calc(5px + var(--edge-crop, 0px));
}
@media (max-width: 540px) {
  .masthead { padding-top: 2.5rem; padding-bottom: 2.25rem; }
  .videos { grid-template-columns: 1fr; width: min(100% - 2.5rem, 22rem); gap: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
