.lecture-archive[hidden] {
  display: none !important;
}

.lecture-archive {
  margin-top: 68px;
  padding-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.lecture-archive-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.lecture-archive-heading h3 {
  color: #fff;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

.lecture-carousel-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.lecture-carousel-arrow {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background-color .18s ease, opacity .18s ease, transform .18s ease;
}

.lecture-carousel-arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-2px);
}

.lecture-carousel-arrow:focus-visible,
.lecture-video-cover:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .9);
  outline-offset: 3px;
}

.lecture-carousel-arrow:disabled {
  opacity: .35;
  cursor: default;
}

.lecture-carousel-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lecture-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 3px 3px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .42) transparent;
}

.lecture-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.lecture-carousel-track::-webkit-scrollbar-track {
  background: transparent;
}

.lecture-carousel-track::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(255, 255, 255, .38);
}

.lecture-video-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: rgba(17, 13, 35, .58);
  scroll-snap-align: start;
}

.lecture-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #11121b;
}

.lecture-video-cover,
.lecture-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.lecture-video-cover {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #171927;
  color: #fff;
  cursor: pointer;
}

.lecture-video-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 24, .03) 25%, rgba(12, 11, 24, .38) 100%);
  content: "";
  pointer-events: none;
}

.lecture-video-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.lecture-video-cover:hover img {
  transform: scale(1.035);
}

.lecture-video-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: flex;
  width: 66px;
  height: 66px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  background: rgba(35, 27, 65, .46);
  color: #fff;
  transform: translate(-50%, -50%);
  transition: background-color .18s ease, transform .18s ease;
}

.lecture-video-cover:hover .lecture-video-play {
  background: rgba(139, 92, 246, .72);
  transform: translate(-50%, -50%) scale(1.06);
}

.lecture-video-play svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lecture-video-copy {
  min-height: 112px;
  padding: 20px 22px 22px;
}

.lecture-video-copy h4 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.lecture-video-copy time {
  color: rgba(255, 255, 255, .64);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .015em;
}

@media (max-width: 767px) {
  .lecture-archive {
    margin-top: 54px;
    padding-top: 32px;
  }

  .lecture-archive-heading {
    margin-bottom: 18px;
  }

  .lecture-carousel-controls {
    display: none;
  }

  .lecture-carousel-track {
    gap: 16px;
    margin-right: calc(var(--side) * -1);
    padding-right: var(--side);
    scrollbar-width: none;
  }

  .lecture-carousel-track::-webkit-scrollbar {
    display: none;
  }

  .lecture-video-card {
    flex-basis: calc(83.333333% - 13.333333px);
  }

  .lecture-video-copy {
    min-height: 104px;
    padding: 17px 18px 19px;
  }

  .lecture-video-copy h4 {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lecture-carousel-track {
    scroll-behavior: auto;
  }

  .lecture-carousel-arrow,
  .lecture-video-cover img,
  .lecture-video-play {
    transition: none;
  }
}