.ad-space{position:relative;overflow:hidden;border-radius:8px;transition:all .3s ease}.ad-space:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.1)}.ad-space .ad-label{top:-8px;right:-8px;background:#4B5563;padding:2px 6px;border-radius:12px}.ad-space .ad-label,.ad-space .sponsored-label{position:absolute;color:white;font-size:10px;z-index:10;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.ad-space .sponsored-label{top:8px;right:8px;background:rgba(0,0,0,.7);padding:4px 8px;border-radius:4px}.ad-content{width:100%;height:100%;display:flex;align-items:center;justify-content:center;text-align:center;padding:16px;border-radius:8px;background:linear-gradient(135deg,#667eea,#764ba2);color:white;position:relative;overflow:hidden}.ad-content:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(45deg,transparent 30%,rgba(255,255,255,.1) 50%,transparent 70%);animation:shimmer 3s infinite}@keyframes shimmer{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}.ad-space.banner{margin:0 auto;max-width:728px}.ad-space.banner .ad-content{background:linear-gradient(135deg,#667eea,#764ba2)}.ad-space.sidebar{margin:0 auto}.ad-space.sidebar .ad-content{background:linear-gradient(135deg,#11998e,#38ef7d);flex-direction:column;padding:24px}.ad-space.footer{margin:0 auto;max-width:728px}.ad-space.footer .ad-content{background:linear-gradient(135deg,#2c3e50,#34495e);flex-direction:row;justify-content:space-between;align-items:center;padding:16px 24px}.ad-space.sponsored .ad-content{background:linear-gradient(135deg,#ff6b6b,#ee5a24);flex-direction:column;padding:24px}.ad-button{background:white;color:#333;padding:8px 16px;border-radius:6px;font-weight:600;font-size:14px;border:none;cursor:pointer;transition:all .3s ease;text-decoration:none;display:inline-block;margin-top:12px}.ad-button:hover{background:#f8f9fa;transform:translateY(-1px);box-shadow:0 2px 8px rgba(0,0,0,.1)}.ad-title{font-size:18px;font-weight:700;margin-bottom:8px;line-height:1.2}.ad-description{font-size:14px;opacity:.9;margin-bottom:16px;line-height:1.4}@media (max-width:768px){.ad-space.banner{max-width:100%;height:60px}.ad-space.sidebar{width:100%;max-width:300px}.ad-space.footer{max-width:100%;height:80px}.ad-space.sponsored{height:120px}.ad-title{font-size:16px}.ad-button,.ad-description{font-size:12px}.ad-button{padding:6px 12px}}.ad-loading{background:#f3f4f6;border:2px dashed #d1d5db;display:flex;align-items:center;justify-content:center;color:#6b7280;font-size:14px}.ad-loading:after{content:"";width:20px;height:20px;border:2px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;animation:spin 1s linear infinite;margin-left:8px}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ad-error{background:#fef2f2;border:2px dashed #fca5a5;color:#dc2626;display:flex;align-items:center;justify-content:center;text-align:center;padding:16px}.ad-analytics{position:absolute;bottom:0;left:0;right:0;background:rgba(0,0,0,.8);color:white;padding:4px 8px;font-size:10px;display:none}.ad-space:hover .ad-analytics{display:block}.ad-placeholder{background:#f9fafb;border:2px dashed #d1d5db;color:#6b7280;display:flex;align-items:center;justify-content:center;text-align:center;padding:16px;border-radius:8px;transition:all .3s ease}.ad-placeholder:hover{background:#f3f4f6;border-color:#9ca3af;color:#4b5563}.ad-space.small{min-height:60px}.ad-space.medium{min-height:120px}.ad-space.large{min-height:180px}.ad-space.sidebar.small{width:50px;height:128px;min-height:128px}.ad-space.sidebar.medium{width:60px;height:160px;min-height:160px}.ad-space.sidebar.large{width:70px;height:192px;min-height:192px}.ad-space.banner{width:100%}.ad-space.sidebar{width:300px}.ad-space.footer,.ad-space.sponsored{width:100%}.engagement-banner{position:fixed;left:0;right:0;z-index:40;box-shadow:0 4px 6px -1px rgba(0,0,0,.1)}.engagement-banner.top{top:0}.engagement-banner.bottom{bottom:0}body.has-top-banner{padding-top:60px}body.has-bottom-banner{padding-bottom:60px}.engagement-popup{position:fixed;inset:0;z-index:50;overflow-y:auto}.engagement-popup .overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);transition:opacity .3s ease}.engagement-popup .popup-content{position:relative;background:white;border-radius:1rem;box-shadow:0 25px 50px -12px rgba(0,0,0,.25);width:100%;max-width:28rem;transform:scale(1);transition:transform .3s ease}.engagement-popup .popup-content:hover{transform:scale(1.02)}@keyframes slideInFromTop{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes slideInFromBottom{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes fadeIn{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.engagement-banner.top{animation:slideInFromTop .5s ease-out}.engagement-banner.bottom{animation:slideInFromBottom .5s ease-out}.engagement-popup .popup-content{animation:fadeIn .3s ease-out}.ad-space{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.ad-space .ad-content{text-shadow:0 1px 2px rgba(0,0,0,.1)}body{background-attachment:fixed}@media (max-width:768px){.engagement-banner{font-size:14px;padding:8px 16px}.engagement-popup .popup-content{margin:16px;max-width:calc(100% - 32px)}body.has-top-banner{padding-top:50px}body.has-bottom-banner{padding-bottom:50px}}