:root {
  color-scheme: light;
  --bg: #f3f5f1;
  --surface: #fffefa;
  --surface-raised: #ffffff;
  --ink: #17201a;
  --text: #25302a;
  --muted: #667067;
  --line: #dde4d9;
  --primary: #1f7a4d;
  --primary-dark: #155a38;
  --primary-soft: #e4f3e9;
  --accent: #245f73;
  --accent-soft: #e3f1f5;
  --warn: #b86b16;
  --error: #c24135;
  --shadow: 0 22px 70px rgba(39, 56, 45, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 12%, rgba(31, 122, 77, 0.13), transparent 28rem),
    radial-gradient(circle at 10% 22%, rgba(36, 95, 115, 0.1), transparent 24rem),
    linear-gradient(180deg, #f8faf5 0%, var(--bg) 58%, #eef3ef 100%);
  color: var(--text);
  font-family:
    "Avenir Next", "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(36, 95, 115, 0.4);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: 14px;
  justify-items: start;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 254, 250, 0.86);
  border-bottom: 1px solid rgba(221, 228, 217, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.header-topline,
.nav-links,
.site-footer,
.header-actions,
.lang-switch {
  display: flex;
  align-items: center;
}

.header-topline {
  width: 100%;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  justify-content: flex-start;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: var(--radius);
  object-fit: contain;
}

.brand-text {
  font-size: 16px;
}

.header-actions {
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
}

.nav-links {
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
}

.nav-links a,
.lang-button,
.quick-examples button,
.copy-button,
.open-button,
.extract-form button {
  min-height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 750;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(23, 32, 26, 0.06);
}

.lang-switch {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.lang-button {
  min-width: 52px;
  padding: 0 12px;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.lang-button.is-active {
  color: #fff;
  background: var(--ink);
}

main {
  padding-bottom: 36px;
}

.workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1220px;
  min-height: auto;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 68px) clamp(18px, 5vw, 40px) 26px;
  align-items: start;
}

.tool-panel,
.insight-rail,
.result,
.status-panel,
.platform-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.92);
}

.tool-panel {
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.08;
}

h2 {
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.2;
}

.intro {
  max-width: 650px;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.section-intro {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(31, 122, 77, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 800;
}

.extract-form {
  display: grid;
  gap: 10px;
}

.extract-form label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 8px;
  padding: 8px;
  border: 1px solid #cad6cc;
  border-radius: var(--radius);
  background: #fff;
}

.extract-form input {
  min-width: 0;
  height: 54px;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
}

.extract-form button {
  border: 0;
  color: #fff;
  background: var(--primary);
}

.extract-form button:hover {
  background: var(--primary-dark);
}

.extract-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.quick-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-examples button {
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #f7faf6;
}

.quick-examples button:hover {
  border-color: #b9c8bd;
  background: #eef5ef;
}

.status-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin-top: 22px;
  padding: 0 16px;
  color: var(--muted);
  background: #f8faf7;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(31, 122, 77, 0.12);
}

.status-panel.is-error .status-dot {
  background: var(--error);
  box-shadow: 0 0 0 5px rgba(194, 65, 53, 0.12);
}

.status-panel.is-loading .status-dot {
  background: var(--warn);
  box-shadow: 0 0 0 5px rgba(184, 107, 22, 0.14);
}

.hero-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.capability-card,
.feature-card,
.step-card,
.faq-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.capability-card {
  padding: 15px 16px;
}

.capability-card strong,
.feature-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 15px;
}

.capability-card p,
.feature-card p,
.step-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.insight-rail {
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(36, 95, 115, 0.1), transparent 45%),
    var(--surface-raised);
}

.rail-visual {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(31, 122, 77, 0.18), rgba(36, 95, 115, 0.14)),
    #edf4ee;
}

.orbital {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.orbital-a {
  width: 108px;
  height: 108px;
  top: 34px;
  left: 28px;
  background: rgba(31, 122, 77, 0.18);
}

.orbital-b {
  width: 84px;
  height: 84px;
  right: 48px;
  bottom: 42px;
  background: rgba(36, 95, 115, 0.18);
}

.phone-frame {
  width: min(230px, 78%);
  padding: 14px;
  border: 1px solid rgba(23, 32, 26, 0.16);
  border-radius: 28px;
  background: #fffefa;
  box-shadow: 0 26px 50px rgba(37, 48, 42, 0.18);
}

.phone-video {
  display: grid;
  aspect-ratio: 9 / 13;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(23, 32, 26, 0.18), transparent 38%),
    url("https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?auto=format&fit=crop&w=700&q=80");
  background-position: center;
  background-size: cover;
}

.phone-video span {
  width: 54px;
  height: 54px;
  clip-path: polygon(28% 18%, 28% 82%, 82% 50%);
  background: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.26));
}

.phone-line {
  height: 10px;
  width: 58%;
  margin-top: 12px;
  border-radius: 999px;
  background: #dbe5dc;
}

.phone-line.is-wide {
  width: 84%;
}

.rail-copy {
  padding: 24px 22px 4px;
}

.rail-copy h2 {
  margin-bottom: 12px;
}

.rail-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.rail-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.rail-metrics div {
  padding: 18px;
}

.rail-metrics div + div {
  border-left: 1px solid var(--line);
}

.rail-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.rail-metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.overview-section,
.feature-section,
.guide-section,
.result-section,
.platforms,
.faq-section,
.history-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 30px clamp(18px, 5vw, 40px);
}

.section-heading {
  margin-bottom: 18px;
}

.overview-section {
  display: grid;
  gap: 18px;
  padding-top: 0;
}

.overview-copy {
  display: grid;
  gap: 14px;
}

.overview-copy .intro {
  margin: 0;
}

.overview-copy .hero-pills {
  margin-bottom: 0;
}

.overview-copy .hero-capabilities {
  margin-top: 0;
}

.feature-grid,
.steps-grid,
.faq-list {
  display: grid;
  gap: 14px;
}

.feature-grid,
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.step-card {
  padding: 20px;
  box-shadow: 0 18px 36px rgba(39, 56, 45, 0.06);
}

.step-index {
  display: inline-flex;
  min-width: 48px;
  margin-bottom: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.step-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.result {
  display: grid;
  grid-template-columns: minmax(160px, 250px) 1fr;
  gap: 22px;
  padding: 16px;
  background: var(--surface-raised);
  box-shadow: 0 14px 36px rgba(39, 56, 45, 0.09);
}

.cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: #e6ebf0;
}

.result-content {
  min-width: 0;
  align-self: center;
}

.result-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.result-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4ef;
}

.video-list {
  display: grid;
  gap: 10px;
}

.video-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
}

.video-url {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-label {
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 800;
}

.copy-button,
.open-button {
  display: inline-grid;
  min-width: 78px;
  place-items: center;
  padding: 0 12px;
  border: 0;
}

.copy-button {
  color: #fff;
  background: var(--ink);
}

.open-button {
  color: var(--accent);
  background: var(--accent-soft);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.platform-card {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: var(--surface-raised);
}

.platform-card-head,
.platform-brand {
  display: flex;
  align-items: center;
}

.platform-card-head {
  justify-content: space-between;
  gap: 12px;
}

.platform-brand {
  min-width: 0;
  gap: 10px;
}

.platform-logo {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 26, 0.08);
  overflow: hidden;
}

.platform-logo::before {
  content: attr(data-fallback);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.platform-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-card strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
}

.platform-card span,
.platform-card small {
  color: var(--muted);
}

.platform-card small {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.platform-card.is-enabled {
  border-color: rgba(31, 122, 77, 0.36);
  background: var(--primary-soft);
}

.faq-list {
  grid-template-columns: 1fr;
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  padding: 18px 20px;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--muted);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  padding: 0 20px 18px;
}

.history-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.history-card,
.empty-history {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.empty-history {
  padding: 20px;
  color: var(--muted);
}

.history-summary {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 8px;
  min-height: 68px;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.history-summary:hover {
  background: #f8faf7;
}

.history-summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 16px;
  color: var(--muted);
  font-weight: 800;
}

.history-summary[aria-expanded="true"]::after {
  content: "-";
}

.history-summary strong,
.history-video-item strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.history-summary span,
.history-group > span {
  color: var(--muted);
  font-size: 13px;
}

.history-source {
  display: block;
  max-width: calc(100% - 36px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-detail {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 0 16px 16px;
}

.history-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.history-group a,
.history-video-item a {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--accent);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compact-copy-button {
  color: var(--text);
  background: #e8ece7;
  min-width: 44px;
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
}

.compact-copy-button:hover {
  background: #dce3dc;
}

.history-video-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.history-video-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
}

.history-video-item > div,
.history-video-content {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.site-footer {
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.82);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.footer-brand strong,
.footer-brand span,
.footer-legal p {
  display: block;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 15px;
}

.footer-brand span,
.footer-legal p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.footer-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.footer-legal {
  max-width: 680px;
  text-align: right;
}

.footer-legal p:first-child {
  color: var(--text);
  font-weight: 750;
}

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

@media (max-width: 900px) {
  .insight-rail .rail-visual {
    display: none;
  }

  .insight-rail {
    background: var(--surface-raised);
  }

  .site-header {
    justify-items: start;
    align-items: start;
  }

  .header-topline,
  .header-actions,
  .nav-links {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .lang-switch {
    margin-left: auto;
  }

  .workspace,
  .result,
  .hero-capabilities,
  .feature-grid,
  .steps-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .workspace {
    min-height: auto;
    gap: 18px;
    align-items: start;
    padding-top: 24px;
  }

  .insight-rail {
    order: 1;
  }

  .rail-copy {
    padding: 20px 18px 2px;
  }

  .feature-section,
  .guide-section,
  .result-section,
  .platforms,
  .faq-section,
  .history-section {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

@media (max-width: 700px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    justify-content: center;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-header {
    position: static;
    gap: 14px;
    min-height: auto;
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-topline {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }

  .brand {
    justify-content: flex-start;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-text {
    font-size: 15px;
  }

  .footer-legal {
    max-width: 100%;
    text-align: left;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 10px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    justify-content: flex-start;
    min-height: 34px;
    padding: 0 2px;
    font-size: 12px;
    font-weight: 700;
  }

  .input-row,
  .video-item,
  .history-video-item {
    grid-template-columns: 1fr;
  }

  .lang-switch {
    padding: 3px;
    margin-left: auto;
  }

  .lang-button {
    min-width: 42px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .workspace {
    gap: 16px;
    padding: 18px 14px 18px;
  }

  .tool-panel {
    padding: 18px 16px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 12px;
  }

  h1 {
    font-size: 24px;
    line-height: 1.12;
  }

  h2 {
    font-size: 20px;
  }

  .intro,
  .section-intro,
  .capability-card p,
  .feature-card p,
  .step-card p,
  .faq-item p,
  .rail-copy p {
    font-size: 13px;
    line-height: 1.6;
  }

  .hero-pills {
    gap: 8px;
    margin-bottom: 16px;
  }

  .hero-pill {
    width: 100%;
    min-height: 34px;
    justify-content: center;
    font-size: 12px;
  }

  .hero-capabilities {
    gap: 10px;
    margin-top: 14px;
  }

  .capability-card {
    padding: 13px 14px;
  }

  .capability-card strong,
  .feature-card strong {
    font-size: 14px;
  }

  .extract-form button {
    height: 48px;
  }

  .extract-form label,
  .result-meta,
  .history-summary span,
  .history-group > span,
  .rail-metrics span {
    font-size: 12px;
  }

  .input-row {
    gap: 6px;
    padding: 6px;
  }

  .extract-form input {
    height: 48px;
    padding: 0 12px;
    font-size: 14px;
  }

  .quick-examples {
    gap: 8px;
    margin-top: 12px;
  }

  .quick-examples button,
  .copy-button,
  .open-button {
    min-height: 40px;
    font-size: 13px;
  }

  .status-panel {
    min-height: 48px;
    margin-top: 18px;
    padding: 0 14px;
    font-size: 13px;
  }

  .rail-copy {
    padding: 16px 16px 0;
  }

  .rail-metrics div {
    padding: 14px 16px;
  }

  .rail-metrics strong {
    font-size: 20px;
  }

  .feature-section,
  .guide-section,
  .result-section,
  .platforms,
  .faq-section,
  .history-section {
    padding: 20px 14px;
  }

  .section-heading {
    margin-bottom: 14px;
  }

  .feature-grid,
  .steps-grid,
  .faq-list,
  .platform-grid,
  .history-list {
    gap: 10px;
  }

  .feature-card,
  .step-card {
    padding: 16px;
    box-shadow: 0 12px 24px rgba(39, 56, 45, 0.05);
  }

  .step-index {
    min-width: 42px;
    margin-bottom: 12px;
    font-size: 11px;
  }

  .step-card h3 {
    font-size: 17px;
  }

  .result {
    gap: 14px;
    padding: 14px;
  }

  .result-title {
    font-size: 17px;
  }

  .result-meta {
    gap: 6px;
    margin-bottom: 14px;
  }

  .result-meta span {
    padding: 4px 8px;
  }

  .video-item,
  .platform-card,
  .history-summary,
  .history-detail,
  .history-video-item,
  .empty-history,
  .faq-item summary,
  .faq-item p {
    font-size: 13px;
  }

  .video-item,
  .platform-card,
  .history-video-item {
    padding: 12px;
  }

  .platform-card {
    min-height: auto;
  }

  .platform-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .platform-brand {
    gap: 8px;
  }

  .platform-logo {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .platform-card strong {
    font-size: 15px;
  }

  .faq-item summary {
    padding: 15px 16px;
  }

  .faq-item p {
    padding: 0 16px 16px;
  }

  .history-summary {
    min-height: 62px;
    padding: 13px 14px;
  }

  .history-detail {
    gap: 12px;
    padding: 0 14px 14px;
  }

  .site-footer {
    gap: 16px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .footer-brand span,
  .footer-legal p {
    font-size: 12px;
  }

  .video-url,
  .history-group a,
  .history-video-item a {
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    word-break: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rail-metrics {
    grid-template-columns: 1fr;
  }

  .rail-metrics div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  .tool-panel {
    padding: 16px 14px;
  }

  .feature-card,
  .step-card,
  .capability-card,
  .platform-card {
    padding: 14px;
  }

  .result {
    padding: 12px;
  }

  .status-panel {
    padding: 0 12px;
  }

  .nav-links a {
    font-size: 11px;
    letter-spacing: -0.02em;
  }

  .lang-button {
    min-width: 40px;
    padding: 0 8px;
  }
}
