/* ==========================================================================
   Single video-essay (portfolio CPT). Same paper/ink palette as the rest
   of the site — the YouTube stage itself supplies all the cinematic dark.
   ========================================================================== */

/* ========= VIDEO HERO (title above the stage) ========= */
.vid-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
@media (min-width: 900px) {
  .vid-hero { grid-template-columns: 1fr 220px; gap: 32px; align-items: end; }
}
.vid-hero .kicker {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.vid-hero .kicker .marker {
  display: inline-block; width: 24px; height: 2px;
  background: var(--accent);
}
.vid-hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.25rem, 4.5vw + 0.5rem, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
.vid-hero h1 em {
  font-style: normal; font-weight: 800;
  color: inherit;
}
.vid-hero .right-meta {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); line-height: 1.7;
}
@media (min-width: 900px) { .vid-hero .right-meta { text-align: right; } }

/* ========= YOUTUBE FACADE STAGE ========= */
.yt-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 48px;
  /* No shadow — flat frame, same 1px ink border as every other media
     element in the system. */
  border: 1px solid var(--ink);
}
.yt-facade .yt-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.yt-facade:hover .yt-thumb { transform: scale(1.02); }
.yt-facade .yt-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 60px rgba(255,198,95,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 2;
}
.yt-facade:hover .yt-play,
.yt-facade:focus-visible .yt-play {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 30px 80px rgba(255,198,95,0.55);
}
.yt-facade .yt-play svg { width: 36px; height: 36px; margin-left: 6px; }
.yt-facade .corner {
  position: absolute; width: 28px; height: 28px;
  border-color: var(--accent); border-style: solid; opacity: 0.6;
  z-index: 1;
}
.yt-facade .corner.tl { top: 16px; left: 16px;     border-width: 1px 0 0 1px; }
.yt-facade .corner.tr { top: 16px; right: 16px;    border-width: 1px 1px 0 0; }
.yt-facade .corner.bl { bottom: 16px; left: 16px;  border-width: 0 0 1px 1px; }
.yt-facade .corner.br { bottom: 16px; right: 16px; border-width: 0 1px 1px 0; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ========= CONTENT GRID ========= */
.vid-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px 0 32px;
  border-top: 1px solid var(--rule);
}
@media (min-width: 1000px) {
  .vid-content { grid-template-columns: 1fr 320px; gap: 56px; padding: 48px 0 32px; }
}
/* Legacy embeds carry fixed width="" attributes; without this the description
   column's min-content width blows past the viewport on small screens. */
.vid-content > * { min-width: 0; }

/* Description column */
.vid-desc h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  color: var(--ink);
}
.vid-desc .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.375rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 640px;
}
.vid-desc p, .vid-desc li {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 640px;
}
.vid-desc a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.vid-desc a:hover { color: var(--accent-ink); text-decoration-thickness: 3px; }

/* Content buttons inside the video description — same treatment as the
   article-prose version in single-longform.css. Selector must out-rank
   `.vid-desc a` above so the inline-link underline/hover don't bleed in. */
.vid-desc a.wp-block-button__link {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 12px 18px;
  margin: 4px 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;   /* core injects a pill radius on button links; keep the theme's square look */
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.vid-desc a.wp-block-button__link:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  text-decoration: none;
}
.vid-desc b, .vid-desc strong { color: var(--ink); font-weight: 600; }

/* Section heads inside description column */
.vid-section-h {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  margin: 40px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  max-width: 640px;
}

/* ========= TAKEAWAYS ========= */
.vid-takeaways {
  list-style: none; padding: 0; margin: 0 0 24px;
  max-width: 640px;
}
.vid-takeaways li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.vid-takeaways li:first-child { border-top: 1px solid var(--rule); }
.vid-takeaways .n {
  font-family: var(--sans);
  font-size: 28px; font-style: normal; font-weight: 800;
  color: var(--ink); line-height: 1;
  letter-spacing: -0.02em;
}
.vid-takeaways .c {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px; line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.vid-takeaways .c em { color: inherit; font-style: italic; font-weight: 700; }
.vid-takeaways .c span {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px; line-height: 1.5;
  color: var(--ink-mute);
  margin-top: 6px;
  letter-spacing: 0;
}

/* ========= SOURCES ========= */
.vid-sources {
  list-style: none; padding: 0; margin: 0;
  max-width: 640px;
}
.vid-sources li {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 18px;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.vid-sources li:first-child { border-top: 1px solid var(--rule); }
.vid-sources .sn {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-mute);
}
.vid-sources .sc b { color: var(--ink); font-weight: 600; }
.vid-sources .sc em { font-style: italic; }
.vid-sources .sc .jr {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-mute);
  margin-top: 4px;
}
.vid-sources .go {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.vid-sources .go:hover { opacity: 0.7; }

/* ========= RIGHT RAIL ========= */
.vid-rail > section {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--rule);
}
.vid-rail > section:first-child { padding-top: 0; }
.vid-rail > section:last-child { border-bottom: none; }
.vid-rail h4 {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
}

/* Host card */
.vid-rail .host {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
}
.vid-rail .host .avatar {
  width: 72px; height: 72px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 32px;
  color: var(--ink);
  font-style: normal;
}
.vid-rail .host .name {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 4px 0 4px;
  color: var(--ink);
}
.vid-rail .host .role {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.vid-rail .host .bio {
  font-family: var(--sans);
  font-size: 13px; line-height: 1.5; color: var(--ink-soft);
  grid-column: 1 / -1;
  margin: 0;
}

/* Credits list */
.vid-credits {
  font-family: var(--sans);
  font-size: 13px; line-height: 1.7;
  color: var(--ink-soft);
}
.vid-credits .role {
  color: var(--ink-mute);
  display: inline-block;
  min-width: 80px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-right: 8px;
}

/* Actions */
.vid-actions { display: flex; flex-direction: column; gap: 8px; }
.vid-actions a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.vid-actions a:hover { border-color: var(--ink); }
.vid-actions a .ar { color: var(--ink-mute); font-size: 14px; }

/* ========= RELATED ========= */
.vid-related {
  border-top: 1px solid var(--rule);
  padding: 48px 0 64px;
}
.vid-related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}
.vid-related-head h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
}
.vid-related-head h3 em { font-style: normal; font-weight: 800; color: inherit; }
.vid-related-head a.more {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.vid-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px) { .vid-related-grid { grid-template-columns: repeat(3, 1fr); } }
.vid-related-grid .rel-card {
  text-decoration: none; color: inherit; display: block;
}
.vid-related-grid .thumb {
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}
.vid-related-grid .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.vid-related-grid .thumb .dur {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.7);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.1em;
  padding: 4px 8px;
}
.vid-related-grid .cat {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.vid-related-grid h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px; line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}
.vid-related-grid p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
}

