.videosPage {
  background: rgb(255, 255, 255);
}

.videosPage .topBar {
  background: rgba(255, 255, 255, 0.94);
}

.videosPageMain {
  flex: 1;
}

.videosHero {
  padding: 4.6rem 0 5rem;
}

.videosHeroInner {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  column-gap: 4rem;
  row-gap: 0;
}

.videosHeroInner > * {
  grid-column: 2;
}

.videosBackLink {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.15rem;
  color: rgba(var(--gry60), 0.95);
  font-size: 0.92rem;
  font-weight: 650;
}

.videosBackLink:hover {
  color: rgb(var(--fgRgb));
}

.videosSidebarBackLink {
  margin-bottom: 0.6rem;
  color: rgb(var(--fgRgb));
}

.videosHero h1 {
  margin: 0;
  color: rgb(var(--fgRgb));
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.videosHero p {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: rgb(var(--gry60));
  font-size: 1.12rem;
  line-height: 1.55;
}

.videosLayout {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
  padding-bottom: 5.5rem;
}

.videosSidebar {
  position: fixed;
  top: 5.5rem;
  left: calc((100vw - min(calc(100vw - (var(--siteSidePadding) * 2)), var(--siteContainerMaxWidth))) / 2);
  width: 15.5rem;
  max-height: calc(100vh - 6rem);
  overflow: auto;
  padding-right: 0.8rem;
}

.videosSidebarInner {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.4rem 0;
}

.videosSidebarLink {
  display: block;
  padding: 0.62rem 0.75rem;
  color: rgb(var(--gry60));
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.15;
  border-radius: 0.48rem;
}

.videosSidebarLink:hover,
.videosSidebarLink.isActive {
  color: rgb(var(--fgRgb));
  background: rgba(var(--brn20), 0.42);
}

.videosContent {
  grid-column: 2;
  min-width: 0;
}

.videosSection {
  scroll-margin-top: 5.6rem;
  padding: 0 0 4.2rem;
}

.videosSection h1 {
  margin: 0 0 1.4rem;
  color: rgb(var(--fgRgb));
  font-size: 1.65rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.videosGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
}

.videosCard {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 18.2rem;
  padding: 0.5rem;
  text-align: left;
  color: rgb(var(--textRgb));
  font: inherit;
  background: rgb(255, 255, 255);
  border: 1px solid rgba(var(--gry30), 0.72);
  border-radius: 0.58rem;
  box-shadow: 0 0.9rem 2.4rem rgba(var(--shadowRgb), 0.08);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.videosCard:hover,
.videosCard:focus-visible {
  border-color: rgba(var(--blu50), 0.45);
  box-shadow: 0 1.2rem 2.8rem rgba(var(--shadowRgb), 0.13);
  outline: none;
}

.videosThumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(var(--gry30), 0.28);
  border-radius: 0.38rem;
}

.videosThumbPreview,
.videosThumbOverlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.videosThumbPreview {
  object-fit: cover;
}

.videosThumbOverlay {
  z-index: 2;
  opacity: 0.84;
}

.videosThumb:hover .videosThumbOverlay,
.videosCard:focus-visible .videosThumbOverlay {
  content: url('/assets/img/homepage/player/playerOver.svg');
  opacity: 1;
}

.videosThumbTime {
  position: absolute;
  right: 0.28rem;
  bottom: 0.28rem;
  z-index: 3;
  display: inline-block;
  min-width: 2.15rem;
  padding: 0.18rem 0.32rem;
  color: rgb(255, 255, 255);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  background: rgba(25, 25, 25, 0.88);
  border-radius: 0.16rem;
}

.videosCardText {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 0.25rem 0.2rem;
}

.videosCardText strong {
  color: rgb(var(--fgRgb));
  font-size: 0.98rem;
  line-height: 1.28;
}

.videosCardText span {
  color: rgb(var(--gry60));
  font-size: 0.86rem;
  line-height: 1.42;
}

@media (max-width: 1080px) {
  .videosSidebar {
    width: 12.5rem;
  }

  .videosHeroInner {
    grid-template-columns: 12.5rem minmax(0, 1fr);
    column-gap: 2rem;
  }

  .videosLayout {
    grid-template-columns: 12.5rem minmax(0, 1fr);
    gap: 2rem;
  }

  .videosGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .videosHero {
    padding: 2.4rem 0 1.5rem;
  }

  .videosHeroInner {
    display: block;
  }

  .videosLayout {
    display: block;
    padding-bottom: 3.5rem;
  }

  .videosSidebar {
    position: sticky;
    z-index: 5;
    top: 4.2rem;
    max-height: none;
    margin: 0 calc(var(--siteSidePadding) * -1) 1.75rem;
    padding: 0.55rem var(--siteSidePadding);
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(var(--gry30), 0.8);
  }

  .videosSidebarInner {
    flex-direction: row;
    width: max-content;
    min-width: 100%;
  }

  .videosSidebarLink {
    white-space: nowrap;
  }

  .videosSection {
    padding-bottom: 3rem;
  }

  .videosGrid {
    grid-template-columns: 1fr;
  }

  .videosCard {
    min-height: 0;
  }
}
