/* =============================================================
   watch-library.css — /watch hub, /watch/<slug>, and the Watch
   sections embedded on book and path pages.
   Inherits topbar, page-hero, and footer from site.css.
   Players are click-to-load: no iframe until .wl-lite is used.
   ============================================================= */

.wl-page .page-hero,
.wl-hub .page-hero {
  padding-bottom: 40px;
}
.wl-page .page-hero h1.brutal,
.wl-hub .page-hero h1.brutal {
  font-size: clamp(40px, 5.4vw, 68px);
  max-width: 18em;
}
.wl-page .page-hero {
  border-bottom: 0;
  padding-bottom: 12px;
}

.wl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 28px;
}
.wl-meta li {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 8px 12px;
  background: var(--paper-3);
}
.wl-meta li.wl-playlist {
  color: var(--accent);
  border-color: var(--accent);
}

.wl-stage {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px var(--gutter) 0;
}
.wl-stage .wl-facade {
  max-width: 920px;
}
.wl-stage .wl-facade.is-short {
  max-width: 380px;
}

.wl-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.72fr);
  gap: 64px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px var(--gutter) 100px;
  align-items: start;
}

.wl-copy h2,
.wl-side h2,
.wl-embed h2,
.wl-topic h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 36px 0 16px;
}
.wl-copy h2:first-child,
.wl-side h2:first-child,
.wl-embed h2 {
  margin-top: 0;
}
.wl-copy p,
.wl-hi p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
}
.wl-copy > p + p { margin-top: 16px; }

.wl-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wl-points li {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
}
.wl-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.wl-quote {
  margin: 32px 0;
  padding: 8px 0 8px 22px;
  border-left: 2px solid var(--accent);
}
.wl-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
}

.wl-hi {
  margin-top: 28px;
  padding: 28px 28px 32px;
  background: var(--paper-2);
}
.wl-hi h2 { margin-top: 0; }
.wl-hi p,
.wl-hi [lang="hi"] {
  font-family: "Noto Sans Devanagari", "Noto Sans", var(--sans);
  font-size: 18px;
  line-height: 1.65;
}

.wl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.wl-tags li {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  background: var(--paper-3);
  padding: 8px 12px;
}
.wl-tags li:has(> a) { padding: 0; }
.wl-tags a {
  display: block;
  padding: 8px 12px;
  color: inherit;
  text-decoration: none;
}
.wl-tags a:hover,
.wl-tags a:focus-visible { color: var(--ink); background: var(--paper-2); }

.wl-transcript { margin-top: 12px; }
.wl-transcript details {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.wl-transcript summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 14px 0;
}
.wl-transcript-text { padding: 4px 0 24px; }
.wl-transcript-text p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}
.wl-transcript-text p + p { margin-top: 14px; }
.wl-transcript-text[lang="hi"] p {
  font-family: "Noto Sans Devanagari", "Noto Sans", var(--sans);
  font-size: 17px;
  line-height: 1.75;
}
.wl-copy .wl-transcript-note {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3, var(--ink-2));
}

.wl-book-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.wl-book-card img {
  width: 84px;
  height: auto;
  box-shadow: 0 16px 32px -20px rgba(20, 17, 10, 0.55);
}
.wl-book-card strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  color: var(--ink);
}
.wl-book-card em {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-3);
}
.wl-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.wl-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.wl-cta .arrow {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
}

.wl-related {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wl-related .wl-card h3 { font-size: 18px; }
/* Sidebar blocks on video pages: each <section>'s h2 is its first child,
   so the h2:first-child reset removed all space between blocks and
   "Continue with" sat flush under the "Buy on Amazon" button. */
.wl-side > section + section { margin-top: 44px; }
.wl-side > .wl-book .wl-cta { margin-top: 4px; }
.wl-back {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.wl-back a { border-bottom: 1px solid var(--rule); }
.wl-side > section + .wl-back { margin-top: 36px; }

/* ----- players and cards (hub, video page, embeds) ----- */
.wl-frame {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.wl-frame.is-video { aspect-ratio: 16 / 9; width: 100%; }
.wl-frame.is-short { aspect-ratio: 9 / 16; width: min(100%, 380px); }
.wl-frame .wl-lite,
.wl-frame iframe,
.wl-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.wl-frame img {
  object-fit: cover;
  transition: filter .25s, transform .35s;
}
.wl-frame.is-short img { object-fit: contain; }
.wl-lite {
  display: block;
  cursor: pointer;
  background: var(--ink);
}
.wl-lite:hover img { filter: brightness(0.86); transform: scale(1.02); }
.wl-lite:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.wl-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 54px;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.78);
  border-radius: 14px;
  transition: background .15s, transform .15s;
}
.wl-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-left: 18px solid var(--paper);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.wl-lite:hover .wl-play {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.05);
}

.wl-facade figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
}
.wl-facade figcaption a {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
.wl-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(26, 24, 20, 0.88);
  padding: 6px 8px;
}
.wl-facade figcaption .wl-badge {
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 6px 8px;
}
.wl-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink-2);
}
.wl-flag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: -8px 0 20px;
}

.wl-embed {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px var(--gutter) 24px;
  border-top: 1px solid var(--rule-soft);
}
.wl-facades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}
.wl-more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.wl-all {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.wl-all a { border-bottom: 1px solid var(--rule); }

.wl-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  color: inherit;
}
.wl-card:hover { border-color: var(--ink); }
.wl-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}
.wl-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wl-card-media .wl-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
}
.wl-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
  min-width: 0;
}
.wl-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wl-card p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wl-card .wl-caption {
  -webkit-line-clamp: 3;
  font-size: 15px;
}
/* Card with its own inline link (renderCard, card_link): not one big <a>. */
.wl-card-linked a.wl-card-media { display: block; }
.wl-card-linked h3 a { color: inherit; }
.wl-card p.wl-card-full { display: block; -webkit-line-clamp: unset; overflow: visible; }
.wl-card-inline { color: var(--ink); border-bottom: 1px solid var(--ink); }

/* ----- hub ----- */
.wl-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
}
.wl-jump a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 10px 12px;
}
.wl-jump a:hover { border-color: var(--ink); color: var(--ink); }

.wl-hub-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px var(--gutter) 80px;
}
.wl-topic {
  padding: 48px 0 12px;
  border-top: 1px solid var(--rule);
}
.wl-topic-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 18px;
  margin-bottom: 22px;
}
.wl-topic h2 { margin: 0; }
.wl-topic-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.wl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 980px) {
  .wl-columns { grid-template-columns: 1fr; gap: 40px; padding: 32px 28px 72px; }
  .wl-stage { padding: 8px 28px 0; }
  .wl-embed { padding: 56px 28px 8px; }
  .wl-hub-main, .wl-jump { padding-left: 28px; padding-right: 28px; }
  .wl-grid { grid-template-columns: 1fr 1fr; }
  .wl-copy h2, .wl-side h2, .wl-embed h2, .wl-topic h2 { font-size: 30px; }
  .wl-quote p { font-size: 22px; }
  .wl-copy p { font-size: 18px; }
  .wl-page .page-hero h1.brutal,
  .wl-hub .page-hero h1.brutal { font-size: 38px; }
}

@media (max-width: 640px) {
  .wl-grid { grid-template-columns: 1fr; }
  .wl-facades { grid-template-columns: 1fr; }
  .wl-frame.is-short { width: min(100%, 320px); }
  .wl-book-card { grid-template-columns: 72px 1fr; }
}

/* Short introduction under each topic heading on the /watch hub. */
.wl-topic-intro {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46em;
  margin: -6px 0 26px;
}
.wl-topic-intro a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.wl-topic-intro a:hover { color: var(--accent); }

/* ----- Continue with (related reading in the side column) ----- */
.rl-continue ul { list-style: none; margin: 0; padding: 0; }
.rl-continue li { padding: 12px 0; border-top: 1px solid var(--rule-soft); }
.rl-continue li:last-child { border-bottom: 1px solid var(--rule-soft); }
.rl-continue a { font-family: var(--serif); font-size: 18px; line-height: 1.35; color: var(--ink-2); }
.rl-continue a:hover { color: var(--accent); }
