/* ============================================================================
   Homeboss Theme — VIDEOS PAGE (page-videos.php)
   ----------------------------------------------------------------------------
   The "Living In" playlist grid. Painted from tokens only — no agent brand colour.
   Each card is a YouTube thumbnail that links out to the watch page; a gold play
   badge sits over the still. Responsive auto-fit grid, one column on mobile.
   ============================================================================ */

.hb-videos__grid-wrap {
  max-width: 1080px;
  margin: 2.5rem auto 0;
  padding: 0 1.25rem;
}

.hb-video-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.hb-video-card {
  margin: 0;
}

.hb-video-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* 16:9 thumbnail frame — the YouTube still is cropped to fill it. */
.hb-video-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--surface-alt);
}

.hb-video-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gold play badge centered over the still (the only accent on the card). */
.hb-video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.25rem;
  height: 3.25rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: var(--accent-gold);
  transition: background-color 0.15s ease;
}

.hb-video-card__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.9rem;
  border-color: transparent transparent transparent var(--accent-gold-ink);
}

.hb-video-card__link:hover .hb-video-card__play,
.hb-video-card__link:focus-visible .hb-video-card__play {
  background-color: var(--accent-gold-hover);
}

.hb-video-card__title {
  display: block;
  margin: 0.85rem 0 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-h3);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  color: var(--text-heading);
}

.hb-video-card__date {
  display: block;
  margin: 0.35rem 0 0;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text-body);
}

/* A text-less video links out to YouTube — a small gold-ink call to action under the title. */
.hb-video-card__cta {
  display: inline-block;
  margin: 0.5rem 0 0;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-h3);
  color: var(--accent-gold-ink);
}

@media (max-width: 640px) {
  .hb-video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================================================
   PER-VIDEO PAGE — the embed frame + collapsed transcript.
   ----------------------------------------------------------------------------
   Rendered inside the page body (page.php -> .hb-prose) by the plugin's
   [homeboss_video_embed] shortcode + the baked <details> transcript. Loaded
   site-wide with the grid; the .hb-video-embed / .hb-transcript scopes are
   inert on every other page.
   ============================================================================ */

/* Responsive 16:9 embed frame — the YouTube iframe fills it. */
.hb-video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 1.75rem 0;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--surface-alt);
}

.hb-video-embed__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* The full transcript, COLLAPSED by default — Google reads it; the visitor opens it by choice. */
.hb-transcript {
  margin: 1.75rem 0;
  border-top: 1px solid var(--surface-alt);
  padding-top: 1rem;
}

.hb-transcript > summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: var(--fw-h3);
  font-size: var(--fs-h3);
  color: var(--accent-gold-ink);
}

.hb-transcript[open] > summary {
  margin-bottom: 1rem;
}
