/* ============================================
   Recent Videos page (dark theme)
   Loaded after styles.css, only on videos.php. Everything is scoped to body.page-dark so no other page changes.
   ============================================ */

body.page-dark {
  --bg: #0b0b0d;
  --bg-alt: #121214;
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --text-soft: #8e8e93;
  --border: #2a2a2f;
  --card: #17171a;
  color-scheme: dark;
}
html:has(body.page-dark) { background: #0b0b0d; }

/* Header */
.page-dark .site-header {
  background: rgba(11, 11, 13, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.page-dark .brand img {            /* the logo has a white background, so show it as a small rounded tile */
  background: #fff;
  border-radius: 10px;
}
.page-dark .main-nav a.active::after { background: var(--accent-light); }
.page-dark .btn-primary { background: var(--accent-light); color: #1d1d1f; }
.page-dark .btn-primary:hover { background: #f1cc78; }
.page-dark .btn-accent { background: var(--accent-light); color: #1d1d1f; }
.page-dark .btn-accent:hover { background: #f1cc78; }
.page-dark .link-arrow { color: var(--accent-light); }
.page-dark .link-arrow:hover { color: #f1cc78; }
.page-dark .eyebrow { color: var(--accent-light); }

/* Footer */
.page-dark .site-footer { border-top-color: var(--border); }
.page-dark .footer-bottom { border-top-color: var(--border); }
.page-dark .equal-housing img { filter: invert(1); }

@media (max-width: 900px) {
  .page-dark .main-nav { background: #121214; border-bottom-color: var(--border); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5); }
  .page-dark .main-nav a.active { color: var(--accent-light); }
}

/* Top of page */
.page-dark .page-hero { padding: 72px 0 40px; }
.page-dark .page-hero h1 { max-width: 780px; margin: 0 auto; }
.vid-hero-actions { margin-top: 28px; }

.vid-section { padding: 16px 0 88px; }

/* The video itself: a thumbnail that becomes the player */
.vid-player {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  cursor: pointer;
}
.vid-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;               /* YouTube's thumbnail has black bars top and bottom; this crops them off */
  transition: transform 0.35s ease, opacity 0.2s ease;
}
.vid-player:hover img { transform: scale(1.03); opacity: 0.92; }
.vid-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vid-player.is-playing { cursor: default; }
.vid-player.is-playing:hover img { transform: none; }

.vid-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-light);
  color: #1d1d1f;
  padding-left: 3px;               /* a play triangle looks centered when nudged right a touch */
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}
.vid-player:hover .vid-play { transform: scale(1.08); background: #f1cc78; }
.vid-player:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }

/* Newest video, large */
.vid-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: var(--card);
}
.vid-featured .vid-player { border-radius: 18px; }
.vid-featured .vid-play { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
.vid-featured-meta { padding-right: 12px; }
.vid-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(232, 189, 90, 0.14);
  color: var(--accent-light);
}
.vid-featured-meta h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}
.vid-date { margin-top: 10px; font-size: 0.9rem; color: var(--text-soft); }
.vid-desc { margin: 16px 0 22px; font-size: 1rem; color: var(--text-muted); }

/* Earlier videos */
.vid-more {
  margin: 72px 0 28px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.vid-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}
.vid-card h3 {
  margin-top: 14px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vid-card .vid-date { margin-top: 6px; }
.vid-all { margin-top: 56px; text-align: center; }

.vid-empty {
  max-width: 520px;
  margin: 24px auto;
  padding: 48px 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: var(--card);
}
.vid-empty h2 { font-size: 1.6rem; color: var(--text); }
.vid-empty p { margin: 12px 0 24px; }

/* Closing note */
.vid-cta {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.vid-cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--text); }
.vid-cta p { max-width: 460px; margin: 14px auto 28px; }

@media (max-width: 900px) {
  .vid-featured { grid-template-columns: 1fr; gap: 24px; padding: 16px; }
  .vid-featured-meta { padding: 0 8px 8px; }
  .vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .page-dark .page-hero { padding: 48px 0 28px; }
  .vid-section { padding-bottom: 64px; }
  .vid-grid { grid-template-columns: 1fr; gap: 28px; }
  .vid-more { margin-top: 56px; }
  .vid-cta { padding: 64px 0; }
}
