/* V5.0 稳定整合 */
:root{--green:#20e36b;--bg:#111214;--panel:#151617;--muted:#9aa0a6;}
.app-alert{margin:12px;padding:12px 14px;border-radius:12px;font-size:14px;line-height:1.7;font-weight:800}
.app-alert.error{background:#331919;color:#ff7777;border-left:4px solid #ef4444}
.app-alert.success{background:#10291b;color:#34e980;border-left:4px solid #22c55e}
button[disabled],.btn.disabled{opacity:.58!important;pointer-events:none!important;filter:grayscale(.25)}
.boost-toast{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:9999;min-width:150px;max-width:80%;padding:16px 22px;border-radius:5px;background:rgba(0,0,0,.75);color:#fff;text-align:center;font-size:19px;font-weight:900;line-height:1.35;pointer-events:none}

/* 底部导航 */
.bottom-nav{position:fixed!important;left:50%!important;bottom:0!important;transform:translateX(-50%)!important;width:min(100%,480px)!important;height:calc(78px + env(safe-area-inset-bottom))!important;padding-bottom:env(safe-area-inset-bottom)!important;background:#151617!important;border-top:1px solid rgba(255,255,255,.10)!important;z-index:1000!important;display:flex!important}
.bottom-nav a{flex:1!important;height:100%!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;color:var(--green)!important;font-size:13px!important;line-height:1.15!important;font-weight:800!important;text-decoration:none!important}
.bottom-nav b{width:30px!important;height:30px!important;flex:0 0 30px!important;border:1px solid rgba(32,227,107,.6)!important;border-radius:50%!important;display:block!important;position:relative!important;font-size:0!important;line-height:0!important;margin:0!important}
.bottom-nav a:nth-child(1) b:before{content:"";position:absolute;left:8px;bottom:7px;width:12px;height:9px;border:2px solid var(--green);border-top:0;border-radius:2px}
.bottom-nav a:nth-child(1) b:after{content:"";position:absolute;left:8px;top:7px;width:11px;height:11px;border-left:2px solid var(--green);border-top:2px solid var(--green);transform:rotate(45deg)}
.bottom-nav a:nth-child(2) b:before{content:"";position:absolute;left:6px;top:8px;width:15px;height:12px;border:2px solid var(--green);border-radius:3px}
.bottom-nav a:nth-child(2) b:after{content:"";position:absolute;left:13px;top:11px;width:0;height:0;border-left:6px solid var(--green);border-top:4px solid transparent;border-bottom:4px solid transparent}
.bottom-nav a:nth-child(3) b:before{content:"";position:absolute;left:9px;top:5px;width:8px;height:8px;border:2px solid var(--green);border-radius:50%}
.bottom-nav a:nth-child(3) b:after{content:"";position:absolute;left:6px;bottom:5px;width:14px;height:8px;border:2px solid var(--green);border-bottom:0;border-radius:10px 10px 0 0}

/* 影视专区 */
.movie-grid-page{background:#111214!important;min-height:100vh!important;padding-bottom:calc(92px + env(safe-area-inset-bottom))!important}
.movie-grid-title{height:48px;display:flex;align-items:center;justify-content:center;color:#20e36b;font-weight:950;font-size:18px;border-bottom:1px solid #242628}
.movie-grid-tab{background:#20d260;color:#fff;height:52px;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:950}
.movie-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;padding:14px 14px 24px!important}
.movie-card2{display:block!important;color:#fff!important;text-decoration:none!important;min-width:0!important}
.movie-card2 .cover{position:relative;width:100%;aspect-ratio:1.55/1;border-radius:8px;overflow:hidden;background:#222}
.movie-card2 .cover img{width:100%;height:100%;display:block;object-fit:cover}
.movie-card2 .tag{position:absolute;right:5px;top:5px;background:#22d86f;color:#fff;border-radius:3px;padding:2px 5px;font-size:11px;font-weight:900}
.movie-card2 .time{position:absolute;right:4px;bottom:4px;background:rgba(0,0,0,.65);color:#fff;border-radius:3px;padding:2px 4px;font-size:11px;min-width:52px;text-align:center}
.movie-card2 b{display:block;margin-top:7px;font-size:15px;line-height:1.2;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.movie-card2 span{display:block;margin-top:3px;font-size:12px;color:#9aa0a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 助推 */
.quick-amounts,.quick-btn{display:none!important}
.boost-banner{margin:10px 18px 0!important;border-radius:12px!important;overflow:hidden!important;max-height:260px!important}
.boost-banner img{width:100%!important;height:220px!important;object-fit:cover!important;display:block!important}
.amount-wrap{position:relative!important;margin:0 18px 18px!important;border-radius:0 0 12px 12px!important}
.amount-row input[readonly]{caret-color:transparent!important;user-select:none!important;-webkit-user-select:none!important}
.num-pad-mask{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:10000;align-items:flex-end;justify-content:center}
.num-pad{width:min(100%,480px);background:#151617;border-radius:18px 18px 0 0;padding:12px 14px calc(14px + env(safe-area-inset-bottom));box-shadow:0 -8px 28px rgba(0,0,0,.45)}
.num-pad-head{display:flex;align-items:center;justify-content:space-between;color:#20e36b;font-size:16px;font-weight:900;padding:6px 4px 12px}
.num-pad-display{height:48px;border:1px solid rgba(32,227,107,.7);border-radius:12px;color:#fff;display:flex;align-items:center;justify-content:flex-start;padding:0 14px;font-size:22px;font-weight:900;margin-bottom:12px;background:#202124}
.num-pad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.num-key{height:52px;border:0;border-radius:12px;background:#2a2b2d;color:#fff;font-size:22px;font-weight:900}
.num-key.ok{background:#20e36b;color:#061208}.num-key.del{color:#ff7777}

/* 账变滑动 */
.ledger-tabs-fixed{display:grid!important;grid-template-columns:1fr 1fr 1fr!important;gap:10px!important;padding:10px 14px!important;border-bottom:1px solid #2b2b2b!important}
.ledger-tabs-fixed a{height:40px!important;border-radius:22px!important;background:#202124!important;color:#e6edf3!important;border:1px solid rgba(255,255,255,.12)!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:15px!important;font-weight:900!important;text-decoration:none!important}
.ledger-tabs-fixed a.active{background:#20e36b!important;color:#061208!important;border-color:#20e36b!important}
.swipe-hint{text-align:center;color:#666;font-size:12px;padding:6px 0}

/* 个人中心客服 */
.customer-service-card{margin:12px;border-radius:16px;padding:14px;background:#151617;border:1px solid #2b2d30;color:#ddd}
.customer-service-card b{color:#20e36b;display:block;margin-bottom:8px}
.customer-service-card a{display:inline-flex;min-height:34px;align-items:center;justify-content:center;padding:6px 14px;border-radius:18px;background:#20e36b;color:#061208;font-weight:900;margin-right:8px;text-decoration:none}

/* 后台 */
.admin-mobile-bar{display:none}
button,.btn{border:0!important;border-radius:10px!important;min-height:38px!important;padding:8px 15px!important;font-size:14px!important;font-weight:900!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important}
.red{background:#ef4444!important;color:#fff!important}.gray{background:#64748b!important;color:#fff!important}.orange{background:#f59e0b!important;color:#111!important}.greenbtn{background:#22c55e!important;color:#fff!important}
.panel{border:1px solid #e9eef5!important;border-radius:16px!important}
table th{background:#f1f5f9!important;color:#334155!important;font-weight:950!important}
table td{color:#1f2937!important}
input,select,textarea{border:1px solid #d9e2ef!important;border-radius:10px!important;min-height:38px!important;font-size:14px!important}
.upload-box{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:14px;padding:12px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px}
.upload-box input[type=file]{background:#fff;padding:8px;border-radius:8px}
.upload-url{color:#16a34a;font-weight:900;word-break:break-all}.upload-msg{color:#ef4444;font-weight:900}
.risk-table-wrap{overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:14px}
.risk-level{display:inline-flex;align-items:center;justify-content:center;min-width:64px;height:28px;border-radius:999px;font-weight:950;font-size:13px}
.risk-ok{background:#dcfce7;color:#166534}.risk-watch{background:#fef3c7;color:#92400e}.risk-high{background:#fee2e2;color:#991b1b}
.dashboard-note,.admin-warning{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe;border-radius:12px;padding:12px 14px;margin:12px 0;line-height:1.7}
.empty-admin{padding:24px;text-align:center;color:#64748b;background:#f8fafc;border-radius:12px}
.video-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.video-actions form{display:inline-flex;margin:0}
@media(max-width:900px){
  .layout{display:block!important}.sidebar{position:fixed!important;left:-260px!important;width:250px!important;top:0!important;bottom:0!important;z-index:3000!important;transition:.22s ease}body.menu-open .sidebar{left:0!important}
  .admin-mobile-bar{display:flex!important;position:sticky;top:0;z-index:2500;height:52px;align-items:center;justify-content:space-between;background:#101827;color:#fff;padding:0 14px;box-shadow:0 6px 18px rgba(15,23,42,.18)}
  .admin-menu-btn{width:38px;height:38px;border-radius:10px;background:#1f2937;color:#fff;border:1px solid rgba(255,255,255,.12);display:flex!important;align-items:center;justify-content:center}.admin-title{font-weight:950}
  .main{margin-left:0!important;padding:14px!important}.main h1{font-size:22px!important;margin:8px 0 14px!important}.panel{padding:12px!important;overflow:auto!important}
  .grid,.today-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}.searchbar,.formline,.batchbar{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  table{min-width:900px}.risk-table-wrap table{min-width:1080px}
}
