/*****/
h1 {
  color: #2b73d4 !important;
}
a {
  text-decoration: none !important;
}
/*****/

/* Навигация */
.dropdown-menu.header__nav-menu a {
  color: #fff ;
}
.header__nav-menu {
  display: flex !important;
  flex-wrap: wrap;
  width: 600px !important; /* ширина меню */
}

.header__nav-menu li {
  width: 33.333% !important;   /* три колонки */
  list-style: none;
}
.header__nav-menu {
  width: 600px ;
}
.header__nav-menu li:first-child {
  padding-top: 0px;
}
.dropdown-menu.header__nav-menu.show {
  padding-top: 20px;
}
.dropdown-menu.header__nav-menu.show a:hover {
  color: #0176f5;
}
.dropdown-menu.header__nav-menu.show li {
  display: flex;
  align-items: center;  
}
@media (max-width: 768px) {
  .header__nav-menu li {
    width: 50%;   /* 2 колонки */        
  }
  .header__nav-menu {
    width: 100%;
  }
  li.header__nav-item.show {
    width: 100%;
  }
}
/* Шапка */
@media (min-width: 1200px) {
  .section--head-fixed {
    margin-top: 0px;
  }
}
/* Главная топ слайдер*/
.home__card {
  height: 350px;
}

/* Админка */
.admin-poster {
  width: 40px !important;
}

/* Пагинация */
.pagination {
  width: 100%;
}
.paginator {
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* разносит счетчик и список */
  align-items: center;
  margin: 20px auto 30px;
  width: 100%;
  height: 50px;
  padding: 0 20px; /* чтобы не липло к краям */
  border-radius: 16px;
  background-color: #151f30;
}
.paginator__paginator {
  display: flex;
}
.paginator__paginator li {
  margin: 0 5px; /* расстояние между кнопками */
  color: #fff;
}
.paginator__paginator li.next a svg, .paginator__paginator li.last a svg, li.first a svg, li.prev a svg {
  fill: #2b73d4;
}
.paginator__pages {
  color: #2b73d4;
}

.paginator__paginator a,
.paginator__paginator span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
}
.paginator__paginator .active a,
.paginator__paginator .active span {
  background-color: #1f2a40;
}

/* Страница фильма */
.section--head-fixed {
  margin-top: 0px !important;
}
.section__bg {
  filter: blur(8px);
}
@media (max-width: 768px) {
  .section__bg {
    filter: none !important;
  }
}
.mov-description {
  color: #fff !important;
}
@media (max-width: 575.98px) {
  .mov-description {
    padding-top: 20px;
  }
}
/*Player*/
#player iframe {
  margin-top: 100px;
  width: 100%;
}
.plyr--video .plyr__control--overlaid svg {
  display: block !important;
}
.loading {
  display: flex;
  width: 800px;
  height: 460px;
  border-radius: 20px;
  background-color: black;
  justify-content: center !important;
}
/* .loading img {
  border-radius: 20px 20px 20px 20px;
} */
.loading .load-sttus {
  display: flex;
}
.loading .spinner {
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .loading {
    width: 100%;  
    height: auto;  
  }
}
.section__bg {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}


/* Блок категорий */
.category-count {
  background: #1f2a40;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.85em;
  margin-left: 6px;    
  font-size: 12px;
  color: #b6b6b6;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

/* Карточка категории */
.category-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background-color: #151f30;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: background-color 0.2s ease;
}
.category-card:hover {
  background-color: #1f2a40;
}
.category-name {
  font-size: 14px;
  font-weight: 500;
}

/* Кнопки управления категориями */
.categories-toggle {
  margin-top: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.categories-more {
  display: none;
  width: 100%;
  color: #fff;
  padding: 10px;
  margin-top: 20px;
  background-color: #151f30;
  border-radius: 8px;
  margin-bottom: 50px;
}

/* Медиа-запросы */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    max-height: 300px; /* высота под первые 8 карточек */
  }
  .categories-grid.expanded {
    max-height: 2000px; /* достаточно большое значение, чтобы влезли все */
  }
  .categories-more {
    display: block;
  }
}
@media (max-width: 576px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Навигация каталога*/
.catalog__nav {
  display: none !important; 
}

/* Карточка фильма */
.card {
  background-color: #131a26;
}
.card__rating {
  opacity: 1 !important;
}
.card__cover {
  height: 283px;
}
.card__cover img {
  height: 283px;
}
.card__cover img {
  height: 283px;
}

/* Footer */
.footer_logo img {
  width: 30%;
}