
.film {
  --hair: max(1px, 0.12cqw);
  --drawn: max(1px, 0.24cqw);
  --edge: 7cqw;
  --line-y: 38cqw;
  --under-y: 40.6cqw;
  --label: 2.8cqw;
  --label-ink: var(--ink-mute);

  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  line-height: 1;
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}

.film__beat {
  position: absolute;
  inset: 0;
  visibility: hidden;
}

.film__ln { display: block; white-space: nowrap; }
.film__ln--inline { display: inline; }
.film__sentence { display: block; }
.film__sentence + .film__sentence { margin-top: 2.4cqw; }


.film__head {
  position: absolute;
  left: var(--edge);
  top: 5.6cqw;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 4.8cqw;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.film__fig,
.film__n {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}
.film__fig {
  position: relative;
  top: 0.4cqw;
  font-size: 8.4cqw;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.film__fig--xl { top: 3.5cqw; font-size: 15cqw; letter-spacing: -0.06em; }
.film__fig--md { top: 0.2cqw; font-size: 5.4cqw; letter-spacing: -0.035em; }
.film__fig--new { color: var(--accent); }
.film__n { font-weight: 500; font-size: 0.92em; letter-spacing: -0.02em; }

.film__l,
.film__tag {
  font-size: var(--label);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--label-ink);
  white-space: nowrap;
}
.film__k { font-weight: 500; color: var(--ink); }


.film__rows {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  top: 15.2cqw;
}
.film__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  height: 11.4cqw;
  line-height: 11.4cqw;
  border-top: var(--hair) solid var(--rule);
  white-space: nowrap;
}
.film__rows--count .film__row { height: 22.8cqw; line-height: 22.8cqw; border-top: 0; justify-content: flex-end; }
.film__rows--list .film__row { height: 7.6cqw; line-height: 7.6cqw; }

.film__rule {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  top: var(--line-y);
  height: var(--hair);
  background: var(--rule-strong);
}
.film__rule i {
  position: absolute;
  left: 0;
  right: 0;
  top: calc((var(--hair) - var(--drawn)) / 2);
  height: var(--drawn);
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.film__under {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  top: var(--under-y);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 3.3cqw;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.012em;
  white-space: nowrap;
}
.film__under--run { display: block; }


.film__name {
  position: absolute;
  top: 26.6cqw;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 10cqw;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.film__name--core { left: var(--edge); color: var(--ink-mute); }
.film__name--new  { left: 52cqw; }
.film__rule--right i { left: 52.3256%; }


.film__gates {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  top: calc(var(--line-y) - 4.4cqw);
  height: 4.4cqw;
}
.film__gate {
  position: absolute;
  bottom: 0;
  height: 100%;
  padding: 0 0.9cqw 0 0;
  border-right: var(--hair) solid var(--rule-strong);
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--label);
  font-weight: 500;
  line-height: 1;
  color: var(--ink-mute);
}
.film__gate[data-on] { color: var(--ink); border-right-color: var(--accent); }


.film__mark {
  position: absolute;
  left: var(--edge);
  top: 41.4cqw;
  height: 3.6cqw;
  width: auto;
  max-width: none;
}

@container (max-width: 480px) {
  .film { --label: 3.4cqw; --label-ink: var(--ink-soft); }
  .film__under { font-size: 3.5cqw; }
  .film__n { font-size: 0.96em; }
}
