/* ══════════════════════════════════════
   Ad Banner Client v2.0 - banner.css
   ══════════════════════════════════════ */

/* ── Homepage ── */
.ab-homepage-wrap {
  width: 100%;
  padding: 0 4px;
  margin: 24px 0;
}

.ab-homepage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ab-homepage-grid a {
  display: block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
}

.ab-homepage-grid img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile slider */
.ab-homepage-slider {
  display: none;
}

@media (max-width: 768px) {
  .ab-homepage-grid {
    display: none;
  }

  .ab-homepage-slider {
    display: block;
    position: relative;
    width: 100%;
  }

  .ab-slides {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
  }

  .ab-slide {
    display: none;
  }

  .ab-slide.active {
    display: block;
  }

  .ab-slide a {
    display: block;
    line-height: 0;
  }

  .ab-slide img {
    width: 100%;
    height: auto;
    display: block;
  }

  .ab-dots {
    display: none;
  }
}

/* ── Catfish ── */
.ab-zone.ab-catfish {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
}

.ab-catfish-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.ab-catfish-close {
  background: #DC2626;
  color: white;
  border: none;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  letter-spacing: 0.05em;
  transition: background 0.15s;
}

.ab-catfish-close:hover {
  background: #b91c1c;
}

.ab-catfish-inner {
  display: flex;
  gap: 0;
}

.ab-catfish-inner a {
  display: block;
  line-height: 0;
}

.ab-catfish-inner img {
  height: 70px;
  width: auto;
  display: block;
}

/* Mobile: 1 banner full width */
@media (max-width: 768px) {
  .ab-zone.ab-catfish {
    display: block;
  }

  .ab-catfish-wrap {
    width: 100%;
  }

  .ab-catfish-inner {
    width: 100%;
  }

  .ab-catfish-inner a:not(:first-child) {
    display: none;
  }

  .ab-catfish-inner img {
    width: 100%;
    height: auto;
  }
}

/* ── Sidebar ── */
.ab-sidebar-wrap {
  display: block;
  width: 100%;
}

.ab-sidebar-wrap a {
  display: block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
}

.ab-sidebar-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
