/* ============================================================
   rightpanel.css — Static Unified Right Widget Advertising Panel
   ============================================================ */

#rightpanel-wrapper {
  width: 22% !important;
  max-width: 340px !important;
  min-width: 240px !important;
  height: 100% !important;
  background: #f4f6fb;
  border-left: 1px solid #e0e6f0;
}

.ads-panel {
  position: sticky !important;
  top: 110px; /* Below header */
  width: 100% !important;
  height: max-content !important; /* Flow with content */
  overflow: visible !important;
  padding: 24px 16px;
}

.ads-panel::-webkit-scrollbar { width: 4px; }
.ads-panel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.ads-panel-inner { height: auto; display: flex; flex-direction: column; }
.panel-widget { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); border: 1px solid #eef2f6; text-align: center; }
.panel-widget h4 { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 0 0 14px; }
.panel-link { display: flex; align-items: center; justify-content: center; padding: 10px 14px; margin-bottom: 8px; border-radius: 8px; font-size: 15px; color: var(--accent); background: #fff5f0; border: 1px solid #ffd4c0; text-decoration: none; font-weight: 600; transition: all 0.15s ease; }
.panel-link:hover { background: #ffe8dc; transform: translateX(2px); }
.panel-tip { background: #f0fff4; border-left: 4px solid #38a169; border-radius: 8px; padding: 16px; font-size: 16px; color: #276749; line-height: 1.6; }
.panel-sponsor { background: linear-gradient(135deg, #fff8f0, #fff3e0); border: 1px solid #fdd8b5; border-radius: 12px; padding: 20px; margin-bottom: 20px; font-size: 15px; color: #7a4000; line-height: 1.6; }
.panel-sponsor .sponsor-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: block; }
.panel-sponsor h5 { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.panel-sponsor .sponsor-btn { display: inline-block; margin-top: 12px; background: var(--accent); color: #fff; padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; }
.panel-sponsor .sponsor-btn:hover { background: var(--accent-dark); }

/* ════════════════════════════════════════════════════════════════
   <=1200px — right panel goes BELOW content, always visible
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  #rightpanel-wrapper {
    display: block !important;
    width: 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
    height: auto !important;
    border-left: none;
    border-top: 1px solid #e0e6f0;
  }

  .ads-panel {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    padding: 20px 16px;
  }

  .ads-panel-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}