/* ============================================================
   胶片档案 — Film rolls, contact-sheet strips
   ============================================================ */

.film-hero h1 { letter-spacing: 0.01em; }

.film-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(18px, 3vw, 46px);
  margin-top: 30px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.film-meta b { color: var(--text); font-weight: 400; }

.film-note {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: clamp(8px, 1.6vw, 18px);
}

.rolls { }

.roll {
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 52px);
  align-items: start;
  padding: clamp(28px, 3.6vw, 48px) 0;
  border-top: 1px solid var(--line);
}
.roll:first-child { border-top: 0; }

.roll-no {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.roll h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.2;
  margin: 12px 0 14px;
}
.roll h2 a { transition: color 0.3s; }
.roll h2 a:hover { color: var(--accent); }

.roll-specs {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 2.05;
}
.roll-specs b { color: var(--text-dim); font-weight: 400; }
.roll-specs .dim { color: var(--muted); }

.roll-stock {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px 3px;
  border: 1px solid rgba(200, 160, 90, 0.42);
  color: var(--accent);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.roll-stock.unknown {
  border-color: var(--line);
  color: var(--muted);
  letter-spacing: 0.16em;
}

.roll-frames {
  margin-top: 13px;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.strip-shell {
  position: relative;
  min-width: 0;
}
.strip-shell::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 52px;
  background: linear-gradient(90deg, rgba(13, 13, 15, 0), rgba(13, 13, 15, 0.92));
  pointer-events: none;
  transition: opacity 0.4s;
}
.strip-shell.at-end::after { opacity: 0; }

.strip {
  position: relative;
  display: flex;
  gap: 7px;
  align-items: stretch;
  padding: 27px 13px;
  background:
    radial-gradient(130% 160% at 50% -10%, #19191c 0%, #111113 55%, #0d0d0f 100%);
  border: 1px solid var(--line);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.strip::before,
.strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 9px,
    rgba(236, 232, 224, 0.17) 9px 16px,
    transparent 16px 25px
  );
  background-position: 6px center;
  background-repeat: repeat-x;
}
.strip::before { top: 5px; }
.strip::after { bottom: 5px; }

.strip-edge {
  position: absolute;
  top: 15px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(200, 160, 90, 0.55);
  pointer-events: none;
  white-space: nowrap;
}
.strip-edge .tail-mark { color: rgba(236, 232, 224, 0.28); }

.frame {
  position: relative;
  flex: 0 0 auto;
  width: clamp(122px, 13.5vw, 196px);
  height: clamp(112px, 12.5vw, 178px);
  overflow: hidden;
  background: #08080a;
  scroll-snap-align: start;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
  transition: transform 0.9s var(--ease), filter 0.5s;
}
.frame:hover img { transform: scale(1.06); filter: saturate(1.04) contrast(1.02); }
.frame .fr-no {
  position: absolute;
  left: 6px;
  bottom: 4px;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(236, 232, 224, 0.55);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.strip-more {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 74px;
  border: 1px dashed rgba(200, 160, 90, 0.32);
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s, border-color 0.3s;
}
.strip-more:hover { background: var(--accent-soft); border-color: rgba(200, 160, 90, 0.6); }
.strip-more small { font-size: 8.5px; letter-spacing: 0.22em; color: var(--muted); }

.strip-fill {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding-left: 18px;
  font-size: 8.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(236, 232, 224, 0.22);
  white-space: nowrap;
  pointer-events: none;
}

.film-empty {
  padding: 60px 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
}

@media (max-width: 900px) {
  .roll { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .roll > * { min-width: 0; }
  .roll-frames { margin-top: 9px; }
  .strip { padding: 24px 11px; }
  .frame { width: 132px; height: 118px; }
  .strip-edge { top: 12px; }
}
