/* карточка */
.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: #4caf50; /* зелёный */
}

.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: #000;
  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: #28a745;
  color: #fff;
  border-color: #28a745;
}

/* Адаптив */
@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: #0c1018;
  border-radius: 10px;
  padding: 15px 20px;
  color: #e3e3e3;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.franchise-name {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px; /* размер для десктопа */
}

/* для экранов шириной 480px и меньше */
@media (max-width: 480px) {
  .franchise-name {
    font-size: 12px; /* уменьшенный размер на мобильных */
  }
}


.fr-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fr-item {
  position: relative;
  display: flex;
  align-items: center;
  background: #121212;
  padding: 10px 14px 10px 18px;
  border-radius: 8px;
  margin-bottom: 6px;
  transition: background 0.25s ease, transform 0.12s ease;
}

.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(50, 150, 50, 0.15);
  border: 1px solid rgba(70, 255, 70, 0.3);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 13px;
  color: #6eff6e;
  margin-left: 14px;
  font-weight: 600;
  min-width: 42px;
  text-align: center;
}

/* Активный элемент */
.fr-item.active {
  background: #242424;
  color: #fff;
  padding-left: 38px;
}

/* синяя вертикальная полоса */
.fr-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: #1e90ff;
  border-radius: 3px;
}

/* жёлтая рамка под иконку */
.fr-item.active a::before {
  content: "";
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  border: 1.6px solid #ffb100;
  border-radius: 3px;
  box-sizing: border-box;
}

/* сам треугольник Play */
.fr-item.active a::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #ffb100;
}

/* активная ссылка */
.fr-item.active a {
  color: #fff;
  font-weight: 600;
}

/* только пример: твои текущие стили — оставь их или замени */
.fr-item.active { background:#242424; color:#fff; padding-left:38px; }
.fr-item.active::before { /* ... */ }
.fr-item.active a::before { /* ... */ }
.fr-item.active a::after { /* ... */ }
/* ... остальные стили ... */

/* адаптация под мобильные */
@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; }
}
/* 🔹 Все ссылки — обычное поведение */
.fr-item a {
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

/* 🔹 При наведении на неактивную ссылку */
.fr-item:not(.active) a:hover {
  color: #2ecc71; /* лёгкий синий оттенок при наведении */
}

/* 🔹 Активная ссылка — не кликабельна и подсвечена */
.fr-item.active a {
  cursor: not-allowed;
  color: #9aff9a; /* зелёная подсветка активной ссылки */
}



.torrent-header {
  background: #222;
  color: #fff;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  position: relative;
}

/* Знак вопроса */
.info-icon {
  display: inline-block;
  background: #26c96d;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  margin-left: 6px;
}

/* Подсказка по центру */
.tooltip-global {
  display: none;
  position: absolute;
  bottom: 100%; /* Расположена над блоком */
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #df5c47;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  width: max-content;
  max-width: 90%;
  z-index: 10;
  white-space: normal;        /* текст переносится */
  word-wrap: break-word;      /* переносим длинные слова */
  overflow-wrap: break-word;  /* дополнительная страховка */
}

/* Маленький треугольник */
.tooltip-global::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #df5c47 transparent transparent transparent;
}

/* Показываем при наведении на иконку */
.info-icon:hover ~ .tooltip-global {
  display: block;
}