/* ═══ באנר פרסומים — בתוך עמודת המשחקים (כמו משחקים מרכזים) ═══ */
.site-promo-banner {
  width: 100%;
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.site-promo-banner__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: rgba(0, 0, 0, 0.35);
  /* יחס באנר סטנדרטי (~1200×280) */
  aspect-ratio: 1200 / 280;
}

.site-promo-banner__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.site-promo-banner__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 0;
}

.site-promo-banner__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  animation: site-promo-banner-in 0.45s ease;
}

@keyframes site-promo-banner-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.site-promo-banner__link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

/* ממלא את המסגרת – מתיחה קלה, בלי חיתוך (לא cover) */
.site-promo-banner__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
}

.site-promo-banner__dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.35);
}

.site-promo-banner__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.site-promo-banner__dot.is-active {
  background: var(--accent-sport, #f5c518);
  transform: scale(1.15);
}

/* לפטופ / דסקטופ – רוחב עמודת live, גובה מוגבל */
@media (min-width: 769px) {
  .index-col--live > .site-promo-banner--hub-live {
    width: 100%;
    max-width: 100%;
    margin: 0 0 10px;
    border-radius: 16px;
  }
  .site-promo-banner--hub-live .site-promo-banner__viewport {
    max-height: 156px;
  }
}

/* מובייל – רוחב עמודת המשחקים */
@media (max-width: 768px) {
  .index-col--live > .site-promo-banner--hub-live {
    width: 100%;
    margin: 0 0 8px;
    border-radius: 12px;
  }
  .site-promo-banner--hub-live .site-promo-banner__viewport {
    max-height: 124px;
  }
}

/* ═══ פופאפ פרסומים ═══ */
html.site-promo-popup-open {
  overflow: hidden;
}

.site-promo-popup {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.site-promo-popup[hidden] {
  display: none !important;
}

.site-promo-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.site-promo-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #1c1c1c 0%, #111 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  animation: site-promo-popup-in 0.35s ease;
}

@keyframes site-promo-popup-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.site-promo-popup__close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.site-promo-popup__close:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.05);
}

.site-promo-popup__timer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
}

.site-promo-popup__timer-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-sport, #f5c518), #ffe066);
  transform-origin: right center;
}

[dir="rtl"] .site-promo-popup__timer-bar {
  transform-origin: left center;
}

.site-promo-popup__counter {
  margin: 0;
  padding: 12px 16px 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.site-promo-popup__title {
  margin: 0;
  padding: 10px 48px 0 16px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.site-promo-popup__title[hidden] {
  display: none;
}

.site-promo-popup__media {
  padding: 12px 14px 14px;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-promo-popup__link {
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.site-promo-popup__img {
  width: 100%;
  height: auto;
  max-height: min(60vh, 420px);
  object-fit: contain;
  display: block;
  background: #0a0a0a;
}

.site-promo-popup__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 14px 14px;
}

.site-promo-popup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.site-promo-popup__dot.is-active {
  background: var(--accent-sport, #f5c518);
}

@media (max-width: 480px) {
  .site-promo-popup__dialog {
    width: 94vw;
    border-radius: 12px;
  }
  .site-promo-popup__media {
    padding: 10px 10px 12px;
  }
  .site-promo-popup__close {
    width: 32px;
    height: 32px;
    top: 8px;
    inset-inline-end: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-promo-popup__dialog,
  .site-promo-banner__slide {
    animation: none;
  }
  .site-promo-popup__timer-bar {
    transition: none !important;
  }
}
