/* ============================================================================
   ROSE — HAZE-INSPIRED UI DESIGN SYSTEM (v70)
   Default Accent: Dusty Rose (#DCA1A1) on Deep Dark Void (#08080a)
   Single Unified 1080p 120FPS Method + ROSE SIGNAL Video Check
   ============================================================================ */

:root,
html[data-theme="rose"] {
  --bg: #08080a;
  --surface: #111114;
  --surface-elevated: #17171c;
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.22);

  --text: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Dusty Rose (#DCA1A1) Accent */
  --rose: #DCA1A1;
  --rose-fg: #0b0909;
  --rose-soft: rgba(220, 161, 161, 0.13);
  --rose-border: rgba(220, 161, 161, 0.45);
  --rose-glow: rgba(220, 161, 161, 0.22);
}

html[data-theme="monochrome"] {
  --bg: #060608;
  --surface: #101013;
  --surface-elevated: #16161a;
  --rose: #ffffff;
  --rose-fg: #060608;
  --rose-soft: rgba(255, 255, 255, 0.1);
  --rose-border: rgba(255, 255, 255, 0.45);
  --rose-glow: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.text-rose {
  color: var(--rose) !important;
}

.hidden {
  display: none !important;
}

/* ============================================================================
   STRAIGHT TOP HEADER BAR (NO TOP ROUNDING, EDGE-TO-EDGE)
   ============================================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  text-decoration: none;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-icon-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 12px rgba(220, 161, 161, 0.25);
  border: 1px solid rgba(220, 161, 161, 0.2);
}

.pill-icon-img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  margin-right: 6px;
  vertical-align: middle;
}

.sig-logo-img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.engine-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rose);
  background: var(--rose-soft);
  border: 1px solid var(--rose-border);
  padding: 3px 10px;
  border-radius: 999px;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.96rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-mode-switch,
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}

.vm-btn,
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.05em;
  font-family: inherit;
  transition: all 0.15s ease;
}

.vm-btn:hover,
.lang-btn:hover {
  color: var(--text);
}

.vm-btn.active,
.lang-btn.active {
  background: var(--rose);
  color: var(--rose-fg);
}

.btn-top-action {
  background: var(--rose);
  color: var(--rose-fg);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

/* ============================================================================
   MAIN CONTAINER & SECTIONS
   ============================================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 90px;
}

.section-block {
  margin-bottom: 64px;
}

.block-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.block-eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--rose);
  margin-bottom: 6px;
}

.block-title-main {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.block-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.block-desc {
  font-size: 1.04rem;
  color: var(--text-secondary);
  max-width: 860px;
}

.block-desc code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--rose);
  background: var(--rose-soft);
  padding: 2px 6px;
  border-radius: 5px;
}

/* ============================================================================
   STEPS SECTION: FROM CLIP TO POST (EXACT SCREENSHOT STYLE)
   ============================================================================ */
.steps-section {
  padding: 10px 0 20px;
}

.steps-header {
  margin-bottom: 24px;
}

.steps-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #71717a;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.steps-title {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.08;
  margin: 0 0 12px 0;
}

.steps-subtitle {
  font-size: 1.08rem;
  color: #a1a1aa;
  font-weight: 500;
  margin: 0;
}

.steps-divider {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 32px 0 36px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step-col {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #22c55e;
  line-height: 1.25;
  flex-shrink: 0;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-heading {
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
}

.step-text {
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================================
   STUDIO GRID & SINGLE UNIFIED ROSE 1080P 120FPS CARD
   ============================================================================ */
.studio-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.studio-left,
.studio-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dropzone-box {
  min-height: 350px;
  background: #09090b;
  border: 2px dashed var(--rose-border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropzone-box:hover,
.dropzone-box.drag-over {
  border-color: var(--rose);
  background: var(--rose-soft);
}

.dz-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.dz-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--rose-soft);
  border: 1px solid var(--rose-border);
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dz-title {
  font-size: 1.28rem;
  font-weight: 800;
}

.dz-subtitle {
  font-size: 0.96rem;
  color: var(--text-secondary);
}

.dz-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.dz-tags span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rose);
  background: var(--rose-soft);
  border: 1px solid var(--rose-border);
  padding: 5px 12px;
  border-radius: 999px;
}

.dz-loaded {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: default;
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.file-name-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  color: var(--rose);
  background: var(--rose-soft);
  border: 1px solid var(--rose-border);
  padding: 4px 10px;
  border-radius: 7px;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-mode-tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.pm-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.pm-tab.active {
  background: var(--rose);
  color: var(--rose-fg);
}

.btn-change {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
}

.player-frame {
  position: relative;
  width: 100%;
  height: 300px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.preview-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.25s ease;
}

.preview-video.method-enhanced {
  filter: contrast(1.06) saturate(1.06) brightness(1.01);
}

.preview-video.method-degraded {
  filter: blur(2.0px) contrast(0.85) saturate(0.72) brightness(0.93) !important;
}

.player-watermark {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(8, 8, 10, 0.88);
  border: 1px solid var(--rose-border);
  color: var(--rose);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  pointer-events: none;
}

.param-readout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.param-cell {
  background: #09090b;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.param-lbl {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.param-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.96rem;
  color: var(--text);
}

/* Single Unified Method Card */
.single-method-card {
  background: #09090b;
  border: 1.5px solid var(--rose);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.smc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.smc-badge {
  background: var(--rose);
  color: var(--rose-fg);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.smc-spec {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rose);
}

.smc-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
}

.smc-quality-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.smc-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rose);
  background: var(--rose-soft);
  border: 1px solid var(--rose-border);
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.smc-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.smc-desc code,
.smc-list code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  color: var(--rose);
  background: var(--rose-soft);
  padding: 1px 6px;
  border-radius: 4px;
}

.smc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.smc-list li strong {
  color: var(--text);
}

/* Action & Progress Panel */
.action-panel {
  background: #09090b;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
}

.as-left,
.as-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rose);
}

.as-speed {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.as-timer {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--rose);
  background: var(--rose-soft);
  padding: 3px 9px;
  border-radius: 6px;
}

.progress-bar-wrap {
  width: 100%;
  height: 9px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--rose);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.btn-run-rose {
  width: 100%;
  background: var(--rose);
  color: var(--rose-fg);
  border: none;
  border-radius: 12px;
  padding: 16px 22px;
  font-size: 1.06rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px var(--rose-glow);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-run-rose:hover:not(:disabled) {
  transform: translateY(-1px);
  opacity: 0.95;
}

.btn-run-rose:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Completed Output Card */
.output-ready-card {
  background: var(--rose-soft);
  border: 2px solid var(--rose);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.or-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.or-badge {
  font-size: 0.76rem;
  font-weight: 800;
  background: var(--rose);
  color: var(--rose-fg);
  padding: 3px 9px;
  border-radius: 5px;
}

.or-filename {
  font-size: 1.18rem;
  margin-top: 5px;
}

.or-elapsed {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--rose);
}

.or-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.or-item {
  background: #09090b;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.or-item span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.or-item strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
}

.or-buttons {
  display: flex;
  gap: 10px;
}

.btn-download-main {
  flex: 1;
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  color: #09090b;
  font-size: 1.02rem;
  font-weight: 900;
  padding: 15px 18px;
  border-radius: 11px;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-download-main:hover {
  background: var(--rose);
  color: var(--rose-fg);
}

.btn-preview-out {
  background: #09090b;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 15px 16px;
  border-radius: 11px;
  cursor: pointer;
}

/* ============================================================================
   ROSE SIGNAL + TIKTOK LINK CHECKER (#check)
   ============================================================================ */
.checker-search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.url-input-row {
  display: flex;
  gap: 12px;
}

.url-input {
  flex: 1;
  background: #09090b;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 18px;
  color: var(--text);
  font-size: 1.02rem;
  outline: none;
}

.url-input:focus {
  border-color: var(--rose);
}

.btn-rose-solid {
  background: var(--rose);
  color: var(--rose-fg);
  border: none;
  border-radius: 12px;
  padding: 0 28px;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.url-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
  flex-wrap: wrap;
}

.helper-hint {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.btn-copy-report {
  background: var(--rose-soft);
  border: 1px solid var(--rose-border);
  color: var(--rose);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.signal-analytics-layout {
  display: grid;
  grid-template-columns: 340px 1fr 370px;
  gap: 18px;
  align-items: start;
}

/* ROSE SIGNAL CARD (Replica of HAZE SIGNAL widget from user's screenshot) */
.signal-card {
  background: #0d0d10;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sig-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sig-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.sig-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--text);
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.sig-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rose-soft);
  border: 1px solid var(--rose-border);
  color: var(--rose);
  font-size: 0.74rem;
  font-weight: 800;
}

.sig-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
}

.sig-fps-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.sig-fps-big {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
}

.sig-fps-big small {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-left: 4px;
}

.sig-fps-meta {
  text-align: right;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sig-fps-meta strong {
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
}

.sig-graph-line {
  height: 36px;
  border-top: 2.5px solid var(--rose);
  background: linear-gradient(180deg, var(--rose-soft), transparent);
}

.sig-pills-row {
  display: flex;
  gap: 8px;
}

.sig-pill-main {
  background: var(--rose);
  color: var(--rose-fg);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
}

.sig-pill-sub {
  background: #18181d;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
}

.sig-metrics-box {
  background: #131317;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sig-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sig-m-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.sig-m-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.sig-m-val small {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sig-m-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sig-mini-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.sig-mini-fill {
  height: 100%;
  background: var(--rose);
}

.sig-served-box {
  background: #131317;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.sig-served-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sig-served-row span {
  color: var(--text-secondary);
}

.sig-served-row strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
}

.sig-footer {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* Middle & Right Analytics Cards */
.analytics-card,
.telegram-report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.an-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.an-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.an-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--rose);
}

.an-ext-link {
  color: var(--rose);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.an-meta-line,
.an-sound-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  flex-wrap: wrap;
}

.an-author {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.an-sound {
  color: var(--text-secondary);
  text-decoration: none;
}

.an-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.an-box {
  background: #09090b;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
}

.an-box-downloads {
  margin-bottom: 4px;
}

.an-dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.btn-dl-stream {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-dl-hd {
  background: var(--rose);
  color: var(--rose-fg);
  border: 1px solid var(--rose);
}

.btn-dl-hd:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-dl-sd {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-dl-sd:hover {
  border-color: var(--rose-border);
  background: var(--rose-soft);
}

.btn-dl-audio {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-dl-audio:hover {
  border-color: var(--rose-border);
  background: var(--rose-soft);
}

.btn-dl-wm {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-dl-wm:hover {
  color: var(--text);
  border-color: var(--border);
}

.btn-dl-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.btn-dl-sub {
  font-size: 0.76rem;
  opacity: 0.8;
  line-height: 1.2;
}

.an-box-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--rose);
  margin-bottom: 9px;
  text-transform: uppercase;
}

.an-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.an-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  gap: 8px;
}

.an-list li span {
  color: var(--text-secondary);
}

.an-list li strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
}

.an-q-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.an-q-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.an-q-pill-rose {
  border-color: var(--rose-border);
  background: var(--rose-soft);
}

.an-q-pill span {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.an-q-pill strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
}

.an-q-pill-rose strong {
  color: var(--rose);
}

.an-streams-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stream-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stream-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stream-chip {
  text-decoration: none;
  color: var(--rose);
  background: var(--rose-soft);
  border: 1px solid var(--rose-border);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

.stream-spec {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.an-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
}

.an-sub-lbl {
  color: var(--text-secondary);
  margin-right: 5px;
}

.an-link-rose {
  color: var(--rose);
  font-weight: 700;
  text-decoration: none;
}

.tg-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--rose);
}

.btn-sm-copy {
  background: var(--rose-soft);
  border: 1px solid var(--rose-border);
  color: var(--rose);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 7px;
  cursor: pointer;
}

.tg-formatted-view {
  background: #09090b;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.tg-formatted-view a {
  color: var(--rose);
  text-decoration: underline;
  font-weight: 600;
}

/* ============================================================================
   HERO COMPARISON SECTION (#compare)
   ============================================================================ */
.hero {
  margin-bottom: 48px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge-stack {
  margin-bottom: 18px;
}

.pill-classic {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.pill-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--rose);
  color: var(--rose-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.72rem;
}

.hero-heading {
  font-size: clamp(2.5rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 24px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-white-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #09090b;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 12px;
}

.btn-dark-lg {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--rose-border);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 12px;
}

.hero-right {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 380px;
  max-width: 100%;
  height: 560px;
  background: #0d0d10;
  border: 6px solid #18181d;
  outline: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
}

.hero-comp-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

#heroVideoBefore {
  filter: blur(2.0px) contrast(0.85) saturate(0.72) brightness(0.93);
}

.hero-after-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
  pointer-events: none;
}

.hero-sound-btn {
  display: none !important;
}

.phone-badge {
  position: absolute;
  top: 14px;
  z-index: 5;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  pointer-events: none;
}

.phone-badge-before {
  left: 14px;
  background: rgba(20, 20, 24, 0.85);
  color: #d4d4d8;
}

.phone-badge-after {
  right: 14px;
  background: rgba(220, 161, 161, 0.22);
  color: var(--rose);
  border: 1px solid var(--rose-border);
}

.phone-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
  z-index: 6;
  pointer-events: none;
}

.phone-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--rose-fg);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1120px) {
  .studio-grid,
  .signal-analytics-layout,
  .hero-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 18px 14px 60px;
  }

  .topbar-inner {
    padding: 0 14px;
    height: auto;
    min-height: 56px;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .main-nav {
    display: none;
  }

  .brand-logo {
    font-size: 1.22rem;
  }

  .engine-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
  }

  .topbar-right {
    gap: 6px;
  }

  .vm-btn, .th-btn {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .hero-layout {
    gap: 28px;
    margin-bottom: 40px;
  }

  .hero-heading {
    font-size: 2.15rem;
    line-height: 1.12;
    margin-bottom: 14px;
  }

  .hero-lead {
    font-size: 0.96rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .hero-cta-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-white-lg,
  .btn-dark-lg {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    font-size: 0.95rem;
  }

  .hero-right {
    width: 100%;
  }

  .phone-frame {
    width: 100%;
    max-width: 360px;
    height: 530px;
    border-width: 4px;
    border-radius: 24px;
    margin: 0 auto;
  }

  .section-block {
    margin-bottom: 44px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .steps-divider {
    margin: 22px 0 24px 0;
  }

  .block-title-main {
    font-size: 1.65rem;
  }

  .block-title {
    font-size: 1.5rem;
  }

  .block-desc {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .studio-grid {
    padding: 14px;
    gap: 16px;
    border-radius: 16px;
  }

  .dropzone-box {
    min-height: 230px;
    padding: 16px;
    border-radius: 14px;
  }

  .dz-icon-circle {
    width: 54px;
    height: 54px;
  }

  .dz-title {
    font-size: 1.05rem;
  }

  .dz-subtitle {
    font-size: 0.85rem;
  }

  .dz-tags span {
    font-size: 0.75rem;
    padding: 4px 9px;
  }

  .player-frame {
    height: 240px;
  }

  .param-readout-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .param-cell {
    padding: 10px;
    border-radius: 10px;
  }

  .param-lbl {
    font-size: 0.72rem;
  }

  .param-val {
    font-size: 0.88rem;
  }

  .single-method-card {
    padding: 16px;
    border-radius: 14px;
  }

  .smc-title {
    font-size: 1.15rem;
  }

  .action-panel {
    padding: 14px;
    border-radius: 14px;
  }

  .action-status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.86rem;
  }

  .as-right {
    align-self: flex-end;
  }

  .btn-run-rose {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .output-ready-card {
    padding: 16px;
    border-radius: 14px;
  }

  .or-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .or-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-download-main,
  .btn-preview-out {
    width: 100%;
    justify-content: center;
  }

  .tiktok-input-wrap {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .tiktok-input {
    width: 100%;
  }

  .btn-check-url {
    width: 100%;
    justify-content: center;
  }

  .signal-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .signal-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat-cell {
    padding: 10px;
  }

  .stat-val {
    font-size: 1.1rem;
  }

  .info-table-modern {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .phone-frame {
    max-width: 330px;
    height: 490px;
  }

  .hero-heading {
    font-size: 1.85rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .param-readout-grid {
    grid-template-columns: 1fr;
  }
}
