/* Страница /media/video-gallery/ — категории и карточки */
.video-gallery-page {
  background: #f5f7fb;
  padding-bottom: 3rem;
}

.video-gallery-page__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #0b1b3d;
  text-align: center;
  margin-bottom: 0.75rem;
}

.video-gallery-page__lead,
.video-gallery-page__category-intro {
  font-family: 'Montserrat', sans-serif;
  color: #4a5568;
  text-align: center;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.video-gallery-page__lead {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.video-gallery-page__category-intro {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
}

.video-gallery-page__breadcrumbs {
  margin: 1.25rem 0 1.5rem;
}

.video-gallery-page__empty {
  text-align: center;
  color: #64748b;
  padding: 2.5rem 1rem;
  font-family: 'Montserrat', sans-serif;
}

/* Плашки категорий */
.video-categories-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 0.25rem;
}

.video-categories-nav__item {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  background: #ffffff;
  color: #0b1b3d;
  border: 1px solid #d9e1f2;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.video-categories-nav__item:hover {
  border-color: #e30613;
  color: #e30613;
  transform: translateY(-1px);
}

.video-categories-nav__item.is-active {
  background: #e30613;
  color: #ffffff;
  border-color: #e30613;
}

/* Сетка */
.video-gallery-grid {
  margin-left: -12px;
  margin-right: -12px;
}

/* Карточка */
.video-card {
  margin-bottom: 1.5rem;
  padding-left: 12px;
  padding-right: 12px;
}

.video-card__inner {
  background: #ffffff;
  border: 1px solid #e5eaf3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(11, 27, 61, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover .video-card__inner {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(11, 27, 61, 0.12);
}

.video-card__media {
  display: block;
  text-decoration: none !important;
}

.video-card__thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.video-card:hover .video-card__thumb img {
  transform: scale(1.04);
}

.video-card__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  pointer-events: none;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  background: url('../images/icon-ytplay.svg') center center / contain no-repeat;
  opacity: 0.88;
  pointer-events: none;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.video-card:hover .video-card__play {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(18%) sepia(95%) saturate(7452%) hue-rotate(353deg) brightness(93%) contrast(101%);
}

.video-card__body {
  padding: 1rem 1.15rem 1.2rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.video-card__category {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #e30613;
  color: #fff;
}

.video-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0b1b3d;
  margin: 0 0 0.5rem;
}

.video-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #5a6578;
  margin: 0 0 0.85rem;
  flex: 1 1 auto;
}

.video-card__watch {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e30613 !important;
  text-decoration: none !important;
}

.video-card__watch:hover {
  text-decoration: underline !important;
}

@media (max-width: 767.98px) {
  .video-categories-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.5rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .video-gallery-page__title {
    font-size: 1.75rem;
  }
}

.video-gallery-pagination,
.news-gallery-pagination {
  margin-top: 2.5rem;
}

.video-gallery-pagination__info,
.news-gallery-pagination__info {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.video-gallery-pagination .pagination,
.news-gallery-pagination .pagination {
  margin-bottom: 0;
}
