/* Streaming archive page (`/stream`). Grid of thumbnail cards plus the
   per-recording detail layout. Reuses `--brand`, `--card-bg`, `--border` etc
   from `landing/landing.css`, which the templates always load first. */

.stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

a.stream-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

a.stream-card:hover,
a.stream-card:focus-visible {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -18px rgba(78, 73, 209, 0.55);
}

.stream-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.stream-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stream-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 14px;
}

.stream-card__date {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--fg);
  letter-spacing: 0.01em;
}

.stream-card__duration {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Per-recording detail page (`/stream/<playback_id>`). Full-width player on top,
   small metadata block below. */

.stream-detail__player {
  width: 100%;
  margin: 8px 0 24px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px -28px rgba(78, 73, 209, 0.55);
}

.stream-detail__player mux-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  --media-object-fit: contain;
}

.stream-detail__meta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.3rem;
  letter-spacing: 0.01em;
}

.stream-detail__duration {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Apex landing "latest stream" block — the most recent recording, embedded
   under the "Streams" header just below the live hero (when the stream is
   live). Mirrors the `.stream-detail__player` framing above. */
.stream-latest {
  margin: 8px 0 4px;
}

.stream-latest__player {
  width: 100%;
  margin: 0 0 12px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px -28px rgba(78, 73, 209, 0.55);
}

.stream-latest__player mux-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  --media-object-fit: contain;
}

.stream-latest__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
