*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;background:#f4f6fa;color:#333;font-size:14px;line-height:1.6}
a{color:#3b7fff;text-decoration:none}a:hover{text-decoration:underline}
.container{max-width:1240px;margin:0 auto;padding:0 16px}
.page-wrap{padding-top:22px;padding-bottom:22px}
.topbar{background:#fff;border-bottom:1px solid #e6e8eb;box-shadow:0 1px 4px rgba(0,0,0,.03);position:sticky;top:0;z-index:50}
.topbar .container{display:flex;align-items:center;height:62px;gap:22px}
.topbar .logo{font-size:20px;font-weight:700;color:#3b7fff;flex-shrink:0}
.topbar .nav{display:flex;gap:4px;flex:1;overflow-x:auto}
.topbar .nav a{padding:8px 14px;border-radius:8px;color:#555;white-space:nowrap;transition:.15s}
.topbar .nav a:hover{background:#f0f4ff;text-decoration:none;color:#3b7fff}
.topbar .nav a.active{background:#3b7fff;color:#fff;box-shadow:0 2px 8px rgba(59,127,255,.35)}
.topbar .user-info{display:flex;align-items:center;gap:10px;color:#666;flex-shrink:0}
.balance-tag{background:#fff7e6;color:#d97706;padding:4px 10px;border-radius:20px;font-size:12px;font-weight:600}
.card{background:#fff;border-radius:12px;padding:22px;margin:0 0 20px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.card h2{font-size:18px;margin-bottom:16px;color:#222;font-weight:600}
table{width:100%;border-collapse:collapse;font-size:13.5px}
table th,table td{padding:11px 12px;text-align:left;border-bottom:1px solid #eef0f3;vertical-align:middle}
table th{background:#fafbfc;color:#666;font-weight:600;font-size:13px}
table tr:hover td{background:#fafcff}
table td code{background:#f5f7fa;padding:2px 6px;border-radius:4px;font-size:12px;font-family:Consolas,monospace}
.btn{display:inline-block;padding:8px 16px;background:#3b7fff;color:#fff;border-radius:8px;border:none;cursor:pointer;font-size:13.5px;transition:.15s;line-height:1.4;text-decoration:none}
.btn:hover{background:#2b6eef;text-decoration:none;box-shadow:0 4px 12px rgba(59,127,255,.3)}
.btn-sm{padding:5px 12px;font-size:12.5px;border-radius:6px}
.btn-gray{background:#8a94a6}.btn-gray:hover{background:#6c7688}
.btn-danger{background:#f04a4a}.btn-danger:hover{background:#e03b3b}
.btn-success{background:#16b364}.btn-success:hover{background:#149455}
.btn:disabled,.btn.disabled{background:#c9ced6;cursor:not-allowed;box-shadow:none}
input[type=text],input[type=password],input[type=email],input[type=number],select,textarea{width:100%;padding:10px 12px;border:1px solid #d5dae0;border-radius:8px;font-size:14px;outline:none;background:#fff;transition:.15s;font-family:inherit}
input:focus,select:focus,textarea:focus{border-color:#3b7fff;box-shadow:0 0 0 3px rgba(59,127,255,.12)}
textarea{min-height:100px;resize:vertical}
.form-row{margin-bottom:14px}.form-row label{display:block;margin-bottom:6px;color:#555;font-weight:500;font-size:13.5px}
.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#3b7fff 0%,#5f9dff 50%,#8bb6ff 100%);padding:20px}
.login-box{background:#fff;padding:38px 34px;border-radius:16px;width:100%;max-width:420px;box-shadow:0 24px 60px rgba(0,0,0,.18)}
.login-box h2{text-align:center;margin-bottom:26px;color:#222;font-size:22px;font-weight:700}
.login-box input{margin-bottom:12px}
.login-box button{width:100%;padding:12px;font-size:15px;margin-top:4px}
.login-box .tip{text-align:center;margin-top:16px;color:#888;font-size:13px}
.alert{background:#fff3f3;color:#e03b3b;padding:10px 14px;border-radius:8px;margin-bottom:14px;font-size:13px}
.alert-success{background:#ecfdf5;color:#16b364}
.alert-info{background:#eff6ff;color:#3b7fff}
.code-row{display:flex;gap:10px;align-items:stretch;margin-bottom:12px}
.code-row input[type=text]{flex:1;min-width:0;margin-bottom:0;padding:11px 16px;font-size:16px;letter-spacing:6px;text-align:center;font-family:Consolas,"Courier New",monospace;font-weight:600;color:#3b7fff}
.code-row input[type=text]::placeholder{letter-spacing:normal;font-family:inherit;font-weight:400;color:#b0b7c3;font-size:14px}
.login-box .code-row button{flex-shrink:0;width:auto;min-width:120px;margin:0;padding:0 18px;font-size:13.5px;border-radius:8px;font-weight:500;white-space:nowrap}
.pagination{margin:20px 0;text-align:center}
.pagination a,.pagination span{display:inline-block;padding:6px 11px;margin:0 2px;border:1px solid #e1e5eb;border-radius:6px;color:#555;font-size:13px;background:#fff}
.pagination a:hover{border-color:#3b7fff;color:#3b7fff;text-decoration:none}
.pagination .current{background:#3b7fff;color:#fff;border-color:#3b7fff}
.pagination .disabled{color:#bbb;background:#f7f8fa}
.pagination .pinfo{border:0;background:transparent;color:#888;margin-left:8px}
.grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.stat{background:#fff;padding:22px;border-radius:12px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.stat .num{font-size:26px;font-weight:700;color:#3b7fff;line-height:1.2}
.stat .label{color:#888;font-size:13px;margin-top:6px}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}
.badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:500}
.badge-wait{background:#fff7e6;color:#d97706}
.badge-ok{background:#ecfdf5;color:#16b364}
.badge-no{background:#fff3f3;color:#e03b3b}
.badge-info{background:#eff6ff;color:#3b7fff}
.badge-gray{background:#f0f2f5;color:#8a94a6}
.filter-bar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:16px}
.filter-bar input,.filter-bar select{width:auto;min-width:130px}
.key-cell{display:inline-flex;align-items:center;gap:6px;background:#f5f7fa;padding:4px 8px;border-radius:6px;font-family:Consolas,monospace;font-size:12px}
.key-cell .cp{cursor:pointer;color:#3b7fff;font-weight:700;user-select:none}
.key-cell .cp:hover{color:#2b6eef}
.modal-mask{display:none;position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:9999;align-items:center;justify-content:center;padding:20px}
.modal-mask.show{display:flex}
#modalMask2{z-index:10001}
.modal{background:#fff;border-radius:14px;width:100%;max-width:920px;max-height:88vh;display:flex;flex-direction:column;box-shadow:0 24px 60px rgba(0,0,0,.25)}
.modal-head{padding:16px 20px;border-bottom:1px solid #eef0f3;display:flex;justify-content:space-between;align-items:center;font-size:16px;font-weight:600;flex-shrink:0}
.modal-close{cursor:pointer;font-size:24px;color:#999;line-height:1;padding:0 4px}
.modal-close:hover{color:#333}
.modal-body{padding:20px;overflow:hidden;flex:1;display:flex;flex-direction:column;min-height:0}

/* ===== 剧集标签页：左侧固定，右侧独立滚动 ===== */
.ep-tabs{display:flex;gap:20px;flex:1;min-height:0;overflow:hidden}
.ep-tabs-left{width:220px;flex-shrink:0;border-right:1px solid #eef0f3;padding-right:12px;overflow-y:auto;overflow-x:hidden}
.ep-tabs-left::-webkit-scrollbar{width:6px}
.ep-tabs-left::-webkit-scrollbar-thumb{background:#d5dae0;border-radius:3px}
.ep-tabs-left::-webkit-scrollbar-thumb:hover{background:#b0b7c3}
.ep-tabs-right{flex:1;min-width:0;overflow-y:auto;overflow-x:hidden;padding-right:4px}
.ep-tabs-right::-webkit-scrollbar{width:8px}
.ep-tabs-right::-webkit-scrollbar-thumb{background:#d5dae0;border-radius:4px}
.ep-tabs-right::-webkit-scrollbar-thumb:hover{background:#b0b7c3}
.tab-item{display:block;padding:11px 14px;border-radius:8px;color:#555;cursor:pointer;margin-bottom:6px;border:1px solid transparent;transition:.15s;font-size:13.5px}
.tab-item:hover{background:#f0f4ff;color:#3b7fff}
.tab-item.active{background:#3b7fff;color:#fff;border-color:#3b7fff;font-weight:600}
.tab-item .cnt{font-size:11px;background:rgba(0,0,0,.08);padding:1px 6px;border-radius:10px;margin-left:6px;color:#888}
.tab-item.active .cnt{background:rgba(255,255,255,.25);color:#fff}
.tab-item .cnt.warn{background:#fff7e6;color:#d97706}
.tab-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.tab-header .name{font-weight:600;color:#3b7fff;font-size:15px}
.group-block{margin-bottom:18px;border:1px solid #eef0f3;border-radius:10px;padding:14px}
.group-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.group-name{font-weight:600;color:#3b7fff;font-size:14.5px}
.ep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.ep-item{background:#f8fafc;border:1px solid #eef0f3;border-radius:8px;padding:10px 12px;cursor:pointer;transition:.15s;position:relative}
.ep-item:hover{border-color:#3b7fff;background:#f0f6ff}
.ep-item .ep-name{font-size:13px;font-weight:600;color:#333;margin-bottom:4px}
.ep-item .ep-md5{font-size:11px;color:#8a94a6;font-family:Consolas,monospace;word-break:break-all}
.ep-item.locked{opacity:.65;cursor:not-allowed;background:#fafbfc}
.ep-item.locked:hover{border-color:#eef0f3;background:#fafbfc}
.ep-item .cp-one{position:absolute;top:6px;right:6px;font-size:11px;color:#8a94a6;background:#fff;border:1px solid #eef0f3;border-radius:5px;padding:1px 6px;cursor:pointer}
.ep-item .cp-one:hover{color:#3b7fff;border-color:#3b7fff}
.ep-item .ep-pending{display:inline-block;font-size:10.5px;background:#fff7e6;color:#d97706;padding:1px 6px;border-radius:4px;margin-left:6px;font-weight:500}
.ep-item .ep-transcode{display:inline-block;font-size:10.5px;background:#f0f2f5;color:#8a94a6;padding:1px 6px;border-radius:4px;margin-left:6px;font-weight:500}
.footer{text-align:center;padding:36px 20px;color:#999;font-size:13px}
.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%) translateY(100px);background:#333;color:#fff;padding:10px 22px;border-radius:20px;font-size:13px;opacity:0;transition:.3s;z-index:99999;pointer-events:none}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.progress-wrap{background:#f4f6fa;border-radius:8px;height:22px;position:relative;overflow:hidden;margin-top:8px}
.progress-bar{background:linear-gradient(90deg,#3b7fff,#5f9dff);height:100%;transition:width .3s;width:0}
.progress-text{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;font-size:12px;color:#fff;font-weight:600;text-shadow:0 0 4px rgba(0,0,0,.3)}
.pkg-card{background:#fff;border-radius:12px;padding:22px;box-shadow:0 1px 4px rgba(0,0,0,.05);border:2px solid transparent}
.pkg-card .title{font-size:17px;font-weight:700;color:#222;margin-bottom:6px}
.pkg-card .price{font-size:24px;color:#f04a4a;font-weight:700}
.pkg-card .price small{font-size:13px;color:#999;font-weight:400}
.pkg-card ul{list-style:none;margin:12px 0;font-size:13px;color:#666}
.pkg-card ul li{padding:3px 0}
.pkg-card ul li:before{content:"\2713 ";color:#16b364;font-weight:700}
.file-drop{border:2px dashed #d5dae0;border-radius:12px;padding:24px;text-align:center;color:#888;background:#fafbfc;transition:.15s;cursor:pointer}
.file-drop:hover,.file-drop.drag{border-color:#3b7fff;background:#f0f6ff;color:#3b7fff}
.file-list{margin-top:12px;max-height:280px;overflow-y:auto}
.file-item{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#f8fafc;border-radius:8px;margin-bottom:6px;font-size:13px}
.file-item .fname{flex:1;word-break:break-all}
.file-item .fstatus{font-size:12px}
.file-item .fstatus.ok{color:#16b364}.file-item .fstatus.err{color:#e03b3b}.file-item .fstatus.run{color:#3b7fff}
#vsPlayerWrap video{background:#000}
.msg-item{background:#fff;border:1px solid #eef0f3;border-radius:10px;padding:16px 18px;margin-bottom:12px;transition:.15s}
.msg-item:hover{border-color:#3b7fff;box-shadow:0 4px 12px rgba(59,127,255,.08)}
.msg-item.unread{border-left:4px solid #3b7fff;background:#f8fbff}
.msg-item .msg-title{font-size:15px;font-weight:600;color:#222;margin-bottom:6px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.msg-item .msg-title .badge-new{background:#f04a4a;color:#fff;font-size:10px;padding:2px 8px;border-radius:10px;font-weight:500}
.msg-item .msg-title .badge-read{background:#f0f2f5;color:#8a94a6;font-size:10px;padding:2px 8px;border-radius:10px;font-weight:500}
.msg-item .msg-time{font-size:12px;color:#999;margin-bottom:8px}
.msg-item .msg-content{color:#444;font-size:13.5px;line-height:1.7;word-break:break-word}
.msg-item .msg-content img{max-width:100%}
/* ===== Plyr 播放器 + 画质徽章 ===== */
.quality-badge{
  position:absolute;
  top:70px;
  right:20px;
  background:rgba(0,0,0,.75);
  color:#4CAF50;
  padding:6px 14px;
  border-radius:20px;
  font-size:14px;
  font-weight:bold;
  z-index:10;
  border:1px solid rgba(76,175,80,.3);
  backdrop-filter:blur(4px);
  display:none;
  user-select:none;
  pointer-events:none;
}
.quality-badge.active{display:block}
.vs-player-wrap{position:relative;width:100%;background:#000;border-radius:8px;overflow:hidden}
.vs-player-wrap video{width:100%;display:block}
/* ============================================================
 * 播放弹层专用样式：修复控制栏被遮挡
 * ============================================================ */

/* 播放弹层：恢复 block 布局，允许滚动 */
#modalBody2.player-mode {
  display: block;
  overflow-y: auto;
  padding: 16px 20px 24px;
}

/* 播放器容器 */
.vs-player-wrap {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.vs-player-wrap video {
  width: 100%;
  display: block;
  max-height: 55vh;
}

/* Plyr 主题色（绿色主色） */
.vs-player-wrap .plyr {
  --plyr-color-main: #4CAF50;
  --plyr-video-background: #000;
  --plyr-control-spacing: 10px;
  --plyr-control-icon-size: 18px;
}

/* 画质徽章 */
.vs-player-wrap .quality-badge {
  position: absolute;
  top: 70px;
  right: 20px;
  background: rgba(0,0,0,.75);
  color: #4CAF50;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  z-index: 10;
  border: 1px solid rgba(76,175,80,.3);
  backdrop-filter: blur(4px);
  display: none;
  user-select: none;
  pointer-events: none;
}
.vs-player-wrap .quality-badge.active { display: block; }