/* Film section on the home page, and the QCy cipher page. Uses the tokens in style.css. */
.film-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(var(--space-6), 4vw, var(--space-12)); align-items: start; }
.film { margin: 0; min-width: 0; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #01050d; border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.film figcaption { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-text-faint); max-width: none; }
.film--wide { max-width: var(--content-default); }

.diff { border-top: 1px solid var(--color-border-strong); }
.diff > div { display: grid; gap: var(--space-1); padding-block: var(--space-4); border-bottom: 1px solid var(--color-border); }
.diff dt { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary); }
.diff dd { font-size: var(--text-sm); color: var(--color-text-muted); }
.diff dd b { color: var(--color-text); font-weight: 700; }
.film-side { display: grid; gap: var(--space-4); align-content: start; }

.transcript { margin-top: var(--space-6); max-width: var(--content-default); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.transcript summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; font-weight: 700; font-size: var(--text-sm); color: var(--color-primary); list-style: none; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::after { content: "+"; margin-left: var(--space-2); font-family: var(--font-mono); }
.transcript[open] summary::after { content: "\2212"; }
.transcript summary:hover { color: var(--color-primary-hover); }
.transcript p { color: var(--color-text-muted); padding-bottom: var(--space-4); max-width: 78ch; }

/* AES-256 beside QCy, one row per difference */
.versus { width: 100%; border-top: 1px solid var(--color-border-strong); }
.versus th, .versus td { text-align: left; vertical-align: top; padding: var(--space-6) var(--space-6) var(--space-6) 0; border-bottom: 1px solid var(--color-border); }
.versus thead th { padding-block: var(--space-3); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-faint); border-bottom-color: var(--color-border-strong); }
.versus thead th.q { color: var(--color-primary); }
.versus tbody th { width: 16%; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-faint); padding-top: calc(var(--space-6) + 0.35em); }
.versus td { width: 42%; color: var(--color-text-muted); font-size: var(--text-sm); }
.versus td:last-child { padding-right: 0; }
.versus td strong { display: block; margin-bottom: var(--space-2); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; color: var(--color-text); }
.versus td.q strong { color: var(--color-primary-hover); }
.versus code, .walk code { font-family: var(--font-mono); font-size: 0.9em; color: var(--color-text); }

.try-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); list-style: none; }
.try-list a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-full); color: var(--color-text); font-weight: 700; font-size: var(--text-sm); text-decoration: none; }
.try-list a:hover { border-color: var(--color-primary); color: var(--color-primary-hover); }

@media (max-width: 900px) { .film-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .versus, .versus tbody, .versus tr, .versus th, .versus td { display: block; width: auto; }
  .versus thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .versus tr { padding-block: var(--space-5); border-bottom: 1px solid var(--color-border); }
  .versus tbody th, .versus td { width: auto; padding: 0; border: 0; }
  .versus tbody th { color: var(--color-primary); margin-bottom: var(--space-3); }
  .versus td + td { margin-top: var(--space-4); }
  .versus td::before { content: attr(data-label); display: block; margin-bottom: var(--space-1); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-faint); }
}
