/* 紙上乘時: the 60-second paper film on the 繁中 home page (build.py film()). Colours are style.css's. */
.film { padding-block: 1rem 3rem; }
.film .sec-head { margin-bottom: 1.5rem; }
.film-box { background: var(--card); border: var(--outline); border-radius: var(--radius); overflow: hidden; }
.film-box video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--soft); }
.film-rule { position: relative; height: 2.25rem; cursor: pointer; touch-action: none; background: var(--earth); border-top: var(--outline); }
.film-rule i { position: absolute; inset-block: 0; border-left: 0.125rem solid #1B1B1B; }
.film-rule b { position: absolute; top: 50%; translate: 0.375rem -50%; font-family: var(--num); font-size: 0.875rem; line-height: 1; color: #1B1B1B; pointer-events: none; }
.film-needle { position: absolute; top: -0.5625rem; width: 1rem; height: 1rem; margin-left: -0.5rem; rotate: 45deg; background: var(--fire); border: 0.125rem solid #1B1B1B; pointer-events: none; }
.film-chapters { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
.film-chapters button { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; background: var(--card); border: 0.125rem solid var(--ink); border-radius: 1rem; overflow: hidden; cursor: pointer; }
.film-chapters img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; flex: none; border-bottom: 0.125rem solid var(--ink); }
.film-chapters .t { display: block; flex: 1; padding: 0.5rem 0.75rem 0.75rem; min-width: 0; }
.film-chapters .n { display: flex; justify-content: space-between; font-family: var(--num); font-size: 0.875rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.film-chapters strong { display: block; font-family: var(--round); font-size: 1.0625rem; font-weight: 800; line-height: 1.35; }
.film-chapters small { display: block; font-size: 0.875rem; line-height: 1.55; color: var(--muted); margin-top: 0.125rem; }
.film-chapters button:hover { background: var(--soft); }
.film-chapters button[aria-current="true"] { background: var(--tint-mid); }
.film-note { margin: 1rem 0 0; font-size: 0.9375rem; color: var(--muted); max-width: 46em; }
.film-err { margin: 0.75rem 0 0; font-weight: 700; color: var(--fire); }
@media (max-width: 56rem) { .film-chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 36rem) {
  .film-chapters { grid-template-columns: 1fr; gap: 0.5rem; }
  .film-chapters button { flex-direction: row; }
  .film-chapters img { width: 40%; aspect-ratio: auto; border-bottom: 0; border-right: 0.125rem solid var(--ink); }
}
