.lh-yandex-placement {
  box-sizing: border-box;
  position: relative;
  width: min(100%, 728px);
  min-width: 0;
  margin: 24px auto;
  padding: 28px 8px 8px;
  border: 1px solid rgba(117, 169, 194, .25);
  border-radius: 16px;
  background: linear-gradient(145deg, #152a40, #0d1c2e);
}
.lh-yandex-placement--home {
  width: min(100%, 320px);
  margin: 0 auto;
}
.lh-yandex-placement--chat { width: min(calc(100% - 32px), 728px); }
.lh-yandex-placement--home-search,
.lh-yandex-placement--game-requests { margin-block: 16px; }
.lh-yandex-placement--home-search {
  width: 100%;
  margin-inline: 0;
}
body.lh-theme-gta6 .lh-yandex-placement--home-search {
  border-color: var(--border);
  background: var(--lh-panel);
}
.lh-yandex-placement--requests {
  width: 100%;
  margin: 0;
  align-content: center;
}
.lh-yandex-placement-label {
  position: absolute;
  inset: 6px auto auto 12px;
  color: #a9bed1;
  font-size: 11px;
  line-height: 16px;
}
.lh-yandex-placement-inner {
  /* Keep a real containing block when an ad blocker hides the Yandex target.
     Without this floor, the absolutely positioned fallback is laid out
     against a zero-height parent and its text falls below the card. */
  position: relative;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lh-yandex-placement-target {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 100px;
  min-height: 100px;
  max-height: 100px;
  pointer-events: none;
}
.lh-yandex-placement--home .lh-yandex-placement-target,
.lh-yandex-placement--requests .lh-yandex-placement-target {
  height: 250px;
  min-height: 250px;
  max-height: 250px;
}
.lh-yandex-placement--home .lh-yandex-placement-inner,
.lh-yandex-placement--requests .lh-yandex-placement-inner {
  min-height: 250px;
}
.lh-yandex-placement[data-yandex-filled] .lh-yandex-placement-target { pointer-events: auto; }
.lh-yandex-placement-fallback:not([hidden]) {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
  color: #a9f5de;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  box-sizing: border-box;
}
.lh-yandex-placement-fallback:focus-visible {
  outline: 2px solid #6ae9c7;
  outline-offset: -3px;
  border-radius: 10px;
}

/* Explicit in-text placements remain part of the flow at every screen width. */
.lh-yandex-placement[data-yandex-inline] {
  width: min(100%, 728px);
  max-width: 100%;
  clear: both;
  margin: 28px auto;
  font: 14px/1.5 var(--font, sans-serif);
  text-indent: 0;
  text-align: left;
}
body.lh-theme-gta6 .lh-yandex-placement[data-yandex-inline] {
  border-color: var(--border2, #624862);
  background: var(--bg2, #24192f);
}
.lh-yandex-placement[data-yandex-inline] .lh-yandex-placement-inner {
  min-height: 250px;
  min-width: 0;
}
.lh-yandex-placement[data-yandex-inline] .lh-yandex-placement-target {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 250px;
  max-height: none;
}
.lh-yandex-placement[data-yandex-inline] .lh-yandex-placement-fallback {
  color: var(--primary, #a9f5de);
  text-decoration: none;
}
.post-view-hero > .lh-yandex-placement--post-inline { margin-block: 22px; }
@media (max-width: 600px) {
  .lh-yandex-placement[data-yandex-inline] { margin-block: 22px; padding-inline: 0; border-radius: 10px; }
}
