.section {
  margin-top: 10px;
}

.section h2 {
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-4 {
  margin-bottom: 25px;
}

.card {
  background: #222;
  border: 1px solid #2f2f2f;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.card-body {
  padding: 10px;
}

.card-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  flex-wrap: wrap;
}

.tag {
  background: #f0b400;
  color: #000;
  padding: 2px 6px;
}

.date,
.duration {
  background: #333;
  color: #ccc;
  padding: 2px 6px;
}

.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #333;
  color: #6fd98a;
  padding: 2px 6px;
}

.card-rating svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.card h3 {
  font-size: 14px;
  margin-bottom: 4px;
  color: #fff;
}

.card p {
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}

.pagination a,
.pagination span {
  display: inline-block;
  min-width: 42px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  background: #222;
  border: 1px solid #2f2f2f;
  color: #fff;
  font-size: 14px;
}

.pagination a:hover {
  background: #333;
}

.pagination .active {
  background: #f0b400;
  color: #000;
  border-color: #f0b400;
  font-weight: bold;
}

.pagination .dots {
  background: transparent;
  border-color: transparent;
  color: #888;
  min-width: auto;
  padding: 10px 4px;
}
/* Pagination */

/* Breadcrumbs */
.breadcrumbs {
  font-size: 13px;
  color: #9aa0a6;
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: #d6d9dd;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #fff;
}

.breadcrumbs .sep {
  margin: 0 6px;
  color: #555;
}

.breadcrumbs .current {
  color: #f0b400;
}
/* Breadcrumbs */

/* SEO Text */
.seo-text {
  margin: 15px 0;
  padding: 20px;
  background: #20242a;
  border: 1px solid #2e333b;
  border-radius: 12px;
}

.seo-text h1 {
  margin-bottom: 5px;
  font-size: 18px;
  color: #fff;
}

.seo-text p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #c8cdd3;
}

.seo-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 576px) {
  .seo-text {
    padding: 16px;
  }

  .seo-text h2 {
    font-size: 18px;
  }

  .seo-text p {
    font-size: 13px;
  }
}
/* SEO Text */

@media (max-width: 1280px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .section h2 {
    font-size: 16px;
  }
}

/* Плавающая кнопка подписки на Telegram — видна на всех страницах */
.tg-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: flex;
  align-items: center;
}

.tg-float-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2ea6de;
  color: #08202c;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}

.tg-float-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .55);
}

.tg-float-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tg-float-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1c1f22;
  border: 1px solid #3a4048;
  color: #ccc;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.tg-float-close:hover {
  background: #2b2f36;
  color: #fff;
}

@media (max-width: 576px) {
  .tg-float {
    right: 12px;
    bottom: 12px;
  }

  .tg-float-link span.tg-float-text {
    display: none;
  }

  .tg-float-link {
    padding: 12px;
    border-radius: 50%;
  }
}