    :root{
      --bg:#0b1020;
      --bg-2:#111931;
      --card:rgba(17,25,49,.78);
      --card-border:rgba(255,255,255,.08);
      --text:#eef2ff;
      --muted:#aab4d6;
      --accent:#6ea8fe;
      --accent-2:#8b5cf6;
      --good:#22c55e;
      --danger:#fb7185;
      --shadow:0 24px 80px rgba(0,0,0,.35);
      --radius:24px;
    }

    *{box-sizing:border-box}
    html,body{margin:0;padding:0}
    body{
      min-height:100vh;
      font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
      color:var(--text);
      background:
        radial-gradient(circle at top left, rgba(110,168,254,.22), transparent 26%),
        radial-gradient(circle at top right, rgba(139,92,246,.18), transparent 24%),
        linear-gradient(180deg, #09111f 0%, #0b1020 100%);
      overflow-x:hidden;
    }

    .wrap{
      width:min(1120px, calc(100% - 32px));
      margin:40px auto;
      position:relative;
      z-index:1;
    }

    .panel{
      background:var(--card);
      backdrop-filter: blur(14px);
      border:1px solid var(--card-border);
      border-radius:var(--radius);
      box-shadow:var(--shadow);
    }

    .hero{
      padding:28px;
    }

    .top-badge{
      display:inline-flex;
      align-items:center;
      gap:10px;
      padding:10px 14px;
      border-radius:999px;
      background:rgba(110,168,254,.12);
      color:#dbeafe;
      font-weight:700;
      font-size:13px;
      letter-spacing:.2px;
      border:1px solid rgba(110,168,254,.22);
    }

    h1{
      margin:18px 0 10px;
      font-size:clamp(30px, 5vw, 52px);
      line-height:1.02;
      letter-spacing:-.03em;
    }

    .lead{
      margin:0;
      color:var(--muted);
      font-size:16px;
      line-height:1.65;
      max-width:760px;
    }

    .search{
      display:grid;
      grid-template-columns:1fr auto;
      gap:14px;
      margin-top:22px;
    }

    .field{
      width:100%;
      height:58px;
      padding:0 18px;
      border-radius:18px;
      outline:none;
      border:1px solid rgba(255,255,255,.12);
      background:rgba(255,255,255,.06);
      color:var(--text);
      font-size:16px;
      transition:.2s ease;
    }

    .field::placeholder{color:#93a1c7}
    .field:focus{
      border-color:rgba(110,168,254,.62);
      box-shadow:0 0 0 4px rgba(110,168,254,.14);
      background:rgba(255,255,255,.08);
    }

    .btn, .ghost, .download-btn{
      height:58px;
      border:none;
      border-radius:18px;
      padding:0 20px;
      font-size:15px;
      font-weight:800;
      cursor:pointer;
      transition:transform .15s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease;
      text-decoration:none;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      white-space:nowrap;
    }

    .btn{
      color:#06111f;
      background:linear-gradient(135deg, var(--accent) 0%, #9cc0ff 100%);
      box-shadow:0 14px 30px rgba(110,168,254,.25);
    }

    .btn:hover, .ghost:hover, .download-btn:hover{transform:translateY(-1px)}
    .btn:disabled, .download-btn[aria-disabled="true"]{opacity:.65; cursor:not-allowed; transform:none}

    .ghost{
      color:var(--text);
      background:rgba(255,255,255,.06);
      border:1px solid rgba(255,255,255,.1);
      height:46px;
      padding:0 16px;
      border-radius:14px;
    }

    .download-btn{
      height:46px;
      padding:0 16px;
      border-radius:14px;
      color:#07111f;
      background:linear-gradient(135deg, #8b5cf6 0%, #b794ff 100%);
      box-shadow:0 12px 30px rgba(139,92,246,.22);
      min-width:146px;
    }

    .note{
      margin-top:14px;
      color:var(--muted);
      font-size:14px;
      line-height:1.55;
    }

    .status-bar{
      margin-top:18px;
      padding:16px 18px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
    }

    .status{
      color:#dbe5ff;
      font-weight:700;
      font-size:14px;
    }

    .error{
      margin-top:14px;
      padding:14px 16px;
      border-radius:16px;
      background:rgba(251,113,133,.1);
      border:1px solid rgba(251,113,133,.24);
      color:#ffd6dd;
      font-size:14px;
      line-height:1.5;
      word-break:break-word;
    }

    .hidden{display:none !important}

    .result{
      margin-top:18px;
      padding:22px;
    }

    .video-card{
      display:grid;
      grid-template-columns:300px 1fr;
      gap:20px;
      align-items:start;
    }

    .thumb-wrap{
      width:100%;
      aspect-ratio:16/9;
      border-radius:20px;
      overflow:hidden;
      background:linear-gradient(135deg, rgba(110,168,254,.18), rgba(139,92,246,.18));
      border:1px solid rgba(255,255,255,.08);
    }

    .thumb-wrap img{
      width:100%;
      height:100%;
      object-fit:cover;
      display:block;
    }

    .source{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:8px 12px;
      border-radius:999px;
      background:rgba(34,197,94,.12);
      color:#bbf7d0;
      border:1px solid rgba(34,197,94,.22);
      font-size:13px;
      font-weight:800;
      margin-bottom:12px;
    }

    .video-title{
      margin:0;
      font-size:clamp(24px, 3vw, 34px);
      line-height:1.16;
      letter-spacing:-.02em;
      word-break:break-word;
    }

    .chips{
      display:flex;
      flex-wrap:wrap;
      gap:10px;
      margin-top:14px;
    }

    .chip{
      display:inline-flex;
      align-items:center;
      min-height:38px;
      padding:0 14px;
      border-radius:999px;
      background:rgba(255,255,255,.06);
      border:1px solid rgba(255,255,255,.08);
      color:#dbe5ff;
      font-size:14px;
      font-weight:700;
    }

    .options-head{
      margin-top:24px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:14px;
      flex-wrap:wrap;
    }

    .options-head h2{
      margin:0;
      font-size:22px;
      letter-spacing:-.02em;
    }

    .options{
      margin-top:16px;
      display:grid;
      grid-template-columns:repeat(2, minmax(0, 1fr));
      gap:14px;
    }

    .option{
      background:rgba(255,255,255,.05);
      border:1px solid rgba(255,255,255,.08);
      border-radius:20px;
      padding:18px;
      display:flex;
      flex-direction:column;
      gap:14px;
    }

    .option-top{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:12px;
    }

    .option-title{
      font-size:18px;
      font-weight:900;
      line-height:1.2;
      letter-spacing:-.02em;
    }

    .option-desc{
      color:var(--muted);
      font-size:14px;
      line-height:1.5;
      margin-top:6px;
    }

    .reco{
      flex:0 0 auto;
      display:inline-flex;
      align-items:center;
      padding:8px 10px;
      border-radius:999px;
      background:rgba(110,168,254,.12);
      color:#dbeafe;
      border:1px solid rgba(110,168,254,.24);
      font-size:12px;
      font-weight:900;
    }

    .option-bottom{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      flex-wrap:wrap;
    }

    .option-meta{
      color:#cad5f8;
      font-size:13px;
      font-weight:700;
    }

    .footer-note{
      margin-top:22px;
      color:var(--muted);
      font-size:13px;
      line-height:1.6;
    }

    @media (max-width: 860px){
      .search{grid-template-columns:1fr}
      .video-card{grid-template-columns:1fr}
      .options{grid-template-columns:1fr}
    }