/* Hide ad slots until AdSense is enabled (no dashed "Advertisement" boxes). */
.pt-ad:empty,
.pt-ad.is-placeholder,
.pl-ad:empty,
.pl-ad.is-placeholder,
[data-ad-slot]:empty,
[data-ad-slot].is-placeholder {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Pianistech AdSense units */
.pt-ad {
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 16px auto;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: center;
  box-sizing: border-box;
  align-self: stretch;
  flex: 0 0 auto;
  min-width: 0;
}
.pt-ad.is-placeholder { border-style: dashed; }
.pt-ad .adsbygoogle {
  display: block;
  width: 100% !important;
  min-height: inherit;
}
.pt-ad-top,
.pt-ad-mid,
.pt-ad-bottom {
  width: 100%;
  max-width: none; /* full width of parent (shell / container) */
}
.pt-ad-top { min-height: 90px; margin-top: 12px; margin-bottom: 18px; }
.pt-ad-mid { min-height: 100px; margin: 20px 0; }
.pt-ad-bottom { min-height: 90px; margin: 24px 0 32px; }
.pt-ad-sidebar {
  width: 100%;
  min-height: 250px;
  max-width: 300px;
  margin: 10px 14px 12px;
}
.pt-ad-placeholder {
  width: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: inherit;
  box-sizing: border-box;
}
.pt-ad-placeholder small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.22);
}
@media (max-width: 700px) {
  .pt-ad-sidebar { max-width: none; min-height: 90px; }
  .pt-ad-top, .pt-ad-mid, .pt-ad-bottom { min-height: 90px; }
}

/* Inside flex layouts (EarTrain .shell, etc.) force full-row banners */
.shell > .pt-ad,
.shell > .pt-ad-top,
.shell > .pt-ad-mid,
.shell > .pt-ad-bottom,
.container > .pt-ad,
.wrap > .pt-ad {
  width: 100%;
  max-width: none;
  align-self: stretch;
}
