

.videos-page {
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 24px;
  overflow-x: clip;
}

.videos-showcase {
  position: relative;
  z-index: 1;
  overflow: visible;
  margin-bottom: 8px;
}

.videos-showcase__stage {
  position: relative;
  isolation: isolate;
  perspective: 1400px;
  overflow: visible;
  padding: 20px 0 28px;
}

.videos-showcase__swiper {
  overflow: visible;
  padding: 8px 0 16px;
}

.videos-showcase__swiper .swiper-wrapper {
  align-items: center;
}

.videos-showcase__swiper .swiper-slide {
  width: min(78%, 560px);
  height: auto;
  flex-shrink: 0;
}

.videos-showcase__swiper .swiper-slide .live-player {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  backface-visibility: hidden;
}

.videos-showcase__swiper .swiper-slide .live-player__glow {
  inset: -6%;
  opacity: 0.45;
}

.videos-showcase__swiper .swiper-slide:not(.swiper-slide-active) .live-player {
  filter: saturate(0.86) brightness(0.9);
  opacity: 0.92;
  cursor: pointer;
}

.videos-showcase__swiper .swiper-slide-active .live-player {
  filter: none;
  opacity: 1;
  z-index: 4;
}

.videos-showcase__swiper .swiper-slide:not(.swiper-slide-active) .live-player__viewport,
.videos-showcase__swiper .swiper-slide:not(.swiper-slide-active) .live-player__controls,
.videos-showcase__swiper .swiper-slide:not(.swiper-slide-active) .live-player__big-play {
  pointer-events: none;
}

.videos-showcase__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-inline: 4px;
}

.videos-showcase__hint {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.5;
}

.videos-showcase__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.videos-showcase__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(42, 42, 42, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(26, 26, 34, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.videos-showcase__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(175, 26, 21, 0.22);
}

.videos-showcase__btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.videos-catalog {
  position: relative;
  z-index: 2;
  padding-top: 56px;
  padding-bottom: 16px;
  clear: both;
}

body[data-zonya-page='videos'] .footer {
  margin-top: 56px;
}

.videos-catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.videos-catalog__empty {
  grid-column: 1 / -1;
  padding: 32px 24px;
  border-radius: 18px;
  border: 1px dashed rgba(42, 42, 42, 0.12);
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  color: var(--text-muted);
}

.video-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 18px;
  border: 1.5px solid rgba(42, 42, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(26, 26, 34, 0.06);
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  transition:
    transform 0.28s var(--ease-spring),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.video-box:hover {
  transform: translateY(-3px);
  border-color: rgba(175, 26, 21, 0.2);
  box-shadow: 0 16px 34px rgba(26, 26, 34, 0.1);
}

.video-box.is-active {
  border-color: rgba(175, 26, 21, 0.45);
  box-shadow:
    0 14px 34px rgba(175, 26, 21, 0.12),
    0 0 0 1px rgba(175, 26, 21, 0.08) inset;
  transform: translateY(-4px);
}

.video-box__art {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
}

.video-box__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 72% 28%, rgba(175, 26, 21, 0.55), transparent 58%),
    linear-gradient(155deg, #1d1d2a 0%, #0d0d14 100%);
}

.video-box--theme-react .video-box__gradient {
  background:
    radial-gradient(ellipse 80% 70% at 72% 28%, rgba(56, 132, 255, 0.55), transparent 58%),
    linear-gradient(155deg, #142238 0%, #0d1218 100%);
}

.video-box--theme-data .video-box__gradient {
  background:
    radial-gradient(ellipse 80% 70% at 72% 28%, rgba(34, 168, 108, 0.55), transparent 58%),
    linear-gradient(155deg, #12241c 0%, #0b1210 100%);
}

.video-box--theme-career .video-box__gradient {
  background:
    radial-gradient(ellipse 80% 70% at 72% 28%, rgba(196, 120, 48, 0.55), transparent 58%),
    linear-gradient(155deg, #2a1d12 0%, #120d08 100%);
}

.video-box__play {
  position: absolute;
  inset: auto auto 10px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.video-box__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.video-box__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.video-box__category {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--brand);
}

.video-box__live {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.14);
  color: #c92a24;
}

.video-box__lesson {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
}

.video-box__title {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.35em;
}

.video-box__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.video-box__mentor {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-box__duration {
  flex-shrink: 0;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .videos-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .videos-catalog__grid {
    grid-template-columns: 1fr;
  }

  .videos-showcase__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
