:root{color-scheme:light;--ink:#192735;--muted:#76818b;--line:#e0e5e9;--paper:#f6f7f9;--lime:#d2f5a0;--blue:#357ec6}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #70a6dc;outline-offset:5px}button{border:0}button,input,select{border-radius:0}[hidden]{display:none!important}.wrap{width:min(1120px,calc(100% - 80px));margin:auto}.header{height:112px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;font-weight:750;font-size:22px;letter-spacing:1px}.brand-icon{display:grid;place-items:center;background:var(--ink);color:var(--lime);width:43px;height:43px;border-radius:12px;font-size:30px;font-weight:400;line-height:1}.brand-en{display:block;font-size:9px;letter-spacing:2px;margin-top:2px;color:#7b858f}.header-note{display:flex;gap:8px;align-items:center;color:#71808a;font-size:12px}.dot{width:6px;height:6px;background:#72a64b;border-radius:50%;box-shadow:0 0 0 4px #e9f0e3}.hero{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center;padding:80px 0 76px}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:600;color:#7a8791;display:block}.intro .eyebrow{display:flex;align-items:center;gap:11px;letter-spacing:1.1px;color:#6e7e8c}.x-logo{font-size:21px;color:var(--ink)}h1{font-size:clamp(40px,5vw,65px);line-height:1.27;letter-spacing:-2px;margin:26px 0 21px;font-weight:750}.accent{position:relative;z-index:0}.accent:after{content:"";position:absolute;bottom:3px;left:0;width:100%;height:17px;background:var(--lime);z-index:-1;transform:rotate(-2deg)}.subtitle{color:#7a858e;font-size:15px;line-height:1.95;margin:0}.features{display:flex;gap:20px;font-size:11px;color:#60717c;margin-top:32px}.download-panel{background:white;border:1px solid #e2e7e9;border-radius:22px;padding:30px;box-shadow:0 18px 60px -30px #1b384c35;position:relative}.download-panel:before{content:"";position:absolute;width:66px;height:4px;top:-1px;left:30px;background:var(--lime);border-radius:0 0 3px 3px}.panel-top{display:flex;justify-content:space-between;align-items:center}.panel-symbol{width:42px;height:42px;border-radius:12px;background:#f1f5f8;display:grid;place-items:center;font-size:26px;font-weight:300}.step-tag{font-size:10px;letter-spacing:1.4px;color:#97a1a8}.download-panel h2{font-size:23px;font-weight:650;margin:25px 0 9px;letter-spacing:-.5px}.panel-description{font-size:12px;color:#8b969e;margin:0 0 29px}label{display:block;font-size:11px;color:#73818b;margin-bottom:9px}.input-wrap{display:flex;border:1px solid #dce2e7;border-radius:10px;padding:0 12px;align-items:center;height:55px;gap:9px;transition:border-color .2s,box-shadow .2s;background:#fcfdfe}.input-wrap:focus-within{border-color:#7fa7cc;box-shadow:0 0 0 3px #4e8cc311}.link-icon{color:#9ca8b2;font-size:19px}input{border:0;outline:0;width:100%;min-width:0;background:none;color:var(--ink);font-size:12px;line-height:1.5}input::placeholder{color:#a7b0b7}.paste{font-size:11px;white-space:nowrap;background:#eff2f5;color:#61717e;padding:7px 10px;border-radius:6px}.primary{background:var(--ink);color:white;border-radius:10px;padding:16px 19px;display:flex;align-items:center;justify-content:space-between;width:100%;font-size:13px;letter-spacing:.5px;margin-top:13px;transition:background .2s,transform .2s}.primary:hover{background:#2c4356}.primary:active{transform:scale(.99)}#button-icon{font-size:21px;line-height:16px;color:var(--lime)}.primary:disabled{background:#526271}.panel-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf0f2;padding-top:18px;margin-top:24px;font-size:10px;color:#9aa3ab}.text-button{background:none;padding:3px 0;color:#6383a1;font-size:11px}.text-button:hover{text-decoration:underline}.message{margin-top:13px;padding:11px 13px;font-size:12px;line-height:1.65;border-radius:8px;background:#edf4fa;color:#56728b}.message.error{background:#fff1ed;color:#a34936}.message.success{background:#edf5e5;color:#4a7033}.spinner{display:inline-block;width:15px;height:15px;border:2px solid #91a2ae;border-top-color:var(--lime);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.bottom-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:65px;border-top:1px solid var(--line);padding:32px 0 30px}.how-to ol{list-style:none;padding:0;margin:25px 0 0;display:flex;gap:26px}.how-to li{flex:1;min-width:0}.number{font-size:11px;font-family:monospace;color:#aab5bd;display:block;margin-bottom:12px}.how-to strong{font-size:12px;font-weight:600;white-space:nowrap}.how-to p{font-size:10px;color:#8d98a0;line-height:1.8;margin:7px 0 0}.recent{border-left:1px solid var(--line);padding-left:40px}.recent-heading{display:flex;justify-content:space-between;align-items:center;min-height:19px}.empty-history{font-size:12px;color:#788893;margin:27px 0 0}.empty-history span{display:block;font-size:10px;color:#a0a9b1;line-height:1.8;margin-top:9px}.history-item{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;background:none;border-bottom:1px solid #e7ebee;padding:13px 0;color:#617584}.history-item:last-child{border-bottom:0}.history-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.history-item small{font-size:10px;color:#8f9ca6;white-space:nowrap}.faq{border-top:1px solid var(--line);padding:19px 0;font-size:11px;color:#6f7f8c}.faq summary{cursor:pointer;display:flex;justify-content:space-between;list-style:none;align-items:center}.faq summary::-webkit-details-marker{display:none}.faq summary span{font-size:18px;color:#99a7b1}.faq p{font-size:12px;line-height:1.9;max-width:840px;color:#85909a}.footer{border-top:1px solid var(--line);padding:24px 0 30px;display:flex;justify-content:space-between;gap:16px;font-size:10px;color:#9aa5ad;line-height:1.8}.footer-x{padding:0 7px;color:#b4bec5}.results{border-top:1px solid var(--line);padding:35px 0 32px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.section-heading h2{font-size:22px;letter-spacing:-.5px;margin:9px 0 0}.source-link{font-size:12px;color:#64829c}.video-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:22px}.video-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:white;min-width:0}.video-preview{background:#15212b;aspect-ratio:16/9;position:relative;display:grid;place-items:center;overflow:hidden;cursor:pointer}.video-preview img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0;opacity:.87}.video-preview video{width:100%;height:100%;position:absolute;inset:0;object-fit:contain}.play{position:relative;z-index:1;border-radius:50%;background:#ffffffeb;box-shadow:0 2px 20px #0003;width:52px;height:52px;display:grid;place-items:center;font-size:18px;color:#263b4b;padding:0 0 0 3px}.duration{position:absolute;bottom:12px;right:12px;background:#0009;color:white;font-size:10px;padding:4px 7px;border-radius:4px;pointer-events:none}.card-content{padding:21px}.card-meta{display:flex;justify-content:space-between;font-size:10px;color:#8798a5;gap:10px}.card-content h3{font-size:14px;line-height:1.7;margin:10px 0 17px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;min-height:47px}.download-row{display:flex;gap:9px}.download-row select{min-width:0;flex:1;padding:11px 8px;border:1px solid #dfe5e9;border-radius:8px;background:#f9fbfc;color:#617382;font-size:11px}.download-link{border-radius:8px;background:var(--ink);color:white;padding:12px 16px;font-size:11px;white-space:nowrap}.download-link:hover{background:#354e62}.result-note{color:#96a2ab;font-size:10px;margin:17px 0 0;line-height:1.8}.toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);background:#253746;color:white;border-radius:10px;padding:13px 20px;max-width:90vw;width:max-content;font-size:12px;line-height:1.7;box-shadow:0 5px 25px #162f4c26;z-index:10}.video-error{position:relative;color:white;font-size:12px;padding:20px;text-align:center;line-height:1.8}.loading .primary{opacity:.9}

/* Shared layout safety and comfortable touch targets. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.intro, .download-panel, .recent, .how-to { min-width: 0; }
.features { flex-wrap: wrap; }
.link-icon, .dot, .brand-icon { flex-shrink: 0; }
.card-meta span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta span:last-child { flex-shrink: 0; }
.history-item span { min-width: 0; }
.input-wrap { scroll-margin-top: 24px; }
.results { scroll-margin-top: 20px; }
.quota-note { margin: 16px 0 0; font-size: 11px; line-height: 1.8; color: #6b7a86; overflow-wrap: anywhere; }
.message, .result-note, .toast { overflow-wrap: anywhere; }
.mobile-save-tip { display: none; }
.footer { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 1100px) {
  .video-list:has(.video-card:only-child) { grid-template-columns: minmax(0, 620px); }
}
@media (max-width: 1024px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 30px; padding: 50px 0; }
  .download-panel { padding: 24px; }
  .features { gap: 12px; font-size: 11px; }
  .bottom-grid { gap: 26px; }
  .recent { padding-left: 24px; }
  .how-to ol { gap: 12px; }
  .header { height: 90px; }
}
@media (max-width: 767px) {
  .wrap { width: calc(100% - 32px); }
  .header { height: 72px; gap: 16px; }
  .brand { min-height: 44px; gap: 10px; font-size: 20px; }
  .brand-icon { width: 38px; height: 38px; font-size: 28px; border-radius: 11px; }
  .brand-en { font-size: 9px; }
  .header-note { font-size: 11px; gap: 8px; line-height: 1.5; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px 0 30px; }
  .intro .eyebrow, .features { display: none; }
  h1 { font-size: clamp(27px, 7.5vw, 34px); line-height: 1.4; letter-spacing: -1px; margin: 0 0 10px; }
  h1 br { display: none; }
  .accent:after { height: 10px; bottom: 2px; }
  .subtitle { font-size: 14px; line-height: 1.8; color: #667782; }
  .subtitle br { display: none; }
  .download-panel { padding: 20px; border-radius: 18px; }
  .download-panel:before { left: 20px; }
  .panel-top { display: none; }
  .download-panel h2 { font-size: 21px; margin: 0 0 8px; }
  .panel-description { font-size: 13px; line-height: 1.7; color: #6f7e89; margin-bottom: 20px; }
  label { font-size: 14px; color: #536775; margin-bottom: 10px; }
  .input-wrap { height: 58px; gap: 6px; padding: 0 6px 0 12px; border-radius: 11px; }
  input { font-size: 16px; min-height: 48px; }
  input::placeholder { font-size: 15px; }
  .paste { min-width: 60px; min-height: 44px; padding: 8px 12px; font-size: 14px; border-radius: 8px; flex-shrink: 0; }
  .primary { min-height: 54px; font-size: 16px; padding: 15px 18px; margin-top: 12px; border-radius: 11px; }
  .panel-footer { margin-top: 18px; padding-top: 10px; gap: 12px; font-size: 12px; color: #74828d; }
  .text-button { min-height: 44px; padding: 8px 4px; font-size: 13px; }
  .quota-note { margin-top: 10px; font-size: 12px; line-height: 1.8; }
  .message { padding: 12px; font-size: 14px; line-height: 1.8; }
  .bottom-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 28px 0; }
  .eyebrow { font-size: 12px; letter-spacing: 1.2px; }
  .how-to ol { flex-direction: column; gap: 18px; margin-top: 22px; }
  .how-to li { display: flex; align-items: flex-start; gap: 14px; }
  .number { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; margin: 0; border: 1px solid #dfe6eb; border-radius: 9px; color: #6d8291; font-size: 12px; }
  .how-to strong { white-space: normal; font-size: 14px; }
  .how-to p { margin-top: 4px; font-size: 13px; color: #71818e; max-width: none; }
  .recent { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .recent-heading { min-height: 44px; }
  .empty-history { font-size: 14px; margin-top: 12px; }
  .empty-history span { font-size: 12px; color: #7b8b96; }
  .history-item { min-height: 64px; gap: 10px; }
  .history-item span { font-size: 13px; }
  .history-item small { font-size: 12px; }
  .results { padding: 24px 0 28px; scroll-margin-top: 12px; }
  .section-heading { gap: 14px; margin-bottom: 18px; }
  .section-heading h2 { font-size: 21px; }
  .source-link { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; white-space: nowrap; }
  .video-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .video-card { border-radius: 16px; }
  .video-preview.portrait { aspect-ratio: 3 / 4; max-height: 560px; max-height: min(70svh, 560px); }
  .play { width: 58px; height: 58px; }
  .duration { font-size: 12px; padding: 5px 8px; }
  .card-content { padding: 18px; }
  .card-meta { font-size: 12px; }
  .card-content h3 { font-size: 15px; line-height: 1.7; margin: 12px 0 18px; min-height: 0; }
  .download-row { flex-direction: column; gap: 10px; }
  .download-row select { width: 100%; min-height: 48px; padding: 11px 12px; font-size: 16px; border-radius: 9px; flex: none; }
  .download-link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 13px 16px; font-size: 15px; border-radius: 9px; }
  .mobile-save-tip { display: block; padding: 14px 16px; border-radius: 10px; background: #eaf0f5; font-size: 13px; color: #526c80; line-height: 1.85; margin: 18px 0 0; }
  .result-note { font-size: 12px; line-height: 1.85; color: #748491; margin-top: 14px; }
  .faq { padding: 10px 0; }
  .faq summary { min-height: 48px; font-size: 14px; gap: 12px; }
  .faq p { font-size: 13px; color: #687d8d; }
  .footer { font-size: 11px; flex-direction: column; gap: 7px; padding-top: 20px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); color: #7f8e98; }
  .toast { font-size: 14px; max-width: calc(100vw - 32px); padding: 12px 16px; bottom: calc(18px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) {
  .header-note { font-size: 10px; gap: 6px; }
  .header { gap: 10px; }
  .download-panel { padding: 16px; }
  .download-panel:before { left: 16px; }
  .link-icon { display: none; }
  .card-content { padding: 16px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 20px; }
  .video-preview { max-height: 75vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
