/* Life Lessons + Bible Study: TV on top, a sideways shelf of every video below.
   Builds on site.css (tokens, header, .player--tv, .tv-set, .tv-play, .vtitle, .kicker, .xlink). */

.lx-page .site-footer__word { font-size: clamp(72px, 15vw, 260px); }

/* ---------- Head + TV ---------- */
.lx-hero { padding-top: clamp(40px, 4.5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.lx-head { display: grid; justify-items: center; text-align: center; margin-bottom: clamp(28px, 3.5vw, 48px); }
.lx-head .vtitle { font-size: clamp(44px, 6.4vw, 100px); margin-top: 12px; }
.lx-lede { max-width: 56ch; margin-top: 16px; color: var(--silver-dk); font-size: 16.5px; }

.lx-stage { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.lx-tv { max-width: none; width: 100%; margin-inline: 0; }
.player--vod { padding-bottom: clamp(8px, 1.2vw, 14px); }
.player--vod .player__stage { background: #000; }
.lx-mount, .lx-mount iframe, .lx-mount > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player--vod .player__poster { transition: opacity .4s var(--ease), visibility 0s .4s; }
.player--vod.is-started .player__poster { opacity: 0; visibility: hidden; }
.player--vod .player__poster--image img { opacity: .9; }
.player--vod .player__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(4, 18, 40, .7)); pointer-events: none; }
.player--vod .tv-play { z-index: 1; }

.lx-now { min-width: 0; }
.lx-now__title {
  margin-top: 14px; font-family: var(--serif); font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(30px, 3.2vw, 46px); line-height: 1.02; color: var(--cream); text-wrap: balance; overflow-wrap: anywhere;
}
.lx-now__meta { margin-top: 14px; font-size: 14px; color: var(--silver-dk); font-variant-numeric: tabular-nums; }
.lx-now__steps { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; }
.lx-now__steps .xlink[disabled] { opacity: .35; pointer-events: none; }
.lx-now__steps .xlink--back .xlink__arrow .ico { transform: rotate(135deg); }
.lx-now__yt { margin-top: 18px; }
@media (max-width: 900px) {
  .lx-stage { grid-template-columns: 1fr; }
  .lx-now { text-align: left; }
}

/* ---------- Shelf ---------- */
.lx-shelf { padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rule-dark); }
.lx-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; }
.lx-shelf__title { margin-top: 12px; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 56px); line-height: 1; color: var(--cream); font-variant-numeric: lining-nums; }
.lx-intro { margin-top: 12px; max-width: 60ch; color: var(--silver-dk); font-size: 15.5px; }

.lx-search { position: relative; flex: 0 1 300px; min-width: 200px; }
.lx-search .ico { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--silver-dk); pointer-events: none; }
.lx-search input {
  width: 100%; height: 46px; padding: 0 16px 0 42px; border-radius: 999px; font: inherit; font-size: 16px; color: #fff;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(231, 231, 238, .16); outline: none; transition: border-color .2s, background-color .2s;
}
.lx-search input::placeholder { color: var(--silver-dk); }
.lx-search input:focus-visible { border-color: var(--gold); background: rgba(255, 255, 255, .08); }

/* Series tabs (Bible Study) */
.lx-tabs { display: flex; flex-wrap: wrap; gap: 0 clamp(20px, 3vw, 44px); margin-top: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--rule-dark); }
.lx-tab {
  position: relative; display: inline-flex; align-items: baseline; gap: 10px; padding: 14px 0 16px;
  font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); color: var(--silver-dk); transition: color .25s;
}
.lx-tab small { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--silver-dk); font-variant-numeric: tabular-nums; }
.lx-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.lx-tab:hover { color: #fff; }
.lx-tab[aria-selected="true"] { color: var(--cream); }
.lx-tab[aria-selected="true"] small { color: var(--gold-lt); }
.lx-tab[aria-selected="true"]::after { transform: scaleX(1); }

/* Jump chips */
.lx-chips { display: flex; align-items: center; gap: 8px; margin-top: 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.lx-chips::-webkit-scrollbar { display: none; }
.lx-chips__label { flex: none; margin-right: 6px; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--silver-dk); }
.lx-chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(231, 231, 238, .16);
  font-size: 13px; font-weight: 600; color: var(--silver); font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s, border-color .2s;
}
.lx-chip:hover { border-color: var(--gold); color: #fff; }
.lx-chip[aria-current="true"] { background: var(--silver); border-color: var(--silver); color: var(--abyss); }
.lx-chip--gold { border-color: rgba(223, 167, 64, .55); color: var(--gold-lt); }

/* The row: full-bleed, first card lines up with the container */
.lx-rail { position: relative; margin-top: 26px; --edge: max(var(--gutter), calc((100% - var(--max)) / 2)); }
.lx-row {
  list-style: none; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 22vw, 300px); gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: thin; scrollbar-color: rgba(223, 167, 64, .45) transparent;
}
/* the extra class outranks the site-wide list reset (ul[role="list"] { padding: 0 }) */
.lx-rail .lx-row { padding: 8px var(--edge) 18px; }
.lx-row::-webkit-scrollbar { height: 6px; }
.lx-row::-webkit-scrollbar-thumb { background: rgba(223, 167, 64, .4); border-radius: 6px; }
.lx-row > li { scroll-snap-align: start; min-width: 0; }
.lx-row > li[hidden] { display: none; }

.lx-arrow {
  position: absolute; top: calc(8px + (clamp(240px, 22vw, 300px) * 9 / 32)); z-index: 2; transform: translateY(-50%);
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(4, 18, 40, .82); color: var(--cream); border: 1px solid rgba(246, 241, 231, .3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .7); transition: opacity .25s, background-color .25s, color .25s;
}
.lx-arrow .ico { width: 20px; height: 20px; }
.lx-arrow--prev { left: calc(var(--edge) - 26px); }
.lx-arrow--prev .ico { transform: rotate(180deg); }
.lx-arrow--next { right: calc(var(--edge) - 26px); }
.lx-arrow:hover { background: var(--gold-grad); color: var(--abyss); border-color: transparent; }
.lx-arrow[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none), (max-width: 700px) { .lx-arrow { display: none; } }

/* Card */
.lx-card { display: block; width: 100%; text-align: left; color: inherit; border-radius: 10px; }
.lx-card:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 6px; }
.lx-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--navy); box-shadow: 0 0 0 1px rgba(246, 241, 231, .08), 0 18px 34px -20px rgba(0, 0, 0, .8); }
.lx-card__media img { width: 100%; height: 100%; object-fit: cover; transition: filter .4s; }
.lx-card:hover .lx-card__media img { filter: brightness(1.1); }
.lx-card__dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(2, 11, 27, .82); font-size: 12px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.lx-card__play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .3s; background: rgba(4, 18, 40, .35); }
.lx-card__play span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--gold-grad); color: var(--abyss); box-shadow: 0 0 0 6px rgba(223, 167, 64, .2); }
.lx-card__play .ico { width: 18px; height: 18px; margin-left: 3px; }
.lx-card:hover .lx-card__play, .lx-card:focus-visible .lx-card__play { opacity: 1; }
.lx-card__kicker { display: block; margin-top: 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-lt); font-variant-numeric: tabular-nums; }
.lx-card__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; color: var(--cream);
  overflow-wrap: anywhere;
}
.lx-card:hover .lx-card__title { color: #fff; }

/* Now playing */
.lx-card__now { position: absolute; left: 8px; top: 8px; display: none; align-items: center; gap: 8px; padding: 4px 9px 4px 8px; border-radius: 999px; background: var(--gold-grad); color: var(--abyss); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lx-card[aria-current="true"] .lx-card__media { box-shadow: 0 0 0 2px var(--gold-lt), 0 18px 34px -20px rgba(0, 0, 0, .8); }
.lx-card[aria-current="true"] .lx-card__now { display: inline-flex; }
.lx-card__now [data-on] { display: none; }
.tv-on .lx-card__now [data-on] { display: inline; }
.tv-on .lx-card__now [data-off] { display: none; }
.lx-card[aria-current="true"] .lx-card__play { opacity: 0; }
.lx-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.lx-bars i { width: 2px; height: 40%; background: currentColor; border-radius: 1px; animation: lxBar 1s ease-in-out infinite alternate; animation-play-state: paused; }
.lx-bars i:nth-child(2) { animation-delay: -.35s; }
.lx-bars i:nth-child(3) { animation-delay: -.7s; }
.is-playing .lx-bars i { animation-play-state: running; }
@keyframes lxBar { to { height: 100%; } }

.lx-empty { padding: 28px 0 8px; color: var(--silver-dk); }
.lx-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 13px; color: var(--silver-dk); }
.lx-foot a { color: var(--silver); border-bottom: 1px solid rgba(223, 167, 64, .5); }
.lx-foot a:hover { color: var(--gold-lt); }

@media (max-width: 700px) {
  .lx-row { grid-auto-columns: 74%; }
  .lx-bar { align-items: stretch; }
  .lx-search { flex-basis: 100%; }
  .lx-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0 22px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .lx-tabs::-webkit-scrollbar { display: none; }
  .lx-tab { flex: none; font-size: 21px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-bars i { animation: none; }
  .lx-card__media img { transition: none; }
}
@media (pointer: coarse) {
  .lx-chip { height: 44px; padding: 0 16px; }
  .lx-foot a { display: inline-flex; align-items: center; min-height: 44px; }
}
.lx-site { margin-top: 22px; min-height: 46px; padding: 0 20px; font-size: 14px; }
.lx-site .ico { width: 16px; height: 16px; color: var(--gold-lt); }

/* Two site buttons side by side (English + Spanish studies), added 2026-10-06 */
.lx-sites { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.lx-sites .lx-site { margin-top: 0; }
