.left-rail-ad {
  position: fixed;
  top: 156px;
  left: max(12px, calc((100vw - var(--container-max)) / 2 - 172px));
  width: 150px;
  min-height: 280px;
  z-index: 18;
  border: var(--border-width-ui) solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 35% 15%, rgba(255, 230, 170, .55), transparent 28%),
    linear-gradient(180deg, #ffffff, #f7fbfb);
  box-shadow: var(--shadow-card-strong);
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: hidden;
}

.left-rail-head {
  min-height: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.left-rail-head small,
.left-rail-ad small {
  color: var(--color-muted);
  font-size: 9px;
}

.left-rail-art {
  min-height: 150px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  background: linear-gradient(145deg, #eef8f7, #fff9ec);
  color: var(--color-primary);
  letter-spacing: .08em;
}

.left-rail-art span {
  font-size: 11px;
  font-weight: 700;
}

.left-rail-art strong {
  font-size: 28px;
}

.left-rail-ad p {
  margin: 0;
  color: var(--color-muted);
  font-size: 10px;
  line-height: 1.45;
}

.left-rail-ad a {
  width: fit-content;
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 800;
}

.left-rail-close {
  width: 24px;
  height: 24px;
  border: var(--border-width-ui) solid var(--color-border-strong);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--color-muted);
  display: grid;
  place-items: center;
}

.side-ad {
  min-height: 240px;
  display: grid;
  align-content: end;
  border: var(--border-width-ui) solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 17px;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 70% 20%, rgba(255,235,140,.5), transparent 28%),
    linear-gradient(160deg, #e6f9f6, #ffffff);
}

.side-ad small {
  color: #8da0aa;
  font-size: 9px;
  margin-bottom: auto;
}

.side-ad strong {
  font-size: 20px;
  max-width: 220px;
}

.side-ad p {
  color: var(--color-muted);
  font-size: 11px;
}

.side-ad button {
  width: fit-content;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: white;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
}

.footer-ad-zone {
  background: #f5fbfb;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
}

.footer-ad {
  min-height: 82px;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 85% 20%, rgba(89,198,158,.24), transparent 34%),
    linear-gradient(90deg, #e8f7f6, #f4fbf8);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.footer-ad small {
  color: var(--color-muted);
}

.footer-ad div {
  display: grid;
  gap: 3px;
}

.footer-ad strong {
  font-size: 22px;
}

.footer-ad span {
  color: var(--color-muted);
  font-size: 12px;
}

.footer-ad button {
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: white;
  min-height: 38px;
  padding: 0 18px;
  font-weight: 800;
}


.rightbar-end-sentinel {
  width: 100%;
  height: 1px;
}

.right-bottom-sticky {
  position: fixed;
  right: max(18px, calc((100vw - var(--container-max)) / 2));
  bottom: 18px;
  width: 300px;
  z-index: 35;
  border: var(--border-width-strong) solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 16px 34px rgba(18, 48, 71, .20);
  overflow: hidden;
  animation: rightBottomStickyIn 180ms ease-out;
}

.right-bottom-sticky-head {
  min-height: 32px;
  padding: 5px 8px 5px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--color-border-strong);
  background: var(--color-surface);
}

.right-bottom-sticky-head small {
  color: var(--color-muted);
  font-size: 9px;
}

.right-bottom-sticky-close {
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  color: var(--color-muted);
}

.right-bottom-sticky-art {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 230, 170, .48), transparent 30%),
    linear-gradient(145deg, #eef8f7, #fff9ec);
  color: var(--color-primary);
  letter-spacing: .08em;
}

.right-bottom-sticky-art span {
  font-size: 11px;
  font-weight: 700;
}

.right-bottom-sticky-art strong {
  font-size: 30px;
}

.right-bottom-sticky-copy {
  padding: 12px 14px 14px;
  display: grid;
  gap: 7px;
}

.right-bottom-sticky-copy strong {
  font-size: 15px;
}

.right-bottom-sticky-copy p {
  margin: 0;
  color: var(--color-muted);
  font-size: 10px;
  line-height: 1.45;
}

.right-bottom-sticky-copy a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 800;
}

@keyframes rightBottomStickyIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
