/* assembler.css — the Phi Molecular Assembler page + video-lite lightbox */

/* spec/summary table */
.assembler-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: calc(13px / var(--phi)) 0;
}
.assembler-table th,
.assembler-table td {
  padding: calc(8px / var(--phi)) calc(8px / var(--phi));
  border-bottom: 1px solid rgba(212, 168, 67, 0.18);
  text-align: left;
  vertical-align: top;
}
.assembler-table th {
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold, #d4a843);
}
.assembler-table tfoot td {
  border-bottom: none;
  border-top: 1px solid rgba(212, 168, 67, 0.35);
  color: var(--gold, #d4a843);
}
.assembler-table em { color: rgba(212, 168, 67, 0.85); font-style: normal; }

.assembler-list { margin: calc(8px / var(--phi)) 0 0 1.2em; }
.assembler-list li { margin-bottom: calc(5px / var(--phi)); }

/* ── video-lite: small preview windows ── */
.video-lite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: calc(21px / var(--phi));
  margin: calc(21px / var(--phi)) 0;
}
.video-lite-card {
  display: block;
  background: rgba(11, 11, 26, 0.72);
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 13px;
  padding: calc(13px / var(--phi));
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
  color: inherit;
  text-align: left;
}
.video-lite-card:hover,
.video-lite-card:focus-visible {
  border-color: var(--gold, #d4a843);
  transform: translateY(-2px);
  background: rgba(212, 168, 67, 0.07);
  outline: none;
}
.video-lite-preview {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(8px / var(--phi));
  background:
    radial-gradient(circle at 30% 30%, rgba(212, 168, 67, 0.10), transparent 60%),
    #0b0b1a;
  border: 1px solid rgba(212, 168, 67, 0.30);
  border-radius: 8px;
  margin-bottom: calc(8px / var(--phi));
  position: relative;
}
.video-lite-glyph {
  font-size: 44px;
  color: var(--gold, #d4a843);
  font-family: 'Cormorant Garamond', serif;
  opacity: 0.9;
  text-shadow: 0 0 18px rgba(212, 168, 67, 0.45);
}
.video-lite-badge {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8e2d4;
  background: rgba(212, 168, 67, 0.85);
  padding: 3px 10px;
  border-radius: 999px;
}
.video-lite-hint {
  font-size: 10px;
  color: rgba(232, 226, 212, 0.55);
  font-family: 'Space Mono', monospace;
  text-align: center;
  padding: 0 6px;
}
.video-lite-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--gold, #d4a843);
  line-height: 1.35;
}
.video-lite-blurb {
  font-size: 13px;
  color: rgba(232, 226, 212, 0.72);
  margin-top: 4px;
  line-height: 1.45;
}

/* ── video-lite: the big window (modal) ── */
.video-lite-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 4, 12, 0.88);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-lite-modal.open { display: flex; }
.video-lite-modal-card {
  width: min(1024px, 94vw);
  background: #0b0b1a;
  border: 1px solid rgba(212, 168, 67, 0.45);
  border-radius: 13px;
  box-shadow: 0 0 60px rgba(212, 168, 67, 0.18);
  overflow: hidden;
}
.video-lite-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(212, 168, 67, 0.25);
}
.video-lite-modal-title {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold, #d4a843);
  font-size: 19px;
  margin: 0;
}
.video-lite-close {
  background: transparent;
  border: 1px solid rgba(212, 168, 67, 0.4);
  color: #e8e2d4;
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.video-lite-close:hover { border-color: var(--gold, #d4a843); color: var(--gold, #d4a843); }
.video-lite-stage { aspect-ratio: 16 / 9; background: #050510; }
.video-lite-player { width: 100%; height: 100%; display: block; background: #050510; }

@media (max-width: 640px) {
  .video-lite-modal-card { width: 100%; }
  .video-lite-grid { grid-template-columns: 1fr; }
}
