.jd-yt-wrap *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.jd-yt-wrap{max-width:680px;margin:0 auto;padding:32px 16px}
.jd-yt-wrap h1{font-size:24px;font-weight:800;color:#1e293b;display:flex;align-items:center;gap:10px;margin:0 0 28px}
.jd-yt-wrap h1 i{color:#f43f5e;font-size:28px}
.jd-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:24px;margin-bottom:20px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.jd-card h2{font-size:11px;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:.6px;margin:0 0 16px}
.jd-input{width:100%;padding:12px 14px;border:1.5px solid #e2e8f0;border-radius:10px;font-size:14px;color:#1e293b;outline:none;transition:border-color .2s;margin-bottom:12px;background:#f8fafc}
.jd-input:focus{border-color:#6366f1;background:#fff}
.jd-type-row{display:flex;gap:8px;margin-bottom:16px}
.jd-type-btn{flex:1;background:#f8fafc;border:2px solid #e2e8f0;border-radius:10px;color:#64748b;font-size:13px;font-weight:700;padding:12px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:8px}
.jd-type-btn i{font-size:18px}
.jd-type-btn.active{border-color:#6366f1;background:#eef2ff;color:#4f46e5}
.jd-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border:none;border-radius:10px;font-size:14px;font-weight:700;cursor:pointer;transition:all .2s;text-decoration:none}
.jd-btn-primary{background:#6366f1;color:#fff;width:100%;justify-content:center}
.jd-btn-primary:hover{background:#4f46e5;color:#fff}
.jd-btn-primary:disabled{background:#e2e8f0;color:#94a3b8;cursor:not-allowed}
.jd-btn-sm{padding:7px 12px;font-size:12px;border-radius:8px}
.jd-btn-danger{background:#fee2e2;color:#dc2626;border:none}
.jd-btn-danger:hover{background:#fecaca}
.jd-btn-dl{background:#dcfce7;color:#15803d;border:none}
.jd-btn-dl:hover{background:#bbf7d0;color:#15803d}
.jd-btn-refresh{background:#f1f5f9;color:#475569;border:none}
.jd-btn-cancel{background:#fff7ed;color:#c2410c;border:1.5px solid #fed7aa;font-size:13px}
.jd-btn-cancel:hover{background:#ffedd5}
.jd-file-partial{opacity:.8}
.jd-progress{margin-top:16px;display:none}
.jd-prog-label{display:flex;justify-content:space-between;font-size:12px;color:#64748b;margin-bottom:6px}
.jd-prog-bg{background:#f1f5f9;border-radius:20px;height:10px;overflow:hidden}
.jd-prog-bar{height:100%;border-radius:20px;background:linear-gradient(90deg,#6366f1,#a855f7);transition:width .4s}
@keyframes jd-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.jd-prog-bar.indeterminate{width:100%!important;background:linear-gradient(90deg,#e2e8f0 25%,#818cf8 50%,#e2e8f0 75%);background-size:200% 100%;animation:jd-shimmer 1.5s linear infinite;transition:none}
.jd-prog-title{font-size:12px;color:#64748b;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jd-status-done{color:#15803d;font-weight:700;font-size:14px;margin-top:10px;display:flex;align-items:center;gap:6px}
.jd-status-err{color:#dc2626;font-size:12px;margin-top:8px;background:#fff1f2;padding:10px;border-radius:8px;white-space:pre-wrap;border:1px solid #fecdd3;word-break:break-all}
.jd-files-list{display:flex;flex-direction:column;gap:8px}
.jd-file{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:12px 14px;display:flex;align-items:center;gap:12px}
.jd-file-icon{font-size:24px;flex-shrink:0}
.jd-file-icon.mp4{color:#6366f1}
.jd-file-icon.mp3{color:#f43f5e}
.jd-file-info{flex:1;min-width:0}
.jd-file-name{font-size:13px;font-weight:600;color:#1e293b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jd-file-meta{font-size:11px;color:#94a3b8;margin-top:2px}
.jd-file-actions{display:flex;gap:6px;flex-shrink:0}
.jd-empty{text-align:center;padding:30px;color:#94a3b8;font-size:13px}
.jd-empty i{font-size:32px;display:block;margin-bottom:8px}
.jd-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.jd-section-head h2{margin:0}
.jd-stages{display:flex;align-items:center;gap:0;margin:16px 0 10px;padding:14px 16px;background:#f8fafc;border-radius:10px;border:1px solid #f1f5f9;overflow-x:auto}
.jd-stage{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1;font-size:10px;font-weight:600;color:#cbd5e1;text-transform:uppercase;letter-spacing:.4px;position:relative;min-width:56px}
.jd-stage:not(:last-child)::after{content:'';position:absolute;right:-1px;top:12px;width:calc(100% - 28px);height:2px;background:#e2e8f0;transform:translateX(50%);z-index:0}
.jd-stage i{font-size:20px;position:relative;z-index:1}
.jd-stage.done{color:#a5b4fc}
.jd-stage.done::after{background:#a5b4fc}
.jd-stage.active{color:#6366f1}
.jd-stage.active i{animation:la-spin 1.2s infinite linear}
.jd-stage-label{font-size:12px;font-weight:600;color:#6366f1;margin-bottom:4px;min-height:16px}
.jd-elapsed{font-size:11px;color:#94a3b8;margin-bottom:8px;min-height:14px;display:none}
.jd-queue-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;background:#6366f1;color:#fff;border-radius:20px;font-size:10px;font-weight:700;margin-left:6px;vertical-align:middle}
