/* ==========================================================================
   Netflix4U - Non-Intrusive Native Banner Ads Styling
   ========================================================================== */

.native-ad-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 36px 0;
  padding: 0 24px;
  box-sizing: border-box;
}

.native-ad-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.native-ad-card {
  position: relative;
  background: linear-gradient(135deg, rgba(22, 22, 26, 0.7) 0%, rgba(14, 14, 16, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px 20px 18px 20px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.native-ad-card:hover {
  border-color: rgba(229, 9, 20, 0.25);
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.65), 0 0 15px rgba(229, 9, 20, 0.05);
  transform: translateY(-1px);
}

.native-ad-badge {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: #71717a;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
}

.native-ad-slot-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.native-ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  color: #a1a1aa;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  width: 100%;
  max-width: 970px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.native-ad-placeholder:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.035);
}

.native-ad-placeholder-icon {
  width: 22px;
  height: 22px;
  color: #71717a;
  flex-shrink: 0;
}

.native-ad-placeholder-text {
  font-size: 13px;
  font-weight: 500;
  color: #8e8e93;
  letter-spacing: 0.2px;
}

/* Detail Page specific adjustments */
.native-ad-detail-wrapper {
  margin: 28px 0;
  padding: 0 4%;
  width: 100%;
  box-sizing: border-box;
}

.native-ad-detail-wrapper .native-ad-card {
  background: linear-gradient(135deg, rgba(20, 20, 24, 0.65) 0%, rgba(12, 12, 14, 0.8) 100%);
  min-height: 100px;
  padding: 20px 16px 14px 16px;
}

/* Verified Custom Sponsor / Telegram Banner */
.nm-ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 820px;
  padding: 14px 20px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.nm-ad-placeholder:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(229, 9, 20, 0.4);
  transform: translateY(-1px);
}
.nm-ad-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(229, 9, 20, 0.18);
  border: 1px solid rgba(229, 9, 20, 0.38);
  color: #ff4d4d;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}
.nm-ad-btn {
  padding: 5px 12px;
  border-radius: 5px;
  background: #e50914;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: auto;
  transition: background 0.15s ease;
}
.nm-ad-btn:hover {
  background: #f40612;
}

/* A-ADS Bottom Sticky Bar */
#aads-sticky-wrap {
  position: relative;
  z-index: 9999;
}
.aads-sticky-inner {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 9999;
  background: rgba(12, 12, 18, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
  padding: 6px 0;
  text-align: center;
}
.aads-close-btn {
  top: 50%;
  transform: translateY(-50%);
  right: 16px;
  position: absolute;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  padding: 5px;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aads-close-btn:hover {
  background: #fff;
}
.aads-frame {
  width: 100%;
  max-width: 728px;
  margin: auto;
}
.aads-iframe {
  border: 0;
  padding: 0;
  width: 100%;
  min-height: 50px;
  max-height: 75px;
  overflow: hidden;
  margin: auto;
  display: block;
}

/* Responsive viewports */
@media (max-width: 768px) {
  .native-ad-wrapper {
    margin: 24px 0;
    padding: 0 14px;
  }
  .native-ad-detail-wrapper {
    margin: 20px 0;
    padding: 0 14px;
  }
  .native-ad-card {
    padding: 20px 12px 14px 12px;
    min-height: 80px;
    border-radius: 10px;
  }
  .native-ad-placeholder {
    padding: 12px 14px;
    gap: 8px;
  }
  .native-ad-placeholder-text {
    font-size: 11.5px;
  }
  .nm-ad-placeholder {
    flex-wrap: wrap;
    font-size: 11px;
    gap: 8px;
    padding: 10px 12px;
  }
  .nm-ad-btn {
    margin-left: 0;
  }
}
