@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;600;700&family=Overpass:wght@300;400;600;700&display=swap');

/* ==========================================================================
   Andrew Reise — AI Show & Tell Video Hub
   ========================================================================== */

.ar-vh {
  --ar-dark-blue: #292B33;
  --ar-light-blue: #4A839D;
  --ar-sea-green: #027E7C;
  --ar-riptide: #86ECD8;
  --ar-carnation: #F9665B;
  --ar-dark-gray: #65625A;
  --ar-blue-gray: #DCE1F4;
  --ar-light-gray: #F8F9FB;
  --ar-line: #E4E7EE;

  /* per-category base + lightened-for-dark variants */
  --grow_sales: #027E7C;        --grow_sales-dark: #35B7AE;
  --client_delivery: #4A839D;   --client_delivery-dark: #7FB6CE;
  --run_internal: #F9665B;      --run_internal-dark: #FF8379;

  font-family: 'Overpass', Arial, sans-serif;
  color: var(--ar-dark-blue);
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 0 4px;
  box-sizing: border-box;
}
.ar-vh *, .ar-vh *::before, .ar-vh *::after { box-sizing: border-box; }

.ar-vh-texture {
  background-color: var(--ar-dark-blue);
  background-repeat: repeat;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 4px,
    rgba(255,255,255,0.05) 4px,
    rgba(255,255,255,0.05) 5px
  );
}
.ar-vh-texture[style*="background-image:url"] { background-blend-mode: normal; }

/* ---------- Browse / filter bar ---------- */
.ar-vh-browse {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--ar-line);
}
.ar-vh-browse__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ar-dark-gray);
}
.ar-vh-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-vh-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Overpass', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--ar-dark-blue);
  background: #fff;
  border: 1px solid var(--ar-line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ar-vh-pill:hover { border-color: #C9CFDA; }
.ar-vh-pill .ar-vh-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
}
.ar-vh-pill.is-grow_sales .ar-vh-dot { background: var(--grow_sales); }
.ar-vh-pill.is-client_delivery .ar-vh-dot { background: var(--client_delivery); }
.ar-vh-pill.is-run_internal .ar-vh-dot { background: var(--run_internal); }
.ar-vh-pill__count {
  font-size: 11px;
  font-weight: 700;
  color: var(--ar-dark-gray);
  background: var(--ar-light-gray);
  border-radius: 999px;
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
}
.ar-vh-pill.is-active {
  background: var(--ar-dark-blue);
  border-color: var(--ar-dark-blue);
  color: #fff;
}
.ar-vh-pill.is-active .ar-vh-pill__count {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.ar-vh-pill.is-active .ar-vh-dot { box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }

/* ---------- Featured intro ---------- */
.ar-vh-hero {
  display: grid;
  grid-template-columns: 38% 1fr;
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 34px;
  min-height: 210px;
}
.ar-vh-hero__left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.ar-vh-hero__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--ar-riptide);
  color: var(--ar-dark-blue);
  box-shadow: 0 8px 26px rgba(0,0,0,0.35);
  transition: transform .2s ease;
}
.ar-vh-hero__play svg { margin-left: 3px; }
.ar-vh-hero.is-playable { cursor: pointer; }
.ar-vh-hero.is-playable:hover .ar-vh-hero__play { transform: scale(1.06); }
.ar-vh-hero__right {
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.ar-vh-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ar-riptide);
}
.ar-vh-hero__title {
  font-family: 'Lexend', Arial, sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}
.ar-vh-hero__desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  margin: 0;
  max-width: 46ch;
}
.ar-vh-hero__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-family: 'Overpass', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ar-dark-blue);
  background: var(--ar-riptide);
  border: none;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
}
.ar-vh-hero__btn:hover { filter: brightness(0.95); transform: translateY(-1px); }

/* ---------- Series header ---------- */
.ar-vh-series {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.ar-vh-series__title {
  font-family: 'Lexend', Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ar-dark-blue);
  margin: 0;
}
.ar-vh-series__count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ar-sea-green);
  white-space: nowrap;
}

/* ---------- Card grid ---------- */
.ar-vh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.ar-vh-card {
  background: #fff;
  border: 1px solid var(--ar-line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.ar-vh-card[role="button"] { cursor: pointer; }
.ar-vh-card[role="button"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(41,43,51,0.14);
}
.ar-vh-card[role="button"]:focus-visible {
  outline: 3px solid var(--ar-light-blue);
  outline-offset: 2px;
}

.ar-vh-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 150px;
  background-color: var(--ar-dark-blue);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
@supports not (aspect-ratio: 16 / 9) {
  .ar-vh-card__media { height: 172px; }
}

.ar-vh-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(41,43,51,0.35);
}
.is-grow_sales .ar-vh-tag { color: var(--grow_sales-dark); }
.is-client_delivery .ar-vh-tag { color: var(--client_delivery-dark); }
.is-run_internal .ar-vh-tag { color: var(--run_internal-dark); }

.ar-vh-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ar-riptide);
  color: var(--ar-dark-blue);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: transform .2s ease;
}
.ar-vh-play svg { margin-left: 2px; }
.ar-vh-card[role="button"]:hover .ar-vh-play { transform: scale(1.08); }

.ar-vh-duration {
  position: absolute;
  bottom: 12px; right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.62);
  border-radius: 5px;
  padding: 3px 7px;
}
.ar-vh-soon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ar-riptide);
  border: 1px solid var(--ar-riptide);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(41,43,51,0.25);
}

.ar-vh-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.ar-vh-card__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.is-grow_sales .ar-vh-card__eyebrow,
.is-grow_sales .ar-vh-card__foot { color: var(--grow_sales); }
.is-client_delivery .ar-vh-card__eyebrow,
.is-client_delivery .ar-vh-card__foot { color: var(--client_delivery); }
.is-run_internal .ar-vh-card__eyebrow,
.is-run_internal .ar-vh-card__foot { color: var(--run_internal); }

.ar-vh-card__title {
  font-family: 'Lexend', Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.28;
  color: var(--ar-dark-blue);
  margin: 0;
}
.ar-vh-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ar-dark-gray);
  margin: 0;
}
.ar-vh-card__foot {
  margin-top: auto;
  padding-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ar-vh-empty {
  text-align: center;
  color: var(--ar-dark-gray);
  font-size: 14px;
  padding: 40px 0;
}

/* ---------- Lightbox ---------- */
.ar-vh-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ar-vh-modal[hidden] { display: none; }
.ar-vh-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,21,26,0.82);
  backdrop-filter: blur(2px);
}
.ar-vh-modal__dialog {
  position: relative;
  width: min(960px, 100%);
  z-index: 1;
}
.ar-vh-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.ar-vh-modal__frame iframe,
.ar-vh-modal__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ar-vh-modal__close {
  position: absolute;
  top: -14px; right: -14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--ar-dark-blue);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  z-index: 2;
}
.ar-vh-modal__close:hover { background: var(--ar-riptide); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .ar-vh-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .ar-vh-hero__left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 26px;
  }
  .ar-vh-hero__right { padding: 24px 24px 28px; }
  .ar-vh-modal__close { top: -8px; right: 4px; }
}
@media (max-width: 480px) {
  .ar-vh-grid { grid-template-columns: 1fr; }
}