:root {
  color-scheme: light;
  --ink: #0b1426;
  --muted: #68758a;
  --line: #e2e8f1;
  --panel: #ffffff;
  --page: #f5f7fb;
  --blue: #1688ff;
  --blue-dark: #0873e4;
  --green: #19b67a;
  --shadow: 0 22px 70px rgba(10, 25, 52, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.hero {
  position: relative;
  min-height: 585px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(9, 20, 38, 0.96), rgba(8, 31, 69, 0.94)),
    radial-gradient(circle at 60% 10%, #174e96, #091426 64%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 130px;
  background: linear-gradient(to bottom, transparent, rgba(5, 15, 30, 0.25)); pointer-events: none;
}
.hero-glow { position: absolute; border-radius: 999px; filter: blur(4px); opacity: 0.45; pointer-events: none; }
.hero-glow-one { width: 460px; height: 460px; right: -100px; top: -160px; background: radial-gradient(circle, #237ff0, transparent 68%); }
.hero-glow-two { width: 380px; height: 380px; left: -180px; top: 180px; background: radial-gradient(circle, #0d57aa, transparent 68%); }
.nav { position: relative; z-index: 2; height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 21px; font-weight: 780; letter-spacing: -0.5px; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--blue); box-shadow: 0 10px 24px rgba(22, 136, 255, 0.25); }
.brand-mark svg { width: 23px; height: 23px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { color: #c6d2e4; text-decoration: none; font-size: 14px; font-weight: 560; transition: color 0.2s ease; }
.nav-links a:hover { color: #fff; }
.hero-content { position: relative; z-index: 2; display: flex; align-items: center; flex-direction: column; padding-top: 65px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #93caff; font-size: 13px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #46a4ff; box-shadow: 0 0 0 5px rgba(70, 164, 255, 0.12); }
h1 { margin: 0; font-size: clamp(39px, 5vw, 63px); line-height: 1.08; letter-spacing: -0.048em; }
h1 em { color: #59acff; font-style: normal; }
.hero-copy { margin: 18px 0 30px; color: #bdc9da; font-size: 17px; line-height: 1.7; }
.search-card {
  width: min(900px, 100%); display: grid; grid-template-columns: 1fr 158px; gap: 12px;
  padding: 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px;
  background: rgba(255, 255, 255, 0.98); box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28); color: var(--ink);
}
.input-wrap { position: relative; display: flex; min-width: 0; }
.input-icon { position: absolute; left: 17px; top: 50%; width: 23px; height: 23px; color: #8090a7; transform: translateY(-50%); }
.input-wrap input {
  width: 100%; height: 57px; padding: 0 80px 0 52px; border: 1px solid #d9e1eb; border-radius: 11px;
  color: var(--ink); background: #f8fafc; font-size: 15px; outline: none; transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}
.input-wrap input::placeholder { color: #8794a7; }
.input-wrap input:focus { border-color: #83bfff; background: #fff; box-shadow: 0 0 0 4px rgba(22, 136, 255, 0.11); }
.paste-button {
  position: absolute; right: 9px; top: 50%; padding: 7px 9px; border: 0; border-radius: 7px; color: #3d638e; background: #eaf3fd;
  font-size: 12px; font-weight: 650; cursor: pointer; transform: translateY(-50%);
}
.primary-button {
  height: 57px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 11px;
  color: #fff; background: linear-gradient(135deg, #1a91ff, #0876e7); box-shadow: 0 10px 24px rgba(14, 125, 238, 0.27);
  font-weight: 700; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.primary-button svg { width: 20px; height: 20px; transition: transform 0.2s; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 13px 29px rgba(14, 125, 238, 0.34); }
.primary-button:hover svg { transform: translateX(2px); }
.primary-button:disabled, .paste-button:disabled { cursor: wait; opacity: 0.7; }
.primary-button.is-loading svg { display: none; }
.form-hint { grid-column: 1 / -1; margin: -1px 0 1px; color: #758297; font-size: 12px; }
.form-hint button { padding: 0; border: 0; color: var(--blue-dark); background: transparent; font-weight: 650; cursor: pointer; }
.feature-pills { display: flex; gap: 28px; margin-top: 25px; color: #adbbce; font-size: 13px; }
.feature-pills span { display: inline-flex; align-items: center; gap: 7px; }
.feature-pills i { width: 17px; height: 17px; display: inline-grid; place-items: center; border-radius: 50%; color: #8ed3b8; background: rgba(27, 183, 122, 0.16); font-size: 10px; font-style: normal; }

.result-shell { position: relative; z-index: 3; margin-top: -54px; min-height: 54px; scroll-margin-top: 18px; }
.status-message { max-width: 900px; margin: 0 auto 28px; padding: 18px 22px; border-radius: 14px; font-size: 14px; line-height: 1.6; box-shadow: var(--shadow); }
.status-message.is-error { color: #922d35; border: 1px solid #f1c5c9; background: #fff4f5; }
.loading-card { max-width: 900px; min-height: 115px; margin-inline: auto; display: flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid #e0e7f0; border-radius: 19px; background: #fff; box-shadow: var(--shadow); }
.loading-card strong { font-size: 16px; }
.loading-card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.loader { display: flex; gap: 6px; }
.loader span { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); animation: loader-bounce 1.1s infinite ease-in-out; }
.loader span:nth-child(2) { animation-delay: 0.14s; }
.loader span:nth-child(3) { animation-delay: 0.28s; }
@keyframes loader-bounce { 0%, 70%, 100% { transform: translateY(0); opacity: 0.45; } 35% { transform: translateY(-8px); opacity: 1; } }
.result-area { max-width: 980px; margin: 0 auto 70px; padding: 28px; scroll-margin-top: 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.success-kicker { display: inline-flex; align-items: center; gap: 6px; color: #17855e; font-size: 12px; font-weight: 750; letter-spacing: 0.04em; }
.success-kicker i { width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-style: normal; font-size: 10px; }
.result-heading h2 { margin: 6px 0 0; font-size: 25px; letter-spacing: -0.025em; }
.secondary-button { padding: 10px 14px; border: 1px solid #d8e0eb; border-radius: 9px; color: #3e4d62; background: #fff; font-size: 13px; font-weight: 650; cursor: pointer; }
.result-list { display: grid; gap: 18px; }
.media-card { display: grid; grid-template-columns: minmax(270px, 0.9fr) minmax(360px, 1.1fr); overflow: hidden; border: 1px solid #dfe6ef; border-radius: 16px; background: #fff; }
.media-visual { position: relative; min-height: 300px; display: grid; place-items: center; overflow: hidden; background: #08111f; }
.media-visual video, .media-visual img { width: 100%; height: 100%; max-height: 440px; object-fit: contain; background: #08111f; }
.duration-badge, .media-count-badge { position: absolute; z-index: 2; padding: 5px 8px; border-radius: 6px; color: #fff; background: rgba(6, 12, 22, 0.78); font-size: 11px; font-weight: 700; backdrop-filter: blur(7px); }
.duration-badge { right: 10px; bottom: 10px; }
.media-count-badge { left: 10px; top: 10px; }
.media-content { min-width: 0; padding: 24px; }
.author-line { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #4ba9ff, #106ed4); font-weight: 760; }
.author-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.author-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.author-text span { color: var(--muted); font-size: 12px; }
.tweet-text { display: -webkit-box; margin: 17px 0 8px; overflow: hidden; color: #263348; font-size: 13px; line-height: 1.65; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.source-link { color: #3979ba; font-size: 12px; font-weight: 620; text-decoration: none; }
.source-link:hover { text-decoration: underline; }
.share-panel { margin-top: 14px; padding: 11px; border: 1px solid #dce8f5; border-radius: 11px; background: linear-gradient(135deg, #f6faff, #fbfdff); }
.share-panel-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.share-panel-heading > svg { width: 20px; height: 20px; flex: 0 0 auto; padding: 4px; border-radius: 6px; color: var(--blue-dark); background: #e2f0ff; }
.share-panel-title { min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.share-panel-title strong { flex: 0 0 auto; color: #203149; font-size: 11px; }
.share-panel-title span { overflow: hidden; color: #7a899c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.share-url-row { display: flex; align-items: stretch; gap: 7px; }
.share-url-field { min-width: 0; width: 100%; height: 34px; padding: 0 10px; border: 1px solid #dbe4ee; border-radius: 8px; outline: none; color: #53637a; background: #fff; font-size: 10px; text-overflow: ellipsis; }
.share-url-field:focus { border-color: #82bcfa; box-shadow: 0 0 0 3px rgba(22, 136, 255, 0.1); }
.share-action-button { height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 0 0 auto; padding: 0 11px; border: 0; border-radius: 8px; color: #fff; background: var(--blue); font-size: 10px; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.share-action-button svg { width: 14px; height: 14px; }
.share-action-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.share-action-button:disabled { cursor: wait; opacity: 0.7; }
.share-feedback { display: block; min-height: 12px; margin: 5px 1px -3px; color: #7b899b; font-size: 9px; }
.share-feedback.is-success { color: #16825d; }
.share-feedback.is-error { color: #a33b44; }
.share-panel + .format-list { margin-top: 10px; }
.format-list { display: grid; gap: 8px; margin-top: 20px; }
.format-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 11px 11px 14px; border: 1px solid #e1e7ef; border-radius: 10px; background: #fafbfd; }
.format-details { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.quality-line { display: flex; align-items: center; gap: 7px; }
.quality-line strong { font-size: 13px; }
.best-badge { padding: 3px 6px; border-radius: 5px; color: #147052; background: #e1f7ef; font-size: 9px; font-weight: 750; }
.format-meta { color: var(--muted); font-size: 10px; }
.download-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; padding: 9px 13px; border-radius: 8px; color: #fff; background: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; transition: background 0.2s, transform 0.2s; }
.download-button svg { width: 16px; height: 16px; }
.download-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.expiry-note { margin: 18px 0 0; color: #8a96a7; font-size: 11px; text-align: center; }

.confidence-strip { border-block: 1px solid #e4e9f0; background: #fff; }
.confidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 27px; }
.confidence-grid article { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 0 24px; border-right: 1px solid #e5eaf1; }
.confidence-grid article:last-child { border: 0; }
.confidence-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: var(--blue); background: #eaf4ff; }
.confidence-icon svg { width: 22px; height: 22px; }
.confidence-grid h3 { margin: 0 0 4px; font-size: 13px; }
.confidence-grid p { margin: 0; color: var(--muted); font-size: 11px; }

.how-section { padding-block: 92px 100px; }
.section-intro { max-width: 590px; margin: 0 auto 43px; text-align: center; }
.section-intro > span { color: var(--blue-dark); font-size: 12px; font-weight: 760; letter-spacing: 0.12em; text-transform: uppercase; }
.section-intro h2 { margin: 11px 0 12px; font-size: clamp(29px, 4vw, 39px); letter-spacing: -0.04em; }
.section-intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { position: relative; min-height: 245px; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; transition: transform 0.25s, box-shadow 0.25s; }
.step-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(16, 36, 66, 0.09); }
.step-card > b { position: absolute; right: 19px; top: 12px; color: #eff3f8; font-size: 55px; line-height: 1; letter-spacing: -0.08em; }
.step-icon { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; color: var(--blue); background: #eaf4ff; }
.step-icon svg { width: 25px; height: 25px; }
.step-card h3 { margin: 24px 0 9px; font-size: 17px; }
.step-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.faq-section { padding-block: 92px; background: #eef3f8; }
.faq-layout { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 85px; align-items: start; }
.faq-intro { margin: 0; text-align: left; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid #dce4ee; border-radius: 12px; background: #fff; }
.faq-list summary { position: relative; padding: 18px 52px 18px 20px; list-style: none; font-size: 14px; font-weight: 680; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; right: 21px; top: 26px; width: 12px; height: 1.5px; background: #67768a; transition: transform 0.2s; }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list details p { margin: -3px 20px 18px; padding-top: 14px; border-top: 1px solid #edf0f4; color: var(--muted); font-size: 13px; line-height: 1.7; }

footer { padding-block: 31px; color: #9facbd; background: #091426; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.footer-brand { flex: 0 0 auto; font-size: 17px; }
.footer-brand .brand-mark { width: 31px; height: 31px; border-radius: 9px; }
.footer-brand .brand-mark svg { width: 19px; height: 19px; }
.footer-inner p { max-width: 700px; margin: 0; font-size: 11px; line-height: 1.7; text-align: right; }

button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(45, 150, 255, 0.45); outline-offset: 3px; }

@media (max-width: 820px) {
  .hero { min-height: 620px; }
  .hero-content { padding-top: 60px; }
  .media-card { grid-template-columns: 1fr; }
  .media-visual { min-height: 260px; max-height: 420px; }
  .confidence-grid article { padding-inline: 13px; }
  .confidence-grid p { display: none; }
  .faq-layout { grid-template-columns: 1fr; gap: 35px; }
  .faq-intro { max-width: 620px; text-align: center; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav { height: 67px; }
  .nav-links { display: none; }
  .hero { min-height: 650px; }
  .hero-content { padding-top: 57px; }
  h1 { font-size: 41px; }
  .hero-copy { max-width: 330px; font-size: 14px; }
  .search-card { grid-template-columns: 1fr; padding: 10px; }
  .primary-button { width: 100%; }
  .feature-pills { max-width: 330px; flex-wrap: wrap; justify-content: center; gap: 10px 17px; }
  .result-shell { margin-top: -36px; }
  .loading-card { min-height: 126px; padding-inline: 22px; }
  .result-area { padding: 18px; scroll-margin-top: 14px; border-radius: 17px; }
  .result-heading { align-items: flex-start; }
  .result-heading h2 { font-size: 21px; }
  .secondary-button { padding: 8px 10px; font-size: 11px; }
  .media-content { padding: 19px; }
  .media-visual { min-height: 220px; }
  .share-panel { padding: 10px; }
  .share-panel-title { display: block; }
  .share-panel-title strong, .share-panel-title span { display: block; }
  .share-panel-title span { margin-top: 2px; }
  .share-action-button { padding-inline: 10px; }
  .share-action-button span { display: none; }
  .share-action-button svg { width: 17px; height: 17px; }
  .format-row { padding-left: 12px; }
  .confidence-grid { grid-template-columns: 1fr; gap: 16px; padding-block: 24px; }
  .confidence-grid article { justify-content: flex-start; border: 0; }
  .confidence-grid p { display: block; }
  .how-section, .faq-section { padding-block: 68px; }
  .steps { grid-template-columns: 1fr; }
  .step-card { min-height: 210px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
