/* ═══ RESET & VARS ═══ */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{
    --bg:#0a0a14;
    --surface:rgba(255,255,255,.04);
    --border:rgba(255,255,255,.07);
    --text:#e8e8ee;
    --muted:#8888a0;
    --dim:#555568;
    --accent:#818cf8;
    --accent2:#c084fc;
    --grad:linear-gradient(135deg,#818cf8 0%,#a78bfa 40%,#c084fc 100%);
    --r:14px;--r-sm:10px;
}
html,body{overflow-x:hidden}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);min-height:100dvh;line-height:1.6;-webkit-text-size-adjust:100%;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;padding-bottom:100px}
.container{max-width:820px;margin:0 auto;padding:0 24px;width:100%;box-sizing:border-box}

/* ═══ HEADER ═══ */
.header{position:sticky;top:0;z-index:100;padding:16px 0;background:rgba(10,10,20,.85);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.header .container{display:flex;align-items:center}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text)}
.logo-text{font-weight:700;font-size:18px;letter-spacing:-.3px}

/* ═══ HERO ═══ */
.hero{position:relative;z-index:1;padding:60px 0 0;text-align:center;-webkit-flex:1;flex:1}
.hero-title{font-size:clamp(28px,5.5vw,48px);font-weight:800;line-height:1.15;letter-spacing:-1px;margin-bottom:12px;word-break:break-word}
.hero-title span{background:var(--grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hero-sub{font-size:15px;color:var(--muted);margin-bottom:36px}

/* ═══ SEARCH CARD ═══ */
.search-card{max-width:640px;margin:0 auto 10px;text-align:left}
.platform-pill{display:inline-flex;align-items:center;gap:8px;padding:5px 14px;border-radius:20px;background:var(--surface);font-size:13px;color:var(--muted);margin-bottom:14px;transition:all .2s}
.platform-pill.detected{color:var(--accent);background:rgba(129,140,248,.08)}
.platform-dot{width:7px;height:7px;border-radius:50%;background:var(--dim);transition:background .2s,box-shadow .2s}
.platform-pill.detected .platform-dot{background:var(--accent);box-shadow:0 0 8px var(--accent)}

.search-row{display:-webkit-flex;display:flex;gap:10px;width:100%}
.search-input-wrap{-webkit-flex:1;flex:1;position:relative;display:-webkit-flex;display:flex;align-items:center;min-width:0;overflow:hidden}
.search-link-icon{position:absolute;left:14px;color:var(--dim);pointer-events:none;flex-shrink:0}
.search-input{
    width:100%;min-width:0;
    background:rgba(255,255,255,.04);
    border:1.5px solid var(--border);
    border-radius:var(--r);
    padding:15px 16px 15px 42px;
    font-size:16px;font-family:inherit;color:var(--text);
    outline:none;transition:border-color .2s,box-shadow .2s;
    -webkit-appearance:none;appearance:none;
}
.search-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(129,140,248,.1)}
.search-input::placeholder{color:var(--dim)}

/* ═══ BUTTONS ═══ */
.btn-glow{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;
    padding:15px 28px;border:none;border-radius:var(--r);
    font-size:14px;font-weight:600;font-family:inherit;
    color:#fff;background:var(--grad);cursor:pointer;white-space:nowrap;
    transition:transform .2s,box-shadow .2s,opacity .2s;
    box-shadow:0 4px 20px rgba(129,140,248,.25);
}
.btn-glow:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 30px rgba(129,140,248,.35)}
.btn-glow:active:not(:disabled){transform:translateY(0)}
.btn-glow:disabled{opacity:.45;cursor:not-allowed}

.btn-ghost{
    display:inline-flex;align-items:center;gap:6px;
    padding:12px 20px;border:1px solid var(--border);border-radius:var(--r-sm);
    background:var(--surface);color:var(--muted);font-size:13px;font-weight:500;font-family:inherit;
    cursor:pointer;transition:all .2s;
}
.btn-ghost:hover{background:rgba(255,255,255,.08);color:var(--text)}

/* ═══ PLATFORM ICONS ═══ */
.platforms-section{text-align:center;margin-top:32px;padding-bottom:40px}
.platform-icons{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}
.p-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:transparent;border:none;transition:all .2s;cursor:default}
.p-icon svg{width:24px;height:24px}
.p-youtube{color:#ff0000}.p-tiktok{color:#e8e8ee}.p-facebook{color:#1877f2}
.p-instagram{color:#e4405f}.p-twitter{color:#e8e8ee}.p-bilibili{color:#00a1d6}
.p-dramabox{color:#ff2d55}.p-reelshort{color:#ff6b35}
.p-icon.active{transform:scale(1.15);filter:drop-shadow(0 0 8px currentColor)}

/* ═══ RESULTS ═══ */
.results{position:relative;z-index:1;padding-bottom:32px}

/* ═══ GLASS CARD ═══ */
.glass-card{
    background:rgba(255,255,255,.04);
    border:1px solid var(--border);
    border-radius:var(--r);
    backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
    transition:transform .25s,box-shadow .25s;
}

/* ═══ VIDEO CARD ═══ */
.video-card{display:flex;overflow:hidden;margin-bottom:20px}
.vc-thumb{width:300px;min-height:170px;flex-shrink:0;overflow:hidden;background:rgba(0,0,0,.3)}
.vc-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.vc-thumb-placeholder{width:100%;height:100%;min-height:170px;display:flex;align-items:center;justify-content:center;color:var(--dim)}

.vc-body{flex:1;padding:20px;display:flex;flex-direction:column;gap:10px}
.vc-badge{display:inline-flex;padding:3px 10px;border-radius:6px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;width:fit-content}
.vc-title{font-size:15px;font-weight:600;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
.vc-meta{display:flex;flex-wrap:wrap;gap:6px;font-size:12px;color:var(--text);opacity:.7;align-items:center}
.vc-sep{color:var(--dim);font-size:10px}

.vc-controls{display:-webkit-flex;display:flex;gap:8px;margin-top:4px}
.vc-select{
    flex:1;background:#13132a;
    border:1px solid rgba(255,255,255,.1);border-radius:8px;
    padding:10px 12px;font-size:13px;color:var(--text);font-family:inherit;
    outline:none;cursor:pointer;
    -webkit-appearance:none;appearance:none;color-scheme:dark;
    transition:border-color .2s;
}
.vc-select option{background:#13132a;color:#eeeef2}
.vc-select:focus{border-color:var(--accent)}

.vc-actions{display:-webkit-flex;display:flex;gap:8px;margin-top:auto}
.btn-dl{flex:1}
.btn-save{text-decoration:none}

/* ═══ PROGRESS ═══ */
.progress-card{padding:24px;margin-bottom:20px}
.prog-top{display:flex;justify-content:space-between;margin-bottom:12px;font-size:13px}
.prog-top span:first-child{color:var(--muted)}
.prog-pct{color:var(--accent);font-weight:700;font-variant-numeric:tabular-nums}
.prog-track{height:6px;background:rgba(255,255,255,.06);border-radius:3px;overflow:hidden}
.prog-fill{height:100%;background:var(--grad);border-radius:3px;width:0%;transition:width .3s ease}

/* ═══ COMPLETE ═══ */
.complete-card{padding:40px 24px;text-align:center;margin-bottom:20px}
.done-anim{margin-bottom:16px;animation:popIn .4s ease}
.complete-card h3{font-size:18px;font-weight:600;margin-bottom:20px}
@keyframes popIn{0%{transform:scale(0);opacity:0}60%{transform:scale(1.15)}100%{transform:scale(1);opacity:1}}

/* ═══ FEATURES ═══ */
.features{position:relative;z-index:1;padding:48px 0}
.feat-grid{display:-ms-grid;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.feat-item{padding:28px 18px;text-align:center;background:rgba(255,255,255,.03);border:1px solid var(--border);border-radius:var(--r);cursor:default;transition:transform .2s,box-shadow .2s}
.feat-item:hover{transform:translateY(-4px);box-shadow:0 12px 40px -10px rgba(0,0,0,.4)}
.feat-ic{margin:0 auto 18px;width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.feat-ic svg{width:36px;height:36px}
.feat-ic-bolt{background:rgba(168,85,247,.12);color:#a855f7}
.feat-ic-shield{background:rgba(99,102,241,.12);color:#818cf8}
.feat-ic-globe{background:rgba(34,211,238,.12);color:#22d3ee}
.feat-ic-music{background:rgba(244,114,182,.12);color:#f472b6}
.feat-item h4{font-size:14px;font-weight:600;margin-bottom:6px}
.feat-item p{font-size:12px;color:var(--muted);line-height:1.5}

/* ═══ HOW IT WORKS ═══ */
.how-it-works{position:relative;z-index:1;padding:48px 0 56px;text-align:center}
.section-title{font-size:22px;font-weight:700;margin-bottom:36px}
.steps{display:-webkit-flex;display:flex;-webkit-align-items:flex-start;align-items:flex-start;-webkit-justify-content:center;justify-content:center;gap:20px;-webkit-flex-wrap:wrap;flex-wrap:wrap}
.step{text-align:center;width:160px}
.step-num{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 14px;font-size:22px;font-weight:700;background:rgba(129,140,248,.12);color:var(--accent);border:2px solid rgba(129,140,248,.25)}
.step-num-2{background:rgba(52,211,153,.12);color:#34d399;border-color:rgba(52,211,153,.25)}
.step-num-3{background:rgba(244,114,182,.12);color:#f472b6;border-color:rgba(244,114,182,.25)}
.step h4{font-size:15px;font-weight:600;margin-bottom:6px}
.step p{font-size:12px;color:var(--muted);line-height:1.4}
.step-arrow{display:flex;align-items:center;padding-top:18px;color:var(--dim)}

/* ═══ SUPPORTED PLATFORMS ═══ */
.supported-platforms{position:relative;z-index:1;padding:48px 0;text-align:center}
.sp-subtitle{font-size:14px;color:var(--muted);margin-bottom:32px}
.sp-grid{display:flex;flex-direction:column;gap:28px;text-align:left}
.sp-category h3{font-size:14px;font-weight:600;color:var(--accent);margin-bottom:12px;text-transform:uppercase;letter-spacing:.5px}
.sp-tags{display:flex;flex-wrap:wrap;gap:8px}
.sp-tag{display:inline-block;padding:6px 14px;border-radius:20px;font-size:12px;font-weight:500;color:var(--text);background:rgba(255,255,255,.05);border:1px solid var(--border);transition:all .2s;cursor:default}
.sp-tag:hover{background:rgba(129,140,248,.1);border-color:rgba(129,140,248,.25);color:var(--accent)}

/* ═══ FAQ ═══ */
.faq-section{position:relative;z-index:1;padding:48px 0 56px}
.faq-list{max-width:700px;margin:0 auto;display:flex;flex-direction:column;gap:10px}
.faq-item{background:rgba(255,255,255,.03);border:1px solid var(--border);border-radius:var(--r);overflow:hidden;transition:border-color .2s}
.faq-item[open]{border-color:rgba(129,140,248,.2)}
.faq-item summary{padding:18px 20px;font-size:14px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:space-between;color:var(--text);transition:color .2s}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:'+';font-size:20px;font-weight:300;color:var(--muted);transition:transform .2s}
.faq-item[open] summary::after{content:'−'}
.faq-item[open] summary{color:var(--accent)}
.faq-item p{padding:0 20px 18px;font-size:13px;color:var(--muted);line-height:1.7}

/* RESPONSIVE STYLES FOR FAQ AND SUPPORTED PLATFORMS ON MOBILE */
@media(max-width:600px){
    .faq-section{padding:28px 0 36px}
    .faq-list{max-width:100%}
    .faq-item summary{font-size:13px;padding:14px 16px}
    .faq-item p{font-size:12px;padding:0 16px 14px}
    .supported-platforms{padding:28px 0}
    .sp-subtitle{font-size:12px;margin-bottom:20px}
    .sp-category h3{font-size:12px}
    .sp-tag{font-size:11px;padding:5px 11px}
}

/* ═══ STATIC PAGES ═══ */
.page-content{position:relative;z-index:1;padding:48px 0 56px;-webkit-flex:1;flex:1}
.page-title{font-size:clamp(24px,4vw,36px);font-weight:800;margin-bottom:8px;background:var(--grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.page-updated{font-size:13px;color:var(--dim);margin-bottom:32px}
.page-body h2{font-size:18px;font-weight:700;color:var(--text);margin:28px 0 10px}
.page-body h3{font-size:15px;font-weight:600;color:var(--muted);margin:16px 0 8px}
.page-body p{font-size:14px;color:var(--muted);line-height:1.8;margin-bottom:12px}
.page-body ul,.page-body ol{margin:8px 0 16px 20px;font-size:14px;color:var(--muted);line-height:1.8}
.page-body li{margin-bottom:4px}
.page-body a{color:var(--accent);text-decoration:none}
.page-body a:hover{text-decoration:underline}

.contact-methods{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:24px 0}
.contact-card{background:rgba(255,255,255,.03);border:1px solid var(--border);border-radius:var(--r);padding:24px;transition:border-color .2s}
.contact-card:hover{border-color:rgba(129,140,248,.2)}
.contact-icon{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(129,140,248,.1);color:var(--accent);margin-bottom:14px}
.contact-card h3{font-size:16px;font-weight:600;margin-bottom:8px;color:var(--text)}
.contact-card p{font-size:13px;color:var(--muted);line-height:1.6;margin-bottom:8px}
.contact-card ul{margin:8px 0 0 16px;font-size:13px;color:var(--muted);line-height:1.6}
.contact-link{display:inline-block;color:var(--accent);font-weight:600;font-size:14px;text-decoration:none}
.contact-link:hover{text-decoration:underline}
.contact-note{margin-top:32px;padding:20px;background:rgba(248,113,113,.05);border:1px solid rgba(248,113,113,.15);border-radius:var(--r)}
.contact-note h3{font-size:15px;font-weight:600;color:#fca5a5;margin:0 0 8px}
.contact-note p{font-size:13px;color:var(--muted);line-height:1.7;margin:0}

@media(max-width:600px){
    .page-content{padding:28px 0 36px}
    .page-body h2{font-size:16px}
    .page-body p,.page-body ul,.page-body ol{font-size:13px}
    .contact-methods{grid-template-columns:1fr}
}

/* ═══ FOOTER ═══ */
.footer{position:relative;z-index:1;padding:24px 0;border-top:1px solid var(--border);margin-top:auto}
.footer .container{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--dim);flex-wrap:wrap;gap:12px}
.footer-links{display:flex;gap:20px}
.footer-links a{color:var(--muted);text-decoration:none;font-size:12px;transition:color .2s}
.footer-links a:hover{color:var(--text)}

/* ═══ TOAST ═══ */
.toast{position:fixed;top:80px;right:20px;padding:14px 20px;border-radius:var(--r-sm);font-size:13px;font-weight:500;z-index:1000;transform:translateX(120%);transition:transform .3s cubic-bezier(.22,1,.36,1);max-width:380px;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.toast.show{transform:translateX(0)}
.toast.success{background:rgba(52,211,153,.12);border:1px solid rgba(52,211,153,.25);color:#6ee7b7}
.toast.error{background:rgba(248,113,113,.12);border:1px solid rgba(248,113,113,.25);color:#fca5a5}

/* ═══ AD SLOTS ═══ */
.ad-slot{text-align:center;margin:0 auto;overflow:hidden}
.ad-slot-native{max-width:640px;margin:16px auto 0;min-height:0}

/* ═══ STICKY BOTTOM BANNER ═══ */
.sticky-banner{position:fixed;bottom:0;left:50%;transform:translateX(-50%);z-index:99;display:flex;align-items:center;justify-content:center;pointer-events:none}
.sticky-banner-ad{pointer-events:auto;overflow:hidden;max-width:100vw;line-height:0}
.sticky-banner-ad iframe{max-width:100vw;display:block}

/* ═══ ADBLOCK OVERLAY ═══ */
.adblock-overlay{position:fixed;inset:0;z-index:9999;background:rgba(5,5,15,.96);display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.adblock-modal{max-width:420px;width:100%;text-align:center;padding:48px 32px;background:rgba(255,255,255,.04);border:1px solid var(--border);border-radius:20px;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.adblock-icon{margin-bottom:20px}
.adblock-modal h2{font-size:22px;font-weight:700;margin-bottom:12px;color:#f87171}
.adblock-modal p{font-size:14px;color:var(--muted);line-height:1.6;margin-bottom:28px}
.adblock-modal .btn-glow{width:100%;padding:16px 24px}

/* ═══ SPINNER ═══ */
.spinner{display:inline-block;width:18px;height:18px;border:2px solid rgba(255,255,255,.2);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ═══ RESPONSIVE — TABLET ═══ */
@media(max-width:768px){
    .container{padding:0 16px}
    .hero{padding:40px 0 0}
    .feat-grid{grid-template-columns:repeat(2,1fr)}
    .steps{gap:14px}
    .step{width:140px}
    .toast{max-width:calc(100vw - 32px);right:16px}
    .sticky-banner{display:none}
    body{padding-bottom:16px}
}

/* ═══ RESPONSIVE — MOBILE ═══ */
@media(max-width:600px){
    .container{padding:0 14px}

    .header{padding:12px 0}
    .logo-text{font-size:16px}

    .hero{padding:28px 0 0}
    .hero-title{margin-bottom:8px}
    .hero-sub{font-size:13px;margin-bottom:24px}

    .search-card{margin-bottom:8px}
    .platform-pill{font-size:12px;padding:4px 12px;margin-bottom:10px}
    .search-input{padding:14px 14px 14px 38px;font-size:16px}
    .search-link-icon{left:12px;width:16px;height:16px}
    .btn-glow{padding:14px 18px;font-size:13px;flex-shrink:0}
    .btn-glow span{display:none}

    .platforms-section{margin-top:20px;padding-bottom:24px}
    .platforms-label{font-size:12px;margin-bottom:12px}
    .platform-icons{gap:12px}
    .p-icon{width:36px;height:36px}
    .p-icon svg{width:22px;height:22px}

    .video-card{flex-direction:column}
    .vc-thumb{width:100%;min-height:0;max-height:200px}
    .vc-body{padding:14px;gap:10px}
    .vc-title{font-size:14px}
    .vc-controls{flex-direction:column;gap:8px}
    .vc-select{padding:13px 12px;font-size:16px}
    .vc-actions{flex-direction:column;gap:8px}
    .btn-dl{width:100%;justify-content:center;padding:15px}
    .btn-ghost{width:100%;justify-content:center;padding:13px}

    .progress-card{padding:16px}
    .complete-card{padding:24px 14px}
    .btn-save{width:100%;justify-content:center;padding:15px}

    .features{padding:28px 0}
    .feat-grid{grid-template-columns:repeat(2,1fr);gap:10px}
    .feat-item{padding:20px 14px}
    .feat-ic{width:52px;height:52px;margin-bottom:14px}
    .feat-ic svg{width:28px;height:28px}
    .feat-item h4{font-size:13px}
    .feat-item p{font-size:11px}

    .how-it-works{padding:28px 0 36px}
    .supported-platforms{padding:28px 0}
    .sp-subtitle{font-size:12px;margin-bottom:20px}
    .sp-category h3{font-size:12px}
    .sp-tag{font-size:11px;padding:5px 11px}
    .faq-section{padding:28px 0 36px}
    .faq-item summary{font-size:13px;padding:14px 16px}
    .faq-item p{font-size:12px;padding:0 16px 14px}
    .section-title{font-size:18px;margin-bottom:24px}
    .step-arrow{display:none}
    .steps{gap:16px}
    .step{width:100%}
    .step-num{width:48px;height:48px;font-size:18px}

    .footer .container{justify-content:center;text-align:center;flex-direction:column;gap:8px}
    .footer-links{justify-content:center}

    .toast{top:54px;right:10px;left:10px;max-width:none;font-size:12px;padding:12px 14px}
}

/* ═══ RESPONSIVE — SMALL ═══ */
@media(max-width:380px){
    .container{padding:0 10px}
    .search-input{padding:12px 12px 12px 36px}
    .btn-glow{padding:12px 14px}
    .p-icon{width:32px;height:32px}
    .p-icon svg{width:20px;height:20px}
    .feat-grid{gap:8px}
    .feat-item{padding:16px 10px}
    .feat-ic{width:44px;height:44px}
    .feat-ic svg{width:24px;height:24px}
}
