*{box-sizing:border-box}
:root{
  --bg:#070b15;--panel:#101a2d;--line:#2a3b57;--text:#f6f8ff;--muted:#92a9c8;
  --pink:#ff3ca6;--purple:#7651ff;--blue:#2298e6;--cyan:#21c0e8;--green:#18c47c;--danger:#c84769;
}
html{scroll-behavior:smooth}
body{
  margin:0;min-height:100vh;color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  background:
    radial-gradient(circle at 86% 10%,rgba(118,81,255,.11),transparent 30%),
    radial-gradient(circle at 8% 72%,rgba(255,60,166,.07),transparent 32%),var(--bg);
}
button,input{font:inherit}button{cursor:pointer}.hidden{display:none!important}
.topbar{height:5px;background:linear-gradient(90deg,#ff169a,#9254ff,#16bde2,#19c57c)}
.page{max-width:1460px;margin:0 auto;padding:30px 34px 46px}
.intro{
  min-height:124px;padding:25px 30px;border:1px solid #2b3a59;border-radius:24px;
  display:flex;justify-content:space-between;gap:28px;align-items:center;
  background:linear-gradient(120deg,rgba(255,60,166,.05),rgba(118,81,255,.07) 55%,rgba(33,192,232,.04)),#111a2d;
  box-shadow:0 22px 70px rgba(0,0,0,.18)
}
.eyebrow,.section-label{color:var(--pink);letter-spacing:.12em;font-size:12px;font-weight:900}
.intro h1{font-size:34px;line-height:1.08;margin:7px 0 10px}
.intro p{margin:0;color:#b7c8e1;max-width:880px;line-height:1.55}
.format-pill{white-space:nowrap;padding:12px 16px;border-radius:999px;border:1px solid #775281;background:rgba(61,47,105,.6);color:#f4eaff;font-size:13px;font-weight:900}
.stepper{max-width:760px;margin:18px auto;display:flex;align-items:center;padding:0 12px}
.step{display:flex;align-items:center;gap:8px;color:#7285a7;font-size:12px;font-weight:800;white-space:nowrap}
.step b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:#fff;background:#566b91;border:2px solid #a4b1c7}
.step.active{color:#d8e4f8}.step.active b{background:linear-gradient(135deg,#ff3ca6,#7c4cff);border-color:#ff88ce}
.step.done b{background:linear-gradient(135deg,#16b6e8,#18c47c);border-color:#73e7bd}
.line{height:1px;flex:1;min-width:34px;background:linear-gradient(90deg,#764dff,#2e7fdc,#19bba7);opacity:.85;margin:0 10px}
.workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(350px,.9fr);gap:16px}
.panel{background:rgba(15,26,45,.96);border:1px solid #293b58;border-radius:20px;box-shadow:0 20px 60px rgba(0,0,0,.13)}
.link-panel,.guide-panel{padding:22px}.panel h2{font-size:21px;margin:5px 0 5px}
.panel-title-row{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.muted{color:var(--muted)}.compact{margin:0;line-height:1.42;font-size:13px}
.status-chip{display:flex;align-items:center;gap:7px;color:#e8e8ff;background:#122941;border:1px solid #275b67;font-size:11px;font-weight:900;border-radius:999px;padding:8px 11px;white-space:nowrap}
.dot,.pulse-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(24,196,124,.12)}
.mini-tabs{display:flex;gap:8px;margin:18px 0 12px;flex-wrap:wrap}
.mini-tab{border:1px solid #354765;background:#0c1728;color:#dfe9fa;border-radius:9px;padding:9px 12px;font-size:12px;font-weight:800}
.mini-tab.active{border-color:#9a5bff;background:linear-gradient(90deg,#5836a2,#bc3d8e)}
.urlbox{display:flex;border:1px solid #405473;border-radius:13px;overflow:hidden;background:#081321}
.urlbox:focus-within{border-color:#7651ff;box-shadow:0 0 0 3px rgba(118,81,255,.12)}
.urlbox input{flex:1;min-width:0;background:transparent;border:0;outline:0;color:#fff;padding:16px 17px;font-size:15px}
.urlbox input::placeholder{color:#627695}
.urlbox button{border:0;min-width:170px;padding:9px 19px;color:#fff;font-weight:900;background:linear-gradient(110deg,#6a4bff,#8c49ee,#e4439e);display:flex;flex-direction:column;align-items:center;justify-content:center}
.btn-main{font-size:13px}.btn-sub{font-size:10px;opacity:.72;margin-top:2px;font-weight:700}.urlbox button:disabled{opacity:.55;cursor:wait}
.platforms{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.platforms span{font-size:11px;color:#8199bc;background:#0b1728;border:1px solid #223551;border-radius:999px;padding:5px 8px}
.url-hint{margin-top:12px;color:#7fa1c9;font-size:12px}
.guide-list{display:grid;gap:10px;margin-top:18px}.guide-item{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:center;background:#0b1628;border:1px solid #30445f;border-radius:12px;padding:10px}
.guide-item>b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#ff3ca6,#7651ff)}
.guide-item strong,.guide-item small{display:block}.guide-item strong{font-size:12px}.guide-item small{font-size:10px;color:#8298b9;margin-top:3px}
.auto-note{margin-top:14px;padding:12px;border:1px solid #27564f;border-radius:12px;background:#0e2929;display:flex;gap:10px;align-items:center}
.auto-note>span{font-size:20px}.auto-note strong,.auto-note small{display:block}.auto-note strong{font-size:12px}.auto-note small{font-size:10px;color:#8fbeb5;margin-top:3px}
.notice{margin-top:16px;padding:15px 17px;border:1px solid var(--danger);border-radius:14px;background:#4c1828;color:#fff;white-space:pre-wrap;line-height:1.45;font-size:13px}
.result-panel,.job-panel{padding:22px;margin-top:16px}
.result-grid{display:grid;grid-template-columns:290px 1fr;gap:24px;margin-top:14px;align-items:center}
.preview-shell{position:relative;min-height:160px;border-radius:15px;overflow:hidden;background:#081320;border:1px solid #263952}
.preview-shell img{display:block;width:100%;height:178px;object-fit:cover}
.preview-badge{position:absolute;right:10px;top:10px;background:rgba(5,14,24,.86);border:1px solid #3b5c7b;font-size:10px;font-weight:900;padding:6px 8px;border-radius:999px;color:#bfeeff}
.media-copy h2{font-size:24px;line-height:1.25;margin:0 0 10px}.meta-line{color:#91add0;font-size:13px;margin-bottom:12px}
.resolver-line{display:flex;gap:8px;align-items:center;color:#7ea0c9;font-size:11px}
.choose-note{margin-top:16px;display:inline-flex;align-items:center;gap:10px;border:1px solid #374a66;border-radius:12px;background:#0b1627;padding:10px 12px}
.choose-note>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,#6a4bff,#e943a0);font-weight:900}
.choose-note strong,.choose-note small{display:block}.choose-note strong{font-size:12px}.choose-note small{font-size:10px;color:#8098b9;margin-top:2px}
.format-section{margin-top:22px;border:1px solid #2a3c58;border-radius:16px;overflow:hidden;background:#0c1728}
.format-section-title{display:flex;align-items:center;gap:12px;padding:15px 17px;border-bottom:1px solid #2a3a54;background:#101d31}
.format-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;font-size:17px;font-weight:900}
.video-icon{background:#133f2f;color:#37e49a}.audio-icon{background:#2e2759;color:#c9a7ff}
.format-section-title h3{margin:0;font-size:18px}.format-section-title p{margin:3px 0 0;font-size:11px;color:#879dbc}
.formats-table{display:block}
.format-row{display:grid;grid-template-columns:70px 150px 1fr 145px;gap:14px;align-items:center;padding:14px 17px;border-bottom:1px solid #20324a}
.format-row:last-child{border-bottom:0}.format-row:hover{background:#101d31}
.format-badge{display:inline-grid;place-items:center;justify-self:start;min-width:48px;padding:6px 8px;border-radius:8px;background:#ffae33;color:#fff;font-weight:900;font-size:12px;text-transform:uppercase}
.format-badge.webm{background:#5c72db}.format-badge.m4a{background:#2990d7}.format-badge.mp3{background:#ffae33}
.quality-cell strong,.quality-cell small{display:block}.quality-cell strong{font-size:13px}.quality-cell small{font-size:10px;color:#879ab7;margin-top:2px}
.info-cell{font-size:12px;color:#9ab0cf}
.row-download{justify-self:end;border:0;border-radius:9px;background:#10b86e;color:#fff;font-size:12px;font-weight:900;padding:11px 16px;min-width:125px}
.row-download:hover{background:#0fca78}.row-download:disabled{opacity:.55;cursor:wait}
.row-download span{font-size:15px;margin-right:6px}.featured-row{background:linear-gradient(90deg,rgba(118,81,255,.08),rgba(24,196,124,.05))}
.job-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-top:6px}
.percent-badge{min-width:62px;text-align:center;padding:10px;border-radius:12px;font-weight:900;background:#111e34;border:1px solid #344b69;color:#bfe7ff}
.selected-file{display:flex;gap:11px;align-items:center;background:#0b1627;border:1px solid #314663;border-radius:12px;padding:11px 13px;margin-top:16px}
.selected-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,#6a4bff,#18c47c);font-size:18px;font-weight:900}
.selected-file strong,.selected-file small{display:block}.selected-file strong{font-size:12px}.selected-file small{font-size:10px;color:#8499b8;margin-top:2px}
.progress-track{height:14px;background:#07111e;border:1px solid #2d4260;border-radius:999px;overflow:hidden;margin:16px 0 14px}
.progress-track>div{width:0;height:100%;background:linear-gradient(90deg,#a24dff,#5c67ff,#21b9e0,#18c47c);transition:width .35s;border-radius:999px}
.job-status-row{display:flex;gap:12px;align-items:center;background:#0b1627;border:1px solid #263a56;border-radius:12px;padding:12px}
.spinner{width:30px;height:30px;border:3px solid #314763;border-top-color:#7c4cff;border-radius:50%;animation:spin .85s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}.job-status-row strong,.job-status-row small{display:block}.job-status-row strong{font-size:12px}.job-status-row small{font-size:10px;color:#7790b3;margin-top:3px}
.success-box{display:grid;grid-template-columns:40px 1fr auto;gap:12px;align-items:center;margin-top:12px;border:1px solid #1d6c51;background:#0d3028;border-radius:13px;padding:12px}
.success-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#17b56e;font-size:19px;font-weight:900}
.success-box strong,.success-box small{display:block}.success-box strong{font-size:12px}.success-box small{font-size:10px;color:#8dc4ae;margin-top:3px}
.download-link{color:#fff;text-decoration:none;background:#17b56e;padding:10px 14px;border-radius:9px;font-size:11px;font-weight:900;white-space:nowrap}
.footer-note{text-align:center;color:#657b9a;font-size:11px;padding:24px 14px 0}
@media(max-width:980px){
  .page{padding:20px 16px 36px}.intro{align-items:flex-start}.workspace{grid-template-columns:1fr}.step span{display:none}
  .result-grid{grid-template-columns:220px 1fr}.format-row{grid-template-columns:60px 120px 1fr 120px}
}
@media(max-width:680px){
  .intro{display:block;padding:20px}.intro h1{font-size:27px}.format-pill{display:inline-block;margin-top:18px}
  .stepper{margin:15px auto}.line{margin:0 5px}.link-panel,.guide-panel,.result-panel,.job-panel{padding:17px}
  .panel-title-row,.job-head{display:block}.status-chip{display:inline-flex;margin-top:10px}
  .urlbox{display:block;overflow:visible;border:0;background:transparent}.urlbox input{width:100%;border:1px solid #405473;border-radius:10px;background:#081321}
  .urlbox button{width:100%;min-height:52px;border-radius:10px;margin-top:8px}
  .result-grid{grid-template-columns:1fr}.preview-shell img{height:auto;max-height:230px}
  .format-row{grid-template-columns:58px 1fr;gap:9px}.info-cell{grid-column:2}.row-download{grid-column:1/-1;width:100%;justify-self:stretch}
  .success-box{grid-template-columns:38px 1fr}.download-link{grid-column:1/-1;text-align:center}
}
