.ad-slot-wrap { container-type: inline-size; }

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-6) 0;
  border: 1px dashed var(--border-color-strong);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.ad-slot__label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

.ad-slot__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.ad-slot__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-slot--leaderboard {
  width: 100%;
  max-width: 728px;
  min-height: 72px;
  margin-left: auto;
  margin-right: auto;
}

.ad-slot--banner {
  width: 100%;
  min-height: 90px;
}

.ad-slot--sidebar {
  width: 100%;
  min-height: 250px;
  max-width: 300px;
}

.ad-slot--rectangle {
  width: 100%;
  max-width: 336px;
  min-height: 280px;
  margin-left: auto;
  margin-right: auto;
}

.ad-slot--filled {
  border-style: solid;
  border-color: var(--border-color);
  background: var(--color-white);
  box-shadow: var(--shadow-xs);
}

.ad-slot--filled .ad-slot__label { display: none; }

.ad-slot-wrap--center { display: flex; justify-content: center; }
.ad-slot-wrap--sidebar { margin-top: var(--space-6); }

@media (max-width: 768px) {
  .ad-slot--sidebar { max-width: none; min-height: 100px; }
  .ad-slot--leaderboard { min-height: 60px; }
}

@media print {
  .ad-slot, .ad-slot-wrap { display: none !important; }
}
