/* Hub module styles — layout only, colors via theme classes */

.hub-page {
  margin-top: 5px;
}

.hub-title {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.2;
}

.hub-intro {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  line-height: 1.65;
}

.hub-count {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
}

.hub-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.hub-catalog__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 66px;
  padding: 14px 16px;
  border-radius: 8px;
  transition: border-color .2s ease, transform .2s ease;
}

.hub-catalog__item:hover {
  transform: translateY(-2px);
}

.hub-catalog__name {
  font-size: 15px;
  line-height: 1.35;
}

.hub-catalog__count {
  flex: 0 0 auto;
  font-size: 12px;
  white-space: nowrap;
}

.hub-kind-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hub-kind-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 6px;
}

.hub-kind-tab strong {
  min-width: 20px;
  text-align: center;
  font-size: 11px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px 10px;
}

.hub-tile {
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

.hub-tile__poster {
  display: block;
  aspect-ratio: 200 / 283;
  background: #111;
  position: relative;
}
.hub-tile__poster::after {
  content: '\f144  Смотреть';
  font-family: 'Font Awesome 5 Pro', sans-serif;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 0;
  text-align: center;
  font-size: 14px;
  color: #fff;
  background: rgba(208,96,112,0.92);
  opacity: 0;
  transition: opacity .2s ease;
}
.hub-tile:hover .hub-tile__poster::after {
  opacity: 1;
}

.hub-tile__poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hub-tile__body {
  display: block;
  padding: 10px;
}

.hub-tile__title {
  display: block;
  min-height: 40px;
  margin-bottom: 6px;
  line-height: 1.35;
}

.hub-tile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hub-tile__meta span {
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 11px;
}

.hub-empty {
  padding: 14px 16px;
  border-radius: 8px;
}

.hub-pag {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hub-pag a,
.hub-pag span {
  min-width: 33px;
  height: 33px;
  line-height: 31px;
  text-align: center;
  padding: 0 8px;
  border-radius: 6px;
}

.uakino-hub-tags {
  margin: 16px 0 12px;
  padding: 12px 14px;
  border-radius: 8px;
}

.uakino-hub-tags__head {
  margin-bottom: 10px;
}

.uakino-hub-tags__title {
  font-size: 15px;
  font-weight: 600;
}

.uakino-hub-tags__subtitle {
  line-height: 1.45;
}

.uakino-hub-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.uakino-hub-tags__pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .hub-title {
    font-size: 24px;
  }

  .hub-catalog {
    grid-template-columns: 1fr;
  }

  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .hub-kind-tab {
    width: 100%;
    justify-content: space-between;
  }

  .uakino-hub-tags__pill {
    width: 100%;
    justify-content: center;
  }
}
