/* Video Guides — reuse Guides hub card/header patterns */

#video-guides-page.guides-page {
  padding: 0;
}

#video-guides-page .guides-index-section {
  margin-top: 0;
  padding-top: clamp(2.25rem, 5.5vw, 3.25rem);
  padding-bottom: clamp(2.25rem, 5.5vw, 3.25rem);
}

#video-guides-page .guides-index-shell {
  box-sizing: border-box;
}

#video-guides-page .guides-page-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-top: 0;
}

#video-guides-page .guides-page-header__eyebrow {
  margin-bottom: 0.35rem;
  color: var(--color-brand, #093de4);
}

#video-guides-page .guides-page-header .section-heading {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  color: rgb(6 18 62);
  line-height: 1.08;
}

@media (width >= 64rem) {
  #video-guides-page .guides-page-header .section-heading {
    font-size: clamp(3.25rem, 2.5rem + 1.35vw, 4.25rem);
    line-height: 1.06;
  }
}

#video-guides-page .guides-page-header__lead {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgb(0 0 0 / 0.52);
}

.guides-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .guides-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }
}

@media (min-width: 1024px) {
  .guides-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }
}

.guides-article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  color: inherit;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(6, 18, 63, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.guides-article-card__lead {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}

.guides-article-card__lead:hover,
.guides-article-card__lead:focus-visible {
  text-decoration: none;
  color: inherit;
}

.guides-article-card__footer {
  flex-shrink: 0;
  padding: 0.65rem 1.25rem 1.35rem;
  background: #ffffff;
}

.guides-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 18px 40px rgba(6, 18, 63, 0.16);
}

.guides-article-card__hero {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #093de3;
  display: grid;
  place-items: center;
}

.guides-article-card__hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.guides-article-card__hero-img--icon {
  width: auto;
  height: auto;
  max-width: 42%;
  max-height: 52%;
  object-fit: contain;
}

.guides-article-card__panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 0.35rem;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.guides-article-card__title {
  margin: 0 0 0.5rem;
  font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}

.guides-article-card__overview {
  margin: 0;
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  line-height: 1.5;
  color: rgba(10, 10, 10, 0.62);
}

#video-guides-page .guides-article-card__footer .home-guides-rail__cta,
.vg-detail .guides-article-card__footer .home-guides-rail__cta {
  margin-top: 0;
}

#video-guides-page .guides-article-card .home-guides-rail__cta::after,
.vg-detail .guides-article-card .home-guides-rail__cta::after {
  content: none;
}

.guides-index-filters {
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
}

.guides-index-filters__chips {
  gap: 0.5rem;
}

.guides-index-filters__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgb(0 0 0 / 0.12);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(6 18 62);
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.guides-index-filters__btn:hover {
  border-color: rgb(9 61 228 / 0.35);
  color: #093de4;
}

.guides-index-filters__btn:focus-visible {
  outline: 2px solid #093de4;
  outline-offset: 2px;
}

.guides-index-filters__btn--active {
  border-color: #093de4;
  background: #093de4;
  color: #fff;
  box-shadow: 0 1px 2px rgb(6 18 62 / 0.12);
}

.guides-index-filters__btn--active:hover {
  border-color: #0837cb;
  background: #0837cb;
  color: #fff;
}

.guides-filter-empty {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgb(0 0 0 / 0.55);
  background: rgb(9 61 228 / 0.06);
  border: 1px solid rgb(9 61 228 / 0.12);
}

.guides-filter-empty.is-visible {
  display: block;
}

.vg-category {
  margin-top: 2.25rem;
}

.vg-category:first-child {
  margin-top: 1.25rem;
}

.vg-category__heading {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgb(6 18 62);
}

.vg-category.is-filtered-out {
  display: none !important;
}

.vg-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgb(9 61 228 / 0.92);
  color: #fff;
  box-shadow: 0 8px 20px rgb(6 18 62 / 0.25);
  font-size: 0.85rem;
  padding-left: 0.15rem;
  z-index: 1;
}

.vg-card__duration {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  background: rgb(6 18 62 / 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  z-index: 1;
}

/* Detail player */

.vg-player {
  margin: 0 0 1.75rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #093de3;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(6, 18, 63, 0.12);
}

.vg-player__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.vg-player--placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}

.vg-player__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vg-player__poster--icon {
  width: auto;
  height: auto;
  max-width: 28%;
  max-height: 42%;
  object-fit: contain;
}

.vg-player__soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  padding: 1rem;
  background: rgb(6 18 62 / 0.28);
}

.vg-player__soon p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.vg-player__soon span {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.85);
}

.vg-related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(0 0 0 / 0.08);
}

.vg-related h2 {
  margin-top: 0;
}

.vg-related .guides-news-grid {
  margin-top: 1rem;
}
