:root {
    --bg: #fdfaf5;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --surface-solid: #ffffff;
    --line: #ebe5dc;
    --line-soft: rgba(235, 229, 220, 0.95);
    --text: #4c3a32;
    --text-strong: #3f2f29;
    --text-muted: #7d6e66;
    --mint: #bfe7c8;
    --mint-strong: #98d6aa;
    --sky: #d9ecf8;
    --peach: #f8d2c1;
    --success: #8dcda4;
    --danger: #e49a9a;
    --shadow: 0 20px 60px rgba(153, 128, 101, 0.12);
    --shadow-soft: 0 10px 30px rgba(153, 128, 101, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 20px;
    --radius-pill: 999px;
    --container: 1320px;
  }
  
  * {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    min-height: 100vh;
    padding: 24px 16px 48px;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
      radial-gradient(circle at top left, rgba(248, 210, 193, 0.45), transparent 28%),
      radial-gradient(circle at top right, rgba(217, 236, 248, 0.6), transparent 30%),
      radial-gradient(circle at 50% 0%, rgba(191, 231, 200, 0.35), transparent 24%),
      linear-gradient(180deg, #fffdf9 0%, #faf6ef 100%);
  }
  
  .page {
    width: 100%;
  max-width: var(--container);
  margin: 0 auto 80px;
  }
  
  .card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
  }
  
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 4px 28px;
  }
  
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-strong);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  
  .brand-badge {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 1px solid rgba(235, 229, 220, 0.9);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff7ef 0%, #fff 100%);
    box-shadow: var(--shadow-soft);
  }
  
  .brand-badge svg {
    display: block;
    width: 28px;
    height: 28px;
  }
  
  .nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
  }
  
  .nav a {
    color: inherit;
    text-decoration: none;
  }
  
  .hero {
    margin-bottom: 24px;
  }
  
  .hero-card {
    position: relative;
    overflow: hidden;
    padding: 36px 44px 56px;
  }

  .hero-stats {
    position: absolute;
    top: 18px;
    right: 30px;
    z-index: 2;
  }
  
  .hero-stats .stats-pill {
    display: inline-flex;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line-soft);
  }
  
  .hero-stats .stat-box {
    min-width: 96px;
    padding: 6px 10px;
    border-radius: 999px;
    background: none;
    box-shadow: none;
    text-align: center;
  }
  
  .hero-stats .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
  }
  
  .hero-stats .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-strong);
  }
  
  .hero-card::before {
    content: "";
    position: absolute;
    inset: -10% auto auto -10%;
    width: 280px;
    height: 280px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(248, 210, 193, 0.38), transparent 62%);
  }
  
  .hero-card::after {
    content: "";
    position: absolute;
    inset: auto -6% -8% auto;
    width: 320px;
    height: 320px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(217, 236, 248, 0.42), transparent 64%);
  }
  
  .hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 260px;
    gap: 34px;
    align-items: center;
  }
  
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
  }
  
  h1 {
    margin: 0 0 18px;
    max-width: 820px;
    color: var(--text-strong);
    font-family: Manrope, Inter, sans-serif;
    font-size: 60px;
    line-height: 0.98;
    letter-spacing: -0.05em;
  }
  
  .subtitle {
    margin: 0 0 30px;
    max-width: 840px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.65;
  }
  
  .input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 16px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 25px rgba(162, 137, 108, 0.08);
  }
  
  .input-wrap input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 16px 26px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-strong);
    font-size: 20px;
  }
  
  .input-wrap input::placeholder {
    color: #b19f95;
  }
  
  .main-button {
    flex: 0 0 400px;
    border: none;
    border-radius: var(--radius-pill);
    padding: 18px 26px;
    background: linear-gradient(180deg, #7cc796 0%, #4aa86f 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow:
      0 12px 28px rgba(140, 201, 160, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.12s ease, filter 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  }
  
  .main-button:hover {
    filter: brightness(0.98);
    box-shadow:
      0 14px 30px rgba(140, 201, 160, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.38);
  }
  
  .main-button:active {
    transform: translateY(1px);
  }
  
  .main-button:disabled {
    opacity: 0.72;
    cursor: not-allowed;
  }
  
  .microcopy {
    margin: 0;
    max-width: 860px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.65;
  }
  
  .hero-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
  }
  
  .float-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
  }
  
  .float-badge.top-left {
    top: 14px;
    left: 0;
  }
  
  .float-badge.bottom-right {
    right: 0;
    bottom: 14px;
  }
  
  .hero-platforms {
    display: none;
  }
  
  .llama-wrap {
    position: relative;
    z-index: 1;
    width: 240px;
    height: 240px;
    filter: drop-shadow(0 18px 30px rgba(130, 109, 86, 0.12));
  }
  
  .llama-wrap svg {
    display: block;
    width: 100%;
    height: 100%;
  }
  
  .spark {
    animation: floaty 5.5s ease-in-out infinite;
    transform-origin: center;
  }
  
  .llama-body {
    animation: bob 4s ease-in-out infinite;
    transform-origin: center;
  }
  
  .badge-float-1 {
    animation: floaty 6s ease-in-out infinite;
  }
  
  .badge-float-2 {
    animation: floaty 6.8s ease-in-out infinite;
  }
  
  .status-pulse {
    animation: pulse 1.8s ease-in-out infinite;
  }
  
  .status-panel-inline {
    margin: 6px 0 22px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(250, 246, 239, 0.88) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  
  .status-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px 22px;
  }
  
  .status-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fff8f2 100%);
    box-shadow: var(--shadow-soft);
    font-size: 22px;
  }
  
  .status-copy {
    min-width: 0;
  }
  
  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 800;
  }
  
  .status-badge.idle {
    background: #fff8ef;
    color: #9a7b61;
    border-color: #f0dfcc;
  }
  
  .status-badge.loading {
    background: #eef7fc;
    color: #5c88a3;
    border-color: #d8e9f2;
  }
  
  .status-badge.ready {
    background: #eefaf0;
    color: #5f8f6d;
    border-color: #d8eadc;
  }
  
  .status-badge.success {
    background: #eaf8ee;
    color: #4d8a61;
    border-color: #d2ead9;
  }
  
  .status-badge.error {
    background: #fff3f3;
    color: #a06060;
    border-color: #f0d1d1;
  }
  
  .status-title {
    margin: 0 0 6px;
    color: var(--text-strong);
    font-family: Manrope, Inter, sans-serif;
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: -0.02em;
  }
  
  .status-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
  }
  
  .status-progress {
    display: none;
    width: 100%;
    height: 10px;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #e6dccf;
    border-radius: var(--radius-pill);
    background: #efe7dc;
  }
  
  .status-progress.show {
    display: block;
  }
  
  .status-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, #b8e4c2 0%, #95d5a6 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: width 0.35s ease;
  }
  
  .error {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #f2d0d0;
    border-radius: 18px;
    background: #fff4f4;
    box-shadow: var(--shadow-soft);
    color: #965c5c;
    white-space: pre-wrap;
  }
  
  .error.show {
    display: block;
  }
  
  .result {
    display: none;
  margin-top: 26px;
  }
  
  .result.show {
    display: block;
  }
  
  .result-panel {
    padding: 36px 44px 32px;
  }
  
  .section-title {
    margin: 0 0 16px;
    color: var(--text-strong);
    font-family: Manrope, Inter, sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  
  .video-head {
    display: grid;
  grid-template-columns: minmax(0, 1.4fr) 320px;
  gap: 22px;
  align-items: start;
  margin-bottom: 18px;
  }
  
.video-main {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

  .thumb-wrap {
    position: relative;
    display: grid;
    place-items: center;
  min-height: 140px;
    overflow: hidden;
  padding: 8px;
    border: 1px solid var(--line);
  border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(246, 239, 230, 0.8) 100%);
    box-shadow: var(--shadow-soft);
  }
  
  .thumb {
    position: relative;
    z-index: 2;
    display: none;
  width: 100%;
  max-width: 260px;
    aspect-ratio: 16 / 9;
  border-radius: 18px;
    object-fit: cover;
  }
  
  .thumb-placeholder {
    position: absolute;
    inset: 10px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background:
      radial-gradient(circle at 28% 30%, rgba(217, 236, 248, 0.8), transparent 24%),
      radial-gradient(circle at 68% 36%, rgba(248, 210, 193, 0.8), transparent 22%),
      linear-gradient(180deg, #faf6ef 0%, #efe8de 100%);
    color: #8e7f75;
    font-size: 54px;
  }
  
  .video-title {
    margin: 0 0 10px;
    color: var(--text-strong);
    font-family: Manrope, Inter, sans-serif;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.03em;
  }
  
  .meta {
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 15px;
  }
  
  .hint {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #dbe7ef;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(217, 236, 248, 0.32) 0%, rgba(255, 255, 255, 0.75) 100%);
    color: #6f625b;
    font-size: 14px;
    line-height: 1.65;
  }
  
  .formats {
    display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 560px;
    overflow-y: auto;
    padding-right: 4px;
  }
  
  .formats::-webkit-scrollbar {
    width: 10px;
  }
  
  .formats::-webkit-scrollbar-track {
    border-radius: var(--radius-pill);
    background: #efe8de;
  }
  
  .formats::-webkit-scrollbar-thumb {
    border-radius: var(--radius-pill);
    background: #d2c4b6;
  }
  
  .format-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 250, 242, 0.84) 100%);
    box-shadow: var(--shadow-soft);
    animation: fadeUp 0.45s ease both;
  }
  
  .format-left {
    min-width: 0;
  }
  
  .quality {
    margin-bottom: 8px;
    color: var(--text-strong);
    font-family: Manrope, Inter, sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
  }
  
  .line {
    margin-bottom: 6px;
    color: #6c5f58;
    font-size: 14px;
    line-height: 1.5;
  }
  
  .muted {
    color: var(--text-muted);
  }
  
  .download-btn {
    min-width: 150px;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, #6fbe89 0%, #3e9a63 100%);
    box-shadow:
      0 12px 28px rgba(102, 184, 130, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.34);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.08s ease, box-shadow 0.2s ease, filter 0.2s ease;
  }
  
  .download-btn:hover {
    filter: brightness(0.96);
    box-shadow:
      0 14px 30px rgba(102, 184, 130, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.38);
  }
  
  .download-btn:active {
    transform: translateY(1px);
  }
  
  .download-btn:disabled {
    opacity: 0.8;
    cursor: wait;
  }
  
  .stats-card-horizontal {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto auto;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    padding: 18px 22px;
  }
  
  .stats-card-horizontal::after {
    display: none;
  }
  
  .stats-main {
    padding-top: 4px;
  }
  
  .stats-main h2 {
    margin: 0 0 6px;
    color: var(--text-strong);
    font-family: Manrope, Inter, sans-serif;
    font-size: 20px;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }
  
  .stats-main p {
    margin: 0;
    max-width: 720px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
  }
  
  .stat-boxes {
    display: flex;
    align-items: stretch;
    
    gap: 10px;
  }
  
  .stat-box {
    min-width: 140px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
    flex-wrap: nowrap;
  }
  
  .stat-label {
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 12px;
  }
  
  .stat-value {
    color: var(--text-strong);
    font-family: Manrope, Inter, sans-serif;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
  }
  
  .tip {
    max-width: 320px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 250, 242, 0.92) 100%);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
  }
  
  .seo-content {
    margin-top: 24px;
    padding: 36px 44px 40px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    background: var(--surface);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    color: #5b4c45;
    font-size: 16px;
    line-height: 1.72;
  }
  
  .seo-content h2 {
    margin: 30px 0 12px;
    color: var(--text-strong);
    font-family: Manrope, Inter, sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  
  .seo-content h2:first-child {
    margin-top: 0;
  }
  
  .seo-content p {
    margin: 0 0 14px;
    color: inherit;
  }
  
  .seo-content ul {
    margin: 12px 0;
    padding-left: 22px;
  }
  
  .seo-content li {
    margin-bottom: 8px;
  }
  
  .faq {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  
  .faq-item {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
  }
  
  .faq-item h3 {
    margin: 0 0 8px;
    color: var(--text-strong);
    font-size: 17px;
    font-weight: 800;
  }
  
  .faq-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
  }
  
  .footer-note {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
  }
  
  @keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }
  
  @keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  
  @keyframes pulse {
    0%, 100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.88;
      transform: scale(1.06);
    }
  }
  
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @media (max-width: 1720px) {
    .hero-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  
    h1 {
      font-size: 46px;
    }
  
    .hero-illustration {
      min-height: 240px;
    }
  
    .video-head {
      grid-template-columns: 1fr;
    }
  
    .stats-card-horizontal {
      grid-template-columns: 1fr;
      align-items: stretch;
    }
  
    .tip {
      max-width: 100%;
    }
  }
  
  @media (max-width: 760px) {
    body {
      padding: 18px 12px 36px;
    }
  
    .topbar {
      padding-bottom: 20px;
    }
  
    .nav {
      display: none;
    }
  
    .brand {
      font-size: 18px;
    }
  
    .brand-badge {
      width: 38px;
      height: 38px;
    }
  
    .hero-card,
    .result-panel,
    .seo-content {
      padding: 20px;
    }
  
    h1 {
      font-size: 34px;
      line-height: 1.02;
    }
  
    .subtitle {
      font-size: 15px;
      line-height: 1.55;
    }
  
    .input-wrap {
      flex-direction: column;
      align-items: stretch;
      max-width: 100%;
      gap: 10px;
      padding: 12px;
      border-radius: var(--radius-lg);
    }
  
    .input-wrap input {
      padding: 12px 14px;
      font-size: 16px;
    }
  
    .main-button {
      flex: none;
      width: 100%;
      min-width: 0;
      padding: 16px 18px;
      border-radius: var(--radius-md);
      font-size: 16px;
    }
  
    .hero-illustration {
      min-height: 220px;
    }
  
    .llama-wrap {
      width: 210px;
      height: 210px;
    }
  
    .status-panel {
      grid-template-columns: 1fr;
    }
  
    .status-icon {
      width: 46px;
      height: 46px;
    }
  
  
    .format-item {
      flex-direction: column;
      align-items: stretch;
    }
  
    .download-btn {
      width: 100%;
    }
  }

  .stats-card-horizontal {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    margin-top: 22px !important;
    padding: 20px 22px !important;
  }
  
  .stats-main {
    padding-top: 0 !important;
  }
  
  .stats-main h2 {
    margin: 0 0 8px !important;
    font-size: 24px !important;
    line-height: 1.08 !important;
  }
  
  .stats-main p {
    margin: 0 !important;
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
  }
  
  .stat-boxes {
    display: grid !important;
    gap: 12px !important;
    width: 100% !important;
  }
  
  .stat-box {
    min-width: 0 !important;
    width: 100% !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
  }
  
  .tip {
    max-width: 100% !important;
    width: 100% !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
  }
  
  @media (max-width: 760px) {
    .stat-boxes {
      grid-template-columns: 1fr !important;
    }
  }

  /* ===== hero layout fix for current HTML ===== */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.78fr) 420px;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 22px;
  }
  
  .hero-card {
    padding: 34px 42px;
    min-height: 460px;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) 240px;
    gap: 18px;
    align-items: center;
    height: 100%;
  }
  
  h1 {
    max-width: 760px;
    font-size: 56px;
    line-height: 0.98;
  }
  
  .subtitle {
    max-width: 780px;
    font-size: 18px;
    line-height: 1.7;
  }
  
  .input-wrap {
    width: 100%;
    max-width: 980px;
    gap: 12px;
    padding: 10px;
  }
  
  .input-wrap input {
    font-size: 20px;
    padding: 16px 24px;
  }
  
  .main-button {
    flex: 0 0 390px;
    padding: 18px 28px;
    font-size: 18px;
  }
  
  .hero-illustration {
    min-height: 250px;
  }
  
  .llama-wrap {
    width: 215px;
    height: 215px;
  }
  
  .hero-platforms {
    display: none !important;
  }
  
  .stats-card {
    align-self: flex-start;
    min-height: auto;
    padding: 10px 10px 12px;
  }
  
  .stats-card .stat-boxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .stats-card .stat-box {
    padding: 10px 12px;
  }
  
  @media (max-width: 1720px) {
    .hero {
      grid-template-columns: 1fr;
    }
  
    .hero-layout {
      grid-template-columns: 1fr;
    }
  
    .hero-card,
    .stats-card {
      min-height: auto;
    }
  
    h1 {
      font-size: 44px;
    }
  }
  
  @media (max-width: 760px) {
    .hero {
      display: block;
    }
  
    .input-wrap {
      max-width: 100%;
    }
  
    .main-button {
      width: 100%;
      flex: none;
      min-width: 0;
    }
  
    h1 {
      font-size: 32px;
    }
  
    .stats-card h2 {
      font-size: 30px;
    }
  
  .stats-inline {
  display: flex;
  gap: 24px;
  align-items: center;
}

.stats-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
  }
  
  .stats-inline {
  display: flex;
  gap: 24px;
  align-items: center;
}

.stats-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 22px;
}

/* ===== result layout: panel right ===== */

.result-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
  }
  
  .status-panel-inline {
    display: none !important;
  }
  
  .status-panel-side {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px;
    align-items: start;
    margin: 0 !important;
    padding: 22px !important;
    position: sticky;
    top: 24px;
  }
  
  .status-panel-side .status-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  
  .status-panel-side .status-title {
    font-size: 22px;
    line-height: 1.15;
  }
  
  .status-panel-side .status-text {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .status-panel-side .status-progress {
    margin-top: 14px;
  }
  
  .result-panel {
    min-width: 0;
  }
  
  .video-head {
    display: block !important;
    margin-bottom: 18px;
  }
  
  .video-main {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  
  .thumb-wrap {
    width: 100%;
    min-height: 140px;
  }
  
  .thumb {
    max-width: 100%;
  }
  
  .formats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  
  #resultBox,
  #statusPanel {
    scroll-margin-top: 24px;
  }
  
  @media (max-width: 1100px) {
    .result-layout {
      grid-template-columns: 1fr;
    }
  
    .status-panel-side {
      position: static;
      top: auto;
    }
  }
  
  @media (max-width: 760px) {
    .video-main {
      grid-template-columns: 1fr;
    }
  
    .formats {
      grid-template-columns: 1fr;
    }
  
    .status-panel-side {
      padding: 18px !important;
    }
  }