:root {
  --ytv-teal: #146782;
  --ytv-ink: #0b0b0b;
  --ytv-cream: #FAF9F5;
}

/* ===== YouTube Hero ===== */
.ytv-hero {
  position: relative;
  background: center / cover no-repeat;
  background-image: var(--ytv-bg);
  min-height: 507px;
  padding: 112px 64px;
  display: grid;
  place-items: center;
  text-align: center;
}

.ytv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  pointer-events: none;
}

.ytv-hero__inner {
  width: min(1312px, 100%);
  margin: 0 auto;
  position: relative;
}

.ytv-hero__title {
  color: #fff;
  font: 700 64px/120% Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  margin: 0 0 20px;
}

.ytv-hero__strap {
  color: #fff;
  font: 700 18px/150% Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  max-width: 926px;
  margin: 0 auto 16px;
}

.ytv-hero__btn {
  width: 130px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #146782;
  font: 600 16px/1 Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  transition: all .3s ease;
}

.ytv-hero__btn:hover {
  background: #146782;
  color: #fff;
}

.ytv-hero__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width:980px) {
  .ytv-hero {
    padding: 96px 32px;
  }

  .ytv-hero__title {
    font-size: 52px;
  }
}

@media (max-width:680px) {
  .ytv-hero {
    padding: 88px 20px;
  }

  .ytv-hero__title {
    font-size: 40px;
  }

  .ytv-hero__strap {
    font-size: 16px;
  }

  .ytv-hero__btn {
    width: 124px;
    height: 44px;
  }
}

/* ===== Intro ===== */
.ytv-intro {
  background: #FAF9F5;
  padding: 80px 64px;
}

.ytv-intro__inner {
  width: min(1312px, 100%);
  margin: 0 auto;
}

.ytv-intro__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 64px;
  row-gap: 24px;
  margin: 0 auto 80px;
}

.ytv-intro__copy {
  max-width: 781px;
}

.ytv-intro__h2 {
  color: #146782;
  font: 700 48px/120% Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  margin: 0 0 16px;
}

.ytv-intro__lead {
  color: #000;
  font: 400 18px/150% Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  margin: 0;
}

.ytv-intro__art img {
  width: 289px;
  height: auto;
  display: block;
}

@media (max-width:980px) {
  .ytv-intro__grid {
    grid-template-columns: 1fr;
  }

  .ytv-intro__art {
    order: -1;
    justify-self: flex-start;
  }
}

/* ===== Full-bleed Stats ===== */
.ytv-stats.ytv-stats--bleed {
  background: #146782;
  color: #fff;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 48px 0;
}

.ytv-stats__inner {
  width: min(1312px, 100%);
  margin: 0 auto;
  padding: 0 64px;
}

.ytv-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ytv-stat {
  min-height: 168px;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border-left: 4px solid #fff;
}

.ytv-stat__value {
  font: 700 80px/130% Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: #fff;
}

.ytv-stat__label {
  font: 700 20px/140% Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: #fff;
}

@media (max-width:980px) {
  .ytv-stats__inner {
    padding: 0 24px;
  }

  .ytv-stats__grid {
    grid-template-columns: 1fr;
  }

  .ytv-stat+.ytv-stat {
    margin-top: 24px;
  }
}

/* ===== Featured Gallery ===== */
.ytv-gallery {
  background: var(--ytv-cream);
  padding: 80px 0 56px;
}

.ytv-gallery__inner {
  width: min(1224px, 94vw);
  margin-inline: auto;
  text-align: center;
}

.ytv-gallery__title {
  color: var(--ytv-teal);
  font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.ytv-gallery__sub {
  color: var(--ytv-ink);
  font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  margin: 0 auto 72px;
  max-width: 1224px;
  opacity: .92;
}

@media (max-width:768px) {
  .ytv-gallery {
    padding: 48px 0 40px;
  }

  .ytv-gallery__title {
    font-size: 36px;
  }

  .ytv-gallery__sub {
    font-size: 16px;
    margin-bottom: 24px;
  }
}

.ytv-slider-wrap {
  width: min(1100px, 94vw);
  margin: 0 auto;
  position: relative;
  padding: 0 56px;
}

.ytv-slider {
  aspect-ratio: 1100/716;
  border-radius: 10px;
  overflow: hidden;
  background: #c4c4c4;
  position: relative;
}

.ytv-slides {
  display: flex;
  height: 100%;
  transform: translateX(0%);
  transition: transform .35s ease;
}

.ytv-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  display: block;
  cursor: pointer;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.ytv-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ytv-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .15);
  transition: opacity .2s ease;
  opacity: .25;
}

.ytv-slide:hover::after {
  opacity: .35;
}

.ytv-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ytv-play::before {
  content: "";
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

.ytv-play::after {
  content: "";
  position: absolute;
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}

.ytv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, .75);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  transition: background .2s ease;
}

.ytv-arrow:hover {
  background: rgba(0, 0, 0, .85);
}

.ytv-arrow--prev {
  left: 0;
}

.ytv-arrow--next {
  right: 0;
}

.ytv-arrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  display: inline-block;
  transform: rotate(135deg);
}

.ytv-arrow--next::before {
  transform: rotate(-45deg);
}

.ytv-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 52px auto 0;
  height: 12px;
}

.ytv-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: #9db7c0;
  transition: background .2s ease, transform .2s ease;
}

.ytv-dots button.is-active {
  background: #146782;
  transform: scale(1.4);
}

.ytv-dots button:hover:not(.is-active) {
  background: #5a8a9a;
}

/* Featured gallery modal */
.ytv-modal[hidden] {
  display: none;
}

.ytv-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ytv-modal__sheet {
  width: min(96vw, 1100px);
  aspect-ratio: 16/9;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  overflow: hidden;
  background: #000;
}

.ytv-modal__player {
  position: absolute;
  inset: 0;
}

.ytv-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 100;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.ytv-close:before {
  content: "✕";
  font-size: 18px;
  line-height: 1;
}

/* ===== Video Library Section ===== */
.vlib-section {
  padding: 64px 0;
  background: #fafaf8;
}

.vlib-container {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 64px;
}

.vlib-title {
  font-family: 'Roboto', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #146782;
  text-align: left;
  margin: 0 0 40px;
}

/* Toolbar (filters + search) */
.vlib-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap;
  margin-bottom: 32px;
}

/* wrapper that holds arrows + scrollable filters */
.vlib-filters-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

/* scrollable filters row */
.vlib-filters {
  display: flex;
  gap: 26px;
  margin: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.vlib-filters::-webkit-scrollbar {
  display: none;
}

/* filter buttons */
.vlib-filter-btn {
  background: transparent;
  border: none;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 6px 0;
  white-space: nowrap;
  /* <<< keeps label on a single line */
}

.vlib-filter-btn:hover {
  color: #146782;
  background-color: #e6f3f6;
  border-radius: 6px;
  padding: 6px 16px;
}

.vlib-filter-btn--active {
  background-color: #146782;
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
}

/* arrows at start/end of filters row */
.vlib-filters-arrow {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #d0d7de;
  background: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.vlib-filters-arrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border: solid #146782;
  border-width: 0 2px 2px 0;
  display: inline-block;
  transform: rotate(135deg);
  /* left */
}

.vlib-filters-arrow--right::before {
  transform: rotate(-45deg);
  /* right */
}

.vlib-filters-arrow:hover {
  background: #e6f3f6;
  border-color: #146782;
  transform: translateY(-1px);
}

.vlib-filters-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.vlib-filters-arrow.is-disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

/* Search box */
.vlib-search-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: #fff;
  border-radius: 10px;
  padding: 0 10px;
  height: 42px;
  border: 1px solid #ddd;
  flex-shrink: 0;
  margin-left: auto;
  max-width: 200px;
}

.vlib-search {
  border: none;
  outline: none;
  font-size: 15px;
  margin-left: 8px;
  flex: 1;
  color: #333;
  width: 170px;
}

.vlib-search::placeholder {
  color: #9AA7B2;
}

.vlib-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* responsive toolbar */
@media (max-width: 900px) {
  .vlib-toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
  }

  .vlib-filters-wrap {
    flex: 1 1 100%;
  }

  .vlib-search-wrap {
    flex: 1 1 100%;
    order: 2;
    margin-top: 8px;
    max-width: none;
  }

  .vlib-filters-arrow {
    width: 28px;
    height: 28px;
  }
}

/* Section groups & titles */
.vlib-section-group {
  margin-bottom: 48px;
}

.vlib-section-group--hidden {
  display: none;
}

.vlib-section-title {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 24px;
}

/* Video grid */
.vlib-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 24px;
  row-gap: 24px;
  margin-bottom: 32px;
}

/* Video card */
.vlib-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  transition: transform .3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vlib-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.vlib-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.vlib-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vlib-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .30);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.vlib-card:hover .vlib-card__play {
  opacity: 1;
}

.vlib-card__play svg {
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, .7);
  border-radius: 50%;
  padding: 12px;
  padding-left: 14px;
}

/* true 16:9 frame for all media */
.vlib-grid .vlib-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vlib-grid .vlib-card .vlib-card__thumb,
.vlib-grid .vlib-card> :first-child {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  background: #000 !important;
  overflow: hidden !important;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

@supports not (aspect-ratio: 16/9) {

  .vlib-grid .vlib-card .vlib-card__thumb,
  .vlib-grid .vlib-card> :first-child {
    padding-top: 56.25% !important;
  }

  .vlib-grid .vlib-card .vlib-card__thumb>*,
  .vlib-grid .vlib-card> :first-child>* {
    position: absolute !important;
    inset: 0 !important;
  }
}

.vlib-grid .vlib-card .vlib-card__thumb img,
.vlib-grid .vlib-card> :first-child img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.vlib-grid .vlib-card .vlib-card__play {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none;
}

/* Card titles – consistent two-line clamp */
.vlib-grid .vlib-card h3,
.vlib-grid .vlib-card .vlib-card__title,
.vlib-grid .vlib-card .card-title {
  font-size: clamp(14px, 1.15vw, 18px) !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  margin: 12px 16px 16px !important;
  color: #146782 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  word-break: break-word;
  hyphens: auto;
}

.vlib-grid .vlib-card h3 a {
  color: inherit !important;
  text-decoration: none;
}

.vlib-grid .vlib-card h3 a:hover {
  text-decoration: underline;
}

.vlib-section .vlib-grid .vlib-card h1,
.vlib-section .vlib-grid .vlib-card h2,
.vlib-section .vlib-grid .vlib-card h3,
.vlib-section .vlib-grid .vlib-card h4,
.vlib-section .vlib-grid .vlib-card .vlib-card__title,
.vlib-section .vlib-grid .vlib-card .entry-title,
.vlib-section .vlib-grid .vlib-card .card-title {
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  margin: 12px 16px 16px !important;
  color: #146782 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  max-height: calc(1.35em * 2) !important;
  word-break: break-word;
  hyphens: auto;
}

.vlib-section .vlib-grid .vlib-card h1 a,
.vlib-section .vlib-grid .vlib-card h2 a,
.vlib-section .vlib-grid .vlib-card h3 a,
.vlib-section .vlib-grid .vlib-card h4 a {
  color: inherit !important;
  text-decoration: none;
}

.vlib-section .vlib-grid .vlib-card h1 a:hover,
.vlib-section .vlib-grid .vlib-card h2 a:hover,
.vlib-section .vlib-grid .vlib-card h3 a:hover,
.vlib-section .vlib-grid .vlib-card h4 a:hover {
  text-decoration: underline;
}

.vlib-card.vlib-card--hidden {
  display: none !important;
}

/* Empty state */
.vlib-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 16px;
}

/* Load More */
.vlib-load-more-wrap {
  text-align: center;
}

.vlib-load-more {
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  background: #146782;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.vlib-load-more:hover {
  background: #0f4d5a;
  transform: translateY(-2px);
}

.vlib-load-more:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Season subfilters */
.vlib-subfilters {
  display: flex;
  gap: 36px;
  align-items: center;
  margin: 0 0 24px;
}

.vlib-subfilter-btn {
  background: transparent;
  border: 0;
  padding: 0 0 6px;
  font: 700 14px 'Roboto', sans-serif;
  color: #111;
  cursor: pointer;
  position: relative;
}

.vlib-subfilter-btn.is-active {
  color: #146782;
}

.vlib-subfilter-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 2px;
  background: #146782;
}

.vlib-subpanel {
  display: none;
}

.vlib-subpanel.is-active {
  display: block;
}

/* responsive grid */
@media (max-width:1024px) {
  .vlib-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width:768px) {
  .vlib-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
    row-gap: 16px;
  }
}

@media (max-width:480px) {
  .vlib-grid {
    grid-template-columns: 1fr;
  }
}

/* Lightbox for cards */
.ytv-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.ytv-lightbox[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.ytv-lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.ytv-lightbox__content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
  background: #000;
}

#ytvFrame {
  width: 100%;
  height: 100%;
  display: block;
}

.ytv-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.ytv-lightbox__close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Hide cards smoothly before Load More */
.vlib-card--hidden {
  display: none !important;
}


.ytv-slider-wrap {
  position: relative;
  z-index: 10;
  /* ensure gallery is above all other sections */
}

.ytv-slide,
.ytv-arrow {
  pointer-events: auto !important;
}

.vlib-section {
  position: relative;
  z-index: 1;
}


/* Lightbox close button (Video Library) */
.ytv-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  border: none;
}

.ytv-lightbox__close::before,
.ytv-lightbox__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 3px;
  background: white;
  transform-origin: center;
}

.ytv-lightbox__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.ytv-lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Lightbox container */
.ytv-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

/* =====================================================
   MOBILE CLEANUP – VIDEOS PAGE (REMOVAL FIRST)
   Paste at END of youtube.css
===================================================== */

/* ---------- Global mobile spacing cleanup ---------- */
@media (max-width: 768px) {

  /* Reduce excessive side padding */
  .vlib-container {
    padding: 0 16px;
  }

  /* Section titles – less vertical height */
  .vlib-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 16px;
  }
}

/* ---------- Intro section cleanup ---------- */
@media (max-width: 768px) {

  /* Remove illustration – too tall on mobile */
  .ytv-intro__art {
    display: none;
  }
}

/* ---------- Stats section cleanup ---------- */
@media (max-width: 768px) {

  /* Remove heavy vertical borders */
  .ytv-stat {
    border-left: none;
    padding-left: 0;
    text-align: center;
  }
}

/* ---------- Featured slider cleanup ---------- */
@media (max-width: 768px) {

  /* Remove arrows – swipe + dots are enough */
  .ytv-arrow {
    display: none;
  }

  .ytv-slider-wrap {
    padding: 0;
  }
}

/* ---------- Filter bar cleanup ---------- */
@media (max-width: 768px) {

  /* Remove filter arrows on mobile */
  .vlib-filters-arrow {
    display: none;
  }

  /* Stack toolbar cleanly */
  .vlib-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .vlib-search-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    height: 44px;
    border-radius: 8px;
  }

  .vlib-search {
    width: 100%;
  }
}

/* ---------- Video card interaction cleanup ---------- */

/* Mobile has no hover – always show play icon */
@media (hover: none) {
  .vlib-card__play {
    opacity: 1;
    background: rgba(0, 0, 0, 0.25);
  }
}

/* ---------- Card text spacing ---------- */
@media (max-width: 768px) {

  .vlib-grid .vlib-card h3 {
    font-size: 16px !important;
    margin: 10px 12px 14px !important;
  }
}


/* =====================================================
   MOBILE REFINEMENT – STATS SECTION
===================================================== */

@media (max-width: 768px) {

  /* Reduce vertical height of stats block */
  .ytv-stats.ytv-stats--bleed {
    padding: 32px 0;
  }

  /* Reduce spacing between each stat */
  .ytv-stat {
    min-height: auto;
    padding: 16px 0;
    gap: 4px;
  }

  /* Number size – less overpowering */
  .ytv-stat__value {
    font-size: 48px;
    line-height: 1.1;
  }

  /* Label text – clearer & tighter */
  .ytv-stat__label {
    font-size: 20px;
    line-height: 1.4;
    max-width: 260px;
    margin: 0 auto;
  }
}



/* ===== GLOBAL SAFETY: NO PAGE HORIZONTAL SCROLL ===== */
html, body {
  overflow-x: hidden;
}

@media (max-width:980px) {
  .ytv-hero {
    min-height:0px
	}
}

@media (max-width: 768px) {
  .vlib-search-wrap {
    width: 90%;
    margin: 12px 0 0;
    padding: 0 12px;
  }

  .vlib-search {
    width: 100%;
  }
}

/* =====================================================
   SINGLE SOURCE OF TRUTH – MOBILE CATEGORY SCROLL
===================================================== */

@media (max-width: 768px) {

  /* Prevent page sideways scroll */
  html, body {
    overflow-x: hidden;
  }

  /* Toolbar stacks naturally */
  .vlib-toolbar {
    display: block;
  }

  /* SCROLL CONTAINER */
  .vlib-filters-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* CATEGORY ROW */
  .vlib-filters {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 8px 12px 14px;
    white-space: nowrap;
  }

  /* CATEGORY PILLS */
  .vlib-filter-btn {
    flex: 0 0 auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 999px;
  }

  /* No arrows on mobile */
  .vlib-filters-arrow {
    display: none !important;
  }
}

/* =====================================================
   MOBILE HERO FIX – MATCH DESKTOP FEEL
===================================================== */

@media (max-width: 768px) {

	.ytv-hero {
	  min-height: 220px;            /* stable floor for small devices */
	  height: 26vh;                 /* responsive scaling */
	  max-height: 320px;            /* prevents overgrowth on tall phones */
	  display: flex;
	  align-items: center;          /* vertical centering */
	  justify-content: center;
	  background-size: cover;       /* full hero image */
	  background-position: center;  /* keep subject centered */
	  background-repeat: no-repeat;
	}

  .ytv-hero__inner {
    padding: 0 20px;
    text-align: center;
  }

  .ytv-hero__title {
    font-size: 32px;
    line-height: 1.2;
    max-width: 90%;
    margin: 0 auto 12px;
  }

  .ytv-hero__strap {
    font-size: 16px;
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto 20px;
  }

  .ytv-hero .btn,
  .ytv-hero .button {
    margin-top: 8px;
  }
}
