/* ============================================
   AdSense Placements
   ============================================ */
.cocktail-card-ad {
  position: relative;
  padding-top: 44px;
}

.adsense-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.adsense-label {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 8px;
  text-transform: uppercase;
}

.adsense-slot-shell {
  position: relative;
  min-height: 250px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(168, 130, 255, 0.25);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.adsense-slot-shell ins.adsbygoogle {
  position: relative;
  z-index: 2;
  min-height: 250px;
}

.adsense-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, rgba(120, 120, 120, 0.2), rgba(60, 60, 60, 0.12));
}

.adsense-anchor-mobile {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 10px);
  z-index: 980;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(20, 14, 32, 0.92);
  box-shadow: var(--shadow);
  padding: 16px 10px 10px;
}

.adsense-anchor-close {
  position: absolute;
  top: 2px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  color: var(--text-secondary);
  background: transparent;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.adsense-anchor-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.adsense-slot-shell-anchor {
  min-height: 50px;
}

.adsense-slot-shell-anchor ins.adsbygoogle {
  min-height: 50px;
}

.adsense-recipe-wrap {
  margin: 2.4rem 0 1.4rem;
}

.adsense-card-recipe {
  padding: 44px 20px 20px;
  background: var(--bg-card);
}

.adsense-slot-shell-recipe {
  min-height: 280px;
}

.adsense-slot-shell-recipe ins.adsbygoogle {
  min-height: 280px;
}

.home-bottom-ad-wrap {
  margin: 10px 0 28px;
}

.adsense-card-home-bottom {
  padding: 44px 20px 20px;
  background: var(--bg-card);
}

.adsense-slot-shell-home-bottom {
  min-height: 250px;
}

.adsense-slot-shell-home-bottom ins.adsbygoogle {
  min-height: 250px;
}

.encyclopedia-ad-card {
  position: relative;
  padding: 42px 16px 16px;
}

.adsense-slot-shell-encyclopedia {
  min-height: 220px;
}

.adsense-slot-shell-encyclopedia ins.adsbygoogle {
  min-height: 220px;
}

body.has-adsense-anchor {
  padding-bottom: 92px;
}

@media (min-width: 769px) {
  .adsense-anchor-mobile {
    display: none !important;
  }

  body.has-adsense-anchor {
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  .cocktail-card-ad {
    padding: 40px 14px 14px;
  }

  .adsense-slot-shell {
    min-height: 220px;
  }

  .adsense-slot-shell ins.adsbygoogle {
    min-height: 220px;
  }

  .adsense-slot-shell-recipe {
    min-height: 250px;
  }

  .adsense-slot-shell-recipe ins.adsbygoogle {
    min-height: 250px;
  }

  .home-bottom-ad-wrap {
    margin-bottom: 20px;
  }

  .adsense-card-home-bottom {
    padding: 40px 14px 14px;
  }

  .adsense-slot-shell-home-bottom,
  .adsense-slot-shell-home-bottom ins.adsbygoogle {
    min-height: 220px;
  }
}
