/* карточка */
.th-item {
  font-family: Arial, sans-serif;
  width: 100%; /* для сетки */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* блок с изображением */
.th-img {
  width: 100%;
  height: 230px;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

/* изображение внутри карточки */
.th-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.35s ease;
}

/* заголовок */
.th-title-wrap {
  margin-top: 8px;
  height: 52px;
  overflow: hidden;
}

.th-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  word-wrap: break-word;
  text-align: left;
  transition: color 0.3s ease; /* плавное изменение цвета */
}

/* описание под заголовком */
.th-des {
  padding: 0 5px 5px;
  height: 16px;
}

/* эффект при наведении */
.th-item:hover .th-title {
  color: #ff7a00; /* зелёный */
}

.th-item:hover .th-img img {
  transform: scale(1.005); /* уменьшенное увеличение картинки */
}


/* контейнер сетки */
.sect-content {
  width: 100%;
  box-sizing: border-box;
}

.sect-content.sect-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #1d1a1a;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 8px;
  max-width: 1200px;
  margin: 0 auto; /* центрируем сетку */
}

/* адаптивные размеры */
@media (max-width: 1200px) {
  .sect-content.sect-items {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .sect-content.sect-items {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sect-content.sect-items {
    grid-template-columns: repeat(2, 1fr);
  }
  .sect-content.sect-items .th-img {
    height: 190px;
  }
}

/* общий стиль для блока заголовков комментариев */
.comms-title {
  white-space: nowrap;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #eee;
}

/* стиль для обрезки текста с многоточием */
.comms-title.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
}


/* Красивый стиль для топ-бейджа */
.topBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #222;
    padding: 5px 12px;
    border-radius: 30px; /* таблетка */
    font-size: 13px;
    font-weight: 600;
    margin: 0 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.fctrl {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 6px 0;
}

.tabs-sel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tabs-sel .tab {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1f1f1f;
  color: #e0e0e0;
  border: 1px solid #333;
  border-radius: 8px;
  font-family: "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.tabs-sel .tab.active {
  background-color: #f89712;
  color: #fff;
  border-color: #f89712;
}

/* Адаптив */
@media (max-width: 768px) {
  .tabs-sel .tab {
    font-size: 14px;
    padding: 9px 14px;
  }
}

@media (max-width: 480px) {
  .tabs-sel {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .tabs-sel .tab {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 8px 12px;
  }
}

.franchise {
  background: #1d1a1a;
  padding: 15px 20px;
  color: #2f2b32;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.franchise-name {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
  color: #fff;
}

.fr-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fr-item {
  position: relative;
  display: flex;
  align-items: center;
  background: #1a1a1a;
  padding: 10px 14px 10px 18px;
  border-radius: 8px;
  margin-bottom: 6px;
  transition: background 0.25s ease, transform 0.12s ease;
  border-left: 4px solid #ffcc00; /* фирменная жёлтая полоса */
}

.fr-item:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
  border-left-color: #ffd633; /* чуть ярче при наведении */
}

.fr-item span, 
.fr-item a {
  color: #ffcc00; /* жёлтый текст в духе Кинопоиска */
  font-weight: 600;
  text-decoration: none;
}

.fr-item a:hover {
  color: #ffe066;
}


.fr-item a {
  color: #e3e3e3;
  text-decoration: none;
  flex-grow: 1;
  font-size: 15px;
  display: flex;
  align-items: center;
}

/* Год выпуска */
.fr-item .fr-year {
  color: #999;
  font-size: 13px;
  margin-left: 10px;
}

/* Рейтинг — неоново-зелёный стиль */
.fr-item .fr-rate {
  background: rgba(154, 255, 154, 0.1);
  border: 1px solid rgba(154, 255, 154, 0.4);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 13px;
  color: #9aff9a;
  margin-left: 14px;
  font-weight: 600;
  min-width: 42px;
  text-align: center;
  transition: 0.2s ease;
}

.fr-item .fr-rate:hover {
  background: rgba(154, 255, 154, 0.25);
  color: #b6ffb6;
  border-color: rgba(154, 255, 154, 0.5);
}



/* Активный элемент */
.fr-item.active {
  background: #242424;
  color: #fff;
  padding-left: 38px;
}


/* сам треугольник Play */
.fr-item.active a::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #ffb100;
}

/* активная ссылка */
.fr-item.active a {
  color: #fff;
  font-weight: 600;
}

/* адаптация под мобильные */
@media (max-width: 480px) {
  .fr-item { padding: 8px 10px 8px 16px; }
  .fr-item.active { padding-left: 34px; }
  .fr-item.active::before { width: 2.5px; }
  .fr-item.active a::before { left: 10px; width: 12px; height: 12px; }
  .fr-item.active a::after { left: 13px; border-top-width: 3.5px; border-bottom-width: 3.5px; border-left-width: 5px; }
}



a:hover .play-icon {
  transform: scale(1.2);
}
.hover-circle {
  position: absolute; 
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  top: 50%;
  left: 12px; /* около иконки */
  transform: translateY(-50%) scale(0);
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}
a:hover .hover-circle {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}