/* film-player.css — shared SatQuery film player
   Instrument-grade: thin rules, hairlines, ochre accent. No rounded-card chrome. */

.film {
  position: relative;
  margin: 0;
  background: var(--surface-2, #EEEAE1);
  overflow: hidden;
  border: 1px solid var(--rule, rgba(23, 25, 24, 0.11));
}
.film video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

/* Controls bar — hairline top rule, no fill card */
.film__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(23, 25, 24, 0.62), rgba(23, 25, 24, 0));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.film:hover .film__controls,
.film:focus-within .film__controls,
.film.is-playing .film__controls {
  opacity: 1;
  transform: translateY(0);
}

.film__btn {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 249, 245, 0.32);
  background: rgba(251, 249, 245, 0.08);
  color: #FBF9F5;
  cursor: pointer;
  border-radius: 0; /* square, not a pill */
  font-size: 13px;
  line-height: 1;
}
.film__btn:hover { background: rgba(251, 249, 245, 0.18); }
.film__ic { pointer-events: none; }

.film__scrub {
  position: relative;
  flex: 1 1 auto;
  height: 16px;
  display: flex;
  align-items: center;
}
.film__buffer {
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  width: 0%;
  transform: translateY(-50%);
  background: rgba(251, 249, 245, 0.28);
  pointer-events: none;
}
.film__range {
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: rgba(251, 249, 245, 0.22);
  outline: none;
  cursor: pointer;
}
.film__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  background: var(--ochre, #A5662E);
  border: 1px solid #FBF9F5;
  cursor: pointer;
  border-radius: 0;
}
.film__range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  background: var(--ochre, #A5662E);
  border: 1px solid #FBF9F5;
  cursor: pointer;
  border-radius: 0;
}

/* Chapter markers along the scrubber */
.film__chapters {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.film__chap {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 11px;
  padding: 0;
  border: 0;
  background: rgba(251, 249, 245, 0.55);
  cursor: pointer;
  pointer-events: auto;
}
.film__chap:hover { background: var(--ochre, #A5662E); height: 14px; }

.film__time {
  flex: 0 0 auto;
  font-family: var(--f-mono, "IBM Plex Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #FBF9F5;
  min-width: 74px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .film__controls { transition: none; }
}

/* Small-viewport: keep controls visible (no hover dependency) */
@media (max-width: 720px) {
  .film__controls { opacity: 1; transform: none; }
  .film__time { min-width: 60px; font-size: 10px; }
}
