/* Баннеры-анонсы сверху главного экрана (задача #149, js/banners.js). */
.home-banners {
  position: relative;
  margin: 10px 0 12px;
}
.home-banners[hidden] { display: none; }

.hb-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--radius, 18px);
}
.hb-track::-webkit-scrollbar { display: none; }

.hb-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  /* Пока картинка грузится — тёмный градиент, не чёрный квадрат. */
  background: linear-gradient(135deg, #1c1c22 0%, #23203a 55%, #141418 100%);
}
.hb-slide.hb-link { cursor: pointer; }

.hb-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.hb-ready .hb-media { opacity: 1; }

.hb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%);
  pointer-events: none;
}

.hb-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 22px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  pointer-events: none;
}

.hb-off {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 80, 80, .85);
  color: #fff;
  pointer-events: none;
}

.hb-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.hb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transition: width .25s ease, background .25s ease;
}
.hb-dot.edge { width: 4px; height: 4px; }
.hb-dot.on {
  width: 16px;
  border-radius: 3px;
  background: #fff;
}
