:root{--zmga-panel-space:0px}
.zmga-wrap{display:none!important}
@media (max-width:782px){
  body.zmga-active{padding-bottom:var(--zmga-panel-space)!important}
  .zmga-wrap{
    display:block!important;
    position:fixed;
    left:50%;
    bottom:calc(8px + env(safe-area-inset-bottom,0px));
    transform:translateX(-50%);
    width:min(520px,calc(100vw - 16px));
    max-height:min(31vh,230px);
    overflow:visible;
    z-index:2147483000;
    border:1px solid rgba(30,35,45,.10);
    border-radius:15px;
    background:rgba(255,255,255,.96);
    box-shadow:0 8px 30px rgba(20,24,32,.18),0 2px 8px rgba(20,24,32,.08);
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
    padding:7px;
    box-sizing:border-box;
  }
  .zmga-wrap.zmga-hidden{display:none!important}
  .zmga-inner{
    display:flex;
    flex-direction:column;
    gap:7px;
    max-height:calc(min(31vh,230px) - 14px);
    overflow:auto;
    overscroll-behavior:contain;
    scrollbar-width:none;
  }
  .zmga-inner::-webkit-scrollbar{display:none}
  .zmga-close{
    position:absolute;
    top:-8px;
    right:-6px;
    z-index:3;
    width:25px;
    height:25px;
    padding:0;
    border:0;
    border-radius:50%;
    background:rgba(28,31,38,.90);
    color:#fff;
    font:600 18px/25px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    text-align:center;
    cursor:pointer;
    box-shadow:0 2px 8px rgba(0,0,0,.18);
    -webkit-tap-highlight-color:transparent;
  }
  .zmga-banner{
    position:relative;
    display:block;
    width:100%;
    min-height:34px;
    max-height:56px;
    overflow:hidden;
    border-radius:10px;
    background:#f4f5f7;
    text-decoration:none!important;
    -webkit-tap-highlight-color:transparent;
  }
  .zmga-banner img{
    display:block!important;
    width:100%!important;
    height:auto!important;
    max-height:56px!important;
    object-fit:contain!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:10px!important;
    background:#f4f5f7;
  }
  .zmga-ad-badge{
    position:absolute;
    left:5px;
    top:5px;
    display:inline-flex;
    align-items:center;
    height:17px;
    padding:0 5px;
    border-radius:6px;
    background:rgba(20,23,28,.54);
    color:#fff;
    font:500 10px/17px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    letter-spacing:.2px;
    pointer-events:none;
  }
  .zmga-buttons{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    width:100%;
  }
  .zmga-button{
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    min-width:0;
    min-height:35px;
    padding:7px 10px!important;
    border:1px solid rgba(37,43,54,.08)!important;
    border-radius:10px!important;
    background:linear-gradient(180deg,#fff,#f7f8fa)!important;
    color:#20242c!important;
    box-shadow:0 1px 2px rgba(20,24,32,.04);
    text-decoration:none!important;
    font:600 13px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif!important;
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
  }
  .zmga-button:nth-last-child(1):nth-child(odd){grid-column:1/-1}
  .zmga-button span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .zmga-arrow{margin-left:7px;font-size:18px;line-height:1;color:#737a86;font-weight:400}
}
@media (prefers-reduced-motion:no-preference) and (max-width:782px){
  .zmga-wrap{animation:zmga-in .25s ease-out both}
  @keyframes zmga-in{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}
}
