/* AURIA LASH — Classes page.
   Two streams, same anatomy: a featured frame with its meta, then a rail
   of cards. Everything below is drawn from the house tokens, so all four
   themes are inherited rather than re-specified. */

/* ---------- stream card ---------- */

.stream-card {
  margin-bottom: calc(var(--unit) * 3);
  /* .page is a grid, so this card is a grid item and defaults to
     min-width:auto. Without this the rail's full max-content width
     propagates up and pushes the whole page wider than the phone. */
  min-width: 0;
}

.stream-card .card-head { flex-wrap: wrap; }

.stream-from {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* the New class button sits after the meta, never above it */
.head-cta { margin-left: calc(var(--unit) * 1.5); }

.stream-sub {
  margin: calc(var(--unit) * 1.5) 0 calc(var(--unit) * 3);
  max-width: 62ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- the featured frame + its meta ---------- */

.stream-lead {
  display: grid;
  gap: calc(var(--unit) * 3);
  align-items: start;
  margin-bottom: calc(var(--unit) * 3);
}

@media (min-width: 720px) {
  .stream-lead { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

/* placeholder video zone: white card, bone edge, a whisper of rose
   crossing it, exactly the frame language used on the home page */
.vframe {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--white);
  border: 1px solid var(--bone);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vframe::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top right,
      transparent calc(50% - 0.5px), var(--rose) 50%,
      transparent calc(50% + 0.5px)),
    linear-gradient(to bottom right,
      transparent calc(50% - 0.5px), var(--rose) 50%,
      transparent calc(50% + 0.5px));
  opacity: 0.22;
}

.vframe::after {
  content: attr(data-label);
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--unit) * 1.5);
  z-index: 3;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- a frame carrying a real photograph ---------- */
/* The placeholder crossing retires the moment a photo lands; the play
   mark and the caption stay, riding a scrim so they survive a bright
   image. Photos are licensed originals supplied by the operator,
   derived to web sizes in images/_classes/web/; sources untouched. */

.vframe.has-img::before { display: none; }

.vframe .shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* fill the frame; never letterbox a thumbnail */
  display: block;
}

.vframe .scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(to top, rgba(20, 14, 10, 0.62), transparent);
  pointer-events: none;
}

.vframe.has-img::after {
  color: #FFFFFF;        /* literal: the caption rides the photo, not the card */
  opacity: 0.92;
}

/* the play mark: a rose disc with an ink triangle, optically centered */
.play {
  position: relative;
  z-index: 2;            /* always above the photograph */
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: var(--shadow-card);
}

.play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;                       /* optical, not mathematical */
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--on-accent);
}

.lead-meta { display: grid; gap: calc(var(--unit) * 1.25); }

.lead-kicker {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-vivid);
}

.lead-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink);
}

.lead-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* progress track; the fill width is set inline by the page script */
.lead-bar {
  height: 4px;
  background: var(--pearl);
  border-radius: 2px;
  overflow: hidden;
}

.lead-bar span {
  display: block;
  height: 100%;
  background: var(--rose);
}

.lead-cta { justify-self: start; margin-top: calc(var(--unit)); }

/* ---------- the rail ---------- */

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: calc(var(--unit) * 2);
  overflow-x: auto;
  padding-bottom: calc(var(--unit) * 1.5);
  scrollbar-width: thin;
}

.lesson {
  display: grid;
  gap: calc(var(--unit));
  align-content: start;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.lesson .vframe { aspect-ratio: 16 / 10; }

.lesson .play { width: 34px; height: 34px; }
.lesson .play::after { border-width: 6px 0 6px 10px; }
.lesson .vframe::after { font-size: 8.5px; bottom: 6px; }

.lesson:hover .vframe,
.lesson:focus-visible .vframe { border-color: var(--rose); }

.lesson:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }

.lesson.sel .vframe {
  border-color: var(--rose-vivid);
  box-shadow: 0 0 0 2px var(--rose-vivid);
}

.l-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.l-meta {
  display: flex;
  align-items: center;
  gap: calc(var(--unit));
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* visibility chip; the studio stream only */
.chip {
  padding: 2px 7px;
  border: 1px solid var(--bone);
  border-radius: var(--radius);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.chip.on { border-color: var(--rose); color: var(--rose-vivid); }

.l-bar {
  height: 3px;
  background: var(--pearl);
  border-radius: 2px;
  overflow: hidden;
}

.l-bar span { display: block; height: 100%; background: var(--rose); }
